stop using deprecated stew/results (#6343)
* stop using deprecated stew/results * exception tracking linting
This commit is contained in:
parent
d3bbd41570
commit
77d926525f
|
@ -8,7 +8,6 @@
|
|||
{.push raises: [].}
|
||||
|
||||
import
|
||||
stew/results,
|
||||
chronicles, chronos, metrics,
|
||||
../spec/[forks, signatures, signatures_batch],
|
||||
../sszdump
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
import
|
||||
std/tables,
|
||||
stew/results,
|
||||
chronicles, chronos, metrics, taskpools,
|
||||
chronicles, chronos, metrics,
|
||||
taskpools,
|
||||
../spec/[helpers, forks],
|
||||
../spec/datatypes/[altair, phase0, deneb],
|
||||
../consensus_object_pools/[
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
import
|
||||
std/[algorithm, sequtils],
|
||||
chronos, chronicles, stew/results,
|
||||
chronos, chronicles,
|
||||
eth/p2p/discoveryv5/[enr, protocol, node, random2],
|
||||
../spec/datatypes/altair,
|
||||
../spec/eth2_ssz_serialization,
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
import
|
||||
std/[typetraits, sequtils, sets],
|
||||
stew/[results, base10],
|
||||
stew/base10,
|
||||
chronicles, metrics,
|
||||
./rest_utils,
|
||||
./state_ttl_cache,
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
import
|
||||
std/sequtils,
|
||||
stew/results,
|
||||
chronicles,
|
||||
chronos/apps/http/httpserver,
|
||||
./rest_utils,
|
||||
|
|
|
@ -5,9 +5,11 @@
|
|||
# * 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.
|
||||
|
||||
{.push raises: [].}
|
||||
|
||||
import
|
||||
std/[sequtils],
|
||||
stew/[results, base10],
|
||||
stew/base10,
|
||||
chronicles,
|
||||
chronos/apps/http/httpdebug,
|
||||
libp2p/[multiaddress, multicodec, peerstore],
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
# * 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.
|
||||
|
||||
{.push raises: [].}
|
||||
|
||||
import
|
||||
stew/[byteutils, results],
|
||||
stew/byteutils,
|
||||
chronicles,
|
||||
eth/p2p/discoveryv5/enr,
|
||||
libp2p/[multiaddress, multicodec, peerstore],
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{.push raises: [].}
|
||||
|
||||
import std/[typetraits, sets, sequtils]
|
||||
import stew/[results, base10], chronicles
|
||||
import stew/base10, chronicles
|
||||
import ".."/[beacon_chain_db, beacon_node],
|
||||
".."/networking/eth2_network,
|
||||
".."/consensus_object_pools/[blockchain_dag, spec_cache,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{.push raises: [].}
|
||||
|
||||
import std/[strutils, sequtils, algorithm]
|
||||
import stew/[results, base10], chronos, chronicles
|
||||
import stew/base10, chronos, chronicles
|
||||
import
|
||||
../spec/datatypes/[phase0, altair],
|
||||
../spec/eth2_apis/rest_types,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{.push raises: [].}
|
||||
|
||||
import std/[heapqueue, tables, strutils, sequtils, math]
|
||||
import stew/[results, base10], chronos, chronicles
|
||||
import stew/base10, chronos, chronicles
|
||||
import
|
||||
../spec/datatypes/[base, phase0, altair],
|
||||
../spec/[helpers, forks],
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{.push raises: [].}
|
||||
|
||||
import
|
||||
stew/[base10, results],
|
||||
stew/base10,
|
||||
chronicles, chronos, eth/async_utils,
|
||||
./sync/[light_client_sync_helpers, sync_manager],
|
||||
./consensus_object_pools/[block_clearance, blockchain_dag],
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
{.push raises: [].}
|
||||
|
||||
import
|
||||
stew/results,
|
||||
std/sequtils,
|
||||
chronicles,
|
||||
metrics,
|
||||
|
|
|
@ -12,7 +12,6 @@ import
|
|||
# Utilities
|
||||
chronicles,
|
||||
unittest2,
|
||||
stew/results,
|
||||
# Beacon chain internals
|
||||
../../../beacon_chain/spec/[beaconstate, state_transition_block],
|
||||
../../../beacon_chain/spec/datatypes/altair,
|
||||
|
|
|
@ -12,7 +12,6 @@ import
|
|||
# Utilities
|
||||
chronicles,
|
||||
unittest2,
|
||||
stew/results,
|
||||
# Beacon chain internals
|
||||
../../../beacon_chain/spec/state_transition_block,
|
||||
../../../beacon_chain/spec/datatypes/bellatrix,
|
||||
|
|
|
@ -12,7 +12,6 @@ import
|
|||
# Utilities
|
||||
chronicles,
|
||||
unittest2,
|
||||
stew/results,
|
||||
# Beacon chain internals
|
||||
../../../beacon_chain/spec/state_transition_block,
|
||||
../../../beacon_chain/spec/datatypes/capella,
|
||||
|
|
|
@ -12,7 +12,6 @@ import
|
|||
# Utilities
|
||||
chronicles,
|
||||
unittest2,
|
||||
stew/results,
|
||||
# Beacon chain internals
|
||||
../../../beacon_chain/spec/state_transition_block,
|
||||
../../../beacon_chain/spec/datatypes/deneb,
|
||||
|
|
|
@ -12,7 +12,6 @@ import
|
|||
# Utilities
|
||||
chronicles,
|
||||
unittest2,
|
||||
stew/results,
|
||||
# Beacon chain internals
|
||||
../../../beacon_chain/spec/state_transition_block,
|
||||
../../../beacon_chain/spec/datatypes/electra,
|
||||
|
|
|
@ -12,7 +12,6 @@ import
|
|||
# Utilities
|
||||
chronicles,
|
||||
unittest2,
|
||||
stew/results,
|
||||
# Beacon chain internals
|
||||
../../../beacon_chain/spec/[beaconstate, state_transition_block],
|
||||
../../../beacon_chain/spec/datatypes/phase0,
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
import
|
||||
# Status libraries
|
||||
stew/[byteutils, results], chronicles,
|
||||
stew/byteutils, chronicles,
|
||||
taskpools,
|
||||
# Internals
|
||||
../../beacon_chain/spec/[helpers, forks, state_transition_block],
|
||||
|
|
|
@ -12,7 +12,7 @@ import
|
|||
std/json,
|
||||
yaml,
|
||||
kzg4844/kzg_ex,
|
||||
stew/[byteutils, results],
|
||||
stew/byteutils,
|
||||
../testutil,
|
||||
./fixtures_utils, ./os_ops
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
import
|
||||
# Status lib
|
||||
stew/results,
|
||||
chronicles,
|
||||
# Internal
|
||||
../../beacon_chain/validators/[slashing_protection, slashing_protection_v2],
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
|
||||
import
|
||||
# Standard library
|
||||
std/[os],
|
||||
std/os,
|
||||
# Status lib
|
||||
eth/db/[kvstore, kvstore_sqlite3],
|
||||
stew/[results, endians2],
|
||||
stew/endians2,
|
||||
# Internal
|
||||
../../beacon_chain/validators/slashing_protection,
|
||||
../../beacon_chain/spec/[helpers],
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
|
||||
import
|
||||
std/[json, os, random, sequtils, strutils, times],
|
||||
chronos, stew/[base10, results], chronicles, unittest2,
|
||||
chronos,
|
||||
stew/base10, chronicles, unittest2,
|
||||
yaml,
|
||||
../beacon_chain/beacon_chain_db,
|
||||
../beacon_chain/spec/deposit_snapshots,
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{.used.}
|
||||
|
||||
import
|
||||
stew/results, presto/client,
|
||||
presto/client,
|
||||
testutils/unittests, chronicles,
|
||||
../beacon_chain/spec/eth2_apis/[eth2_rest_serialization, rest_types],
|
||||
./testutil
|
||||
|
|
Loading…
Reference in New Issue