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