# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConvertToProposals maps each key to a ProposalType and returns a typed list.
DefaultParams returns default wasm parameters.
DefaultWasmConfig returns the default settings for WasmConfig.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetCodeKey constructs the key for retreiving the ID for the WASM code.
GetContractAddressKey returns the key for the WASM contract instance.
GetContractByCodeIDSecondaryIndexPrefix returns the prefix for the second index: `<prefix><codeID>`.
GetContractByCreatedSecondaryIndexKey returns the key for the secondary index: `<prefix><codeID><created/last-migrated><contractAddr>`.
GetContractCodeHistoryElementKey returns the key a contract code history entry: `<prefix><contractAddr><position>`.
GetContractCodeHistoryElementPrefix returns the key prefix for a contract code history entry: `<prefix><contractAddr>`.
No description provided by the author
GetContractStorePrefix returns the store prefix for the WASM contract instance.
No description provided by the author
GetPinnedCodeIndexPrefix returns the key prefix for a code id pinned into the wasmvm cache.
No description provided by the author
No description provided by the author
IsJSONObjectWithTopLevelKey checks if the given bytes are a valid JSON object with exactly one top-level key that is contained in the list of allowed keys.
No description provided by the author
No description provided by the author
Module is a specialized version of a composed address for modules.
No description provided by the author
No description provided by the author
No description provided by the author
NewAbsoluteTxPosition gets a block position from the context.
No description provided by the author
NewCodeInfo fills a new CodeInfo struct.
NewContractInfo creates a new instance of a given WASM contract info.
NewEnv initializes the environment for a contract instance.
NewInfo initializes the MessageInfo for a contract instance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewWasmCoins translates between Cosmos SDK coins and Wasm coins.
No description provided by the author
ParamKeyTable returns the parameter key table.
ParsePinnedCodeIndex converts the serialized code ID back.
No description provided by the author
RegisterLegacyAminoCodec registers the account types and interface.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
No description provided by the author
No description provided by the author
TestParams returns default wasm parameters for unit tests.
TXCounter returns the tx counter value and found bool from the context.
No description provided by the author
ValidateGenesis performs basic validation of supply genesis data returning an error for any failed validation criteria.
ValidateSalt ensure salt constraints.
VerifyAddressLen ensures that the address matches the expected length.
No description provided by the author
WithTXCounter stores a transaction counter value in the context.
# Constants
AbsoluteTxPositionLen number of elements in byte representation.
AccessTypeEverybody unrestricted.
AccessTypeNobody forbidden.
AccessTypeOnlyAddress restricted to some addresses.
AccessTypeUnspecified placeholder for empty value.
No description provided by the author
event attributes returned from contract execution.
event attributes returned from contract execution.
event attributes returned from contract execution.
event attributes returned from contract execution.
event attributes returned from contract execution.
ContractCodeHistoryOperationTypeGenesis based on genesis data.
ContractCodeHistoryOperationTypeInit on chain contract instantiation.
ContractCodeHistoryOperationTypeMigrate code migration.
ContractCodeHistoryOperationTypeUnspecified placeholder for empty value.
No description provided by the author
CustomContractEventPrefix contracts can create custom events.
DefaultMaxQueryStackSize maximum size of the stack of contract instances doing queries.
Tests should not fail on gas consumption.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxSaltSize is the longest salt that can be used when instantiating a contract.
No description provided by the author
ModuleName is the name of the contract module.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
QuerierRoute is the querier route for the wasm module.
RouterKey is the msg router key for the wasm module.
SDKAddrLen defines a valid address length that was used in sdk address generation.
No description provided by the author
StoreKey is the string store representation.
TStoreKey is the string transient store representation.
WasmModuleEventType is stored with any contract TX that returns non empty EventAttributes.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint.
nolint.
nolint.
No description provided by the author
No description provided by the author
nolint.
nolint.
nolint.
Codes for wasm contract errors.
No description provided by the author
DisableAllProposals contains no wasm gov types.
EnableAllProposals contains all wasm gov types as keys.
ErrAccountExists error for a contract account that already exists.
Codes for wasm contract errors.
ErrCreateFailed error for wasm code that has already been uploaded or failed.
ErrDuplicate error for content that exists.
ErrEmpty error for empty content.
Codes for wasm contract errors.
ErrExceedMaxQueryStackSize error if max query stack size is exceeded.
ErrExecuteFailed error for rust execution contract failure.
ErrGasLimit error for out of gas.
Codes for wasm contract errors.
ErrInstantiateFailed error for rust instantiate contract failure.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalid error for content that is invalid in this context.
ErrInvalidEvent error if an attribute/event from the contract is invalid.
ErrInvalidGenesis error for invalid genesis file syntax.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidMsg error when we cannot process the error returned from the contract.
ErrLimit error for content that exceeds a limit.
ErrMaxIBCChannels error for maximum number of ibc channels reached.
ErrMigrationFailed error for rust execution contract failure.
ErrMultipleTopLevelKeys error if a JSON object has more than one top-level key.
ErrNotAJSONObject error if given data is not a JSON object.
ErrNotFound error for an entry not found in the store.
ErrNoTopLevelKey error if a JSON object has no top-level key.
ErrPinContractFailed error for pinning contract failures.
Codes for wasm contract errors.
ErrQueryFailed error for rust smart query contract failure.
ErrTopKevelKeyNotAllowed error if a JSON object has a top-level key that is not allowed.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Codes for wasm contract errors.
ErrUnknownMsg error by a message handler to show that it is not responsible for this message type.
ErrUnpinContractFailed error for unpinning contract failures.
ErrUnsupportedForContract error when a feature is used that is not supported for/ by this contract.
nolint.
nolint.
nolint.
nolint.
extension point for chains to customize via compile flag.
extension point for chains to customize via compile flag.
No description provided by the author
NecessaryProposals contains necessary wasm gov types as keys.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint.
nolint.
nolint.
# Structs
AbsoluteTxPosition is a unique transaction position that allows for global ordering of transactions.
AccessConfig access control type.
AccessConfigUpdate contains the code id and the access config to be applied.
AccessTypeParam.
ClearAdminProposal gov proposal content type to clear the admin of a contract.
Code struct encompasses CodeInfo and CodeBytes.
CodeInfo is data for the uploaded contract WASM code.
CodeInfoResponse contains code meta data from CodeInfo.
Contract struct encompasses ContractAddress, ContractInfo, and ContractState.
ContractCodeHistoryEntry metadata to a contract.
ContractInfo stores a WASM contract instance.
No description provided by the author
No description provided by the author
ExecuteContractProposal gov proposal content type to call execute on a contract.
No description provided by the author
No description provided by the author
GenesisState - genesis state of x/wasm.
GenMsgs define the messages that can be executed during genesis phase in order.
No description provided by the author
No description provided by the author
No description provided by the author
InstantiateContractProposal gov proposal content type to instantiate a contract.
No description provided by the author
MigrateContractProposal gov proposal content type to migrate a contract.
Model is a struct that holds a KV pair.
MsgClearAdmin removes any admin stored for a smart contract.
MsgClearAdminResponse returns empty data.
MsgExecuteContract submits the given message data to a smart contract.
MsgExecuteContractResponse returns execution result data.
MsgIBCCloseChannel port and channel need to be owned by the contract.
MsgIBCSend.
MsgInstantiateContract create a new smart contract instance for the given code id.
MsgInstantiateContractResponse return instantiation result data.
MsgMigrateContract runs a code upgrade/ downgrade for a smart contract.
MsgMigrateContractResponse returns contract migration result data.
MsgStoreCode submit Wasm code to the system.
MsgStoreCodeResponse returns store result data.
MsgUpdateAdmin sets a new admin for a smart contract.
MsgUpdateAdminResponse returns empty data.
Params defines the set of wasm parameters.
PinCodesProposal gov proposal content type to pin a set of code ids in the wasmvm cache.
No description provided by the author
QueryAllContractStateRequest is the request type for the Query/AllContractState RPC method.
QueryAllContractStateResponse is the response type for the Query/AllContractState RPC method.
QueryCodeRequest is the request type for the Query/Code RPC method.
QueryCodeResponse is the response type for the Query/Code RPC method.
QueryCodesRequest is the request type for the Query/Codes RPC method.
QueryCodesResponse is the response type for the Query/Codes RPC method.
QueryContractHistoryRequest is the request type for the Query/ContractHistory RPC method.
QueryContractHistoryResponse is the response type for the Query/ContractHistory RPC method.
QueryContractInfoRequest is the request type for the Query/ContractInfo RPC method.
QueryContractInfoResponse is the response type for the Query/ContractInfo RPC method.
QueryContractsByCodeRequest is the request type for the Query/ContractsByCode RPC method.
QueryContractsByCodeResponse is the response type for the Query/ContractsByCode RPC method.
No description provided by the author
QueryPinnedCodesRequest is the request type for the Query/PinnedCodes RPC method.
QueryPinnedCodesResponse is the response type for the Query/PinnedCodes RPC method.
QueryRawContractStateRequest is the request type for the Query/RawContractState RPC method.
QueryRawContractStateResponse is the response type for the Query/RawContractState RPC method.
QuerySmartContractStateRequest is the request type for the Query/SmartContractState RPC method.
QuerySmartContractStateResponse is the response type for the Query/SmartContractState RPC method.
Sequence key and value of an id generation counter.
No description provided by the author
StoreCodeProposal gov proposal content type to submit WASM code to the system.
SudoContractProposal gov proposal content type to call sudo on a contract.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
UnpinCodesProposal gov proposal content type to unpin a set of code ids in the wasmvm cache.
UpdateAdminProposal gov proposal content type to set an admin for a contract.
No description provided by the author
UpdateInstantiateConfigProposal gov proposal content type to update instantiate config to a set of code ids.
No description provided by the author
WasmConfig is the extra config required for wasm.
# Interfaces
AccountKeeper defines a subset of methods implemented by the cosmos-sdk account keeper.
BankKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper.
BankViewKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper.
No description provided by the author
ChannelKeeper defines the expected IBC channel keeper.
ClientKeeper defines the expected IBC client keeper.
ConnectionKeeper defines the expected IBC connection keeper.
ContractInfoExtension defines the extension point for custom data to be stored with a contract info.
ContractOpsKeeper contains mutable operations on a contract.
No description provided by the author
DistributionKeeper defines a subset of methods implemented by the cosmos-sdk distribution keeper.
IBCContractKeeper IBC lifecycle event handler.
ICS20TransferPortSource is a subset of the ibc transfer keeper.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
PortKeeper defines the expected IBC port keeper.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
StakingKeeper defines a subset of methods implemented by the cosmos-sdk staking keeper.
No description provided by the author
ViewKeeper provides read only operations.
WasmerEngine defines the WASM contract runtime engine.
# Type aliases
AccessType permission types.
ContractCodeHistoryOperationType actions that caused a code change.
No description provided by the author
RawContractMessage defines a json message that is sent or returned by a wasm contract.