Versions in this module Expand all Collapse all v0 v0.0.1 Jan 25, 2016 Changes in this version + var StartingNonce uint64 + type Account struct + Balance string + CodeHash string + Nonce uint64 + Root string + Storage map[string]string + type Code []byte + func (self Code) String() string + type ManagedState struct + func ManageState(statedb *StateDB) *ManagedState + func (ms *ManagedState) GetNonce(addr common.Address) uint64 + func (ms *ManagedState) HasAccount(addr common.Address) bool + func (ms *ManagedState) NewNonce(addr common.Address) uint64 + func (ms *ManagedState) RemoveNonce(addr common.Address, n uint64) + func (ms *ManagedState) SetNonce(addr common.Address, nonce uint64) + func (ms *ManagedState) SetState(statedb *StateDB) + type StateDB struct + func New(root common.Hash, db ethdb.Database) (*StateDB, error) + func (s *StateDB) Commit() (root common.Hash, err error) + func (s *StateDB) CommitBatch() (root common.Hash, batch ethdb.Batch) + func (s *StateDB) IntermediateRoot() common.Hash + func (self *StateDB) AddBalance(addr common.Address, amount *big.Int) + func (self *StateDB) AddLog(log *vm.Log) + func (self *StateDB) AddRefund(gas *big.Int) + func (self *StateDB) Copy() *StateDB + func (self *StateDB) CreateAccount(addr common.Address) vm.Account + func (self *StateDB) CreateOutputForDiff() + func (self *StateDB) CreateStateObject(addr common.Address) *StateObject + func (self *StateDB) Delete(addr common.Address) bool + func (self *StateDB) DeleteStateObject(stateObject *StateObject) + func (self *StateDB) Dump() []byte + func (self *StateDB) Exist(addr common.Address) bool + func (self *StateDB) GetAccount(addr common.Address) vm.Account + func (self *StateDB) GetBalance(addr common.Address) *big.Int + func (self *StateDB) GetCode(addr common.Address) []byte + func (self *StateDB) GetLogs(hash common.Hash) vm.Logs + func (self *StateDB) GetNonce(addr common.Address) uint64 + func (self *StateDB) GetOrNewStateObject(addr common.Address) *StateObject + func (self *StateDB) GetRefund() *big.Int + func (self *StateDB) GetState(a common.Address, b common.Hash) common.Hash + func (self *StateDB) GetStateObject(addr common.Address) (stateObject *StateObject) + func (self *StateDB) HasAccount(addr common.Address) bool + func (self *StateDB) IsDeleted(addr common.Address) bool + func (self *StateDB) Logs() vm.Logs + func (self *StateDB) RawDump() World + func (self *StateDB) Refunds() *big.Int + func (self *StateDB) Set(state *StateDB) + func (self *StateDB) SetCode(addr common.Address, code []byte) + func (self *StateDB) SetNonce(addr common.Address, nonce uint64) + func (self *StateDB) SetState(addr common.Address, key common.Hash, value common.Hash) + func (self *StateDB) SetStateObject(object *StateObject) + func (self *StateDB) StartRecord(thash, bhash common.Hash, ti int) + func (self *StateDB) UpdateStateObject(stateObject *StateObject) + type StateObject struct + func DecodeObject(address common.Address, db trie.Database, data []byte) (*StateObject, error) + func NewStateObject(address common.Address, db trie.Database) *StateObject + func (c *StateObject) AddBalance(amount *big.Int) + func (c *StateObject) Address() common.Address + func (c *StateObject) EncodeRLP(w io.Writer) error + func (c *StateObject) ReturnGas(gas, price *big.Int) + func (c *StateObject) SetBalance(amount *big.Int) + func (c *StateObject) St() Storage + func (c *StateObject) SubBalance(amount *big.Int) + func (self *StateObject) Balance() *big.Int + func (self *StateObject) Code() []byte + func (self *StateObject) Copy() *StateObject + func (self *StateObject) CreateOutputForDiff() + func (self *StateObject) EachStorage(cb func(key, value []byte)) + func (self *StateObject) GetState(key common.Hash) common.Hash + func (self *StateObject) MarkForDeletion() + func (self *StateObject) Nonce() uint64 + func (self *StateObject) Root() []byte + func (self *StateObject) SetCode(code []byte) + func (self *StateObject) SetNonce(nonce uint64) + func (self *StateObject) SetState(k, value common.Hash) + func (self *StateObject) Storage() Storage + func (self *StateObject) Trie() *trie.SecureTrie + func (self *StateObject) Update() + type StateSync trie.TrieSync + func NewStateSync(root common.Hash, database ethdb.Database) *StateSync + func (s *StateSync) Missing(max int) []common.Hash + func (s *StateSync) Pending() int + func (s *StateSync) Process(list []trie.SyncResult) (int, error) + type Storage map[string]common.Hash + func (self Storage) Copy() Storage + func (self Storage) String() (str string) + type World struct + Accounts map[string]Account + Root string