Versions in this module Expand all Collapse all v0 v0.0.2 Mar 8, 2023 Changes in this version + var TestingStakeParams = stakingtypes.Params + func DeterministicAccountAddress(_ testing.TB, v byte) sdk.AccAddress + func ExportGenesis(ctx sdk.Context, keeper *Keeper) *types.GenesisState + 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 ModuleLogger(ctx sdk.Context) log.Logger + func NewMsgServerImpl(k wasmtypes.ContractOpsKeeper) types.MsgServer + func NewWasmProposalHandler(k *Keeper, enabledProposalType []wasmtypes.ProposalType) govtypes.Handler + func NewWasmProposalHandlerX(k types.ContractOpsKeeper, enabledProposalTypes []wasmtypes.ProposalType) govtypes.Handler + func Querier(k *Keeper) types.QueryServer + func RandomAccountAddress(_ testing.TB) sdk.AccAddress + func RandomBech32AccountAddress(t testing.TB) string + func TestHandler(k types.ContractOpsKeeper) sdk.Handler + func WasmQuerier(k *Keeper) wasmtypes.QueryServer + type BurnerExampleInitMsg struct + Payout sdk.AccAddress + func (m BurnerExampleInitMsg) GetBytes(t testing.TB) []byte + 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 StoreHackatomExampleContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) ExampleContract + func StoreIBCReflectContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) ExampleContract + func StoreReflectContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) ExampleContract + type ExampleContractInstance struct + Contract sdk.AccAddress + type ExampleInstance struct + Contract sdk.AccAddress + Deposit sdk.Coins + Label string + func InstantiateReflectExampleContract(t testing.TB, ctx sdk.Context, keepers TestKeepers) ExampleInstance + 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 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 sdk.StoreKey, paramSpace paramtypes.Subspace, ...) Keeper + func (Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) IsInactiveContract(ctx sdk.Context, contractAddress sdk.AccAddress) bool + func (k Keeper) IterateInactiveContracts(ctx sdk.Context, fn func(contractAddress sdk.AccAddress) (stop bool)) + type PermissionedKeeper struct + func NewPermissionedKeeper(k wasmkeeper.PermissionedKeeper, extended decoratedKeeper) *PermissionedKeeper + func (p PermissionedKeeper) ActivateContract(ctx sdk.Context, contractAddress sdk.AccAddress) error + func (p PermissionedKeeper) ClearContractAdmin(ctx sdk.Context, contractAddress sdk.AccAddress, caller sdk.AccAddress) error + func (p PermissionedKeeper) DeactivateContract(ctx sdk.Context, contractAddress sdk.AccAddress) error + func (p PermissionedKeeper) Execute(ctx sdk.Context, contractAddress sdk.AccAddress, caller sdk.AccAddress, ...) ([]byte, error) + func (p PermissionedKeeper) Migrate(ctx sdk.Context, contractAddress sdk.AccAddress, caller sdk.AccAddress, ...) ([]byte, error) + func (p PermissionedKeeper) UpdateContractAdmin(ctx sdk.Context, contractAddress sdk.AccAddress, caller sdk.AccAddress, ...) error + type TestKeepers struct + AccountKeeper authkeeper.AccountKeeper + BankKeeper bankkeeper.Keeper + ContractKeeper types.ContractOpsKeeper + DistKeeper distributionkeeper.Keeper + EncodingConfig wasmappparams.EncodingConfig + Faucet *wasmkeeper.TestFaucet + GovKeeper govkeeper.Keeper + IBCKeeper *ibckeeper.Keeper + MultiStore sdk.CommitMultiStore + Router *baseapp.Router + StakingKeeper stakingkeeper.Keeper + WasmKeeper *Keeper + func CreateDefaultTestInput(t testing.TB) (sdk.Context, TestKeepers) + func CreateTestInput(t testing.TB, isCheckTx bool, availableCapabilities string, ...) (sdk.Context, TestKeepers)