@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
|
@@ -42,6 +42,10 @@ export interface AddNeuronPermissions {
|
|
|
42
42
|
permissions_to_add: [] | [NeuronPermissionList];
|
|
43
43
|
principal_id: [] | [Principal];
|
|
44
44
|
}
|
|
45
|
+
export interface AdvanceTargetVersionRequest {
|
|
46
|
+
target_version: [] | [Version];
|
|
47
|
+
}
|
|
48
|
+
export type AdvanceTargetVersionResponse = {};
|
|
45
49
|
export interface Amount {
|
|
46
50
|
e8s: bigint;
|
|
47
51
|
}
|
|
@@ -51,6 +55,11 @@ export interface Ballot {
|
|
|
51
55
|
voting_power: bigint;
|
|
52
56
|
}
|
|
53
57
|
export type By = { MemoAndController: MemoAndController } | { NeuronId: {} };
|
|
58
|
+
export interface CachedUpgradeSteps {
|
|
59
|
+
upgrade_steps: [] | [Versions];
|
|
60
|
+
response_timestamp_seconds: [] | [bigint];
|
|
61
|
+
requested_timestamp_seconds: [] | [bigint];
|
|
62
|
+
}
|
|
54
63
|
export interface CanisterStatusResultV2 {
|
|
55
64
|
status: CanisterStatusType;
|
|
56
65
|
memory_size: bigint;
|
|
@@ -224,8 +233,19 @@ export interface GetRunningSnsVersionResponse {
|
|
|
224
233
|
export interface GetSnsInitializationParametersResponse {
|
|
225
234
|
sns_initialization_parameters: string;
|
|
226
235
|
}
|
|
236
|
+
export interface GetTimersResponse {
|
|
237
|
+
timers: [] | [Timers];
|
|
238
|
+
}
|
|
239
|
+
export type GetUpgradeJournalRequest = {};
|
|
240
|
+
export interface GetUpgradeJournalResponse {
|
|
241
|
+
upgrade_steps: [] | [Versions];
|
|
242
|
+
response_timestamp_seconds: [] | [bigint];
|
|
243
|
+
target_version: [] | [Version];
|
|
244
|
+
}
|
|
227
245
|
export interface Governance {
|
|
228
246
|
root_canister_id: [] | [Principal];
|
|
247
|
+
timers: [] | [Timers];
|
|
248
|
+
cached_upgrade_steps: [] | [CachedUpgradeSteps];
|
|
229
249
|
id_to_nervous_system_functions: Array<[bigint, NervousSystemFunction]>;
|
|
230
250
|
metrics: [] | [GovernanceCachedMetrics];
|
|
231
251
|
maturity_modulation: [] | [MaturityModulation];
|
|
@@ -241,8 +261,8 @@ export interface Governance {
|
|
|
241
261
|
proposals: Array<[bigint, ProposalData]>;
|
|
242
262
|
in_flight_commands: Array<[string, NeuronInFlightCommand]>;
|
|
243
263
|
sns_metadata: [] | [ManageSnsMetadata];
|
|
244
|
-
migrated_root_wasm_memory_limit: [] | [boolean];
|
|
245
264
|
neurons: Array<[string, Neuron]>;
|
|
265
|
+
target_version: [] | [Version];
|
|
246
266
|
genesis_timestamp_seconds: bigint;
|
|
247
267
|
}
|
|
248
268
|
export interface GovernanceCachedMetrics {
|
|
@@ -541,6 +561,10 @@ export interface Tally {
|
|
|
541
561
|
total: bigint;
|
|
542
562
|
timestamp_seconds: bigint;
|
|
543
563
|
}
|
|
564
|
+
export interface Timers {
|
|
565
|
+
last_spawned_timestamp_seconds: [] | [bigint];
|
|
566
|
+
last_reset_timestamp_seconds: [] | [bigint];
|
|
567
|
+
}
|
|
544
568
|
export interface Tokens {
|
|
545
569
|
e8s: [] | [bigint];
|
|
546
570
|
}
|
|
@@ -582,6 +606,9 @@ export interface Version {
|
|
|
582
606
|
governance_wasm_hash: Uint8Array | number[];
|
|
583
607
|
index_wasm_hash: Uint8Array | number[];
|
|
584
608
|
}
|
|
609
|
+
export interface Versions {
|
|
610
|
+
versions: Array<Version>;
|
|
611
|
+
}
|
|
585
612
|
export interface VotingRewardsParameters {
|
|
586
613
|
final_reward_rate_basis_points: [] | [bigint];
|
|
587
614
|
initial_reward_rate_basis_points: [] | [bigint];
|
|
@@ -593,6 +620,10 @@ export interface WaitForQuietState {
|
|
|
593
620
|
}
|
|
594
621
|
export interface _SERVICE {
|
|
595
622
|
add_maturity: ActorMethod<[AddMaturityRequest], AddMaturityResponse>;
|
|
623
|
+
advance_target_version: ActorMethod<
|
|
624
|
+
[AdvanceTargetVersionRequest],
|
|
625
|
+
AdvanceTargetVersionResponse
|
|
626
|
+
>;
|
|
596
627
|
claim_swap_neurons: ActorMethod<
|
|
597
628
|
[ClaimSwapNeuronsRequest],
|
|
598
629
|
ClaimSwapNeuronsResponse
|
|
@@ -612,6 +643,11 @@ export interface _SERVICE {
|
|
|
612
643
|
[{}],
|
|
613
644
|
GetSnsInitializationParametersResponse
|
|
614
645
|
>;
|
|
646
|
+
get_timers: ActorMethod<[{}], GetTimersResponse>;
|
|
647
|
+
get_upgrade_journal: ActorMethod<
|
|
648
|
+
[GetUpgradeJournalRequest],
|
|
649
|
+
GetUpgradeJournalResponse
|
|
650
|
+
>;
|
|
615
651
|
list_nervous_system_functions: ActorMethod<
|
|
616
652
|
[],
|
|
617
653
|
ListNervousSystemFunctionsResponse
|
|
@@ -620,6 +656,7 @@ export interface _SERVICE {
|
|
|
620
656
|
list_proposals: ActorMethod<[ListProposals], ListProposalsResponse>;
|
|
621
657
|
manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
|
|
622
658
|
mint_tokens: ActorMethod<[MintTokensRequest], {}>;
|
|
659
|
+
reset_timers: ActorMethod<[{}], {}>;
|
|
623
660
|
set_mode: ActorMethod<[SetMode], {}>;
|
|
624
661
|
update_neuron: ActorMethod<[Neuron], [] | [GovernanceError]>;
|
|
625
662
|
}
|
|
@@ -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_test.did' by import-candid
|
|
2
2
|
type Account = record {
|
|
3
3
|
owner : opt principal;
|
|
4
4
|
subaccount : opt Subaccount;
|
|
@@ -274,6 +274,12 @@ type GetSnsInitializationParametersResponse = record {
|
|
|
274
274
|
sns_initialization_parameters : text;
|
|
275
275
|
};
|
|
276
276
|
|
|
277
|
+
type CachedUpgradeSteps = record {
|
|
278
|
+
upgrade_steps : opt Versions;
|
|
279
|
+
requested_timestamp_seconds : opt nat64;
|
|
280
|
+
response_timestamp_seconds : opt nat64;
|
|
281
|
+
};
|
|
282
|
+
|
|
277
283
|
type Governance = record {
|
|
278
284
|
root_canister_id : opt principal;
|
|
279
285
|
id_to_nervous_system_functions : vec record { nat64; NervousSystemFunction };
|
|
@@ -283,6 +289,7 @@ type Governance = record {
|
|
|
283
289
|
parameters : opt NervousSystemParameters;
|
|
284
290
|
is_finalizing_disburse_maturity : opt bool;
|
|
285
291
|
deployed_version : opt Version;
|
|
292
|
+
cached_upgrade_steps : opt CachedUpgradeSteps;
|
|
286
293
|
sns_initialization_parameters : text;
|
|
287
294
|
latest_reward_event : opt RewardEvent;
|
|
288
295
|
pending_version : opt UpgradeInProgress;
|
|
@@ -293,7 +300,17 @@ type Governance = record {
|
|
|
293
300
|
sns_metadata : opt ManageSnsMetadata;
|
|
294
301
|
neurons : vec record { text; Neuron };
|
|
295
302
|
genesis_timestamp_seconds : nat64;
|
|
296
|
-
|
|
303
|
+
target_version: opt Version;
|
|
304
|
+
timers : opt Timers;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
type Timers = record {
|
|
308
|
+
last_reset_timestamp_seconds : opt nat64;
|
|
309
|
+
last_spawned_timestamp_seconds : opt nat64;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
type GetTimersResponse = record {
|
|
313
|
+
timers : opt Timers;
|
|
297
314
|
};
|
|
298
315
|
|
|
299
316
|
type GovernanceCachedMetrics = record {
|
|
@@ -703,6 +720,8 @@ type Version = record {
|
|
|
703
720
|
index_wasm_hash : blob;
|
|
704
721
|
};
|
|
705
722
|
|
|
723
|
+
type Versions = record { versions : vec Version };
|
|
724
|
+
|
|
706
725
|
type VotingRewardsParameters = record {
|
|
707
726
|
final_reward_rate_basis_points : opt nat64;
|
|
708
727
|
initial_reward_rate_basis_points : opt nat64;
|
|
@@ -714,6 +733,17 @@ type WaitForQuietState = record {
|
|
|
714
733
|
current_deadline_timestamp_seconds : nat64;
|
|
715
734
|
};
|
|
716
735
|
|
|
736
|
+
type GetUpgradeJournalRequest = record {};
|
|
737
|
+
|
|
738
|
+
type GetUpgradeJournalResponse = record {
|
|
739
|
+
upgrade_steps : opt Versions;
|
|
740
|
+
response_timestamp_seconds : opt nat64;
|
|
741
|
+
target_version : opt Version;
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
type AdvanceTargetVersionRequest = record { target_version : opt Version; };
|
|
745
|
+
type AdvanceTargetVersionResponse = record {};
|
|
746
|
+
|
|
717
747
|
service : (Governance) -> {
|
|
718
748
|
add_maturity : (AddMaturityRequest) -> (AddMaturityResponse);
|
|
719
749
|
claim_swap_neurons : (ClaimSwapNeuronsRequest) -> (ClaimSwapNeuronsResponse);
|
|
@@ -731,6 +761,7 @@ service : (Governance) -> {
|
|
|
731
761
|
get_sns_initialization_parameters : (record {}) -> (
|
|
732
762
|
GetSnsInitializationParametersResponse,
|
|
733
763
|
) query;
|
|
764
|
+
get_upgrade_journal : (GetUpgradeJournalRequest) -> (GetUpgradeJournalResponse) query;
|
|
734
765
|
list_nervous_system_functions : () -> (
|
|
735
766
|
ListNervousSystemFunctionsResponse,
|
|
736
767
|
) query;
|
|
@@ -740,4 +771,7 @@ service : (Governance) -> {
|
|
|
740
771
|
mint_tokens : (MintTokensRequest) -> (record {});
|
|
741
772
|
set_mode : (SetMode) -> (record {});
|
|
742
773
|
update_neuron : (Neuron) -> (opt GovernanceError);
|
|
774
|
+
advance_target_version : (AdvanceTargetVersionRequest) -> (AdvanceTargetVersionResponse);
|
|
775
|
+
reset_timers : (record {}) -> (record {});
|
|
776
|
+
get_timers : (record {}) -> (GetTimersResponse) query;
|
|
743
777
|
}
|
|
@@ -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],
|
|
@@ -597,6 +625,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
597
625
|
[GetSnsInitializationParametersResponse],
|
|
598
626
|
['query'],
|
|
599
627
|
),
|
|
628
|
+
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], ['query']),
|
|
629
|
+
'get_upgrade_journal' : IDL.Func(
|
|
630
|
+
[GetUpgradeJournalRequest],
|
|
631
|
+
[GetUpgradeJournalResponse],
|
|
632
|
+
['query'],
|
|
633
|
+
),
|
|
600
634
|
'list_nervous_system_functions' : IDL.Func(
|
|
601
635
|
[],
|
|
602
636
|
[ListNervousSystemFunctionsResponse],
|
|
@@ -610,11 +644,30 @@ export const idlFactory = ({ IDL }) => {
|
|
|
610
644
|
),
|
|
611
645
|
'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
|
|
612
646
|
'mint_tokens' : IDL.Func([MintTokensRequest], [IDL.Record({})], []),
|
|
647
|
+
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
613
648
|
'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []),
|
|
614
649
|
'update_neuron' : IDL.Func([Neuron], [IDL.Opt(GovernanceError)], []),
|
|
615
650
|
});
|
|
616
651
|
};
|
|
617
652
|
export const init = ({ IDL }) => {
|
|
653
|
+
const Timers = IDL.Record({
|
|
654
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
655
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
656
|
+
});
|
|
657
|
+
const Version = IDL.Record({
|
|
658
|
+
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
659
|
+
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
660
|
+
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
661
|
+
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
662
|
+
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
663
|
+
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
664
|
+
});
|
|
665
|
+
const Versions = IDL.Record({ 'versions' : IDL.Vec(Version) });
|
|
666
|
+
const CachedUpgradeSteps = IDL.Record({
|
|
667
|
+
'upgrade_steps' : IDL.Opt(Versions),
|
|
668
|
+
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
669
|
+
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
670
|
+
});
|
|
618
671
|
const GenericNervousSystemFunction = IDL.Record({
|
|
619
672
|
'validator_canister_id' : IDL.Opt(IDL.Principal),
|
|
620
673
|
'target_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -696,14 +749,6 @@ export const init = ({ IDL }) => {
|
|
|
696
749
|
'maturity_modulation_disabled' : IDL.Opt(IDL.Bool),
|
|
697
750
|
'max_number_of_principals_per_neuron' : IDL.Opt(IDL.Nat64),
|
|
698
751
|
});
|
|
699
|
-
const Version = IDL.Record({
|
|
700
|
-
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
701
|
-
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
702
|
-
'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
703
|
-
'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
704
|
-
'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
705
|
-
'index_wasm_hash' : IDL.Vec(IDL.Nat8),
|
|
706
|
-
});
|
|
707
752
|
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
708
753
|
const RewardEvent = IDL.Record({
|
|
709
754
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
@@ -972,6 +1017,8 @@ export const init = ({ IDL }) => {
|
|
|
972
1017
|
});
|
|
973
1018
|
const Governance = IDL.Record({
|
|
974
1019
|
'root_canister_id' : IDL.Opt(IDL.Principal),
|
|
1020
|
+
'timers' : IDL.Opt(Timers),
|
|
1021
|
+
'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
|
|
975
1022
|
'id_to_nervous_system_functions' : IDL.Vec(
|
|
976
1023
|
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
|
|
977
1024
|
),
|
|
@@ -989,8 +1036,8 @@ export const init = ({ IDL }) => {
|
|
|
989
1036
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
990
1037
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
991
1038
|
'sns_metadata' : IDL.Opt(ManageSnsMetadata),
|
|
992
|
-
'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
|
|
993
1039
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
1040
|
+
'target_version' : IDL.Opt(Version),
|
|
994
1041
|
'genesis_timestamp_seconds' : IDL.Nat64,
|
|
995
1042
|
});
|
|
996
1043
|
return [Governance];
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -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/root/canister/root.did' by import-candid
|
|
2
2
|
type CanisterCallError = record {
|
|
3
3
|
code : opt int32;
|
|
4
4
|
description : text;
|
|
@@ -246,6 +246,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
246
246
|
'neuron_attributes' : IDL.Opt(NeuronAttributes),
|
|
247
247
|
'investor' : IDL.Opt(Investor),
|
|
248
248
|
});
|
|
249
|
+
const Timers = IDL.Record({
|
|
250
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
251
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
252
|
+
'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
|
|
253
|
+
});
|
|
249
254
|
const CfNeuron = IDL.Record({
|
|
250
255
|
'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
|
|
251
256
|
'hotkeys' : IDL.Opt(Principals),
|
|
@@ -263,6 +268,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
263
268
|
'next_ticket_id' : IDL.Opt(IDL.Nat64),
|
|
264
269
|
'decentralization_sale_open_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
265
270
|
'finalize_swap_in_progress' : IDL.Opt(IDL.Bool),
|
|
271
|
+
'timers' : IDL.Opt(Timers),
|
|
266
272
|
'cf_participants' : IDL.Vec(CfParticipant),
|
|
267
273
|
'init' : IDL.Opt(Init),
|
|
268
274
|
'already_tried_to_auto_finalize' : IDL.Opt(IDL.Bool),
|
|
@@ -406,6 +412,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
406
412
|
[RefreshBuyerTokensResponse],
|
|
407
413
|
[],
|
|
408
414
|
),
|
|
415
|
+
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
409
416
|
});
|
|
410
417
|
};
|
|
411
418
|
export const init = ({ IDL }) => {
|
|
@@ -325,6 +325,7 @@ export interface Swap {
|
|
|
325
325
|
next_ticket_id: [] | [bigint];
|
|
326
326
|
decentralization_sale_open_timestamp_seconds: [] | [bigint];
|
|
327
327
|
finalize_swap_in_progress: [] | [boolean];
|
|
328
|
+
timers: [] | [Timers];
|
|
328
329
|
cf_participants: Array<CfParticipant>;
|
|
329
330
|
init: [] | [Init];
|
|
330
331
|
already_tried_to_auto_finalize: [] | [boolean];
|
|
@@ -351,6 +352,11 @@ export interface Ticket {
|
|
|
351
352
|
account: [] | [Icrc1Account];
|
|
352
353
|
amount_icp_e8s: bigint;
|
|
353
354
|
}
|
|
355
|
+
export interface Timers {
|
|
356
|
+
last_spawned_timestamp_seconds: [] | [bigint];
|
|
357
|
+
last_reset_timestamp_seconds: [] | [bigint];
|
|
358
|
+
requires_periodic_tasks: [] | [boolean];
|
|
359
|
+
}
|
|
354
360
|
export interface TransferableAmount {
|
|
355
361
|
transfer_fee_paid_e8s: [] | [bigint];
|
|
356
362
|
transfer_start_timestamp_seconds: bigint;
|
|
@@ -395,6 +401,7 @@ export interface _SERVICE {
|
|
|
395
401
|
[RefreshBuyerTokensRequest],
|
|
396
402
|
RefreshBuyerTokensResponse
|
|
397
403
|
>;
|
|
404
|
+
reset_timers: ActorMethod<[{}], {}>;
|
|
398
405
|
}
|
|
399
406
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
400
407
|
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -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/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;
|
|
@@ -413,6 +413,13 @@ type Swap = record {
|
|
|
413
413
|
buyers : vec record { text; BuyerState };
|
|
414
414
|
params : opt Params;
|
|
415
415
|
open_sns_token_swap_proposal_id : opt nat64;
|
|
416
|
+
timers : opt Timers;
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
type Timers = record {
|
|
420
|
+
requires_periodic_tasks : opt bool;
|
|
421
|
+
last_reset_timestamp_seconds : opt nat64;
|
|
422
|
+
last_spawned_timestamp_seconds : opt nat64;
|
|
416
423
|
};
|
|
417
424
|
|
|
418
425
|
type SweepResult = record {
|
|
@@ -467,4 +474,5 @@ service : (Init) -> {
|
|
|
467
474
|
refresh_buyer_tokens : (RefreshBuyerTokensRequest) -> (
|
|
468
475
|
RefreshBuyerTokensResponse,
|
|
469
476
|
);
|
|
477
|
+
reset_timers : (record {}) -> (record {});
|
|
470
478
|
}
|
|
@@ -246,6 +246,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
246
246
|
'neuron_attributes' : IDL.Opt(NeuronAttributes),
|
|
247
247
|
'investor' : IDL.Opt(Investor),
|
|
248
248
|
});
|
|
249
|
+
const Timers = IDL.Record({
|
|
250
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
251
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
252
|
+
'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
|
|
253
|
+
});
|
|
249
254
|
const CfNeuron = IDL.Record({
|
|
250
255
|
'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
|
|
251
256
|
'hotkeys' : IDL.Opt(Principals),
|
|
@@ -263,6 +268,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
263
268
|
'next_ticket_id' : IDL.Opt(IDL.Nat64),
|
|
264
269
|
'decentralization_sale_open_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
265
270
|
'finalize_swap_in_progress' : IDL.Opt(IDL.Bool),
|
|
271
|
+
'timers' : IDL.Opt(Timers),
|
|
266
272
|
'cf_participants' : IDL.Vec(CfParticipant),
|
|
267
273
|
'init' : IDL.Opt(Init),
|
|
268
274
|
'already_tried_to_auto_finalize' : IDL.Opt(IDL.Bool),
|
|
@@ -414,6 +420,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
414
420
|
[RefreshBuyerTokensResponse],
|
|
415
421
|
[],
|
|
416
422
|
),
|
|
423
|
+
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
417
424
|
});
|
|
418
425
|
};
|
|
419
426
|
export const init = ({ IDL }) => {
|