@dfinity/sns 3.2.4 → 3.2.5
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 +45 -9
- package/dist/candid/sns_governance.d.ts +31 -4
- package/dist/candid/sns_governance.did +30 -4
- package/dist/candid/sns_governance.idl.js +45 -9
- package/dist/candid/sns_governance_test.certified.idl.js +45 -9
- package/dist/candid/sns_governance_test.d.ts +31 -4
- package/dist/candid/sns_governance_test.did +33 -11
- package/dist/candid/sns_governance_test.idl.js +45 -9
- package/dist/candid/sns_root.did +1 -1
- package/dist/candid/sns_swap.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-5CSRAAID.js +2 -0
- package/dist/esm/chunk-5CSRAAID.js.map +7 -0
- package/dist/esm/{chunk-X7UB3EAO.js → chunk-FV3WJPBZ.js} +2 -2
- 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/sns.js +1 -1
- package/package.json +3 -3
- package/dist/esm/chunk-LCH6N5XY.js +0 -2
- package/dist/esm/chunk-LCH6N5XY.js.map +0 -7
- /package/dist/esm/{chunk-X7UB3EAO.js.map → chunk-FV3WJPBZ.js.map} +0 -0
|
@@ -98,6 +98,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
98
98
|
'upgrade_steps' : IDL.Opt(Versions),
|
|
99
99
|
});
|
|
100
100
|
const TargetVersionReset = IDL.Record({
|
|
101
|
+
'human_readable' : IDL.Opt(IDL.Text),
|
|
101
102
|
'old_target_version' : IDL.Opt(Version),
|
|
102
103
|
'new_target_version' : IDL.Opt(Version),
|
|
103
104
|
});
|
|
@@ -165,7 +166,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
165
166
|
const PendingVersion = IDL.Record({
|
|
166
167
|
'mark_failed_at_seconds' : IDL.Nat64,
|
|
167
168
|
'checking_upgrade_lock' : IDL.Nat64,
|
|
168
|
-
'proposal_id' : IDL.Nat64,
|
|
169
|
+
'proposal_id' : IDL.Opt(IDL.Nat64),
|
|
169
170
|
'target_version' : IDL.Opt(Version),
|
|
170
171
|
});
|
|
171
172
|
const GovernanceError = IDL.Record({
|
|
@@ -193,9 +194,21 @@ export const idlFactory = ({ IDL }) => {
|
|
|
193
194
|
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
194
195
|
'valuation' : IDL.Opt(Valuation),
|
|
195
196
|
});
|
|
197
|
+
const SnsVersion = IDL.Record({
|
|
198
|
+
'archive_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
199
|
+
'root_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
200
|
+
'swap_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
201
|
+
'ledger_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
202
|
+
'governance_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
203
|
+
'index_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
204
|
+
});
|
|
205
|
+
const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
|
|
206
|
+
'target_version' : IDL.Opt(SnsVersion),
|
|
207
|
+
});
|
|
196
208
|
const ActionAuxiliary = IDL.Variant({
|
|
197
209
|
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
198
210
|
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
211
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersionActionAuxiliary,
|
|
199
212
|
});
|
|
200
213
|
const Ballot = IDL.Record({
|
|
201
214
|
'vote' : IDL.Int32,
|
|
@@ -244,6 +257,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
244
257
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
245
258
|
'amount_e8s' : IDL.Opt(IDL.Nat64),
|
|
246
259
|
});
|
|
260
|
+
const AdvanceSnsTargetVersion = IDL.Record({
|
|
261
|
+
'new_target' : IDL.Opt(SnsVersion),
|
|
262
|
+
});
|
|
247
263
|
const ManageSnsMetadata = IDL.Record({
|
|
248
264
|
'url' : IDL.Opt(IDL.Text),
|
|
249
265
|
'logo' : IDL.Opt(IDL.Text),
|
|
@@ -272,6 +288,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
272
288
|
'UpgradeSnsControlledCanister' : UpgradeSnsControlledCanister,
|
|
273
289
|
'DeregisterDappCanisters' : DeregisterDappCanisters,
|
|
274
290
|
'MintSnsTokens' : MintSnsTokens,
|
|
291
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersion,
|
|
275
292
|
'Unspecified' : IDL.Record({}),
|
|
276
293
|
'ManageSnsMetadata' : ManageSnsMetadata,
|
|
277
294
|
'ExecuteGenericNervousSystemFunction' : ExecuteGenericNervousSystemFunction,
|
|
@@ -522,15 +539,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
522
539
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
523
540
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
524
541
|
});
|
|
525
|
-
const UpgradeInProgress = IDL.Record({
|
|
526
|
-
'mark_failed_at_seconds' : IDL.Nat64,
|
|
527
|
-
'checking_upgrade_lock' : IDL.Nat64,
|
|
528
|
-
'proposal_id' : IDL.Nat64,
|
|
529
|
-
'target_version' : IDL.Opt(Version),
|
|
530
|
-
});
|
|
531
542
|
const GetRunningSnsVersionResponse = IDL.Record({
|
|
532
543
|
'deployed_version' : IDL.Opt(Version),
|
|
533
|
-
'pending_version' : IDL.Opt(
|
|
544
|
+
'pending_version' : IDL.Opt(
|
|
545
|
+
IDL.Record({
|
|
546
|
+
'mark_failed_at_seconds' : IDL.Nat64,
|
|
547
|
+
'checking_upgrade_lock' : IDL.Nat64,
|
|
548
|
+
'proposal_id' : IDL.Nat64,
|
|
549
|
+
'target_version' : IDL.Opt(Version),
|
|
550
|
+
})
|
|
551
|
+
),
|
|
534
552
|
});
|
|
535
553
|
const GetSnsInitializationParametersResponse = IDL.Record({
|
|
536
554
|
'sns_initialization_parameters' : IDL.Text,
|
|
@@ -541,6 +559,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
541
559
|
'upgrade_journal' : IDL.Opt(UpgradeJournal),
|
|
542
560
|
'upgrade_steps' : IDL.Opt(Versions),
|
|
543
561
|
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
562
|
+
'deployed_version' : IDL.Opt(Version),
|
|
544
563
|
'target_version' : IDL.Opt(Version),
|
|
545
564
|
});
|
|
546
565
|
const ListNervousSystemFunctionsResponse = IDL.Record({
|
|
@@ -778,6 +797,7 @@ export const init = ({ IDL }) => {
|
|
|
778
797
|
'upgrade_steps' : IDL.Opt(Versions),
|
|
779
798
|
});
|
|
780
799
|
const TargetVersionReset = IDL.Record({
|
|
800
|
+
'human_readable' : IDL.Opt(IDL.Text),
|
|
781
801
|
'old_target_version' : IDL.Opt(Version),
|
|
782
802
|
'new_target_version' : IDL.Opt(Version),
|
|
783
803
|
});
|
|
@@ -845,7 +865,7 @@ export const init = ({ IDL }) => {
|
|
|
845
865
|
const PendingVersion = IDL.Record({
|
|
846
866
|
'mark_failed_at_seconds' : IDL.Nat64,
|
|
847
867
|
'checking_upgrade_lock' : IDL.Nat64,
|
|
848
|
-
'proposal_id' : IDL.Nat64,
|
|
868
|
+
'proposal_id' : IDL.Opt(IDL.Nat64),
|
|
849
869
|
'target_version' : IDL.Opt(Version),
|
|
850
870
|
});
|
|
851
871
|
const GovernanceError = IDL.Record({
|
|
@@ -873,9 +893,21 @@ export const init = ({ IDL }) => {
|
|
|
873
893
|
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
874
894
|
'valuation' : IDL.Opt(Valuation),
|
|
875
895
|
});
|
|
896
|
+
const SnsVersion = IDL.Record({
|
|
897
|
+
'archive_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
898
|
+
'root_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
899
|
+
'swap_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
900
|
+
'ledger_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
901
|
+
'governance_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
902
|
+
'index_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
903
|
+
});
|
|
904
|
+
const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
|
|
905
|
+
'target_version' : IDL.Opt(SnsVersion),
|
|
906
|
+
});
|
|
876
907
|
const ActionAuxiliary = IDL.Variant({
|
|
877
908
|
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
878
909
|
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
910
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersionActionAuxiliary,
|
|
879
911
|
});
|
|
880
912
|
const Ballot = IDL.Record({
|
|
881
913
|
'vote' : IDL.Int32,
|
|
@@ -924,6 +956,9 @@ export const init = ({ IDL }) => {
|
|
|
924
956
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
925
957
|
'amount_e8s' : IDL.Opt(IDL.Nat64),
|
|
926
958
|
});
|
|
959
|
+
const AdvanceSnsTargetVersion = IDL.Record({
|
|
960
|
+
'new_target' : IDL.Opt(SnsVersion),
|
|
961
|
+
});
|
|
927
962
|
const ManageSnsMetadata = IDL.Record({
|
|
928
963
|
'url' : IDL.Opt(IDL.Text),
|
|
929
964
|
'logo' : IDL.Opt(IDL.Text),
|
|
@@ -952,6 +987,7 @@ export const init = ({ IDL }) => {
|
|
|
952
987
|
'UpgradeSnsControlledCanister' : UpgradeSnsControlledCanister,
|
|
953
988
|
'DeregisterDappCanisters' : DeregisterDappCanisters,
|
|
954
989
|
'MintSnsTokens' : MintSnsTokens,
|
|
990
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersion,
|
|
955
991
|
'Unspecified' : IDL.Record({}),
|
|
956
992
|
'ManageSnsMetadata' : ManageSnsMetadata,
|
|
957
993
|
'ExecuteGenericNervousSystemFunction' : ExecuteGenericNervousSystemFunction,
|
|
@@ -19,6 +19,7 @@ export type Action =
|
|
|
19
19
|
| { UpgradeSnsControlledCanister: UpgradeSnsControlledCanister }
|
|
20
20
|
| { DeregisterDappCanisters: DeregisterDappCanisters }
|
|
21
21
|
| { MintSnsTokens: MintSnsTokens }
|
|
22
|
+
| { AdvanceSnsTargetVersion: AdvanceSnsTargetVersion }
|
|
22
23
|
| { Unspecified: {} }
|
|
23
24
|
| { ManageSnsMetadata: ManageSnsMetadata }
|
|
24
25
|
| {
|
|
@@ -30,11 +31,18 @@ export type ActionAuxiliary =
|
|
|
30
31
|
| {
|
|
31
32
|
TransferSnsTreasuryFunds: MintSnsTokensActionAuxiliary;
|
|
32
33
|
}
|
|
33
|
-
| { MintSnsTokens: MintSnsTokensActionAuxiliary }
|
|
34
|
+
| { MintSnsTokens: MintSnsTokensActionAuxiliary }
|
|
35
|
+
| { AdvanceSnsTargetVersion: AdvanceSnsTargetVersionActionAuxiliary };
|
|
34
36
|
export interface AddNeuronPermissions {
|
|
35
37
|
permissions_to_add: [] | [NeuronPermissionList];
|
|
36
38
|
principal_id: [] | [Principal];
|
|
37
39
|
}
|
|
40
|
+
export interface AdvanceSnsTargetVersion {
|
|
41
|
+
new_target: [] | [SnsVersion];
|
|
42
|
+
}
|
|
43
|
+
export interface AdvanceSnsTargetVersionActionAuxiliary {
|
|
44
|
+
target_version: [] | [SnsVersion];
|
|
45
|
+
}
|
|
38
46
|
export interface Amount {
|
|
39
47
|
e8s: bigint;
|
|
40
48
|
}
|
|
@@ -217,7 +225,16 @@ export interface GetProposalResponse {
|
|
|
217
225
|
}
|
|
218
226
|
export interface GetRunningSnsVersionResponse {
|
|
219
227
|
deployed_version: [] | [Version];
|
|
220
|
-
pending_version:
|
|
228
|
+
pending_version:
|
|
229
|
+
| []
|
|
230
|
+
| [
|
|
231
|
+
{
|
|
232
|
+
mark_failed_at_seconds: bigint;
|
|
233
|
+
checking_upgrade_lock: bigint;
|
|
234
|
+
proposal_id: bigint;
|
|
235
|
+
target_version: [] | [Version];
|
|
236
|
+
},
|
|
237
|
+
];
|
|
221
238
|
}
|
|
222
239
|
export interface GetSnsInitializationParametersResponse {
|
|
223
240
|
sns_initialization_parameters: string;
|
|
@@ -230,6 +247,7 @@ export interface GetUpgradeJournalResponse {
|
|
|
230
247
|
upgrade_journal: [] | [UpgradeJournal];
|
|
231
248
|
upgrade_steps: [] | [Versions];
|
|
232
249
|
response_timestamp_seconds: [] | [bigint];
|
|
250
|
+
deployed_version: [] | [Version];
|
|
233
251
|
target_version: [] | [Version];
|
|
234
252
|
}
|
|
235
253
|
export interface Governance {
|
|
@@ -457,7 +475,7 @@ export type Participant = { NeuronsFund: NeuronsFund } | { Direct: {} };
|
|
|
457
475
|
export interface PendingVersion {
|
|
458
476
|
mark_failed_at_seconds: bigint;
|
|
459
477
|
checking_upgrade_lock: bigint;
|
|
460
|
-
proposal_id: bigint;
|
|
478
|
+
proposal_id: [] | [bigint];
|
|
461
479
|
target_version: [] | [Version];
|
|
462
480
|
}
|
|
463
481
|
export interface Percentage {
|
|
@@ -527,6 +545,14 @@ export interface SetDissolveTimestamp {
|
|
|
527
545
|
export interface SetMode {
|
|
528
546
|
mode: number;
|
|
529
547
|
}
|
|
548
|
+
export interface SnsVersion {
|
|
549
|
+
archive_wasm_hash: [] | [Uint8Array | number[]];
|
|
550
|
+
root_wasm_hash: [] | [Uint8Array | number[]];
|
|
551
|
+
swap_wasm_hash: [] | [Uint8Array | number[]];
|
|
552
|
+
ledger_wasm_hash: [] | [Uint8Array | number[]];
|
|
553
|
+
governance_wasm_hash: [] | [Uint8Array | number[]];
|
|
554
|
+
index_wasm_hash: [] | [Uint8Array | number[]];
|
|
555
|
+
}
|
|
530
556
|
export interface Split {
|
|
531
557
|
memo: bigint;
|
|
532
558
|
amount_e8s: bigint;
|
|
@@ -555,6 +581,7 @@ export interface Tally {
|
|
|
555
581
|
timestamp_seconds: bigint;
|
|
556
582
|
}
|
|
557
583
|
export interface TargetVersionReset {
|
|
584
|
+
human_readable: [] | [string];
|
|
558
585
|
old_target_version: [] | [Version];
|
|
559
586
|
new_target_version: [] | [Version];
|
|
560
587
|
}
|
|
@@ -580,7 +607,7 @@ export interface TransferSnsTreasuryFunds {
|
|
|
580
607
|
export interface UpgradeInProgress {
|
|
581
608
|
mark_failed_at_seconds: bigint;
|
|
582
609
|
checking_upgrade_lock: bigint;
|
|
583
|
-
proposal_id: bigint;
|
|
610
|
+
proposal_id: [] | [bigint];
|
|
584
611
|
target_version: [] | [Version];
|
|
585
612
|
}
|
|
586
613
|
export interface UpgradeJournal {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 5d20289 (2024-11-21 tags: release-2024-11-21_03-11-24.04-base-kernel) 'rs/sns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type Account = record {
|
|
3
3
|
owner : opt principal;
|
|
4
4
|
subaccount : opt Subaccount;
|
|
@@ -10,6 +10,7 @@ type Action = variant {
|
|
|
10
10
|
ManageDappCanisterSettings : ManageDappCanisterSettings;
|
|
11
11
|
RemoveGenericNervousSystemFunction : nat64;
|
|
12
12
|
UpgradeSnsToNextVersion : record {};
|
|
13
|
+
AdvanceSnsTargetVersion : AdvanceSnsTargetVersion;
|
|
13
14
|
RegisterDappCanisters : RegisterDappCanisters;
|
|
14
15
|
TransferSnsTreasuryFunds : TransferSnsTreasuryFunds;
|
|
15
16
|
UpgradeSnsControlledCanister : UpgradeSnsControlledCanister;
|
|
@@ -25,6 +26,7 @@ type Action = variant {
|
|
|
25
26
|
type ActionAuxiliary = variant {
|
|
26
27
|
TransferSnsTreasuryFunds : MintSnsTokensActionAuxiliary;
|
|
27
28
|
MintSnsTokens : MintSnsTokensActionAuxiliary;
|
|
29
|
+
AdvanceSnsTargetVersion : AdvanceSnsTargetVersionActionAuxiliary;
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
type AddNeuronPermissions = record {
|
|
@@ -258,7 +260,12 @@ type GetProposalResponse = record {
|
|
|
258
260
|
|
|
259
261
|
type GetRunningSnsVersionResponse = record {
|
|
260
262
|
deployed_version : opt Version;
|
|
261
|
-
pending_version : opt
|
|
263
|
+
pending_version : opt record {
|
|
264
|
+
mark_failed_at_seconds : nat64;
|
|
265
|
+
checking_upgrade_lock : nat64;
|
|
266
|
+
proposal_id : nat64;
|
|
267
|
+
target_version : opt Version;
|
|
268
|
+
};
|
|
262
269
|
};
|
|
263
270
|
|
|
264
271
|
type GetSnsInitializationParametersResponse = record {
|
|
@@ -371,6 +378,19 @@ type ManageDappCanisterSettings = record {
|
|
|
371
378
|
compute_allocation : opt nat64;
|
|
372
379
|
};
|
|
373
380
|
|
|
381
|
+
type SnsVersion = record {
|
|
382
|
+
governance_wasm_hash : opt blob;
|
|
383
|
+
swap_wasm_hash : opt blob;
|
|
384
|
+
root_wasm_hash : opt blob;
|
|
385
|
+
index_wasm_hash : opt blob;
|
|
386
|
+
ledger_wasm_hash : opt blob;
|
|
387
|
+
archive_wasm_hash : opt blob;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
type AdvanceSnsTargetVersion = record {
|
|
391
|
+
new_target : opt SnsVersion;
|
|
392
|
+
};
|
|
393
|
+
|
|
374
394
|
type ManageLedgerParameters = record {
|
|
375
395
|
token_symbol : opt text;
|
|
376
396
|
transfer_fee : opt nat64;
|
|
@@ -424,6 +444,10 @@ type MintSnsTokensActionAuxiliary = record {
|
|
|
424
444
|
valuation : opt Valuation;
|
|
425
445
|
};
|
|
426
446
|
|
|
447
|
+
type AdvanceSnsTargetVersionActionAuxiliary = record {
|
|
448
|
+
target_version : opt SnsVersion;
|
|
449
|
+
};
|
|
450
|
+
|
|
427
451
|
type Motion = record {
|
|
428
452
|
motion_text : text;
|
|
429
453
|
};
|
|
@@ -675,14 +699,14 @@ type TransferSnsTreasuryFunds = record {
|
|
|
675
699
|
type UpgradeInProgress = record {
|
|
676
700
|
mark_failed_at_seconds : nat64;
|
|
677
701
|
checking_upgrade_lock : nat64;
|
|
678
|
-
proposal_id : nat64;
|
|
702
|
+
proposal_id : opt nat64;
|
|
679
703
|
target_version : opt Version;
|
|
680
704
|
};
|
|
681
705
|
|
|
682
706
|
type PendingVersion = record {
|
|
683
707
|
mark_failed_at_seconds : nat64;
|
|
684
708
|
checking_upgrade_lock : nat64;
|
|
685
|
-
proposal_id : nat64;
|
|
709
|
+
proposal_id : opt nat64;
|
|
686
710
|
target_version : opt Version;
|
|
687
711
|
};
|
|
688
712
|
|
|
@@ -757,6 +781,7 @@ type TargetVersionSet = record {
|
|
|
757
781
|
type TargetVersionReset = record {
|
|
758
782
|
new_target_version : opt Version;
|
|
759
783
|
old_target_version : opt Version;
|
|
784
|
+
human_readable : opt text;
|
|
760
785
|
};
|
|
761
786
|
|
|
762
787
|
type UpgradeStarted = record {
|
|
@@ -788,6 +813,7 @@ type GetUpgradeJournalResponse = record {
|
|
|
788
813
|
upgrade_steps : opt Versions;
|
|
789
814
|
response_timestamp_seconds : opt nat64;
|
|
790
815
|
target_version : opt Version;
|
|
816
|
+
deployed_version : opt Version;
|
|
791
817
|
upgrade_journal : opt UpgradeJournal;
|
|
792
818
|
};
|
|
793
819
|
|
|
@@ -98,6 +98,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
98
98
|
'upgrade_steps' : IDL.Opt(Versions),
|
|
99
99
|
});
|
|
100
100
|
const TargetVersionReset = IDL.Record({
|
|
101
|
+
'human_readable' : IDL.Opt(IDL.Text),
|
|
101
102
|
'old_target_version' : IDL.Opt(Version),
|
|
102
103
|
'new_target_version' : IDL.Opt(Version),
|
|
103
104
|
});
|
|
@@ -165,7 +166,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
165
166
|
const PendingVersion = IDL.Record({
|
|
166
167
|
'mark_failed_at_seconds' : IDL.Nat64,
|
|
167
168
|
'checking_upgrade_lock' : IDL.Nat64,
|
|
168
|
-
'proposal_id' : IDL.Nat64,
|
|
169
|
+
'proposal_id' : IDL.Opt(IDL.Nat64),
|
|
169
170
|
'target_version' : IDL.Opt(Version),
|
|
170
171
|
});
|
|
171
172
|
const GovernanceError = IDL.Record({
|
|
@@ -193,9 +194,21 @@ export const idlFactory = ({ IDL }) => {
|
|
|
193
194
|
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
194
195
|
'valuation' : IDL.Opt(Valuation),
|
|
195
196
|
});
|
|
197
|
+
const SnsVersion = IDL.Record({
|
|
198
|
+
'archive_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
199
|
+
'root_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
200
|
+
'swap_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
201
|
+
'ledger_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
202
|
+
'governance_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
203
|
+
'index_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
204
|
+
});
|
|
205
|
+
const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
|
|
206
|
+
'target_version' : IDL.Opt(SnsVersion),
|
|
207
|
+
});
|
|
196
208
|
const ActionAuxiliary = IDL.Variant({
|
|
197
209
|
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
198
210
|
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
211
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersionActionAuxiliary,
|
|
199
212
|
});
|
|
200
213
|
const Ballot = IDL.Record({
|
|
201
214
|
'vote' : IDL.Int32,
|
|
@@ -244,6 +257,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
244
257
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
245
258
|
'amount_e8s' : IDL.Opt(IDL.Nat64),
|
|
246
259
|
});
|
|
260
|
+
const AdvanceSnsTargetVersion = IDL.Record({
|
|
261
|
+
'new_target' : IDL.Opt(SnsVersion),
|
|
262
|
+
});
|
|
247
263
|
const ManageSnsMetadata = IDL.Record({
|
|
248
264
|
'url' : IDL.Opt(IDL.Text),
|
|
249
265
|
'logo' : IDL.Opt(IDL.Text),
|
|
@@ -272,6 +288,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
272
288
|
'UpgradeSnsControlledCanister' : UpgradeSnsControlledCanister,
|
|
273
289
|
'DeregisterDappCanisters' : DeregisterDappCanisters,
|
|
274
290
|
'MintSnsTokens' : MintSnsTokens,
|
|
291
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersion,
|
|
275
292
|
'Unspecified' : IDL.Record({}),
|
|
276
293
|
'ManageSnsMetadata' : ManageSnsMetadata,
|
|
277
294
|
'ExecuteGenericNervousSystemFunction' : ExecuteGenericNervousSystemFunction,
|
|
@@ -522,15 +539,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
522
539
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
523
540
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
524
541
|
});
|
|
525
|
-
const UpgradeInProgress = IDL.Record({
|
|
526
|
-
'mark_failed_at_seconds' : IDL.Nat64,
|
|
527
|
-
'checking_upgrade_lock' : IDL.Nat64,
|
|
528
|
-
'proposal_id' : IDL.Nat64,
|
|
529
|
-
'target_version' : IDL.Opt(Version),
|
|
530
|
-
});
|
|
531
542
|
const GetRunningSnsVersionResponse = IDL.Record({
|
|
532
543
|
'deployed_version' : IDL.Opt(Version),
|
|
533
|
-
'pending_version' : IDL.Opt(
|
|
544
|
+
'pending_version' : IDL.Opt(
|
|
545
|
+
IDL.Record({
|
|
546
|
+
'mark_failed_at_seconds' : IDL.Nat64,
|
|
547
|
+
'checking_upgrade_lock' : IDL.Nat64,
|
|
548
|
+
'proposal_id' : IDL.Nat64,
|
|
549
|
+
'target_version' : IDL.Opt(Version),
|
|
550
|
+
})
|
|
551
|
+
),
|
|
534
552
|
});
|
|
535
553
|
const GetSnsInitializationParametersResponse = IDL.Record({
|
|
536
554
|
'sns_initialization_parameters' : IDL.Text,
|
|
@@ -541,6 +559,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
541
559
|
'upgrade_journal' : IDL.Opt(UpgradeJournal),
|
|
542
560
|
'upgrade_steps' : IDL.Opt(Versions),
|
|
543
561
|
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
562
|
+
'deployed_version' : IDL.Opt(Version),
|
|
544
563
|
'target_version' : IDL.Opt(Version),
|
|
545
564
|
});
|
|
546
565
|
const ListNervousSystemFunctionsResponse = IDL.Record({
|
|
@@ -786,6 +805,7 @@ export const init = ({ IDL }) => {
|
|
|
786
805
|
'upgrade_steps' : IDL.Opt(Versions),
|
|
787
806
|
});
|
|
788
807
|
const TargetVersionReset = IDL.Record({
|
|
808
|
+
'human_readable' : IDL.Opt(IDL.Text),
|
|
789
809
|
'old_target_version' : IDL.Opt(Version),
|
|
790
810
|
'new_target_version' : IDL.Opt(Version),
|
|
791
811
|
});
|
|
@@ -853,7 +873,7 @@ export const init = ({ IDL }) => {
|
|
|
853
873
|
const PendingVersion = IDL.Record({
|
|
854
874
|
'mark_failed_at_seconds' : IDL.Nat64,
|
|
855
875
|
'checking_upgrade_lock' : IDL.Nat64,
|
|
856
|
-
'proposal_id' : IDL.Nat64,
|
|
876
|
+
'proposal_id' : IDL.Opt(IDL.Nat64),
|
|
857
877
|
'target_version' : IDL.Opt(Version),
|
|
858
878
|
});
|
|
859
879
|
const GovernanceError = IDL.Record({
|
|
@@ -881,9 +901,21 @@ export const init = ({ IDL }) => {
|
|
|
881
901
|
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
882
902
|
'valuation' : IDL.Opt(Valuation),
|
|
883
903
|
});
|
|
904
|
+
const SnsVersion = IDL.Record({
|
|
905
|
+
'archive_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
906
|
+
'root_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
907
|
+
'swap_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
908
|
+
'ledger_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
909
|
+
'governance_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
910
|
+
'index_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
911
|
+
});
|
|
912
|
+
const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
|
|
913
|
+
'target_version' : IDL.Opt(SnsVersion),
|
|
914
|
+
});
|
|
884
915
|
const ActionAuxiliary = IDL.Variant({
|
|
885
916
|
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
886
917
|
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
918
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersionActionAuxiliary,
|
|
887
919
|
});
|
|
888
920
|
const Ballot = IDL.Record({
|
|
889
921
|
'vote' : IDL.Int32,
|
|
@@ -932,6 +964,9 @@ export const init = ({ IDL }) => {
|
|
|
932
964
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
933
965
|
'amount_e8s' : IDL.Opt(IDL.Nat64),
|
|
934
966
|
});
|
|
967
|
+
const AdvanceSnsTargetVersion = IDL.Record({
|
|
968
|
+
'new_target' : IDL.Opt(SnsVersion),
|
|
969
|
+
});
|
|
935
970
|
const ManageSnsMetadata = IDL.Record({
|
|
936
971
|
'url' : IDL.Opt(IDL.Text),
|
|
937
972
|
'logo' : IDL.Opt(IDL.Text),
|
|
@@ -960,6 +995,7 @@ export const init = ({ IDL }) => {
|
|
|
960
995
|
'UpgradeSnsControlledCanister' : UpgradeSnsControlledCanister,
|
|
961
996
|
'DeregisterDappCanisters' : DeregisterDappCanisters,
|
|
962
997
|
'MintSnsTokens' : MintSnsTokens,
|
|
998
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersion,
|
|
963
999
|
'Unspecified' : IDL.Record({}),
|
|
964
1000
|
'ManageSnsMetadata' : ManageSnsMetadata,
|
|
965
1001
|
'ExecuteGenericNervousSystemFunction' : ExecuteGenericNervousSystemFunction,
|
|
@@ -98,6 +98,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
98
98
|
'upgrade_steps' : IDL.Opt(Versions),
|
|
99
99
|
});
|
|
100
100
|
const TargetVersionReset = IDL.Record({
|
|
101
|
+
'human_readable' : IDL.Opt(IDL.Text),
|
|
101
102
|
'old_target_version' : IDL.Opt(Version),
|
|
102
103
|
'new_target_version' : IDL.Opt(Version),
|
|
103
104
|
});
|
|
@@ -165,7 +166,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
165
166
|
const PendingVersion = IDL.Record({
|
|
166
167
|
'mark_failed_at_seconds' : IDL.Nat64,
|
|
167
168
|
'checking_upgrade_lock' : IDL.Nat64,
|
|
168
|
-
'proposal_id' : IDL.Nat64,
|
|
169
|
+
'proposal_id' : IDL.Opt(IDL.Nat64),
|
|
169
170
|
'target_version' : IDL.Opt(Version),
|
|
170
171
|
});
|
|
171
172
|
const GovernanceError = IDL.Record({
|
|
@@ -193,9 +194,21 @@ export const idlFactory = ({ IDL }) => {
|
|
|
193
194
|
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
194
195
|
'valuation' : IDL.Opt(Valuation),
|
|
195
196
|
});
|
|
197
|
+
const SnsVersion = IDL.Record({
|
|
198
|
+
'archive_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
199
|
+
'root_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
200
|
+
'swap_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
201
|
+
'ledger_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
202
|
+
'governance_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
203
|
+
'index_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
204
|
+
});
|
|
205
|
+
const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
|
|
206
|
+
'target_version' : IDL.Opt(SnsVersion),
|
|
207
|
+
});
|
|
196
208
|
const ActionAuxiliary = IDL.Variant({
|
|
197
209
|
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
198
210
|
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
211
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersionActionAuxiliary,
|
|
199
212
|
});
|
|
200
213
|
const Ballot = IDL.Record({
|
|
201
214
|
'vote' : IDL.Int32,
|
|
@@ -244,6 +257,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
244
257
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
245
258
|
'amount_e8s' : IDL.Opt(IDL.Nat64),
|
|
246
259
|
});
|
|
260
|
+
const AdvanceSnsTargetVersion = IDL.Record({
|
|
261
|
+
'new_target' : IDL.Opt(SnsVersion),
|
|
262
|
+
});
|
|
247
263
|
const ManageSnsMetadata = IDL.Record({
|
|
248
264
|
'url' : IDL.Opt(IDL.Text),
|
|
249
265
|
'logo' : IDL.Opt(IDL.Text),
|
|
@@ -272,6 +288,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
272
288
|
'UpgradeSnsControlledCanister' : UpgradeSnsControlledCanister,
|
|
273
289
|
'DeregisterDappCanisters' : DeregisterDappCanisters,
|
|
274
290
|
'MintSnsTokens' : MintSnsTokens,
|
|
291
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersion,
|
|
275
292
|
'Unspecified' : IDL.Record({}),
|
|
276
293
|
'ManageSnsMetadata' : ManageSnsMetadata,
|
|
277
294
|
'ExecuteGenericNervousSystemFunction' : ExecuteGenericNervousSystemFunction,
|
|
@@ -533,15 +550,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
533
550
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
534
551
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
535
552
|
});
|
|
536
|
-
const UpgradeInProgress = IDL.Record({
|
|
537
|
-
'mark_failed_at_seconds' : IDL.Nat64,
|
|
538
|
-
'checking_upgrade_lock' : IDL.Nat64,
|
|
539
|
-
'proposal_id' : IDL.Nat64,
|
|
540
|
-
'target_version' : IDL.Opt(Version),
|
|
541
|
-
});
|
|
542
553
|
const GetRunningSnsVersionResponse = IDL.Record({
|
|
543
554
|
'deployed_version' : IDL.Opt(Version),
|
|
544
|
-
'pending_version' : IDL.Opt(
|
|
555
|
+
'pending_version' : IDL.Opt(
|
|
556
|
+
IDL.Record({
|
|
557
|
+
'mark_failed_at_seconds' : IDL.Nat64,
|
|
558
|
+
'checking_upgrade_lock' : IDL.Nat64,
|
|
559
|
+
'proposal_id' : IDL.Nat64,
|
|
560
|
+
'target_version' : IDL.Opt(Version),
|
|
561
|
+
})
|
|
562
|
+
),
|
|
545
563
|
});
|
|
546
564
|
const GetSnsInitializationParametersResponse = IDL.Record({
|
|
547
565
|
'sns_initialization_parameters' : IDL.Text,
|
|
@@ -552,6 +570,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
552
570
|
'upgrade_journal' : IDL.Opt(UpgradeJournal),
|
|
553
571
|
'upgrade_steps' : IDL.Opt(Versions),
|
|
554
572
|
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
573
|
+
'deployed_version' : IDL.Opt(Version),
|
|
555
574
|
'target_version' : IDL.Opt(Version),
|
|
556
575
|
});
|
|
557
576
|
const ListNervousSystemFunctionsResponse = IDL.Record({
|
|
@@ -801,6 +820,7 @@ export const init = ({ IDL }) => {
|
|
|
801
820
|
'upgrade_steps' : IDL.Opt(Versions),
|
|
802
821
|
});
|
|
803
822
|
const TargetVersionReset = IDL.Record({
|
|
823
|
+
'human_readable' : IDL.Opt(IDL.Text),
|
|
804
824
|
'old_target_version' : IDL.Opt(Version),
|
|
805
825
|
'new_target_version' : IDL.Opt(Version),
|
|
806
826
|
});
|
|
@@ -868,7 +888,7 @@ export const init = ({ IDL }) => {
|
|
|
868
888
|
const PendingVersion = IDL.Record({
|
|
869
889
|
'mark_failed_at_seconds' : IDL.Nat64,
|
|
870
890
|
'checking_upgrade_lock' : IDL.Nat64,
|
|
871
|
-
'proposal_id' : IDL.Nat64,
|
|
891
|
+
'proposal_id' : IDL.Opt(IDL.Nat64),
|
|
872
892
|
'target_version' : IDL.Opt(Version),
|
|
873
893
|
});
|
|
874
894
|
const GovernanceError = IDL.Record({
|
|
@@ -896,9 +916,21 @@ export const init = ({ IDL }) => {
|
|
|
896
916
|
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
897
917
|
'valuation' : IDL.Opt(Valuation),
|
|
898
918
|
});
|
|
919
|
+
const SnsVersion = IDL.Record({
|
|
920
|
+
'archive_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
921
|
+
'root_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
922
|
+
'swap_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
923
|
+
'ledger_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
924
|
+
'governance_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
925
|
+
'index_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
926
|
+
});
|
|
927
|
+
const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
|
|
928
|
+
'target_version' : IDL.Opt(SnsVersion),
|
|
929
|
+
});
|
|
899
930
|
const ActionAuxiliary = IDL.Variant({
|
|
900
931
|
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
901
932
|
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
933
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersionActionAuxiliary,
|
|
902
934
|
});
|
|
903
935
|
const Ballot = IDL.Record({
|
|
904
936
|
'vote' : IDL.Int32,
|
|
@@ -947,6 +979,9 @@ export const init = ({ IDL }) => {
|
|
|
947
979
|
'memo' : IDL.Opt(IDL.Nat64),
|
|
948
980
|
'amount_e8s' : IDL.Opt(IDL.Nat64),
|
|
949
981
|
});
|
|
982
|
+
const AdvanceSnsTargetVersion = IDL.Record({
|
|
983
|
+
'new_target' : IDL.Opt(SnsVersion),
|
|
984
|
+
});
|
|
950
985
|
const ManageSnsMetadata = IDL.Record({
|
|
951
986
|
'url' : IDL.Opt(IDL.Text),
|
|
952
987
|
'logo' : IDL.Opt(IDL.Text),
|
|
@@ -975,6 +1010,7 @@ export const init = ({ IDL }) => {
|
|
|
975
1010
|
'UpgradeSnsControlledCanister' : UpgradeSnsControlledCanister,
|
|
976
1011
|
'DeregisterDappCanisters' : DeregisterDappCanisters,
|
|
977
1012
|
'MintSnsTokens' : MintSnsTokens,
|
|
1013
|
+
'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersion,
|
|
978
1014
|
'Unspecified' : IDL.Record({}),
|
|
979
1015
|
'ManageSnsMetadata' : ManageSnsMetadata,
|
|
980
1016
|
'ExecuteGenericNervousSystemFunction' : ExecuteGenericNervousSystemFunction,
|