executionlayer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName      = types.ModuleName
	RouterKey       = types.RouterKey
	HashMapStoreKey = types.HashMapStoreKey
	DeployStoreKey  = types.DeployStoreKey
)
View Source
const (
	QueryEE              = "query"
	QueryEEDetail        = "querydetail"
	QueryEEBalance       = "querybalance"
	QueryEEBalanceDetail = "querybalancedetail"
)

Variables

View Source
var (
	// function aliases
	NewMsgExecute  = types.NewMsgExecute
	RegisterCodec  = types.RegisterCodec
	NewUnitHashMap = types.NewUnitHashMap

	// variable aliases
	ModuleCdc = types.ModuleCdc
)

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, elk ExecutionLayerKeeper)

func ExportGenesis

func ExportGenesis(ctx sdk.Context, keeper ExecutionLayerKeeper) types.GenesisState

ExportGenesis : exports an executionlayer configuration for genesis

func InitGenesis

func InitGenesis(
	ctx sdk.Context, keeper ExecutionLayerKeeper, data types.GenesisState)

InitGenesis sets an executionlayer configuration for genesis.

func NewHandler

func NewHandler(k ExecutionLayerKeeper) sdk.Handler

NewHandler returns a handler for "executionlayer" type messages.

func NewQuerier

func NewQuerier(keeper ExecutionLayerKeeper) sdk.Querier

NewQuerier is the module level router for state queries

Types

type AppModule

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

___________________________ app module object

func NewAppModule

func NewAppModule(executionLayerKeeper ExecutionLayerKeeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)

module begin-block

func (AppModule) EndBlock

module end-block

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

module export genesis

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

module init-genesis

func (AppModule) Name

func (AppModule) Name() string

module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

module handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler constructs the query router

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute works to route query to this module (revised)

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

register invariants

func (AppModule) Route

func (AppModule) Route() string

Route works to route msg to this module (revised)

type AppModuleBasic

type AppModuleBasic struct{}

app module basics object

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

default genesis state

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

get the root query command of this module

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

get the root tx command of this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

module name

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

register module codec

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

register rest routes

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

module validate genesis

type ExecutionLayerKeeper

type ExecutionLayerKeeper struct {
	HashMapStoreKey sdk.StoreKey
	// contains filtered or unexported fields
}

func NewExecutionLayerKeeper

func NewExecutionLayerKeeper(
	cdc *codec.Codec, hashMapStoreKey sdk.StoreKey, path string, protocolVersion string) ExecutionLayerKeeper

func (ExecutionLayerKeeper) GetCurrentBlockHash

func (k ExecutionLayerKeeper) GetCurrentBlockHash(ctx sdk.Context) []byte

GetCurrentBlockHash returns current block hash

func (ExecutionLayerKeeper) GetEEState

func (k ExecutionLayerKeeper) GetEEState(ctx sdk.Context, blockHash []byte) []byte

GetEEState returns a eeState for blockHash

func (ExecutionLayerKeeper) GetGenesisConf

func (k ExecutionLayerKeeper) GetGenesisConf(ctx sdk.Context) types.GenesisConf

GetGenesisConf retrieves GenesisConf from sdk store

func (ExecutionLayerKeeper) GetQueryBalanceResult

func (k ExecutionLayerKeeper) GetQueryBalanceResult(ctx sdk.Context, stateHash []byte, address types.PublicKey) (string, error)

GetQueryBalanceResult queries with whole parameters

func (ExecutionLayerKeeper) GetQueryBalanceResultSimple

func (k ExecutionLayerKeeper) GetQueryBalanceResultSimple(ctx sdk.Context, address types.PublicKey) (string, error)

GetQueryBalanceResultSimple queries with whole parameters

func (ExecutionLayerKeeper) GetQueryResult

func (k ExecutionLayerKeeper) GetQueryResult(ctx sdk.Context,
	stateHash []byte, keyType string, keyData string, path string) (state.Value, error)

GetQueryResult queries with whole parameters

func (ExecutionLayerKeeper) GetQueryResultSimple

func (k ExecutionLayerKeeper) GetQueryResultSimple(ctx sdk.Context,
	keyType string, keyData string, path string) (state.Value, error)

GetQueryResultSimple queries without state hash. State hash comes from Tendermint block state - EE state mapping DB

func (ExecutionLayerKeeper) GetUnitHashMap

func (k ExecutionLayerKeeper) GetUnitHashMap(ctx sdk.Context, blockHash []byte) UnitHashMap

GetUnitHashMap returns a UnitHashMap for blockHash

func (ExecutionLayerKeeper) InitialUnitHashMap

func (k ExecutionLayerKeeper) InitialUnitHashMap(ctx sdk.Context, blockHash []byte)

InitialUnitHashMap initial UnitMapHash using empty hash value Used when genesis load

func (ExecutionLayerKeeper) SetCurrentBlockHash

func (k ExecutionLayerKeeper) SetCurrentBlockHash(ctx sdk.Context, blockHash []byte)

SetCurrentBlockHash saves current block hash

func (ExecutionLayerKeeper) SetEEState

func (k ExecutionLayerKeeper) SetEEState(ctx sdk.Context, blockHash []byte, eeState []byte) bool

SetEEState map eeState to blockHash

func (ExecutionLayerKeeper) SetGenesisConf

func (k ExecutionLayerKeeper) SetGenesisConf(ctx sdk.Context, genesisConf types.GenesisConf)

SetGenesisConf saves GenesisConf in sdk store

func (ExecutionLayerKeeper) SetUnitHashMap

func (k ExecutionLayerKeeper) SetUnitHashMap(ctx sdk.Context, blockHash []byte, unitHash UnitHashMap) bool

SetUnitHashMap map unitHash to blockHash

type MsgExecute

type MsgExecute = types.MsgExecute

type QueryExecutionLayer

type QueryExecutionLayer = types.QueryExecutionLayer

type QueryExecutionLayerDetail

type QueryExecutionLayerDetail = types.QueryExecutionLayerDetail

type QueryExecutionLayerResp

type QueryExecutionLayerResp = types.QueryExecutionLayerResp

type QueryGetBalance

type QueryGetBalance = types.QueryGetBalance

type QueryGetBalanceDetail

type QueryGetBalanceDetail = types.QueryGetBalanceDetail

type UnitHashMap

type UnitHashMap = types.UnitHashMap

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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