Skip to content

bot: Update proposals candid bindings #7113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 @@ -118,7 +118,7 @@
"POCKETIC_VERSION": "3.0.1",
"CARGO_SORT_VERSION": "1.0.9",
"SNSDEMO_RELEASE": "release-2025-06-25",
"IC_COMMIT_FOR_PROPOSALS": "release-2025-06-26_03-25-base",
"IC_COMMIT_FOR_PROPOSALS": "release-2025-07-11_03-31-base",
"IC_COMMIT_FOR_SNS_AGGREGATOR": "fccfa2c7c7cba9e5485ad0b48823990e24a67f40"
},
"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-2025-06-26_03-25-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-2025-07-11_03-31-base/rs/nns/governance/canister/governance.did>
type AccountIdentifier = record {
hash : blob;
};
Expand All @@ -20,6 +20,7 @@ type Action = variant {
ApproveGenesisKyc : Principals;
AddOrRemoveNodeProvider : AddOrRemoveNodeProvider;
Motion : Motion;
FulfillSubnetRentalRequest : FulfillSubnetRentalRequest;
};

type AddHotKey = record {
Expand Down Expand Up @@ -376,6 +377,7 @@ type GovernanceCachedMetrics = record {
not_dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
timestamp_seconds : nat64;
seed_neuron_count : nat64;
spawning_neurons_count : nat64;

non_self_authenticating_controller_neuron_subset_metrics : opt NeuronSubsetMetrics;
public_neuron_subset_metrics : opt NeuronSubsetMetrics;
Expand Down Expand Up @@ -995,6 +997,28 @@ type ProposalActionRequest = variant {
ApproveGenesisKyc : Principals;
AddOrRemoveNodeProvider : AddOrRemoveNodeProvider;
Motion : Motion;
FulfillSubnetRentalRequest : FulfillSubnetRentalRequest;
};

// Creates a rented subnet from a rental request (in the Subnet Rental
// canister).
type FulfillSubnetRentalRequest = record {
// Identifies which rental request to fulfill.
//
// (Identifying the rental request by user works, because a user can have at
// most one rental request in the Subnet Rental canister).
user : opt principal;

// Which nodes will be members of the subnet.
node_ids : opt vec principal;

// What software the nodes will run.
//
// This must be approved by a prior proposal to bless an IC OS version.
//
// This is a full git commit ID in the ic repo. (Therefore, it must be a 40
// character hexidecimal string.)
replica_version_id : opt text;
};

type ProposalData = record {
Expand Down
39 changes: 28 additions & 11 deletions 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-2025-06-26_03-25-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-2025-07-11_03-31-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 @@ -73,31 +73,48 @@ type CompleteCanisterMigrationPayload = record {
type CreateSubnetPayload = record {
unit_delay_millis : nat64;
features : SubnetFeatures;
gossip_registry_poll_period_ms : nat32;
max_ingress_bytes_per_message : nat64;
dkg_dealings_per_block : nat64;
max_block_payload_size : nat64;
start_as_nns : bool;
is_halted : bool;
gossip_pfn_evaluation_period_ms : nat32;
max_ingress_messages_per_block : nat64;
max_number_of_canisters : nat64;
chain_key_config : opt InitialChainKeyConfig;
gossip_max_artifact_streams_per_peer : nat32;
replica_version_id : text;
gossip_max_duplicity : nat32;
gossip_max_chunk_wait_ms : nat32;
dkg_interval_length : nat64;
subnet_id_override : opt principal;
ssh_backup_access : vec text;
ingress_bytes_per_block_soft_cap : nat64;
initial_notary_delay_millis : nat64;
gossip_max_chunk_size : nat32;
subnet_type : SubnetType;
ssh_readonly_access : vec text;
gossip_retransmission_request_ms : nat32;
gossip_receive_check_cache_size : nat32;
node_ids : vec principal;

canister_cycles_cost_schedule: opt CanisterCyclesCostSchedule;

// 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;
gossip_max_chunk_size : nat32;
gossip_max_chunk_wait_ms : nat32;
gossip_max_duplicity : nat32;
gossip_pfn_evaluation_period_ms : nat32;
gossip_receive_check_cache_size : nat32;
gossip_registry_poll_period_ms : nat32;
gossip_retransmission_request_ms : nat32;
};

type CreateSubnetResponse = variant {
Ok : record {
new_subnet_id : opt principal;
};

Err: text;
};

type CanisterCyclesCostSchedule = variant {
Normal;
Free;
};

type DataCenterRecord = record {
Expand Down Expand Up @@ -472,7 +489,7 @@ service : {
change_subnet_membership : (ChangeSubnetMembershipPayload) -> ();
clear_provisional_whitelist : () -> ();
complete_canister_migration : (CompleteCanisterMigrationPayload) -> ();
create_subnet : (CreateSubnetPayload) -> ();
create_subnet : (CreateSubnetPayload) -> (CreateSubnetResponse);
deploy_guestos_to_all_subnet_nodes : (
DeployGuestosToAllSubnetNodesPayload
) -> ();
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-2025-06-26_03-25-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-2025-07-11_03-31-base/rs/nns/sns-wasm/canister/sns-wasm.did>
type AddWasmRequest = record {
hash : blob;
wasm : opt SnsWasm;
Expand Down
11 changes: 10 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-2025-06-26_03-25-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-2025-07-11_03-31-base/rs/nns/governance/canister/governance.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
Expand Down Expand Up @@ -36,6 +36,12 @@ pub struct KnownNeuron {
pub known_neuron_data: Option<KnownNeuronData>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct FulfillSubnetRentalRequest {
pub user: Option<Principal>,
pub replica_version_id: Option<String>,
pub node_ids: Option<Vec<Principal>>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct Spawn {
pub percentage_to_spawn: Option<u32>,
pub new_controller: Option<Principal>,
Expand Down Expand Up @@ -475,6 +481,7 @@ pub struct Motion {
#[derive(Serialize, CandidType, Deserialize)]
pub enum Action {
RegisterKnownNeuron(KnownNeuron),
FulfillSubnetRentalRequest(FulfillSubnetRentalRequest),
ManageNeuron(ManageNeuron),
UpdateCanisterSettings(UpdateCanisterSettings),
InstallCode(InstallCode),
Expand Down Expand Up @@ -560,6 +567,7 @@ pub struct GovernanceCachedMetrics {
pub total_voting_power_non_self_authenticating_controller: Option<u64>,
pub total_staked_maturity_e8s_equivalent: u64,
pub not_dissolving_neurons_e8s_buckets_ect: Vec<(u64, f64)>,
pub spawning_neurons_count: u64,
pub declining_voting_power_neuron_subset_metrics: Option<NeuronSubsetMetrics>,
pub total_staked_e8s_ect: u64,
pub not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: u64,
Expand Down Expand Up @@ -980,6 +988,7 @@ pub struct InstallCodeRequest {
#[derive(Serialize, CandidType, Deserialize)]
pub enum ProposalActionRequest {
RegisterKnownNeuron(KnownNeuron),
FulfillSubnetRentalRequest(FulfillSubnetRentalRequest),
ManageNeuron(Box<ManageNeuronRequest>),
UpdateCanisterSettings(UpdateCanisterSettings),
InstallCode(InstallCodeRequest),
Expand Down
15 changes: 13 additions & 2 deletions 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-2025-06-26_03-25-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-2025-07-11_03-31-base/rs/registry/canister/canister/registry.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
Expand Down Expand Up @@ -124,6 +124,11 @@ pub struct SubnetFeatures {
pub sev_enabled: Option<bool>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub enum CanisterCyclesCostSchedule {
Free,
Normal,
}
#[derive(Serialize, CandidType, Deserialize)]
pub enum SchnorrAlgorithm {
#[serde(rename = "ed25519")]
Ed25519,
Expand Down Expand Up @@ -200,6 +205,7 @@ pub struct CreateSubnetPayload {
pub gossip_pfn_evaluation_period_ms: u32,
pub max_ingress_messages_per_block: u64,
pub max_number_of_canisters: u64,
pub canister_cycles_cost_schedule: Option<CanisterCyclesCostSchedule>,
pub gossip_max_artifact_streams_per_peer: u32,
pub replica_version_id: String,
pub gossip_max_duplicity: u32,
Expand All @@ -218,6 +224,11 @@ pub struct CreateSubnetPayload {
pub node_ids: Vec<Principal>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub enum CreateSubnetResponse {
Ok { new_subnet_id: Option<Principal> },
Err(String),
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct DeployGuestosToAllSubnetNodesPayload {
pub subnet_id: Principal,
pub replica_version_id: String,
Expand Down Expand Up @@ -528,7 +539,7 @@ impl Service {
pub async fn complete_canister_migration(&self, arg0: CompleteCanisterMigrationPayload) -> CallResult<()> {
ic_cdk::call(self.0, "complete_canister_migration", (arg0,)).await
}
pub async fn create_subnet(&self, arg0: CreateSubnetPayload) -> CallResult<()> {
pub async fn create_subnet(&self, arg0: CreateSubnetPayload) -> CallResult<(CreateSubnetResponse,)> {
ic_cdk::call(self.0, "create_subnet", (arg0,)).await
}
pub async fn deploy_guestos_to_all_subnet_nodes(
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-2025-06-26_03-25-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-2025-07-11_03-31-base/rs/nns/sns-wasm/canister/sns-wasm.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
Expand Down