Skip to content

Commit 5cd32a9

Browse files
feat: add holesky-stage to chains (#638)
1 parent 4a9cfdc commit 5cd32a9

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

batcher/aligned-sdk/src/core/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,5 @@ pub enum ResponseMessage {
204204
pub enum Chain {
205205
Devnet,
206206
Holesky,
207+
HoleskyStage,
207208
}

batcher/aligned-sdk/src/sdk.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ async fn _verify_proof_onchain(
252252
let contract_address = match chain {
253253
Chain::Devnet => "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8",
254254
Chain::Holesky => "0x58F280BeBE9B34c9939C3C39e0890C81f163B623",
255+
Chain::HoleskyStage => "0x9C5231FC88059C086Ea95712d105A2026048c39B",
255256
};
256257

257258
// All the elements from the merkle proof have to be concatenated

batcher/aligned/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,15 @@ pub struct GetUserBalanceArgs {
183183
enum ChainArg {
184184
Devnet,
185185
Holesky,
186+
HoleskyStage,
186187
}
187188

188189
impl From<ChainArg> for Chain {
189190
fn from(chain_arg: ChainArg) -> Self {
190191
match chain_arg {
191192
ChainArg::Devnet => Chain::Devnet,
192193
ChainArg::Holesky => Chain::Holesky,
194+
ChainArg::HoleskyStage => Chain::HoleskyStage,
193195
}
194196
}
195197
}
@@ -378,6 +380,7 @@ async fn main() -> Result<(), AlignedError> {
378380
match chain {
379381
Chain::Devnet => wallet = wallet.with_chain_id(31337u64),
380382
Chain::Holesky => wallet = wallet.with_chain_id(17000u64),
383+
Chain::HoleskyStage => wallet = wallet.with_chain_id(17000u64),
381384
}
382385

383386
let client = SignerMiddleware::new(eth_rpc_provider.clone(), wallet.clone());

0 commit comments

Comments
 (0)