mirror of https://github.com/status-im/nim-eth.git
results: use standalone repo (#687)
This commit is contained in:
parent
50b3d0193c
commit
0e83cfda97
|
@ -18,7 +18,8 @@ requires "nim >= 1.6.0",
|
||||||
"sqlite3_abi",
|
"sqlite3_abi",
|
||||||
"confutils",
|
"confutils",
|
||||||
"testutils",
|
"testutils",
|
||||||
"unittest2"
|
"unittest2",
|
||||||
|
"results"
|
||||||
|
|
||||||
let nimc = getEnv("NIMC", "nim") # Which nim compiler to use
|
let nimc = getEnv("NIMC", "nim") # Which nim compiler to use
|
||||||
let lang = getEnv("NIMLANG", "c") # Which backend (c/cpp/js)
|
let lang = getEnv("NIMLANG", "c") # Which backend (c/cpp/js)
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[tables, hashes, sets],
|
std/[tables, hashes, sets],
|
||||||
stew/results
|
results
|
||||||
|
|
||||||
export results
|
export results
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
import
|
import
|
||||||
std/[strutils, json],
|
std/[strutils, json],
|
||||||
nimcrypto/[bcmode, hmac, rijndael, pbkdf2, sha2, sysrand, utils, keccak, scrypt],
|
nimcrypto/[bcmode, hmac, rijndael, pbkdf2, sha2, sysrand, utils, keccak, scrypt],
|
||||||
stew/results,
|
results,
|
||||||
../keys,
|
../keys,
|
||||||
./uuid
|
./uuid
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, os, strutils, times],
|
std/[options, os, strutils, times],
|
||||||
stew/results, nat_traversal/[miniupnpc, natpmp],
|
results, nat_traversal/[miniupnpc, natpmp],
|
||||||
chronicles, json_serialization/std/net, chronos,
|
chronicles, json_serialization/std/net, chronos,
|
||||||
../common/utils, ./utils as netutils
|
../common/utils, ./utils as netutils
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[tables, hashes, net],
|
std/[tables, hashes, net],
|
||||||
stew/results, chronos, chronicles
|
results, chronos, chronicles
|
||||||
|
|
||||||
export net.IpAddress
|
export net.IpAddress
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[sets, options, net],
|
std/[sets, options, net],
|
||||||
stew/results, chronicles, chronos,
|
results, chronicles, chronos,
|
||||||
../../net/utils,
|
../../net/utils,
|
||||||
"."/[node, enr, routing_table]
|
"."/[node, enr, routing_table]
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
import
|
import
|
||||||
std/[tables, sets, options, math, sequtils, algorithm],
|
std/[tables, sets, options, math, sequtils, algorithm],
|
||||||
json_serialization/std/net,
|
json_serialization/std/net,
|
||||||
stew/results, chronicles, chronos, stint, metrics,
|
results, chronicles, chronos, stint, metrics,
|
||||||
".."/../[rlp, keys],
|
".."/../[rlp, keys],
|
||||||
"."/[messages_encoding, encoding, node, routing_table, enr, random2, sessions,
|
"."/[messages_encoding, encoding, node, routing_table, enr, random2, sessions,
|
||||||
ip_vote, nodes_verification]
|
ip_vote, nodes_verification]
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[algorithm, times, sequtils, bitops, sets],
|
std/[algorithm, times, sequtils, bitops, sets],
|
||||||
bearssl/rand, stew/results,
|
bearssl/rand, results,
|
||||||
stint, chronicles, metrics, chronos,
|
stint, chronicles, metrics, chronos,
|
||||||
../../net/utils,
|
../../net/utils,
|
||||||
"."/[node, random2, enr]
|
"."/[node, random2, enr]
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{.push raises: [].}
|
{.push raises: [].}
|
||||||
|
|
||||||
import
|
import
|
||||||
nimcrypto/[bcmode, keccak, rijndael, utils], stew/results
|
nimcrypto/[bcmode, keccak, rijndael, utils], results
|
||||||
from auth import ConnectionSecret
|
from auth import ConnectionSecret
|
||||||
|
|
||||||
export results
|
export results
|
||||||
|
|
|
@ -300,9 +300,10 @@ proc appendImpl(self: var RlpWriter, data: tuple) {.inline.} =
|
||||||
# score in order to facilitate easier overloading with user types:
|
# score in order to facilitate easier overloading with user types:
|
||||||
template append*[T](w: var RlpWriter; data: T) =
|
template append*[T](w: var RlpWriter; data: T) =
|
||||||
when data is (SomeSignedInt|enum|bool):
|
when data is (SomeSignedInt|enum|bool):
|
||||||
# TODO potentially remove signed integer support - we should never make it
|
when data is SomeSignedInt:
|
||||||
# this far!
|
# TODO potentially remove signed integer support - we should never make it
|
||||||
{.warning: "Signed integers cannot reliably be encoded using RLP".}
|
# this far!
|
||||||
|
{.warning: "Signed integers cannot reliably be encoded using RLP".}
|
||||||
appendImpl(w, uint64(data))
|
appendImpl(w, uint64(data))
|
||||||
else:
|
else:
|
||||||
appendImpl(w, data)
|
appendImpl(w, data)
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[tables, options, sequtils],
|
std/[tables, options, sequtils],
|
||||||
stew/results,
|
results,
|
||||||
nimcrypto/[keccak, hash],
|
nimcrypto/[keccak, hash],
|
||||||
".."/rlp,
|
".."/rlp,
|
||||||
"."/[trie_defs, nibbles, db]
|
"."/[trie_defs, nibbles, db]
|
||||||
|
|
Loading…
Reference in New Issue