statedb

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: LGPL-3.0 Imports: 10 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) AddBoundedBalance

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

AddBoundedBalance stub.

func (*StateDB) AddBoundedEnergy

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

AddBoundedEnergy stub.

func (*StateDB) AddEnergy

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

AddEnergy 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) BurnBalance

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

func (*StateDB) BurnEnergy

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

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

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

GetBoundedBalance stub.

func (*StateDB) GetBoundedEnergy

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

GetBoundedEnergy 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) GetEnergy

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

GetEnergy 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) MintBalance

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

mintBalance stub

func (*StateDB) MintEnergy

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

minEnergy 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) bool

SubBalance stub.

func (*StateDB) SubBoundedBalance

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

SubBoundedBalance stub.

func (*StateDB) SubBoundedEnergy

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

SubBoundedEnergy stub.

func (*StateDB) SubEnergy

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

SubEnergy 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