environment

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 3 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
}

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) 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
}

Jump to

Keyboard shortcuts

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