Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"POCKETIC_VERSION": "3.0.1",
"CARGO_SORT_VERSION": "1.0.9",
"SNSDEMO_RELEASE": "release-2026-03-25",
"IC_COMMIT_FOR_PROPOSALS": "release-2026-03-19_04-43-base",
"IC_COMMIT_FOR_PROPOSALS": "release-2026-03-26_04-51-base",
"IC_COMMIT_FOR_SNS_AGGREGATOR": "release-2026-03-19_04-43-base"
},
"packtool": ""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Candid for canister `nns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-19_04-43-base/rs/nns/governance/canister/governance.did>
//! Candid for canister `nns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-26_04-51-base/rs/nns/governance/canister/governance.did>
type AccountIdentifier = record {
hash : blob;
};
Expand Down Expand Up @@ -67,6 +67,7 @@ type CanisterSettings = record {
freezing_threshold : opt nat64;
controllers : opt Controllers;
log_visibility : opt int32;
snapshot_visibility : opt int32;
wasm_memory_limit : opt nat64;
memory_allocation : opt nat64;
compute_allocation : opt nat64;
Expand Down
15 changes: 14 additions & 1 deletion declarations/used_by_proposals/nns_registry/nns_registry.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Candid for canister `nns_registry` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-19_04-43-base/rs/registry/canister/canister/registry.did>
//! Candid for canister `nns_registry` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-26_04-51-base/rs/registry/canister/canister/registry.did>
// A brief note about the history of this file: This file used to be
// automatically generated, but now, it is hand-crafted, because the
// auto-generator has some some pretty degenerate behaviors. The worst of those
Expand Down Expand Up @@ -82,6 +82,11 @@ type CompleteCanisterMigrationPayload = record {
migration_trace : vec principal;
};

type ResourceLimits = record {
maximum_state_size : opt nat64;
maximum_state_delta : opt nat64;
};

type CreateSubnetPayload = record {
unit_delay_millis : nat64;
features : SubnetFeatures;
Expand All @@ -107,6 +112,8 @@ type CreateSubnetPayload = record {

subnet_admins: opt vec principal;

resource_limits : opt ResourceLimits;

// TODO(NNS1-2444): The fields below are deprecated and they are not read anywhere.
ingress_bytes_per_block_soft_cap : nat64;
gossip_max_artifact_streams_per_peer : nat32;
Expand Down Expand Up @@ -485,6 +492,11 @@ type UpdateUnassignedNodesConfigPayload = record {
ssh_readonly_access : opt vec text;
};

type MigrateNodeOperatorPayload = record {
new_node_operator_id : opt principal;
old_node_operator_id : opt principal;
};

type SwapNodeInSubnetDirectlyPayload = record {
new_node_id : opt principal;
old_node_id : opt principal;
Expand Down Expand Up @@ -565,6 +577,7 @@ service : {
get_node_providers_monthly_xdr_rewards : (opt GetNodeProvidersMonthlyXdrRewardsRequest) -> (GetNodeProvidersMonthlyXdrRewardsResponse) query;
get_subnet_for_canister : (GetSubnetForCanisterRequest) -> (GetSubnetForCanisterResponse) query;
migrate_canisters: (MigrateCanistersPayload) -> (MigrateCanistersResponse);
migrate_node_operator_directly : (MigrateNodeOperatorPayload) -> ();
prepare_canister_migration : (PrepareCanisterMigrationPayload) -> ();
recover_subnet : (RecoverSubnetPayload) -> ();
remove_api_boundary_nodes : (RemoveApiBoundaryNodesPayload) -> ();
Expand Down
2 changes: 1 addition & 1 deletion declarations/used_by_proposals/sns_wasm/sns_wasm.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Candid for canister `sns_wasm` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-19_04-43-base/rs/nns/sns-wasm/canister/sns-wasm.did>
//! Candid for canister `sns_wasm` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-26_04-51-base/rs/nns/sns-wasm/canister/sns-wasm.did>
type AddWasmRequest = record {
hash : blob;
wasm : opt SnsWasm;
Expand Down
3 changes: 2 additions & 1 deletion rs/proposals/src/canisters/nns_governance/api.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Rust code created from candid by: `scripts/did2rs.sh --canister nns_governance --out api.rs --header did2rs.header --traits Serialize`
//! Candid for canister `nns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-19_04-43-base/rs/nns/governance/canister/governance.did>
//! Candid for canister `nns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-26_04-51-base/rs/nns/governance/canister/governance.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
Expand Down Expand Up @@ -534,6 +534,7 @@ pub struct CanisterSettings {
pub wasm_memory_threshold: Option<u64>,
pub controllers: Option<Controllers>,
pub log_visibility: Option<i32>,
pub snapshot_visibility: Option<i32>,
pub wasm_memory_limit: Option<u64>,
pub memory_allocation: Option<u64>,
pub compute_allocation: Option<u64>,
Expand Down
16 changes: 15 additions & 1 deletion rs/proposals/src/canisters/nns_registry/api.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Rust code created from candid by: `scripts/did2rs.sh --canister nns_registry --out api.rs --header did2rs.header --traits Serialize`
//! Candid for canister `nns_registry` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-19_04-43-base/rs/registry/canister/canister/registry.did>
//! Candid for canister `nns_registry` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-26_04-51-base/rs/registry/canister/canister/registry.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
Expand Down Expand Up @@ -130,6 +130,11 @@ pub struct CompleteCanisterMigrationPayload {
pub migration_trace: Vec<Principal>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct ResourceLimits {
pub maximum_state_size: Option<u64>,
pub maximum_state_delta: Option<u64>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct SubnetFeatures {
pub canister_sandboxing: bool,
pub http_requests: bool,
Expand Down Expand Up @@ -210,6 +215,7 @@ pub enum SubnetType {
#[derive(Serialize, CandidType, Deserialize)]
pub struct CreateSubnetPayload {
pub unit_delay_millis: u64,
pub resource_limits: Option<ResourceLimits>,
pub features: SubnetFeatures,
pub gossip_registry_poll_period_ms: u32,
pub max_ingress_bytes_per_message: u64,
Expand Down Expand Up @@ -336,6 +342,11 @@ pub struct MigrateCanistersResponse {
pub registry_version: u64,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct MigrateNodeOperatorPayload {
pub new_node_operator_id: Option<Principal>,
pub old_node_operator_id: Option<Principal>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct PrepareCanisterMigrationPayload {
pub canister_id_ranges: Vec<CanisterIdRange>,
pub source_subnet: Principal,
Expand Down Expand Up @@ -665,6 +676,9 @@ impl Service {
pub async fn migrate_canisters(&self, arg0: MigrateCanistersPayload) -> CallResult<(MigrateCanistersResponse,)> {
ic_cdk::call(self.0, "migrate_canisters", (arg0,)).await
}
pub async fn migrate_node_operator_directly(&self, arg0: MigrateNodeOperatorPayload) -> CallResult<()> {
ic_cdk::call(self.0, "migrate_node_operator_directly", (arg0,)).await
}
pub async fn prepare_canister_migration(&self, arg0: PrepareCanisterMigrationPayload) -> CallResult<()> {
ic_cdk::call(self.0, "prepare_canister_migration", (arg0,)).await
}
Expand Down
2 changes: 1 addition & 1 deletion rs/proposals/src/canisters/sns_wasm/api.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Rust code created from candid by: `scripts/did2rs.sh --canister sns_wasm --out api.rs --header did2rs.header --traits Serialize`
//! Candid for canister `sns_wasm` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-19_04-43-base/rs/nns/sns-wasm/canister/sns-wasm.did>
//! Candid for canister `sns_wasm` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2026-03-26_04-51-base/rs/nns/sns-wasm/canister/sns-wasm.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
Expand Down
Loading