@dfinity/sns 3.2.7 → 3.2.8
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.
- package/dist/candid/sns_governance.certified.idl.js +15 -0
- package/dist/candid/sns_governance.d.ts +8 -0
- package/dist/candid/sns_governance.did +10 -1
- package/dist/candid/sns_governance.idl.js +15 -0
- package/dist/candid/sns_governance_test.certified.idl.js +15 -0
- package/dist/candid/sns_governance_test.d.ts +8 -0
- package/dist/candid/sns_governance_test.did +10 -1
- package/dist/candid/sns_governance_test.idl.js +15 -0
- package/dist/candid/sns_root.certified.idl.js +9 -0
- package/dist/candid/sns_root.d.ts +9 -0
- package/dist/candid/sns_root.did +11 -1
- package/dist/candid/sns_root.idl.js +9 -0
- package/dist/candid/sns_swap.certified.idl.js +1 -0
- package/dist/candid/sns_swap.d.ts +1 -0
- package/dist/candid/sns_swap.did +2 -1
- package/dist/candid/sns_swap.idl.js +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/{chunk-MC5S77AI.js → chunk-5ZINPFQJ.js} +2 -2
- package/dist/esm/chunk-A7UJA62V.js +2 -0
- package/dist/esm/chunk-A7UJA62V.js.map +7 -0
- package/dist/esm/chunk-BKBI2NNR.js +2 -0
- package/dist/esm/chunk-BKBI2NNR.js.map +7 -0
- package/dist/esm/chunk-NXIGASUA.js +2 -0
- package/dist/esm/chunk-NXIGASUA.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/root.canister.js +1 -1
- package/dist/esm/sns.js +1 -1
- package/dist/esm/swap.canister.js +1 -1
- package/dist/types/types/actions.d.ts +6 -0
- package/package.json +3 -3
- package/dist/esm/chunk-BNILACKH.js +0 -2
- package/dist/esm/chunk-BNILACKH.js.map +0 -7
- package/dist/esm/chunk-DHX6PNLG.js +0 -2
- package/dist/esm/chunk-DHX6PNLG.js.map +0 -7
- package/dist/esm/chunk-XKKPAZAY.js +0 -2
- package/dist/esm/chunk-XKKPAZAY.js.map +0 -7
- /package/dist/esm/{chunk-MC5S77AI.js.map → chunk-5ZINPFQJ.js.map} +0 -0
|
@@ -224,6 +224,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
224
224
|
});
|
|
225
225
|
const ManageDappCanisterSettings = IDL.Record({
|
|
226
226
|
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
227
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
|
|
227
228
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
228
229
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
229
230
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
@@ -241,10 +242,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
241
242
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
242
243
|
'amount_e8s' : IDL.Nat64,
|
|
243
244
|
});
|
|
245
|
+
const ChunkedCanisterWasm = IDL.Record({
|
|
246
|
+
'wasm_module_hash' : IDL.Vec(IDL.Nat8),
|
|
247
|
+
'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
248
|
+
'store_canister_id' : IDL.Opt(IDL.Principal),
|
|
249
|
+
});
|
|
244
250
|
const UpgradeSnsControlledCanister = IDL.Record({
|
|
245
251
|
'new_canister_wasm' : IDL.Vec(IDL.Nat8),
|
|
246
252
|
'mode' : IDL.Opt(IDL.Int32),
|
|
247
253
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
254
|
+
'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
|
|
248
255
|
'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
249
256
|
});
|
|
250
257
|
const DeregisterDappCanisters = IDL.Record({
|
|
@@ -526,6 +533,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
526
533
|
});
|
|
527
534
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
528
535
|
'freezing_threshold' : IDL.Nat,
|
|
536
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
|
|
529
537
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
530
538
|
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
531
539
|
'memory_allocation' : IDL.Nat,
|
|
@@ -927,6 +935,7 @@ export const init = ({ IDL }) => {
|
|
|
927
935
|
});
|
|
928
936
|
const ManageDappCanisterSettings = IDL.Record({
|
|
929
937
|
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
938
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
|
|
930
939
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
931
940
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
932
941
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
@@ -944,10 +953,16 @@ export const init = ({ IDL }) => {
|
|
|
944
953
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
945
954
|
'amount_e8s' : IDL.Nat64,
|
|
946
955
|
});
|
|
956
|
+
const ChunkedCanisterWasm = IDL.Record({
|
|
957
|
+
'wasm_module_hash' : IDL.Vec(IDL.Nat8),
|
|
958
|
+
'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
959
|
+
'store_canister_id' : IDL.Opt(IDL.Principal),
|
|
960
|
+
});
|
|
947
961
|
const UpgradeSnsControlledCanister = IDL.Record({
|
|
948
962
|
'new_canister_wasm' : IDL.Vec(IDL.Nat8),
|
|
949
963
|
'mode' : IDL.Opt(IDL.Int32),
|
|
950
964
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
965
|
+
'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
|
|
951
966
|
'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
952
967
|
});
|
|
953
968
|
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];
|
|
@@ -645,6 +652,7 @@ export interface UpgradeSnsControlledCanister {
|
|
|
645
652
|
new_canister_wasm: Uint8Array | number[];
|
|
646
653
|
mode: [] | [number];
|
|
647
654
|
canister_id: [] | [Principal];
|
|
655
|
+
chunked_canister_wasm: [] | [ChunkedCanisterWasm];
|
|
648
656
|
canister_upgrade_arg: [] | [Uint8Array | number[]];
|
|
649
657
|
}
|
|
650
658
|
export interface UpgradeStarted {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 233c1ee2ef (2025-01-16 tags: release-2025-01-16_16-18-base) '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 {
|
|
@@ -710,8 +712,15 @@ type PendingVersion = record {
|
|
|
710
712
|
target_version : opt Version;
|
|
711
713
|
};
|
|
712
714
|
|
|
715
|
+
type ChunkedCanisterWasm = record {
|
|
716
|
+
wasm_module_hash : blob;
|
|
717
|
+
store_canister_id : opt principal;
|
|
718
|
+
chunk_hashes_list : vec blob;
|
|
719
|
+
};
|
|
720
|
+
|
|
713
721
|
type UpgradeSnsControlledCanister = record {
|
|
714
722
|
new_canister_wasm : blob;
|
|
723
|
+
chunked_canister_wasm : opt ChunkedCanisterWasm;
|
|
715
724
|
mode : opt int32;
|
|
716
725
|
canister_id : opt principal;
|
|
717
726
|
canister_upgrade_arg : opt blob;
|
|
@@ -224,6 +224,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
224
224
|
});
|
|
225
225
|
const ManageDappCanisterSettings = IDL.Record({
|
|
226
226
|
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
227
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
|
|
227
228
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
228
229
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
229
230
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
@@ -241,10 +242,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
241
242
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
242
243
|
'amount_e8s' : IDL.Nat64,
|
|
243
244
|
});
|
|
245
|
+
const ChunkedCanisterWasm = IDL.Record({
|
|
246
|
+
'wasm_module_hash' : IDL.Vec(IDL.Nat8),
|
|
247
|
+
'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
248
|
+
'store_canister_id' : IDL.Opt(IDL.Principal),
|
|
249
|
+
});
|
|
244
250
|
const UpgradeSnsControlledCanister = IDL.Record({
|
|
245
251
|
'new_canister_wasm' : IDL.Vec(IDL.Nat8),
|
|
246
252
|
'mode' : IDL.Opt(IDL.Int32),
|
|
247
253
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
254
|
+
'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
|
|
248
255
|
'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
249
256
|
});
|
|
250
257
|
const DeregisterDappCanisters = IDL.Record({
|
|
@@ -526,6 +533,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
526
533
|
});
|
|
527
534
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
528
535
|
'freezing_threshold' : IDL.Nat,
|
|
536
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
|
|
529
537
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
530
538
|
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
531
539
|
'memory_allocation' : IDL.Nat,
|
|
@@ -935,6 +943,7 @@ export const init = ({ IDL }) => {
|
|
|
935
943
|
});
|
|
936
944
|
const ManageDappCanisterSettings = IDL.Record({
|
|
937
945
|
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
946
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
|
|
938
947
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
939
948
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
940
949
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
@@ -952,10 +961,16 @@ export const init = ({ IDL }) => {
|
|
|
952
961
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
953
962
|
'amount_e8s' : IDL.Nat64,
|
|
954
963
|
});
|
|
964
|
+
const ChunkedCanisterWasm = IDL.Record({
|
|
965
|
+
'wasm_module_hash' : IDL.Vec(IDL.Nat8),
|
|
966
|
+
'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
967
|
+
'store_canister_id' : IDL.Opt(IDL.Principal),
|
|
968
|
+
});
|
|
955
969
|
const UpgradeSnsControlledCanister = IDL.Record({
|
|
956
970
|
'new_canister_wasm' : IDL.Vec(IDL.Nat8),
|
|
957
971
|
'mode' : IDL.Opt(IDL.Int32),
|
|
958
972
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
973
|
+
'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
|
|
959
974
|
'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
960
975
|
});
|
|
961
976
|
const DeregisterDappCanisters = IDL.Record({
|
|
@@ -224,6 +224,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
224
224
|
});
|
|
225
225
|
const ManageDappCanisterSettings = IDL.Record({
|
|
226
226
|
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
227
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
|
|
227
228
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
228
229
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
229
230
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
@@ -241,10 +242,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
241
242
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
242
243
|
'amount_e8s' : IDL.Nat64,
|
|
243
244
|
});
|
|
245
|
+
const ChunkedCanisterWasm = IDL.Record({
|
|
246
|
+
'wasm_module_hash' : IDL.Vec(IDL.Nat8),
|
|
247
|
+
'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
248
|
+
'store_canister_id' : IDL.Opt(IDL.Principal),
|
|
249
|
+
});
|
|
244
250
|
const UpgradeSnsControlledCanister = IDL.Record({
|
|
245
251
|
'new_canister_wasm' : IDL.Vec(IDL.Nat8),
|
|
246
252
|
'mode' : IDL.Opt(IDL.Int32),
|
|
247
253
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
254
|
+
'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
|
|
248
255
|
'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
249
256
|
});
|
|
250
257
|
const DeregisterDappCanisters = IDL.Record({
|
|
@@ -537,6 +544,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
537
544
|
});
|
|
538
545
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
539
546
|
'freezing_threshold' : IDL.Nat,
|
|
547
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
|
|
540
548
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
541
549
|
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
542
550
|
'memory_allocation' : IDL.Nat,
|
|
@@ -955,6 +963,7 @@ export const init = ({ IDL }) => {
|
|
|
955
963
|
});
|
|
956
964
|
const ManageDappCanisterSettings = IDL.Record({
|
|
957
965
|
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
966
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
|
|
958
967
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
959
968
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
960
969
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
@@ -972,10 +981,16 @@ export const init = ({ IDL }) => {
|
|
|
972
981
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
973
982
|
'amount_e8s' : IDL.Nat64,
|
|
974
983
|
});
|
|
984
|
+
const ChunkedCanisterWasm = IDL.Record({
|
|
985
|
+
'wasm_module_hash' : IDL.Vec(IDL.Nat8),
|
|
986
|
+
'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
987
|
+
'store_canister_id' : IDL.Opt(IDL.Principal),
|
|
988
|
+
});
|
|
975
989
|
const UpgradeSnsControlledCanister = IDL.Record({
|
|
976
990
|
'new_canister_wasm' : IDL.Vec(IDL.Nat8),
|
|
977
991
|
'mode' : IDL.Opt(IDL.Int32),
|
|
978
992
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
993
|
+
'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
|
|
979
994
|
'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
980
995
|
});
|
|
981
996
|
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];
|
|
@@ -660,6 +667,7 @@ export interface UpgradeSnsControlledCanister {
|
|
|
660
667
|
new_canister_wasm: Uint8Array | number[];
|
|
661
668
|
mode: [] | [number];
|
|
662
669
|
canister_id: [] | [Principal];
|
|
670
|
+
chunked_canister_wasm: [] | [ChunkedCanisterWasm];
|
|
663
671
|
canister_upgrade_arg: [] | [Uint8Array | number[]];
|
|
664
672
|
}
|
|
665
673
|
export interface UpgradeStarted {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 233c1ee2ef (2025-01-16 tags: release-2025-01-16_16-18-base) '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 {
|
|
@@ -724,8 +726,15 @@ type PendingVersion = record {
|
|
|
724
726
|
target_version : opt Version;
|
|
725
727
|
};
|
|
726
728
|
|
|
729
|
+
type ChunkedCanisterWasm = record {
|
|
730
|
+
wasm_module_hash : blob;
|
|
731
|
+
store_canister_id : opt principal;
|
|
732
|
+
chunk_hashes_list : vec blob;
|
|
733
|
+
};
|
|
734
|
+
|
|
727
735
|
type UpgradeSnsControlledCanister = record {
|
|
728
736
|
new_canister_wasm : blob;
|
|
737
|
+
chunked_canister_wasm : opt ChunkedCanisterWasm;
|
|
729
738
|
mode : opt int32;
|
|
730
739
|
canister_id : opt principal;
|
|
731
740
|
canister_upgrade_arg : opt blob;
|
|
@@ -224,6 +224,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
224
224
|
});
|
|
225
225
|
const ManageDappCanisterSettings = IDL.Record({
|
|
226
226
|
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
227
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
|
|
227
228
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
228
229
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
229
230
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
@@ -241,10 +242,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
241
242
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
242
243
|
'amount_e8s' : IDL.Nat64,
|
|
243
244
|
});
|
|
245
|
+
const ChunkedCanisterWasm = IDL.Record({
|
|
246
|
+
'wasm_module_hash' : IDL.Vec(IDL.Nat8),
|
|
247
|
+
'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
248
|
+
'store_canister_id' : IDL.Opt(IDL.Principal),
|
|
249
|
+
});
|
|
244
250
|
const UpgradeSnsControlledCanister = IDL.Record({
|
|
245
251
|
'new_canister_wasm' : IDL.Vec(IDL.Nat8),
|
|
246
252
|
'mode' : IDL.Opt(IDL.Int32),
|
|
247
253
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
254
|
+
'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
|
|
248
255
|
'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
249
256
|
});
|
|
250
257
|
const DeregisterDappCanisters = IDL.Record({
|
|
@@ -537,6 +544,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
537
544
|
});
|
|
538
545
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
539
546
|
'freezing_threshold' : IDL.Nat,
|
|
547
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
|
|
540
548
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
541
549
|
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
542
550
|
'memory_allocation' : IDL.Nat,
|
|
@@ -963,6 +971,7 @@ export const init = ({ IDL }) => {
|
|
|
963
971
|
});
|
|
964
972
|
const ManageDappCanisterSettings = IDL.Record({
|
|
965
973
|
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
974
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
|
|
966
975
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
967
976
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
968
977
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
@@ -980,10 +989,16 @@ export const init = ({ IDL }) => {
|
|
|
980
989
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
981
990
|
'amount_e8s' : IDL.Nat64,
|
|
982
991
|
});
|
|
992
|
+
const ChunkedCanisterWasm = IDL.Record({
|
|
993
|
+
'wasm_module_hash' : IDL.Vec(IDL.Nat8),
|
|
994
|
+
'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
995
|
+
'store_canister_id' : IDL.Opt(IDL.Principal),
|
|
996
|
+
});
|
|
983
997
|
const UpgradeSnsControlledCanister = IDL.Record({
|
|
984
998
|
'new_canister_wasm' : IDL.Vec(IDL.Nat8),
|
|
985
999
|
'mode' : IDL.Opt(IDL.Int32),
|
|
986
1000
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
1001
|
+
'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
|
|
987
1002
|
'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
988
1003
|
});
|
|
989
1004
|
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];
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 233c1ee2ef (2025-01-16 tags: release-2025-01-16_16-18-base) '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 {
|
|
@@ -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),
|
|
@@ -164,6 +164,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
164
164
|
});
|
|
165
165
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
166
166
|
'freezing_threshold' : IDL.Nat,
|
|
167
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
|
|
167
168
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
168
169
|
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
169
170
|
'memory_allocation' : IDL.Nat,
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 233c1ee2ef (2025-01-16 tags: release-2025-01-16_16-18-base) 'rs/sns/swap/canister/swap.did' by import-candid
|
|
2
2
|
type BuyerState = record {
|
|
3
3
|
icp : opt TransferableAmount;
|
|
4
4
|
has_created_neuron_recipes : opt bool;
|
|
@@ -54,6 +54,7 @@ type DefiniteCanisterSettingsArgs = record {
|
|
|
54
54
|
wasm_memory_limit : opt nat;
|
|
55
55
|
memory_allocation : nat;
|
|
56
56
|
compute_allocation : nat;
|
|
57
|
+
wasm_memory_threshold : opt nat;
|
|
57
58
|
};
|
|
58
59
|
|
|
59
60
|
type DerivedState = record {
|
|
@@ -164,6 +164,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
164
164
|
});
|
|
165
165
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
166
166
|
'freezing_threshold' : IDL.Nat,
|
|
167
|
+
'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
|
|
167
168
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
168
169
|
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
169
170
|
'memory_allocation' : IDL.Nat,
|