mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-26 05:05:23 +00:00
update some deprecated stew/results to results imports (#5743)
This commit is contained in:
parent
19860029c2
commit
cf1bec7670
@ -9,7 +9,8 @@
|
||||
|
||||
import
|
||||
std/[typetraits, tables],
|
||||
stew/[arrayops, assign2, byteutils, endians2, io2, objects, results],
|
||||
results,
|
||||
stew/[arrayops, assign2, byteutils, endians2, io2, objects],
|
||||
serialization, chronicles, snappy,
|
||||
eth/db/[kvstore, kvstore_sqlite3],
|
||||
./networking/network_metadata, ./beacon_chain_db_immutable,
|
||||
|
@ -9,7 +9,8 @@
|
||||
|
||||
import
|
||||
chronicles,
|
||||
stew/[assign2, results],
|
||||
results,
|
||||
stew/assign2,
|
||||
../spec/[
|
||||
beaconstate, forks, signatures, signatures_batch,
|
||||
state_transition, state_transition_epoch],
|
||||
|
@ -9,8 +9,8 @@
|
||||
|
||||
import
|
||||
std/[algorithm, sequtils, tables, sets],
|
||||
stew/[arrayops, assign2, byteutils, results],
|
||||
metrics, snappy, chronicles,
|
||||
stew/[arrayops, assign2, byteutils],
|
||||
metrics, results, snappy, chronicles,
|
||||
../spec/[beaconstate, eth2_merkleization, eth2_ssz_serialization, helpers,
|
||||
state_transition, validator],
|
||||
../spec/forks,
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
import
|
||||
std/sequtils,
|
||||
stew/results,
|
||||
results,
|
||||
chronicles,
|
||||
../extras,
|
||||
../spec/[beaconstate, helpers, network, signatures, validator],
|
||||
|
@ -1,5 +1,5 @@
|
||||
# beacon_chain
|
||||
# Copyright (c) 2023 Status Research & Development GmbH
|
||||
# Copyright (c) 2023-2024 Status Research & Development GmbH
|
||||
# Licensed and distributed under either of
|
||||
# * MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
|
||||
# * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0).
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
import
|
||||
std/[options, uri],
|
||||
stew/results, chronicles, confutils,
|
||||
results, chronicles, confutils,
|
||||
confutils/toml/defs as confTomlDefs,
|
||||
confutils/toml/std/net as confTomlNet,
|
||||
confutils/toml/std/uri as confTomlUri,
|
||||
|
@ -14,7 +14,8 @@ import
|
||||
json_rpc/[client, errors],
|
||||
web3, web3/[engine_api, primitives, conversions],
|
||||
eth/common/[eth_types, transaction],
|
||||
eth/async_utils, stew/[assign2, byteutils, objects, results, shims/hashes, endians2],
|
||||
eth/async_utils, results,
|
||||
stew/[assign2, byteutils, objects, shims/hashes, endians2],
|
||||
# Local modules:
|
||||
../spec/[deposit_snapshots, eth2_merkleization, forks, helpers],
|
||||
../networking/network_metadata,
|
||||
|
@ -7,7 +7,7 @@
|
||||
import
|
||||
std/os,
|
||||
chronicles,
|
||||
stew/results, snappy, taskpools,
|
||||
results, snappy, taskpools,
|
||||
../ncli/e2store,
|
||||
./spec/datatypes/[altair, bellatrix, phase0],
|
||||
./spec/[beaconstate, forks, signatures_batch],
|
||||
|
@ -11,7 +11,7 @@ import
|
||||
# Standard library
|
||||
std/[sequtils, tables],
|
||||
# Status libraries
|
||||
stew/[results], chronicles,
|
||||
results, chronicles,
|
||||
# Internal
|
||||
../spec/[beaconstate, helpers, state_transition_block],
|
||||
../spec/datatypes/[phase0, altair, bellatrix],
|
||||
|
@ -11,7 +11,7 @@ import
|
||||
# Standard library
|
||||
std/tables,
|
||||
# Status
|
||||
stew/results,
|
||||
results,
|
||||
chronicles,
|
||||
# Internal
|
||||
../spec/datatypes/base,
|
||||
|
@ -12,7 +12,7 @@ import
|
||||
std/[tables, typetraits],
|
||||
# Status libraries
|
||||
chronicles,
|
||||
stew/results,
|
||||
results,
|
||||
# Internal
|
||||
../spec/datatypes/base,
|
||||
../spec/helpers,
|
||||
|
@ -10,7 +10,7 @@
|
||||
import
|
||||
# Status
|
||||
chronicles, chronos, metrics,
|
||||
stew/results,
|
||||
results,
|
||||
# Internals
|
||||
../spec/[
|
||||
beaconstate, state_transition_block, forks, helpers, network, signatures],
|
||||
|
@ -12,7 +12,8 @@ import
|
||||
std/[typetraits, os, sequtils, strutils, algorithm, math, tables, macrocache],
|
||||
|
||||
# Status libs
|
||||
stew/[leb128, endians2, results, byteutils, io2, bitops2],
|
||||
results,
|
||||
stew/[leb128, endians2, byteutils, io2, bitops2],
|
||||
stew/shims/net as stewNet,
|
||||
stew/shims/[macros],
|
||||
snappy,
|
||||
|
@ -9,7 +9,7 @@ import std/[tables, os, strutils]
|
||||
import serialization, json_serialization,
|
||||
json_serialization/std/[options, net],
|
||||
chronos, presto, presto/secureserver, chronicles, confutils,
|
||||
stew/[base10, results, byteutils, io2, bitops2]
|
||||
results, stew/[base10, byteutils, io2, bitops2]
|
||||
import "."/spec/datatypes/[base, altair, phase0],
|
||||
"."/spec/[crypto, digest, network, signatures, forks],
|
||||
"."/spec/eth2_apis/[rest_types, eth2_rest_serialization],
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
import std/[tables, strutils, uri]
|
||||
import chronos, chronicles, confutils,
|
||||
stew/[base10, results, io2], blscurve, presto
|
||||
results, stew/[base10, io2], blscurve, presto
|
||||
import ".."/spec/[keystore, crypto]
|
||||
import ".."/spec/eth2_apis/rest_keymanager_types
|
||||
import ".."/validators/[slashing_protection, keystore_management,
|
||||
|
@ -25,7 +25,8 @@
|
||||
|
||||
import
|
||||
# Status
|
||||
stew/[bitseqs, endians2, objects, results, byteutils],
|
||||
results,
|
||||
stew/[bitseqs, endians2, objects, byteutils],
|
||||
blscurve,
|
||||
chronicles,
|
||||
bearssl/rand,
|
||||
|
@ -62,7 +62,8 @@
|
||||
|
||||
import
|
||||
std/[macros, hashes, sets, strutils, tables, typetraits],
|
||||
stew/[assign2, byteutils, endians2, results],
|
||||
results,
|
||||
stew/[assign2, byteutils, endians2],
|
||||
chronicles,
|
||||
json_serialization,
|
||||
ssz_serialization/types as sszTypes,
|
||||
|
@ -9,7 +9,8 @@ import
|
||||
chronicles, confutils/defs,
|
||||
bearssl/rand,
|
||||
nimcrypto/[hmac, utils],
|
||||
stew/[byteutils, results]
|
||||
results,
|
||||
stew/byteutils
|
||||
|
||||
from std/base64 import encode
|
||||
from std/json import JsonNode, `$`, `%*`
|
||||
|
@ -8,7 +8,7 @@
|
||||
{.push raises: [].}
|
||||
|
||||
import std/[typetraits, strutils]
|
||||
import stew/[assign2, results, base10, byteutils, endians2], presto/common,
|
||||
import results, stew/[assign2, base10, byteutils, endians2], presto/common,
|
||||
libp2p/peerid, serialization, json_serialization,
|
||||
json_serialization/std/[net, sets],
|
||||
json_serialization/stew/results as jsonSerializationResults,
|
||||
|
@ -8,7 +8,8 @@
|
||||
|
||||
import
|
||||
chronos,
|
||||
stew/[results, endians2],
|
||||
results,
|
||||
stew/endians2,
|
||||
presto/client,
|
||||
../helpers,
|
||||
"."/[rest_common, eth2_rest_serialization]
|
||||
|
@ -9,7 +9,8 @@
|
||||
import
|
||||
chronicles, metrics,
|
||||
chronos, presto/client,
|
||||
stew/[results, base10, byteutils],
|
||||
results,
|
||||
stew/[base10, byteutils],
|
||||
"."/[rest_types, eth2_rest_serialization]
|
||||
|
||||
export chronos, client, rest_types, eth2_rest_serialization, results
|
||||
|
@ -9,8 +9,8 @@
|
||||
|
||||
import
|
||||
std/macros,
|
||||
results,
|
||||
stew/assign2,
|
||||
stew/results,
|
||||
chronicles,
|
||||
../extras,
|
||||
"."/[
|
||||
|
@ -14,7 +14,8 @@ import
|
||||
# Third-party libraries
|
||||
normalize,
|
||||
# Status libraries
|
||||
stew/[results, bitops2, base10, io2, endians2], stew/shims/macros,
|
||||
results,
|
||||
stew/[bitops2, base10, io2, endians2], stew/shims/macros,
|
||||
eth/keyfile/uuid, blscurve,
|
||||
json_serialization, json_serialization/std/options,
|
||||
chronos/timer,
|
||||
|
@ -15,7 +15,8 @@
|
||||
import
|
||||
# Status lib
|
||||
blscurve,
|
||||
stew/[byteutils, results],
|
||||
stew/byteutils,
|
||||
results,
|
||||
taskpools,
|
||||
bearssl/rand,
|
||||
# Internal
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
import
|
||||
chronicles,
|
||||
stew/results,
|
||||
results,
|
||||
../extras,
|
||||
"."/[
|
||||
beaconstate, eth2_merkleization, forks, helpers, signatures,
|
||||
|
@ -7,7 +7,8 @@
|
||||
|
||||
import
|
||||
std/[tables, os, sets, sequtils, strutils, uri, algorithm],
|
||||
stew/[base10, results, byteutils],
|
||||
results,
|
||||
stew/[base10, byteutils],
|
||||
bearssl/rand, chronos, presto, presto/client as presto_client,
|
||||
chronicles, confutils,
|
||||
metrics, metrics/chronos_httpserver,
|
||||
|
@ -12,7 +12,8 @@ import
|
||||
std/[os, algorithm, sequtils],
|
||||
# Status
|
||||
eth/db/[kvstore, kvstore_sqlite3],
|
||||
stew/[results, byteutils],
|
||||
results,
|
||||
stew/byteutils,
|
||||
chronicles, chronicles/timings,
|
||||
# Internal
|
||||
../spec/datatypes/base,
|
||||
|
@ -11,7 +11,8 @@ import
|
||||
# Stdlib
|
||||
std/[typetraits, strutils, algorithm],
|
||||
# Status
|
||||
stew/[byteutils, results],
|
||||
stew/byteutils,
|
||||
results,
|
||||
serialization,
|
||||
json_serialization, json_serialization/std/options,
|
||||
chronicles,
|
||||
|
@ -9,7 +9,8 @@
|
||||
|
||||
import
|
||||
std/strformat,
|
||||
stew/[arrayops, endians2, io2, results],
|
||||
results,
|
||||
stew/[arrayops, endians2, io2],
|
||||
snappy,
|
||||
../beacon_chain/spec/[beacon_time, forks],
|
||||
../beacon_chain/spec/eth2_ssz_serialization
|
||||
|
@ -5,10 +5,12 @@
|
||||
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import std/[strutils, os, options, uri, json, tables]
|
||||
import stew/[results, io2, base10]
|
||||
import confutils, chronicles, httputils,
|
||||
chronos, chronos/streams/[asyncstream, tlsstream]
|
||||
import
|
||||
std/[strutils, os, options, uri, json, tables],
|
||||
results,
|
||||
stew/[io2, base10],
|
||||
confutils, chronicles, httputils,
|
||||
chronos, chronos/streams/[asyncstream, tlsstream]
|
||||
|
||||
const
|
||||
RestTesterName* = "Ethereum2 REST API Tester"
|
||||
|
Loading…
x
Reference in New Issue
Block a user