Skip to content

Commit d2fad9f

Browse files
committed
chore: updated addresses
1 parent 6a61347 commit d2fad9f

File tree

3 files changed

+33
-41
lines changed

3 files changed

+33
-41
lines changed

crates/constants/src/chains/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#[cfg(any(test, feature = "test-utils"))]
22
pub mod test_utils;
33

4-
pub mod pecorino;
4+
pub mod pecorino;
Lines changed: 32 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//! Constants for the Pecorino testnet.
22
33
use crate::{
4-
HostConstants, HostTokens, HostUsdRecord, RollupConstants, RollupTokens, SignetConstants, SignetEnvironmentConstants, SignetSystemConstants, UsdRecords
4+
HostConstants, HostTokens, HostUsdRecord, RollupConstants, RollupTokens, SignetConstants,
5+
SignetEnvironmentConstants, SignetSystemConstants, UsdRecords,
56
};
67
use alloy::primitives::{address, Address};
78
use std::borrow::Cow;
@@ -27,22 +28,14 @@ pub const HOST_USDC: Address = address!("0x885F8DB528dC8a38aA3DDad9D3F619746B4a6
2728
pub const HOST_USDT: Address = address!("0x7970D259D4a96764Fa9B23FF0715A35f06f52D1A");
2829
/// WBTC token for the Pecorino testnet host chain.
2930
pub const HOST_WBTC: Address = address!("0x9aeDED4224f3dD31aD8A0B1FcD05E2d7829283a7");
30-
/// WETH token for the Pecorino testnet host chain (CURRENTLY A PLACERHOLDER).
31-
pub const HOST_WETH: Address = Address::repeat_byte(0xff);
31+
/// WETH token for the Pecorino testnet host chain.
32+
pub const HOST_WETH: Address = address!("0x572C4d72080ed9E9997509b583a22B785B70cB3f");
3233

3334
/// USDC token record for the Pecorino testnet host chain.
34-
pub const HOST_USDC_RECORD: HostUsdRecord = HostUsdRecord::new(
35-
HOST_USDC,
36-
Cow::Borrowed("USDC"),
37-
6
38-
);
35+
pub const HOST_USDC_RECORD: HostUsdRecord = HostUsdRecord::new(HOST_USDC, Cow::Borrowed("USDC"), 6);
3936

4037
/// USDT token record for the Pecorino testnet host chain.
41-
pub const HOST_USDT_RECORD: HostUsdRecord = HostUsdRecord::new(
42-
HOST_USDT,
43-
Cow::Borrowed("USDT"),
44-
6
45-
);
38+
pub const HOST_USDT_RECORD: HostUsdRecord = HostUsdRecord::new(HOST_USDT, Cow::Borrowed("USDT"), 6);
4639

4740
/// Host USD records for the Pecorino testnet host chain.
4841
pub const HOST_USD_RECORDS: UsdRecords = {
@@ -52,45 +45,42 @@ pub const HOST_USD_RECORDS: UsdRecords = {
5245
records
5346
};
5447

55-
/// USDC token for the Pecorino testnet RU chain.
56-
/// This is currently a placeholder.
57-
pub const RU_WETH: Address = Address::repeat_byte(0xff);
58-
/// WBTC token for the Pecorino testnet RU chain.
59-
pub const RU_WBTC: Address = address!("0xE3d7066115f7d6b65F88Dff86288dB4756a7D733");
48+
/// Host system constants for Pecorino.
49+
pub const HOST: HostConstants = crate::HostConstants::new(
50+
HOST_CHAIN_ID,
51+
DEPLOY_HEIGHT,
52+
HOST_ZENITH,
53+
HOST_ORDERS,
54+
HOST_PASSAGE,
55+
HOST_TRANSACTOR,
56+
HOST_TOKENS,
57+
);
58+
59+
/// Host system tokens for Pecorino.
60+
pub const HOST_TOKENS: HostTokens = HostTokens::new(HOST_USD_RECORDS, HOST_WBTC, HOST_WETH);
6061

6162
/// Name for the network.
6263
pub const RU_NAME: &str = "Pecorino";
64+
/// WETH token for the Pecorino testnet RU chain.
65+
pub const RU_WETH: Address = address!("0x0000000000000000007369676e65742d77657468");
66+
/// WBTC token for the Pecorino testnet RU chain.
67+
pub const RU_WBTC: Address = address!("0x0000000000000000007369676e65742D77627463");
6368
/// Chain ID for the Pecorino testnet RU chain.
6469
pub const RU_CHAIN_ID: u64 = 14174;
6570
/// `Orders` contract address for the Pecorino testnet RU chain.
66-
pub const RU_ORDERS: Address = address!("0xC2D3Dac6B115564B10329697195656459BFb2c74");
71+
pub const RU_ORDERS: Address = address!("0x000000000000007369676E65742D6f7264657273");
6772
/// `Passage` contract address for the Pecorino testnet RU chain.
6873
/// This is currently a dummy value and will be replaced with the actual Passage contract address in the future.
69-
pub const RU_PASSAGE: Address = address!("0xB043BdD3d91376A76078c361bb82496Fdb809aE2");
74+
pub const RU_PASSAGE: Address = address!("0x0000000000007369676E65742D70617373616765");
75+
/// The WETH9-based wrapped native USD token contract.
76+
/// This is signet's native token in wrapped form.
77+
pub const WRAPPED: Address = address!("0x0000000000000000007369676e65742D77757364");
7078
/// Base fee recipient address for the Pecorino testnet RU chain.
7179
pub const BASE_FEE_RECIPIENT: Address = address!("0xe0eDA3701D44511ce419344A4CeD30B52c9Ba231");
7280

73-
/// Host system tokens for Pecorino.
74-
pub const HOST_TOKENS: HostTokens =
75-
HostTokens::new(HOST_USD_RECORDS, HOST_WBTC, HOST_WETH);
76-
7781
/// RU system tokens for Pecorino.
7882
pub const RU_TOKENS: RollupTokens = RollupTokens::new(RU_WBTC, RU_WETH);
7983

80-
/// The URL of the Transaction Cache endpoint.
81-
pub const TX_CACHE_URL: &str = "https://transactions.pecorino.signet.sh";
82-
83-
/// Host system constants for Pecorino.
84-
pub const HOST: HostConstants = crate::HostConstants::new(
85-
HOST_CHAIN_ID,
86-
DEPLOY_HEIGHT,
87-
HOST_ZENITH,
88-
HOST_ORDERS,
89-
HOST_PASSAGE,
90-
HOST_TRANSACTOR,
91-
HOST_TOKENS,
92-
);
93-
9484
/// RU system constants for Pecorino.
9585
pub const ROLLUP: RollupConstants =
9686
crate::RollupConstants::new(RU_CHAIN_ID, RU_ORDERS, RU_PASSAGE, BASE_FEE_RECIPIENT, RU_TOKENS);
@@ -106,4 +96,7 @@ pub const PECORINO_ENV: SignetEnvironmentConstants = SignetEnvironmentConstants:
10696
);
10797

10898
/// Signet constants for Pecorino.
109-
pub const PECORINO: SignetConstants = SignetConstants::new(PECORINO_SYS, PECORINO_ENV);
99+
pub const PECORINO: SignetConstants = SignetConstants::new(PECORINO_SYS, PECORINO_ENV);
100+
101+
/// The URL of the Transaction Cache endpoint.
102+
pub const TX_CACHE_URL: &str = "https://transactions.pecorino.signet.sh";

crates/constants/src/types/tokens.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ impl UsdRecords {
332332
}
333333
}
334334

335-
336335
impl serde::Serialize for UsdRecords {
337336
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
338337
where

0 commit comments

Comments
 (0)