api

package
v0.4.7-rc7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const AccountBalanceMagic = ".balance"

Variables

This section is empty.

Functions

func GetAspectPropertyHostInstance

func GetAspectPropertyHostInstance(ctx context.Context) (asptypes.AspectPropertyHostAPI, error)

func GetAspectRuntimeContextHostInstance

func GetAspectRuntimeContextHostInstance(ctx context.Context) (asptypes.RuntimeContextHostAPI, error)

func GetAspectStateHostInstance

func GetAspectStateHostInstance(ctx context.Context) (asptypes.AspectStateHostAPI, error)

func GetAspectTraceHostInstance

func GetAspectTraceHostInstance(ctx context.Context) (artelatypes.AspectTraceHostAPI, error)

func GetAspectTransientStorageHostInstance

func GetAspectTransientStorageHostInstance(ctx context.Context) (asptypes.AspectTransientStorageHostAPI, error)

func GetEvmHostInstance

func GetEvmHostInstance(ctx context.Context) (asptypes.EVMHostAPI, error)

func GetStateDBHostInstance

func GetStateDBHostInstance(ctx context.Context) (artelatypes.StateDBHostAPI, error)

func InitAspectGlobals

func InitAspectGlobals(keeper EVMKeeper)

Types

type EVMKeeper

type EVMKeeper interface {
	NewEVM(
		ctx cosmos.Context,
		msg *core.Message,
		cfg *states.EVMConfig,
		tracer vm.EVMLogger,
		stateDB vm.StateDB,
	) *vm.EVM
	EVMConfig(ctx cosmos.Context, proposerAddress cosmos.ConsAddress, chainID *big.Int) (*states.EVMConfig, error)
	ChainID() *big.Int
	GetAccount(ctx cosmos.Context, addr common.Address) *states.StateAccount
	GetState(ctx cosmos.Context, addr common.Address, key common.Hash) common.Hash
	GetCode(ctx cosmos.Context, codeHash common.Hash) []byte
	ForEachStorage(ctx cosmos.Context, addr common.Address, cb func(key, value common.Hash) bool)

	SetAccount(ctx cosmos.Context, addr common.Address, account states.StateAccount) error
	SetState(ctx cosmos.Context, addr common.Address, key common.Hash, value []byte)
	SetCode(ctx cosmos.Context, codeHash []byte, code []byte)
	DeleteAccount(ctx cosmos.Context, addr common.Address) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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