Versions in this module Expand all Collapse all v1 v1.0.0 Oct 9, 2024 Changes in this version + const DefaultDeserializationCostPerByte + const DefaultGasCostBuildAddress + const DefaultGasCostCanonicalAddress + const DefaultGasCostHumanAddress + const DefaultGasCostValidateAddress + const SnapshotFormat + var ModelFuzzers = []interface + var TestingStakeParams = stakingtypes.Params + func AcceptListGrpcQuerier(acceptList AcceptedQueries, queryRouter GRPCQueryRouter, codec codec.Codec) func(ctx sdk.Context, request *wasmvmtypes.GrpcQuery) (proto.Message, error) + func AcceptListStargateQuerier(acceptList AcceptedQueries, queryRouter GRPCQueryRouter, codec codec.Codec) func(ctx sdk.Context, request *wasmvmtypes.StargateQuery) ([]byte, error) + func BankQuerier(bankKeeper types.BankViewKeeper) func(ctx sdk.Context, request *wasmvmtypes.BankQuery) ([]byte, error) + func BuildContractAddressClassic(codeID, instanceID uint64) sdk.AccAddress + func BuildContractAddressPredictable(checksum []byte, creator sdk.AccAddress, ...) sdk.AccAddress + func BuiltInCapabilities() []string + func ContractFromPortID(portID string) (sdk.AccAddress, error) + func ConvertProtoToJSONMarshal(cdc codec.Codec, protoResponse proto.Message, bz []byte) ([]byte, error) + func ConvertSDKDecCoinsToWasmDecCoins(src sdk.DecCoins) []wasmvmtypes.DecCoin + func ConvertSDKDelegatorRewardsToWasmRewards(rewards []distributiontypes.DelegationDelegatorReward) []wasmvmtypes.DelegatorReward + func ConvertSdkCoinToWasmCoin(coin sdk.Coin) wasmvmtypes.Coin + func ConvertSdkCoinsToWasmCoins(coins []sdk.Coin) wasmvmtypes.Array[wasmvmtypes.Coin] + func ConvertSdkDenomMetadataToWasmDenomMetadata(metadata banktypes.Metadata) wasmvmtypes.DenomMetadata + func ConvertSdkDenomMetadatasToWasmDenomMetadatas(metadata []banktypes.Metadata) []wasmvmtypes.DenomMetadata + func ConvertSdkDenomUnitsToWasmDenomUnits(denomUnits []*banktypes.DenomUnit) []wasmvmtypes.DenomUnit + func ConvertToDenomsMetadataRequest(wasmRequest *wasmvmtypes.AllDenomMetadataQuery) *banktypes.QueryDenomsMetadataRequest + func ConvertWasmCoinToSdkCoin(coin wasmvmtypes.Coin) (sdk.Coin, error) + func ConvertWasmCoinsToSdkCoins(coins []wasmvmtypes.Coin) (sdk.Coins, error) + func ConvertWasmIBCTimeoutHeightToCosmosHeight(ibcTimeoutBlock *wasmvmtypes.IBCTimeoutBlock) ibcclienttypes.Height + func DeterministicAccountAddress(_ testing.TB, v byte) sdk.AccAddress + func DistributionQuerier(k types.DistributionKeeper) func(ctx sdk.Context, request *wasmvmtypes.DistributionQuery) ([]byte, error) + func EncodeBankMsg(sender sdk.AccAddress, msg *wasmvmtypes.BankMsg) ([]sdk.Msg, error) + func EncodeDistributionMsg(sender sdk.AccAddress, msg *wasmvmtypes.DistributionMsg) ([]sdk.Msg, error) + func EncodeGovMsg(sender sdk.AccAddress, msg *wasmvmtypes.GovMsg) ([]sdk.Msg, error) + func EncodeIBCMsg(portSource types.ICS20TransferPortSource) ... + func EncodeStakingMsg(sender sdk.AccAddress, msg *wasmvmtypes.StakingMsg) ([]sdk.Msg, error) + func EncodeWasmMsg(sender sdk.AccAddress, msg *wasmvmtypes.WasmMsg) ([]sdk.Msg, error) + func ExportGenesis(ctx sdk.Context, keeper *Keeper) *types.GenesisState + func FuzzAbsoluteTxPosition(m *types.AbsoluteTxPosition, c fuzz.Continue) + func FuzzAccessConfig(m *types.AccessConfig, c fuzz.Continue) + func FuzzAccessType(m *types.AccessType, c fuzz.Continue) + func FuzzAddr(m *sdk.AccAddress, c fuzz.Continue) + func FuzzAddrString(m *string, c fuzz.Continue) + func FuzzContractCodeHistory(m *types.ContractCodeHistoryEntry, c fuzz.Continue) + func FuzzContractInfo(m *types.ContractInfo, c fuzz.Continue) + func FuzzStateModel(m *types.Model, c fuzz.Continue) + func IBCQuerier(wasm contractMetaDataSource, channelKeeper types.ChannelKeeper) ... + func InitGenesis(ctx sdk.Context, keeper *Keeper, data types.GenesisState) ([]abci.ValidatorUpdate, error) + func MakeEncodingConfig(_ testing.TB) moduletestutil.TestEncodingConfig + func MakeTestCodec(t testing.TB) codec.Codec + func NewGovAuthorizationPolicy(actions ...types.AuthorizationPolicyAction) types.AuthorizationPolicy + func NewLegacyWasmProposalHandler(k decoratedKeeper, enabledProposalTypes []types.ProposalType) v1beta1.Handler + func NewLegacyWasmProposalHandlerX(k types.ContractOpsKeeper, enabledProposalTypes []types.ProposalType) v1beta1.Handler + func NewMsgServerImpl(k *Keeper) types.MsgServer + func NoCustomMsg(_ sdk.AccAddress, _ json.RawMessage) ([]sdk.Msg, error) + func NoCustomQuerier(sdk.Context, json.RawMessage) ([]byte, error) + func PortIDForContract(addr sdk.AccAddress) string + func RandomAccountAddress(_ testing.TB) sdk.AccAddress + func RandomBech32AccountAddress(t testing.TB) string + func RejectGrpcQuerier(ctx sdk.Context, request *wasmvmtypes.GrpcQuery) (proto.Message, error) + func RejectStargateQuerier() func(ctx sdk.Context, request *wasmvmtypes.StargateQuery) ([]byte, error) + func StakingQuerier(keeper types.StakingKeeper, distKeeper types.DistributionKeeper) func(ctx sdk.Context, request *wasmvmtypes.StakingQuery) ([]byte, error) + func UInt64LengthPrefix(bz []byte) []byte + func WasmQuerier(k wasmQueryKeeper) func(ctx sdk.Context, request *wasmvmtypes.WasmQuery) ([]byte, error) + type AcceptedQueries map[string]proto.Message + type AccountPruner interface + CleanupExistingAccount func(ctx sdk.Context, existingAccount sdk.AccountI) (handled bool, err error) + type AddressGenerator func(ctx context.Context, codeID uint64, checksum []byte) sdk.AccAddress + func PredictableAddressGenerator(creator sdk.AccAddress, salt, msg []byte, fixMsg bool) AddressGenerator + type AnyEncoder func(sender sdk.AccAddress, msg *wasmvmtypes.AnyMsg) ([]sdk.Msg, error) + func EncodeAnyMsg(unpacker codectypes.AnyUnpacker) AnyEncoder + type BankCoinTransferrer struct + func NewBankCoinTransferrer(keeper types.BankKeeper) BankCoinTransferrer + func (c BankCoinTransferrer) TransferCoins(parentCtx sdk.Context, fromAddr, toAddr sdk.AccAddress, amount sdk.Coins) error + type BankEncoder func(sender sdk.AccAddress, msg *wasmvmtypes.BankMsg) ([]sdk.Msg, error) + type BurnerExampleInitMsg struct + Delete uint32 + Payout sdk.AccAddress + func (m BurnerExampleInitMsg) GetBytes(t testing.TB) []byte + type CoinTransferrer interface + TransferCoins func(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error + type ContractConfirmStateAck []byte + func (w ContractConfirmStateAck) Acknowledgement() []byte + func (w ContractConfirmStateAck) Success() bool + type CountTXDecorator struct + func NewCountTXDecorator(s corestoretypes.KVStoreService) *CountTXDecorator + func (a CountTXDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) + type CustomEncoder func(sender sdk.AccAddress, msg json.RawMessage) ([]sdk.Msg, error) + type CustomQuerier func(ctx sdk.Context, request json.RawMessage) ([]byte, error) + type DefaultAuthorizationPolicy struct + func (p DefaultAuthorizationPolicy) CanCreateCode(chainConfigs types.ChainAccessConfigs, actor sdk.AccAddress, ...) bool + func (p DefaultAuthorizationPolicy) CanInstantiateContract(config types.AccessConfig, actor sdk.AccAddress) bool + func (p DefaultAuthorizationPolicy) CanModifyCodeAccessConfig(creator, actor sdk.AccAddress, isSubset bool) bool + func (p DefaultAuthorizationPolicy) CanModifyContract(admin, actor sdk.AccAddress) bool + func (p DefaultAuthorizationPolicy) SubMessageAuthorizationPolicy(_ types.AuthorizationPolicyAction) types.AuthorizationPolicy + type DefaultWasmVMContractResponseHandler struct + func NewDefaultWasmVMContractResponseHandler(md msgDispatcher) *DefaultWasmVMContractResponseHandler + func (h DefaultWasmVMContractResponseHandler) Handle(ctx sdk.Context, contractAddr sdk.AccAddress, ibcPort string, ...) ([]byte, error) + type DistributionEncoder func(sender sdk.AccAddress, msg *wasmvmtypes.DistributionMsg) ([]sdk.Msg, error) + type ExampleContract struct + Checksum []byte + CodeID uint64 + Creator crypto.PrivKey + CreatorAddr sdk.AccAddress + InitialAmount sdk.Coins + func StoreBurnerExampleContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) ExampleContract + func StoreExampleContract(t testing.TB, ctx sdk.Context, keepers TestKeepers, wasmFile string) ExampleContract + func StoreExampleContractWasm(t testing.TB, ctx sdk.Context, keepers TestKeepers, wasmCode []byte) ExampleContract + func StoreHackatomExampleContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) ExampleContract + func StoreIBCReflectContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) ExampleContract + func StoreRandomContract(t testing.TB, ctx sdk.Context, keepers TestKeepers, mock types.WasmEngine) ExampleContract + func StoreRandomContractWithAccessConfig(t testing.TB, ctx sdk.Context, keepers TestKeepers, mock types.WasmEngine, ...) ExampleContract + func StoreReflectContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) ExampleContract + type ExampleContractInstance struct + Contract sdk.AccAddress + func SeedNewContractInstance(t testing.TB, ctx sdk.Context, keepers TestKeepers, mock types.WasmEngine) ExampleContractInstance + type ExampleInstance struct + Contract sdk.AccAddress + Deposit sdk.Coins + Label string + func InstantiateReflectExampleContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) ExampleInstance + func InstantiateReflectExampleContractWithPortID(t testing.TB, ctx sdk.Context, keepers TestKeepers, portID string) ExampleInstance + type GRPCQueryRouter interface + Route func(path string) baseapp.GRPCQueryHandler + type GasRegisterDecorator struct + func NewGasRegisterDecorator(gr types.GasRegister) *GasRegisterDecorator + func (g GasRegisterDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) + type GovAuthorizationPolicy struct + func (p GovAuthorizationPolicy) CanCreateCode(types.ChainAccessConfigs, sdk.AccAddress, types.AccessConfig) bool + func (p GovAuthorizationPolicy) CanInstantiateContract(types.AccessConfig, sdk.AccAddress) bool + func (p GovAuthorizationPolicy) CanModifyCodeAccessConfig(sdk.AccAddress, sdk.AccAddress, bool) bool + func (p GovAuthorizationPolicy) CanModifyContract(sdk.AccAddress, sdk.AccAddress) bool + func (p GovAuthorizationPolicy) SubMessageAuthorizationPolicy(action types.AuthorizationPolicyAction) types.AuthorizationPolicy + type GrpcQuerier struct + func NewGrpcQuerier(cdc codec.Codec, storeService corestoretypes.KVStoreService, ...) *GrpcQuerier + func Querier(k *Keeper) *GrpcQuerier + func (q GrpcQuerier) AllContractState(c context.Context, req *types.QueryAllContractStateRequest) (*types.QueryAllContractStateResponse, error) + func (q GrpcQuerier) BuildAddress(c context.Context, req *types.QueryBuildAddressRequest) (*types.QueryBuildAddressResponse, error) + func (q GrpcQuerier) Code(c context.Context, req *types.QueryCodeRequest) (*types.QueryCodeResponse, error) + func (q GrpcQuerier) CodeInfo(c context.Context, req *types.QueryCodeInfoRequest) (*types.QueryCodeInfoResponse, error) + func (q GrpcQuerier) Codes(c context.Context, req *types.QueryCodesRequest) (*types.QueryCodesResponse, error) + func (q GrpcQuerier) ContractHistory(c context.Context, req *types.QueryContractHistoryRequest) (*types.QueryContractHistoryResponse, error) + func (q GrpcQuerier) ContractInfo(c context.Context, req *types.QueryContractInfoRequest) (*types.QueryContractInfoResponse, error) + func (q GrpcQuerier) ContractsByCode(c context.Context, req *types.QueryContractsByCodeRequest) (*types.QueryContractsByCodeResponse, error) + func (q GrpcQuerier) ContractsByCreator(c context.Context, req *types.QueryContractsByCreatorRequest) (*types.QueryContractsByCreatorResponse, error) + func (q GrpcQuerier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (q GrpcQuerier) PinnedCodes(c context.Context, req *types.QueryPinnedCodesRequest) (*types.QueryPinnedCodesResponse, error) + func (q GrpcQuerier) RawContractState(c context.Context, req *types.QueryRawContractStateRequest) (*types.QueryRawContractStateResponse, error) + func (q GrpcQuerier) SmartContractState(c context.Context, req *types.QuerySmartContractStateRequest) (rsp *types.QuerySmartContractStateResponse, err error) + type HackatomExampleInitMsg struct + Beneficiary sdk.AccAddress + Verifier sdk.AccAddress + func (m HackatomExampleInitMsg) GetBytes(t testing.TB) []byte + type HackatomExampleInstance struct + Beneficiary crypto.PrivKey + BeneficiaryAddr sdk.AccAddress + Contract sdk.AccAddress + Deposit sdk.Coins + Label string + Verifier crypto.PrivKey + VerifierAddr sdk.AccAddress + func InstantiateHackatomExampleContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) HackatomExampleInstance + type IBCEncoder func(ctx sdk.Context, sender sdk.AccAddress, contractIBCPortID string, ...) ([]sdk.Msg, error) + type IBCRawPacketHandler struct + func NewIBCRawPacketHandler(ics4Wrapper types.ICS4Wrapper, wasmKeeper types.IBCContractKeeper, ...) IBCRawPacketHandler + func (h IBCRawPacketHandler) DispatchMsg(ctx sdk.Context, _ sdk.AccAddress, contractIBCPortID string, ...) ([]sdk.Event, [][]byte, [][]*codectypes.Any, error) + type IBCReflectExampleInstance struct + Admin sdk.AccAddress + CodeID uint64 + Contract sdk.AccAddress + ReflectCodeID uint64 + func InstantiateIBCReflectContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) IBCReflectExampleInstance + func (m IBCReflectExampleInstance) GetBytes(t testing.TB) []byte + type IBCReflectInitMsg struct + ReflectCodeID uint64 + func (m IBCReflectInitMsg) GetBytes(t testing.TB) []byte + type Keeper struct + func NewKeeper(cdc codec.Codec, storeService corestoretypes.KVStoreService, ...) Keeper + func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool + func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error + func (k Keeper) ClassicAddressGenerator() AddressGenerator + func (k Keeper) DeleteAsyncAckPacket(ctx context.Context, portID, channelID string, sequence uint64) + func (k Keeper) GetAuthority() string + func (k Keeper) GetByteCode(ctx context.Context, codeID uint64) ([]byte, error) + func (k Keeper) GetCodeInfo(ctx context.Context, codeID uint64) *types.CodeInfo + func (k Keeper) GetContractHistory(ctx context.Context, contractAddr sdk.AccAddress) []types.ContractCodeHistoryEntry + func (k Keeper) GetContractInfo(ctx context.Context, contractAddress sdk.AccAddress) *types.ContractInfo + func (k Keeper) GetGasRegister() types.GasRegister + func (k Keeper) GetParams(ctx context.Context) types.Params + func (k Keeper) HasContractInfo(ctx context.Context, contractAddress sdk.AccAddress) bool + func (k Keeper) IBCDestinationCallback(ctx sdk.Context, contractAddr sdk.AccAddress, ...) error + func (k Keeper) IBCSourceCallback(ctx sdk.Context, contractAddr sdk.AccAddress, ...) error + func (k Keeper) InitializePinnedCodes(ctx context.Context) error + func (k Keeper) IsPinnedCode(ctx context.Context, codeID uint64) bool + func (k Keeper) IterateCodeInfos(ctx context.Context, cb func(uint64, types.CodeInfo) bool) + func (k Keeper) IterateContractInfo(ctx context.Context, cb func(sdk.AccAddress, types.ContractInfo) bool) + func (k Keeper) IterateContractState(ctx context.Context, contractAddress sdk.AccAddress, ...) + func (k Keeper) IterateContractsByCode(ctx context.Context, codeID uint64, cb func(address sdk.AccAddress) bool) + func (k Keeper) IterateContractsByCreator(ctx context.Context, creator sdk.AccAddress, ...) + func (k Keeper) LoadAsyncAckPacket(ctx context.Context, portID, channelID string, sequence uint64) (channeltypes.Packet, error) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) OnAckPacket(ctx sdk.Context, contractAddr sdk.AccAddress, msg wasmvmtypes.IBCPacketAckMsg) error + func (k Keeper) OnCloseChannel(ctx sdk.Context, contractAddr sdk.AccAddress, ...) error + func (k Keeper) OnConnectChannel(ctx sdk.Context, contractAddr sdk.AccAddress, ...) error + func (k Keeper) OnOpenChannel(ctx sdk.Context, contractAddr sdk.AccAddress, ...) (string, error) + func (k Keeper) OnRecvPacket(ctx sdk.Context, contractAddr sdk.AccAddress, ...) (ibcexported.Acknowledgement, error) + func (k Keeper) OnTimeoutPacket(ctx sdk.Context, contractAddr sdk.AccAddress, ...) error + func (k Keeper) PeekAutoIncrementID(ctx context.Context, sequenceKey []byte) (uint64, error) + func (k Keeper) QueryGasLimit() storetypes.Gas + func (k Keeper) QueryRaw(ctx context.Context, contractAddress sdk.AccAddress, key []byte) []byte + func (k Keeper) QuerySmart(ctx context.Context, contractAddr sdk.AccAddress, req []byte) ([]byte, error) + func (k Keeper) SetParams(ctx context.Context, ps types.Params) error + func (k Keeper) StoreAsyncAckPacket(ctx context.Context, packet channeltypes.Packet) error + func (k Keeper) Sudo(ctx context.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) + type LimitSimulationGasDecorator struct + func NewLimitSimulationGasDecorator(gasLimit *storetypes.Gas) *LimitSimulationGasDecorator + func (d LimitSimulationGasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) + type MessageDispatcher struct + func NewMessageDispatcher(messenger Messenger, keeper replyer) *MessageDispatcher + func (d MessageDispatcher) DispatchMessages(ctx sdk.Context, contractAddr sdk.AccAddress, ibcPort string, ...) error + func (d MessageDispatcher) DispatchSubmessages(ctx sdk.Context, contractAddr sdk.AccAddress, ibcPort string, ...) ([]byte, error) + type MessageEncoders struct + Any func(sender sdk.AccAddress, msg *wasmvmtypes.AnyMsg) ([]sdk.Msg, error) + Bank func(sender sdk.AccAddress, msg *wasmvmtypes.BankMsg) ([]sdk.Msg, error) + Custom func(sender sdk.AccAddress, msg json.RawMessage) ([]sdk.Msg, error) + Distribution func(sender sdk.AccAddress, msg *wasmvmtypes.DistributionMsg) ([]sdk.Msg, error) + Gov func(sender sdk.AccAddress, msg *wasmvmtypes.GovMsg) ([]sdk.Msg, error) + IBC func(ctx sdk.Context, sender sdk.AccAddress, contractIBCPortID string, ...) ([]sdk.Msg, error) + Staking func(sender sdk.AccAddress, msg *wasmvmtypes.StakingMsg) ([]sdk.Msg, error) + Wasm func(sender sdk.AccAddress, msg *wasmvmtypes.WasmMsg) ([]sdk.Msg, error) + func DefaultEncoders(unpacker codectypes.AnyUnpacker, portSource types.ICS20TransferPortSource) MessageEncoders + func (e MessageEncoders) Encode(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, ...) ([]sdk.Msg, error) + func (e MessageEncoders) Merge(o *MessageEncoders) MessageEncoders + type MessageHandlerChain struct + func NewMessageHandlerChain(first Messenger, others ...Messenger) *MessageHandlerChain + func (m MessageHandlerChain) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, ...) ([]sdk.Event, [][]byte, [][]*codectypes.Any, error) + type MessageHandlerFunc func(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, ...) (events []sdk.Event, data [][]byte, msgResponses [][]*codectypes.Any, err error) + func NewBurnCoinMessageHandler(burner types.Burner) MessageHandlerFunc + func (m MessageHandlerFunc) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, ...) (events []sdk.Event, data [][]byte, msgResponses [][]*codectypes.Any, err error) + type MessageRouter interface + Handler func(msg sdk.Msg) baseapp.MsgServiceHandler + func TestHandler(k types.ContractOpsKeeper) MessageRouter + type MessageRouterFunc func(ctx sdk.Context, req sdk.Msg) (*sdk.Result, error) + func (m MessageRouterFunc) Handler(_ sdk.Msg) baseapp.MsgServiceHandler + type Messenger interface + DispatchMsg func(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, ...) (events []sdk.Event, data [][]byte, msgResponses [][]*codectypes.Any, err error) + func NewDefaultMessageHandler(keeper *Keeper, router MessageRouter, ics4Wrapper types.ICS4Wrapper, ...) Messenger + type Migrator struct + func NewMigrator(keeper Keeper, legacySubspace exported.Subspace) Migrator + func (m Migrator) Migrate1to2(ctx sdk.Context) error + func (m Migrator) Migrate2to3(ctx sdk.Context) error + func (m Migrator) Migrate3to4(ctx sdk.Context) error + type MultipliedGasMeter struct + GasRegister types.GasRegister + func NewMultipliedGasMeter(originalMeter storetypes.GasMeter, gr types.GasRegister) MultipliedGasMeter + func (m MultipliedGasMeter) GasConsumed() storetypes.Gas + type Option interface + func WitGovSubMsgAuthZPropagated(entries ...types.AuthorizationPolicyAction) Option + func WithAPICosts(human, canonical uint64) Option + func WithAcceptedAccountTypesOnContractInstantiation(accts ...sdk.AccountI) Option + func WithAccountPruner(x AccountPruner) Option + func WithCoinTransferrer(x CoinTransferrer) Option + func WithGasRegister(x types.GasRegister) Option + func WithMaxCallDepth(m uint32) Option + func WithMaxQueryStackSize(m uint32) Option + func WithMessageEncoders(x *MessageEncoders) Option + func WithMessageHandler(x Messenger) Option + func WithMessageHandlerDecorator(d func(old Messenger) Messenger) Option + func WithQueryHandler(x WasmVMQueryHandler) Option + func WithQueryHandlerDecorator(d func(old WasmVMQueryHandler) WasmVMQueryHandler) Option + func WithQueryPlugins(x *QueryPlugins) Option + func WithVMCacheMetrics(r prometheus.Registerer) Option + func WithWasmEngine(x types.WasmEngine) Option + func WithWasmEngineDecorator(d func(old types.WasmEngine) types.WasmEngine) Option + type PartialGovAuthorizationPolicy struct + func NewPartialGovAuthorizationPolicy(defaultPolicy types.AuthorizationPolicy, ...) PartialGovAuthorizationPolicy + func (p PartialGovAuthorizationPolicy) CanCreateCode(chainConfigs types.ChainAccessConfigs, actor sdk.AccAddress, ...) bool + func (p PartialGovAuthorizationPolicy) CanInstantiateContract(c types.AccessConfig, actor sdk.AccAddress) bool + func (p PartialGovAuthorizationPolicy) CanModifyCodeAccessConfig(creator, actor sdk.AccAddress, isSubset bool) bool + func (p PartialGovAuthorizationPolicy) CanModifyContract(admin, actor sdk.AccAddress) bool + func (p PartialGovAuthorizationPolicy) SubMessageAuthorizationPolicy(_ types.AuthorizationPolicyAction) types.AuthorizationPolicy + type PermissionedKeeper struct + func NewDefaultPermissionKeeper(nested decoratedKeeper) *PermissionedKeeper + func NewGovPermissionKeeper(nested decoratedKeeper) *PermissionedKeeper + func NewPermissionedKeeper(nested decoratedKeeper, authZPolicy types.AuthorizationPolicy) *PermissionedKeeper + func (p PermissionedKeeper) ClearContractAdmin(ctx sdk.Context, contractAddress, caller sdk.AccAddress) error + func (p PermissionedKeeper) Create(ctx sdk.Context, creator sdk.AccAddress, wasmCode []byte, ...) (codeID uint64, checksum []byte, err error) + func (p PermissionedKeeper) Execute(ctx sdk.Context, contractAddress, caller sdk.AccAddress, msg []byte, ...) ([]byte, error) + func (p PermissionedKeeper) Instantiate(ctx sdk.Context, codeID uint64, creator, admin sdk.AccAddress, initMsg []byte, ...) (sdk.AccAddress, []byte, error) + func (p PermissionedKeeper) Instantiate2(ctx sdk.Context, codeID uint64, creator, admin sdk.AccAddress, initMsg []byte, ...) (sdk.AccAddress, []byte, error) + func (p PermissionedKeeper) Migrate(ctx sdk.Context, contractAddress, caller sdk.AccAddress, newCodeID uint64, ...) ([]byte, error) + func (p PermissionedKeeper) PinCode(ctx sdk.Context, codeID uint64) error + func (p PermissionedKeeper) SetAccessConfig(ctx sdk.Context, codeID uint64, caller sdk.AccAddress, ...) error + func (p PermissionedKeeper) SetContractInfoExtension(ctx sdk.Context, contract sdk.AccAddress, extra types.ContractInfoExtension) error + func (p PermissionedKeeper) Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) + func (p PermissionedKeeper) UnpinCode(ctx sdk.Context, codeID uint64) error + func (p PermissionedKeeper) UpdateContractAdmin(ctx sdk.Context, contractAddress, caller, newAdmin sdk.AccAddress) error + type QueryHandler struct + Caller sdk.AccAddress + Ctx sdk.Context + Plugins WasmVMQueryHandler + func NewQueryHandler(ctx sdk.Context, vmQueryHandler WasmVMQueryHandler, caller sdk.AccAddress, ...) QueryHandler + func (q QueryHandler) GasConsumed() uint64 + func (q QueryHandler) Query(request wasmvmtypes.QueryRequest, gasLimit uint64) ([]byte, error) + type QueryPlugins struct + Bank func(ctx sdk.Context, request *wasmvmtypes.BankQuery) ([]byte, error) + Custom CustomQuerier + Distribution func(ctx sdk.Context, request *wasmvmtypes.DistributionQuery) ([]byte, error) + Grpc func(ctx sdk.Context, request *wasmvmtypes.GrpcQuery) (proto.Message, error) + IBC func(ctx sdk.Context, caller sdk.AccAddress, request *wasmvmtypes.IBCQuery) ([]byte, error) + Staking func(ctx sdk.Context, request *wasmvmtypes.StakingQuery) ([]byte, error) + Stargate func(ctx sdk.Context, request *wasmvmtypes.StargateQuery) ([]byte, error) + Wasm func(ctx sdk.Context, request *wasmvmtypes.WasmQuery) ([]byte, error) + func DefaultQueryPlugins(bank types.BankViewKeeper, staking types.StakingKeeper, ...) QueryPlugins + func (e QueryPlugins) HandleQuery(ctx sdk.Context, caller sdk.AccAddress, req wasmvmtypes.QueryRequest) ([]byte, error) + func (e QueryPlugins) Merge(o *QueryPlugins) QueryPlugins + type SDKMessageHandler struct + func NewSDKMessageHandler(cdc codec.Codec, router MessageRouter, encoders msgEncoder) SDKMessageHandler + func (h SDKMessageHandler) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, ...) (events []sdk.Event, data [][]byte, msgResponses [][]*codectypes.Any, err error) + type StakingEncoder func(sender sdk.AccAddress, msg *wasmvmtypes.StakingMsg) ([]sdk.Msg, error) + type TestFaucet struct + func NewTestFaucet(t testing.TB, ctx sdk.Context, bankKeeper bankkeeper.Keeper, ...) *TestFaucet + func (f *TestFaucet) Fund(parentCtx sdk.Context, receiver sdk.AccAddress, amounts ...sdk.Coin) + func (f *TestFaucet) Mint(parentCtx sdk.Context, addr sdk.AccAddress, amounts ...sdk.Coin) + func (f *TestFaucet) NewFundedRandomAccount(ctx sdk.Context, amounts ...sdk.Coin) sdk.AccAddress + type TestKeepers struct + AccountKeeper authkeeper.AccountKeeper + BankKeeper bankkeeper.Keeper + ContractKeeper types.ContractOpsKeeper + DistKeeper distributionkeeper.Keeper + EncodingConfig moduletestutil.TestEncodingConfig + Faucet *TestFaucet + GovKeeper *govkeeper.Keeper + IBCKeeper *ibckeeper.Keeper + MultiStore storetypes.CommitMultiStore + Router MessageRouter + ScopedWasmKeeper capabilitykeeper.ScopedKeeper + StakingKeeper *stakingkeeper.Keeper + WasmKeeper *Keeper + WasmStoreKey *storetypes.KVStoreKey + func CreateDefaultTestInput(t testing.TB) (sdk.Context, TestKeepers) + func CreateTestInput(t testing.TB, isCheckTx bool, availableCapabilities []string, opts ...Option) (sdk.Context, TestKeepers) + type TxContractsDecorator struct + func NewTxContractsDecorator() *TxContractsDecorator + func (d TxContractsDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) + type ValidatorSetSource interface + ApplyAndReturnValidatorSetUpdates func(context.Context) (updates []abci.ValidatorUpdate, err error) + type VestingCoinBurner struct + func NewVestingCoinBurner(bank types.BankKeeper) VestingCoinBurner + func (b VestingCoinBurner) CleanupExistingAccount(ctx sdk.Context, existingAcc sdk.AccountI) (handled bool, err error) + type WasmEncoder func(sender sdk.AccAddress, msg *wasmvmtypes.WasmMsg) ([]sdk.Msg, error) + type WasmSnapshotter struct + func NewWasmSnapshotter(cms storetypes.MultiStore, wasm *Keeper) *WasmSnapshotter + func (ws *WasmSnapshotter) RestoreExtension(height uint64, format uint32, payloadReader snapshot.ExtensionPayloadReader) error + func (ws *WasmSnapshotter) SnapshotExtension(height uint64, payloadWriter snapshot.ExtensionPayloadWriter) error + func (ws *WasmSnapshotter) SnapshotFormat() uint32 + func (ws *WasmSnapshotter) SnapshotName() string + func (ws *WasmSnapshotter) SupportedFormats() []uint32 + type WasmVMMetricsCollector struct + CacheElementsDescr *prometheus.Desc + CacheHitsDescr *prometheus.Desc + CacheMissesDescr *prometheus.Desc + CacheSizeDescr *prometheus.Desc + PinnedHitsDescr *prometheus.Desc + PinnedSizeDescr *prometheus.Desc + func NewWasmVMMetricsCollector(s metricSource) *WasmVMMetricsCollector + func (p *WasmVMMetricsCollector) Collect(c chan<- prometheus.Metric) + func (p *WasmVMMetricsCollector) Describe(descs chan<- *prometheus.Desc) + func (p *WasmVMMetricsCollector) Register(r prometheus.Registerer) + type WasmVMQueryHandler interface + HandleQuery func(ctx sdk.Context, caller sdk.AccAddress, request wasmvmtypes.QueryRequest) ([]byte, error) + type WasmVMQueryHandlerFn func(ctx sdk.Context, caller sdk.AccAddress, request wasmvmtypes.QueryRequest) ([]byte, error) + func (w WasmVMQueryHandlerFn) HandleQuery(ctx sdk.Context, caller sdk.AccAddress, request wasmvmtypes.QueryRequest) ([]byte, error) + type WasmVMResponseHandler interface + Handle func(ctx sdk.Context, contractAddr sdk.AccAddress, ibcPort string, ...) ([]byte, error)