Skip to content
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 @@ -119,7 +119,7 @@
"POCKETIC_VERSION": "3.0.1",
"CARGO_SORT_VERSION": "1.0.9",
"SNSDEMO_RELEASE": "release-2025-11-13",
"IC_COMMIT_FOR_PROPOSALS": "release-2025-10-30_03-22-base",
"IC_COMMIT_FOR_PROPOSALS": "release-2025-11-20_03-21-base",
"IC_COMMIT_FOR_SNS_AGGREGATOR": "release-2025-11-06_03-24-base"
},
"packtool": ""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//! Candid for canister `nns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-10-30_03-22-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-11-20_03-21-base/rs/nns/governance/canister/governance.did>
type AccountIdentifier = record {
hash : blob;
};

type Action = variant {
RegisterKnownNeuron : KnownNeuron;
DeregisterKnownNeuron : DeregisterKnownNeuron;
ManageNeuron : ManageNeuron;
ManageNeuron : ManageNeuronProposal;
UpdateCanisterSettings : UpdateCanisterSettings;
InstallCode : InstallCode;
StopOrStartCanister : StopOrStartCanister;
Expand Down Expand Up @@ -154,7 +154,7 @@ type SetFollowingResponse = record {
};

// KEEP THIS IN SYNC WITH ManageNeuronCommandRequest!
type Command = variant {
type ManageNeuronProposalCommand = variant {
Spawn : Spawn;
Split : Split;
Follow : Follow;
Expand Down Expand Up @@ -518,7 +518,7 @@ type ListNodeProvidersResponse = record {
node_providers : vec NodeProvider;
};

type ListProposalInfo = record {
type ListProposalInfoRequest = record {
include_reward_status : vec int32;
omit_large_fields : opt bool;
before_proposal : opt ProposalId;
Expand All @@ -544,11 +544,11 @@ type MakeProposalResponse = record {
proposal_id : opt ProposalId;
};

// Not to be confused with ManageNeuronRequest. (Yes, this is very structurally
// similar to that, but not actually exactly equivalent.)
type ManageNeuron = record {
// Not to be confused with ManageNeuronRequest. This is only used to represent a manage neuron proposal.
// (Yes, this is very structurally similar to that, but not actually exactly equivalent)
type ManageNeuronProposal = record {
id : opt NeuronId;
command : opt Command;
command : opt ManageNeuronProposalCommand;
neuron_id_or_subaccount : opt NeuronIdOrSubaccount;
};

Expand Down Expand Up @@ -612,11 +612,20 @@ type MergeResponse = record {
source_neuron_info : opt NeuronInfo;
};

type DateUtc = record {
year : nat32;
month : nat32;
day : nat32;
};

type MonthlyNodeProviderRewards = record {
minimum_xdr_permyriad_per_icp : opt nat64;
registry_version : opt nat64;
algorithm_version : opt nat32;
node_providers : vec NodeProvider;
timestamp : nat64;
start_date : opt DateUtc;
end_date : opt DateUtc;
rewards : vec RewardNodeProvider;
xdr_conversion_rate : opt XdrConversionRate;
maximum_node_provider_rewards_e8s : opt nat64;
Expand Down Expand Up @@ -1454,7 +1463,7 @@ service : (Governance) -> {
ListNodeProviderRewardsResponse,
) query;
list_node_providers : () -> (ListNodeProvidersResponse) query;
list_proposals : (ListProposalInfo) -> (ListProposalInfoResponse) query;
list_proposals : (ListProposalInfoRequest) -> (ListProposalInfoResponse) query;
list_neuron_votes : (ListNeuronVotesRequest) -> (ListNeuronVotesResponse) query;
manage_neuron : (ManageNeuronRequest) -> (ManageNeuronResponse);
settle_community_fund_participation : (SettleCommunityFundParticipation) -> (
Expand Down
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-10-30_03-22-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-11-20_03-21-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
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-10-30_03-22-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-11-20_03-21-base/rs/nns/sns-wasm/canister/sns-wasm.did>
type AddWasmRequest = record {
hash : blob;
wasm : opt SnsWasm;
Expand Down
23 changes: 16 additions & 7 deletions 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-10-30_03-22-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-11-20_03-21-base/rs/nns/governance/canister/governance.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
Expand All @@ -26,6 +26,12 @@ pub struct Followees {
pub followees: Vec<NeuronId>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct DateUtc {
pub day: u32,
pub month: u32,
pub year: u32,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct AccountIdentifier {
pub hash: serde_bytes::ByteBuf,
}
Expand Down Expand Up @@ -60,9 +66,12 @@ pub struct XdrConversionRate {
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct MonthlyNodeProviderRewards {
pub algorithm_version: Option<u32>,
pub minimum_xdr_permyriad_per_icp: Option<u64>,
pub end_date: Option<DateUtc>,
pub registry_version: Option<u64>,
pub node_providers: Vec<NodeProvider>,
pub start_date: Option<DateUtc>,
pub timestamp: u64,
pub rewards: Vec<RewardNodeProvider>,
pub xdr_conversion_rate: Option<XdrConversionRate>,
Expand Down Expand Up @@ -462,7 +471,7 @@ pub struct Disburse {
pub amount: Option<Amount>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub enum Command {
pub enum ManageNeuronProposalCommand {
Spawn(Spawn),
Split(Split),
Follow(Follow),
Expand All @@ -485,9 +494,9 @@ pub enum NeuronIdOrSubaccount {
NeuronId(NeuronId),
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct ManageNeuron {
pub struct ManageNeuronProposal {
pub id: Option<NeuronId>,
pub command: Option<Command>,
pub command: Option<ManageNeuronProposalCommand>,
pub neuron_id_or_subaccount: Option<NeuronIdOrSubaccount>,
}
#[derive(Serialize, CandidType, Deserialize)]
Expand Down Expand Up @@ -707,7 +716,7 @@ pub struct Motion {
pub enum Action {
RegisterKnownNeuron(KnownNeuron),
FulfillSubnetRentalRequest(FulfillSubnetRentalRequest),
ManageNeuron(ManageNeuron),
ManageNeuron(ManageNeuronProposal),
UpdateCanisterSettings(UpdateCanisterSettings),
InstallCode(InstallCode),
DeregisterKnownNeuron(DeregisterKnownNeuron),
Expand Down Expand Up @@ -1026,7 +1035,7 @@ pub struct ListNodeProvidersResponse {
pub node_providers: Vec<NodeProvider>,
}
#[derive(Serialize, CandidType, Deserialize)]
pub struct ListProposalInfo {
pub struct ListProposalInfoRequest {
pub include_reward_status: Vec<i32>,
pub omit_large_fields: Option<bool>,
pub before_proposal: Option<ProposalId>,
Expand Down Expand Up @@ -1304,7 +1313,7 @@ impl Service {
pub async fn list_node_providers(&self) -> CallResult<(ListNodeProvidersResponse,)> {
ic_cdk::call(self.0, "list_node_providers", ()).await
}
pub async fn list_proposals(&self, arg0: ListProposalInfo) -> CallResult<(ListProposalInfoResponse,)> {
pub async fn list_proposals(&self, arg0: ListProposalInfoRequest) -> CallResult<(ListProposalInfoResponse,)> {
ic_cdk::call(self.0, "list_proposals", (arg0,)).await
}
pub async fn manage_neuron(&self, arg0: ManageNeuronRequest) -> CallResult<(ManageNeuronResponse,)> {
Expand Down
2 changes: 1 addition & 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-2025-10-30_03-22-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-11-20_03-21-base/rs/registry/canister/canister/registry.did>
#![allow(clippy::all)]
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]
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-10-30_03-22-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-11-20_03-21-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