kns_indexer: use kimap consts from process_lib

This commit is contained in:
dr-frmr 2024-08-08 20:02:59 +03:00
parent a3b012dab8
commit 64a3c7757a
No known key found for this signature in database

View File

@ -20,17 +20,17 @@ wit_bindgen::generate!({
});
#[cfg(not(feature = "simulation-mode"))]
const KIMAP_ADDRESS: &'static str = "0xAfA2e57D3cBA08169b416457C14eBA2D6021c4b5"; // optimism
const KIMAP_ADDRESS: &'static str = kimap::KIMAP_ADDRESS; // optimism
#[cfg(feature = "simulation-mode")]
const KIMAP_ADDRESS: &'static str = "0xEce71a05B36CA55B895427cD9a440eEF7Cf3669D"; // local
#[cfg(not(feature = "simulation-mode"))]
const CHAIN_ID: u64 = 10; // optimism
const CHAIN_ID: u64 = kimap::KIMAP_CHAIN_ID; // optimism
#[cfg(feature = "simulation-mode")]
const CHAIN_ID: u64 = 31337; // local
#[cfg(not(feature = "simulation-mode"))]
const KIMAP_FIRST_BLOCK: u64 = 114_923_786; // optimism
const KIMAP_FIRST_BLOCK: u64 = kimap::KIMAP_FIRST_BLOCK; // optimism
#[cfg(feature = "simulation-mode")]
const KIMAP_FIRST_BLOCK: u64 = 1; // local