diff --git a/networks/metis.json b/networks/metis.json index 5d5bf1e..b5d6484 100644 --- a/networks/metis.json +++ b/networks/metis.json @@ -4,7 +4,7 @@ "wvm_chain_id": 9496, "network_rpc": "https://andromeda.metis.io/?owner=1088", "wvm_rpc": "https://testnet-rpc.wvm.dev", - "block_time": 9, + "block_time": 9.0, "start_block": 18574702, "archiver_address": "0x197f818c1313DC58b32D88078ecdfB40EA822614", "backfill_address": "0x123463a4B065722E99115D6c222f267d9cABb524", diff --git a/networks/sei.json b/networks/sei.json new file mode 100644 index 0000000..fd64809 --- /dev/null +++ b/networks/sei.json @@ -0,0 +1,12 @@ +{ + "name": "SEI", + "network_chain_id": 1329, + "wvm_chain_id": 9496, + "network_rpc": "https://evm-rpc.sei-apis.com", + "wvm_rpc": "https://testnet-rpc.wvm.dev", + "block_time": 0.395, + "start_block": 105238600, + "archiver_address": "0x2D76d7B140d078C575eAAD109168c606FE9d506C", + "backfill_address": "0x55dA54ee977FBe734d5250F0558bc4B2FBe36b2a", + "archive_pool_address": "0x0000000000000000000000000000000000000000" +} \ No newline at end of file diff --git a/src/utils/archive_block.rs b/src/utils/archive_block.rs index 9d497f6..35e23c9 100644 --- a/src/utils/archive_block.rs +++ b/src/utils/archive_block.rs @@ -57,7 +57,7 @@ pub async fn sprint_blocks_archiving() { println!("\n{}", "#".repeat(100)); } else { current_block_number = get_current_block_number().await.as_u64(); - thread::sleep(Duration::from_secs(block_time.into())); + thread::sleep(Duration::from_secs(block_time as u64)); } } } diff --git a/src/utils/schema.rs b/src/utils/schema.rs index 341d382..fef68ae 100644 --- a/src/utils/schema.rs +++ b/src/utils/schema.rs @@ -5,7 +5,6 @@ use crate::utils::transaction::get_balance_of; use borsh::{from_slice, to_vec}; use borsh_derive::{BorshDeserialize, BorshSerialize}; use ethers::types::U256; -use ethers_core::k256::elliptic_curve::consts::U25; use ethers_providers::{Http, Provider}; use planetscale_driver::Database; use serde::{Deserialize, Serialize}; @@ -21,7 +20,7 @@ pub struct Network { pub wvm_chain_id: u32, pub network_rpc: String, pub wvm_rpc: String, - pub block_time: u32, + pub block_time: f32, pub start_block: u64, // as per ethers_provider pub archiver_address: String, pub backfill_address: String,