Skip to content

Commit 600f335

Browse files
NRC: fallback dev canister (#1807)
1 parent 203b0aa commit 600f335

File tree

8 files changed

+5709
-5293
lines changed

8 files changed

+5709
-5293
lines changed

Cargo.Bazel.lock

Lines changed: 4556 additions & 4180 deletions
Large diffs are not rendered by default.

Cargo.lock

Lines changed: 1088 additions & 1032 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -96,52 +96,52 @@ self_update = { version = "0.41.0", default-features = false, features = [
9696
"archive-tar",
9797
"rustls",
9898
] }
99-
ic-base-types = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
100-
ic-canister-client = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
101-
ic-canister-client-sender = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
99+
ic-base-types = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
100+
ic-canister-client = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
101+
ic-canister-client-sender = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
102102
ic-canisters = { path = "rs/ic-canisters" }
103-
ic-http-types = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
104-
ic-config = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
105-
ic-crypto-utils-threshold-sig-der = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
106-
ic-dummy-getrandom-for-wasm = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
107-
ic-http-endpoints-metrics = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
108-
ic-interfaces-registry = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
103+
ic-http-types = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
104+
ic-config = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
105+
ic-crypto-utils-threshold-sig-der = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
106+
ic-dummy-getrandom-for-wasm = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
107+
ic-http-endpoints-metrics = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
108+
ic-interfaces-registry = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
109109
ic-management-backend = { path = "rs/ic-management-backend" }
110-
ic-management-canister-types-private = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
110+
ic-management-canister-types-private = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
111111
ic-management-types = { path = "rs/ic-management-types" }
112-
ic-metrics = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
113-
ic-nervous-system-canisters = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
114-
ic-nervous-system-common = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
115-
ic-nervous-system-runtime = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
116-
ic-nns-common = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
117-
ic-nns-constants = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
118-
ic-nns-governance = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
119-
ic-nns-governance-api = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
120-
ic-protobuf = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
121-
ic-registry-canister-client = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
122-
ic-registry-canister-api = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
123-
ic-registry-client = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
124-
ic-registry-client-fake = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
125-
ic-registry-client-helpers = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
126-
ic-registry-common-proto = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
127-
ic-registry-keys = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
128-
ic-registry-local-registry = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
129-
ic-registry-local-store = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
130-
ic-registry-local-store-artifacts = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
131-
ic-registry-nns-data-provider = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
132-
ic-registry-subnet-type = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
133-
ic-registry-transport = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
134-
ic-sys = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
135-
ic-types = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
136-
ic-nervous-system-root = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
137-
ic-nervous-system-clients = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
138-
ic-nervous-system-proto = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
139-
ic-sns-wasm = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
140-
cycles-minting-canister = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
141-
ic-icrc1-test-utils = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
142-
rosetta-core = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
143-
icp-ledger = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
144-
icrc-ledger-types = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
112+
ic-metrics = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
113+
ic-nervous-system-canisters = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
114+
ic-nervous-system-common = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
115+
ic-nervous-system-runtime = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
116+
ic-nns-common = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
117+
ic-nns-constants = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
118+
ic-nns-governance = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
119+
ic-nns-governance-api = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
120+
ic-protobuf = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
121+
ic-registry-canister-client = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
122+
ic-registry-canister-api = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
123+
ic-registry-client = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
124+
ic-registry-client-fake = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
125+
ic-registry-client-helpers = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
126+
ic-registry-common-proto = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
127+
ic-registry-keys = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
128+
ic-registry-local-registry = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
129+
ic-registry-local-store = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
130+
ic-registry-local-store-artifacts = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
131+
ic-registry-nns-data-provider = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
132+
ic-registry-subnet-type = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
133+
ic-registry-transport = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
134+
ic-sys = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
135+
ic-types = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
136+
ic-nervous-system-root = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
137+
ic-nervous-system-clients = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
138+
ic-nervous-system-proto = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
139+
ic-sns-wasm = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
140+
cycles-minting-canister = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
141+
ic-icrc1-test-utils = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
142+
rosetta-core = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
143+
icp-ledger = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
144+
icrc-ledger-types = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
145145
ic-metrics-encoder = "1.1.1"
146146
ic-transport-types = "0.39.3"
147147
ic-utils = "0.39.3"
@@ -167,7 +167,7 @@ prost = "0.13"
167167
rand = { version = "0.9.2", features = ["std_rng"] }
168168
rand_seeder = "0.3.0"
169169
regex = "1.11.2"
170-
registry-canister = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
170+
registry-canister = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
171171
reqwest = { version = "0.12", default-features = false, features = [
172172
"rustls-tls-webpki-roots",
173173
"blocking",
@@ -213,10 +213,10 @@ ic-cdk = { version = "^0.18.7" }
213213
ic-cdk-timers = { version = "^0.12.2" }
214214
ic-cdk-macros = { version = "^0.18.7" }
215215
ic-stable-structures = "0.6.9"
216-
dfn_core = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
216+
dfn_core = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
217217
rewards-calculation = { path = "rs/dre-canisters/node-provider-rewards/rewards-calculation" }
218218
node-provider-rewards-api = { path = "rs/dre-canisters/node-provider-rewards/canister/api" }
219-
ic-node-rewards-canister-api = { git = "https://github.com/dfinity/ic.git", rev = "4a3a69eb515d0d69022de9afad7cbf143ca03a9c" }
219+
ic-node-rewards-canister-api = { git = "https://github.com/dfinity/ic.git", rev = "79ca6c4c6907acb74ea658b05fcb3706787b810f" }
220220

221221
# dre-airflow deps, should be replaced with dre-airflow once
222222
indexmap = { version = "2.11.1", features = ["serde"] }

rs/cli/src/commands/node_rewards/mod.rs

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -319,15 +319,8 @@ impl NodeRewards {
319319
for (day, rewards) in daily_rewards {
320320
let day_str = Self::format_date_utc(*day);
321321
let nodes_in_registry = rewards.daily_nodes_rewards.len();
322-
323-
// Sum base and adjusted rewards across all nodes for the day
324-
let base_rewards_total: u64 = rewards.daily_nodes_rewards.iter().map(|n| n.base_rewards_xdr_permyriad.unwrap()).sum();
325-
326-
let adjusted_rewards_total: u64 = rewards
327-
.daily_nodes_rewards
328-
.iter()
329-
.map(|n| n.adjusted_rewards_xdr_permyriad.unwrap())
330-
.sum();
322+
let base_rewards_total: u64 = rewards.total_base_rewards_xdr_permyriad.unwrap();
323+
let adjusted_rewards_total: u64 = rewards.total_adjusted_rewards_xdr_permyriad.unwrap();
331324

332325
// Calculate adjusted rewards percentage
333326
let adjusted_rewards_percent = if base_rewards_total > 0 {
@@ -415,18 +408,15 @@ impl NodeRewards {
415408
let provider_prefix = get_provider_prefix(&provider_id_str);
416409

417410
// Calculate adjusted rewards total
418-
let adjusted_total: u64 = daily_rewards.iter().map(|(_, reward)| reward.rewards_total_xdr_permyriad.unwrap()).sum();
411+
let adjusted_total: u64 = daily_rewards
412+
.iter()
413+
.map(|(_, reward)| reward.total_adjusted_rewards_xdr_permyriad.unwrap())
414+
.sum();
419415

420416
// Calculate base rewards total
421417
let base_total: u64 = daily_rewards
422418
.iter()
423-
.map(|(_, reward)| {
424-
reward
425-
.daily_nodes_rewards
426-
.iter()
427-
.map(|n| n.base_rewards_xdr_permyriad.unwrap())
428-
.sum::<u64>()
429-
})
419+
.map(|(_, reward)| reward.total_base_rewards_xdr_permyriad.unwrap())
430420
.sum();
431421

432422
// Calculate adj-base difference and percentage
@@ -556,8 +546,8 @@ impl NodeRewards {
556546

557547
self.create_base_rewards_csv(&provider_dir, daily_rewards)?;
558548
self.create_base_rewards_type3_csv(&provider_dir, daily_rewards)?;
559-
self.create_rewards_summary_csv(&provider_dir, &daily_rewards)?;
560-
self.create_node_metrics_csv(&provider_dir, &daily_rewards)?;
549+
self.create_rewards_summary_csv(&provider_dir, daily_rewards)?;
550+
self.create_node_metrics_csv(&provider_dir, daily_rewards)?;
561551
}
562552

563553
// Generate subnets failure rates CSV in the rewards directory
@@ -633,7 +623,6 @@ impl NodeRewards {
633623
"base_rewards_total",
634624
"adjusted_rewards_total",
635625
"adjusted_rewards_percent",
636-
"rewards_total_xdr_permyriad",
637626
"nodes_in_registry",
638627
"assigned_nodes",
639628
"underperforming_nodes_count",
@@ -645,13 +634,8 @@ impl NodeRewards {
645634
let day_str = Self::format_date_utc(*day);
646635

647636
// Sum base and adjusted rewards across all nodes for the day
648-
let base_rewards_total: u64 = rewards.daily_nodes_rewards.iter().map(|n| n.base_rewards_xdr_permyriad.unwrap()).sum();
649-
650-
let adjusted_rewards_total: u64 = rewards
651-
.daily_nodes_rewards
652-
.iter()
653-
.map(|n| n.adjusted_rewards_xdr_permyriad.unwrap())
654-
.sum();
637+
let base_rewards_total: u64 = rewards.total_base_rewards_xdr_permyriad.unwrap();
638+
let adjusted_rewards_total: u64 = rewards.total_adjusted_rewards_xdr_permyriad.unwrap();
655639

656640
// Calculate adjusted rewards percentage
657641
let adjusted_rewards_percent = if base_rewards_total > 0 {
@@ -660,7 +644,6 @@ impl NodeRewards {
660644
"N/A".to_string()
661645
};
662646

663-
let total_rewards = rewards.rewards_total_xdr_permyriad.unwrap();
664647
let nodes_in_registry = rewards.daily_nodes_rewards.len();
665648

666649
// Count assigned nodes
@@ -689,7 +672,6 @@ impl NodeRewards {
689672
&base_rewards_total.to_string(),
690673
&adjusted_rewards_total.to_string(),
691674
&adjusted_rewards_percent,
692-
&total_rewards.to_string(),
693675
&nodes_in_registry.to_string(),
694676
&assigned_count.to_string(),
695677
&underperforming_nodes_count.to_string(),
@@ -928,7 +910,7 @@ impl NodeRewards {
928910
// Sort by subnet_id first, then by day_utc
929911
subnets_fr_data
930912
.iter()
931-
.flat_map(|(subnet_id, subnets_fr)| subnets_fr.iter().map(|(date, fr)| (subnet_id.clone(), Self::format_date_utc(*date), *fr)))
913+
.flat_map(|(subnet_id, subnets_fr)| subnets_fr.iter().map(|(date, fr)| (*subnet_id, Self::format_date_utc(*date), *fr)))
932914
.sorted_by(|a, b| {
933915
let subnet_cmp = a.1.cmp(&b.1);
934916
if subnet_cmp == std::cmp::Ordering::Equal {

rs/cli/src/forum/impls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl ForumPostHandler for Discourse {
242242
Err(e) => {
243243
return Err(anyhow::anyhow!(
244244
"Subnet {} not found in the specified subnet topic map file {} (error: {}). Don't know where to create a forum post",
245-
subnet_id.to_string(),
245+
subnet_id,
246246
path.display(),
247247
e
248248
));
@@ -252,7 +252,7 @@ impl ForumPostHandler for Discourse {
252252
};
253253
let topic_info = subnet_topic_map.get(&subnet_id).ok_or(anyhow::anyhow!(
254254
"Subnet {} not found in the discovered subnet topic map. Don't know where to create a forum post",
255-
subnet_id.to_string()
255+
subnet_id
256256
))?;
257257
match self.client.create_post(body.clone(), topic_info.topic_id).await {
258258
Ok(poast) => Ok::<DiscoursePost, anyhow::Error>(DiscoursePost {

rs/cli/src/qualification/run_workload_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async fn ensure_finalization_rate_for_subnet(
113113

114114
let finalization_rate = response["data"]["result"][0]["value"][1]
115115
.as_str()
116-
.ok_or(anyhow::anyhow!("Response is not in the expected format {}", response.to_string()))?
116+
.ok_or(anyhow::anyhow!("Response is not in the expected format {}", response))?
117117
.parse::<f64>()?;
118118

119119
let expected_finalization_rate = expected_finalization_rate_for_subnet(subnet_type, ips.len());

rs/ic-canisters/src/node_rewards.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ use ic_node_rewards_canister_api::provider_rewards_calculation::{
66
DailyResults, DateUtc, GetNodeProvidersRewardsCalculationRequest, GetNodeProvidersRewardsCalculationResponse,
77
};
88

9-
const NODE_METRICS_CANISTER: &str = "sgymv-uiaaa-aaaaa-aaaia-cai";
9+
const _NODE_METRICS_CANISTER: &str = "sgymv-uiaaa-aaaaa-aaaia-cai";
10+
const NODE_METRICS_CANISTER_DEV: &str = "uuew5-iiaaa-aaaaa-qbx4q-cai";
1011

1112
pub struct NodeRewardsCanisterWrapper {
1213
agent: IcAgentCanisterClient,
@@ -26,7 +27,7 @@ impl NodeRewardsCanisterWrapper {
2627
pub async fn get_rewards_daily(&self, day: DateUtc) -> anyhow::Result<DailyResults> {
2728
self.agent
2829
.query::<GetNodeProvidersRewardsCalculationResponse>(
29-
&Principal::from_str(NODE_METRICS_CANISTER).map_err(anyhow::Error::from)?,
30+
&Principal::from_str(NODE_METRICS_CANISTER_DEV).map_err(anyhow::Error::from)?,
3031
"get_node_providers_rewards_calculation",
3132
candid::encode_one(GetNodeProvidersRewardsCalculationRequest { day })?,
3233
)

rs/ic-canisters/src/parallel_hardware_identity.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(deprecated)]
12
use byteorder::{BigEndian, ReadBytesExt};
23
use cryptoki::{
34
context::{CInitializeArgs, Pkcs11 as CryptokiPkcs11},

0 commit comments

Comments
 (0)