api

package
v0.4.3-beta Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertEthLog

func ConvertEthLog(logs *support.Log) *artelatypes.EthLog

func ConvertEthLogs

func ConvertEthLogs(logs []*support.Log) []*artelatypes.EthLog

func GetEvmHostInstance

func GetEvmHostInstance() (artelatypes.EvmHostApi, error)

func GetRuntimeInstance

func GetRuntimeInstance() (asptypes.RuntimeHostApi, error)

func GetStateApiInstance

func GetStateApiInstance() (artelatypes.StateDbHostApi, error)

func NewAspectRuntime

func NewAspectRuntime(
	storeKey storetypes.StoreKey,
	getEthTxContext func() *types.EthTxContext,
	getAspectContext func() *types.AspectContext,
	getExtBlockContext func() *types.ExtBlockContext,
	getEthereumConfig func(ctx sdk.Context) *ethparams.ChainConfig,
	app *baseapp.BaseApp,
)

func NewEvmHostInstance

func NewEvmHostInstance(getCtxByHeight func(height int64, prove bool) (sdk.Context, error),
	ethCall func(c context.Context, req *types.EthCallRequest) (*types.MsgEthereumTxResponse, error),
)

func NewStateDbApi

func NewStateDbApi(getLastStateDB func() vm.StateDB)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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