Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/terra-project/core/x/wasm/internal/keeper ALIASGEN: github.com/terra-project/core/x/wasm/internal/types
nolint:deadcode unused noalias
Index ¶
- Constants
- Variables
- func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- type AccountKeeper
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (AppModule) RandomizedParams(r *rand.Rand) []sim.ParamChange
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type BankKeeper
- type Code
- type CodeInfo
- type Contract
- type ContractInfo
- type GenesisState
- type Keeper
- type Model
- type MsgExecuteContract
- type MsgInstantiateContract
- type MsgMigrateContract
- type MsgParser
- type MsgStoreCode
- type MsgUpdateContractOwner
- type Params
- type Querier
- type QueryCodeIDParams
- type QueryContractAddressParams
- type QueryContractParams
- type QueryRawStoreParams
- type TreasuryKeeper
- type WasmCustomMsg
- type WasmCustomQuery
- type WasmMsgParser
- type WasmMsgParserInterface
- type WasmQuerier
- type WasmQuerierInterface
Constants ¶
const ( DefaultFeatures = types.DefaultFeatures ModuleName = types.ModuleName StoreKey = types.StoreKey TStoreKey = types.TStoreKey QuerierRoute = types.QuerierRoute RouterKey = types.RouterKey WasmMsgParserRouteBank = types.WasmMsgParserRouteBank WasmMsgParserRouteStaking = types.WasmMsgParserRouteStaking WasmMsgParserRouteMarket = types.WasmMsgParserRouteMarket WasmMsgParserRouteWasm = types.WasmMsgParserRouteWasm DefaultParamspace = types.DefaultParamspace EnforcedMaxContractSize = types.EnforcedMaxContractSize EnforcedMaxContractGas = types.EnforcedMaxContractGas EnforcedMaxContractMsgSize = types.EnforcedMaxContractMsgSize DefaultMaxContractSize = types.DefaultMaxContractSize DefaultMaxContractGas = types.DefaultMaxContractGas DefaultMaxContractMsgSize = types.DefaultMaxContractMsgSize QueryGetByteCode = types.QueryGetByteCode QueryGetCodeInfo = types.QueryGetCodeInfo QueryGetContractInfo = types.QueryGetContractInfo QueryRawStore = types.QueryRawStore QueryContractStore = types.QueryContractStore WasmQueryRouteBank = types.WasmQueryRouteBank WasmQueryRouteStaking = types.WasmQueryRouteStaking WasmQueryRouteMarket = types.WasmQueryRouteMarket WasmQueryRouteTreasury = types.WasmQueryRouteTreasury WasmQueryRouteWasm = types.WasmQueryRouteWasm )
Variables ¶
var ( // functions aliases NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier NewWasmMsgParser = keeper.NewWasmMsgParser NewWasmQuerier = keeper.NewWasmQuerier RegisterCodec = types.RegisterCodec ParseEvents = types.ParseEvents ParseToCoin = types.ParseToCoin ParseToCoins = types.ParseToCoins EncodeSdkCoin = types.EncodeSdkCoin EncodeSdkCoins = types.EncodeSdkCoins NewCodeInfo = types.NewCodeInfo NewContractInfo = types.NewContractInfo NewWasmAPIParams = types.NewWasmAPIParams NewWasmCoins = types.NewWasmCoins NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState ValidateGenesis = types.ValidateGenesis GetCodeInfoKey = types.GetCodeInfoKey GetContractInfoKey = types.GetContractInfoKey GetContractStoreKey = types.GetContractStoreKey NewMsgStoreCode = types.NewMsgStoreCode NewMsgInstantiateContract = types.NewMsgInstantiateContract NewMsgExecuteContract = types.NewMsgExecuteContract NewMsgMigrateContract = types.NewMsgMigrateContract NewMsgUpdateContractOwner = types.NewMsgUpdateContractOwner NewModuleMsgParser = types.NewModuleMsgParser DefaultParams = types.DefaultParams ParamKeyTable = types.ParamKeyTable NewQueryCodeIDParams = types.NewQueryCodeIDParams NewQueryContractAddressParams = types.NewQueryContractAddressParams NewQueryRawStoreParams = types.NewQueryRawStoreParams NewQueryContractParams = types.NewQueryContractParams NewModuleQuerier = types.NewModuleQuerier // variable aliases ModuleCdc = types.ModuleCdc ErrStoreCodeFailed = types.ErrStoreCodeFailed ErrAccountExists = types.ErrAccountExists ErrInstantiateFailed = types.ErrInstantiateFailed ErrExecuteFailed = types.ErrExecuteFailed ErrGasLimit = types.ErrGasLimit ErrInvalidGenesis = types.ErrInvalidGenesis ErrNotFound = types.ErrNotFound ErrInvalidMsg = types.ErrInvalidMsg ErrNoRegisteredQuerier = types.ErrNoRegisteredQuerier ErrNoRegisteredParser = types.ErrNoRegisteredParser ErrMigrationFailed = types.ErrMigrationFailed ErrNotMigratable = types.ErrNotMigratable LastCodeIDKey = types.LastCodeIDKey LastInstanceIDKey = types.LastInstanceIDKey CodeKey = types.CodeKey ContractInfoKey = types.ContractInfoKey ContractStoreKey = types.ContractStoreKey ParamStoreKeyMaxContractSize = types.ParamStoreKeyMaxContractSize ParamStoreKeyMaxContractGas = types.ParamStoreKeyMaxContractGas ParamStoreKeyMaxContractMsgSize = types.ParamStoreKeyMaxContractMsgSize )
Functions ¶
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState)
InitGenesis sets wasm information for genesis.
CONTRACT: all types of accounts must have been already initialized/created
func NewHandler ¶
NewHandler returns a handler for "wasm" type messages.
Types ¶
type AccountKeeper ¶
type AccountKeeper = types.AccountKeeper
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the wasm module.
func NewAppModule ¶
func NewAppModule(keeper Keeper, accountKeeper auth.AccountKeeper, bankKeeper bank.Keeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the wasm module.
func (AppModule) EndBlock ¶
func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the wasm module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the wasm module.
func (AppModule) GenerateGenesisState ¶
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the distribution module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the wasm module. It returns no validator updates.
func (AppModule) NewHandler ¶
NewHandler returns an sdk.Handler for the wasm module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns the wasm module sdk.Querier.
func (AppModule) ProposalContents ¶
func (am AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
ProposalContents returns all the distribution content functions used to simulate governance proposals.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the wasm module's querier route name.
func (AppModule) RandomizedParams ¶
func (AppModule) RandomizedParams(r *rand.Rand) []sim.ParamChange
RandomizedParams creates randomized distribution param changes for the simulator.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the wasm module invariants.
func (AppModule) RegisterStoreDecoder ¶
func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for distribution module's types
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
WeightedOperations returns the all the gov module operations with their respective weights.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the wasm module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the wasm module.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns no root query command for the wasm module.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command for the wasm module.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns the wasm module's name.
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the wasm module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers the REST routes for the wasm module.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the wasm module.
type BankKeeper ¶
type BankKeeper = types.BankKeeper
type ContractInfo ¶
type ContractInfo = types.ContractInfo
type GenesisState ¶
type GenesisState = types.GenesisState
type MsgExecuteContract ¶
type MsgExecuteContract = types.MsgExecuteContract
type MsgInstantiateContract ¶
type MsgInstantiateContract = types.MsgInstantiateContract
type MsgMigrateContract ¶
type MsgMigrateContract = types.MsgMigrateContract
type MsgStoreCode ¶
type MsgStoreCode = types.MsgStoreCode
type MsgUpdateContractOwner ¶
type MsgUpdateContractOwner = types.MsgUpdateContractOwner
type QueryCodeIDParams ¶
type QueryCodeIDParams = types.QueryCodeIDParams
type QueryContractAddressParams ¶
type QueryContractAddressParams = types.QueryContractAddressParams
type QueryContractParams ¶
type QueryContractParams = types.QueryContractParams
type QueryRawStoreParams ¶
type QueryRawStoreParams = types.QueryRawStoreParams
type TreasuryKeeper ¶
type TreasuryKeeper = types.TreasuryKeeper
type WasmCustomMsg ¶
type WasmCustomMsg = types.WasmCustomMsg
type WasmCustomQuery ¶
type WasmCustomQuery = types.WasmCustomQuery
type WasmMsgParser ¶
type WasmMsgParser = keeper.WasmMsgParser
type WasmMsgParserInterface ¶
type WasmMsgParserInterface = types.WasmMsgParserInterface
type WasmQuerier ¶
type WasmQuerier = keeper.WasmQuerier
type WasmQuerierInterface ¶
type WasmQuerierInterface = types.WasmQuerierInterface