package
1.5.5
Repository: https://github.com/cosmwasm/wasmvm.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
ForceNewChecksum creates a Checksum instance from a hex string.
No description provided by the author
this is a thin wrapper around the desired Go API to give us types closer to Rust FFI.
No description provided by the author
ToSystemError will try to convert the given error to an SystemError.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These are the only two valid values for IbcOrder.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These are the only two valid values for IbcOrder.
The default value.
The default value.
No description provided by the author

# Structs

No description provided by the author
AllBalancesResponse is the expected response to AllBalancesQuery.
No description provided by the author
AllDelegationsResponse is the expected response to AllDelegationsQuery.
No description provided by the author
No description provided by the author
No description provided by the author
AllValidatorsResponse is the expected response to AllValidatorsQuery.
Contains static analysis info of the contract (the Wasm code to be precise).
No description provided by the author
BalanceResponse is the expected response to BalanceQuery.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BurnMsg will burn the given coins from the contract's account.
No description provided by the author
No description provided by the author
ClearAdminMsg is the Go counterpart of WasmMsg::ClearAdmin (https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta5/packages/std/src/results/cosmos_msg.rs#L158-L160).
No description provided by the author
No description provided by the author
No description provided by the author
Coin is a string representation of the sdk.Coin type (more portable than sdk.Int).
No description provided by the author
No description provided by the author
No description provided by the author
ContractResult is the raw response from the instantiate/execute/migrate calls.
CosmosMsg is an rust enum and only (exactly) one of the fields should be set Should we do a cleaner approach in Go? (type/data?).
A coin type with decimal amount.
No description provided by the author
No description provided by the author
No description provided by the author
DelegationResponse is the expected response to DelegationsQuery.
No description provided by the author
See <https://github.com/cosmos/cosmos-sdk/blob/c74e2887b0b73e81d48c2f33e6b1020090089ee0/proto/cosmos/distribution/v1beta1/query.proto#L169-L178>.
No description provided by the author
See <https://github.com/cosmos/cosmos-sdk/blob/c74e2887b0b73e81d48c2f33e6b1020090089ee0/proto/cosmos/distribution/v1beta1/query.proto#L189-L200>.
No description provided by the author
No description provided by the author
See <https://github.com/cosmos/cosmos-sdk/blob/b0acf60e6c39f7ab023841841fc0b751a12c13ff/proto/cosmos/distribution/v1beta1/query.proto#L212-L220>.
No description provided by the author
No description provided by the author
Replicating the cosmos-sdk bank module Metadata type.
No description provided by the author
No description provided by the author
Replicating the cosmos-sdk bank module DenomUnit type.
No description provided by the author
No description provided by the author
Env defines the state of the blockchain environment this contract is running in.
No description provided by the author
EventAttribute.
ExecuteMsg is used to call another defined contract on this chain.
No description provided by the author
No description provided by the author
FundCommunityPoolMsg is translated to a [MsgFundCommunityPool](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#LL69C1-L76C2).
No description provided by the author
No description provided by the author
No description provided by the author
IBC3ChannelOpenResponse is version negotiation data for the handshake.
No description provided by the author
IBCBasicResponse defines the return value on a successful processing.
This is the return value for the majority of the ibc handlers.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IBCChannelOpenResult is the raw response from the ibc_channel_open call.
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
IBCQuery defines a query request from the contract into the chain.
IBCReceiveResponse defines the return value on packet response processing.
This is the return value for the majority of the ibc handlers.
IBCTimeout is the timeout for an IBC packet.
IBCTimeoutBlock Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients.
Instantiate2Msg will create a new contract instance from a previously uploaded CodeID using the predictable address derivation.
InstantiateMsg will create a new contract instance from a previously uploaded CodeID.
No description provided by the author
No description provided by the author
ListChannelsQuery is an IBCQuery that lists all channels that are bound to a given port.
No description provided by the author
No description provided by the author
No description provided by the author
MigrateMsg will migrate an existing contract from it's current wasm code (logic) to another previously uploaded wasm code.
No description provided by the author
No description provided by the author
No description provided by the author
Simplified version of the cosmos-sdk PageRequest type.
No description provided by the author
No description provided by the author
This is a 2-level result.
QueryRequest is an rust enum and only (exactly) one of the fields should be set Should we do a cleaner approach in Go? (type/data?).
RawQuery response is raw bytes ([]byte).
No description provided by the author
No description provided by the author
Response defines the return value on a successful instantiate/execute/migrate.
SendMsg contains instructions for a Cosmos-SDK/SendMsg It has a fixed interface here and should be converted into the proper SDK format before dispatching.
No description provided by the author
SetWithdrawAddressMsg is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37).
SmartQuery response is raw bytes ([]byte).
No description provided by the author
No description provided by the author
StargateMsg is encoded the same way as a protobof [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto).
StargateQuery is encoded the same way as abci_query, with path and protobuf encoded request data.
SubMsg wraps a CosmosMsg with some metadata for handling replies (ID) and optionally limiting the gas usage (GasLimit).
SubMsgResponse contains information we get back from a successful sub message execution, with full Cosmos SDK events.
SubMsgResult is the raw response we return from wasmd after executing a SubMsg.
No description provided by the author
SupplyResponse is the expected response to SupplyQuery.
SystemError captures all errors returned from the Rust code as SystemError.
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
UpdateAdminMsg is the Go counterpart of WasmMsg::UpdateAdmin (https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta5/packages/std/src/results/cosmos_msg.rs#L158-L160).
No description provided by the author
No description provided by the author
ValidatorResponse is the expected response to ValidatorQuery.
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
WithdrawDelegatorRewardMsg is translated to a [MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50).

# Interfaces

GasMeter is a read-only version of the sdk gas meter It is a copy of an interface declaration from cosmos-sdk https://github.com/cosmos/cosmos-sdk/blob/18890a225b46260a9adc587be6fa1cc2aff101cd/store/types/gas.go#L34.
Iterator represents an iterator over a domain of keys.
KVStore copies a subset of types from cosmos-sdk We may wish to make this more generic sometime in the future, but not now https://github.com/cosmos/cosmos-sdk/blob/bef3689245bab591d7d169abd6bea52db97a70c7/store/types/store.go#L170.
Querier is a thing that allows the contract to query information from the environment it is executed in.

# Type aliases

CanonicalAddress uses standard base64 encoding, just use it as a label for developers.
No description provided by the author
Checksum represents a hash of the Wasm bytecode that serves as an ID.
Coins handles properly serializing empty amounts.
No description provided by the author
EventAttributes must encode empty array as [].
Events must encode empty array as [].
No description provided by the author
HumanAddress is a printable (typically bech32 encoded) address string.
No description provided by the author
IBCChannels must JSON encode empty array as [] (not null) for consistency with Rust parser.
IBCEndpoints must JSON encode empty array as [] (not null) for consistency with Rust parser.
TODO: test what the sdk Order.String() represents and how to parse back Proto files: https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/core/channel/v1/channel.proto#L69-L80 Auto-gen code: https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/x/ibc/core/04-channel/types/channel.pb.go#L70-L101.
QueryResponse is the Go counterpart of `ContractResult<Binary>`.
Deprecated: Renamed to SubMsgResponse.
Deprecated: Renamed to SubMsgResult.
Validators must JSON encode empty array as [].