stop using deprecated stew/results (#6343)

* stop using deprecated stew/results

* exception tracking linting
This commit is contained in:
tersec 2024-06-11 02:34:56 +00:00 committed by GitHub
parent d3bbd41570
commit 77d926525f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
24 changed files with 21 additions and 26 deletions

View File

@ -8,7 +8,6 @@
{.push raises: [].}
import
stew/results,
chronicles, chronos, metrics,
../spec/[forks, signatures, signatures_batch],
../sszdump

View File

@ -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/[

View File

@ -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,

View File

@ -9,7 +9,7 @@
import
std/[typetraits, sequtils, sets],
stew/[results, base10],
stew/base10,
chronicles, metrics,
./rest_utils,
./state_ttl_cache,

View File

@ -9,7 +9,6 @@
import
std/sequtils,
stew/results,
chronicles,
chronos/apps/http/httpserver,
./rest_utils,

View File

@ -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],

View File

@ -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],

View File

@ -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,

View File

@ -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,

View File

@ -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],

View File

@ -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],

View File

@ -8,7 +8,6 @@
{.push raises: [].}
import
stew/results,
std/sequtils,
chronicles,
metrics,

View File

@ -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,

View File

@ -12,7 +12,6 @@ import
# Utilities
chronicles,
unittest2,
stew/results,
# Beacon chain internals
../../../beacon_chain/spec/state_transition_block,
../../../beacon_chain/spec/datatypes/bellatrix,

View File

@ -12,7 +12,6 @@ import
# Utilities
chronicles,
unittest2,
stew/results,
# Beacon chain internals
../../../beacon_chain/spec/state_transition_block,
../../../beacon_chain/spec/datatypes/capella,

View File

@ -12,7 +12,6 @@ import
# Utilities
chronicles,
unittest2,
stew/results,
# Beacon chain internals
../../../beacon_chain/spec/state_transition_block,
../../../beacon_chain/spec/datatypes/deneb,

View File

@ -12,7 +12,6 @@ import
# Utilities
chronicles,
unittest2,
stew/results,
# Beacon chain internals
../../../beacon_chain/spec/state_transition_block,
../../../beacon_chain/spec/datatypes/electra,

View File

@ -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,

View File

@ -10,7 +10,7 @@
import
# Status libraries
stew/[byteutils, results], chronicles,
stew/byteutils, chronicles,
taskpools,
# Internals
../../beacon_chain/spec/[helpers, forks, state_transition_block],

View File

@ -12,7 +12,7 @@ import
std/json,
yaml,
kzg4844/kzg_ex,
stew/[byteutils, results],
stew/byteutils,
../testutil,
./fixtures_utils, ./os_ops

View File

@ -10,7 +10,6 @@
import
# Status lib
stew/results,
chronicles,
# Internal
../../beacon_chain/validators/[slashing_protection, slashing_protection_v2],

View File

@ -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],

View File

@ -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,

View File

@ -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