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: [].} {.push raises: [].}
import import
stew/results,
chronicles, chronos, metrics, chronicles, chronos, metrics,
../spec/[forks, signatures, signatures_batch], ../spec/[forks, signatures, signatures_batch],
../sszdump ../sszdump

View File

@ -9,8 +9,8 @@
import import
std/tables, std/tables,
stew/results, chronicles, chronos, metrics,
chronicles, chronos, metrics, taskpools, taskpools,
../spec/[helpers, forks], ../spec/[helpers, forks],
../spec/datatypes/[altair, phase0, deneb], ../spec/datatypes/[altair, phase0, deneb],
../consensus_object_pools/[ ../consensus_object_pools/[

View File

@ -9,7 +9,7 @@
import import
std/[algorithm, sequtils], std/[algorithm, sequtils],
chronos, chronicles, stew/results, chronos, chronicles,
eth/p2p/discoveryv5/[enr, protocol, node, random2], eth/p2p/discoveryv5/[enr, protocol, node, random2],
../spec/datatypes/altair, ../spec/datatypes/altair,
../spec/eth2_ssz_serialization, ../spec/eth2_ssz_serialization,

View File

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

View File

@ -9,7 +9,6 @@
import import
std/sequtils, std/sequtils,
stew/results,
chronicles, chronicles,
chronos/apps/http/httpserver, chronos/apps/http/httpserver,
./rest_utils, ./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). # * 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. # at your option. This file may not be copied, modified, or distributed except according to those terms.
{.push raises: [].}
import import
std/[sequtils], std/[sequtils],
stew/[results, base10], stew/base10,
chronicles, chronicles,
chronos/apps/http/httpdebug, chronos/apps/http/httpdebug,
libp2p/[multiaddress, multicodec, peerstore], 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). # * 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. # at your option. This file may not be copied, modified, or distributed except according to those terms.
{.push raises: [].}
import import
stew/[byteutils, results], stew/byteutils,
chronicles, chronicles,
eth/p2p/discoveryv5/enr, eth/p2p/discoveryv5/enr,
libp2p/[multiaddress, multicodec, peerstore], libp2p/[multiaddress, multicodec, peerstore],

View File

@ -7,7 +7,7 @@
{.push raises: [].} {.push raises: [].}
import std/[typetraits, sets, sequtils] import std/[typetraits, sets, sequtils]
import stew/[results, base10], chronicles import stew/base10, chronicles
import ".."/[beacon_chain_db, beacon_node], import ".."/[beacon_chain_db, beacon_node],
".."/networking/eth2_network, ".."/networking/eth2_network,
".."/consensus_object_pools/[blockchain_dag, spec_cache, ".."/consensus_object_pools/[blockchain_dag, spec_cache,

View File

@ -8,7 +8,7 @@
{.push raises: [].} {.push raises: [].}
import std/[strutils, sequtils, algorithm] import std/[strutils, sequtils, algorithm]
import stew/[results, base10], chronos, chronicles import stew/base10, chronos, chronicles
import import
../spec/datatypes/[phase0, altair], ../spec/datatypes/[phase0, altair],
../spec/eth2_apis/rest_types, ../spec/eth2_apis/rest_types,

View File

@ -8,7 +8,7 @@
{.push raises: [].} {.push raises: [].}
import std/[heapqueue, tables, strutils, sequtils, math] import std/[heapqueue, tables, strutils, sequtils, math]
import stew/[results, base10], chronos, chronicles import stew/base10, chronos, chronicles
import import
../spec/datatypes/[base, phase0, altair], ../spec/datatypes/[base, phase0, altair],
../spec/[helpers, forks], ../spec/[helpers, forks],

View File

@ -8,7 +8,7 @@
{.push raises: [].} {.push raises: [].}
import import
stew/[base10, results], stew/base10,
chronicles, chronos, eth/async_utils, chronicles, chronos, eth/async_utils,
./sync/[light_client_sync_helpers, sync_manager], ./sync/[light_client_sync_helpers, sync_manager],
./consensus_object_pools/[block_clearance, blockchain_dag], ./consensus_object_pools/[block_clearance, blockchain_dag],

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,10 +10,10 @@
import import
# Standard library # Standard library
std/[os], std/os,
# Status lib # Status lib
eth/db/[kvstore, kvstore_sqlite3], eth/db/[kvstore, kvstore_sqlite3],
stew/[results, endians2], stew/endians2,
# Internal # Internal
../../beacon_chain/validators/slashing_protection, ../../beacon_chain/validators/slashing_protection,
../../beacon_chain/spec/[helpers], ../../beacon_chain/spec/[helpers],

View File

@ -10,7 +10,8 @@
import import
std/[json, os, random, sequtils, strutils, times], std/[json, os, random, sequtils, strutils, times],
chronos, stew/[base10, results], chronicles, unittest2, chronos,
stew/base10, chronicles, unittest2,
yaml, yaml,
../beacon_chain/beacon_chain_db, ../beacon_chain/beacon_chain_db,
../beacon_chain/spec/deposit_snapshots, ../beacon_chain/spec/deposit_snapshots,

View File

@ -9,7 +9,7 @@
{.used.} {.used.}
import import
stew/results, presto/client, presto/client,
testutils/unittests, chronicles, testutils/unittests, chronicles,
../beacon_chain/spec/eth2_apis/[eth2_rest_serialization, rest_types], ../beacon_chain/spec/eth2_apis/[eth2_rest_serialization, rest_types],
./testutil ./testutil