Documentation ¶
Index ¶
- Constants
- Variables
- func CloseDB()
- func InitGenesis(ctx sdk.Context, k Keeper, accountKeeper types.AccountKeeper, ...) []abci.ValidatorUpdate
- func NewHandler(k *Keeper) sdk.Handler
- func NewManageContractDeploymentWhitelistProposalHandler(k *Keeper) govTypes.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- 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) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- 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 GenesisState
- type Keeper
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey DefaultParamspace = types.DefaultParamspace )
nolint
Variables ¶
var ( NewKeeper = keeper.NewKeeper TxDecoder = types.TxDecoder NewSimulateKeeper = keeper.NewSimulateKeeper SetEvmParamsNeedUpdate = types.SetEvmParamsNeedUpdate )
nolint
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, accountKeeper types.AccountKeeper, data GenesisState) []abci.ValidatorUpdate
InitGenesis initializes genesis state based on exported genesis
func NewHandler ¶
NewHandler returns a handler for Ethermint type messages.
func NewManageContractDeploymentWhitelistProposalHandler ¶
NewManageContractDeploymentWhitelistProposalHandler handles "gov" type message in "evm"
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the evm module.
func NewAppModule ¶
func NewAppModule(k *Keeper, ak types.AccountKeeper) AppModule
NewAppModule creates a new AppModule Object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock function for module at start of each block
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock function for module at end of block
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis exports the genesis state to be used by daemon
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis instantiates the genesis state
func (AppModule) NewHandler ¶
NewHandler sets up a new handler for module
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler sets up new querier handler for module
func (AppModule) QuerierRoute ¶
QuerierRoute sets up path for queries
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants interface for registering invariants
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic struct
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis is json default structure
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd Gets the root query command of this module
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd Gets the root tx command of this module
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers types for module
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes Registers rest routes
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis is the validation check of the Genesis
type GenesisState ¶
type GenesisState = types.GenesisState
nolint
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper, ak types.AccountKeeper) GenesisState
ExportGenesis exports genesis state of the EVM module