@dfinity/sns 3.2.2 → 3.2.3
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/LICENSE +1 -1
- package/dist/candid/sns_governance.certified.idl.js +56 -18
- package/dist/candid/sns_governance.d.ts +30 -1
- package/dist/candid/sns_governance.did +32 -2
- package/dist/candid/sns_governance.idl.js +56 -18
- package/dist/candid/sns_governance_test.certified.idl.js +65 -18
- package/dist/candid/sns_governance_test.d.ts +38 -1
- package/dist/candid/sns_governance_test.did +36 -2
- package/dist/candid/sns_governance_test.idl.js +65 -18
- package/dist/candid/sns_root.did +1 -1
- package/dist/candid/sns_swap.certified.idl.js +7 -0
- package/dist/candid/sns_swap.d.ts +7 -0
- package/dist/candid/sns_swap.did +9 -1
- package/dist/candid/sns_swap.idl.js +7 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-4I3PWDTO.js +2 -0
- package/dist/esm/chunk-4I3PWDTO.js.map +7 -0
- package/dist/esm/chunk-I6XQKGWZ.js +2 -0
- package/dist/esm/chunk-I6XQKGWZ.js.map +7 -0
- package/dist/esm/{chunk-7V3B657R.js → chunk-UV6BDZNF.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/dist/esm/swap.canister.js +1 -1
- package/package.json +3 -3
- package/dist/esm/chunk-JY2TPU5D.js +0 -2
- package/dist/esm/chunk-JY2TPU5D.js.map +0 -7
- package/dist/esm/chunk-ODQ7CAD7.js +0 -2
- package/dist/esm/chunk-ODQ7CAD7.js.map +0 -7
- /package/dist/esm/{chunk-7V3B657R.js.map → chunk-UV6BDZNF.js.map} +0 -0
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright 2021 DFINITY
|
|
189
|
+
Copyright 2021 DFINITY Stiftung.
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_governance.did */
|
|
2
2
|
export const idlFactory = ({ IDL }) => {
|
|
3
|
+
const Timers = IDL.Record({
|
|
4
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
5
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
6
|
+
});
|
|
7
|
+
const Version = IDL.Record({
|
|
8
|
+
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
9
|
+
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
10
|
+
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
11
|
+
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
12
|
+
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
13
|
+
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
14
|
+
});
|
|
15
|
+
const Versions = IDL.Record({ 'versions' : IDL.Vec(Version) });
|
|
16
|
+
const CachedUpgradeSteps = IDL.Record({
|
|
17
|
+
'upgrade_steps' : IDL.Opt(Versions),
|
|
18
|
+
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
19
|
+
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
20
|
+
});
|
|
3
21
|
const GenericNervousSystemFunction = IDL.Record({
|
|
4
22
|
'validator_canister_id' : IDL.Opt(IDL.Principal),
|
|
5
23
|
'target_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -81,14 +99,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
81
99
|
'maturity_modulation_disabled' : IDL.Opt(IDL.Bool),
|
|
82
100
|
'max_number_of_principals_per_neuron' : IDL.Opt(IDL.Nat64),
|
|
83
101
|
});
|
|
84
|
-
const Version = IDL.Record({
|
|
85
|
-
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
86
|
-
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
87
|
-
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
88
|
-
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
89
|
-
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
90
|
-
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
91
|
-
});
|
|
92
102
|
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
93
103
|
const RewardEvent = IDL.Record({
|
|
94
104
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
@@ -357,6 +367,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
357
367
|
});
|
|
358
368
|
const Governance = IDL.Record({
|
|
359
369
|
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
370
|
+
'timers' : IDL.Opt(Timers),
|
|
371
|
+
'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
|
|
360
372
|
'id_to_nervous_system_functions' : IDL.Vec(
|
|
361
373
|
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
|
|
362
374
|
),
|
|
@@ -374,8 +386,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
374
386
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
375
387
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
376
388
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
377
|
-
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
378
389
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
390
|
+
'target_version' : IDL.Opt(Version),
|
|
379
391
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
380
392
|
});
|
|
381
393
|
const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
|
|
@@ -463,6 +475,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
463
475
|
const GetSnsInitializationParametersResponse = IDL.Record({
|
|
464
476
|
'sns_initialization_parameters' : IDL.Text,
|
|
465
477
|
});
|
|
478
|
+
const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
|
|
479
|
+
const GetUpgradeJournalRequest = IDL.Record({});
|
|
480
|
+
const GetUpgradeJournalResponse = IDL.Record({
|
|
481
|
+
'upgrade_steps' : IDL.Opt(Versions),
|
|
482
|
+
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
483
|
+
'target_version' : IDL.Opt(Version),
|
|
484
|
+
});
|
|
466
485
|
const ListNervousSystemFunctionsResponse = IDL.Record({
|
|
467
486
|
'reserved_ids' : IDL.Vec(IDL.Nat64),
|
|
468
487
|
'functions' : IDL.Vec(NervousSystemFunction),
|
|
@@ -581,6 +600,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
581
600
|
[GetSnsInitializationParametersResponse],
|
|
582
601
|
[],
|
|
583
602
|
),
|
|
603
|
+
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []),
|
|
604
|
+
'get_upgrade_journal' : IDL.Func(
|
|
605
|
+
[GetUpgradeJournalRequest],
|
|
606
|
+
[GetUpgradeJournalResponse],
|
|
607
|
+
[],
|
|
608
|
+
),
|
|
584
609
|
'list_nervous_system_functions' : IDL.Func(
|
|
585
610
|
[],
|
|
586
611
|
[ListNervousSystemFunctionsResponse],
|
|
@@ -589,10 +614,29 @@ export const idlFactory = ({ IDL }) => {
|
|
|
589
614
|
'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
|
|
590
615
|
'list_proposals' : IDL.Func([ListProposals], [ListProposalsResponse], []),
|
|
591
616
|
'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
|
|
617
|
+
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
592
618
|
'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []),
|
|
593
619
|
});
|
|
594
620
|
};
|
|
595
621
|
export const init = ({ IDL }) => {
|
|
622
|
+
const Timers = IDL.Record({
|
|
623
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
624
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
625
|
+
});
|
|
626
|
+
const Version = IDL.Record({
|
|
627
|
+
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
628
|
+
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
629
|
+
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
630
|
+
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
631
|
+
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
632
|
+
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
633
|
+
});
|
|
634
|
+
const Versions = IDL.Record({ 'versions' : IDL.Vec(Version) });
|
|
635
|
+
const CachedUpgradeSteps = IDL.Record({
|
|
636
|
+
'upgrade_steps' : IDL.Opt(Versions),
|
|
637
|
+
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
638
|
+
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
639
|
+
});
|
|
596
640
|
const GenericNervousSystemFunction = IDL.Record({
|
|
597
641
|
'validator_canister_id' : IDL.Opt(IDL.Principal),
|
|
598
642
|
'target_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -674,14 +718,6 @@ export const init = ({ IDL }) => {
|
|
|
674
718
|
'maturity_modulation_disabled' : IDL.Opt(IDL.Bool),
|
|
675
719
|
'max_number_of_principals_per_neuron' : IDL.Opt(IDL.Nat64),
|
|
676
720
|
});
|
|
677
|
-
const Version = IDL.Record({
|
|
678
|
-
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
679
|
-
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
680
|
-
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
681
|
-
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
682
|
-
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
683
|
-
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
684
|
-
});
|
|
685
721
|
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
686
722
|
const RewardEvent = IDL.Record({
|
|
687
723
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
@@ -950,6 +986,8 @@ export const init = ({ IDL }) => {
|
|
|
950
986
|
});
|
|
951
987
|
const Governance = IDL.Record({
|
|
952
988
|
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
989
|
+
'timers' : IDL.Opt(Timers),
|
|
990
|
+
'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
|
|
953
991
|
'id_to_nervous_system_functions' : IDL.Vec(
|
|
954
992
|
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
|
|
955
993
|
),
|
|
@@ -967,8 +1005,8 @@ export const init = ({ IDL }) => {
|
|
|
967
1005
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
968
1006
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
969
1007
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
970
|
-
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
971
1008
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
1009
|
+
'target_version' : IDL.Opt(Version),
|
|
972
1010
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
973
1011
|
});
|
|
974
1012
|
return [Governance];
|
|
@@ -44,6 +44,11 @@ export interface Ballot {
|
|
|
44
44
|
voting_power: bigint;
|
|
45
45
|
}
|
|
46
46
|
export type By = { MemoAndController: MemoAndController } | { NeuronId: {} };
|
|
47
|
+
export interface CachedUpgradeSteps {
|
|
48
|
+
upgrade_steps: [] | [Versions];
|
|
49
|
+
response_timestamp_seconds: [] | [bigint];
|
|
50
|
+
requested_timestamp_seconds: [] | [bigint];
|
|
51
|
+
}
|
|
47
52
|
export interface CanisterStatusResultV2 {
|
|
48
53
|
status: CanisterStatusType;
|
|
49
54
|
memory_size: bigint;
|
|
@@ -217,8 +222,19 @@ export interface GetRunningSnsVersionResponse {
|
|
|
217
222
|
export interface GetSnsInitializationParametersResponse {
|
|
218
223
|
sns_initialization_parameters: string;
|
|
219
224
|
}
|
|
225
|
+
export interface GetTimersResponse {
|
|
226
|
+
timers: [] | [Timers];
|
|
227
|
+
}
|
|
228
|
+
export type GetUpgradeJournalRequest = {};
|
|
229
|
+
export interface GetUpgradeJournalResponse {
|
|
230
|
+
upgrade_steps: [] | [Versions];
|
|
231
|
+
response_timestamp_seconds: [] | [bigint];
|
|
232
|
+
target_version: [] | [Version];
|
|
233
|
+
}
|
|
220
234
|
export interface Governance {
|
|
221
235
|
root_canister_id: [] | [Principal];
|
|
236
|
+
timers: [] | [Timers];
|
|
237
|
+
cached_upgrade_steps: [] | [CachedUpgradeSteps];
|
|
222
238
|
id_to_nervous_system_functions: Array<[bigint, NervousSystemFunction]>;
|
|
223
239
|
metrics: [] | [GovernanceCachedMetrics];
|
|
224
240
|
maturity_modulation: [] | [MaturityModulation];
|
|
@@ -234,8 +250,8 @@ export interface Governance {
|
|
|
234
250
|
proposals: Array<[bigint, ProposalData]>;
|
|
235
251
|
in_flight_commands: Array<[string, NeuronInFlightCommand]>;
|
|
236
252
|
sns_metadata: [] | [ManageSnsMetadata];
|
|
237
|
-
migrated_root_wasm_memory_limit: [] | [boolean];
|
|
238
253
|
neurons: Array<[string, Neuron]>;
|
|
254
|
+
target_version: [] | [Version];
|
|
239
255
|
genesis_timestamp_seconds: bigint;
|
|
240
256
|
}
|
|
241
257
|
export interface GovernanceCachedMetrics {
|
|
@@ -530,6 +546,10 @@ export interface Tally {
|
|
|
530
546
|
total: bigint;
|
|
531
547
|
timestamp_seconds: bigint;
|
|
532
548
|
}
|
|
549
|
+
export interface Timers {
|
|
550
|
+
last_spawned_timestamp_seconds: [] | [bigint];
|
|
551
|
+
last_reset_timestamp_seconds: [] | [bigint];
|
|
552
|
+
}
|
|
533
553
|
export interface Tokens {
|
|
534
554
|
e8s: [] | [bigint];
|
|
535
555
|
}
|
|
@@ -571,6 +591,9 @@ export interface Version {
|
|
|
571
591
|
governance_wasm_hash: Uint8Array | number[];
|
|
572
592
|
index_wasm_hash: Uint8Array | number[];
|
|
573
593
|
}
|
|
594
|
+
export interface Versions {
|
|
595
|
+
versions: Array<Version>;
|
|
596
|
+
}
|
|
574
597
|
export interface VotingRewardsParameters {
|
|
575
598
|
final_reward_rate_basis_points: [] | [bigint];
|
|
576
599
|
initial_reward_rate_basis_points: [] | [bigint];
|
|
@@ -600,6 +623,11 @@ export interface _SERVICE {
|
|
|
600
623
|
[{}],
|
|
601
624
|
GetSnsInitializationParametersResponse
|
|
602
625
|
>;
|
|
626
|
+
get_timers: ActorMethod<[{}], GetTimersResponse>;
|
|
627
|
+
get_upgrade_journal: ActorMethod<
|
|
628
|
+
[GetUpgradeJournalRequest],
|
|
629
|
+
GetUpgradeJournalResponse
|
|
630
|
+
>;
|
|
603
631
|
list_nervous_system_functions: ActorMethod<
|
|
604
632
|
[],
|
|
605
633
|
ListNervousSystemFunctionsResponse
|
|
@@ -607,6 +635,7 @@ export interface _SERVICE {
|
|
|
607
635
|
list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>;
|
|
608
636
|
list_proposals: ActorMethod<[ListProposals], ListProposalsResponse>;
|
|
609
637
|
manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
|
|
638
|
+
reset_timers: ActorMethod<[{}], {}>;
|
|
610
639
|
set_mode: ActorMethod<[SetMode], {}>;
|
|
611
640
|
}
|
|
612
641
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/sns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type Account = record {
|
|
3
3
|
owner : opt principal;
|
|
4
4
|
subaccount : opt Subaccount;
|
|
@@ -265,6 +265,12 @@ type GetSnsInitializationParametersResponse = record {
|
|
|
265
265
|
sns_initialization_parameters : text;
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
+
type CachedUpgradeSteps = record {
|
|
269
|
+
upgrade_steps : opt Versions;
|
|
270
|
+
requested_timestamp_seconds : opt nat64;
|
|
271
|
+
response_timestamp_seconds : opt nat64;
|
|
272
|
+
};
|
|
273
|
+
|
|
268
274
|
type Governance = record {
|
|
269
275
|
root_canister_id : opt principal;
|
|
270
276
|
id_to_nervous_system_functions : vec record { nat64; NervousSystemFunction };
|
|
@@ -274,6 +280,7 @@ type Governance = record {
|
|
|
274
280
|
parameters : opt NervousSystemParameters;
|
|
275
281
|
is_finalizing_disburse_maturity : opt bool;
|
|
276
282
|
deployed_version : opt Version;
|
|
283
|
+
cached_upgrade_steps : opt CachedUpgradeSteps;
|
|
277
284
|
sns_initialization_parameters : text;
|
|
278
285
|
latest_reward_event : opt RewardEvent;
|
|
279
286
|
pending_version : opt UpgradeInProgress;
|
|
@@ -284,7 +291,17 @@ type Governance = record {
|
|
|
284
291
|
sns_metadata : opt ManageSnsMetadata;
|
|
285
292
|
neurons : vec record { text; Neuron };
|
|
286
293
|
genesis_timestamp_seconds : nat64;
|
|
287
|
-
|
|
294
|
+
target_version: opt Version;
|
|
295
|
+
timers : opt Timers;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
type Timers = record {
|
|
299
|
+
last_reset_timestamp_seconds : opt nat64;
|
|
300
|
+
last_spawned_timestamp_seconds : opt nat64;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
type GetTimersResponse = record {
|
|
304
|
+
timers : opt Timers;
|
|
288
305
|
};
|
|
289
306
|
|
|
290
307
|
type GovernanceCachedMetrics = record {
|
|
@@ -689,6 +706,8 @@ type Version = record {
|
|
|
689
706
|
index_wasm_hash : blob;
|
|
690
707
|
};
|
|
691
708
|
|
|
709
|
+
type Versions = record { versions : vec Version };
|
|
710
|
+
|
|
692
711
|
type VotingRewardsParameters = record {
|
|
693
712
|
final_reward_rate_basis_points : opt nat64;
|
|
694
713
|
initial_reward_rate_basis_points : opt nat64;
|
|
@@ -700,6 +719,14 @@ type WaitForQuietState = record {
|
|
|
700
719
|
current_deadline_timestamp_seconds : nat64;
|
|
701
720
|
};
|
|
702
721
|
|
|
722
|
+
type GetUpgradeJournalRequest = record {};
|
|
723
|
+
|
|
724
|
+
type GetUpgradeJournalResponse = record {
|
|
725
|
+
upgrade_steps : opt Versions;
|
|
726
|
+
response_timestamp_seconds : opt nat64;
|
|
727
|
+
target_version : opt Version;
|
|
728
|
+
};
|
|
729
|
+
|
|
703
730
|
service : (Governance) -> {
|
|
704
731
|
claim_swap_neurons : (ClaimSwapNeuronsRequest) -> (ClaimSwapNeuronsResponse);
|
|
705
732
|
fail_stuck_upgrade_in_progress : (record {}) -> (record {});
|
|
@@ -716,6 +743,7 @@ service : (Governance) -> {
|
|
|
716
743
|
get_sns_initialization_parameters : (record {}) -> (
|
|
717
744
|
GetSnsInitializationParametersResponse,
|
|
718
745
|
) query;
|
|
746
|
+
get_upgrade_journal : (GetUpgradeJournalRequest) -> (GetUpgradeJournalResponse) query;
|
|
719
747
|
list_nervous_system_functions : () -> (
|
|
720
748
|
ListNervousSystemFunctionsResponse,
|
|
721
749
|
) query;
|
|
@@ -723,4 +751,6 @@ service : (Governance) -> {
|
|
|
723
751
|
list_proposals : (ListProposals) -> (ListProposalsResponse) query;
|
|
724
752
|
manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
|
|
725
753
|
set_mode : (SetMode) -> (record {});
|
|
754
|
+
reset_timers : (record {}) -> (record {});
|
|
755
|
+
get_timers : (record {}) -> (GetTimersResponse) query;
|
|
726
756
|
}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_governance.did */
|
|
2
2
|
export const idlFactory = ({ IDL }) => {
|
|
3
|
+
const Timers = IDL.Record({
|
|
4
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
5
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
6
|
+
});
|
|
7
|
+
const Version = IDL.Record({
|
|
8
|
+
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
9
|
+
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
10
|
+
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
11
|
+
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
12
|
+
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
13
|
+
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
14
|
+
});
|
|
15
|
+
const Versions = IDL.Record({ 'versions' : IDL.Vec(Version) });
|
|
16
|
+
const CachedUpgradeSteps = IDL.Record({
|
|
17
|
+
'upgrade_steps' : IDL.Opt(Versions),
|
|
18
|
+
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
19
|
+
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
20
|
+
});
|
|
3
21
|
const GenericNervousSystemFunction = IDL.Record({
|
|
4
22
|
'validator_canister_id' : IDL.Opt(IDL.Principal),
|
|
5
23
|
'target_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -81,14 +99,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
81
99
|
'maturity_modulation_disabled' : IDL.Opt(IDL.Bool),
|
|
82
100
|
'max_number_of_principals_per_neuron' : IDL.Opt(IDL.Nat64),
|
|
83
101
|
});
|
|
84
|
-
const Version = IDL.Record({
|
|
85
|
-
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
86
|
-
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
87
|
-
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
88
|
-
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
89
|
-
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
90
|
-
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
91
|
-
});
|
|
92
102
|
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
93
103
|
const RewardEvent = IDL.Record({
|
|
94
104
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
@@ -357,6 +367,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
357
367
|
});
|
|
358
368
|
const Governance = IDL.Record({
|
|
359
369
|
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
370
|
+
'timers' : IDL.Opt(Timers),
|
|
371
|
+
'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
|
|
360
372
|
'id_to_nervous_system_functions' : IDL.Vec(
|
|
361
373
|
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
|
|
362
374
|
),
|
|
@@ -374,8 +386,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
374
386
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
375
387
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
376
388
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
377
|
-
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
378
389
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
390
|
+
'target_version' : IDL.Opt(Version),
|
|
379
391
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
380
392
|
});
|
|
381
393
|
const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
|
|
@@ -463,6 +475,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
463
475
|
const GetSnsInitializationParametersResponse = IDL.Record({
|
|
464
476
|
'sns_initialization_parameters' : IDL.Text,
|
|
465
477
|
});
|
|
478
|
+
const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
|
|
479
|
+
const GetUpgradeJournalRequest = IDL.Record({});
|
|
480
|
+
const GetUpgradeJournalResponse = IDL.Record({
|
|
481
|
+
'upgrade_steps' : IDL.Opt(Versions),
|
|
482
|
+
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
483
|
+
'target_version' : IDL.Opt(Version),
|
|
484
|
+
});
|
|
466
485
|
const ListNervousSystemFunctionsResponse = IDL.Record({
|
|
467
486
|
'reserved_ids' : IDL.Vec(IDL.Nat64),
|
|
468
487
|
'functions' : IDL.Vec(NervousSystemFunction),
|
|
@@ -585,6 +604,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
585
604
|
[GetSnsInitializationParametersResponse],
|
|
586
605
|
['query'],
|
|
587
606
|
),
|
|
607
|
+
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], ['query']),
|
|
608
|
+
'get_upgrade_journal' : IDL.Func(
|
|
609
|
+
[GetUpgradeJournalRequest],
|
|
610
|
+
[GetUpgradeJournalResponse],
|
|
611
|
+
['query'],
|
|
612
|
+
),
|
|
588
613
|
'list_nervous_system_functions' : IDL.Func(
|
|
589
614
|
[],
|
|
590
615
|
[ListNervousSystemFunctionsResponse],
|
|
@@ -597,10 +622,29 @@ export const idlFactory = ({ IDL }) => {
|
|
|
597
622
|
['query'],
|
|
598
623
|
),
|
|
599
624
|
'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
|
|
625
|
+
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
600
626
|
'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []),
|
|
601
627
|
});
|
|
602
628
|
};
|
|
603
629
|
export const init = ({ IDL }) => {
|
|
630
|
+
const Timers = IDL.Record({
|
|
631
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
632
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
633
|
+
});
|
|
634
|
+
const Version = IDL.Record({
|
|
635
|
+
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
636
|
+
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
637
|
+
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
638
|
+
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
639
|
+
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
640
|
+
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
641
|
+
});
|
|
642
|
+
const Versions = IDL.Record({ 'versions' : IDL.Vec(Version) });
|
|
643
|
+
const CachedUpgradeSteps = IDL.Record({
|
|
644
|
+
'upgrade_steps' : IDL.Opt(Versions),
|
|
645
|
+
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
646
|
+
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
647
|
+
});
|
|
604
648
|
const GenericNervousSystemFunction = IDL.Record({
|
|
605
649
|
'validator_canister_id' : IDL.Opt(IDL.Principal),
|
|
606
650
|
'target_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -682,14 +726,6 @@ export const init = ({ IDL }) => {
|
|
|
682
726
|
'maturity_modulation_disabled' : IDL.Opt(IDL.Bool),
|
|
683
727
|
'max_number_of_principals_per_neuron' : IDL.Opt(IDL.Nat64),
|
|
684
728
|
});
|
|
685
|
-
const Version = IDL.Record({
|
|
686
|
-
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
687
|
-
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
688
|
-
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
689
|
-
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
690
|
-
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
691
|
-
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
692
|
-
});
|
|
693
729
|
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
694
730
|
const RewardEvent = IDL.Record({
|
|
695
731
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
@@ -958,6 +994,8 @@ export const init = ({ IDL }) => {
|
|
|
958
994
|
});
|
|
959
995
|
const Governance = IDL.Record({
|
|
960
996
|
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
997
|
+
'timers' : IDL.Opt(Timers),
|
|
998
|
+
'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
|
|
961
999
|
'id_to_nervous_system_functions' : IDL.Vec(
|
|
962
1000
|
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
|
|
963
1001
|
),
|
|
@@ -975,8 +1013,8 @@ export const init = ({ IDL }) => {
|
|
|
975
1013
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
976
1014
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
977
1015
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
978
|
-
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
979
1016
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
1017
|
+
'target_version' : IDL.Opt(Version),
|
|
980
1018
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
981
1019
|
});
|
|
982
1020
|
return [Governance];
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_governance_test.did */
|
|
2
2
|
export const idlFactory = ({ IDL }) => {
|
|
3
|
+
const Timers = IDL.Record({
|
|
4
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
5
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
6
|
+
});
|
|
7
|
+
const Version = IDL.Record({
|
|
8
|
+
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
9
|
+
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
10
|
+
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
11
|
+
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
12
|
+
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
13
|
+
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
14
|
+
});
|
|
15
|
+
const Versions = IDL.Record({ 'versions' : IDL.Vec(Version) });
|
|
16
|
+
const CachedUpgradeSteps = IDL.Record({
|
|
17
|
+
'upgrade_steps' : IDL.Opt(Versions),
|
|
18
|
+
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
19
|
+
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
20
|
+
});
|
|
3
21
|
const GenericNervousSystemFunction = IDL.Record({
|
|
4
22
|
'validator_canister_id' : IDL.Opt(IDL.Principal),
|
|
5
23
|
'target_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -81,14 +99,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
81
99
|
'maturity_modulation_disabled' : IDL.Opt(IDL.Bool),
|
|
82
100
|
'max_number_of_principals_per_neuron' : IDL.Opt(IDL.Nat64),
|
|
83
101
|
});
|
|
84
|
-
const Version = IDL.Record({
|
|
85
|
-
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
86
|
-
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
87
|
-
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
88
|
-
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
89
|
-
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
90
|
-
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
91
|
-
});
|
|
92
102
|
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
93
103
|
const RewardEvent = IDL.Record({
|
|
94
104
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
@@ -357,6 +367,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
357
367
|
});
|
|
358
368
|
const Governance = IDL.Record({
|
|
359
369
|
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
370
|
+
'timers' : IDL.Opt(Timers),
|
|
371
|
+
'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
|
|
360
372
|
'id_to_nervous_system_functions' : IDL.Vec(
|
|
361
373
|
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
|
|
362
374
|
),
|
|
@@ -374,8 +386,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
374
386
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
375
387
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
376
388
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
377
|
-
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
378
389
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
390
|
+
'target_version' : IDL.Opt(Version),
|
|
379
391
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
380
392
|
});
|
|
381
393
|
const AddMaturityRequest = IDL.Record({
|
|
@@ -385,6 +397,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
385
397
|
const AddMaturityResponse = IDL.Record({
|
|
386
398
|
'new_maturity_e8s' : IDL.Opt(IDL.Nat64),
|
|
387
399
|
});
|
|
400
|
+
const AdvanceTargetVersionRequest = IDL.Record({
|
|
401
|
+
'target_version' : IDL.Opt(Version),
|
|
402
|
+
});
|
|
403
|
+
const AdvanceTargetVersionResponse = IDL.Record({});
|
|
388
404
|
const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
|
|
389
405
|
const NeuronsFund = IDL.Record({
|
|
390
406
|
'nns_neuron_hotkeys' : IDL.Opt(Principals),
|
|
@@ -470,6 +486,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
470
486
|
const GetSnsInitializationParametersResponse = IDL.Record({
|
|
471
487
|
'sns_initialization_parameters' : IDL.Text,
|
|
472
488
|
});
|
|
489
|
+
const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
|
|
490
|
+
const GetUpgradeJournalRequest = IDL.Record({});
|
|
491
|
+
const GetUpgradeJournalResponse = IDL.Record({
|
|
492
|
+
'upgrade_steps' : IDL.Opt(Versions),
|
|
493
|
+
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
494
|
+
'target_version' : IDL.Opt(Version),
|
|
495
|
+
});
|
|
473
496
|
const ListNervousSystemFunctionsResponse = IDL.Record({
|
|
474
497
|
'reserved_ids' : IDL.Vec(IDL.Nat64),
|
|
475
498
|
'functions' : IDL.Vec(NervousSystemFunction),
|
|
@@ -552,6 +575,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
552
575
|
const SetMode = IDL.Record({ 'mode' : IDL.Int32 });
|
|
553
576
|
return IDL.Service({
|
|
554
577
|
'add_maturity' : IDL.Func([AddMaturityRequest], [AddMaturityResponse], []),
|
|
578
|
+
'advance_target_version' : IDL.Func(
|
|
579
|
+
[AdvanceTargetVersionRequest],
|
|
580
|
+
[AdvanceTargetVersionResponse],
|
|
581
|
+
[],
|
|
582
|
+
),
|
|
555
583
|
'claim_swap_neurons' : IDL.Func(
|
|
556
584
|
[ClaimSwapNeuronsRequest],
|
|
557
585
|
[ClaimSwapNeuronsResponse],
|
|
@@ -593,6 +621,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
593
621
|
[GetSnsInitializationParametersResponse],
|
|
594
622
|
[],
|
|
595
623
|
),
|
|
624
|
+
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []),
|
|
625
|
+
'get_upgrade_journal' : IDL.Func(
|
|
626
|
+
[GetUpgradeJournalRequest],
|
|
627
|
+
[GetUpgradeJournalResponse],
|
|
628
|
+
[],
|
|
629
|
+
),
|
|
596
630
|
'list_nervous_system_functions' : IDL.Func(
|
|
597
631
|
[],
|
|
598
632
|
[ListNervousSystemFunctionsResponse],
|
|
@@ -602,11 +636,30 @@ export const idlFactory = ({ IDL }) => {
|
|
|
602
636
|
'list_proposals' : IDL.Func([ListProposals], [ListProposalsResponse], []),
|
|
603
637
|
'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
|
|
604
638
|
'mint_tokens' : IDL.Func([MintTokensRequest], [IDL.Record({})], []),
|
|
639
|
+
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
605
640
|
'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []),
|
|
606
641
|
'update_neuron' : IDL.Func([Neuron], [IDL.Opt(GovernanceError)], []),
|
|
607
642
|
});
|
|
608
643
|
};
|
|
609
644
|
export const init = ({ IDL }) => {
|
|
645
|
+
const Timers = IDL.Record({
|
|
646
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
647
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
648
|
+
});
|
|
649
|
+
const Version = IDL.Record({
|
|
650
|
+
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
651
|
+
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
652
|
+
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
653
|
+
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
654
|
+
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
655
|
+
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
656
|
+
});
|
|
657
|
+
const Versions = IDL.Record({ 'versions' : IDL.Vec(Version) });
|
|
658
|
+
const CachedUpgradeSteps = IDL.Record({
|
|
659
|
+
'upgrade_steps' : IDL.Opt(Versions),
|
|
660
|
+
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
661
|
+
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
662
|
+
});
|
|
610
663
|
const GenericNervousSystemFunction = IDL.Record({
|
|
611
664
|
'validator_canister_id' : IDL.Opt(IDL.Principal),
|
|
612
665
|
'target_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -688,14 +741,6 @@ export const init = ({ IDL }) => {
|
|
|
688
741
|
'maturity_modulation_disabled' : IDL.Opt(IDL.Bool),
|
|
689
742
|
'max_number_of_principals_per_neuron' : IDL.Opt(IDL.Nat64),
|
|
690
743
|
});
|
|
691
|
-
const Version = IDL.Record({
|
|
692
|
-
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
693
|
-
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
694
|
-
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
695
|
-
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
696
|
-
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
697
|
-
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
698
|
-
});
|
|
699
744
|
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
700
745
|
const RewardEvent = IDL.Record({
|
|
701
746
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
@@ -964,6 +1009,8 @@ export const init = ({ IDL }) => {
|
|
|
964
1009
|
});
|
|
965
1010
|
const Governance = IDL.Record({
|
|
966
1011
|
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
1012
|
+
'timers' : IDL.Opt(Timers),
|
|
1013
|
+
'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
|
|
967
1014
|
'id_to_nervous_system_functions' : IDL.Vec(
|
|
968
1015
|
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
|
|
969
1016
|
),
|
|
@@ -981,8 +1028,8 @@ export const init = ({ IDL }) => {
|
|
|
981
1028
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
982
1029
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
983
1030
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
984
|
-
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
985
1031
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
1032
|
+
'target_version' : IDL.Opt(Version),
|
|
986
1033
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
987
1034
|
});
|
|
988
1035
|
return [Governance];
|