package
0.55.0-beta.1
Repository: https://github.com/cosmwasm/wasmd.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AcceptListGrpcQuerier supports a preconfigured set of gRPC queries only.
AcceptListStargateQuerier supports a preconfigured set of stargate queries only.
No description provided by the author
No description provided by the author
BuildContractAddressClassic builds an address for a contract.
BuildContractAddressPredictable generates a contract address for the wasm module with len = types.ContractAddrLen using the Cosmos SDK address.Module function.
BuiltInCapabilities returns all capabilities currently supported by this version of x/wasm.
No description provided by the author
ConvertProtoToJSONMarshal unmarshals the given bytes into a proto message and then marshals it to json.
ConvertSdkCoinsToWasmCoins convert sdk type to wasmvm coins type.
ConvertSdkCoinToWasmCoin convert sdk type to wasmvm coin type.
ConvertSDKDecCoinsToWasmDecCoins convert sdk to wasmvm type.
ConvertSDKDelegatorRewardsToWasmRewards convert sdk to wasmvm type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConvertWasmCoinsToSdkCoins converts the wasm vm type coins to sdk type coins.
ConvertWasmCoinToSdkCoin converts a wasm vm type coin to sdk type coin.
ConvertWasmIBCTimeoutHeightToCosmosHeight converts a wasmvm type ibc timeout height to ibc module type height.
CreateDefaultTestInput common settings for CreateTestInput.
CreateTestInput encoders can be nil to accept the defaults, or set it to override some of the message handlers (like default).
No description provided by the author
No description provided by the author
DeterministicAccountAddress creates a test address with v repeated to valid address size.
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
ExportGenesis returns a GenesisState for a given context and keeper.
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
InitGenesis sets supply information for genesis.
InstantiateHackatomExampleContract load and instantiate the "./testdata/hackatom.wasm" contract.
InstantiateIBCReflectContract load and instantiate the "./testdata/ibc_reflect.wasm" contract.
InstantiateReflectExampleContract load and instantiate the "./testdata/reflect_2_0.wasm" contract.
InstantiateReflectExampleContractWithPortID load and instantiate the "./testdata/reflect_2_0.wasm" contract with defined port ID.
No description provided by the author
No description provided by the author
No description provided by the author
NewBurnCoinMessageHandler handles wasmvm.BurnMsg messages.
NewCountTXDecorator constructor.
NewDefaultMessageHandler constructor.
No description provided by the author
No description provided by the author
NewGasRegisterDecorator constructor.
NewGovAuthorizationPolicy public constructor.
No description provided by the author
NewGrpcQuerier constructor.
NewIBCRawPacketHandler constructor.
NewKeeper creates a new contract Keeper instance If customEncoders is non-nil, we can use this to override some of the message handler, especially custom.
NewLegacyWasmProposalHandler creates a new governance Handler for wasm proposals Deprecated: Do not use v1beta1 handlers anymore.
NewLegacyWasmProposalHandlerX creates a new governance Handler for wasm proposals Deprecated: Do not use v1beta1 handlers anymore.
NewLimitSimulationGasDecorator constructor accepts nil value to fallback to block gas limit.
NewMessageDispatcher constructor.
No description provided by the author
NewMigrator returns a new Migrator.
NewMsgServerImpl default constructor.
No description provided by the author
NewPartialGovAuthorizationPolicy 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
NewTxContractsDecorator constructor.
NewVestingCoinBurner constructor.
No description provided by the author
NewWasmVMMetricsCollector constructor.
No description provided by the author
No description provided by the author
No description provided by the author
PredictableAddressGenerator generates a predictable contract address.
Querier creates a new grpc querier instance.
No description provided by the author
No description provided by the author
No description provided by the author
RejectStargateQuerier rejects all stargate queries.
SeedNewContractInstance sets the mock WasmEngine in keeper and calls store + instantiate to init the contract's metadata.
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
StoreRandomContract sets the mock WasmEngine in keeper and calls store.
No description provided by the author
No description provided by the author
TestHandler returns a wasm handler for tests (to avoid circular imports).
UInt64LengthPrefix prepend big endian encoded byte length.
No description provided by the author
WitGovSubMsgAuthZPropagated overwrites the default gov authorization policy for sub-messages.
WithAcceptedAccountTypesOnContractInstantiation sets the accepted account types.
WithAccountPruner is an optional constructor parameter to set a custom type that handles balances and data cleanup for accounts pruned on contract instantiate.
WithAPICosts sets custom api costs.
WithCoinTransferrer is an optional constructor parameter to set a custom coin transferrer.
WithGasRegister set a new gas register to implement custom gas costs.
No description provided by the author
WithMaxQueryStackSize overwrites the default limit for maximum query stacks.
WithMessageEncoders is an optional constructor parameter to pass custom message encoder to the default wasm message handler.
WithMessageHandler is an optional constructor parameter to set a custom handler for wasmVM messages.
WithMessageHandlerDecorator is an optional constructor parameter to decorate the wasm handler for wasmVM messages.
WithQueryHandler is an optional constructor parameter to set custom query handler for wasmVM requests.
WithQueryHandlerDecorator is an optional constructor parameter to decorate the default wasm query handler for wasmVM requests.
WithQueryPlugins is an optional constructor parameter to pass custom query plugins for wasmVM requests.
No description provided by the author
WithWasmEngine is an optional constructor parameter to replace the default wasmVM engine with the given one.
WithWasmEngineDecorator is an optional constructor parameter to decorate the default wasmVM engine.

# Constants

DefaultDeserializationCostPerByte The formula should be `len(data) * deserializationCostPerByte`.
DefaultGasCostBuildAddress is the SDK gas cost to build a contract address.
DefaultGasCostCanonicalAddress is how much SDK gas we charge to convert to a canonical address format.
DefaultGasCostHumanAddress is how much SDK gas we charge to convert to a human address format.
DefaultGasCostValidateAddress is how much SDK gas we charge to validate an address.
SnapshotFormat format 1 is just gzipped wasm byte code for each item payload.

# Variables

No description provided by the author
No description provided by the author

# Structs

BankCoinTransferrer replicates the cosmos-sdk behavior as in https://github.com/cosmos/cosmos-sdk/blob/v0.41.4/x/bank/keeper/msg_server.go#L26.
No description provided by the author
CountTXDecorator ante handler to count the tx position in a block.
No description provided by the author
DefaultWasmVMContractResponseHandler default implementation that first dispatches submessage then normal messages.
No description provided by the author
No description provided by the author
No description provided by the author
GasRegisterDecorator ante decorator to store gas register in the context.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IBCRawPacketHandler handles IBC.SendPacket messages which are published to an IBC channel.
No description provided by the author
No description provided by the author
Keeper will have a reference to Wasm Engine with it's own data directory.
LimitSimulationGasDecorator ante decorator to limit gas in simulation calls.
MessageDispatcher coordinates message sending and submessage reply/ state commits.
No description provided by the author
MessageHandlerChain defines a chain of handlers that are called one by one until it can be handled.
Migrator is a struct for handling in-place store migrations.
MultipliedGasMeter wraps the GasMeter from context and multiplies all reads by out defined multiplier.
PartialGovAuthorizationPolicy decorates the given default policy to add fine-grained gov permissions to the defined action.
No description provided by the author
No description provided by the author
No description provided by the author
SDKMessageHandler can handles messages that can be encoded into sdk.Message types and routed.
No description provided by the author
No description provided by the author
TxContractsDecorator implements an AnteHandler that keeps track of which contracts were already accessed during the current transaction.
VestingCoinBurner default implementation for AccountPruner to burn the coins.
No description provided by the author
WasmVMMetricsCollector custom metrics collector to be used with Prometheus.

# Interfaces

AccountPruner handles the balances and data cleanup for accounts that are pruned on contract instantiate.
No description provided by the author
No description provided by the author
MessageRouter ADR 031 request type routing.
Messenger is an extension point for custom wasmd message handling.
Option is an extension point to instantiate keeper with non default values.
ValidatorSetSource is a subset of the staking keeper.
WasmVMQueryHandler is an extension point for custom query handler implementations.
WasmVMResponseHandler is an extension point to handles the response data returned by a contract call.

# Type aliases

AcceptedQueries defines accepted Stargate or gRPC queries as a map where the key is the query path and the value is a function returning a proto.Message.
AddressGenerator abstract address generator to be used for a single contract address.
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
MessageHandlerFunc is a helper to construct a function based message handler.
No description provided by the author
No description provided by the author
No description provided by the author
WasmVMQueryHandlerFn is a helper to construct a function based query handler.