Skip to content

Commit 071d790

Browse files
committed
move class hash to addresses
1 parent dd79adf commit 071d790

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

scripts/deployment/src/deploy_oracles_v2_sepolia.cairo

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use opus::periphery::roles::frontend_data_provider_roles;
55
use scripts::addresses;
66
use scripts::constants;
77
use sncast_std::{invoke, InvokeResult, DisplayContractAddress};
8-
use starknet::{ClassHash, ContractAddress};
8+
use starknet::ContractAddress;
99

1010
fn main() {
1111
let deployment_addr: ContractAddress = addresses::sepolia::admin();
@@ -74,11 +74,8 @@ fn main() {
7474

7575
// Peripheral deployment
7676
println!("Deploying periphery contracts");
77-
let fdp_class_hash: ClassHash = 0x057de79aa98ec372b03eae8a68077e719926035da35ac6ab0d64822d41457019
78-
.try_into()
79-
.expect('invalid fdp class hash');
8077
let frontend_data_provider: ContractAddress = periphery_deployment::deploy_frontend_data_provider(
81-
Option::Some(fdp_class_hash), admin, shrine, sentinel, abbot, purger
78+
Option::Some(addresses::sepolia::frontend_data_provider_class_hash()), admin, shrine, sentinel, abbot, purger
8279
);
8380

8481
// Transfer admin role to admin

scripts/src/addresses.cairo

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub mod devnet {
110110
}
111111

112112
pub mod sepolia {
113-
use starknet::ContractAddress;
113+
use starknet::{ClassHash, ContractAddress};
114114

115115
pub fn admin() -> ContractAddress {
116116
0x17721cd89df40d33907b70b42be2a524abeea23a572cf41c79ffe2422e7814e.try_into().expect('invalid admin address')
@@ -134,6 +134,10 @@ pub mod sepolia {
134134
}
135135

136136
// deployments
137+
pub fn frontend_data_provider_class_hash() -> ClassHash {
138+
0x057de79aa98ec372b03eae8a68077e719926035da35ac6ab0d64822d41457019.try_into().expect('invalid fdp class hash')
139+
}
140+
137141
pub fn abbot() -> ContractAddress {
138142
0x04280b97ecb8f1e0536e41888e387a04c3796e393f7086e5e24d61614927bc30.try_into().unwrap()
139143
}

0 commit comments

Comments
 (0)