Merge pull request #22 from openrelayxyz/feature/expose-state-trie
Feature/expose state trie
This commit is contained in:
commit
cee6a9b8c3
@ -228,8 +228,7 @@ type Context interface {
|
|||||||
|
|
||||||
type Trie interface {
|
type Trie interface {
|
||||||
GetKey([]byte) []byte
|
GetKey([]byte) []byte
|
||||||
TryGet(key []byte) ([]byte, error)
|
GetAccount(address Address) (*StateAccount, error)
|
||||||
TryGetAccount(address Address) (*StateAccount, error)
|
|
||||||
Hash() Hash
|
Hash() Hash
|
||||||
NodeIterator(startKey []byte) NodeIterator
|
NodeIterator(startKey []byte) NodeIterator
|
||||||
Prove(key []byte, fromLevel uint, proofDb KeyValueWriter) error
|
Prove(key []byte, fromLevel uint, proofDb KeyValueWriter) error
|
||||||
@ -261,4 +260,4 @@ type NodeResolver func(owner Hash, path []byte, hash Hash) []byte
|
|||||||
type KeyValueWriter interface {
|
type KeyValueWriter interface {
|
||||||
Put(key []byte, value []byte) error
|
Put(key []byte, value []byte) error
|
||||||
Delete(key []byte) error
|
Delete(key []byte) error
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user