mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Smash serai-client so the processors don't need the entire lib to access their specific code
We prior controlled this with feature flags. It's just better to define their own crates.
This commit is contained in:
@@ -14,7 +14,7 @@ use alloy_simple_request_transport::SimpleRequest;
|
||||
use alloy_rpc_client::ClientBuilder;
|
||||
use alloy_provider::{Provider, RootProvider};
|
||||
|
||||
use serai_client::primitives::validator_sets::Session;
|
||||
use serai_primitives::validator_sets::Session;
|
||||
|
||||
use serai_env as env;
|
||||
use serai_db::{Get, DbTxn, create_db};
|
||||
|
||||
@@ -3,7 +3,7 @@ use std::collections::HashMap;
|
||||
use ciphersuite::*;
|
||||
use ciphersuite_kp256::Secp256k1;
|
||||
|
||||
use serai_client::networks::ethereum::Address;
|
||||
use serai_client_ethereum::Address;
|
||||
|
||||
use primitives::{ReceivedOutput, EventualityTracker};
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use alloy_core::primitives::{FixedBytes, Address};
|
||||
|
||||
use serai_client::primitives::balance::Amount;
|
||||
use serai_primitives::balance::Amount;
|
||||
|
||||
pub(crate) mod output;
|
||||
pub(crate) mod transaction;
|
||||
|
||||
@@ -7,14 +7,12 @@ use alloy_core::primitives::U256;
|
||||
|
||||
use borsh::{BorshSerialize, BorshDeserialize};
|
||||
|
||||
use serai_client::{
|
||||
primitives::{
|
||||
network_id::ExternalNetworkId,
|
||||
coin::ExternalCoin,
|
||||
balance::{Amount, ExternalBalance},
|
||||
},
|
||||
networks::ethereum::Address,
|
||||
use serai_primitives::{
|
||||
network_id::ExternalNetworkId,
|
||||
coin::ExternalCoin,
|
||||
balance::{Amount, ExternalBalance},
|
||||
};
|
||||
use serai_client_ethereum::Address;
|
||||
|
||||
use primitives::{OutputType, ReceivedOutput};
|
||||
use ethereum_router::{Coin as EthereumCoin, InInstruction as EthereumInInstruction};
|
||||
|
||||
@@ -5,7 +5,7 @@ use frost::dkg::ThresholdKeys;
|
||||
|
||||
use alloy_core::primitives::{U256, Address as EthereumAddress};
|
||||
|
||||
use serai_client::networks::ethereum::Address;
|
||||
use serai_client_ethereum::Address;
|
||||
|
||||
use scheduler::SignableTransaction;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ use alloy_rpc_types_eth::{Header, BlockNumberOrTag};
|
||||
use alloy_transport::{RpcError, TransportErrorKind};
|
||||
use alloy_provider::{Provider, RootProvider};
|
||||
|
||||
use serai_client::primitives::{network_id::ExternalNetworkId, coin::ExternalCoin, balance::Amount};
|
||||
use serai_primitives::{network_id::ExternalNetworkId, coin::ExternalCoin, balance::Amount};
|
||||
|
||||
use tokio::task::JoinSet;
|
||||
|
||||
|
||||
@@ -2,10 +2,8 @@ use std::collections::HashMap;
|
||||
|
||||
use alloy_core::primitives::U256;
|
||||
|
||||
use serai_client::{
|
||||
primitives::{network_id::ExternalNetworkId, coin::ExternalCoin, balance::ExternalBalance},
|
||||
networks::ethereum::Address,
|
||||
};
|
||||
use serai_primitives::{network_id::ExternalNetworkId, coin::ExternalCoin, balance::ExternalBalance};
|
||||
use serai_client_ethereum::Address;
|
||||
|
||||
use serai_db::Db;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user