Skip to content

Commit

Permalink
Update aggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
gix-bot authored Jan 14, 2025
1 parent a69cc2b commit dc774e4
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Candid for canister `sns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-03_03-07-base/rs/sns/governance/canister/governance.did>
//! Candid for canister `sns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-09_03-19-base/rs/sns/governance/canister/governance.did>
type Account = record {
owner : opt principal;
subaccount : opt Subaccount;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Candid for canister `sns_ledger` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-03_03-07-base/rs/ledger_suite/icrc1/ledger/ledger.did>
//! Candid for canister `sns_ledger` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-09_03-19-base/rs/ledger_suite/icrc1/ledger/ledger.did>
type BlockIndex = nat;
type Subaccount = blob;
// Number of nanoseconds since the UNIX epoch in UTC timezone.
Expand Down Expand Up @@ -108,8 +108,6 @@ type InitArgs = record {
metadata : vec record { text; MetadataValue };
initial_balances : vec record { Account; nat };
feature_flags : opt FeatureFlags;
maximum_number_of_accounts : opt nat64;
accounts_overflow_trim_quantity : opt nat64;
archive_options : record {
num_blocks_to_archive : nat64;
max_transactions_per_response : opt nat64;
Expand Down Expand Up @@ -145,7 +143,6 @@ type UpgradeArgs = record {
change_fee_collector : opt ChangeFeeCollector;
max_memo_length : opt nat16;
feature_flags : opt FeatureFlags;
accounts_overflow_trim_quantity: opt nat64;
change_archive_options : opt ChangeArchiveOptions;
};

Expand Down
9 changes: 8 additions & 1 deletion declarations/used_by_sns_aggregator/sns_root/sns_root.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Candid for canister `sns_root` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-03_03-07-base/rs/sns/root/canister/root.did>
//! Candid for canister `sns_root` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-09_03-19-base/rs/sns/root/canister/root.did>
type CanisterCallError = record {
code : opt int32;
description : text;
Expand Down Expand Up @@ -44,9 +44,16 @@ type CanisterSummary = record {
canister_id : opt principal;
};

type ChunkedCanisterWasm = record {
wasm_module_hash : blob;
store_canister_id : principal;
chunk_hashes_list : vec blob;
};

type ChangeCanisterRequest = record {
arg : blob;
wasm_module : blob;
chunked_canister_wasm : opt ChunkedCanisterWasm;
stop_before_installing : bool;
mode : CanisterInstallMode;
canister_id : principal;
Expand Down
2 changes: 1 addition & 1 deletion declarations/used_by_sns_aggregator/sns_swap/sns_swap.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Candid for canister `sns_swap` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-03_03-07-base/rs/sns/swap/canister/swap.did>
//! Candid for canister `sns_swap` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-09_03-19-base/rs/sns/swap/canister/swap.did>
type BuyerState = record {
icp : opt TransferableAmount;
has_created_neuron_recipes : opt bool;
Expand Down
2 changes: 1 addition & 1 deletion declarations/used_by_sns_aggregator/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-01-03_03-07-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-01-09_03-19-base/rs/nns/sns-wasm/canister/sns-wasm.did>
type AddWasmRequest = record {
hash : blob;
wasm : opt SnsWasm;
Expand Down
2 changes: 1 addition & 1 deletion dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@
"CARGO_SORT_VERSION": "1.0.9",
"SNSDEMO_RELEASE": "release-2025-01-08",
"IC_COMMIT_FOR_PROPOSALS": "release-2025-01-03_03-07-base",
"IC_COMMIT_FOR_SNS_AGGREGATOR": "release-2025-01-03_03-07-base"
"IC_COMMIT_FOR_SNS_AGGREGATOR": "release-2025-01-09_03-19-base"
},
"packtool": ""
}
Expand Down
4 changes: 3 additions & 1 deletion rs/sns_aggregator/src/types/ic_sns_governance.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_governance --out ic_sns_governance.rs --header did2rs.header --traits Serialize\,\ Clone\,\ Debug`
//! Candid for canister `sns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2024-12-06_03-16-base/rs/sns/governance/canister/governance.did>
//! Candid for canister `sns_governance` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-09_03-19-base/rs/sns/governance/canister/governance.did>
#![allow(clippy::all)]
#![allow(unused_imports)]
#![allow(missing_docs)]
Expand Down Expand Up @@ -289,6 +289,7 @@ pub struct Tally {
#[derive(Serialize, Clone, Debug, CandidType, Deserialize)]
pub struct ManageDappCanisterSettings {
pub freezing_threshold: Option<u64>,
pub wasm_memory_threshold: Option<u64>,
pub canister_ids: Vec<Principal>,
pub reserved_cycles_limit: Option<u64>,
pub log_visibility: Option<i32>,
Expand Down Expand Up @@ -693,6 +694,7 @@ pub enum CanisterStatusType {
#[derive(Serialize, Clone, Debug, CandidType, Deserialize)]
pub struct DefiniteCanisterSettingsArgs {
pub freezing_threshold: candid::Nat,
pub wasm_memory_threshold: Option<candid::Nat>,
pub controllers: Vec<Principal>,
pub wasm_memory_limit: Option<candid::Nat>,
pub memory_allocation: candid::Nat,
Expand Down
5 changes: 1 addition & 4 deletions rs/sns_aggregator/src/types/ic_sns_ledger.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_ledger --out ic_sns_ledger.rs --header did2rs.header --traits Serialize\,\ Clone\,\ Debug`
//! Candid for canister `sns_ledger` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2024-12-06_03-16-base/rs/ledger_suite/icrc1/ledger/ledger.did>
//! Candid for canister `sns_ledger` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-09_03-19-base/rs/ledger_suite/icrc1/ledger/ledger.did>
#![allow(clippy::all)]
#![allow(unused_imports)]
#![allow(missing_docs)]
Expand Down Expand Up @@ -55,7 +55,6 @@ pub struct UpgradeArgs {
pub token_symbol: Option<String>,
pub transfer_fee: Option<candid::Nat>,
pub metadata: Option<Vec<(String, MetadataValue)>>,
pub accounts_overflow_trim_quantity: Option<u64>,
pub change_fee_collector: Option<ChangeFeeCollector>,
pub max_memo_length: Option<u16>,
pub token_name: Option<String>,
Expand All @@ -80,8 +79,6 @@ pub struct InitArgs {
pub metadata: Vec<(String, MetadataValue)>,
pub minting_account: Account,
pub initial_balances: Vec<(Account, candid::Nat)>,
pub maximum_number_of_accounts: Option<u64>,
pub accounts_overflow_trim_quantity: Option<u64>,
pub fee_collector_account: Option<Account>,
pub archive_options: InitArgsArchiveOptions,
pub max_memo_length: Option<u16>,
Expand Down
12 changes: 11 additions & 1 deletion rs/sns_aggregator/src/types/ic_sns_root.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_root --out ic_sns_root.rs --header did2rs.header --traits Serialize\,\ Clone\,\ Debug`
//! Candid for canister `sns_root` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2024-12-06_03-16-base/rs/sns/root/canister/root.did>
//! Candid for canister `sns_root` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-09_03-19-base/rs/sns/root/canister/root.did>
#![allow(clippy::all)]
#![allow(unused_imports)]
#![allow(missing_docs)]
Expand Down Expand Up @@ -56,6 +56,7 @@ pub enum LogVisibility {
#[derive(Serialize, Clone, Debug, CandidType, Deserialize)]
pub struct DefiniteCanisterSettings {
pub freezing_threshold: Option<candid::Nat>,
pub wasm_memory_threshold: Option<candid::Nat>,
pub controllers: Vec<Principal>,
pub reserved_cycles_limit: Option<candid::Nat>,
pub log_visibility: Option<LogVisibility>,
Expand Down Expand Up @@ -83,12 +84,19 @@ pub enum CanisterInstallMode {
Install,
}
#[derive(Serialize, Clone, Debug, CandidType, Deserialize)]
pub struct ChunkedCanisterWasm {
pub wasm_module_hash: serde_bytes::ByteBuf,
pub chunk_hashes_list: Vec<serde_bytes::ByteBuf>,
pub store_canister_id: Principal,
}
#[derive(Serialize, Clone, Debug, CandidType, Deserialize)]
pub struct ChangeCanisterRequest {
pub arg: serde_bytes::ByteBuf,
pub wasm_module: serde_bytes::ByteBuf,
pub stop_before_installing: bool,
pub mode: CanisterInstallMode,
pub canister_id: Principal,
pub chunked_canister_wasm: Option<ChunkedCanisterWasm>,
pub memory_allocation: Option<candid::Nat>,
pub compute_allocation: Option<candid::Nat>,
}
Expand All @@ -99,6 +107,7 @@ pub struct GetSnsCanistersSummaryRequest {
#[derive(Serialize, Clone, Debug, CandidType, Deserialize)]
pub struct DefiniteCanisterSettingsArgs {
pub freezing_threshold: candid::Nat,
pub wasm_memory_threshold: Option<candid::Nat>,
pub controllers: Vec<Principal>,
pub wasm_memory_limit: Option<candid::Nat>,
pub memory_allocation: candid::Nat,
Expand Down Expand Up @@ -149,6 +158,7 @@ pub struct ListSnsCanistersResponse {
#[derive(Serialize, Clone, Debug, CandidType, Deserialize)]
pub struct ManageDappCanisterSettingsRequest {
pub freezing_threshold: Option<u64>,
pub wasm_memory_threshold: Option<u64>,
pub canister_ids: Vec<Principal>,
pub reserved_cycles_limit: Option<u64>,
pub log_visibility: Option<i32>,
Expand Down
3 changes: 2 additions & 1 deletion rs/sns_aggregator/src/types/ic_sns_swap.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_swap --out ic_sns_swap.rs --header did2rs.header --traits Serialize\,\ Clone\,\ Debug`
//! Candid for canister `sns_swap` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2024-12-06_03-16-base/rs/sns/swap/canister/swap.did>
//! Candid for canister `sns_swap` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2025-01-09_03-19-base/rs/sns/swap/canister/swap.did>
#![allow(clippy::all)]
#![allow(unused_imports)]
#![allow(missing_docs)]
Expand Down Expand Up @@ -233,6 +233,7 @@ pub enum CanisterStatusType {
#[derive(Serialize, Clone, Debug, CandidType, Deserialize)]
pub struct DefiniteCanisterSettingsArgs {
pub freezing_threshold: candid::Nat,
pub wasm_memory_threshold: Option<candid::Nat>,
pub controllers: Vec<Principal>,
pub wasm_memory_limit: Option<candid::Nat>,
pub memory_allocation: candid::Nat,
Expand Down
2 changes: 1 addition & 1 deletion rs/sns_aggregator/src/types/ic_sns_wasm.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 ic_sns_wasm.rs --header did2rs.header --traits Serialize\,\ Clone\,\ Debug`
//! Candid for canister `sns_wasm` obtained by `scripts/update_ic_commit` from: <https://raw.githubusercontent.com/dfinity/ic/release-2024-12-06_03-16-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-01-09_03-19-base/rs/nns/sns-wasm/canister/sns-wasm.did>
#![allow(clippy::all)]
#![allow(unused_imports)]
#![allow(missing_docs)]
Expand Down

0 comments on commit dc774e4

Please sign in to comment.