account

package
v0.0.0-...-78380f7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MimetypeDataWithValidator = "data/validator"
	MimetypeTypedData         = "data/typed"
	MimetypeClique            = "application/x-clique-header"
	MimetypeParlia            = "application/x-parlia-header"
	MimetypeBor               = "application/x-bor-header"
	MimetypeTextPlain         = "text/plain"
)

Variables

This section is empty.

Functions

func IsEmptyCodeHash

func IsEmptyCodeHash(codeHash types.Hash) bool

Types

type StateAccount

type StateAccount struct {
	Initialised bool
	Nonce       uint64
	Balance     uint256.Int
	Root        types.Hash
	CodeHash    types.Hash // hash of the bytecode
	Incarnation uint16
}

Account is the Ethereum consensus representation of accounts. These objects are stored in the main account trie. DESCRIBED: docs/programmers_guide/guide.md#ethereum-state

func NewAccount

func NewAccount() StateAccount

NewAccount creates a new account w/o code nor storage.

func (*StateAccount) Copy

func (a *StateAccount) Copy(image *StateAccount)

Copy makes `a` a full, independent (meaning that if the `image` changes in any way, it does not affect `a`) copy of the account `image`.

func (*StateAccount) DecodeForStorage

func (a *StateAccount) DecodeForStorage(enc []byte) error

func (*StateAccount) EncodeForStorage

func (a *StateAccount) EncodeForStorage(buffer []byte)

func (*StateAccount) EncodingLengthForStorage

func (a *StateAccount) EncodingLengthForStorage() uint

func (*StateAccount) Equals

func (a *StateAccount) Equals(acc *StateAccount) bool

func (*StateAccount) FromProtoMessage

func (a *StateAccount) FromProtoMessage(msg proto.Message) error

func (*StateAccount) GetIncarnation

func (a *StateAccount) GetIncarnation() uint16

func (*StateAccount) IsEmptyCodeHash

func (a *StateAccount) IsEmptyCodeHash() bool

func (*StateAccount) IsEmptyRoot

func (a *StateAccount) IsEmptyRoot() bool

func (*StateAccount) Marshal

func (a *StateAccount) Marshal() ([]byte, error)

func (*StateAccount) Reset

func (a *StateAccount) Reset()

func (*StateAccount) SelfCopy

func (a *StateAccount) SelfCopy() *StateAccount

func (*StateAccount) SetIncarnation

func (a *StateAccount) SetIncarnation(v uint16)

func (*StateAccount) ToProtoMessage

func (a *StateAccount) ToProtoMessage() proto.Message

func (*StateAccount) Unmarshal

func (a *StateAccount) Unmarshal(v []byte) error

Jump to

Keyboard shortcuts

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