# 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
DefaultConfigTemplate toml snippet with default values for app.toml.
DefaultGasRegisterConfig default values.
DefaultNodeConfig returns the default settings for NodeConfig.
DefaultParams returns default wasm parameters.
DefaultPerByteUncompressCost is how much SDK gas we charge per source byte to unpack.
EmitAcknowledgementEvent emits an event signaling a successful or failed acknowledgement and including the error details if any.
GasRegisterFromContext reads the gas register from the context.
No description provided by the author
GetAsyncAckStorePrefix returns the store prefix for packets that are acknowledged asynchronously.
GetAsyncPacketKey returns the key for a packet that is acknowledged asynchronously.
GetCodeKey constructs the key for retrieving 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.
MarkErrorDeterministic marks an error as deterministic.
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.
NewChainAccessConfigs constructor.
NewCodeGrant constructor.
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.
NewDefaultWasmGasRegister creates instance with default values.
NewEnv initializes the environment for a contract instance.
NewInfo initializes the MessageInfo for a contract instance.
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
NewStoreAdapter constructor.
NewStoreCodeAuthorization constructor.
No description provided by the author
NewWasmCoins translates between Cosmos SDK coins and Wasm coins.
NewWasmGasRegister constructor.
NewWasmVMFlavouredError constructor.
No description provided by the author
ParsePinnedCodeIndex converts the serialized code ID back.
QueryStackSize reads the stack position for smart queries from the context.
No description provided by the author
RegisterInterfaces registers the concrete proto types and interfaces with the SDK interface registry.
RegisterLegacyAminoCodec registers the concrete 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
SubMsgAuthzPolicy reads the authorization policy for submessages from the context.
TxContractsFromContext reads the tx contracts from the context.
TXCounter returns the tx counter value and found bool from the context.
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
WithGasRegister stores the gas register into the context returned.
WithQueryStackSize stores the stack position for smart queries in the context returned.
No description provided by the author
WithSubMsgAuthzPolicy stores the authorization policy for submessages into the context returned.
WithTxContracts stores the tx contracts into the context returned.
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.
event attributes returned from contract execution.
No description provided by the author
No description provided by the author
CodehashWildcard matches any code hash.
ContractCodeHistoryOperationTypeGenesis based on genesis data.
ContractCodeHistoryOperationTypeInit on chain contract instantiation.
ContractCodeHistoryOperationTypeMigrate code migration.
ContractCodeHistoryOperationTypeUnspecified placeholder for empty value.
CustomContractEventPrefix contracts can create custom events.
DefaultCompileCost is how much SDK gas is charged *per byte* for compiling WASM code.
DefaultContractMessageDataCost is how much SDK gas is charged *per byte* of the message that goes to the contract This is used with len(msg).
DefaultEventAttributeDataCost is how much SDK gas is charged *per byte* for attribute data in events.
DefaultEventAttributeDataFreeTier number of bytes of total attribute data we do not charge.
DefaultGasMultiplier is how many CosmWasm gas points = 1 Cosmos SDK gas point.
DefaultInstanceCost is how much SDK gas we charge each time we load a WASM instance.
DefaultInstanceCostDiscount is charged instead of DefaultInstanceCost for cases where we assume the contract is loaded from an in-memory cache.
No description provided by the author
DefaultMaxQueryStackSize maximum size of the stack of recursive queries a contract can make.
DefaultPerAttributeCost is how much SDK gas we charge per attribute count.
DefaultPerCustomEventCost is how much SDK gas we charge per event count.
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
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
ContractAddrLen defines a valid address length for contracts.
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.
ErrExceedMaxCallDepth error if max message stack size is exceeded.
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.
ErrVMError means an error occurred in wasmvm (not in the contract itself, but in the host environment).
No description provided by the author
No description provided by the author
MaxAddressCount is the maximum number of addresses allowed within a message.
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
# 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.
ChainAccessConfigs chain settings.
Deprecated: Do not use.
Code struct encompasses CodeInfo and CodeBytes.
CodeGrant a granted permission for a single code.
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.
DeterministicError is a wrapper type around an error that the creator guarantees to have a deterministic error message.
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.
MsgAddCodeUploadParamsAddresses is the MsgAddCodeUploadParamsAddresses request type.
MsgAddCodeUploadParamsAddressesResponse defines the response structure for executing a MsgAddCodeUploadParamsAddresses message.
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.
MsgIBCWriteAcknowledgementResponse.
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 predictable 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.
MsgRemoveCodeUploadParamsAddresses is the MsgRemoveCodeUploadParamsAddresses request type.
MsgRemoveCodeUploadParamsAddressesResponse defines the response structure for executing a MsgRemoveCodeUploadParamsAddresses message.
MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract request type.
MsgStoreAndInstantiateContractResponse defines the response structure for executing a MsgStoreAndInstantiateContract message.
MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract request type.
MsgStoreAndMigrateContractResponse defines the response structure for executing a MsgStoreAndMigrateContract 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.
MsgUpdateContractLabel sets a new label for a smart contract.
MsgUpdateContractLabelResponse 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.
NodeConfig is the extra config required for wasm.
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.
QueryBuildAddressRequest is the request type for the Query/BuildAddress RPC method.
QueryBuildAddressResponse is the response type for the Query/BuildAddress RPC method.
QueryCodeInfoRequest is the request type for the Query/CodeInfo RPC method.
QueryCodeInfoResponse is the response type for the Query/CodeInfo 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.
QueryWasmLimitsConfigRequest is the request type for the Query/WasmLimitsConfig RPC method.
QueryWasmLimitsConfigResponse is the response type for the Query/WasmLimitsConfig RPC method.
Sequence key and value of an id generation counter.
StoreAdapter adapter to bridge SDK store impl to wasmvm.
Deprecated: Do not use.
StoreCodeAuthorization defines authorization for wasm code upload.
Deprecated: Do not use.
Deprecated: Do not use.
No description provided by the author
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.
VMConfig contains configurations that are passed on to CosmWasm VM.
WasmGasRegister implements GasRegister interface.
WasmGasRegisterConfig config type.
WasmVMFlavouredError wrapper for sdk error that supports wasmvm error types.
# Interfaces
AccountKeeper defines a subset of methods implemented by the cosmos-sdk account keeper.
AuthorizationPolicy is an abstract authorization ruleset defined as an extension point that can be customized by chains.
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.
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.
GasRegister abstract source for gas costs.
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.
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.
WasmEngine defines the WASM contract runtime engine.
WasmVMErrorable mapped error type in wasmvm and are not redacted.
# Type aliases
AccessType permission types.
No description provided by the author
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.