evm

package
v1.16.43 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package evm provides internal EVM type definitions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainConfig

type ChainConfig struct {
	ChainID *big.Int `json:"chainId"`
}

ChainConfig represents the chain configuration

type Genesis

type Genesis struct {
	Config    *ChainConfig                      `json:"config"`
	Alloc     map[common.Address]GenesisAccount `json:"alloc"`
	Timestamp uint64                            `json:"timestamp"`
	GasLimit  uint64                            `json:"gasLimit"`
}

Genesis represents an EVM genesis block

type GenesisAccount

type GenesisAccount struct {
	Balance *big.Int                    `json:"balance"`
	Code    []byte                      `json:"code,omitempty"`
	Storage map[common.Hash]common.Hash `json:"storage,omitempty"`
}

GenesisAccount represents an account in the genesis block

Jump to

Keyboard shortcuts

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