std_shims -> stew

This commit is contained in:
Jacek Sieka 2019-07-07 11:55:17 +02:00
parent 3d2436d3df
commit 75c7c62651
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
26 changed files with 29 additions and 31 deletions

View File

@ -6,14 +6,12 @@ skipDirs = @["tests"]
requires "nim >= 0.19.0",
"nimcrypto",
"ranges",
"stint",
"byteutils",
"secp256k1",
"rocksdb",
"chronos",
"chronicles",
"std_shims",
"stew",
"result",
"nat_traversal"

View File

@ -1,4 +1,4 @@
import nimcrypto, hashes, byteutils, eth_types
import nimcrypto, hashes, stew/byteutils, eth_types
proc hash*(d: MDigest): Hash {.inline.} = hash(d.data)

View File

@ -311,7 +311,7 @@ proc randomNodes*(d: DiscoveryProtocol, count: int): seq[Node] {.inline.} =
d.kademlia.randomNodes(count)
when isMainModule:
import logging, byteutils
import logging, stew/byteutils
addHandler(newConsoleLogger())

View File

@ -1,6 +1,6 @@
import
macros, options,
std_shims/macros_shim, chronos, faststreams/output_stream
options,
stew/shims/macros, chronos, faststreams/output_stream
type
MessageKind* = enum

View File

@ -1,6 +1,6 @@
import
macros, tables, algorithm, deques, hashes, options, typetraits,
std_shims/macros_shim, chronicles, nimcrypto, chronos, eth/[rlp, common, keys, async_utils],
tables, algorithm, deques, hashes, options, typetraits,
stew/shims/macros, chronicles, nimcrypto, chronos, eth/[rlp, common, keys, async_utils],
private/p2p_types, kademlia, auth, rlpxcrypt, enode, p2p_protocol_dsl
when useSnappy:

View File

@ -9,7 +9,7 @@
#
import
times, tables, options, sets, hashes, strutils, std_shims/macros_shim,
times, tables, options, sets, hashes, strutils, stew/shims/macros,
chronicles, chronos, nimcrypto/[keccak, hash],
eth/[rlp, keys], eth/common/eth_types,
../rlpx, ../kademlia, ../private/p2p_types, ../blockchain_utils,

View File

@ -9,7 +9,7 @@
import
algorithm, bitops, endians, math, options, sequtils, strutils, tables, times,
secp256k1, chronicles, chronos, eth/common/eth_types, eth/[keys, rlp, async_utils],
hashes, byteutils, nimcrypto/[bcmode, hash, keccak, rijndael, sysrand],
hashes, stew/byteutils, nimcrypto/[bcmode, hash, keccak, rijndael, sysrand],
eth/p2p, ../ecies
logScope:

View File

@ -10,7 +10,7 @@
## This module implements RLPx cryptography
import ranges/stackarrays, eth/rlp/types, nimcrypto
import stew/ranges/stackarrays, eth/rlp/types, nimcrypto
from auth import ConnectionSecret
const

View File

@ -1,4 +1,4 @@
import ranges
import stew/ranges
export ranges
type

View File

@ -1,6 +1,6 @@
import
macros, types,
ranges/[memranges, ptr_arith],
stew/ranges/[memranges, ptr_arith],
object_serialization, priv/defs
export

View File

@ -1,5 +1,5 @@
import
ranges, tables, sets,
stew/ranges, tables, sets,
eth/trie/db
type

View File

@ -1,4 +1,4 @@
import os, ranges, eth/trie/[trie_defs, db_tracing]
import os, stew/ranges, eth/trie/[trie_defs, db_tracing]
import backend_defs
when defined(windows):

View File

@ -1,4 +1,4 @@
import os, rocksdb, ranges, eth/trie/[trie_defs, db_tracing]
import os, rocksdb, stew/ranges, eth/trie/[trie_defs, db_tracing]
import backend_defs
type

View File

@ -1,5 +1,5 @@
import
os, sqlite3, ranges, ranges/ptr_arith, eth/trie/[db_tracing, trie_defs],
os, sqlite3, stew/ranges, stew/ranges/ptr_arith, eth/trie/[db_tracing, trie_defs],
backend_defs
type

View File

@ -1,6 +1,6 @@
import
sequtils,
ranges/[ptr_arith, bitranges], eth/rlp/types
stew/ranges/[ptr_arith, bitranges], eth/rlp/types
type
TrieNodeKind* = enum

View File

@ -1,5 +1,5 @@
import
ranges/[ptr_arith, typedranges, bitranges], eth/rlp/types,
stew/ranges/[ptr_arith, typedranges, bitranges], eth/rlp/types,
trie_defs, db, binaries, trie_utils
export

View File

@ -1,5 +1,5 @@
import
eth/rlp/types, ranges/bitranges,
eth/rlp/types, stew/ranges/bitranges,
trie_defs, binary, binaries, db, trie_utils
type

View File

@ -1,6 +1,6 @@
import
tables,
nimcrypto/[keccak, hash, utils], ranges/ptr_arith, eth/rlp,
nimcrypto/[keccak, hash, utils], stew/ranges/ptr_arith, eth/rlp,
trie_defs, nibbles, trie_utils as trieUtils, db
type

View File

@ -1,5 +1,5 @@
import
ranges/[ptr_arith, typedranges, bitranges], eth/rlp/types,
stew/ranges/[ptr_arith, typedranges, bitranges], eth/rlp/types,
trie_defs, trie_utils, db, sparse_proofs
export

View File

@ -1,5 +1,5 @@
import
ranges/[typedranges, bitranges],
stew/ranges/[typedranges, bitranges],
trie_defs, db, trie_utils
const

View File

@ -1,5 +1,5 @@
import
eth/rlp, ranges/typedranges, nimcrypto/hash
eth/rlp, stew/ranges/typedranges, nimcrypto/hash
export
typedranges, Bytes

View File

@ -1,6 +1,6 @@
import
strutils, parseutils,
ranges/[typedranges, ptr_arith], nimcrypto/[hash, keccak],
stew/ranges/[typedranges, ptr_arith], nimcrypto/[hash, keccak],
trie_defs, binaries
#proc baseAddr*(x: Bytes): ptr byte = x[0].unsafeAddr

View File

@ -1,5 +1,5 @@
import
streams, posix, sequtils, strutils, chronicles, chronos, byteutils,
streams, posix, sequtils, strutils, chronicles, chronos, stew/byteutils,
eth/p2p/[discovery, kademlia, enode], eth/[keys, rlp],
../../p2p/p2p_test_helper

View File

@ -1,6 +1,6 @@
import
unittest, strutils,
ranges/bitranges, eth/rlp/types, nimcrypto/[keccak, hash],
stew/ranges/bitranges, eth/rlp/types, nimcrypto/[keccak, hash],
eth/trie/[binaries, trie_utils],
./testutils

View File

@ -1,6 +1,6 @@
import
unittest, strutils, sequtils, os,
ranges/typedranges, eth/trie/[hexary, db, trie_defs], nimcrypto/utils,
stew/ranges/typedranges, eth/trie/[hexary, db, trie_defs], nimcrypto/utils,
./testutils, algorithm, eth/rlp/types as rlpTypes, random
template put(t: HexaryTrie|SecureHexaryTrie, key, val: string) =

View File

@ -1,6 +1,6 @@
import
random, sets, eth/trie/trie_utils as ethUtils,
eth/rlp/types as rlpTypes, ranges/bitranges,
eth/rlp/types as rlpTypes, stew/ranges/bitranges,
nimcrypto/[utils, sysrand]
type