Skip to content

Commit e95c37b

Browse files
committed
deploy canonical wsteth
1 parent b7c8a93 commit e95c37b

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ Once you kill your Devnet instance, the state is lost unless the latest `devnet_
3333
| Gate[ETH] | `0x0315ce9c5d3e5772481181441369d8eea74303b9710a6c72e3fcbbdb83c0dab1` |
3434
| Gate[STRK] | `0x031a96fe18fe3fdab28822c82c81471f1802800723c8f3e209f1d9da53bc637d` |
3535
| Gate[WBTC] | `0x05bc1c8a78667fac3bf9617903dbf2c1bfe3937e1d37ada3d8b86bf70fb7926e` |
36-
| Gate[WSTETH] | `0x02d1e95661e7726022071c06a95cdae092595954096c373cde24a34bb3984cbf` |
36+
| Gate[WSTETH_LEGACY] | `0x02d1e95661e7726022071c06a95cdae092595954096c373cde24a34bb3984cbf` |
37+
| Gate[WSTETH] | `0x03dc297a3788751d6d02acfea1b5dcc21a0eee1d34317a91aea2fbd49113ea58` |
3738
| Gate[xSTRK] | `0x04a3e7dffd8e74a706be9abe6474e07fbbcf41e1be71387514c4977d54dbc428` |
3839
| Gate[sSTRK] | `0x03b709f3ab9bc072a195b907fb2c27688723b6e4abb812a8941def819f929bd8` |
3940
| Pragma | `0x0734abeebd842926c860f3f82d23a7d2e0a24c8756d7f6b88a7456dc95a7e0fd` |

scripts/deployment/deploy_mainnet_alpha-mainnet_state.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,17 @@
10481048
"status": "Success",
10491049
"timestamp": 1733363485,
10501050
"misc": null
1051+
},
1052+
"fa15b875c2c4c6a778599345e080edcfe3c8b1296c76bb04623b45e351b34081": {
1053+
"name": "deploy",
1054+
"output": {
1055+
"type": "DeployResponse",
1056+
"contract_address": "0x3dc297a3788751d6d02acfea1b5dcc21a0eee1d34317a91aea2fbd49113ea58",
1057+
"transaction_hash": "0x5a77ccd2d2b9ab1ee2bad06d0060bb34c766add701b7bb4b9da8715826904a4"
1058+
},
1059+
"status": "Success",
1060+
"timestamp": 1738808475,
1061+
"misc": null
10511062
}
10521063
}
10531064
}

scripts/deployment/src/deploy_mainnet.cairo

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ fn main() {
4747
let wsteth: ContractAddress = addresses::mainnet::wsteth();
4848
let xstrk: ContractAddress = addresses::mainnet::xstrk();
4949
let sstrk: ContractAddress = addresses::mainnet::sstrk();
50+
let wsteth_canonical: ContractAddress = addresses::mainnet::wsteth_canonical();
5051

5152
let eth_gate: ContractAddress = core_deployment::deploy_gate(gate_class_hash, shrine, eth, sentinel, "ETH");
5253
let strk_gate: ContractAddress = core_deployment::deploy_gate(gate_class_hash, shrine, strk, sentinel, "STRK");
@@ -56,6 +57,9 @@ fn main() {
5657
);
5758
let xstrk_gate: ContractAddress = core_deployment::deploy_gate(gate_class_hash, shrine, xstrk, sentinel, "xSTRK");
5859
let sstrk_gate: ContractAddress = core_deployment::deploy_gate(gate_class_hash, shrine, sstrk, sentinel, "sSTRK");
60+
let wsteth_canonical_gate: ContractAddress = core_deployment::deploy_gate(
61+
gate_class_hash, shrine, wsteth_canonical, sentinel, "WSTETH"
62+
);
5963

6064
println!("Deploying oracles");
6165
let pragma: ContractAddress = core_deployment::deploy_pragma(
@@ -233,6 +237,7 @@ fn main() {
233237
println!("Gate[WSTETH]: {}", wsteth_gate);
234238
println!("Gate[xSTRK]: {}", xstrk_gate);
235239
println!("Gate[sSTRK]: {}", sstrk_gate);
240+
println!("Gate[WSTETH_CANONICAL]: {}", wsteth_canonical_gate);
236241
println!("Pragma: {}", pragma);
237242
println!("Purger: {}", purger);
238243
println!("Receptor: {}", receptor);

scripts/src/addresses.cairo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ pub mod mainnet {
239239
0x042b8f0484674ca266ac5d08e4ac6a3fe65bd3129795def2dca5c34ecc5f96d2.try_into().expect('invalid WSTETH address')
240240
}
241241

242+
pub fn wsteth_canonical() -> ContractAddress {
243+
0x0057912720381af14b0e5c87aa4718ed5e527eab60b3801ebf702ab09139e38b.try_into().expect('invalid WSTETH address')
244+
}
245+
242246
pub fn xstrk() -> ContractAddress {
243247
0x028d709c875c0ceac3dce7065bec5328186dc89fe254527084d1689910954b0a.try_into().expect('invalid xSTRK address')
244248
}

0 commit comments

Comments
 (0)