Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion networks/metis.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions networks/sei.json
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion src/utils/archive_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
3 changes: 1 addition & 2 deletions src/utils/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand All @@ -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,
Expand Down