|
| 1 | +//! Constants for the Mainnet. |
| 2 | +
|
| 3 | +use crate::{ |
| 4 | + HostConstants, HostTokens, HostUsdRecord, RollupConstants, RollupTokens, SignetConstants, |
| 5 | + SignetEnvironmentConstants, SignetSystemConstants, UsdRecords, |
| 6 | +}; |
| 7 | +use alloy::primitives::{address, Address}; |
| 8 | +use std::borrow::Cow; |
| 9 | + |
| 10 | +/// Name for the host chain. |
| 11 | +pub const HOST_NAME: &str = "Mainnet"; |
| 12 | +/// Chain ID for the Mainnet host chain. |
| 13 | +pub const HOST_CHAIN_ID: u64 = 1; |
| 14 | +/// Deployment height of the rollup on Mainnet host chain. |
| 15 | +pub const DEPLOY_HEIGHT: u64 = 23734244; |
| 16 | +/// `Zenith` contract address for the Mainnet host chain. |
| 17 | +pub const HOST_ZENITH: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 18 | +/// `Orders` contract address for the Mainnet host chain. |
| 19 | +pub const HOST_ORDERS: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 20 | +/// `Passage` contract address for the Mainnet host chain. |
| 21 | +pub const HOST_PASSAGE: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 22 | +/// `Transactor` contract address for the Mainnet host chain. |
| 23 | +pub const HOST_TRANSACTOR: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 24 | + |
| 25 | +/// USDC token for the Mainnet host chain (empty placeholder). |
| 26 | +pub const HOST_USDC: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 27 | +/// USDT token for the Mainnet host chain (empty placeholder). |
| 28 | +pub const HOST_USDT: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 29 | +/// WBTC token for the Mainnet host chain (empty placeholder). |
| 30 | +pub const HOST_WBTC: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 31 | +/// WETH token for the Mainnet host chain (empty placeholder). |
| 32 | +pub const HOST_WETH: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 33 | + |
| 34 | +/// USDC token record for the Mainnet host chain (placeholder name/decimals). |
| 35 | +pub const HOST_USDC_RECORD: HostUsdRecord = HostUsdRecord::new(HOST_USDC, Cow::Borrowed("USDC"), 6); |
| 36 | +/// USDT token record for the Mainnet host chain (placeholder name/decimals). |
| 37 | +pub const HOST_USDT_RECORD: HostUsdRecord = HostUsdRecord::new(HOST_USDT, Cow::Borrowed("USDT"), 6); |
| 38 | +/// Host USD records for the Mainnet host chain (empty list by default). |
| 39 | +pub const HOST_USD_RECORDS: UsdRecords = { |
| 40 | + let records = UsdRecords::new(); |
| 41 | + records |
| 42 | +}; |
| 43 | +/// Host system tokens for Mainnet (placeholders). |
| 44 | +pub const HOST_TOKENS: HostTokens = HostTokens::new(HOST_USD_RECORDS, HOST_WBTC, HOST_WETH); |
| 45 | + |
| 46 | +/// Host system constants for Mainnet. |
| 47 | +pub const HOST: HostConstants = crate::HostConstants::new( |
| 48 | + HOST_CHAIN_ID, |
| 49 | + DEPLOY_HEIGHT, |
| 50 | + HOST_ZENITH, |
| 51 | + HOST_ORDERS, |
| 52 | + HOST_PASSAGE, |
| 53 | + HOST_TRANSACTOR, |
| 54 | + HOST_TOKENS, |
| 55 | +); |
| 56 | + |
| 57 | +/// Name for the network. |
| 58 | +pub const RU_NAME: &str = "Signet"; |
| 59 | +/// Chain ID for the Mainnet RU chain. |
| 60 | +pub const RU_CHAIN_ID: u64 = 519; |
| 61 | + |
| 62 | +/// WETH token for the Mainnet RU chain (placeholder). |
| 63 | +pub const RU_WETH: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 64 | +/// WBTC token for the Mainnet RU chain (placeholder). |
| 65 | +pub const RU_WBTC: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 66 | +/// `Orders` contract address for the Mainnet RU chain (placeholder). |
| 67 | +pub const RU_ORDERS: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 68 | +/// `Passage` contract address for the Mainnet RU chain (placeholder). |
| 69 | +pub const RU_PASSAGE: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 70 | +/// The WETH9-based wrapped native USD token contract (placeholder). |
| 71 | +pub const WRAPPED: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 72 | +/// RU pre-approved system tokens for Mainnet (placeholders). |
| 73 | +pub const RU_TOKENS: RollupTokens = RollupTokens::new(RU_WBTC, RU_WETH); |
| 74 | + |
| 75 | +/// Base fee recipient address for the Mainnet RU chain (placeholder). |
| 76 | +pub const BASE_FEE_RECIPIENT: Address = address!("0x0000000000000000000000000000000000000000"); // TODO |
| 77 | + |
| 78 | +/// RU system constants for Mainnet. |
| 79 | +pub const ROLLUP: RollupConstants = |
| 80 | + crate::RollupConstants::new(RU_CHAIN_ID, RU_ORDERS, RU_PASSAGE, BASE_FEE_RECIPIENT, RU_TOKENS); |
| 81 | + |
| 82 | +/// Signet system constants for Mainnet. |
| 83 | +pub const MAINNET_SYS: SignetSystemConstants = crate::SignetSystemConstants::new(HOST, ROLLUP); |
| 84 | + |
| 85 | +/// Signet environment constants for Mainnet. |
| 86 | +pub const MAINNET_ENV: SignetEnvironmentConstants = SignetEnvironmentConstants::new( |
| 87 | + Cow::Borrowed(HOST_NAME), |
| 88 | + Cow::Borrowed(RU_NAME), |
| 89 | + Cow::Borrowed(TX_CACHE_URL), |
| 90 | +); |
| 91 | + |
| 92 | +/// Signet constants for Mainnet. |
| 93 | +pub const MAINNET: SignetConstants = SignetConstants::new(MAINNET_SYS, MAINNET_ENV); |
| 94 | + |
| 95 | +/// The URL of the Transaction Cache endpoint (empty for mainnet placeholder). |
| 96 | +pub const TX_CACHE_URL: &str = "TODO"; |
0 commit comments