results: use standalone repo (#687)

This commit is contained in:
Jacek Sieka 2024-05-30 14:46:57 +02:00 committed by GitHub
parent 50b3d0193c
commit 0e83cfda97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 15 additions and 13 deletions

View File

@ -18,7 +18,8 @@ requires "nim >= 1.6.0",
"sqlite3_abi",
"confutils",
"testutils",
"unittest2"
"unittest2",
"results"
let nimc = getEnv("NIMC", "nim") # Which nim compiler to use
let lang = getEnv("NIMLANG", "c") # Which backend (c/cpp/js)

View File

@ -13,7 +13,7 @@
import
std/[tables, hashes, sets],
stew/results
results
export results

View File

@ -12,7 +12,7 @@
import
std/[strutils, json],
nimcrypto/[bcmode, hmac, rijndael, pbkdf2, sha2, sysrand, utils, keccak, scrypt],
stew/results,
results,
../keys,
./uuid

View File

@ -10,7 +10,7 @@
import
std/[options, os, strutils, times],
stew/results, nat_traversal/[miniupnpc, natpmp],
results, nat_traversal/[miniupnpc, natpmp],
chronicles, json_serialization/std/net, chronos,
../common/utils, ./utils as netutils

View File

@ -9,7 +9,7 @@
import
std/[tables, hashes, net],
stew/results, chronos, chronicles
results, chronos, chronicles
export net.IpAddress

View File

@ -10,7 +10,7 @@
import
std/[sets, options, net],
stew/results, chronicles, chronos,
results, chronicles, chronos,
../../net/utils,
"."/[node, enr, routing_table]

View File

@ -83,7 +83,7 @@
import
std/[tables, sets, options, math, sequtils, algorithm],
json_serialization/std/net,
stew/results, chronicles, chronos, stint, metrics,
results, chronicles, chronos, stint, metrics,
".."/../[rlp, keys],
"."/[messages_encoding, encoding, node, routing_table, enr, random2, sessions,
ip_vote, nodes_verification]

View File

@ -9,7 +9,7 @@
import
std/[algorithm, times, sequtils, bitops, sets],
bearssl/rand, stew/results,
bearssl/rand, results,
stint, chronicles, metrics, chronos,
../../net/utils,
"."/[node, random2, enr]

View File

@ -13,7 +13,7 @@
{.push raises: [].}
import
nimcrypto/[bcmode, keccak, rijndael, utils], stew/results
nimcrypto/[bcmode, keccak, rijndael, utils], results
from auth import ConnectionSecret
export results

View File

@ -300,9 +300,10 @@ proc appendImpl(self: var RlpWriter, data: tuple) {.inline.} =
# score in order to facilitate easier overloading with user types:
template append*[T](w: var RlpWriter; data: T) =
when data is (SomeSignedInt|enum|bool):
# TODO potentially remove signed integer support - we should never make it
# this far!
{.warning: "Signed integers cannot reliably be encoded using RLP".}
when data is SomeSignedInt:
# TODO potentially remove signed integer support - we should never make it
# this far!
{.warning: "Signed integers cannot reliably be encoded using RLP".}
appendImpl(w, uint64(data))
else:
appendImpl(w, data)

View File

@ -9,7 +9,7 @@
import
std/[tables, options, sequtils],
stew/results,
results,
nimcrypto/[keccak, hash],
".."/rlp,
"."/[trie_defs, nibbles, db]