std_shims -> stew
This commit is contained in:
parent
68be98cafa
commit
b9e62a1f6c
|
@ -21,7 +21,7 @@ requires "nim >= 0.19.0",
|
||||||
"eth",
|
"eth",
|
||||||
"nimcrypto",
|
"nimcrypto",
|
||||||
"blscurve",
|
"blscurve",
|
||||||
"ranges",
|
"stew",
|
||||||
"chronicles",
|
"chronicles",
|
||||||
"confutils",
|
"confutils",
|
||||||
"serialization",
|
"serialization",
|
||||||
|
@ -29,8 +29,7 @@ requires "nim >= 0.19.0",
|
||||||
"json_rpc",
|
"json_rpc",
|
||||||
"chronos",
|
"chronos",
|
||||||
"yaml",
|
"yaml",
|
||||||
"libp2p",
|
"libp2p"
|
||||||
"byteutils" # test only (BitField and bytes datatypes deserialization)
|
|
||||||
|
|
||||||
### Helper functions
|
### Helper functions
|
||||||
proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
|
proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
net, sequtils, options, tables, osproc, random, strutils, times, strformat,
|
net, sequtils, options, tables, osproc, random, strutils, times, strformat,
|
||||||
std_shims/[os_shims, objects],
|
stew/shims/os, stew/objects,
|
||||||
chronos, chronicles, confutils, serialization/errors,
|
chronos, chronicles, confutils, serialization/errors,
|
||||||
eth/trie/db, eth/trie/backends/rocksdb_backend, eth/async_utils,
|
eth/trie/db, eth/trie/backends/rocksdb_backend, eth/async_utils,
|
||||||
spec/[bitfield, datatypes, digest, crypto, beaconstate, helpers, validator],
|
spec/[bitfield, datatypes, digest, crypto, beaconstate, helpers, validator],
|
||||||
|
@ -692,7 +692,7 @@ proc run*(node: BeaconNode) =
|
||||||
var gPidFile: string
|
var gPidFile: string
|
||||||
proc createPidFile(filename: string) =
|
proc createPidFile(filename: string) =
|
||||||
createDir splitFile(filename).dir
|
createDir splitFile(filename).dir
|
||||||
writeFile filename, $os_shims.getCurrentProcessId()
|
writeFile filename, $os.getCurrentProcessId()
|
||||||
gPidFile = filename
|
gPidFile = filename
|
||||||
addQuitProc proc {.noconv.} = removeFile gPidFile
|
addQuitProc proc {.noconv.} = removeFile gPidFile
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ when networkBackend == rlpxBackend:
|
||||||
|
|
||||||
else:
|
else:
|
||||||
import
|
import
|
||||||
os, random, std_shims/io,
|
os, random, stew/io,
|
||||||
libp2p/crypto/crypto, libp2p/daemon/daemonapi, eth/async_utils,
|
libp2p/crypto/crypto, libp2p/daemon/daemonapi, eth/async_utils,
|
||||||
ssz
|
ssz
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
macros, algorithm, tables,
|
algorithm,
|
||||||
std_shims/[macros_shim, tables_shims], chronos, chronicles,
|
stew/shims/[macros, tables], chronos, chronicles,
|
||||||
libp2p/daemon/daemonapi, faststreams/output_stream, serialization,
|
libp2p/daemon/daemonapi, faststreams/output_stream, serialization,
|
||||||
json_serialization/std/options, eth/p2p/p2p_protocol_dsl,
|
json_serialization/std/options, eth/p2p/p2p_protocol_dsl,
|
||||||
libp2p_json_serialization, ssz
|
libp2p_json_serialization, ssz
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
tables, deques, options, algorithm, std_shims/[macros_shim, tables_shims],
|
tables, deques, options, algorithm, stew/shims/[macros, tables],
|
||||||
ranges/ptr_arith, chronos, chronicles, serialization, faststreams/input_stream,
|
stew/ranges/ptr_arith, chronos, chronicles, serialization, faststreams/input_stream,
|
||||||
eth/async_utils, eth/p2p/p2p_protocol_dsl, libp2p/daemon/daemonapi,
|
eth/async_utils, eth/p2p/p2p_protocol_dsl, libp2p/daemon/daemonapi,
|
||||||
libp2p_json_serialization, ssz
|
libp2p_json_serialization, ssz
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import byteutils, json_serialization, std_shims/support/bitops2
|
import stew/byteutils, json_serialization, stew/bitops2
|
||||||
|
|
||||||
type
|
type
|
||||||
BitField* = object
|
BitField* = object
|
||||||
## A simple bit field type that follows the semantics of the spec, with
|
## A simple bit field type that follows the semantics of the spec, with
|
||||||
## regards to bit endian operations
|
## regards to bit endian operations
|
||||||
# TODO nim-ranges contains utilities for with bitsets - could try to
|
# TODO stew contains utilities for with bitsets - could try to
|
||||||
# recycle that, but there are open questions about bit endianess there.
|
# recycle that, but there are open questions about bit endianess there.
|
||||||
bits*: seq[byte]
|
bits*: seq[byte]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
options, tables, sequtils, algorithm, sets, macros,
|
options, tables, sequtils, algorithm, sets, macros,
|
||||||
chronicles, chronos, ranges/bitranges,
|
chronicles, chronos, stew/ranges/bitranges,
|
||||||
spec/[datatypes, crypto, digest, helpers], eth/rlp,
|
spec/[datatypes, crypto, digest, helpers], eth/rlp,
|
||||||
beacon_node_types, eth2_network, beacon_chain_db, block_pool, time, ssz
|
beacon_node_types, eth2_network, beacon_chain_db, block_pool, time, ssz
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
json, macros, sequtils, endians,
|
json, macros, sequtils, endians,
|
||||||
eth/common, stint, nimcrypto, byteutils
|
eth/common, stint, nimcrypto, stew/byteutils
|
||||||
|
|
||||||
type
|
type
|
||||||
Validator {.packed.} = object
|
Validator {.packed.} = object
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
# Status libs
|
# Status libs
|
||||||
byteutils,
|
stew/byteutils,
|
||||||
eth/common, serialization, json_serialization,
|
eth/common, serialization, json_serialization,
|
||||||
# Beacon chain internals
|
# Beacon chain internals
|
||||||
../../beacon_chain/spec/datatypes
|
../../beacon_chain/spec/datatypes
|
||||||
|
|
|
@ -9,7 +9,7 @@ import
|
||||||
# Standard libs
|
# Standard libs
|
||||||
ospaths, strutils, unittest, endians,
|
ospaths, strutils, unittest, endians,
|
||||||
# Status libs
|
# Status libs
|
||||||
blscurve, byteutils,
|
blscurve, stew/byteutils,
|
||||||
# Beacon chain internals
|
# Beacon chain internals
|
||||||
../../beacon_chain/spec/crypto,
|
../../beacon_chain/spec/crypto,
|
||||||
# Test utilities
|
# Test utilities
|
||||||
|
|
Loading…
Reference in New Issue