statedb

package
v0.0.0-...-8aa4d74 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code []byte

type StateDB

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

func New

func New(root common.Hash, db *trie.EthDatabase) *StateDB

func (*StateDB) AddBalance

func (stateDB *StateDB) AddBalance(addr string, amount common.Amount)

func (*StateDB) AddBalanceWithSequenceID

func (stateDB *StateDB) AddBalanceWithSequenceID(addr string, amount common.Amount, sequenceID uint64)

func (*StateDB) CommitDB

func (stateDB *StateDB) CommitDB(root common.Hash) (err error)

func (*StateDB) CommitTrie

func (stateDB *StateDB) CommitTrie() (root common.Hash, err error)

func (*StateDB) CreateAccount

func (stateDB *StateDB) CreateAccount(addr string)

func (*StateDB) ExistAccount

func (stateDB *StateDB) ExistAccount(addr string) bool

func (*StateDB) GetBalance

func (stateDB *StateDB) GetBalance(addr string) common.Amount

func (*StateDB) GetCheckPoint

func (stateDB *StateDB) GetCheckPoint(addr string) uint64

func (*StateDB) GetCode

func (stateDB *StateDB) GetCode(addr string) []byte

func (*StateDB) GetCodeHash

func (stateDB *StateDB) GetCodeHash(addr string) common.Hash

func (*StateDB) GetOrNewStateObject

func (stateDB *StateDB) GetOrNewStateObject(addr string) *stateObject

func (*StateDB) GetState

func (stateDB *StateDB) GetState(a string, b common.Hash) common.Hash

func (*StateDB) MarkStateObjectDirty

func (stateDB *StateDB) MarkStateObjectDirty(addr string)

func (*StateDB) SetCode

func (stateDB *StateDB) SetCode(addr string, code []byte)

func (*StateDB) SetSequenceID

func (stateDB *StateDB) SetSequenceID(addr string, sequenceID uint64)

func (*StateDB) SetState

func (stateDB *StateDB) SetState(addr string, key, value common.Hash)

func (*StateDB) SubBalance

func (stateDB *StateDB) SubBalance(addr string, amount common.Amount)

func (*StateDB) SubBalanceWithSequenceID

func (stateDB *StateDB) SubBalanceWithSequenceID(addr string, amount common.Amount, sequenceID uint64)

type Storage

type Storage map[common.Hash]common.Hash

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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