@dfinity/nns 0.7.0 → 0.8.0-next-2022-09-23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +27 -0
  2. package/dist/candid/genesis_token.d.ts +10 -8
  3. package/dist/candid/governance.certified.idl.js +107 -4
  4. package/dist/candid/governance.d.ts +99 -44
  5. package/dist/candid/governance.did +49 -3
  6. package/dist/candid/governance.idl.js +107 -4
  7. package/dist/candid/ledger.d.ts +15 -15
  8. package/dist/candid/sns_wasm.certified.idl.js +9 -5
  9. package/dist/candid/sns_wasm.d.ts +24 -21
  10. package/dist/candid/sns_wasm.did +6 -6
  11. package/dist/candid/sns_wasm.idl.js +9 -5
  12. package/dist/cjs/index.cjs.js +7 -7
  13. package/dist/cjs/index.cjs.js.map +2 -2
  14. package/dist/esm/account_identifier.js +1 -1
  15. package/dist/esm/chunk-5S3NUDW3.js +2 -0
  16. package/dist/esm/chunk-5S3NUDW3.js.map +7 -0
  17. package/dist/esm/{chunk-SXX75EEC.js → chunk-I4ASNREM.js} +3 -3
  18. package/dist/esm/{chunk-SXX75EEC.js.map → chunk-I4ASNREM.js.map} +2 -2
  19. package/dist/esm/chunk-NA2JZFZA.js +2 -0
  20. package/dist/esm/chunk-NA2JZFZA.js.map +7 -0
  21. package/dist/esm/{chunk-EBY4MEUW.js → chunk-OQ6FZDUA.js} +5 -5
  22. package/dist/esm/{chunk-EBY4MEUW.js.map → chunk-OQ6FZDUA.js.map} +2 -2
  23. package/dist/esm/governance.canister.js +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/ledger.canister.js +1 -1
  26. package/dist/esm/sns_wasm.canister.js +1 -1
  27. package/dist/types/canisters/governance/request.converters.d.ts +1 -2
  28. package/dist/types/types/governance_converters.d.ts +27 -0
  29. package/dist/types/utils/converter.utils.d.ts +0 -5
  30. package/package.json +3 -3
  31. package/dist/esm/chunk-LBNBEXHT.js +0 -2
  32. package/dist/esm/chunk-LBNBEXHT.js.map +0 -7
  33. package/dist/esm/chunk-LWTBV6PO.js +0 -2
  34. package/dist/esm/chunk-LWTBV6PO.js.map +0 -7
package/README.md CHANGED
@@ -99,6 +99,7 @@ Parameters:
99
99
  - [toHex](#gear-tohex)
100
100
  - [toUint8Array](#gear-touint8array)
101
101
  - [toNumbers](#gear-tonumbers)
102
+ - [toAccountIdentifierHash](#gear-toaccountidentifierhash)
102
103
 
103
104
  ##### :gear: fromHex
104
105
 
@@ -136,6 +137,12 @@ Parameters:
136
137
  | ----------- | ---------------- |
137
138
  | `toNumbers` | `() => number[]` |
138
139
 
140
+ ##### :gear: toAccountIdentifierHash
141
+
142
+ | Method | Type |
143
+ | ------------------------- | ------------------------- |
144
+ | `toAccountIdentifierHash` | `() => AccountIdentifier` |
145
+
139
146
  ### :factory: SubAccount
140
147
 
141
148
  #### Methods
@@ -312,10 +319,12 @@ Returns the index of the block containing the tx if it was successful.
312
319
  - [listProposals](#gear-listproposals)
313
320
  - [stakeNeuron](#gear-stakeneuron)
314
321
  - [increaseDissolveDelay](#gear-increasedissolvedelay)
322
+ - [setDissolveDelay](#gear-setdissolvedelay)
315
323
  - [startDissolving](#gear-startdissolving)
316
324
  - [stopDissolving](#gear-stopdissolving)
317
325
  - [joinCommunityFund](#gear-joincommunityfund)
318
326
  - [leaveCommunityFund](#gear-leavecommunityfund)
327
+ - [setNodeProviderAccount](#gear-setnodeprovideraccount)
319
328
  - [mergeNeurons](#gear-mergeneurons)
320
329
  - [splitNeuron](#gear-splitneuron)
321
330
  - [getProposal](#gear-getproposal)
@@ -393,6 +402,15 @@ Increases dissolve delay of a neuron
393
402
  | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
394
403
  | `increaseDissolveDelay` | `({ neuronId, additionalDissolveDelaySeconds, }: { neuronId: bigint; additionalDissolveDelaySeconds: number; }) => Promise<void>` |
395
404
 
405
+ ##### :gear: setDissolveDelay
406
+
407
+ Sets dissolve delay of a neuron.
408
+ The new date is now + dissolveDelaySeconds.
409
+
410
+ | Method | Type |
411
+ | ------------------ | ------------------------------------------------------------------------------------------------------------- |
412
+ | `setDissolveDelay` | `({ neuronId, dissolveDelaySeconds, }: { neuronId: bigint; dissolveDelaySeconds: number; }) => Promise<void>` |
413
+
396
414
  ##### :gear: startDissolving
397
415
 
398
416
  Start dissolving process of a neuron
@@ -425,6 +443,15 @@ Neuron leaves the community fund
425
443
  | -------------------- | ------------------------------------- |
426
444
  | `leaveCommunityFund` | `(neuronId: bigint) => Promise<void>` |
427
445
 
446
+ ##### :gear: setNodeProviderAccount
447
+
448
+ Sets node provider reward account.
449
+ Where the reward is paid to.
450
+
451
+ | Method | Type |
452
+ | ------------------------ | ---------------------------------------------- |
453
+ | `setNodeProviderAccount` | `(accountIdentifier: string) => Promise<void>` |
454
+
428
455
  ##### :gear: mergeNeurons
429
456
 
430
457
  Merge two neurons
@@ -1,4 +1,6 @@
1
+ import type { ActorMethod } from "@dfinity/agent";
1
2
  import type { Principal } from "@dfinity/principal";
3
+
2
4
  export interface AccountState {
3
5
  authenticated_principal_id: [] | [Principal];
4
6
  successfully_transferred_neurons: Array<TransferredNeuron>;
@@ -22,12 +24,12 @@ export interface TransferredNeuron {
22
24
  neuron_id: [] | [NeuronId];
23
25
  }
24
26
  export interface _SERVICE {
25
- balance: (arg_0: string) => Promise<number>;
26
- claim_neurons: (arg_0: string) => Promise<Result>;
27
- donate_account: (arg_0: string) => Promise<Result_1>;
28
- forward_whitelisted_unclaimed_accounts: (arg_0: null) => Promise<Result_1>;
29
- get_account: (arg_0: string) => Promise<Result_2>;
30
- get_build_metadata: () => Promise<string>;
31
- len: () => Promise<number>;
32
- total: () => Promise<number>;
27
+ balance: ActorMethod<[string], number>;
28
+ claim_neurons: ActorMethod<[string], Result>;
29
+ donate_account: ActorMethod<[string], Result_1>;
30
+ forward_whitelisted_unclaimed_accounts: ActorMethod<[null], Result_1>;
31
+ get_account: ActorMethod<[string], Result_2>;
32
+ get_build_metadata: ActorMethod<[], string>;
33
+ len: ActorMethod<[], number>;
34
+ total: ActorMethod<[], number>;
33
35
  }
@@ -80,6 +80,14 @@ export const idlFactory = ({ IDL }) => {
80
80
  'error_message' : IDL.Text,
81
81
  'error_type' : IDL.Int32,
82
82
  });
83
+ const CfNeuron = IDL.Record({
84
+ 'nns_neuron_id' : IDL.Nat64,
85
+ 'amount_icp_e8s' : IDL.Nat64,
86
+ });
87
+ const CfParticipant = IDL.Record({
88
+ 'hotkey_principal' : IDL.Text,
89
+ 'cf_neurons' : IDL.Vec(CfNeuron),
90
+ });
83
91
  const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
84
92
  const Tally = IDL.Record({
85
93
  'no' : IDL.Nat64,
@@ -119,6 +127,9 @@ export const idlFactory = ({ IDL }) => {
119
127
  'hot_key_to_remove' : IDL.Opt(IDL.Principal),
120
128
  });
121
129
  const AddHotKey = IDL.Record({ 'new_hot_key' : IDL.Opt(IDL.Principal) });
130
+ const ChangeAutoStakeMaturity = IDL.Record({
131
+ 'requested_setting_for_auto_stake_maturity' : IDL.Bool,
132
+ });
122
133
  const IncreaseDissolveDelay = IDL.Record({
123
134
  'additional_dissolve_delay_seconds' : IDL.Nat32,
124
135
  });
@@ -128,6 +139,7 @@ export const idlFactory = ({ IDL }) => {
128
139
  const Operation = IDL.Variant({
129
140
  'RemoveHotKey' : RemoveHotKey,
130
141
  'AddHotKey' : AddHotKey,
142
+ 'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity,
131
143
  'StopDissolving' : IDL.Record({}),
132
144
  'StartDissolving' : IDL.Record({}),
133
145
  'IncreaseDissolveDelay' : IncreaseDissolveDelay,
@@ -148,6 +160,9 @@ export const idlFactory = ({ IDL }) => {
148
160
  'new_controller' : IDL.Opt(IDL.Principal),
149
161
  'nonce' : IDL.Nat64,
150
162
  });
163
+ const StakeMaturity = IDL.Record({
164
+ 'percentage_to_stake' : IDL.Opt(IDL.Nat32),
165
+ });
151
166
  const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
152
167
  const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
153
168
  const Disburse = IDL.Record({
@@ -164,6 +179,7 @@ export const idlFactory = ({ IDL }) => {
164
179
  'Merge' : Merge,
165
180
  'DisburseToNeuron' : DisburseToNeuron,
166
181
  'MakeProposal' : Proposal,
182
+ 'StakeMaturity' : StakeMaturity,
167
183
  'MergeMaturity' : MergeMaturity,
168
184
  'Disburse' : Disburse,
169
185
  });
@@ -180,6 +196,20 @@ export const idlFactory = ({ IDL }) => {
180
196
  'nns_function' : IDL.Int32,
181
197
  'payload' : IDL.Vec(IDL.Nat8),
182
198
  });
199
+ const Params = IDL.Record({
200
+ 'min_participant_icp_e8s' : IDL.Nat64,
201
+ 'max_icp_e8s' : IDL.Nat64,
202
+ 'swap_due_timestamp_seconds' : IDL.Nat64,
203
+ 'min_participants' : IDL.Nat32,
204
+ 'sns_token_e8s' : IDL.Nat64,
205
+ 'max_participant_icp_e8s' : IDL.Nat64,
206
+ 'min_icp_e8s' : IDL.Nat64,
207
+ });
208
+ const OpenSnsTokenSwap = IDL.Record({
209
+ 'community_fund_investment_e8s' : IDL.Opt(IDL.Nat64),
210
+ 'target_swap_canister_id' : IDL.Opt(IDL.Principal),
211
+ 'params' : IDL.Opt(Params),
212
+ });
183
213
  const TimeWindow = IDL.Record({
184
214
  'start_timestamp_seconds' : IDL.Nat64,
185
215
  'end_timestamp_seconds' : IDL.Nat64,
@@ -212,6 +242,7 @@ export const idlFactory = ({ IDL }) => {
212
242
  'ManageNeuron' : ManageNeuron,
213
243
  'ExecuteNnsFunction' : ExecuteNnsFunction,
214
244
  'RewardNodeProvider' : RewardNodeProvider,
245
+ 'OpenSnsTokenSwap' : OpenSnsTokenSwap,
215
246
  'SetSnsTokenSwapOpenTimeWindow' : SetSnsTokenSwapOpenTimeWindow,
216
247
  'SetDefaultFollowees' : SetDefaultFollowees,
217
248
  'RewardNodeProviders' : RewardNodeProviders,
@@ -234,17 +265,22 @@ export const idlFactory = ({ IDL }) => {
234
265
  const ProposalData = IDL.Record({
235
266
  'id' : IDL.Opt(NeuronId),
236
267
  'failure_reason' : IDL.Opt(GovernanceError),
268
+ 'cf_participants' : IDL.Vec(CfParticipant),
237
269
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
238
270
  'proposal_timestamp_seconds' : IDL.Nat64,
239
271
  'reward_event_round' : IDL.Nat64,
240
272
  'failed_timestamp_seconds' : IDL.Nat64,
241
273
  'reject_cost_e8s' : IDL.Nat64,
242
274
  'latest_tally' : IDL.Opt(Tally),
275
+ 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
243
276
  'decided_timestamp_seconds' : IDL.Nat64,
244
277
  'proposal' : IDL.Opt(Proposal),
245
278
  'proposer' : IDL.Opt(NeuronId),
246
279
  'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
247
280
  'executed_timestamp_seconds' : IDL.Nat64,
281
+ 'original_total_community_fund_maturity_e8s_equivalent' : IDL.Opt(
282
+ IDL.Nat64
283
+ ),
248
284
  });
249
285
  const Command_2 = IDL.Variant({
250
286
  'Spawn' : NeuronId,
@@ -252,6 +288,7 @@ export const idlFactory = ({ IDL }) => {
252
288
  'Configure' : Configure,
253
289
  'Merge' : Merge,
254
290
  'DisburseToNeuron' : DisburseToNeuron,
291
+ 'SyncCommand' : IDL.Record({}),
255
292
  'ClaimOrRefreshNeuron' : ClaimOrRefresh,
256
293
  'MergeMaturity' : MergeMaturity,
257
294
  'Disburse' : Disburse,
@@ -270,6 +307,7 @@ export const idlFactory = ({ IDL }) => {
270
307
  });
271
308
  const Neuron = IDL.Record({
272
309
  'id' : IDL.Opt(NeuronId),
310
+ 'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
273
311
  'controller' : IDL.Opt(IDL.Principal),
274
312
  'recent_ballots' : IDL.Vec(BallotInfo),
275
313
  'kyc_verified' : IDL.Bool,
@@ -277,6 +315,7 @@ export const idlFactory = ({ IDL }) => {
277
315
  'maturity_e8s_equivalent' : IDL.Nat64,
278
316
  'cached_neuron_stake_e8s' : IDL.Nat64,
279
317
  'created_timestamp_seconds' : IDL.Nat64,
318
+ 'auto_stake_maturity' : IDL.Opt(IDL.Bool),
280
319
  'aging_since_timestamp_seconds' : IDL.Nat64,
281
320
  'hot_keys' : IDL.Vec(IDL.Principal),
282
321
  'account' : IDL.Vec(IDL.Nat8),
@@ -293,10 +332,13 @@ export const idlFactory = ({ IDL }) => {
293
332
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
294
333
  MostRecentMonthlyNodeProviderRewards
295
334
  ),
335
+ 'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
336
+ IDL.Nat64
337
+ ),
296
338
  'wait_for_quiet_threshold_seconds' : IDL.Nat64,
297
339
  'metrics' : IDL.Opt(GovernanceCachedMetrics),
298
- 'cached_daily_maturity_modulation' : IDL.Opt(IDL.Float64),
299
340
  'node_providers' : IDL.Vec(NodeProvider),
341
+ 'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
300
342
  'economics' : IDL.Opt(NetworkEconomics),
301
343
  'spawning_neurons' : IDL.Opt(IDL.Bool),
302
344
  'latest_reward_event' : IDL.Opt(RewardEvent),
@@ -305,7 +347,6 @@ export const idlFactory = ({ IDL }) => {
305
347
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
306
348
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
307
349
  'neurons' : IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
308
- 'last_updated_maturity_modulation_cache' : IDL.Opt(IDL.Nat64),
309
350
  'genesis_timestamp_seconds' : IDL.Nat64,
310
351
  });
311
352
  const Result = IDL.Variant({ 'Ok' : IDL.Null, 'Err' : GovernanceError });
@@ -387,6 +428,10 @@ export const idlFactory = ({ IDL }) => {
387
428
  const MakeProposalResponse = IDL.Record({
388
429
  'proposal_id' : IDL.Opt(NeuronId),
389
430
  });
431
+ const StakeMaturityResponse = IDL.Record({
432
+ 'maturity_e8s' : IDL.Nat64,
433
+ 'staked_maturity_e8s' : IDL.Nat64,
434
+ });
390
435
  const MergeMaturityResponse = IDL.Record({
391
436
  'merged_maturity_e8s' : IDL.Nat64,
392
437
  'new_stake_e8s' : IDL.Nat64,
@@ -403,10 +448,22 @@ export const idlFactory = ({ IDL }) => {
403
448
  'Merge' : IDL.Record({}),
404
449
  'DisburseToNeuron' : SpawnResponse,
405
450
  'MakeProposal' : MakeProposalResponse,
451
+ 'StakeMaturity' : StakeMaturityResponse,
406
452
  'MergeMaturity' : MergeMaturityResponse,
407
453
  'Disburse' : DisburseResponse,
408
454
  });
409
455
  const ManageNeuronResponse = IDL.Record({ 'command' : IDL.Opt(Command_1) });
456
+ const Committed = IDL.Record({
457
+ 'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
458
+ });
459
+ const Result_6 = IDL.Variant({
460
+ 'Committed' : Committed,
461
+ 'Aborted' : IDL.Record({}),
462
+ });
463
+ const SettleCommunityFundParticipation = IDL.Record({
464
+ 'result' : IDL.Opt(Result_6),
465
+ 'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
466
+ });
410
467
  const UpdateNodeProvider = IDL.Record({
411
468
  'reward_account' : IDL.Opt(AccountIdentifier),
412
469
  });
@@ -454,6 +511,11 @@ export const idlFactory = ({ IDL }) => {
454
511
  [],
455
512
  ),
456
513
  'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
514
+ 'settle_community_fund_participation' : IDL.Func(
515
+ [SettleCommunityFundParticipation],
516
+ [Result],
517
+ [],
518
+ ),
457
519
  'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
458
520
  'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
459
521
  });
@@ -539,6 +601,14 @@ export const init = ({ IDL }) => {
539
601
  'error_message' : IDL.Text,
540
602
  'error_type' : IDL.Int32,
541
603
  });
604
+ const CfNeuron = IDL.Record({
605
+ 'nns_neuron_id' : IDL.Nat64,
606
+ 'amount_icp_e8s' : IDL.Nat64,
607
+ });
608
+ const CfParticipant = IDL.Record({
609
+ 'hotkey_principal' : IDL.Text,
610
+ 'cf_neurons' : IDL.Vec(CfNeuron),
611
+ });
542
612
  const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
543
613
  const Tally = IDL.Record({
544
614
  'no' : IDL.Nat64,
@@ -578,6 +648,9 @@ export const init = ({ IDL }) => {
578
648
  'hot_key_to_remove' : IDL.Opt(IDL.Principal),
579
649
  });
580
650
  const AddHotKey = IDL.Record({ 'new_hot_key' : IDL.Opt(IDL.Principal) });
651
+ const ChangeAutoStakeMaturity = IDL.Record({
652
+ 'requested_setting_for_auto_stake_maturity' : IDL.Bool,
653
+ });
581
654
  const IncreaseDissolveDelay = IDL.Record({
582
655
  'additional_dissolve_delay_seconds' : IDL.Nat32,
583
656
  });
@@ -587,6 +660,7 @@ export const init = ({ IDL }) => {
587
660
  const Operation = IDL.Variant({
588
661
  'RemoveHotKey' : RemoveHotKey,
589
662
  'AddHotKey' : AddHotKey,
663
+ 'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity,
590
664
  'StopDissolving' : IDL.Record({}),
591
665
  'StartDissolving' : IDL.Record({}),
592
666
  'IncreaseDissolveDelay' : IncreaseDissolveDelay,
@@ -607,6 +681,9 @@ export const init = ({ IDL }) => {
607
681
  'new_controller' : IDL.Opt(IDL.Principal),
608
682
  'nonce' : IDL.Nat64,
609
683
  });
684
+ const StakeMaturity = IDL.Record({
685
+ 'percentage_to_stake' : IDL.Opt(IDL.Nat32),
686
+ });
610
687
  const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
611
688
  const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
612
689
  const Disburse = IDL.Record({
@@ -623,6 +700,7 @@ export const init = ({ IDL }) => {
623
700
  'Merge' : Merge,
624
701
  'DisburseToNeuron' : DisburseToNeuron,
625
702
  'MakeProposal' : Proposal,
703
+ 'StakeMaturity' : StakeMaturity,
626
704
  'MergeMaturity' : MergeMaturity,
627
705
  'Disburse' : Disburse,
628
706
  });
@@ -639,6 +717,20 @@ export const init = ({ IDL }) => {
639
717
  'nns_function' : IDL.Int32,
640
718
  'payload' : IDL.Vec(IDL.Nat8),
641
719
  });
720
+ const Params = IDL.Record({
721
+ 'min_participant_icp_e8s' : IDL.Nat64,
722
+ 'max_icp_e8s' : IDL.Nat64,
723
+ 'swap_due_timestamp_seconds' : IDL.Nat64,
724
+ 'min_participants' : IDL.Nat32,
725
+ 'sns_token_e8s' : IDL.Nat64,
726
+ 'max_participant_icp_e8s' : IDL.Nat64,
727
+ 'min_icp_e8s' : IDL.Nat64,
728
+ });
729
+ const OpenSnsTokenSwap = IDL.Record({
730
+ 'community_fund_investment_e8s' : IDL.Opt(IDL.Nat64),
731
+ 'target_swap_canister_id' : IDL.Opt(IDL.Principal),
732
+ 'params' : IDL.Opt(Params),
733
+ });
642
734
  const TimeWindow = IDL.Record({
643
735
  'start_timestamp_seconds' : IDL.Nat64,
644
736
  'end_timestamp_seconds' : IDL.Nat64,
@@ -671,6 +763,7 @@ export const init = ({ IDL }) => {
671
763
  'ManageNeuron' : ManageNeuron,
672
764
  'ExecuteNnsFunction' : ExecuteNnsFunction,
673
765
  'RewardNodeProvider' : RewardNodeProvider,
766
+ 'OpenSnsTokenSwap' : OpenSnsTokenSwap,
674
767
  'SetSnsTokenSwapOpenTimeWindow' : SetSnsTokenSwapOpenTimeWindow,
675
768
  'SetDefaultFollowees' : SetDefaultFollowees,
676
769
  'RewardNodeProviders' : RewardNodeProviders,
@@ -693,17 +786,22 @@ export const init = ({ IDL }) => {
693
786
  const ProposalData = IDL.Record({
694
787
  'id' : IDL.Opt(NeuronId),
695
788
  'failure_reason' : IDL.Opt(GovernanceError),
789
+ 'cf_participants' : IDL.Vec(CfParticipant),
696
790
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
697
791
  'proposal_timestamp_seconds' : IDL.Nat64,
698
792
  'reward_event_round' : IDL.Nat64,
699
793
  'failed_timestamp_seconds' : IDL.Nat64,
700
794
  'reject_cost_e8s' : IDL.Nat64,
701
795
  'latest_tally' : IDL.Opt(Tally),
796
+ 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
702
797
  'decided_timestamp_seconds' : IDL.Nat64,
703
798
  'proposal' : IDL.Opt(Proposal),
704
799
  'proposer' : IDL.Opt(NeuronId),
705
800
  'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
706
801
  'executed_timestamp_seconds' : IDL.Nat64,
802
+ 'original_total_community_fund_maturity_e8s_equivalent' : IDL.Opt(
803
+ IDL.Nat64
804
+ ),
707
805
  });
708
806
  const Command_2 = IDL.Variant({
709
807
  'Spawn' : NeuronId,
@@ -711,6 +809,7 @@ export const init = ({ IDL }) => {
711
809
  'Configure' : Configure,
712
810
  'Merge' : Merge,
713
811
  'DisburseToNeuron' : DisburseToNeuron,
812
+ 'SyncCommand' : IDL.Record({}),
714
813
  'ClaimOrRefreshNeuron' : ClaimOrRefresh,
715
814
  'MergeMaturity' : MergeMaturity,
716
815
  'Disburse' : Disburse,
@@ -729,6 +828,7 @@ export const init = ({ IDL }) => {
729
828
  });
730
829
  const Neuron = IDL.Record({
731
830
  'id' : IDL.Opt(NeuronId),
831
+ 'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
732
832
  'controller' : IDL.Opt(IDL.Principal),
733
833
  'recent_ballots' : IDL.Vec(BallotInfo),
734
834
  'kyc_verified' : IDL.Bool,
@@ -736,6 +836,7 @@ export const init = ({ IDL }) => {
736
836
  'maturity_e8s_equivalent' : IDL.Nat64,
737
837
  'cached_neuron_stake_e8s' : IDL.Nat64,
738
838
  'created_timestamp_seconds' : IDL.Nat64,
839
+ 'auto_stake_maturity' : IDL.Opt(IDL.Bool),
739
840
  'aging_since_timestamp_seconds' : IDL.Nat64,
740
841
  'hot_keys' : IDL.Vec(IDL.Principal),
741
842
  'account' : IDL.Vec(IDL.Nat8),
@@ -752,10 +853,13 @@ export const init = ({ IDL }) => {
752
853
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
753
854
  MostRecentMonthlyNodeProviderRewards
754
855
  ),
856
+ 'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
857
+ IDL.Nat64
858
+ ),
755
859
  'wait_for_quiet_threshold_seconds' : IDL.Nat64,
756
860
  'metrics' : IDL.Opt(GovernanceCachedMetrics),
757
- 'cached_daily_maturity_modulation' : IDL.Opt(IDL.Float64),
758
861
  'node_providers' : IDL.Vec(NodeProvider),
862
+ 'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
759
863
  'economics' : IDL.Opt(NetworkEconomics),
760
864
  'spawning_neurons' : IDL.Opt(IDL.Bool),
761
865
  'latest_reward_event' : IDL.Opt(RewardEvent),
@@ -764,7 +868,6 @@ export const init = ({ IDL }) => {
764
868
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
765
869
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
766
870
  'neurons' : IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
767
- 'last_updated_maturity_modulation_cache' : IDL.Opt(IDL.Nat64),
768
871
  'genesis_timestamp_seconds' : IDL.Nat64,
769
872
  });
770
873
  return [Governance];