1
1
//! Constants for the Pecorino testnet.
2
2
3
3
use crate :: {
4
- HostConstants , HostTokens , HostUsdRecord , RollupConstants , RollupTokens , SignetConstants , SignetEnvironmentConstants , SignetSystemConstants , UsdRecords
4
+ HostConstants , HostTokens , HostUsdRecord , RollupConstants , RollupTokens , SignetConstants ,
5
+ SignetEnvironmentConstants , SignetSystemConstants , UsdRecords ,
5
6
} ;
6
7
use alloy:: primitives:: { address, Address } ;
7
8
use std:: borrow:: Cow ;
@@ -27,22 +28,14 @@ pub const HOST_USDC: Address = address!("0x885F8DB528dC8a38aA3DDad9D3F619746B4a6
27
28
pub const HOST_USDT : Address = address ! ( "0x7970D259D4a96764Fa9B23FF0715A35f06f52D1A" ) ;
28
29
/// WBTC token for the Pecorino testnet host chain.
29
30
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" ) ;
32
33
33
34
/// 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 ) ;
39
36
40
37
/// 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 ) ;
46
39
47
40
/// Host USD records for the Pecorino testnet host chain.
48
41
pub const HOST_USD_RECORDS : UsdRecords = {
@@ -52,45 +45,42 @@ pub const HOST_USD_RECORDS: UsdRecords = {
52
45
records
53
46
} ;
54
47
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 ) ;
60
61
61
62
/// Name for the network.
62
63
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" ) ;
63
68
/// Chain ID for the Pecorino testnet RU chain.
64
69
pub const RU_CHAIN_ID : u64 = 14174 ;
65
70
/// `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 " ) ;
67
72
/// `Passage` contract address for the Pecorino testnet RU chain.
68
73
/// 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" ) ;
70
78
/// Base fee recipient address for the Pecorino testnet RU chain.
71
79
pub const BASE_FEE_RECIPIENT : Address = address ! ( "0xe0eDA3701D44511ce419344A4CeD30B52c9Ba231" ) ;
72
80
73
- /// Host system tokens for Pecorino.
74
- pub const HOST_TOKENS : HostTokens =
75
- HostTokens :: new ( HOST_USD_RECORDS , HOST_WBTC , HOST_WETH ) ;
76
-
77
81
/// RU system tokens for Pecorino.
78
82
pub const RU_TOKENS : RollupTokens = RollupTokens :: new ( RU_WBTC , RU_WETH ) ;
79
83
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
-
94
84
/// RU system constants for Pecorino.
95
85
pub const ROLLUP : RollupConstants =
96
86
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:
106
96
) ;
107
97
108
98
/// 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" ;
0 commit comments