Documentation ¶
Overview ¶
Package cvm defines the cvm module.
Index ¶
- Constants
- Variables
- func BeginBlocker(ctx sdk.Context, k keeper.Keeper)
- func EndBlocker(ctx sdk.Context, k keeper.Keeper)
- func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState) []abci.ValidatorUpdate
- func NewHandler(keeper Keeper) sdk.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, _ 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 (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type AppModuleBasic
- type GenesisState
- type Keeper
- type MsgCall
- type MsgDeploy
- type QueryResAbi
- type QueryResView
- type State
Constants ¶
const ( ModuleName = types.ModuleName QuerierRoute = types.QuerierRoute RouterKey = types.RouterKey StoreKey = types.StoreKey )
Variables ¶
var ( DefaultGenesisState = types.DefaultGenesisState ModuleCdc = types.ModuleCdc DefaultParamSpace = types.DefaultParamspace NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier RegisterCodec = types.RegisterCodec ValidateGenesis = types.ValidateGenesis NewMsgCall = types.NewMsgCall )
Functions ¶
func BeginBlocker ¶
BeginBlocker stores previous block's hash into the k-v store.
func EndBlocker ¶
EndBlocker ends the block by sending all coins stored at the zero address to the community pool.
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState) []abci.ValidatorUpdate
func NewHandler ¶
NewHandler returns a handler for "cvm" type messages.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule specifies the app module object.
func NewAppModule ¶
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock implements the Cosmos SDK BeginBlock module function.
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock implements the Cosmos SDK EndBlock module function.
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis initializes the module export genesis.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis initializes the module genesis.
func (AppModule) NewHandler ¶
NewHandler returns a new module handler.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns a new querier module handler.
func (AppModule) ProposalContents ¶
func (AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
ProposalContents returns functions that generate gov proposals for the module.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the module querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the module invariants.
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
WeightedOperations returns cvm operations for use in simulations.
type AppModuleBasic ¶
type AppModuleBasic struct {
common.AppModuleBasic
}
AppModuleBasic specifies the app module basics object.
func NewAppModuleBasic ¶
func NewAppModuleBasic() AppModuleBasic
NewAppModuleBasic create a new AppModuleBasic object in cvm module.
func (AppModuleBasic) GenerateGenesisState ¶
func (AppModuleBasic) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of this module.
func (AppModuleBasic) RandomizedParams ¶
func (AppModuleBasic) RandomizedParams(_ *rand.Rand) []sim.ParamChange
RandomizedParams returns functions that generate params for the module.
func (AppModuleBasic) RegisterStoreDecoder ¶
func (AppModuleBasic) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for cvm module.
type GenesisState ¶
type GenesisState = types.GenesisState
type QueryResAbi ¶
type QueryResAbi = types.QueryResAbi
type QueryResView ¶
type QueryResView = types.QueryResView