statefull

package
v0.0.0-...-1f8a15b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyBorMessage

func ApplyBorMessage(vmenv vm.EVM, msg Callmsg) (*core.ExecutionResult, error)

Types

type Callmsg

type Callmsg struct {
	ethereum.CallMsg
}

callmsg implements core.Message to allow passing it as a transaction simulator.

func (Callmsg) CheckNonce

func (m Callmsg) CheckNonce() bool

func (Callmsg) Data

func (m Callmsg) Data() []byte

func (Callmsg) From

func (m Callmsg) From() libcommon.Address

func (Callmsg) Gas

func (m Callmsg) Gas() uint64

func (Callmsg) GasPrice

func (m Callmsg) GasPrice() *uint256.Int

func (Callmsg) Nonce

func (m Callmsg) Nonce() uint64

func (Callmsg) To

func (m Callmsg) To() *libcommon.Address

func (Callmsg) Value

func (m Callmsg) Value() *uint256.Int

type ChainContext

type ChainContext struct {
	Chain consensus.ChainReader
	Bor   consensus.Engine
}

func (ChainContext) Engine

func (c ChainContext) Engine() consensus.Engine

func (ChainContext) GetHeader

func (c ChainContext) GetHeader(hash libcommon.Hash, number uint64) *types.Header

Jump to

Keyboard shortcuts

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