Crate ownable_std

Source

Structs§

EmptyApi
EmptyQuerier
Empty Querier that is meant to conform the traits expected by the cosmwasm standard contract syntax. It should not be used whatsoever
ExternalEventMsg
IdbStateDump
IdbStorage
InfoResponse
Metadata
NFT
OwnableInfo

Functions§

address_eip155
takes a b58 of compressed secp256k1 public key and returns an address. performs validation on the pk, including length checks, bs58 decoding, compression check. also does eip55 checksum validation.
address_lto
takes a network_id (T/L) and a b58 encoded public key and returns a base58 encoded address. performs validations on the network_id, public key encoding, and expects sha256(Blake2b(data)) to process correctly.
create_lto_env
derive_rgb_values
takes a b58 hash and derives a seemingly-random rgb tuple
get_json_response
takes a cw MemoryStorage and Response and returns a JsValue response that contains the memory state dump and response result
get_random_color
returns a hex color in string format from a hash
load_lto_deps
rgb_hex
takes three u8 values representing rgb values (0-255) and returns a hex string