Documentation ¶
Overview ¶
VM module.
Index ¶
- Constants
- Variables
- func NewHandler(keeper Keeper) sdk.Handler
- func NewQuerier(vmKeeper Keeper) sdk.Querier
- type AppModule
- func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (app AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (app AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (app AppModule) NewHandler() sdk.Handler
- func (app AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (module 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 (module AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, r *mux.Router)
- func (AppModuleBasic) ValidateGenesis(data json.RawMessage) error
- type ErrVMCrashed
- type Keeper
- type MsgDeployModule
- type MsgExecuteScript
- type QueryAccessPath
- type QueryValueResp
- type UnimplementedVMServiceServer
- type VMServer
Constants ¶
View Source
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey )
View Source
const ( // Queries types for querier. QueryValue = "value" // Get value by access path. )
Variables ¶
View Source
var ( NewKeeper = keeper.NewKeeper RegisterVMServiceServer = vm_grpc.RegisterVMServiceServer )
Functions ¶
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
VM module.
func (AppModule) BeginBlock ¶
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
Process begin block (abci).
func (AppModule) EndBlock ¶
func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
Process end block (abci).
func (AppModule) ExportGenesis ¶
func (app AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
Export genesis.
func (AppModule) InitGenesis ¶
func (app AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
Initialize genesis.
func (AppModule) NewQuerierHandler ¶
Get new querier for VM module.
func (AppModule) RegisterInvariants ¶
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
Register module invariants.
type AppModuleBasic ¶
type AppModuleBasic struct{}
func (AppModuleBasic) DefaultGenesis ¶
func (module AppModuleBasic) DefaultGenesis() json.RawMessage
Generate default genesis.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
Get query commands for CLI.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
Get transaction commands for CLI.
func (AppModuleBasic) RegisterCodec ¶
func (module AppModuleBasic) RegisterCodec(cdc *codec.Codec)
Registering codecs.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, r *mux.Router)
Register REST routes.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(data json.RawMessage) error
Validate exists genesis.
type ErrVMCrashed ¶
type ErrVMCrashed = types.ErrVMCrashed
type MsgDeployModule ¶
type MsgDeployModule = types.MsgDeployModule
type MsgExecuteScript ¶
type MsgExecuteScript = types.MsgExecuteScript
type QueryAccessPath ¶
type QueryAccessPath = types.QueryAccessPath
type QueryValueResp ¶
type QueryValueResp = types.QueryValueResp
type UnimplementedVMServiceServer ¶
type UnimplementedVMServiceServer = vm_grpc.UnimplementedVMServiceServer
type VMServer ¶
type VMServer = vm_grpc.VMServiceServer
Directories ¶
Path | Synopsis |
---|---|
client
|
|
cli
Genesis block related commands for VM module.
|
Genesis block related commands for VM module. |
internal
|
|
keeper
VM keeper processing messages from handler.
|
VM keeper processing messages from handler. |
types
DumbGasMeter - gas meter that doesn't count amount of gas during usage.
|
DumbGasMeter - gas meter that doesn't count amount of gas during usage. |
Click to show internal directories.
Click to hide internal directories.