@dfinity/sns 3.2.7 → 3.2.8-next-2025-01-29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/candid/sns_governance.certified.idl.js +19 -0
  2. package/dist/candid/sns_governance.d.ts +10 -0
  3. package/dist/candid/sns_governance.did +12 -1
  4. package/dist/candid/sns_governance.idl.js +19 -0
  5. package/dist/candid/sns_governance_test.certified.idl.js +19 -0
  6. package/dist/candid/sns_governance_test.d.ts +10 -0
  7. package/dist/candid/sns_governance_test.did +12 -1
  8. package/dist/candid/sns_governance_test.idl.js +19 -0
  9. package/dist/candid/sns_root.certified.idl.js +9 -0
  10. package/dist/candid/sns_root.d.ts +9 -0
  11. package/dist/candid/sns_root.did +11 -1
  12. package/dist/candid/sns_root.idl.js +9 -0
  13. package/dist/candid/sns_swap.certified.idl.js +1 -0
  14. package/dist/candid/sns_swap.d.ts +1 -0
  15. package/dist/candid/sns_swap.did +2 -1
  16. package/dist/candid/sns_swap.idl.js +1 -0
  17. package/dist/cjs/index.cjs.js +1 -1
  18. package/dist/cjs/index.cjs.js.map +3 -3
  19. package/dist/esm/chunk-BKBI2NNR.js +2 -0
  20. package/dist/esm/chunk-BKBI2NNR.js.map +7 -0
  21. package/dist/esm/chunk-EHRWZZ5X.js +2 -0
  22. package/dist/esm/chunk-EHRWZZ5X.js.map +7 -0
  23. package/dist/esm/{chunk-MC5S77AI.js → chunk-K4OVK5J7.js} +2 -2
  24. package/dist/esm/chunk-NXIGASUA.js +2 -0
  25. package/dist/esm/chunk-NXIGASUA.js.map +7 -0
  26. package/dist/esm/governance.canister.js +1 -1
  27. package/dist/esm/index.js +1 -1
  28. package/dist/esm/index.js.map +3 -3
  29. package/dist/esm/root.canister.js +1 -1
  30. package/dist/esm/sns.js +1 -1
  31. package/dist/esm/swap.canister.js +1 -1
  32. package/dist/types/types/actions.d.ts +7 -0
  33. package/package.json +7 -7
  34. package/dist/esm/chunk-BNILACKH.js +0 -2
  35. package/dist/esm/chunk-BNILACKH.js.map +0 -7
  36. package/dist/esm/chunk-DHX6PNLG.js +0 -2
  37. package/dist/esm/chunk-DHX6PNLG.js.map +0 -7
  38. package/dist/esm/chunk-XKKPAZAY.js +0 -2
  39. package/dist/esm/chunk-XKKPAZAY.js.map +0 -7
  40. /package/dist/esm/{chunk-MC5S77AI.js.map → chunk-K4OVK5J7.js.map} +0 -0
@@ -67,6 +67,7 @@ export const idlFactory = ({ IDL }) => {
67
67
  const TargetVersionSet = IDL.Record({
68
68
  'old_target_version' : IDL.Opt(Version),
69
69
  'new_target_version' : IDL.Opt(Version),
70
+ 'is_advanced_automatically' : IDL.Opt(IDL.Bool),
70
71
  });
71
72
  const UpgradeStepsReset = IDL.Record({
72
73
  'human_readable' : IDL.Opt(IDL.Text),
@@ -137,6 +138,7 @@ export const idlFactory = ({ IDL }) => {
137
138
  'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
138
139
  'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
139
140
  'max_followees_per_function' : IDL.Opt(IDL.Nat64),
141
+ 'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
140
142
  'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
141
143
  'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
142
144
  'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
@@ -224,6 +226,7 @@ export const idlFactory = ({ IDL }) => {
224
226
  });
225
227
  const ManageDappCanisterSettings = IDL.Record({
226
228
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
229
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
227
230
  'canister_ids' : IDL.Vec(IDL.Principal),
228
231
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
229
232
  'log_visibility' : IDL.Opt(IDL.Int32),
@@ -241,10 +244,16 @@ export const idlFactory = ({ IDL }) => {
241
244
  'memo' : IDL.Opt(IDL.Nat64),
242
245
  'amount_e8s' : IDL.Nat64,
243
246
  });
247
+ const ChunkedCanisterWasm = IDL.Record({
248
+ 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
249
+ 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
250
+ 'store_canister_id' : IDL.Opt(IDL.Principal),
251
+ });
244
252
  const UpgradeSnsControlledCanister = IDL.Record({
245
253
  'new_canister_wasm' : IDL.Vec(IDL.Nat8),
246
254
  'mode' : IDL.Opt(IDL.Int32),
247
255
  'canister_id' : IDL.Opt(IDL.Principal),
256
+ 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
248
257
  'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
249
258
  });
250
259
  const DeregisterDappCanisters = IDL.Record({
@@ -526,6 +535,7 @@ export const idlFactory = ({ IDL }) => {
526
535
  });
527
536
  const DefiniteCanisterSettingsArgs = IDL.Record({
528
537
  'freezing_threshold' : IDL.Nat,
538
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
529
539
  'controllers' : IDL.Vec(IDL.Principal),
530
540
  'wasm_memory_limit' : IDL.Opt(IDL.Nat),
531
541
  'memory_allocation' : IDL.Nat,
@@ -770,6 +780,7 @@ export const init = ({ IDL }) => {
770
780
  const TargetVersionSet = IDL.Record({
771
781
  'old_target_version' : IDL.Opt(Version),
772
782
  'new_target_version' : IDL.Opt(Version),
783
+ 'is_advanced_automatically' : IDL.Opt(IDL.Bool),
773
784
  });
774
785
  const UpgradeStepsReset = IDL.Record({
775
786
  'human_readable' : IDL.Opt(IDL.Text),
@@ -840,6 +851,7 @@ export const init = ({ IDL }) => {
840
851
  'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
841
852
  'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
842
853
  'max_followees_per_function' : IDL.Opt(IDL.Nat64),
854
+ 'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
843
855
  'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
844
856
  'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
845
857
  'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
@@ -927,6 +939,7 @@ export const init = ({ IDL }) => {
927
939
  });
928
940
  const ManageDappCanisterSettings = IDL.Record({
929
941
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
942
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
930
943
  'canister_ids' : IDL.Vec(IDL.Principal),
931
944
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
932
945
  'log_visibility' : IDL.Opt(IDL.Int32),
@@ -944,10 +957,16 @@ export const init = ({ IDL }) => {
944
957
  'memo' : IDL.Opt(IDL.Nat64),
945
958
  'amount_e8s' : IDL.Nat64,
946
959
  });
960
+ const ChunkedCanisterWasm = IDL.Record({
961
+ 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
962
+ 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
963
+ 'store_canister_id' : IDL.Opt(IDL.Principal),
964
+ });
947
965
  const UpgradeSnsControlledCanister = IDL.Record({
948
966
  'new_canister_wasm' : IDL.Vec(IDL.Nat8),
949
967
  'mode' : IDL.Opt(IDL.Int32),
950
968
  'canister_id' : IDL.Opt(IDL.Principal),
969
+ 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
951
970
  'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
952
971
  });
953
972
  const DeregisterDappCanisters = IDL.Record({
@@ -72,6 +72,11 @@ export type CanisterStatusType =
72
72
  export interface ChangeAutoStakeMaturity {
73
73
  requested_setting_for_auto_stake_maturity: boolean;
74
74
  }
75
+ export interface ChunkedCanisterWasm {
76
+ wasm_module_hash: Uint8Array | number[];
77
+ chunk_hashes_list: Array<Uint8Array | number[]>;
78
+ store_canister_id: [] | [Principal];
79
+ }
75
80
  export interface ClaimOrRefresh {
76
81
  by: [] | [By];
77
82
  }
@@ -142,6 +147,7 @@ export interface DefaultFollowees {
142
147
  }
143
148
  export interface DefiniteCanisterSettingsArgs {
144
149
  freezing_threshold: bigint;
150
+ wasm_memory_threshold: [] | [bigint];
145
151
  controllers: Array<Principal>;
146
152
  wasm_memory_limit: [] | [bigint];
147
153
  memory_allocation: bigint;
@@ -327,6 +333,7 @@ export interface ListProposalsResponse {
327
333
  }
328
334
  export interface ManageDappCanisterSettings {
329
335
  freezing_threshold: [] | [bigint];
336
+ wasm_memory_threshold: [] | [bigint];
330
337
  canister_ids: Array<Principal>;
331
338
  reserved_cycles_limit: [] | [bigint];
332
339
  log_visibility: [] | [number];
@@ -391,6 +398,7 @@ export interface NervousSystemParameters {
391
398
  max_dissolve_delay_seconds: [] | [bigint];
392
399
  max_dissolve_delay_bonus_percentage: [] | [bigint];
393
400
  max_followees_per_function: [] | [bigint];
401
+ automatically_advance_target_version: [] | [boolean];
394
402
  neuron_claimer_permissions: [] | [NeuronPermissionList];
395
403
  neuron_minimum_stake_e8s: [] | [bigint];
396
404
  max_neuron_age_for_age_bonus: [] | [bigint];
@@ -592,6 +600,7 @@ export interface TargetVersionReset {
592
600
  export interface TargetVersionSet {
593
601
  old_target_version: [] | [Version];
594
602
  new_target_version: [] | [Version];
603
+ is_advanced_automatically: [] | [boolean];
595
604
  }
596
605
  export interface Timers {
597
606
  last_spawned_timestamp_seconds: [] | [bigint];
@@ -645,6 +654,7 @@ export interface UpgradeSnsControlledCanister {
645
654
  new_canister_wasm: Uint8Array | number[];
646
655
  mode: [] | [number];
647
656
  canister_id: [] | [Principal];
657
+ chunked_canister_wasm: [] | [ChunkedCanisterWasm];
648
658
  canister_upgrade_arg: [] | [Uint8Array | number[]];
649
659
  }
650
660
  export interface UpgradeStarted {
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit d9fe207 (2024-12-06 tags: release-2024-12-06_03-16-base) 'rs/sns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit 4ba5834 (2025-01-22 tags: release-2025-01-23_03-04-hashes-in-blocks) 'rs/sns/governance/canister/governance.did' by import-candid
2
2
  type Account = record {
3
3
  owner : opt principal;
4
4
  subaccount : opt Subaccount;
@@ -158,6 +158,7 @@ type DefiniteCanisterSettingsArgs = record {
158
158
  wasm_memory_limit : opt nat;
159
159
  memory_allocation : nat;
160
160
  compute_allocation : nat;
161
+ wasm_memory_threshold : opt nat;
161
162
  };
162
163
 
163
164
  type DeregisterDappCanisters = record {
@@ -376,6 +377,7 @@ type ManageDappCanisterSettings = record {
376
377
  wasm_memory_limit : opt nat64;
377
378
  memory_allocation : opt nat64;
378
379
  compute_allocation : opt nat64;
380
+ wasm_memory_threshold : opt nat64;
379
381
  };
380
382
 
381
383
  type SnsVersion = record {
@@ -480,6 +482,7 @@ type NervousSystemParameters = record {
480
482
  voting_rewards_parameters : opt VotingRewardsParameters;
481
483
  maturity_modulation_disabled : opt bool;
482
484
  max_number_of_principals_per_neuron : opt nat64;
485
+ automatically_advance_target_version : opt bool;
483
486
  };
484
487
 
485
488
  type Neuron = record {
@@ -710,8 +713,15 @@ type PendingVersion = record {
710
713
  target_version : opt Version;
711
714
  };
712
715
 
716
+ type ChunkedCanisterWasm = record {
717
+ wasm_module_hash : blob;
718
+ store_canister_id : opt principal;
719
+ chunk_hashes_list : vec blob;
720
+ };
721
+
713
722
  type UpgradeSnsControlledCanister = record {
714
723
  new_canister_wasm : blob;
724
+ chunked_canister_wasm : opt ChunkedCanisterWasm;
715
725
  mode : opt int32;
716
726
  canister_id : opt principal;
717
727
  canister_upgrade_arg : opt blob;
@@ -776,6 +786,7 @@ type UpgradeStepsReset = record {
776
786
  type TargetVersionSet = record {
777
787
  new_target_version : opt Version;
778
788
  old_target_version : opt Version;
789
+ is_advanced_automatically : opt bool;
779
790
  };
780
791
 
781
792
  type TargetVersionReset = record {
@@ -67,6 +67,7 @@ export const idlFactory = ({ IDL }) => {
67
67
  const TargetVersionSet = IDL.Record({
68
68
  'old_target_version' : IDL.Opt(Version),
69
69
  'new_target_version' : IDL.Opt(Version),
70
+ 'is_advanced_automatically' : IDL.Opt(IDL.Bool),
70
71
  });
71
72
  const UpgradeStepsReset = IDL.Record({
72
73
  'human_readable' : IDL.Opt(IDL.Text),
@@ -137,6 +138,7 @@ export const idlFactory = ({ IDL }) => {
137
138
  'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
138
139
  'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
139
140
  'max_followees_per_function' : IDL.Opt(IDL.Nat64),
141
+ 'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
140
142
  'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
141
143
  'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
142
144
  'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
@@ -224,6 +226,7 @@ export const idlFactory = ({ IDL }) => {
224
226
  });
225
227
  const ManageDappCanisterSettings = IDL.Record({
226
228
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
229
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
227
230
  'canister_ids' : IDL.Vec(IDL.Principal),
228
231
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
229
232
  'log_visibility' : IDL.Opt(IDL.Int32),
@@ -241,10 +244,16 @@ export const idlFactory = ({ IDL }) => {
241
244
  'memo' : IDL.Opt(IDL.Nat64),
242
245
  'amount_e8s' : IDL.Nat64,
243
246
  });
247
+ const ChunkedCanisterWasm = IDL.Record({
248
+ 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
249
+ 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
250
+ 'store_canister_id' : IDL.Opt(IDL.Principal),
251
+ });
244
252
  const UpgradeSnsControlledCanister = IDL.Record({
245
253
  'new_canister_wasm' : IDL.Vec(IDL.Nat8),
246
254
  'mode' : IDL.Opt(IDL.Int32),
247
255
  'canister_id' : IDL.Opt(IDL.Principal),
256
+ 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
248
257
  'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
249
258
  });
250
259
  const DeregisterDappCanisters = IDL.Record({
@@ -526,6 +535,7 @@ export const idlFactory = ({ IDL }) => {
526
535
  });
527
536
  const DefiniteCanisterSettingsArgs = IDL.Record({
528
537
  'freezing_threshold' : IDL.Nat,
538
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
529
539
  'controllers' : IDL.Vec(IDL.Principal),
530
540
  'wasm_memory_limit' : IDL.Opt(IDL.Nat),
531
541
  'memory_allocation' : IDL.Nat,
@@ -778,6 +788,7 @@ export const init = ({ IDL }) => {
778
788
  const TargetVersionSet = IDL.Record({
779
789
  'old_target_version' : IDL.Opt(Version),
780
790
  'new_target_version' : IDL.Opt(Version),
791
+ 'is_advanced_automatically' : IDL.Opt(IDL.Bool),
781
792
  });
782
793
  const UpgradeStepsReset = IDL.Record({
783
794
  'human_readable' : IDL.Opt(IDL.Text),
@@ -848,6 +859,7 @@ export const init = ({ IDL }) => {
848
859
  'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
849
860
  'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
850
861
  'max_followees_per_function' : IDL.Opt(IDL.Nat64),
862
+ 'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
851
863
  'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
852
864
  'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
853
865
  'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
@@ -935,6 +947,7 @@ export const init = ({ IDL }) => {
935
947
  });
936
948
  const ManageDappCanisterSettings = IDL.Record({
937
949
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
950
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
938
951
  'canister_ids' : IDL.Vec(IDL.Principal),
939
952
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
940
953
  'log_visibility' : IDL.Opt(IDL.Int32),
@@ -952,10 +965,16 @@ export const init = ({ IDL }) => {
952
965
  'memo' : IDL.Opt(IDL.Nat64),
953
966
  'amount_e8s' : IDL.Nat64,
954
967
  });
968
+ const ChunkedCanisterWasm = IDL.Record({
969
+ 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
970
+ 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
971
+ 'store_canister_id' : IDL.Opt(IDL.Principal),
972
+ });
955
973
  const UpgradeSnsControlledCanister = IDL.Record({
956
974
  'new_canister_wasm' : IDL.Vec(IDL.Nat8),
957
975
  'mode' : IDL.Opt(IDL.Int32),
958
976
  'canister_id' : IDL.Opt(IDL.Principal),
977
+ 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
959
978
  'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
960
979
  });
961
980
  const DeregisterDappCanisters = IDL.Record({
@@ -67,6 +67,7 @@ export const idlFactory = ({ IDL }) => {
67
67
  const TargetVersionSet = IDL.Record({
68
68
  'old_target_version' : IDL.Opt(Version),
69
69
  'new_target_version' : IDL.Opt(Version),
70
+ 'is_advanced_automatically' : IDL.Opt(IDL.Bool),
70
71
  });
71
72
  const UpgradeStepsReset = IDL.Record({
72
73
  'human_readable' : IDL.Opt(IDL.Text),
@@ -137,6 +138,7 @@ export const idlFactory = ({ IDL }) => {
137
138
  'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
138
139
  'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
139
140
  'max_followees_per_function' : IDL.Opt(IDL.Nat64),
141
+ 'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
140
142
  'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
141
143
  'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
142
144
  'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
@@ -224,6 +226,7 @@ export const idlFactory = ({ IDL }) => {
224
226
  });
225
227
  const ManageDappCanisterSettings = IDL.Record({
226
228
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
229
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
227
230
  'canister_ids' : IDL.Vec(IDL.Principal),
228
231
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
229
232
  'log_visibility' : IDL.Opt(IDL.Int32),
@@ -241,10 +244,16 @@ export const idlFactory = ({ IDL }) => {
241
244
  'memo' : IDL.Opt(IDL.Nat64),
242
245
  'amount_e8s' : IDL.Nat64,
243
246
  });
247
+ const ChunkedCanisterWasm = IDL.Record({
248
+ 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
249
+ 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
250
+ 'store_canister_id' : IDL.Opt(IDL.Principal),
251
+ });
244
252
  const UpgradeSnsControlledCanister = IDL.Record({
245
253
  'new_canister_wasm' : IDL.Vec(IDL.Nat8),
246
254
  'mode' : IDL.Opt(IDL.Int32),
247
255
  'canister_id' : IDL.Opt(IDL.Principal),
256
+ 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
248
257
  'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
249
258
  });
250
259
  const DeregisterDappCanisters = IDL.Record({
@@ -537,6 +546,7 @@ export const idlFactory = ({ IDL }) => {
537
546
  });
538
547
  const DefiniteCanisterSettingsArgs = IDL.Record({
539
548
  'freezing_threshold' : IDL.Nat,
549
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
540
550
  'controllers' : IDL.Vec(IDL.Principal),
541
551
  'wasm_memory_limit' : IDL.Opt(IDL.Nat),
542
552
  'memory_allocation' : IDL.Nat,
@@ -798,6 +808,7 @@ export const init = ({ IDL }) => {
798
808
  const TargetVersionSet = IDL.Record({
799
809
  'old_target_version' : IDL.Opt(Version),
800
810
  'new_target_version' : IDL.Opt(Version),
811
+ 'is_advanced_automatically' : IDL.Opt(IDL.Bool),
801
812
  });
802
813
  const UpgradeStepsReset = IDL.Record({
803
814
  'human_readable' : IDL.Opt(IDL.Text),
@@ -868,6 +879,7 @@ export const init = ({ IDL }) => {
868
879
  'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
869
880
  'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
870
881
  'max_followees_per_function' : IDL.Opt(IDL.Nat64),
882
+ 'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
871
883
  'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
872
884
  'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
873
885
  'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
@@ -955,6 +967,7 @@ export const init = ({ IDL }) => {
955
967
  });
956
968
  const ManageDappCanisterSettings = IDL.Record({
957
969
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
970
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
958
971
  'canister_ids' : IDL.Vec(IDL.Principal),
959
972
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
960
973
  'log_visibility' : IDL.Opt(IDL.Int32),
@@ -972,10 +985,16 @@ export const init = ({ IDL }) => {
972
985
  'memo' : IDL.Opt(IDL.Nat64),
973
986
  'amount_e8s' : IDL.Nat64,
974
987
  });
988
+ const ChunkedCanisterWasm = IDL.Record({
989
+ 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
990
+ 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
991
+ 'store_canister_id' : IDL.Opt(IDL.Principal),
992
+ });
975
993
  const UpgradeSnsControlledCanister = IDL.Record({
976
994
  'new_canister_wasm' : IDL.Vec(IDL.Nat8),
977
995
  'mode' : IDL.Opt(IDL.Int32),
978
996
  'canister_id' : IDL.Opt(IDL.Principal),
997
+ 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
979
998
  'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
980
999
  });
981
1000
  const DeregisterDappCanisters = IDL.Record({
@@ -83,6 +83,11 @@ export type CanisterStatusType =
83
83
  export interface ChangeAutoStakeMaturity {
84
84
  requested_setting_for_auto_stake_maturity: boolean;
85
85
  }
86
+ export interface ChunkedCanisterWasm {
87
+ wasm_module_hash: Uint8Array | number[];
88
+ chunk_hashes_list: Array<Uint8Array | number[]>;
89
+ store_canister_id: [] | [Principal];
90
+ }
86
91
  export interface ClaimOrRefresh {
87
92
  by: [] | [By];
88
93
  }
@@ -153,6 +158,7 @@ export interface DefaultFollowees {
153
158
  }
154
159
  export interface DefiniteCanisterSettingsArgs {
155
160
  freezing_threshold: bigint;
161
+ wasm_memory_threshold: [] | [bigint];
156
162
  controllers: Array<Principal>;
157
163
  wasm_memory_limit: [] | [bigint];
158
164
  memory_allocation: bigint;
@@ -338,6 +344,7 @@ export interface ListProposalsResponse {
338
344
  }
339
345
  export interface ManageDappCanisterSettings {
340
346
  freezing_threshold: [] | [bigint];
347
+ wasm_memory_threshold: [] | [bigint];
341
348
  canister_ids: Array<Principal>;
342
349
  reserved_cycles_limit: [] | [bigint];
343
350
  log_visibility: [] | [number];
@@ -406,6 +413,7 @@ export interface NervousSystemParameters {
406
413
  max_dissolve_delay_seconds: [] | [bigint];
407
414
  max_dissolve_delay_bonus_percentage: [] | [bigint];
408
415
  max_followees_per_function: [] | [bigint];
416
+ automatically_advance_target_version: [] | [boolean];
409
417
  neuron_claimer_permissions: [] | [NeuronPermissionList];
410
418
  neuron_minimum_stake_e8s: [] | [bigint];
411
419
  max_neuron_age_for_age_bonus: [] | [bigint];
@@ -607,6 +615,7 @@ export interface TargetVersionReset {
607
615
  export interface TargetVersionSet {
608
616
  old_target_version: [] | [Version];
609
617
  new_target_version: [] | [Version];
618
+ is_advanced_automatically: [] | [boolean];
610
619
  }
611
620
  export interface Timers {
612
621
  last_spawned_timestamp_seconds: [] | [bigint];
@@ -660,6 +669,7 @@ export interface UpgradeSnsControlledCanister {
660
669
  new_canister_wasm: Uint8Array | number[];
661
670
  mode: [] | [number];
662
671
  canister_id: [] | [Principal];
672
+ chunked_canister_wasm: [] | [ChunkedCanisterWasm];
663
673
  canister_upgrade_arg: [] | [Uint8Array | number[]];
664
674
  }
665
675
  export interface UpgradeStarted {
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit d9fe207 (2024-12-06 tags: release-2024-12-06_03-16-base) 'rs/sns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit 4ba5834 (2025-01-22 tags: release-2025-01-23_03-04-hashes-in-blocks) 'rs/sns/governance/canister/governance_test.did' by import-candid
2
2
  type Account = record {
3
3
  owner : opt principal;
4
4
  subaccount : opt Subaccount;
@@ -167,6 +167,7 @@ type DefiniteCanisterSettingsArgs = record {
167
167
  wasm_memory_limit : opt nat;
168
168
  memory_allocation : nat;
169
169
  compute_allocation : nat;
170
+ wasm_memory_threshold : opt nat;
170
171
  };
171
172
 
172
173
  type DeregisterDappCanisters = record {
@@ -385,6 +386,7 @@ type ManageDappCanisterSettings = record {
385
386
  wasm_memory_limit : opt nat64;
386
387
  memory_allocation : opt nat64;
387
388
  compute_allocation : opt nat64;
389
+ wasm_memory_threshold : opt nat64;
388
390
  };
389
391
 
390
392
  type SnsVersion = record {
@@ -494,6 +496,7 @@ type NervousSystemParameters = record {
494
496
  voting_rewards_parameters : opt VotingRewardsParameters;
495
497
  maturity_modulation_disabled : opt bool;
496
498
  max_number_of_principals_per_neuron : opt nat64;
499
+ automatically_advance_target_version : opt bool;
497
500
  };
498
501
 
499
502
  type Neuron = record {
@@ -724,8 +727,15 @@ type PendingVersion = record {
724
727
  target_version : opt Version;
725
728
  };
726
729
 
730
+ type ChunkedCanisterWasm = record {
731
+ wasm_module_hash : blob;
732
+ store_canister_id : opt principal;
733
+ chunk_hashes_list : vec blob;
734
+ };
735
+
727
736
  type UpgradeSnsControlledCanister = record {
728
737
  new_canister_wasm : blob;
738
+ chunked_canister_wasm : opt ChunkedCanisterWasm;
729
739
  mode : opt int32;
730
740
  canister_id : opt principal;
731
741
  canister_upgrade_arg : opt blob;
@@ -790,6 +800,7 @@ type UpgradeStepsReset = record {
790
800
  type TargetVersionSet = record {
791
801
  new_target_version : opt Version;
792
802
  old_target_version : opt Version;
803
+ is_advanced_automatically : opt bool;
793
804
  };
794
805
 
795
806
  type TargetVersionReset = record {
@@ -67,6 +67,7 @@ export const idlFactory = ({ IDL }) => {
67
67
  const TargetVersionSet = IDL.Record({
68
68
  'old_target_version' : IDL.Opt(Version),
69
69
  'new_target_version' : IDL.Opt(Version),
70
+ 'is_advanced_automatically' : IDL.Opt(IDL.Bool),
70
71
  });
71
72
  const UpgradeStepsReset = IDL.Record({
72
73
  'human_readable' : IDL.Opt(IDL.Text),
@@ -137,6 +138,7 @@ export const idlFactory = ({ IDL }) => {
137
138
  'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
138
139
  'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
139
140
  'max_followees_per_function' : IDL.Opt(IDL.Nat64),
141
+ 'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
140
142
  'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
141
143
  'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
142
144
  'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
@@ -224,6 +226,7 @@ export const idlFactory = ({ IDL }) => {
224
226
  });
225
227
  const ManageDappCanisterSettings = IDL.Record({
226
228
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
229
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
227
230
  'canister_ids' : IDL.Vec(IDL.Principal),
228
231
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
229
232
  'log_visibility' : IDL.Opt(IDL.Int32),
@@ -241,10 +244,16 @@ export const idlFactory = ({ IDL }) => {
241
244
  'memo' : IDL.Opt(IDL.Nat64),
242
245
  'amount_e8s' : IDL.Nat64,
243
246
  });
247
+ const ChunkedCanisterWasm = IDL.Record({
248
+ 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
249
+ 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
250
+ 'store_canister_id' : IDL.Opt(IDL.Principal),
251
+ });
244
252
  const UpgradeSnsControlledCanister = IDL.Record({
245
253
  'new_canister_wasm' : IDL.Vec(IDL.Nat8),
246
254
  'mode' : IDL.Opt(IDL.Int32),
247
255
  'canister_id' : IDL.Opt(IDL.Principal),
256
+ 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
248
257
  'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
249
258
  });
250
259
  const DeregisterDappCanisters = IDL.Record({
@@ -537,6 +546,7 @@ export const idlFactory = ({ IDL }) => {
537
546
  });
538
547
  const DefiniteCanisterSettingsArgs = IDL.Record({
539
548
  'freezing_threshold' : IDL.Nat,
549
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
540
550
  'controllers' : IDL.Vec(IDL.Principal),
541
551
  'wasm_memory_limit' : IDL.Opt(IDL.Nat),
542
552
  'memory_allocation' : IDL.Nat,
@@ -806,6 +816,7 @@ export const init = ({ IDL }) => {
806
816
  const TargetVersionSet = IDL.Record({
807
817
  'old_target_version' : IDL.Opt(Version),
808
818
  'new_target_version' : IDL.Opt(Version),
819
+ 'is_advanced_automatically' : IDL.Opt(IDL.Bool),
809
820
  });
810
821
  const UpgradeStepsReset = IDL.Record({
811
822
  'human_readable' : IDL.Opt(IDL.Text),
@@ -876,6 +887,7 @@ export const init = ({ IDL }) => {
876
887
  'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
877
888
  'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
878
889
  'max_followees_per_function' : IDL.Opt(IDL.Nat64),
890
+ 'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
879
891
  'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
880
892
  'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
881
893
  'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
@@ -963,6 +975,7 @@ export const init = ({ IDL }) => {
963
975
  });
964
976
  const ManageDappCanisterSettings = IDL.Record({
965
977
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
978
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
966
979
  'canister_ids' : IDL.Vec(IDL.Principal),
967
980
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
968
981
  'log_visibility' : IDL.Opt(IDL.Int32),
@@ -980,10 +993,16 @@ export const init = ({ IDL }) => {
980
993
  'memo' : IDL.Opt(IDL.Nat64),
981
994
  'amount_e8s' : IDL.Nat64,
982
995
  });
996
+ const ChunkedCanisterWasm = IDL.Record({
997
+ 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
998
+ 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
999
+ 'store_canister_id' : IDL.Opt(IDL.Principal),
1000
+ });
983
1001
  const UpgradeSnsControlledCanister = IDL.Record({
984
1002
  'new_canister_wasm' : IDL.Vec(IDL.Nat8),
985
1003
  'mode' : IDL.Opt(IDL.Int32),
986
1004
  'canister_id' : IDL.Opt(IDL.Principal),
1005
+ 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
987
1006
  'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
988
1007
  });
989
1008
  const DeregisterDappCanisters = IDL.Record({
@@ -27,6 +27,7 @@ export const idlFactory = ({ IDL }) => {
27
27
  });
28
28
  const DefiniteCanisterSettings = IDL.Record({
29
29
  'freezing_threshold' : IDL.Opt(IDL.Nat),
30
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
30
31
  'controllers' : IDL.Vec(IDL.Principal),
31
32
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat),
32
33
  'log_visibility' : IDL.Opt(LogVisibility),
@@ -48,12 +49,18 @@ export const idlFactory = ({ IDL }) => {
48
49
  'upgrade' : IDL.Null,
49
50
  'install' : IDL.Null,
50
51
  });
52
+ const ChunkedCanisterWasm = IDL.Record({
53
+ 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
54
+ 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
55
+ 'store_canister_id' : IDL.Principal,
56
+ });
51
57
  const ChangeCanisterRequest = IDL.Record({
52
58
  'arg' : IDL.Vec(IDL.Nat8),
53
59
  'wasm_module' : IDL.Vec(IDL.Nat8),
54
60
  'stop_before_installing' : IDL.Bool,
55
61
  'mode' : CanisterInstallMode,
56
62
  'canister_id' : IDL.Principal,
63
+ 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
57
64
  'memory_allocation' : IDL.Opt(IDL.Nat),
58
65
  'compute_allocation' : IDL.Opt(IDL.Nat),
59
66
  });
@@ -62,6 +69,7 @@ export const idlFactory = ({ IDL }) => {
62
69
  });
63
70
  const DefiniteCanisterSettingsArgs = IDL.Record({
64
71
  'freezing_threshold' : IDL.Nat,
72
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
65
73
  'controllers' : IDL.Vec(IDL.Principal),
66
74
  'wasm_memory_limit' : IDL.Opt(IDL.Nat),
67
75
  'memory_allocation' : IDL.Nat,
@@ -100,6 +108,7 @@ export const idlFactory = ({ IDL }) => {
100
108
  });
101
109
  const ManageDappCanisterSettingsRequest = IDL.Record({
102
110
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
111
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
103
112
  'canister_ids' : IDL.Vec(IDL.Principal),
104
113
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
105
114
  'log_visibility' : IDL.Opt(IDL.Int32),
@@ -44,11 +44,18 @@ export interface ChangeCanisterRequest {
44
44
  stop_before_installing: boolean;
45
45
  mode: CanisterInstallMode;
46
46
  canister_id: Principal;
47
+ chunked_canister_wasm: [] | [ChunkedCanisterWasm];
47
48
  memory_allocation: [] | [bigint];
48
49
  compute_allocation: [] | [bigint];
49
50
  }
51
+ export interface ChunkedCanisterWasm {
52
+ wasm_module_hash: Uint8Array | number[];
53
+ chunk_hashes_list: Array<Uint8Array | number[]>;
54
+ store_canister_id: Principal;
55
+ }
50
56
  export interface DefiniteCanisterSettings {
51
57
  freezing_threshold: [] | [bigint];
58
+ wasm_memory_threshold: [] | [bigint];
52
59
  controllers: Array<Principal>;
53
60
  reserved_cycles_limit: [] | [bigint];
54
61
  log_visibility: [] | [LogVisibility];
@@ -58,6 +65,7 @@ export interface DefiniteCanisterSettings {
58
65
  }
59
66
  export interface DefiniteCanisterSettingsArgs {
60
67
  freezing_threshold: bigint;
68
+ wasm_memory_threshold: [] | [bigint];
61
69
  controllers: Array<Principal>;
62
70
  wasm_memory_limit: [] | [bigint];
63
71
  memory_allocation: bigint;
@@ -94,6 +102,7 @@ export interface ListSnsCanistersResponse {
94
102
  export type LogVisibility = { controllers: null } | { public: null };
95
103
  export interface ManageDappCanisterSettingsRequest {
96
104
  freezing_threshold: [] | [bigint];
105
+ wasm_memory_threshold: [] | [bigint];
97
106
  canister_ids: Array<Principal>;
98
107
  reserved_cycles_limit: [] | [bigint];
99
108
  log_visibility: [] | [number];
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit d9fe207 (2024-12-06 tags: release-2024-12-06_03-16-base) 'rs/sns/root/canister/root.did' by import-candid
1
+ // Generated from IC repo commit 4ba5834 (2025-01-22 tags: release-2025-01-23_03-04-hashes-in-blocks) 'rs/sns/root/canister/root.did' by import-candid
2
2
  type CanisterCallError = record {
3
3
  code : opt int32;
4
4
  description : text;
@@ -44,9 +44,16 @@ type CanisterSummary = record {
44
44
  canister_id : opt principal;
45
45
  };
46
46
 
47
+ type ChunkedCanisterWasm = record {
48
+ wasm_module_hash : blob;
49
+ store_canister_id : principal;
50
+ chunk_hashes_list : vec blob;
51
+ };
52
+
47
53
  type ChangeCanisterRequest = record {
48
54
  arg : blob;
49
55
  wasm_module : blob;
56
+ chunked_canister_wasm : opt ChunkedCanisterWasm;
50
57
  stop_before_installing : bool;
51
58
  mode : CanisterInstallMode;
52
59
  canister_id : principal;
@@ -62,6 +69,7 @@ type DefiniteCanisterSettings = record {
62
69
  wasm_memory_limit : opt nat;
63
70
  memory_allocation : opt nat;
64
71
  compute_allocation : opt nat;
72
+ wasm_memory_threshold : opt nat;
65
73
  };
66
74
 
67
75
  type DefiniteCanisterSettingsArgs = record {
@@ -70,6 +78,7 @@ type DefiniteCanisterSettingsArgs = record {
70
78
  wasm_memory_limit : opt nat;
71
79
  memory_allocation : nat;
72
80
  compute_allocation : nat;
81
+ wasm_memory_threshold : opt nat;
73
82
  };
74
83
 
75
84
  type FailedUpdate = record {
@@ -114,6 +123,7 @@ type ManageDappCanisterSettingsRequest = record {
114
123
  wasm_memory_limit : opt nat64;
115
124
  memory_allocation : opt nat64;
116
125
  compute_allocation : opt nat64;
126
+ wasm_memory_threshold : opt nat64;
117
127
  };
118
128
 
119
129
  type ManageDappCanisterSettingsResponse = record {