move witness types from tree_from_witness.nim to witness_types.nim
This commit is contained in:
parent
5ae1bac115
commit
809f9d13bd
|
@ -1,16 +1,8 @@
|
|||
import faststreams/input_stream, eth/common, stint, stew/endians2
|
||||
import
|
||||
faststreams/input_stream, eth/common, stint, stew/endians2,
|
||||
./witness_types
|
||||
|
||||
type
|
||||
TrieNodeType = enum
|
||||
BranchNodeType
|
||||
ExtensionNodeType
|
||||
AccountNodeType
|
||||
HashNodeType
|
||||
|
||||
AccountType = enum
|
||||
SimpleAccountType
|
||||
ExtendedAccountType
|
||||
|
||||
TreeBuilder = object
|
||||
input: InputStream
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@ import
|
|||
stew/byteutils,
|
||||
nimcrypto/[keccak, hash], eth/rlp,
|
||||
eth/trie/[trie_defs, nibbles, db],
|
||||
faststreams/output_stream
|
||||
faststreams/output_stream,
|
||||
./witness_types
|
||||
|
||||
type
|
||||
DB = TrieDatabaseRef
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
type
|
||||
TrieNodeType* = enum
|
||||
BranchNodeType
|
||||
ExtensionNodeType
|
||||
AccountNodeType
|
||||
HashNodeType
|
||||
|
||||
AccountType* = enum
|
||||
SimpleAccountType
|
||||
ExtendedAccountType
|
Loading…
Reference in New Issue