environment

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: Apache-2.0 Imports: 4 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 {
	Namespace *evmInt256.Int
	Code      []byte
	Hash      *evmInt256.Int
	// contains filtered or unexported fields
}

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 *evmInt256.Int
	Value  *evmInt256.Int
	Data   []byte
}

func (Message) DataSize

func (m Message) DataSize() uint64

type Transaction

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

	BlobFeeCap *evmInt256.Int
	BlobHashes [][common.HashLength]byte
}

Jump to

Keyboard shortcuts

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