You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Introduce SignMessageValidation and SIWE validation flow for WalletConnect sign messages. Validator now accepts a SignMessageValidation struct, decodes hex/text SIWE payloads, validates chain ID and session domain, and returns explicit errors for mismatches. Export SignMessageValidation from the crate and add a siwe_mock test helper used across tests. The commit also applies numerous minor formatting and line-wrapping cleanups across multiple crates (non-functional whitespace/formatting changes) and updates call sites to the new validator API.
use gem_rewards::{AbuseIPDBClient,IpApiClient,IpCheckProvider,IpSecurityClient};
36
37
use metrics::fiat::FiatMetrics;
37
38
use model::APIService;
38
39
use name_resolver::NameProviderFactory;
39
40
use name_resolver::client::{ClientasNameClient,NameConfig};
40
-
use devices::{FiatQuotesClient,NotificationsClient,PortfolioClient,RewardsClient,RewardsRedemptionClient,ScanClient,ScanProviderFactory,TransactionsClient,WalletsClient};
41
41
use pricer::{ChartClient,MarketsClient,PriceAlertClient,PriceClient};
Copy file name to clipboardExpand all lines: crates/gem_evm/src/provider/preload.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,9 @@ use chain_traits::ChainTransactionLoad;
13
13
use gem_client::Client;
14
14
#[cfg(feature = "rpc")]
15
15
use num_bigint::BigInt;
16
-
use primitives::GasPriceType;
17
16
#[cfg(feature = "rpc")]
18
17
use primitives::ContractCallData;
18
+
use primitives::GasPriceType;
19
19
#[cfg(feature = "rpc")]
20
20
use primitives::{FeeRate,TransactionFee,TransactionInputType,TransactionLoadData,TransactionLoadInput,TransactionLoadMetadata,TransactionPreloadInput};
let validator = DelegationValidator::stake(Chain::SmartChain,"0x773760b0708a5Cc369c346993a0c225D8e4043B1".to_string(),"Test Validator".to_string(),true,5.0,10.0);
let to_validator = DelegationValidator::stake(Chain::SmartChain,"0x343dA7Ff0446247ca47AA41e2A25c5Bbb230ED0A".to_string(),"Target Validator".to_string(),true,3.0,12.0);
0 commit comments