environment

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	ChainID     *evmInt256.Int
	Coinbase    *evmInt256.Int
	Timestamp   *evmInt256.Int
	Number      *evmInt256.Int
	Difficulty  *evmInt256.Int
	GasLimit    *evmInt256.Int
	Hash        *evmInt256.Int
	BaseFee     *evmInt256.Int
	BlobBaseFee *evmInt256.Int
}

type Context

type Context struct {
	Block       Block
	Contract    *Contract
	Transaction Transaction
	Message     Message
}

type Contract

type Contract struct {
	Address  types.Address
	Code     []byte
	CodeHash types.Hash
	CodeSize uint64
	// contains filtered or unexported fields
}

func (Contract) Clone added in v0.4.0

func (c Contract) Clone() *Contract

func (*Contract) GetOpCode added in v0.2.1

func (c *Contract) GetOpCode(pc uint64) byte

func (*Contract) IsValidJump

func (c *Contract) IsValidJump(dest uint64) (bool, error)

type Message

type Message struct {
	Caller types.Address
	Value  *evmInt256.Int
	Data   []byte
}

func (Message) DataSize

func (m Message) DataSize() uint64

type Transaction

type Transaction struct {
	TxHash   []byte
	Origin   types.Address
	GasPrice *evmInt256.Int
	GasLimit *evmInt256.Int

	BlobFeeCap *evmInt256.Int
	BlobHashes []types.Hash
}

Jump to

Keyboard shortcuts

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