move witness types from tree_from_witness.nim to witness_types.nim

This commit is contained in:
andri lim 2020-04-21 18:04:18 +07:00
parent 5ae1bac115
commit 809f9d13bd
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
3 changed files with 15 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,10 @@
type
TrieNodeType* = enum
BranchNodeType
ExtensionNodeType
AccountNodeType
HashNodeType
AccountType* = enum
SimpleAccountType
ExtendedAccountType