cvm

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package cvm defines the cvm module.

Index

Constants

View Source
const (
	ModuleName   = types.ModuleName
	QuerierRoute = types.QuerierRoute
	RouterKey    = types.RouterKey
	StoreKey     = types.StoreKey
)

Variables

View Source
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

func BeginBlocker(ctx sdk.Context, k keeper.Keeper)

BeginBlocker stores previous block's hash into the k-v store.

func EndBlocker

func EndBlocker(ctx sdk.Context, k keeper.Keeper)

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

func NewHandler(keeper Keeper) sdk.Handler

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

func NewAppModule(k Keeper) AppModule

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

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

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns a new module handler.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns a new querier module handler.

func (AppModule) ProposalContents

ProposalContents returns functions that generate gov proposals for the module.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns the module querier route name.

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants registers the module invariants.

func (AppModule) Route

func (AppModule) Route() string

Route returns the module's route key.

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 Keeper

type Keeper = keeper.Keeper

type MsgCall

type MsgCall = types.MsgCall

type MsgDeploy

type MsgDeploy = types.MsgDeploy

type QueryResAbi

type QueryResAbi = types.QueryResAbi

type QueryResView

type QueryResView = types.QueryResView

type State

type State = keeper.State

Directories

Path Synopsis
client
cli
Package cli defines the CLI services for the cvm module.
Package cli defines the CLI services for the cvm module.
Package keeper specifies the keeper for the cvm module.
Package keeper specifies the keeper for the cvm module.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL