@dfinity/nns 2.0.0 → 2.1.0

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 (35) hide show
  1. package/README.md +12 -24
  2. package/dist/candid/genesis_token.did +1 -1
  3. package/dist/candid/governance.certified.idl.js +488 -312
  4. package/dist/candid/governance.d.ts +101 -0
  5. package/dist/candid/governance.did +104 -3
  6. package/dist/candid/governance.idl.js +496 -320
  7. package/dist/candid/governance_test.certified.idl.js +115 -0
  8. package/dist/candid/governance_test.d.ts +69 -0
  9. package/dist/candid/governance_test.did +67 -2
  10. package/dist/candid/governance_test.idl.js +115 -0
  11. package/dist/candid/sns_wasm.certified.idl.js +2 -0
  12. package/dist/candid/sns_wasm.d.ts +2 -0
  13. package/dist/candid/sns_wasm.did +3 -1
  14. package/dist/candid/sns_wasm.idl.js +2 -0
  15. package/dist/cjs/index.cjs.js +2 -2
  16. package/dist/cjs/index.cjs.js.map +4 -4
  17. package/dist/esm/chunk-2MR4JA3T.js +20 -0
  18. package/dist/esm/chunk-2MR4JA3T.js.map +7 -0
  19. package/dist/esm/chunk-YGDWD6VV.js +2 -0
  20. package/dist/esm/chunk-YGDWD6VV.js.map +7 -0
  21. package/dist/esm/governance.canister.js +1 -1
  22. package/dist/esm/index.js +1 -1
  23. package/dist/esm/index.js.map +4 -4
  24. package/dist/esm/sns_wasm.canister.js +1 -1
  25. package/dist/types/canisters/governance/request.converters.d.ts +1 -1
  26. package/dist/types/canisters/governance/response.converters.d.ts +2 -1
  27. package/dist/types/enums/governance.enums.d.ts +3 -1
  28. package/dist/types/governance_test.canister.d.ts +14 -0
  29. package/dist/types/index.d.ts +1 -0
  30. package/dist/types/types/governance_converters.d.ts +17 -11
  31. package/package.json +1 -1
  32. package/dist/esm/chunk-IJWQXUQ5.js +0 -2
  33. package/dist/esm/chunk-IJWQXUQ5.js.map +0 -7
  34. package/dist/esm/chunk-LARRGLCK.js +0 -20
  35. package/dist/esm/chunk-LARRGLCK.js.map +0 -7
@@ -3,129 +3,6 @@ export const idlFactory = ({ IDL }) => {
3
3
  const Proposal = IDL.Rec();
4
4
  const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
5
5
  const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
6
- const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
7
- const NodeProvider = IDL.Record({
8
- 'id' : IDL.Opt(IDL.Principal),
9
- 'reward_account' : IDL.Opt(AccountIdentifier),
10
- });
11
- const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
12
- const RewardToAccount = IDL.Record({
13
- 'to_account' : IDL.Opt(AccountIdentifier),
14
- });
15
- const RewardMode = IDL.Variant({
16
- 'RewardToNeuron' : RewardToNeuron,
17
- 'RewardToAccount' : RewardToAccount,
18
- });
19
- const RewardNodeProvider = IDL.Record({
20
- 'node_provider' : IDL.Opt(NodeProvider),
21
- 'reward_mode' : IDL.Opt(RewardMode),
22
- 'amount_e8s' : IDL.Nat64,
23
- });
24
- const MostRecentMonthlyNodeProviderRewards = IDL.Record({
25
- 'timestamp' : IDL.Nat64,
26
- 'rewards' : IDL.Vec(RewardNodeProvider),
27
- });
28
- const GovernanceCachedMetrics = IDL.Record({
29
- 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
30
- IDL.Tuple(IDL.Nat64, IDL.Float64)
31
- ),
32
- 'garbage_collectable_neurons_count' : IDL.Nat64,
33
- 'neurons_with_invalid_stake_count' : IDL.Nat64,
34
- 'not_dissolving_neurons_count_buckets' : IDL.Vec(
35
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
36
- ),
37
- 'total_supply_icp' : IDL.Nat64,
38
- 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
39
- 'dissolved_neurons_count' : IDL.Nat64,
40
- 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
41
- 'total_staked_e8s' : IDL.Nat64,
42
- 'not_dissolving_neurons_count' : IDL.Nat64,
43
- 'total_locked_e8s' : IDL.Nat64,
44
- 'dissolved_neurons_e8s' : IDL.Nat64,
45
- 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
46
- 'dissolving_neurons_count_buckets' : IDL.Vec(
47
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
48
- ),
49
- 'dissolving_neurons_count' : IDL.Nat64,
50
- 'dissolving_neurons_e8s_buckets' : IDL.Vec(
51
- IDL.Tuple(IDL.Nat64, IDL.Float64)
52
- ),
53
- 'community_fund_total_staked_e8s' : IDL.Nat64,
54
- 'timestamp_seconds' : IDL.Nat64,
55
- });
56
- const NetworkEconomics = IDL.Record({
57
- 'neuron_minimum_stake_e8s' : IDL.Nat64,
58
- 'max_proposals_to_keep_per_topic' : IDL.Nat32,
59
- 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
60
- 'reject_cost_e8s' : IDL.Nat64,
61
- 'transaction_fee_e8s' : IDL.Nat64,
62
- 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
63
- 'minimum_icp_xdr_rate' : IDL.Nat64,
64
- 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
65
- });
66
- const RewardEvent = IDL.Record({
67
- 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
68
- 'day_after_genesis' : IDL.Nat64,
69
- 'actual_timestamp_seconds' : IDL.Nat64,
70
- 'total_available_e8s_equivalent' : IDL.Nat64,
71
- 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
72
- 'distributed_e8s_equivalent' : IDL.Nat64,
73
- 'settled_proposals' : IDL.Vec(NeuronId),
74
- });
75
- const NeuronStakeTransfer = IDL.Record({
76
- 'to_subaccount' : IDL.Vec(IDL.Nat8),
77
- 'neuron_stake_e8s' : IDL.Nat64,
78
- 'from' : IDL.Opt(IDL.Principal),
79
- 'memo' : IDL.Nat64,
80
- 'from_subaccount' : IDL.Vec(IDL.Nat8),
81
- 'transfer_timestamp' : IDL.Nat64,
82
- 'block_height' : IDL.Nat64,
83
- });
84
- const GovernanceError = IDL.Record({
85
- 'error_message' : IDL.Text,
86
- 'error_type' : IDL.Int32,
87
- });
88
- const CfNeuron = IDL.Record({
89
- 'nns_neuron_id' : IDL.Nat64,
90
- 'amount_icp_e8s' : IDL.Nat64,
91
- });
92
- const CfParticipant = IDL.Record({
93
- 'hotkey_principal' : IDL.Text,
94
- 'cf_neurons' : IDL.Vec(CfNeuron),
95
- });
96
- const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
97
- const CanisterStatusResultV2 = IDL.Record({
98
- 'status' : IDL.Opt(IDL.Int32),
99
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
100
- 'controllers' : IDL.Vec(IDL.Principal),
101
- 'memory_size' : IDL.Opt(IDL.Nat64),
102
- 'cycles' : IDL.Opt(IDL.Nat64),
103
- 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
104
- 'module_hash' : IDL.Vec(IDL.Nat8),
105
- });
106
- const CanisterSummary = IDL.Record({
107
- 'status' : IDL.Opt(CanisterStatusResultV2),
108
- 'canister_id' : IDL.Opt(IDL.Principal),
109
- });
110
- const SwapBackgroundInformation = IDL.Record({
111
- 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
112
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
113
- 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
114
- 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
115
- 'swap_canister_summary' : IDL.Opt(CanisterSummary),
116
- 'governance_canister_summary' : IDL.Opt(CanisterSummary),
117
- 'root_canister_summary' : IDL.Opt(CanisterSummary),
118
- 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
119
- });
120
- const DerivedProposalInformation = IDL.Record({
121
- 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
122
- });
123
- const Tally = IDL.Record({
124
- 'no' : IDL.Nat64,
125
- 'yes' : IDL.Nat64,
126
- 'total' : IDL.Nat64,
127
- 'timestamp_seconds' : IDL.Nat64,
128
- });
129
6
  const KnownNeuronData = IDL.Record({
130
7
  'name' : IDL.Text,
131
8
  'description' : IDL.Opt(IDL.Text),
@@ -195,6 +72,7 @@ export const idlFactory = ({ IDL }) => {
195
72
  'percentage_to_stake' : IDL.Opt(IDL.Nat32),
196
73
  });
197
74
  const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
75
+ const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
198
76
  const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
199
77
  const Disburse = IDL.Record({
200
78
  'to_account' : IDL.Opt(AccountIdentifier),
@@ -261,6 +139,7 @@ export const idlFactory = ({ IDL }) => {
261
139
  const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
262
140
  const SwapParameters = IDL.Record({
263
141
  'minimum_participants' : IDL.Opt(IDL.Nat64),
142
+ 'neurons_fund_participation' : IDL.Opt(IDL.Bool),
264
143
  'duration' : IDL.Opt(Duration),
265
144
  'neuron_basket_construction_parameters' : IDL.Opt(
266
145
  NeuronBasketConstructionParameters
@@ -268,8 +147,10 @@ export const idlFactory = ({ IDL }) => {
268
147
  'confirmation_text' : IDL.Opt(IDL.Text),
269
148
  'maximum_participant_icp' : IDL.Opt(Tokens),
270
149
  'minimum_icp' : IDL.Opt(Tokens),
150
+ 'minimum_direct_participation_icp' : IDL.Opt(Tokens),
271
151
  'minimum_participant_icp' : IDL.Opt(Tokens),
272
152
  'start_time' : IDL.Opt(GlobalTimeOfDay),
153
+ 'maximum_direct_participation_icp' : IDL.Opt(Tokens),
273
154
  'maximum_icp' : IDL.Opt(Tokens),
274
155
  'neurons_fund_investment_icp' : IDL.Opt(Tokens),
275
156
  'restricted_countries' : IDL.Opt(Countries),
@@ -306,6 +187,23 @@ export const idlFactory = ({ IDL }) => {
306
187
  'nns_function' : IDL.Int32,
307
188
  'payload' : IDL.Vec(IDL.Nat8),
308
189
  });
190
+ const NodeProvider = IDL.Record({
191
+ 'id' : IDL.Opt(IDL.Principal),
192
+ 'reward_account' : IDL.Opt(AccountIdentifier),
193
+ });
194
+ const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
195
+ const RewardToAccount = IDL.Record({
196
+ 'to_account' : IDL.Opt(AccountIdentifier),
197
+ });
198
+ const RewardMode = IDL.Variant({
199
+ 'RewardToNeuron' : RewardToNeuron,
200
+ 'RewardToAccount' : RewardToAccount,
201
+ });
202
+ const RewardNodeProvider = IDL.Record({
203
+ 'node_provider' : IDL.Opt(NodeProvider),
204
+ 'reward_mode' : IDL.Opt(RewardMode),
205
+ 'amount_e8s' : IDL.Nat64,
206
+ });
309
207
  const NeuronBasketConstructionParameters_1 = IDL.Record({
310
208
  'dissolve_delay_interval_seconds' : IDL.Nat64,
311
209
  'count' : IDL.Nat64,
@@ -321,7 +219,9 @@ export const idlFactory = ({ IDL }) => {
321
219
  'sns_token_e8s' : IDL.Nat64,
322
220
  'sale_delay_seconds' : IDL.Opt(IDL.Nat64),
323
221
  'max_participant_icp_e8s' : IDL.Nat64,
222
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
324
223
  'min_icp_e8s' : IDL.Nat64,
224
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
325
225
  });
326
226
  const OpenSnsTokenSwap = IDL.Record({
327
227
  'community_fund_investment_e8s' : IDL.Opt(IDL.Nat64),
@@ -346,6 +246,16 @@ export const idlFactory = ({ IDL }) => {
346
246
  'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
347
247
  'rewards' : IDL.Vec(RewardNodeProvider),
348
248
  });
249
+ const NetworkEconomics = IDL.Record({
250
+ 'neuron_minimum_stake_e8s' : IDL.Nat64,
251
+ 'max_proposals_to_keep_per_topic' : IDL.Nat32,
252
+ 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
253
+ 'reject_cost_e8s' : IDL.Nat64,
254
+ 'transaction_fee_e8s' : IDL.Nat64,
255
+ 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
256
+ 'minimum_icp_xdr_rate' : IDL.Nat64,
257
+ 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
258
+ });
349
259
  const ApproveGenesisKyc = IDL.Record({
350
260
  'principals' : IDL.Vec(IDL.Principal),
351
261
  });
@@ -378,6 +288,163 @@ export const idlFactory = ({ IDL }) => {
378
288
  'summary' : IDL.Text,
379
289
  })
380
290
  );
291
+ const MakingSnsProposal = IDL.Record({
292
+ 'proposal' : IDL.Opt(Proposal),
293
+ 'caller' : IDL.Opt(IDL.Principal),
294
+ 'proposer_id' : IDL.Opt(NeuronId),
295
+ });
296
+ const MostRecentMonthlyNodeProviderRewards = IDL.Record({
297
+ 'timestamp' : IDL.Nat64,
298
+ 'rewards' : IDL.Vec(RewardNodeProvider),
299
+ });
300
+ const GovernanceCachedMetrics = IDL.Record({
301
+ 'total_maturity_e8s_equivalent' : IDL.Nat64,
302
+ 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
303
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
304
+ ),
305
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
306
+ 'garbage_collectable_neurons_count' : IDL.Nat64,
307
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
308
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
309
+ ),
310
+ 'neurons_with_invalid_stake_count' : IDL.Nat64,
311
+ 'not_dissolving_neurons_count_buckets' : IDL.Vec(
312
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
313
+ ),
314
+ 'total_supply_icp' : IDL.Nat64,
315
+ 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
316
+ 'dissolved_neurons_count' : IDL.Nat64,
317
+ 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
318
+ 'total_staked_e8s' : IDL.Nat64,
319
+ 'not_dissolving_neurons_count' : IDL.Nat64,
320
+ 'total_locked_e8s' : IDL.Nat64,
321
+ 'neurons_fund_total_active_neurons' : IDL.Nat64,
322
+ 'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
323
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
324
+ 'dissolved_neurons_e8s' : IDL.Nat64,
325
+ 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
326
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
327
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
328
+ ),
329
+ 'dissolving_neurons_count_buckets' : IDL.Vec(
330
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
331
+ ),
332
+ 'dissolving_neurons_count' : IDL.Nat64,
333
+ 'dissolving_neurons_e8s_buckets' : IDL.Vec(
334
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
335
+ ),
336
+ 'community_fund_total_staked_e8s' : IDL.Nat64,
337
+ 'timestamp_seconds' : IDL.Nat64,
338
+ });
339
+ const RewardEvent = IDL.Record({
340
+ 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
341
+ 'day_after_genesis' : IDL.Nat64,
342
+ 'actual_timestamp_seconds' : IDL.Nat64,
343
+ 'total_available_e8s_equivalent' : IDL.Nat64,
344
+ 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
345
+ 'distributed_e8s_equivalent' : IDL.Nat64,
346
+ 'settled_proposals' : IDL.Vec(NeuronId),
347
+ });
348
+ const NeuronStakeTransfer = IDL.Record({
349
+ 'to_subaccount' : IDL.Vec(IDL.Nat8),
350
+ 'neuron_stake_e8s' : IDL.Nat64,
351
+ 'from' : IDL.Opt(IDL.Principal),
352
+ 'memo' : IDL.Nat64,
353
+ 'from_subaccount' : IDL.Vec(IDL.Nat8),
354
+ 'transfer_timestamp' : IDL.Nat64,
355
+ 'block_height' : IDL.Nat64,
356
+ });
357
+ const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
358
+ const Migration = IDL.Record({
359
+ 'status' : IDL.Opt(IDL.Int32),
360
+ 'failure_reason' : IDL.Opt(IDL.Text),
361
+ 'progress' : IDL.Opt(Progress),
362
+ });
363
+ const Migrations = IDL.Record({
364
+ 'neuron_indexes_migration' : IDL.Opt(Migration),
365
+ 'copy_inactive_neurons_to_stable_memory_migration' : IDL.Opt(Migration),
366
+ });
367
+ const GovernanceError = IDL.Record({
368
+ 'error_message' : IDL.Text,
369
+ 'error_type' : IDL.Int32,
370
+ });
371
+ const CfNeuron = IDL.Record({
372
+ 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
373
+ 'nns_neuron_id' : IDL.Nat64,
374
+ 'amount_icp_e8s' : IDL.Nat64,
375
+ });
376
+ const CfParticipant = IDL.Record({
377
+ 'hotkey_principal' : IDL.Text,
378
+ 'cf_neurons' : IDL.Vec(CfNeuron),
379
+ });
380
+ const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
381
+ const SwapParticipationLimits = IDL.Record({
382
+ 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
383
+ 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
384
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
385
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
386
+ });
387
+ const NeuronsFundNeuronPortion = IDL.Record({
388
+ 'hotkey_principal' : IDL.Opt(IDL.Principal),
389
+ 'is_capped' : IDL.Opt(IDL.Bool),
390
+ 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
391
+ 'nns_neuron_id' : IDL.Opt(NeuronId),
392
+ 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
393
+ });
394
+ const NeuronsFundSnapshot = IDL.Record({
395
+ 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
396
+ });
397
+ const IdealMatchedParticipationFunction = IDL.Record({
398
+ 'serialized_representation' : IDL.Opt(IDL.Text),
399
+ });
400
+ const NeuronsFundParticipation = IDL.Record({
401
+ 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
402
+ 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
403
+ 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
404
+ 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
405
+ 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
406
+ 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
407
+ 'ideal_matched_participation_function' : IDL.Opt(
408
+ IdealMatchedParticipationFunction
409
+ ),
410
+ });
411
+ const NeuronsFundData = IDL.Record({
412
+ 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
413
+ 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
414
+ 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
415
+ });
416
+ const CanisterStatusResultV2 = IDL.Record({
417
+ 'status' : IDL.Opt(IDL.Int32),
418
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
419
+ 'controllers' : IDL.Vec(IDL.Principal),
420
+ 'memory_size' : IDL.Opt(IDL.Nat64),
421
+ 'cycles' : IDL.Opt(IDL.Nat64),
422
+ 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
423
+ 'module_hash' : IDL.Vec(IDL.Nat8),
424
+ });
425
+ const CanisterSummary = IDL.Record({
426
+ 'status' : IDL.Opt(CanisterStatusResultV2),
427
+ 'canister_id' : IDL.Opt(IDL.Principal),
428
+ });
429
+ const SwapBackgroundInformation = IDL.Record({
430
+ 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
431
+ 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
432
+ 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
433
+ 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
434
+ 'swap_canister_summary' : IDL.Opt(CanisterSummary),
435
+ 'governance_canister_summary' : IDL.Opt(CanisterSummary),
436
+ 'root_canister_summary' : IDL.Opt(CanisterSummary),
437
+ 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
438
+ });
439
+ const DerivedProposalInformation = IDL.Record({
440
+ 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
441
+ });
442
+ const Tally = IDL.Record({
443
+ 'no' : IDL.Nat64,
444
+ 'yes' : IDL.Nat64,
445
+ 'total' : IDL.Nat64,
446
+ 'timestamp_seconds' : IDL.Nat64,
447
+ });
381
448
  const WaitForQuietState = IDL.Record({
382
449
  'current_deadline_timestamp_seconds' : IDL.Nat64,
383
450
  });
@@ -389,6 +456,7 @@ export const idlFactory = ({ IDL }) => {
389
456
  'proposal_timestamp_seconds' : IDL.Nat64,
390
457
  'reward_event_round' : IDL.Nat64,
391
458
  'failed_timestamp_seconds' : IDL.Nat64,
459
+ 'neurons_fund_data' : IDL.Opt(NeuronsFundData),
392
460
  'reject_cost_e8s' : IDL.Nat64,
393
461
  'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
394
462
  'latest_tally' : IDL.Opt(Tally),
@@ -449,6 +517,7 @@ export const idlFactory = ({ IDL }) => {
449
517
  });
450
518
  const Governance = IDL.Record({
451
519
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
520
+ 'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
452
521
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
453
522
  MostRecentMonthlyNodeProviderRewards
454
523
  ),
@@ -457,6 +526,7 @@ export const idlFactory = ({ IDL }) => {
457
526
  ),
458
527
  'wait_for_quiet_threshold_seconds' : IDL.Nat64,
459
528
  'metrics' : IDL.Opt(GovernanceCachedMetrics),
529
+ 'neuron_management_voting_period_seconds' : IDL.Opt(IDL.Nat64),
460
530
  'node_providers' : IDL.Vec(NodeProvider),
461
531
  'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
462
532
  'economics' : IDL.Opt(NetworkEconomics),
@@ -464,6 +534,7 @@ export const idlFactory = ({ IDL }) => {
464
534
  'latest_reward_event' : IDL.Opt(RewardEvent),
465
535
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
466
536
  'short_voting_period_seconds' : IDL.Nat64,
537
+ 'migrations' : IDL.Opt(Migrations),
467
538
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
468
539
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
469
540
  'neurons' : IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
@@ -538,6 +609,7 @@ export const idlFactory = ({ IDL }) => {
538
609
  });
539
610
  const ListProposalInfo = IDL.Record({
540
611
  'include_reward_status' : IDL.Vec(IDL.Int32),
612
+ 'omit_large_fields' : IDL.Opt(IDL.Bool),
541
613
  'before_proposal' : IDL.Opt(NeuronId),
542
614
  'limit' : IDL.Nat32,
543
615
  'exclude_topic' : IDL.Vec(IDL.Int32),
@@ -586,218 +658,128 @@ export const idlFactory = ({ IDL }) => {
586
658
  });
587
659
  const ManageNeuronResponse = IDL.Record({ 'command' : IDL.Opt(Command_1) });
588
660
  const Committed = IDL.Record({
661
+ 'total_direct_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
662
+ 'total_neurons_fund_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
589
663
  'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
590
664
  });
591
665
  const Result_7 = IDL.Variant({
592
666
  'Committed' : Committed,
593
667
  'Aborted' : IDL.Record({}),
594
668
  });
595
- const SettleCommunityFundParticipation = IDL.Record({
596
- 'result' : IDL.Opt(Result_7),
597
- 'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
598
- });
599
- const UpdateNodeProvider = IDL.Record({
600
- 'reward_account' : IDL.Opt(AccountIdentifier),
601
- });
602
- return IDL.Service({
603
- 'claim_gtc_neurons' : IDL.Func(
604
- [IDL.Principal, IDL.Vec(NeuronId)],
605
- [Result],
606
- [],
607
- ),
608
- 'claim_or_refresh_neuron_from_account' : IDL.Func(
609
- [ClaimOrRefreshNeuronFromAccount],
610
- [ClaimOrRefreshNeuronFromAccountResponse],
611
- [],
612
- ),
613
- 'get_build_metadata' : IDL.Func([], [IDL.Text], ['query']),
614
- 'get_full_neuron' : IDL.Func([IDL.Nat64], [Result_2], ['query']),
615
- 'get_full_neuron_by_id_or_subaccount' : IDL.Func(
616
- [NeuronIdOrSubaccount],
617
- [Result_2],
618
- ['query'],
619
- ),
620
- 'get_latest_reward_event' : IDL.Func([], [RewardEvent], ['query']),
621
- 'get_metrics' : IDL.Func([], [Result_3], ['query']),
622
- 'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
623
- 'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
624
- [],
625
- [IDL.Opt(MostRecentMonthlyNodeProviderRewards)],
626
- ['query'],
627
- ),
628
- 'get_network_economics_parameters' : IDL.Func(
629
- [],
630
- [NetworkEconomics],
631
- ['query'],
632
- ),
633
- 'get_neuron_ids' : IDL.Func([], [IDL.Vec(IDL.Nat64)], ['query']),
634
- 'get_neuron_info' : IDL.Func([IDL.Nat64], [Result_5], ['query']),
635
- 'get_neuron_info_by_id_or_subaccount' : IDL.Func(
636
- [NeuronIdOrSubaccount],
637
- [Result_5],
638
- ['query'],
639
- ),
640
- 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_6], ['query']),
641
- 'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
642
- 'get_proposal_info' : IDL.Func(
643
- [IDL.Nat64],
644
- [IDL.Opt(ProposalInfo)],
645
- ['query'],
646
- ),
647
- 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], ['query']),
648
- 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
649
- 'list_node_providers' : IDL.Func(
650
- [],
651
- [ListNodeProvidersResponse],
652
- ['query'],
653
- ),
654
- 'list_proposals' : IDL.Func(
655
- [ListProposalInfo],
656
- [ListProposalInfoResponse],
657
- ['query'],
658
- ),
659
- 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
660
- 'settle_community_fund_participation' : IDL.Func(
661
- [SettleCommunityFundParticipation],
662
- [Result],
663
- [],
664
- ),
665
- 'simulate_manage_neuron' : IDL.Func(
666
- [ManageNeuron],
667
- [ManageNeuronResponse],
668
- [],
669
- ),
670
- 'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
671
- 'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
672
- });
673
- };
674
- export const init = ({ IDL }) => {
675
- const Proposal = IDL.Rec();
676
- const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
677
- const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
678
- const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
679
- const NodeProvider = IDL.Record({
680
- 'id' : IDL.Opt(IDL.Principal),
681
- 'reward_account' : IDL.Opt(AccountIdentifier),
682
- });
683
- const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
684
- const RewardToAccount = IDL.Record({
685
- 'to_account' : IDL.Opt(AccountIdentifier),
686
- });
687
- const RewardMode = IDL.Variant({
688
- 'RewardToNeuron' : RewardToNeuron,
689
- 'RewardToAccount' : RewardToAccount,
690
- });
691
- const RewardNodeProvider = IDL.Record({
692
- 'node_provider' : IDL.Opt(NodeProvider),
693
- 'reward_mode' : IDL.Opt(RewardMode),
694
- 'amount_e8s' : IDL.Nat64,
695
- });
696
- const MostRecentMonthlyNodeProviderRewards = IDL.Record({
697
- 'timestamp' : IDL.Nat64,
698
- 'rewards' : IDL.Vec(RewardNodeProvider),
699
- });
700
- const GovernanceCachedMetrics = IDL.Record({
701
- 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
702
- IDL.Tuple(IDL.Nat64, IDL.Float64)
703
- ),
704
- 'garbage_collectable_neurons_count' : IDL.Nat64,
705
- 'neurons_with_invalid_stake_count' : IDL.Nat64,
706
- 'not_dissolving_neurons_count_buckets' : IDL.Vec(
707
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
708
- ),
709
- 'total_supply_icp' : IDL.Nat64,
710
- 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
711
- 'dissolved_neurons_count' : IDL.Nat64,
712
- 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
713
- 'total_staked_e8s' : IDL.Nat64,
714
- 'not_dissolving_neurons_count' : IDL.Nat64,
715
- 'total_locked_e8s' : IDL.Nat64,
716
- 'dissolved_neurons_e8s' : IDL.Nat64,
717
- 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
718
- 'dissolving_neurons_count_buckets' : IDL.Vec(
719
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
720
- ),
721
- 'dissolving_neurons_count' : IDL.Nat64,
722
- 'dissolving_neurons_e8s_buckets' : IDL.Vec(
723
- IDL.Tuple(IDL.Nat64, IDL.Float64)
724
- ),
725
- 'community_fund_total_staked_e8s' : IDL.Nat64,
726
- 'timestamp_seconds' : IDL.Nat64,
727
- });
728
- const NetworkEconomics = IDL.Record({
729
- 'neuron_minimum_stake_e8s' : IDL.Nat64,
730
- 'max_proposals_to_keep_per_topic' : IDL.Nat32,
731
- 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
732
- 'reject_cost_e8s' : IDL.Nat64,
733
- 'transaction_fee_e8s' : IDL.Nat64,
734
- 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
735
- 'minimum_icp_xdr_rate' : IDL.Nat64,
736
- 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
737
- });
738
- const RewardEvent = IDL.Record({
739
- 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
740
- 'day_after_genesis' : IDL.Nat64,
741
- 'actual_timestamp_seconds' : IDL.Nat64,
742
- 'total_available_e8s_equivalent' : IDL.Nat64,
743
- 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
744
- 'distributed_e8s_equivalent' : IDL.Nat64,
745
- 'settled_proposals' : IDL.Vec(NeuronId),
746
- });
747
- const NeuronStakeTransfer = IDL.Record({
748
- 'to_subaccount' : IDL.Vec(IDL.Nat8),
749
- 'neuron_stake_e8s' : IDL.Nat64,
750
- 'from' : IDL.Opt(IDL.Principal),
751
- 'memo' : IDL.Nat64,
752
- 'from_subaccount' : IDL.Vec(IDL.Nat8),
753
- 'transfer_timestamp' : IDL.Nat64,
754
- 'block_height' : IDL.Nat64,
669
+ const SettleCommunityFundParticipation = IDL.Record({
670
+ 'result' : IDL.Opt(Result_7),
671
+ 'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
755
672
  });
756
- const GovernanceError = IDL.Record({
757
- 'error_message' : IDL.Text,
758
- 'error_type' : IDL.Int32,
673
+ const Committed_1 = IDL.Record({
674
+ 'total_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
675
+ 'total_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
676
+ 'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
759
677
  });
760
- const CfNeuron = IDL.Record({
761
- 'nns_neuron_id' : IDL.Nat64,
762
- 'amount_icp_e8s' : IDL.Nat64,
678
+ const Result_8 = IDL.Variant({
679
+ 'Committed' : Committed_1,
680
+ 'Aborted' : IDL.Record({}),
763
681
  });
764
- const CfParticipant = IDL.Record({
765
- 'hotkey_principal' : IDL.Text,
766
- 'cf_neurons' : IDL.Vec(CfNeuron),
682
+ const SettleNeuronsFundParticipationRequest = IDL.Record({
683
+ 'result' : IDL.Opt(Result_8),
684
+ 'nns_proposal_id' : IDL.Opt(IDL.Nat64),
767
685
  });
768
- const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
769
- const CanisterStatusResultV2 = IDL.Record({
770
- 'status' : IDL.Opt(IDL.Int32),
771
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
772
- 'controllers' : IDL.Vec(IDL.Principal),
773
- 'memory_size' : IDL.Opt(IDL.Nat64),
774
- 'cycles' : IDL.Opt(IDL.Nat64),
775
- 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
776
- 'module_hash' : IDL.Vec(IDL.Nat8),
686
+ const NeuronsFundNeuron = IDL.Record({
687
+ 'hotkey_principal' : IDL.Opt(IDL.Text),
688
+ 'is_capped' : IDL.Opt(IDL.Bool),
689
+ 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
690
+ 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
777
691
  });
778
- const CanisterSummary = IDL.Record({
779
- 'status' : IDL.Opt(CanisterStatusResultV2),
780
- 'canister_id' : IDL.Opt(IDL.Principal),
692
+ const Ok = IDL.Record({
693
+ 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuron),
781
694
  });
782
- const SwapBackgroundInformation = IDL.Record({
783
- 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
784
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
785
- 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
786
- 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
787
- 'swap_canister_summary' : IDL.Opt(CanisterSummary),
788
- 'governance_canister_summary' : IDL.Opt(CanisterSummary),
789
- 'root_canister_summary' : IDL.Opt(CanisterSummary),
790
- 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
695
+ const Result_9 = IDL.Variant({ 'Ok' : Ok, 'Err' : GovernanceError });
696
+ const SettleNeuronsFundParticipationResponse = IDL.Record({
697
+ 'result' : IDL.Opt(Result_9),
791
698
  });
792
- const DerivedProposalInformation = IDL.Record({
793
- 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
699
+ const UpdateNodeProvider = IDL.Record({
700
+ 'reward_account' : IDL.Opt(AccountIdentifier),
794
701
  });
795
- const Tally = IDL.Record({
796
- 'no' : IDL.Nat64,
797
- 'yes' : IDL.Nat64,
798
- 'total' : IDL.Nat64,
799
- 'timestamp_seconds' : IDL.Nat64,
702
+ return IDL.Service({
703
+ 'claim_gtc_neurons' : IDL.Func(
704
+ [IDL.Principal, IDL.Vec(NeuronId)],
705
+ [Result],
706
+ [],
707
+ ),
708
+ 'claim_or_refresh_neuron_from_account' : IDL.Func(
709
+ [ClaimOrRefreshNeuronFromAccount],
710
+ [ClaimOrRefreshNeuronFromAccountResponse],
711
+ [],
712
+ ),
713
+ 'get_build_metadata' : IDL.Func([], [IDL.Text], ['query']),
714
+ 'get_full_neuron' : IDL.Func([IDL.Nat64], [Result_2], ['query']),
715
+ 'get_full_neuron_by_id_or_subaccount' : IDL.Func(
716
+ [NeuronIdOrSubaccount],
717
+ [Result_2],
718
+ ['query'],
719
+ ),
720
+ 'get_latest_reward_event' : IDL.Func([], [RewardEvent], ['query']),
721
+ 'get_metrics' : IDL.Func([], [Result_3], ['query']),
722
+ 'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
723
+ 'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
724
+ [],
725
+ [IDL.Opt(MostRecentMonthlyNodeProviderRewards)],
726
+ ['query'],
727
+ ),
728
+ 'get_network_economics_parameters' : IDL.Func(
729
+ [],
730
+ [NetworkEconomics],
731
+ ['query'],
732
+ ),
733
+ 'get_neuron_ids' : IDL.Func([], [IDL.Vec(IDL.Nat64)], ['query']),
734
+ 'get_neuron_info' : IDL.Func([IDL.Nat64], [Result_5], ['query']),
735
+ 'get_neuron_info_by_id_or_subaccount' : IDL.Func(
736
+ [NeuronIdOrSubaccount],
737
+ [Result_5],
738
+ ['query'],
739
+ ),
740
+ 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_6], ['query']),
741
+ 'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
742
+ 'get_proposal_info' : IDL.Func(
743
+ [IDL.Nat64],
744
+ [IDL.Opt(ProposalInfo)],
745
+ ['query'],
746
+ ),
747
+ 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], ['query']),
748
+ 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
749
+ 'list_node_providers' : IDL.Func(
750
+ [],
751
+ [ListNodeProvidersResponse],
752
+ ['query'],
753
+ ),
754
+ 'list_proposals' : IDL.Func(
755
+ [ListProposalInfo],
756
+ [ListProposalInfoResponse],
757
+ ['query'],
758
+ ),
759
+ 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
760
+ 'settle_community_fund_participation' : IDL.Func(
761
+ [SettleCommunityFundParticipation],
762
+ [Result],
763
+ [],
764
+ ),
765
+ 'settle_neurons_fund_participation' : IDL.Func(
766
+ [SettleNeuronsFundParticipationRequest],
767
+ [SettleNeuronsFundParticipationResponse],
768
+ [],
769
+ ),
770
+ 'simulate_manage_neuron' : IDL.Func(
771
+ [ManageNeuron],
772
+ [ManageNeuronResponse],
773
+ [],
774
+ ),
775
+ 'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
776
+ 'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
800
777
  });
778
+ };
779
+ export const init = ({ IDL }) => {
780
+ const Proposal = IDL.Rec();
781
+ const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
782
+ const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
801
783
  const KnownNeuronData = IDL.Record({
802
784
  'name' : IDL.Text,
803
785
  'description' : IDL.Opt(IDL.Text),
@@ -867,6 +849,7 @@ export const init = ({ IDL }) => {
867
849
  'percentage_to_stake' : IDL.Opt(IDL.Nat32),
868
850
  });
869
851
  const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
852
+ const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
870
853
  const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
871
854
  const Disburse = IDL.Record({
872
855
  'to_account' : IDL.Opt(AccountIdentifier),
@@ -933,6 +916,7 @@ export const init = ({ IDL }) => {
933
916
  const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
934
917
  const SwapParameters = IDL.Record({
935
918
  'minimum_participants' : IDL.Opt(IDL.Nat64),
919
+ 'neurons_fund_participation' : IDL.Opt(IDL.Bool),
936
920
  'duration' : IDL.Opt(Duration),
937
921
  'neuron_basket_construction_parameters' : IDL.Opt(
938
922
  NeuronBasketConstructionParameters
@@ -940,8 +924,10 @@ export const init = ({ IDL }) => {
940
924
  'confirmation_text' : IDL.Opt(IDL.Text),
941
925
  'maximum_participant_icp' : IDL.Opt(Tokens),
942
926
  'minimum_icp' : IDL.Opt(Tokens),
927
+ 'minimum_direct_participation_icp' : IDL.Opt(Tokens),
943
928
  'minimum_participant_icp' : IDL.Opt(Tokens),
944
929
  'start_time' : IDL.Opt(GlobalTimeOfDay),
930
+ 'maximum_direct_participation_icp' : IDL.Opt(Tokens),
945
931
  'maximum_icp' : IDL.Opt(Tokens),
946
932
  'neurons_fund_investment_icp' : IDL.Opt(Tokens),
947
933
  'restricted_countries' : IDL.Opt(Countries),
@@ -978,6 +964,23 @@ export const init = ({ IDL }) => {
978
964
  'nns_function' : IDL.Int32,
979
965
  'payload' : IDL.Vec(IDL.Nat8),
980
966
  });
967
+ const NodeProvider = IDL.Record({
968
+ 'id' : IDL.Opt(IDL.Principal),
969
+ 'reward_account' : IDL.Opt(AccountIdentifier),
970
+ });
971
+ const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
972
+ const RewardToAccount = IDL.Record({
973
+ 'to_account' : IDL.Opt(AccountIdentifier),
974
+ });
975
+ const RewardMode = IDL.Variant({
976
+ 'RewardToNeuron' : RewardToNeuron,
977
+ 'RewardToAccount' : RewardToAccount,
978
+ });
979
+ const RewardNodeProvider = IDL.Record({
980
+ 'node_provider' : IDL.Opt(NodeProvider),
981
+ 'reward_mode' : IDL.Opt(RewardMode),
982
+ 'amount_e8s' : IDL.Nat64,
983
+ });
981
984
  const NeuronBasketConstructionParameters_1 = IDL.Record({
982
985
  'dissolve_delay_interval_seconds' : IDL.Nat64,
983
986
  'count' : IDL.Nat64,
@@ -993,7 +996,9 @@ export const init = ({ IDL }) => {
993
996
  'sns_token_e8s' : IDL.Nat64,
994
997
  'sale_delay_seconds' : IDL.Opt(IDL.Nat64),
995
998
  'max_participant_icp_e8s' : IDL.Nat64,
999
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
996
1000
  'min_icp_e8s' : IDL.Nat64,
1001
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
997
1002
  });
998
1003
  const OpenSnsTokenSwap = IDL.Record({
999
1004
  'community_fund_investment_e8s' : IDL.Opt(IDL.Nat64),
@@ -1018,6 +1023,16 @@ export const init = ({ IDL }) => {
1018
1023
  'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
1019
1024
  'rewards' : IDL.Vec(RewardNodeProvider),
1020
1025
  });
1026
+ const NetworkEconomics = IDL.Record({
1027
+ 'neuron_minimum_stake_e8s' : IDL.Nat64,
1028
+ 'max_proposals_to_keep_per_topic' : IDL.Nat32,
1029
+ 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
1030
+ 'reject_cost_e8s' : IDL.Nat64,
1031
+ 'transaction_fee_e8s' : IDL.Nat64,
1032
+ 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
1033
+ 'minimum_icp_xdr_rate' : IDL.Nat64,
1034
+ 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
1035
+ });
1021
1036
  const ApproveGenesisKyc = IDL.Record({
1022
1037
  'principals' : IDL.Vec(IDL.Principal),
1023
1038
  });
@@ -1050,6 +1065,163 @@ export const init = ({ IDL }) => {
1050
1065
  'summary' : IDL.Text,
1051
1066
  })
1052
1067
  );
1068
+ const MakingSnsProposal = IDL.Record({
1069
+ 'proposal' : IDL.Opt(Proposal),
1070
+ 'caller' : IDL.Opt(IDL.Principal),
1071
+ 'proposer_id' : IDL.Opt(NeuronId),
1072
+ });
1073
+ const MostRecentMonthlyNodeProviderRewards = IDL.Record({
1074
+ 'timestamp' : IDL.Nat64,
1075
+ 'rewards' : IDL.Vec(RewardNodeProvider),
1076
+ });
1077
+ const GovernanceCachedMetrics = IDL.Record({
1078
+ 'total_maturity_e8s_equivalent' : IDL.Nat64,
1079
+ 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
1080
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1081
+ ),
1082
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1083
+ 'garbage_collectable_neurons_count' : IDL.Nat64,
1084
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1085
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1086
+ ),
1087
+ 'neurons_with_invalid_stake_count' : IDL.Nat64,
1088
+ 'not_dissolving_neurons_count_buckets' : IDL.Vec(
1089
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1090
+ ),
1091
+ 'total_supply_icp' : IDL.Nat64,
1092
+ 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
1093
+ 'dissolved_neurons_count' : IDL.Nat64,
1094
+ 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
1095
+ 'total_staked_e8s' : IDL.Nat64,
1096
+ 'not_dissolving_neurons_count' : IDL.Nat64,
1097
+ 'total_locked_e8s' : IDL.Nat64,
1098
+ 'neurons_fund_total_active_neurons' : IDL.Nat64,
1099
+ 'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
1100
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1101
+ 'dissolved_neurons_e8s' : IDL.Nat64,
1102
+ 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
1103
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1104
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1105
+ ),
1106
+ 'dissolving_neurons_count_buckets' : IDL.Vec(
1107
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1108
+ ),
1109
+ 'dissolving_neurons_count' : IDL.Nat64,
1110
+ 'dissolving_neurons_e8s_buckets' : IDL.Vec(
1111
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1112
+ ),
1113
+ 'community_fund_total_staked_e8s' : IDL.Nat64,
1114
+ 'timestamp_seconds' : IDL.Nat64,
1115
+ });
1116
+ const RewardEvent = IDL.Record({
1117
+ 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1118
+ 'day_after_genesis' : IDL.Nat64,
1119
+ 'actual_timestamp_seconds' : IDL.Nat64,
1120
+ 'total_available_e8s_equivalent' : IDL.Nat64,
1121
+ 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1122
+ 'distributed_e8s_equivalent' : IDL.Nat64,
1123
+ 'settled_proposals' : IDL.Vec(NeuronId),
1124
+ });
1125
+ const NeuronStakeTransfer = IDL.Record({
1126
+ 'to_subaccount' : IDL.Vec(IDL.Nat8),
1127
+ 'neuron_stake_e8s' : IDL.Nat64,
1128
+ 'from' : IDL.Opt(IDL.Principal),
1129
+ 'memo' : IDL.Nat64,
1130
+ 'from_subaccount' : IDL.Vec(IDL.Nat8),
1131
+ 'transfer_timestamp' : IDL.Nat64,
1132
+ 'block_height' : IDL.Nat64,
1133
+ });
1134
+ const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
1135
+ const Migration = IDL.Record({
1136
+ 'status' : IDL.Opt(IDL.Int32),
1137
+ 'failure_reason' : IDL.Opt(IDL.Text),
1138
+ 'progress' : IDL.Opt(Progress),
1139
+ });
1140
+ const Migrations = IDL.Record({
1141
+ 'neuron_indexes_migration' : IDL.Opt(Migration),
1142
+ 'copy_inactive_neurons_to_stable_memory_migration' : IDL.Opt(Migration),
1143
+ });
1144
+ const GovernanceError = IDL.Record({
1145
+ 'error_message' : IDL.Text,
1146
+ 'error_type' : IDL.Int32,
1147
+ });
1148
+ const CfNeuron = IDL.Record({
1149
+ 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
1150
+ 'nns_neuron_id' : IDL.Nat64,
1151
+ 'amount_icp_e8s' : IDL.Nat64,
1152
+ });
1153
+ const CfParticipant = IDL.Record({
1154
+ 'hotkey_principal' : IDL.Text,
1155
+ 'cf_neurons' : IDL.Vec(CfNeuron),
1156
+ });
1157
+ const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
1158
+ const SwapParticipationLimits = IDL.Record({
1159
+ 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1160
+ 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1161
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1162
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1163
+ });
1164
+ const NeuronsFundNeuronPortion = IDL.Record({
1165
+ 'hotkey_principal' : IDL.Opt(IDL.Principal),
1166
+ 'is_capped' : IDL.Opt(IDL.Bool),
1167
+ 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1168
+ 'nns_neuron_id' : IDL.Opt(NeuronId),
1169
+ 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
1170
+ });
1171
+ const NeuronsFundSnapshot = IDL.Record({
1172
+ 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
1173
+ });
1174
+ const IdealMatchedParticipationFunction = IDL.Record({
1175
+ 'serialized_representation' : IDL.Opt(IDL.Text),
1176
+ });
1177
+ const NeuronsFundParticipation = IDL.Record({
1178
+ 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1179
+ 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1180
+ 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1181
+ 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
1182
+ 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1183
+ 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
1184
+ 'ideal_matched_participation_function' : IDL.Opt(
1185
+ IdealMatchedParticipationFunction
1186
+ ),
1187
+ });
1188
+ const NeuronsFundData = IDL.Record({
1189
+ 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1190
+ 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1191
+ 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
1192
+ });
1193
+ const CanisterStatusResultV2 = IDL.Record({
1194
+ 'status' : IDL.Opt(IDL.Int32),
1195
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1196
+ 'controllers' : IDL.Vec(IDL.Principal),
1197
+ 'memory_size' : IDL.Opt(IDL.Nat64),
1198
+ 'cycles' : IDL.Opt(IDL.Nat64),
1199
+ 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
1200
+ 'module_hash' : IDL.Vec(IDL.Nat8),
1201
+ });
1202
+ const CanisterSummary = IDL.Record({
1203
+ 'status' : IDL.Opt(CanisterStatusResultV2),
1204
+ 'canister_id' : IDL.Opt(IDL.Principal),
1205
+ });
1206
+ const SwapBackgroundInformation = IDL.Record({
1207
+ 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
1208
+ 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1209
+ 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
1210
+ 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
1211
+ 'swap_canister_summary' : IDL.Opt(CanisterSummary),
1212
+ 'governance_canister_summary' : IDL.Opt(CanisterSummary),
1213
+ 'root_canister_summary' : IDL.Opt(CanisterSummary),
1214
+ 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
1215
+ });
1216
+ const DerivedProposalInformation = IDL.Record({
1217
+ 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
1218
+ });
1219
+ const Tally = IDL.Record({
1220
+ 'no' : IDL.Nat64,
1221
+ 'yes' : IDL.Nat64,
1222
+ 'total' : IDL.Nat64,
1223
+ 'timestamp_seconds' : IDL.Nat64,
1224
+ });
1053
1225
  const WaitForQuietState = IDL.Record({
1054
1226
  'current_deadline_timestamp_seconds' : IDL.Nat64,
1055
1227
  });
@@ -1061,6 +1233,7 @@ export const init = ({ IDL }) => {
1061
1233
  'proposal_timestamp_seconds' : IDL.Nat64,
1062
1234
  'reward_event_round' : IDL.Nat64,
1063
1235
  'failed_timestamp_seconds' : IDL.Nat64,
1236
+ 'neurons_fund_data' : IDL.Opt(NeuronsFundData),
1064
1237
  'reject_cost_e8s' : IDL.Nat64,
1065
1238
  'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
1066
1239
  'latest_tally' : IDL.Opt(Tally),
@@ -1121,6 +1294,7 @@ export const init = ({ IDL }) => {
1121
1294
  });
1122
1295
  const Governance = IDL.Record({
1123
1296
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1297
+ 'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
1124
1298
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
1125
1299
  MostRecentMonthlyNodeProviderRewards
1126
1300
  ),
@@ -1129,6 +1303,7 @@ export const init = ({ IDL }) => {
1129
1303
  ),
1130
1304
  'wait_for_quiet_threshold_seconds' : IDL.Nat64,
1131
1305
  'metrics' : IDL.Opt(GovernanceCachedMetrics),
1306
+ 'neuron_management_voting_period_seconds' : IDL.Opt(IDL.Nat64),
1132
1307
  'node_providers' : IDL.Vec(NodeProvider),
1133
1308
  'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
1134
1309
  'economics' : IDL.Opt(NetworkEconomics),
@@ -1136,6 +1311,7 @@ export const init = ({ IDL }) => {
1136
1311
  'latest_reward_event' : IDL.Opt(RewardEvent),
1137
1312
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
1138
1313
  'short_voting_period_seconds' : IDL.Nat64,
1314
+ 'migrations' : IDL.Opt(Migrations),
1139
1315
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1140
1316
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
1141
1317
  'neurons' : IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),