sebak: boscoin.io/sebak/lib/storage/statedb Index | Files | Directories

package statedb

import "boscoin.io/sebak/lib/storage/statedb"

Index

Package Files

state_object.go statedb.go

type Code Uses

type Code []byte

type StateDB Uses

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

func New Uses

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

func (*StateDB) AddBalance Uses

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

func (*StateDB) AddBalanceWithSequenceID Uses

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

func (*StateDB) CommitDB Uses

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

func (*StateDB) CommitTrie Uses

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

func (*StateDB) CreateAccount Uses

func (stateDB *StateDB) CreateAccount(addr string)

func (*StateDB) ExistAccount Uses

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

func (*StateDB) GetBalance Uses

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

func (*StateDB) GetCheckPoint Uses

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

func (*StateDB) GetCode Uses

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

func (*StateDB) GetCodeHash Uses

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

func (*StateDB) GetOrNewStateObject Uses

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

func (*StateDB) GetState Uses

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

func (*StateDB) MarkStateObjectDirty Uses

func (stateDB *StateDB) MarkStateObjectDirty(addr string)

func (*StateDB) SetCode Uses

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

func (*StateDB) SetSequenceID Uses

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

func (*StateDB) SetState Uses

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

func (*StateDB) SubBalance Uses

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

func (*StateDB) SubBalanceWithSequenceID Uses

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

type Storage Uses

type Storage map[common.Hash]common.Hash

Directories

PathSynopsis
trie

Package statedb imports 6 packages (graph). Updated 2019-04-06. Refresh now. Tools for package owners.