statedb

package
v0.0.0-...-e4e12f0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateDB

type StateDB struct {
	// contains filtered or unexported fields
}

StateDB implements evm.StateDB, only adapt to evm.

func New

func New(state *state.State) *StateDB

New create a statedb object.

func (*StateDB) AddBalance

func (s *StateDB) AddBalance(addr common.Address, amount *big.Int)

AddBalance stub.

func (*StateDB) AddLog

func (s *StateDB) AddLog(vmlog *types.Log)

AddLog stub.

func (*StateDB) AddPreimage

func (s *StateDB) AddPreimage(hash common.Hash, preimage []byte)

AddPreimage stub.

func (*StateDB) AddRefund

func (s *StateDB) AddRefund(gas uint64)

AddRefund stub.

func (*StateDB) AddTransfer

func (s *StateDB) AddTransfer(transfer *tx.Transfer)

func (*StateDB) CreateAccount

func (s *StateDB) CreateAccount(addr common.Address)

CreateAccount stub.

func (*StateDB) Empty

func (s *StateDB) Empty(addr common.Address) bool

Empty stub.

func (*StateDB) Exist

func (s *StateDB) Exist(addr common.Address) bool

Exist stub.

func (*StateDB) GetBalance

func (s *StateDB) GetBalance(addr common.Address) *big.Int

GetBalance stub.

func (*StateDB) GetCode

func (s *StateDB) GetCode(addr common.Address) []byte

GetCode stub.

func (*StateDB) GetCodeHash

func (s *StateDB) GetCodeHash(addr common.Address) common.Hash

GetCodeHash stub.

func (*StateDB) GetCodeSize

func (s *StateDB) GetCodeSize(addr common.Address) int

GetCodeSize stub.

func (*StateDB) GetLogs

func (s *StateDB) GetLogs() (tx.Events, tx.Transfers)

GetLogs returns collected event and transfer logs.

func (*StateDB) GetNonce

func (s *StateDB) GetNonce(addr common.Address) uint64

GetNonce stub.

func (*StateDB) GetRefund

func (s *StateDB) GetRefund() uint64

GetRefund returns total refund during VM life-cycle.

func (*StateDB) GetState

func (s *StateDB) GetState(addr common.Address, key common.Hash) common.Hash

GetState stub.

func (*StateDB) HasSuicided

func (s *StateDB) HasSuicided(addr common.Address) bool

HasSuicided stub.

func (*StateDB) RevertToSnapshot

func (s *StateDB) RevertToSnapshot(rev int)

RevertToSnapshot stub.

func (*StateDB) SetCode

func (s *StateDB) SetCode(addr common.Address, code []byte)

SetCode stub.

func (*StateDB) SetNonce

func (s *StateDB) SetNonce(addr common.Address, nonce uint64)

SetNonce stub.

func (*StateDB) SetState

func (s *StateDB) SetState(addr common.Address, key, value common.Hash)

SetState stub.

func (*StateDB) Snapshot

func (s *StateDB) Snapshot() int

Snapshot stub.

func (*StateDB) SubBalance

func (s *StateDB) SubBalance(addr common.Address, amount *big.Int)

SubBalance stub.

func (*StateDB) Suicide

func (s *StateDB) Suicide(addr common.Address) bool

Suicide stub. We do two things: 1, delete account 2, set suicide flag

Jump to

Keyboard shortcuts

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