Versions in this module Expand all Collapse all v0 v0.0.1 Jun 2, 2023 Changes in this version + const DefaultCompileCost + const DefaultContractMessageDataCost + const DefaultDeserializationCostPerByte + const DefaultEventAttributeDataCost + const DefaultEventAttributeDataFreeTier + const DefaultGasCostCanonicalAddress + const DefaultGasCostHumanAddress + const DefaultGasMultiplier + const DefaultInstanceCost + const DefaultPerAttributeCost + const DefaultPerCustomEventCost + const SnapshotFormat + var ModelFuzzers = []interface + var TestingStakeParams = stakingtypes.Params + func AcceptListStargateQuerier(acceptList AcceptedStargateQueries, queryRouter GRPCQueryRouter, ...) 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 ContractFromPortID(portID string) (sdk.AccAddress, error) + func ConvertProtoToJSONMarshal(cdc codec.Codec, protoResponse codec.ProtoMarshaler, bz []byte) ([]byte, error) + func ConvertSdkCoinToWasmCoin(coin sdk.Coin) wasmvmtypes.Coin + func ConvertSdkCoinsToWasmCoins(coins []sdk.Coin) wasmvmtypes.Coins + func ConvertWasmCoinToSdkCoin(coin wasmvmtypes.Coin) (sdk.Coin, error) + func ConvertWasmCoinsToSdkCoins(coins []wasmvmtypes.Coin) (sdk.Coins, error) + func ConvertWasmIBCTimeoutHeightToCosmosHeight(ibcTimeoutBlock *wasmvmtypes.IBCTimeoutBlock) ibcclienttypes.Height + func DefaultPerByteUncompressCost() wasmvmtypes.UFraction + func DeterministicAccountAddress(_ testing.TB, v byte) sdk.AccAddress + 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) wasmappparams.EncodingConfig + func MakeTestCodec(t testing.TB) codec.Codec + func NewMsgServerImpl(k *Keeper) types.MsgServer + func NewWasmProposalHandler(k decoratedKeeper, enabledProposalTypes []types.ProposalType) v1beta1.Handler + func NewWasmProposalHandlerX(k types.ContractOpsKeeper, enabledProposalTypes []types.ProposalType) v1beta1.Handler + 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 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 AcceptedStargateQueries map[string]codec.ProtoMarshaler + type AccountPruner interface + CleanupExistingAccount func(ctx sdk.Context, existingAccount authtypes.AccountI) (handled bool, err error) + type AddressGenerator func(ctx sdk.Context, codeID uint64, checksum []byte) sdk.AccAddress + func PredicableAddressGenerator(creator sdk.AccAddress, salt []byte, msg []byte, fixMsg bool) AddressGenerator + type AuthorizationPolicy interface + CanCreateCode func(chainConfigs ChainAccessConfigs, actor sdk.AccAddress, ...) bool + CanInstantiateContract func(c types.AccessConfig, actor sdk.AccAddress) bool + CanModifyCodeAccessConfig func(creator, actor sdk.AccAddress, isSubset bool) bool + CanModifyContract func(admin, actor sdk.AccAddress) bool + type BankCoinTransferrer struct + func NewBankCoinTransferrer(keeper types.BankKeeper) BankCoinTransferrer + func (c BankCoinTransferrer) TransferCoins(parentCtx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, ...) error + type BankEncoder func(sender sdk.AccAddress, msg *wasmvmtypes.BankMsg) ([]sdk.Msg, error) + type BurnerExampleInitMsg struct + Payout sdk.AccAddress + func (m BurnerExampleInitMsg) GetBytes(t testing.TB) []byte + type ChainAccessConfigs struct + Instantiate types.AccessConfig + Upload types.AccessConfig + func NewChainAccessConfigs(upload types.AccessConfig, instantiate types.AccessConfig) ChainAccessConfigs + type CoinTransferrer interface + TransferCoins func(ctx sdk.Context, fromAddr sdk.AccAddress, 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(storeKey storetypes.StoreKey) *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 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 + 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.WasmerEngine) ExampleContract + func StoreRandomContractWithAccessConfig(t testing.TB, ctx sdk.Context, keepers TestKeepers, mock types.WasmerEngine, ...) 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.WasmerEngine) ExampleContractInstance + type ExampleInstance struct + Contract sdk.AccAddress + Deposit sdk.Coins + Label string + func InstantiateReflectExampleContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) ExampleInstance + type GRPCQueryRouter interface + Route func(path string) baseapp.GRPCQueryHandler + type GasRegister interface + CompileCosts func(byteLength int) sdk.Gas + EventCosts func(attrs []wasmvmtypes.EventAttribute, events wasmvmtypes.Events) sdk.Gas + FromWasmVMGas func(source uint64) sdk.Gas + InstantiateContractCosts func(pinned bool, msgLen int) sdk.Gas + NewContractInstanceCosts func(pinned bool, msgLen int) sdk.Gas + ReplyCosts func(pinned bool, reply wasmvmtypes.Reply) sdk.Gas + ToWasmVMGas func(source sdk.Gas) uint64 + UncompressCosts func(byteLength int) sdk.Gas + type GovAuthorizationPolicy struct + func (p GovAuthorizationPolicy) CanCreateCode(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 + type GrpcQuerier struct + func NewGrpcQuerier(cdc codec.Codec, storeKey storetypes.StoreKey, keeper types.ViewKeeper, ...) *GrpcQuerier + func Querier(k *Keeper) *GrpcQuerier + func (q GrpcQuerier) AllContractState(c context.Context, req *types.QueryAllContractStateRequest) (*types.QueryAllContractStateResponse, error) + func (q GrpcQuerier) Code(c context.Context, req *types.QueryCodeRequest) (*types.QueryCodeResponse, 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, channelKeeper types.ChannelKeeper, ...) IBCRawPacketHandler + func (h IBCRawPacketHandler) DispatchMsg(ctx sdk.Context, _ sdk.AccAddress, contractIBCPortID string, ...) ([]sdk.Event, [][]byte, 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 + type IBCReflectInitMsg struct + ReflectCodeID uint64 + func (m IBCReflectInitMsg) GetBytes(t testing.TB) []byte + type Keeper struct + func NewKeeper(cdc codec.Codec, storeKey storetypes.StoreKey, ...) 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) GetAuthority() string + func (k Keeper) GetByteCode(ctx sdk.Context, codeID uint64) ([]byte, error) + func (k Keeper) GetCodeInfo(ctx sdk.Context, codeID uint64) *types.CodeInfo + func (k Keeper) GetContractHistory(ctx sdk.Context, contractAddr sdk.AccAddress) []types.ContractCodeHistoryEntry + func (k Keeper) GetContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) *types.ContractInfo + func (k Keeper) GetParams(ctx sdk.Context) types.Params + func (k Keeper) HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool + func (k Keeper) InitializePinnedCodes(ctx sdk.Context) error + func (k Keeper) IsPinnedCode(ctx sdk.Context, codeID uint64) bool + func (k Keeper) IterateCodeInfos(ctx sdk.Context, cb func(uint64, types.CodeInfo) bool) + func (k Keeper) IterateContractInfo(ctx sdk.Context, cb func(sdk.AccAddress, types.ContractInfo) bool) + func (k Keeper) IterateContractState(ctx sdk.Context, contractAddress sdk.AccAddress, ...) + func (k Keeper) IterateContractsByCode(ctx sdk.Context, codeID uint64, cb func(address sdk.AccAddress) bool) + func (k Keeper) IterateContractsByCreator(ctx sdk.Context, creator sdk.AccAddress, cb func(address sdk.AccAddress) bool) + 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 sdk.Context, lastIDKey []byte) uint64 + func (k Keeper) QueryGasLimit() sdk.Gas + func (k Keeper) QueryRaw(ctx sdk.Context, contractAddress sdk.AccAddress, key []byte) []byte + func (k Keeper) QuerySmart(ctx sdk.Context, contractAddr sdk.AccAddress, req []byte) ([]byte, error) + func (k Keeper) SetParams(ctx sdk.Context, ps types.Params) error + func (k Keeper) Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error) + type LimitSimulationGasDecorator struct + func NewLimitSimulationGasDecorator(gasLimit *sdk.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 + 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) + Stargate func(sender sdk.AccAddress, msg *wasmvmtypes.StargateMsg) ([]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, error) + type MessageHandlerFunc func(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, ...) (events []sdk.Event, data [][]byte, 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, 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(msg sdk.Msg) baseapp.MsgServiceHandler + type Messenger interface + DispatchMsg func(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, ...) (events []sdk.Event, data [][]byte, err error) + func NewDefaultMessageHandler(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 GasRegister + func NewMultipliedGasMeter(originalMeter sdk.GasMeter, gr GasRegister) MultipliedGasMeter + func (m MultipliedGasMeter) GasConsumed() sdk.Gas + type Option interface + func WithAPICosts(human, canonical uint64) Option + func WithAcceptedAccountTypesOnContractInstantiation(accts ...authtypes.AccountI) Option + func WithAccountPruner(x AccountPruner) Option + func WithCoinTransferrer(x CoinTransferrer) Option + func WithGasRegister(x GasRegister) 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.WasmerEngine) Option + func WithWasmEngineDecorator(d func(old types.WasmerEngine) types.WasmerEngine) Option + type PermissionedKeeper struct + func NewDefaultPermissionKeeper(nested decoratedKeeper) *PermissionedKeeper + func NewGovPermissionKeeper(nested decoratedKeeper) *PermissionedKeeper + func NewPermissionedKeeper(nested decoratedKeeper, authZPolicy AuthorizationPolicy) *PermissionedKeeper + func (p PermissionedKeeper) ClearContractAdmin(ctx sdk.Context, contractAddress sdk.AccAddress, 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 sdk.AccAddress, caller sdk.AccAddress, ...) ([]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 sdk.AccAddress, caller sdk.AccAddress, ...) ([]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 sdk.AccAddress, caller 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 + 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, request wasmvmtypes.QueryRequest) ([]byte, error) + func (e QueryPlugins) Merge(o *QueryPlugins) QueryPlugins + type SDKMessageHandler struct + func NewSDKMessageHandler(router MessageRouter, encoders msgEncoder) SDKMessageHandler + func (h SDKMessageHandler) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, ...) (events []sdk.Event, data [][]byte, err error) + type StakingEncoder func(sender sdk.AccAddress, msg *wasmvmtypes.StakingMsg) ([]sdk.Msg, error) + type StargateEncoder func(sender sdk.AccAddress, msg *wasmvmtypes.StargateMsg) ([]sdk.Msg, error) + func EncodeStargateMsg(unpacker codectypes.AnyUnpacker) StargateEncoder + 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 wasmappparams.EncodingConfig + Faucet *TestFaucet + GovKeeper *govkeeper.Keeper + IBCKeeper *ibckeeper.Keeper + MultiStore sdk.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 ValidatorSetSource interface + ApplyAndReturnValidatorSetUpdates func(sdk.Context) (updates []abci.ValidatorUpdate, err error) + type VestingCoinBurner struct + func NewVestingCoinBurner(bank types.BankKeeper) VestingCoinBurner + func (b VestingCoinBurner) CleanupExistingAccount(ctx sdk.Context, existingAcc authtypes.AccountI) (handled bool, err error) + type WasmEncoder func(sender sdk.AccAddress, msg *wasmvmtypes.WasmMsg) ([]sdk.Msg, error) + type WasmGasRegister struct + func NewDefaultWasmGasRegister() WasmGasRegister + func NewWasmGasRegister(c WasmGasRegisterConfig) WasmGasRegister + func (g WasmGasRegister) CompileCosts(byteLength int) storetypes.Gas + func (g WasmGasRegister) EventCosts(attrs []wasmvmtypes.EventAttribute, events wasmvmtypes.Events) sdk.Gas + func (g WasmGasRegister) FromWasmVMGas(source uint64) sdk.Gas + func (g WasmGasRegister) InstantiateContractCosts(pinned bool, msgLen int) sdk.Gas + func (g WasmGasRegister) NewContractInstanceCosts(pinned bool, msgLen int) storetypes.Gas + func (g WasmGasRegister) ReplyCosts(pinned bool, reply wasmvmtypes.Reply) sdk.Gas + func (g WasmGasRegister) ToWasmVMGas(source storetypes.Gas) uint64 + func (g WasmGasRegister) UncompressCosts(byteLength int) sdk.Gas + type WasmGasRegisterConfig struct + CompileCost sdk.Gas + ContractMessageDataCost sdk.Gas + CustomEventCost uint64 + EventAttributeDataCost sdk.Gas + EventAttributeDataFreeTier uint64 + EventPerAttributeCost sdk.Gas + GasMultiplier sdk.Gas + InstanceCost sdk.Gas + UncompressCost wasmvmtypes.UFraction + func DefaultGasRegisterConfig() WasmGasRegisterConfig + type WasmSnapshotter struct + func NewWasmSnapshotter(cms sdk.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 + 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)