Versions in this module Expand all Collapse all v0 v0.5.14 Jan 24, 2022 Changes in this version + var Addrs = []sdk.AccAddress + var InitCoins = sdk.NewCoins(sdk.NewCoin(core.MicroCacaoDenom, InitTokens)) + var InitTokens = sdk.TokensFromConsensusPower(200, sdk.DefaultPowerReduction) + var ModuleBasics = module.NewBasicManager(customauth.AppModuleBasic{}, custombank.AppModuleBasic{}, ...) + var PubKeys = []crypto.PubKey + var ValAddrs = []sdk.ValAddress + func FundAccount(input TestInput, addr sdk.AccAddress, amounts sdk.Coins) error + func LimitReader(r io.Reader, n int64) io.Reader + func MakeEncodingConfig(_ *testing.T) simparams.EncodingConfig + func MakeTestCodec(t *testing.T) codec.Codec + func NewLegacyQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func NewQuerier(keeper Keeper) types.QueryServer + type ContractInfoQueryParams struct + ContractAddress string + type ContractInfoQueryResponse struct + Address string + Admin string + CodeID uint64 + Creator string + type CosmosQuery struct + ContractInfo *ContractInfoQueryParams + type HackatomExampleInitMsg struct + Beneficiary sdk.AccAddress + Verifier sdk.AccAddress + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, paramspace paramstypes.Subspace, ...) Keeper + func (k *Keeper) RegisterMsgParsers(parsers map[string]types.WasmMsgParserInterface, ...) + func (k *Keeper) RegisterQueriers(queriers map[string]types.WasmQuerierInterface, ...) + func (k Keeper) CompileCode(ctx sdk.Context, wasmCode []byte) (codeHash []byte, err error) + func (k Keeper) ExecuteContract(ctx sdk.Context, contractAddress sdk.AccAddress, sender sdk.AccAddress, ...) ([]byte, error) + func (k Keeper) GetByteCode(ctx sdk.Context, codeID uint64) ([]byte, error) + func (k Keeper) GetCodeInfo(ctx sdk.Context, codeID uint64) (codeInfo types.CodeInfo, err error) + func (k Keeper) GetContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) (contractInfo types.ContractInfo, err error) + func (k Keeper) GetContractStoreIterator(ctx sdk.Context, contractAddress sdk.AccAddress) sdk.Iterator + func (k Keeper) GetLastCodeID(ctx sdk.Context) (uint64, error) + func (k Keeper) GetLastInstanceID(ctx sdk.Context) (uint64, error) + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) InstantiateContract(ctx sdk.Context, codeID uint64, creator sdk.AccAddress, admin sdk.AccAddress, ...) (sdk.AccAddress, []byte, error) + func (k Keeper) IterateContractInfo(ctx sdk.Context, cb func(types.ContractInfo) bool) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MaxContractGas(ctx sdk.Context) (res uint64) + func (k Keeper) MaxContractMsgSize(ctx sdk.Context) (res uint64) + func (k Keeper) MaxContractSize(ctx sdk.Context) (res uint64) + func (k Keeper) MigrateCode(ctx sdk.Context, codeID uint64, creator sdk.AccAddress, wasmCode []byte) error + func (k Keeper) MigrateContract(ctx sdk.Context, contractAddress sdk.AccAddress, sender sdk.AccAddress, ...) ([]byte, error) + func (k Keeper) SetCodeInfo(ctx sdk.Context, codeID uint64, codeInfo types.CodeInfo) + func (k Keeper) SetContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress, codeInfo types.ContractInfo) + func (k Keeper) SetContractStore(ctx sdk.Context, contractAddress sdk.AccAddress, models []types.Model) + func (k Keeper) SetLastCodeID(ctx sdk.Context, id uint64) + func (k Keeper) SetLastInstanceID(ctx sdk.Context, id uint64) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) StoreCode(ctx sdk.Context, creator sdk.AccAddress, wasmCode []byte) (codeID uint64, err error) + type LimitedReader struct + func (l *LimitedReader) Read(p []byte) (n int, err error) + type StargateWasmMsgParser struct + func NewStargateWasmMsgParser(unpacker codectypes.AnyUnpacker) StargateWasmMsgParser + func (parser StargateWasmMsgParser) Parse(wasmMsg wasmvmtypes.CosmosMsg) (sdk.Msg, error) + type StargateWasmQuerier struct + func NewStargateWasmQuerier(keeper Keeper) StargateWasmQuerier + func (querier StargateWasmQuerier) Query(ctx sdk.Context, request wasmvmtypes.QueryRequest) ([]byte, error) + type TestInput struct + AccKeeper authkeeper.AccountKeeper + BankKeeper bankkeeper.Keeper + Cdc *codec.LegacyAmino + Ctx sdk.Context + DistributionKeeper distrkeeper.Keeper + MarketKeeper marketkeeper.Keeper + OracleKeeper oraclekeeper.Keeper + StakingKeeper stakingkeeper.Keeper + TreasuryKeeper treasurykeeper.Keeper + WasmKeeper Keeper + func CreateTestInput(t *testing.T) TestInput + type WasmMsgParser struct + func NewWasmMsgParser() WasmMsgParser + func (WasmMsgParser) Parse(contractAddr sdk.AccAddress, wasmMsg wasmvmtypes.CosmosMsg) (sdk.Msg, error) + func (parser WasmMsgParser) ParseCustom(contractAddr sdk.AccAddress, data json.RawMessage) (sdk.Msg, error) + type WasmQuerier struct + func NewWasmQuerier(keeper Keeper) WasmQuerier + func (querier WasmQuerier) Query(ctx sdk.Context, request wasmvmtypes.QueryRequest) ([]byte, error) + func (querier WasmQuerier) QueryCustom(ctx sdk.Context, data json.RawMessage) ([]byte, error)