vm

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

VM module.

Index

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

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

New message handler for PoA module.

func NewQuerier

func NewQuerier(vmKeeper Keeper) sdk.Querier

Create new querier.

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

VM module.

func NewAppModule

func NewAppModule(vmKeeper Keeper) AppModule

Create new VM module.

func (AppModule) BeginBlock

func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

Process begin block (abci).

func (AppModule) EndBlock

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) Name

func (AppModule) Name() string

Get name of module.

func (AppModule) NewHandler

func (app AppModule) NewHandler() sdk.Handler

Create new handler.

func (AppModule) NewQuerierHandler

func (app AppModule) NewQuerierHandler() sdk.Querier

Get new querier for VM module.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

Get route for querier.

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

Register module invariants.

func (AppModule) Route

func (AppModule) Route() string

Base route of module (for handler).

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) Name

func (AppModuleBasic) Name() string

Module name.

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 Keeper

type Keeper = keeper.Keeper

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
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.

Jump to

Keyboard shortcuts

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