# Functions
AcceptGrantedMessage determines whether this grant permits the provided sdk.Msg to be performed, and if so provides an upgraded authorization instance.
No description provided by the author
No description provided by the author
No description provided by the author
ConfigTemplate toml snippet for app.toml.
ContractCodeHistoryEntryFixture test fixture.
No description provided by the author
No description provided by the author
ConvertToProposals maps each key to a ProposalType and returns a typed list.
DefaultConfigTemplate toml snippet with default values for app.toml.
DefaultParams returns default wasm parameters.
DefaultWasmConfig returns the default settings for WasmConfig.
EmitAcknowledgementEvent emits an event signalling a successful or failed acknowledgement and including the error details if any.
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>`.
GetContractByCreatorSecondaryIndexKey returns the key for the second index: `<prefix><creatorAddress length><created time><creatorAddress><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>`.
GetContractsByCreatorPrefix returns the contracts by creator prefix for the WASM contract instance.
GetContractStorePrefix returns the store prefix for the WASM contract instance.
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
No description provided by the author
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.
NewAcceptedMessageKeysFilter constructor.
NewAcceptedMessagesFilter constructor.
NewAllowAllMessagesFilter constructor.
No description provided by the author
NewCodeInfo fills a new CodeInfo struct.
NewCombinedLimit constructor A panic will occur if the coin set is not valid.
NewContractExecutionAuthorization constructor.
NewContractGrant constructor.
NewContractInfo creates a new instance of a given WASM contract info.
NewContractMigrationAuthorization constructor.
NewEnv initializes the environment for a contract instance.
No description provided by the author
NewInfo initializes the MessageInfo for a contract instance.
No description provided by the author
No description provided by the author
NewMaxCallsLimit constructor.
NewMaxFundsLimit constructor A panic will occur if the coin set is not valid.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewStoreAdapter constructor.
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
NewWasmCoins translates between Cosmos SDK coins and Wasm coins.
NewWasmVMFlavouredError constructor.
No description provided by the author
Deprecated: Type declaration for parameters.
ParsePinnedCodeIndex converts the serialized code ID back.
No description provided by the author
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
No description provided by the author
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.
ValidateLabel ensure label constraints.
ValidateSalt ensure salt constraints.
ValidateVerificationInfo ensure source, builder and checksum constraints.
VerifyAddressLen ensures that the address matches the expected length.
WasmVMFlavouredErrorFactory is a factory method to build a WasmVMFlavouredError type.
No description provided by the author
WithTXCounter stores a transaction counter value in the context.
# Constants
AbsoluteTxPositionLen number of elements in byte representation.
AccessTypeAnyOfAddresses allow any of the addresses.
AccessTypeEverybody unrestricted.
AccessTypeNobody forbidden.
AccessTypeUnspecified placeholder for empty value.
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.
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.
event attributes returned from contract execution.
ContractAddrLen defines a valid address length for contracts.
ContractCodeHistoryOperationTypeGenesis based on genesis data.
ContractCodeHistoryOperationTypeInit on chain contract instantiation.
ContractCodeHistoryOperationTypeMigrate code migration.
ContractCodeHistoryOperationTypeUnspecified placeholder for empty value.
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.
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
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.
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
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
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.
ErrCreateFailed error for wasm code that has already been uploaded or failed.
ErrDuplicate error for content that exists.
ErrEmpty error for empty content.
ErrExceedMaxQueryStackSize error if max query stack size is exceeded.
ErrExecuteFailed error for rust execution contract failure.
ErrGasLimit error for out of gas.
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
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
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.
ErrNoSuchCodeFn factory for an error when a code id does not belong to a code info.
ErrNoSuchContractFn error factory for an error when an address does not belong to a contract.
ErrNotFound error for an entry not found in the store.
ErrPinContractFailed error for pinning contract failures.
ErrQueryFailed error for rust smart query 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
No description provided by the author
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 capability is used that is not supported for/ by this contract.
No description provided by the author
No description provided by the author
extension point for chains to customize via compile flag.
extension point for chains to customize via compile flag.
extension point for chains to customize via compile flag.
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
# Structs
AbsoluteTxPosition is a unique transaction position that allows for global ordering of transactions.
AcceptedMessageKeysFilter accept only the specific contract message keys in the json object to be executed.
AcceptedMessagesFilter accept only the specific raw contract messages to be executed.
AccessConfig access control type.
AccessConfigUpdate contains the code id and the access config to be applied.
AccessTypeParam.
AllowAllMessagesFilter is a wildcard to allow any type of contract payload message.
Deprecated: Do not use.
Code struct encompasses CodeInfo and CodeBytes.
CodeInfo is data for the uploaded contract WASM code.
CodeInfoResponse contains code meta data from CodeInfo.
CombinedLimit defines the maximal amounts that can be sent to a contract and the maximal number of calls executable.
Contract struct encompasses ContractAddress, ContractInfo, and ContractState.
ContractAuthzLimitAcceptResult result of the ContractAuthzLimitX.Accept method.
ContractCodeHistoryEntry metadata to a contract.
ContractExecutionAuthorization defines authorization for wasm execute.
ContractGrant a granted permission for a single contract Since: wasmd 0.30.
ContractInfo stores a WASM contract instance.
ContractMigrationAuthorization defines authorization for wasm contract migration.
Deprecated: Do not use.
GenesisState - genesis state of x/wasm.
Deprecated: Do not use.
Deprecated: Do not use.
MaxCallsLimit limited number of calls to the contract.
MaxFundsLimit defines the maximal amounts that can be sent to the contract.
Deprecated: Do not use.
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.
MsgIBCSendResponse.
MsgInstantiateContract create a new smart contract instance for the given code id.
MsgInstantiateContract2 create a new smart contract instance for the given code id with a predicable address.
MsgInstantiateContract2Response return instantiation result data.
MsgInstantiateContractResponse return instantiation result data.
MsgMigrateContract runs a code upgrade/ downgrade for a smart contract.
MsgMigrateContractResponse returns contract migration result data.
MsgPinCodes is the MsgPinCodes request type.
MsgPinCodesResponse defines the response structure for executing a MsgPinCodes message.
MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract request type.
MsgStoreAndInstantiateContractResponse defines the response structure for executing a MsgStoreAndInstantiateContract message.
MsgStoreCode submit Wasm code to the system.
MsgStoreCodeResponse returns store result data.
MsgSudoContract is the MsgSudoContract request type.
MsgSudoContractResponse defines the response structure for executing a MsgSudoContract message.
MsgUnpinCodes is the MsgUnpinCodes request type.
MsgUnpinCodesResponse defines the response structure for executing a MsgUnpinCodes message.
MsgUpdateAdmin sets a new admin for a smart contract.
MsgUpdateAdminResponse returns empty data.
MsgUpdateInstantiateConfig updates instantiate config for a smart contract.
MsgUpdateInstantiateConfigResponse returns empty data.
MsgUpdateParams is the MsgUpdateParams request type.
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Params defines the set of wasm parameters.
Deprecated: Do not use.
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.
QueryContractsByCreatorRequest is the request type for the Query/ContractsByCreator RPC method.
QueryContractsByCreatorResponse is the response type for the Query/ContractsByCreator RPC method.
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse is the response type for the Query/Params RPC method.
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.
StoreAdapter adapter to bridge SDK store impl to wasmvm.
Deprecated: Do not use.
Deprecated: Do not use.
Deprecated: Do not use.
UndefinedFilter null object that is always rejected in execution.
UndefinedLimit null object that is always rejected in execution.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
Deprecated: Do not use.
Deprecated: Do not use.
Deprecated: Do not use.
WasmConfig is the extra config required for wasm.
WasmVMFlavouredError wrapper for sdk error that supports wasmvm error types.
# Interfaces
AccountKeeper defines a subset of methods implemented by the cosmos-sdk account keeper.
AuthzableWasmMsg is abstract wasm tx message that is supported in authz.
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.
Burner is a subset of the sdk bank keeper methods.
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.
ContractAuthzFactory factory to create an updated Authorization object.
ContractAuthzFilterX define more fine-grained control on the message payload passed to the contract in the operation.
ContractAuthzLimitX define execution limits that are enforced and updated when the grant is applied.
ContractInfoExtension defines the extension point for custom data to be stored with a contract info.
ContractOpsKeeper contains mutable operations on a contract.
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.
ICS4Wrapper defines the method for an IBC data package to be submitted.
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.
ViewKeeper provides read only operations.
WasmerEngine defines the WASM contract runtime engine.
WasmVMErrorable mapped error type in wasmvm and are not redacted.
# 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.