|
| 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 = 0; |
| 16 | +/// `Zenith` contract address for the Mainnet host chain. |
| 17 | +pub const HOST_ZENITH: Address = address!("0xBCe84D45d7be8859bcBd838d4a7b3448B55E6869"); |
| 18 | +/// `Orders` contract address for the Mainnet host chain. |
| 19 | +pub const HOST_ORDERS: Address = address!("0x96f44ddc3Bc8892371305531F1a6d8ca2331fE6C"); |
| 20 | +/// `Passage` contract address for the Mainnet host chain. |
| 21 | +pub const HOST_PASSAGE: Address = address!("0x02a64d6e2c30d2B07ddBD177b24D9D0f6439CcbD"); |
| 22 | +/// `Transactor` contract address for the Mainnet host chain. |
| 23 | +pub const HOST_TRANSACTOR: Address = address!("0xC4388A6f4917B8D392B19b43F9c46FEC1B890f45"); |
| 24 | + |
| 25 | +/// USDC token for the Mainnet host chain (empty placeholder). |
| 26 | +pub const HOST_USDC: Address = address!("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"); |
| 27 | +/// USDT token for the Mainnet host chain (empty placeholder). |
| 28 | +pub const HOST_USDT: Address = address!("0xdAC17F958D2ee523a2206206994597C13D831ec7"); |
| 29 | +/// WBTC token for the Mainnet host chain (empty placeholder). |
| 30 | +pub const HOST_WBTC: Address = address!("0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"); |
| 31 | +/// WETH token for the Mainnet host chain (empty placeholder). |
| 32 | +pub const HOST_WETH: Address = address!("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"); |
| 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 = UsdRecords::new(); |
| 40 | +/// Host system tokens for Mainnet (placeholders). |
| 41 | +pub const HOST_TOKENS: HostTokens = HostTokens::new(HOST_USD_RECORDS, HOST_WBTC, HOST_WETH); |
| 42 | + |
| 43 | +/// Host system constants for Mainnet. |
| 44 | +pub const HOST: HostConstants = crate::HostConstants::new( |
| 45 | + HOST_CHAIN_ID, |
| 46 | + DEPLOY_HEIGHT, |
| 47 | + HOST_ZENITH, |
| 48 | + HOST_ORDERS, |
| 49 | + HOST_PASSAGE, |
| 50 | + HOST_TRANSACTOR, |
| 51 | + HOST_TOKENS, |
| 52 | +); |
| 53 | + |
| 54 | +/// Name for the network. |
| 55 | +pub const RU_NAME: &str = "Signet"; |
| 56 | +/// Chain ID for the Mainnet RU chain. |
| 57 | +pub const RU_CHAIN_ID: u64 = 519; |
| 58 | + |
| 59 | +/// WETH token for the Mainnet RU chain (placeholder). |
| 60 | +pub const RU_WETH: Address = address!("0x0000000000000000007369676e65742d77657468"); |
| 61 | +/// WBTC token for the Mainnet RU chain (placeholder). |
| 62 | +pub const RU_WBTC: Address = address!("0x0000000000000000007369676e65742d77627463"); |
| 63 | +/// `Orders` contract address for the Mainnet RU chain (placeholder). |
| 64 | +pub const RU_ORDERS: Address = address!("0x000000000000007369676e65742d6f7264657273"); |
| 65 | +/// `Passage` contract address for the Mainnet RU chain (placeholder). |
| 66 | +pub const RU_PASSAGE: Address = address!("0x0000000000007369676e65742d70617373616765"); |
| 67 | +/// The WETH9-based wrapped native USD token contract (placeholder). |
| 68 | +pub const WRAPPED: Address = address!("0x0000000000000000007369676e65742D77757364"); |
| 69 | +/// RU pre-approved system tokens for Mainnet (placeholders). |
| 70 | +pub const RU_TOKENS: RollupTokens = RollupTokens::new(RU_WBTC, RU_WETH); |
| 71 | + |
| 72 | +/// Base fee recipient address for the Mainnet RU chain (placeholder). |
| 73 | +pub const BASE_FEE_RECIPIENT: Address = address!("0x86Fa9c9fb93C5F6022276db84bf2A05b5a72283E"); |
| 74 | + |
| 75 | +/// RU system constants for Mainnet. |
| 76 | +pub const ROLLUP: RollupConstants = |
| 77 | + crate::RollupConstants::new(RU_CHAIN_ID, RU_ORDERS, RU_PASSAGE, BASE_FEE_RECIPIENT, RU_TOKENS); |
| 78 | + |
| 79 | +/// Signet system constants for Mainnet. |
| 80 | +pub const MAINNET_SYS: SignetSystemConstants = crate::SignetSystemConstants::new(HOST, ROLLUP); |
| 81 | + |
| 82 | +/// Signet environment constants for Mainnet. |
| 83 | +pub const MAINNET_ENV: SignetEnvironmentConstants = SignetEnvironmentConstants::new( |
| 84 | + Cow::Borrowed(HOST_NAME), |
| 85 | + Cow::Borrowed(RU_NAME), |
| 86 | + Cow::Borrowed(TX_CACHE_URL), |
| 87 | +); |
| 88 | + |
| 89 | +/// Signet constants for Mainnet. |
| 90 | +pub const MAINNET: SignetConstants = SignetConstants::new(MAINNET_SYS, MAINNET_ENV); |
| 91 | + |
| 92 | +/// The URL of the Transaction Cache endpoint (empty for mainnet placeholder). |
| 93 | +pub const TX_CACHE_URL: &str = "https://transactions.signet.sh"; |
0 commit comments