Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/Cosmwasm/wasmd/x/wasm/types ALIASGEN: github.com/CosmWasm/wasmd/x/wasm/keeper
Index ¶
- Constants
- Variables
- func AddModuleInitFlags(startCmd *cobra.Command)
- func NewHandler(k types.ContractOpsKeeper) sdk.Handler
- func ReadWasmConfig(opts servertypes.AppOptions) (types.WasmConfig, error)
- func ValidateChannelParams(channelID string) error
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) ConsensusVersion() uint64
- func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) LegacyQuerierHandler(amino *codec.LegacyAmino) sdk.Querier
- func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (am AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (am AppModule) Route() sdk.Route
- func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (b AppModuleBasic) GetQueryCmd() *cobra.Command
- func (b AppModuleBasic) GetTxCmd() *cobra.Command
- func (AppModuleBasic) Name() string
- func (b AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, serveMux *runtime.ServeMux)
- func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func (b AppModuleBasic) RegisterLegacyAminoCodec(amino *codec.LegacyAmino)
- func (AppModuleBasic) RegisterRESTRoutes(cliCtx client.Context, rtr *mux.Router)
- func (b AppModuleBasic) ValidateGenesis(marshaler codec.JSONCodec, config client.TxEncodingConfig, ...) error
- type BankEncoder
- type Code
- type CodeInfo
- type CodeInfoResponse
- type Config
- type Contract
- type ContractConfirmStateAck
- type ContractInfo
- type CreatedAt
- type CustomEncoder
- type CustomQuerier
- type GenesisState
- type IBCHandler
- func (i IBCHandler) NegotiateAppVersion(ctx sdk.Context, order channeltypes.Order, connectionID string, portID string, ...) (version string, err error)
- func (i IBCHandler) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ...) error
- func (i IBCHandler) OnChanCloseConfirm(ctx sdk.Context, portID, channelID string) error
- func (i IBCHandler) OnChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (i IBCHandler) OnChanOpenAck(ctx sdk.Context, portID, channelID string, counterpartyChannelID string, ...) error
- func (i IBCHandler) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string) error
- func (i IBCHandler) OnChanOpenInit(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) error
- func (i IBCHandler) OnChanOpenTry(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) (string, error)
- func (i IBCHandler) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) ibcexported.Acknowledgement
- func (i IBCHandler) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
- type Keeper
- type MessageEncoders
- type MessageHandler
- type Model
- type MsgClearAdmin
- type MsgClearAdminResponse
- type MsgExecuteContract
- type MsgExecuteContractResponse
- type MsgInstantiateContract
- type MsgInstantiateContractResponse
- type MsgMigrateContract
- type MsgMigrateContractResponse
- type MsgServer
- type MsgStoreCode
- type MsgStoreCodeResponse
- type MsgUpdateAdmin
- type MsgUpdateAdminResponse
- type MsgWasmIBCCall
- type Option
- type ProposalType
- type QueryHandler
- type QueryPlugins
- type StakingEncoder
- type WasmEncoder
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey TStoreKey = types.TStoreKey QuerierRoute = types.QuerierRoute RouterKey = types.RouterKey WasmModuleEventType = types.WasmModuleEventType AttributeKeyContractAddr = types.AttributeKeyContractAddr ProposalTypeStoreCode = types.ProposalTypeStoreCode ProposalTypeInstantiateContract = types.ProposalTypeInstantiateContract ProposalTypeMigrateContract = types.ProposalTypeMigrateContract ProposalTypeUpdateAdmin = types.ProposalTypeUpdateAdmin ProposalTypeClearAdmin = types.ProposalTypeClearAdmin QueryListContractByCode = keeper.QueryListContractByCode QueryGetContract = keeper.QueryGetContract QueryGetContractState = keeper.QueryGetContractState QueryGetCode = keeper.QueryGetCode QueryListCode = keeper.QueryListCode QueryMethodContractStateSmart = keeper.QueryMethodContractStateSmart QueryMethodContractStateAll = keeper.QueryMethodContractStateAll QueryMethodContractStateRaw = keeper.QueryMethodContractStateRaw )
Variables ¶
var ( // functions aliases RegisterCodec = types.RegisterLegacyAminoCodec RegisterInterfaces = types.RegisterInterfaces ValidateGenesis = types.ValidateGenesis ConvertToProposals = types.ConvertToProposals GetCodeKey = types.GetCodeKey GetContractAddressKey = types.GetContractAddressKey GetContractStorePrefixKey = types.GetContractStorePrefix NewCodeInfo = types.NewCodeInfo NewAbsoluteTxPosition = types.NewAbsoluteTxPosition NewContractInfo = types.NewContractInfo NewEnv = types.NewEnv NewWasmCoins = types.NewWasmCoins DefaultWasmConfig = types.DefaultWasmConfig DefaultParams = types.DefaultParams InitGenesis = keeper.InitGenesis ExportGenesis = keeper.ExportGenesis NewMessageHandler = keeper.NewDefaultMessageHandler DefaultEncoders = keeper.DefaultEncoders EncodeBankMsg = keeper.EncodeBankMsg NoCustomMsg = keeper.NoCustomMsg EncodeStakingMsg = keeper.EncodeStakingMsg EncodeWasmMsg = keeper.EncodeWasmMsg NewKeeper = keeper.NewKeeper NewLegacyQuerier = keeper.NewLegacyQuerier DefaultQueryPlugins = keeper.DefaultQueryPlugins BankQuerier = keeper.BankQuerier NoCustomQuerier = keeper.NoCustomQuerier StakingQuerier = keeper.StakingQuerier WasmQuerier = keeper.WasmQuerier CreateTestInput = keeper.CreateTestInput TestHandler = keeper.TestHandler NewWasmProposalHandler = keeper.NewWasmProposalHandler NewQuerier = keeper.Querier ContractFromPortID = keeper.ContractFromPortID WithWasmEngine = keeper.WithWasmEngine NewCountTXDecorator = keeper.NewCountTXDecorator // variable aliases ModuleCdc = types.ModuleCdc DefaultCodespace = types.DefaultCodespace ErrCreateFailed = types.ErrCreateFailed ErrAccountExists = types.ErrAccountExists ErrInstantiateFailed = types.ErrInstantiateFailed ErrExecuteFailed = types.ErrExecuteFailed ErrGasLimit = types.ErrGasLimit ErrInvalidGenesis = types.ErrInvalidGenesis ErrNotFound = types.ErrNotFound ErrQueryFailed = types.ErrQueryFailed ErrInvalidMsg = types.ErrInvalidMsg KeyLastCodeID = types.KeyLastCodeID KeyLastInstanceID = types.KeyLastInstanceID CodeKeyPrefix = types.CodeKeyPrefix ContractKeyPrefix = types.ContractKeyPrefix ContractStorePrefix = types.ContractStorePrefix EnableAllProposals = types.EnableAllProposals DisableAllProposals = types.DisableAllProposals )
Functions ¶
func AddModuleInitFlags ¶ added in v0.12.0
AddModuleInitFlags implements servertypes.ModuleInitFlags interface.
func NewHandler ¶
func NewHandler(k types.ContractOpsKeeper) sdk.Handler
NewHandler returns a handler for "wasm" type messages.
func ReadWasmConfig ¶ added in v0.12.0
func ReadWasmConfig(opts servertypes.AppOptions) (types.WasmConfig, error)
ReadWasmConfig reads the wasm specifig configuration
func ValidateChannelParams ¶ added in v0.16.0
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the wasm module.
func NewAppModule ¶
func NewAppModule( cdc codec.Codec, keeper *Keeper, validatorSetSource keeper.ValidatorSetSource, ak types.AccountKeeper, bk simKeeper.BankKeeper, ) 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) ConsensusVersion ¶ added in v0.22.0
ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1.
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 ¶
ExportGenesis returns the exported genesis state as raw bytes for the wasm module.
func (AppModule) GenerateGenesisState ¶ added in v0.12.0
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the bank module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the wasm module. It returns no validator updates.
func (AppModule) LegacyQuerierHandler ¶ added in v0.12.0
func (am AppModule) LegacyQuerierHandler(amino *codec.LegacyAmino) sdk.Querier
func (AppModule) ProposalContents ¶ added in v0.12.0
func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent
ProposalContents doesn't return any content functions for governance proposals.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the wasm module's querier route name.
func (AppModule) RandomizedParams ¶ added in v0.12.0
func (am AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange
RandomizedParams creates randomized bank param changes for the simulator.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the wasm module invariants.
func (AppModule) RegisterServices ¶ added in v0.12.0
func (am AppModule) RegisterServices(cfg module.Configurator)
func (AppModule) RegisterStoreDecoder ¶ added in v0.12.0
func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for supply module's types
func (AppModule) WeightedOperations ¶ added in v0.12.0
func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.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(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the wasm module.
func (AppModuleBasic) GetQueryCmd ¶
func (b AppModuleBasic) GetQueryCmd() *cobra.Command
GetQueryCmd returns no root query command for the wasm module.
func (AppModuleBasic) GetTxCmd ¶
func (b AppModuleBasic) GetTxCmd() *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) RegisterGRPCGatewayRoutes ¶ added in v0.12.0
func (b AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, serveMux *runtime.ServeMux)
func (AppModuleBasic) RegisterInterfaces ¶ added in v0.12.0
func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces implements InterfaceModule
func (AppModuleBasic) RegisterLegacyAminoCodec ¶ added in v0.12.0
func (b AppModuleBasic) RegisterLegacyAminoCodec(amino *codec.LegacyAmino)
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(cliCtx client.Context, rtr *mux.Router)
RegisterRESTRoutes registers the REST routes for the wasm module.
func (AppModuleBasic) ValidateGenesis ¶
func (b AppModuleBasic) ValidateGenesis(marshaler codec.JSONCodec, config client.TxEncodingConfig, message json.RawMessage) error
ValidateGenesis performs genesis state validation for the wasm module.
type BankEncoder ¶
type BankEncoder = keeper.BankEncoder
type CodeInfoResponse ¶ added in v0.12.0
type CodeInfoResponse = types.CodeInfoResponse
type Config ¶ added in v0.11.0
type Config = types.WasmConfig
type ContractConfirmStateAck ¶ added in v0.22.0
type ContractConfirmStateAck []byte
func (ContractConfirmStateAck) Acknowledgement ¶ added in v0.22.0
func (w ContractConfirmStateAck) Acknowledgement() []byte
func (ContractConfirmStateAck) Success ¶ added in v0.22.0
func (w ContractConfirmStateAck) Success() bool
type ContractInfo ¶
type ContractInfo = types.ContractInfo
type CreatedAt ¶
type CreatedAt = types.AbsoluteTxPosition
type CustomEncoder ¶
type CustomEncoder = keeper.CustomEncoder
type CustomQuerier ¶
type CustomQuerier = keeper.CustomQuerier
type GenesisState ¶
type GenesisState = types.GenesisState
type IBCHandler ¶ added in v0.16.0
type IBCHandler struct {
// contains filtered or unexported fields
}
func NewIBCHandler ¶ added in v0.16.0
func NewIBCHandler(k types.IBCContractKeeper, ck types.ChannelKeeper) IBCHandler
func (IBCHandler) NegotiateAppVersion ¶ added in v0.22.0
func (i IBCHandler) NegotiateAppVersion( ctx sdk.Context, order channeltypes.Order, connectionID string, portID string, counterparty channeltypes.Counterparty, proposedVersion string, ) (version string, err error)
func (IBCHandler) OnAcknowledgementPacket ¶ added in v0.16.0
func (i IBCHandler) OnAcknowledgementPacket( ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress, ) error
OnAcknowledgementPacket implements the IBCModule interface
func (IBCHandler) OnChanCloseConfirm ¶ added in v0.16.0
func (i IBCHandler) OnChanCloseConfirm(ctx sdk.Context, portID, channelID string) error
OnChanCloseConfirm implements the IBCModule interface
func (IBCHandler) OnChanCloseInit ¶ added in v0.16.0
func (i IBCHandler) OnChanCloseInit(ctx sdk.Context, portID, channelID string) error
OnChanCloseInit implements the IBCModule interface
func (IBCHandler) OnChanOpenAck ¶ added in v0.16.0
func (i IBCHandler) OnChanOpenAck( ctx sdk.Context, portID, channelID string, counterpartyChannelID string, counterpartyVersion string, ) error
OnChanOpenAck implements the IBCModule interface
func (IBCHandler) OnChanOpenConfirm ¶ added in v0.16.0
func (i IBCHandler) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string) error
OnChanOpenConfirm implements the IBCModule interface
func (IBCHandler) OnChanOpenInit ¶ added in v0.16.0
func (i IBCHandler) OnChanOpenInit( ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID string, channelID string, chanCap *capabilitytypes.Capability, counterParty channeltypes.Counterparty, version string, ) error
OnChanOpenInit implements the IBCModule interface
func (IBCHandler) OnChanOpenTry ¶ added in v0.16.0
func (i IBCHandler) OnChanOpenTry( ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID, channelID string, chanCap *capabilitytypes.Capability, counterParty channeltypes.Counterparty, counterpartyVersion string, ) (string, error)
OnChanOpenTry implements the IBCModule interface
func (IBCHandler) OnRecvPacket ¶ added in v0.16.0
func (i IBCHandler) OnRecvPacket( ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress, ) ibcexported.Acknowledgement
OnRecvPacket implements the IBCModule interface
func (IBCHandler) OnTimeoutPacket ¶ added in v0.16.0
func (i IBCHandler) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
OnTimeoutPacket implements the IBCModule interface
type MessageEncoders ¶
type MessageEncoders = keeper.MessageEncoders
type MessageHandler ¶
type MessageHandler = keeper.SDKMessageHandler
type MsgClearAdmin ¶ added in v0.9.0
type MsgClearAdmin = types.MsgClearAdmin
type MsgClearAdminResponse ¶ added in v0.14.1
type MsgClearAdminResponse = types.MsgClearAdminResponse
type MsgExecuteContract ¶
type MsgExecuteContract = types.MsgExecuteContract
type MsgExecuteContractResponse ¶ added in v0.14.1
type MsgExecuteContractResponse = types.MsgExecuteContractResponse
type MsgInstantiateContract ¶
type MsgInstantiateContract = types.MsgInstantiateContract
type MsgInstantiateContractResponse ¶ added in v0.14.1
type MsgInstantiateContractResponse = types.MsgInstantiateContractResponse
type MsgMigrateContract ¶ added in v0.9.0
type MsgMigrateContract = types.MsgMigrateContract
type MsgMigrateContractResponse ¶ added in v0.14.1
type MsgMigrateContractResponse = types.MsgMigrateContractResponse
type MsgStoreCode ¶
type MsgStoreCode = types.MsgStoreCode
type MsgStoreCodeResponse ¶ added in v0.14.1
type MsgStoreCodeResponse = types.MsgStoreCodeResponse
type MsgUpdateAdmin ¶ added in v0.9.0
type MsgUpdateAdmin = types.MsgUpdateAdmin
type MsgUpdateAdminResponse ¶ added in v0.14.1
type MsgUpdateAdminResponse = types.MsgUpdateAdminResponse
type MsgWasmIBCCall ¶ added in v0.16.0
type MsgWasmIBCCall = types.MsgIBCSend
type ProposalType ¶ added in v0.10.0
type ProposalType = types.ProposalType
type QueryHandler ¶
type QueryHandler = keeper.QueryHandler
type QueryPlugins ¶
type QueryPlugins = keeper.QueryPlugins
type StakingEncoder ¶
type StakingEncoder = keeper.StakingEncoder
type WasmEncoder ¶
type WasmEncoder = keeper.WasmEncoder