# Functions
CosmosResult converts from a Wasm Result type.
DefaultWasmConfig returns the default settings for WasmConfig.
GetCodeKey constructs the key for retreiving the ID for the WASM code.
GetContractAddressKey returns the key for the WASM contract instance.
GetContractStorePrefixKey returns the store prefix for the WASM contract instance.
NewCodeInfo fills a new Contract struct.
NewContractInfo creates a new instance of a given WASM contract info.
NewParams initializes params for a contract instance.
NewWasmCoins translates between Cosmos SDK coins and Wasm coins.
RegisterCodec registers the account types and interface.
ValidateGenesis performs basic validation of supply genesis data returning an error for any failed validation criteria.
# Constants
No description provided by the author
No description provided by the author
ModuleName is the name of the contract module.
QuerierRoute is the querier route for the staking module.
RouterKey is the msg router key for the staking module.
StoreKey is the string store representation.
TStoreKey is the string transient store representation.
# Variables
nolint.
nolint.
nolint.
Codes for wasm contract errors.
ErrAccountExists error for a contract account that already exists.
ErrCreateFailed error for wasm code that has already been uploaded or failed.
ErrExecuteFailed error for rust execution contract failure.
ErrGasLimit error for out of gas.
ErrInstantiateFailed error for rust instantiate contract failure.
ErrInvalidGenesis error for invalid genesis file syntax.
ErrNotFound error for an entry not found in the store.
ErrQueryFailed error for rust smart query contract failure.
nolint.
nolint.
ModuleCdc generic sealed codec to be used throughout module.
# Structs
Code struct encompasses CodeInfo and CodeBytes.
CodeInfo is data for the uploaded contract WASM code.
Contract struct encompasses ContractAddress, ContractInfo, and ContractState.
ContractInfo stores a WASM contract instance.
GenesisState is the struct representation of the export genesis.
Model is a struct that holds a KV pair.
No description provided by the author
No description provided by the author
No description provided by the author
WasmConfig is the extra config required for wasm.