@dfinity/nns 11.1.4 → 12.0.0-next-2025-12-11

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 (50) hide show
  1. package/README.md +4 -4
  2. package/dist/index.d.ts +10 -15
  3. package/dist/index.js +1 -7
  4. package/dist/index.js.map +4 -4
  5. package/dist/index.mjs +1 -7
  6. package/dist/index.mjs.map +4 -4
  7. package/package.json +4 -9
  8. package/dist/candid/genesis_token.certified.idl.d.ts +0 -2
  9. package/dist/candid/genesis_token.certified.idl.js +0 -49
  10. package/dist/candid/genesis_token.d.ts +0 -46
  11. package/dist/candid/genesis_token.did +0 -49
  12. package/dist/candid/genesis_token.idl.d.ts +0 -2
  13. package/dist/candid/genesis_token.idl.js +0 -49
  14. package/dist/candid/governance.certified.idl.d.ts +0 -2
  15. package/dist/candid/governance.certified.idl.js +0 -1788
  16. package/dist/candid/governance.d.ts +0 -1339
  17. package/dist/candid/governance.did +0 -1478
  18. package/dist/candid/governance.idl.d.ts +0 -2
  19. package/dist/candid/governance.idl.js +0 -1796
  20. package/dist/candid/governance_test.certified.idl.d.ts +0 -2
  21. package/dist/candid/governance_test.certified.idl.js +0 -1789
  22. package/dist/candid/governance_test.d.ts +0 -1343
  23. package/dist/candid/governance_test.did +0 -1481
  24. package/dist/candid/governance_test.idl.d.ts +0 -2
  25. package/dist/candid/governance_test.idl.js +0 -1797
  26. package/dist/candid/old_list_neurons_service.certified.idl.d.ts +0 -2
  27. package/dist/candid/old_list_neurons_service.certified.idl.js +0 -87
  28. package/dist/candid/sns_wasm.certified.idl.d.ts +0 -2
  29. package/dist/candid/sns_wasm.certified.idl.js +0 -331
  30. package/dist/candid/sns_wasm.d.ts +0 -315
  31. package/dist/candid/sns_wasm.did +0 -350
  32. package/dist/candid/sns_wasm.idl.d.ts +0 -2
  33. package/dist/candid/sns_wasm.idl.js +0 -331
  34. package/dist/canisters/governance/request.converters.d.ts +0 -108
  35. package/dist/canisters/governance/response.converters.d.ts +0 -26
  36. package/dist/canisters/governance/services.d.ts +0 -21
  37. package/dist/constants/canister_ids.d.ts +0 -5
  38. package/dist/constants/constants.d.ts +0 -1
  39. package/dist/enums/governance.enums.d.ts +0 -138
  40. package/dist/errors/governance.errors.d.ts +0 -21
  41. package/dist/genesis_token.canister.d.ts +0 -11
  42. package/dist/governance.canister.d.ts +0 -361
  43. package/dist/governance_test.canister.d.ts +0 -15
  44. package/dist/sns_wasm.canister.d.ts +0 -11
  45. package/dist/types/common.d.ts +0 -6
  46. package/dist/types/governance.options.d.ts +0 -7
  47. package/dist/types/governance_converters.d.ts +0 -821
  48. package/dist/types/sns_wasm.options.d.ts +0 -3
  49. package/dist/utils/account_identifier.utils.d.ts +0 -5
  50. package/dist/utils/neurons.utils.d.ts +0 -50
@@ -1,1788 +0,0 @@
1
- /* eslint-disable */
2
-
3
- // @ts-nocheck
4
-
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
- // You should NOT make any changes in this file as it will be overwritten.
7
- // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
-
9
- export const idlFactory = ({ IDL }) => {
10
- const ManageNeuronRequest = IDL.Rec();
11
- const Proposal = IDL.Rec();
12
- const NeuronId = IDL.Record({ id: IDL.Nat64 });
13
- const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
14
- const DateUtc = IDL.Record({
15
- day: IDL.Nat32,
16
- month: IDL.Nat32,
17
- year: IDL.Nat32,
18
- });
19
- const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
20
- const NodeProvider = IDL.Record({
21
- id: IDL.Opt(IDL.Principal),
22
- reward_account: IDL.Opt(AccountIdentifier),
23
- });
24
- const RewardToNeuron = IDL.Record({ dissolve_delay_seconds: IDL.Nat64 });
25
- const RewardToAccount = IDL.Record({
26
- to_account: IDL.Opt(AccountIdentifier),
27
- });
28
- const RewardMode = IDL.Variant({
29
- RewardToNeuron: RewardToNeuron,
30
- RewardToAccount: RewardToAccount,
31
- });
32
- const RewardNodeProvider = IDL.Record({
33
- node_provider: IDL.Opt(NodeProvider),
34
- reward_mode: IDL.Opt(RewardMode),
35
- amount_e8s: IDL.Nat64,
36
- });
37
- const XdrConversionRate = IDL.Record({
38
- xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
39
- timestamp_seconds: IDL.Opt(IDL.Nat64),
40
- });
41
- const MonthlyNodeProviderRewards = IDL.Record({
42
- minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
43
- end_date: IDL.Opt(DateUtc),
44
- registry_version: IDL.Opt(IDL.Nat64),
45
- node_providers: IDL.Vec(NodeProvider),
46
- start_date: IDL.Opt(DateUtc),
47
- timestamp: IDL.Nat64,
48
- rewards: IDL.Vec(RewardNodeProvider),
49
- xdr_conversion_rate: IDL.Opt(XdrConversionRate),
50
- maximum_node_provider_rewards_e8s: IDL.Opt(IDL.Nat64),
51
- });
52
- const NeuronSubsetMetrics = IDL.Record({
53
- total_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
54
- maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
55
- voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
56
- total_staked_e8s: IDL.Opt(IDL.Nat64),
57
- count: IDL.Opt(IDL.Nat64),
58
- deciding_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
59
- total_staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
60
- total_potential_voting_power: IDL.Opt(IDL.Nat64),
61
- total_deciding_voting_power: IDL.Opt(IDL.Nat64),
62
- staked_maturity_e8s_equivalent_buckets: IDL.Vec(
63
- IDL.Tuple(IDL.Nat64, IDL.Nat64),
64
- ),
65
- staked_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
66
- total_voting_power: IDL.Opt(IDL.Nat64),
67
- potential_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
68
- count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
69
- });
70
- const GovernanceCachedMetrics = IDL.Record({
71
- total_maturity_e8s_equivalent: IDL.Nat64,
72
- not_dissolving_neurons_e8s_buckets: IDL.Vec(
73
- IDL.Tuple(IDL.Nat64, IDL.Float64),
74
- ),
75
- dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
76
- garbage_collectable_neurons_count: IDL.Nat64,
77
- dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
78
- IDL.Tuple(IDL.Nat64, IDL.Float64),
79
- ),
80
- neurons_with_invalid_stake_count: IDL.Nat64,
81
- not_dissolving_neurons_count_buckets: IDL.Vec(
82
- IDL.Tuple(IDL.Nat64, IDL.Nat64),
83
- ),
84
- ect_neuron_count: IDL.Nat64,
85
- total_supply_icp: IDL.Nat64,
86
- neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
87
- dissolved_neurons_count: IDL.Nat64,
88
- community_fund_total_maturity_e8s_equivalent: IDL.Nat64,
89
- total_staked_e8s_seed: IDL.Nat64,
90
- total_staked_maturity_e8s_equivalent_ect: IDL.Nat64,
91
- total_staked_e8s: IDL.Nat64,
92
- fully_lost_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
93
- not_dissolving_neurons_count: IDL.Nat64,
94
- total_locked_e8s: IDL.Nat64,
95
- neurons_fund_total_active_neurons: IDL.Nat64,
96
- total_voting_power_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
97
- total_staked_maturity_e8s_equivalent: IDL.Nat64,
98
- not_dissolving_neurons_e8s_buckets_ect: IDL.Vec(
99
- IDL.Tuple(IDL.Nat64, IDL.Float64),
100
- ),
101
- spawning_neurons_count: IDL.Nat64,
102
- declining_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
103
- total_staked_e8s_ect: IDL.Nat64,
104
- not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
105
- dissolved_neurons_e8s: IDL.Nat64,
106
- total_staked_e8s_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
107
- dissolving_neurons_e8s_buckets_seed: IDL.Vec(
108
- IDL.Tuple(IDL.Nat64, IDL.Float64),
109
- ),
110
- neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
111
- not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
112
- IDL.Tuple(IDL.Nat64, IDL.Float64),
113
- ),
114
- dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
115
- dissolving_neurons_e8s_buckets_ect: IDL.Vec(
116
- IDL.Tuple(IDL.Nat64, IDL.Float64),
117
- ),
118
- non_self_authenticating_controller_neuron_subset_metrics:
119
- IDL.Opt(NeuronSubsetMetrics),
120
- dissolving_neurons_count: IDL.Nat64,
121
- dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
122
- total_staked_maturity_e8s_equivalent_seed: IDL.Nat64,
123
- community_fund_total_staked_e8s: IDL.Nat64,
124
- not_dissolving_neurons_e8s_buckets_seed: IDL.Vec(
125
- IDL.Tuple(IDL.Nat64, IDL.Float64),
126
- ),
127
- public_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
128
- timestamp_seconds: IDL.Nat64,
129
- seed_neuron_count: IDL.Nat64,
130
- });
131
- const VotingPowerEconomics = IDL.Record({
132
- start_reducing_voting_power_after_seconds: IDL.Opt(IDL.Nat64),
133
- neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
134
- clear_following_after_seconds: IDL.Opt(IDL.Nat64),
135
- });
136
- const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
137
- const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
138
- const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
139
- contribution_threshold_xdr: IDL.Opt(Decimal),
140
- one_third_participation_milestone_xdr: IDL.Opt(Decimal),
141
- full_participation_milestone_xdr: IDL.Opt(Decimal),
142
- });
143
- const NeuronsFundEconomics = IDL.Record({
144
- maximum_icp_xdr_rate: IDL.Opt(Percentage),
145
- neurons_fund_matched_funding_curve_coefficients: IDL.Opt(
146
- NeuronsFundMatchedFundingCurveCoefficients,
147
- ),
148
- max_theoretical_neurons_fund_participation_amount_xdr: IDL.Opt(Decimal),
149
- minimum_icp_xdr_rate: IDL.Opt(Percentage),
150
- });
151
- const NetworkEconomics = IDL.Record({
152
- neuron_minimum_stake_e8s: IDL.Nat64,
153
- voting_power_economics: IDL.Opt(VotingPowerEconomics),
154
- max_proposals_to_keep_per_topic: IDL.Nat32,
155
- neuron_management_fee_per_proposal_e8s: IDL.Nat64,
156
- reject_cost_e8s: IDL.Nat64,
157
- transaction_fee_e8s: IDL.Nat64,
158
- neuron_spawn_dissolve_delay_seconds: IDL.Nat64,
159
- minimum_icp_xdr_rate: IDL.Nat64,
160
- maximum_node_provider_rewards_e8s: IDL.Nat64,
161
- neurons_fund_economics: IDL.Opt(NeuronsFundEconomics),
162
- });
163
- const RestoreAgingNeuronGroup = IDL.Record({
164
- count: IDL.Opt(IDL.Nat64),
165
- previous_total_stake_e8s: IDL.Opt(IDL.Nat64),
166
- current_total_stake_e8s: IDL.Opt(IDL.Nat64),
167
- group_type: IDL.Int32,
168
- });
169
- const RestoreAgingSummary = IDL.Record({
170
- groups: IDL.Vec(RestoreAgingNeuronGroup),
171
- timestamp_seconds: IDL.Opt(IDL.Nat64),
172
- });
173
- const ProposalId = IDL.Record({ id: IDL.Nat64 });
174
- const RewardEvent = IDL.Record({
175
- rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
176
- day_after_genesis: IDL.Nat64,
177
- actual_timestamp_seconds: IDL.Nat64,
178
- total_available_e8s_equivalent: IDL.Nat64,
179
- latest_round_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
180
- distributed_e8s_equivalent: IDL.Nat64,
181
- settled_proposals: IDL.Vec(ProposalId),
182
- });
183
- const NeuronStakeTransfer = IDL.Record({
184
- to_subaccount: IDL.Vec(IDL.Nat8),
185
- neuron_stake_e8s: IDL.Nat64,
186
- from: IDL.Opt(IDL.Principal),
187
- memo: IDL.Nat64,
188
- from_subaccount: IDL.Vec(IDL.Nat8),
189
- transfer_timestamp: IDL.Nat64,
190
- block_height: IDL.Nat64,
191
- });
192
- const GovernanceError = IDL.Record({
193
- error_message: IDL.Text,
194
- error_type: IDL.Int32,
195
- });
196
- const Ballot = IDL.Record({ vote: IDL.Int32, voting_power: IDL.Nat64 });
197
- const SwapParticipationLimits = IDL.Record({
198
- min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
199
- max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
200
- min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
201
- max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
202
- });
203
- const NeuronsFundNeuronPortion = IDL.Record({
204
- controller: IDL.Opt(IDL.Principal),
205
- hotkeys: IDL.Vec(IDL.Principal),
206
- is_capped: IDL.Opt(IDL.Bool),
207
- maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
208
- nns_neuron_id: IDL.Opt(NeuronId),
209
- amount_icp_e8s: IDL.Opt(IDL.Nat64),
210
- });
211
- const NeuronsFundSnapshot = IDL.Record({
212
- neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuronPortion),
213
- });
214
- const IdealMatchedParticipationFunction = IDL.Record({
215
- serialized_representation: IDL.Opt(IDL.Text),
216
- });
217
- const NeuronsFundParticipation = IDL.Record({
218
- total_maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
219
- intended_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
220
- direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
221
- swap_participation_limits: IDL.Opt(SwapParticipationLimits),
222
- max_neurons_fund_swap_participation_icp_e8s: IDL.Opt(IDL.Nat64),
223
- neurons_fund_reserves: IDL.Opt(NeuronsFundSnapshot),
224
- ideal_matched_participation_function: IDL.Opt(
225
- IdealMatchedParticipationFunction,
226
- ),
227
- allocated_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
228
- });
229
- const NeuronsFundData = IDL.Record({
230
- final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
231
- initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
232
- neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot),
233
- });
234
- const CanisterStatusResultV2 = IDL.Record({
235
- status: IDL.Opt(IDL.Int32),
236
- freezing_threshold: IDL.Opt(IDL.Nat64),
237
- controllers: IDL.Vec(IDL.Principal),
238
- memory_size: IDL.Opt(IDL.Nat64),
239
- cycles: IDL.Opt(IDL.Nat64),
240
- idle_cycles_burned_per_day: IDL.Opt(IDL.Nat64),
241
- module_hash: IDL.Vec(IDL.Nat8),
242
- });
243
- const CanisterSummary = IDL.Record({
244
- status: IDL.Opt(CanisterStatusResultV2),
245
- canister_id: IDL.Opt(IDL.Principal),
246
- });
247
- const SwapBackgroundInformation = IDL.Record({
248
- ledger_index_canister_summary: IDL.Opt(CanisterSummary),
249
- fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
250
- ledger_archive_canister_summaries: IDL.Vec(CanisterSummary),
251
- ledger_canister_summary: IDL.Opt(CanisterSummary),
252
- swap_canister_summary: IDL.Opt(CanisterSummary),
253
- governance_canister_summary: IDL.Opt(CanisterSummary),
254
- root_canister_summary: IDL.Opt(CanisterSummary),
255
- dapp_canister_summaries: IDL.Vec(CanisterSummary),
256
- });
257
- const DerivedProposalInformation = IDL.Record({
258
- swap_background_information: IDL.Opt(SwapBackgroundInformation),
259
- });
260
- const Tally = IDL.Record({
261
- no: IDL.Nat64,
262
- yes: IDL.Nat64,
263
- total: IDL.Nat64,
264
- timestamp_seconds: IDL.Nat64,
265
- });
266
- const TopicToFollow = IDL.Variant({
267
- Kyc: IDL.Null,
268
- ServiceNervousSystemManagement: IDL.Null,
269
- ApiBoundaryNodeManagement: IDL.Null,
270
- ApplicationCanisterManagement: IDL.Null,
271
- SubnetRental: IDL.Null,
272
- NeuronManagement: IDL.Null,
273
- NodeProviderRewards: IDL.Null,
274
- SubnetManagement: IDL.Null,
275
- ExchangeRate: IDL.Null,
276
- CatchAll: IDL.Null,
277
- NodeAdmin: IDL.Null,
278
- IcOsVersionElection: IDL.Null,
279
- ProtocolCanisterManagement: IDL.Null,
280
- NetworkEconomics: IDL.Null,
281
- IcOsVersionDeployment: IDL.Null,
282
- ParticipantManagement: IDL.Null,
283
- Governance: IDL.Null,
284
- SnsAndCommunityFund: IDL.Null,
285
- });
286
- const KnownNeuronData = IDL.Record({
287
- name: IDL.Text,
288
- committed_topics: IDL.Opt(IDL.Vec(IDL.Opt(TopicToFollow))),
289
- description: IDL.Opt(IDL.Text),
290
- links: IDL.Opt(IDL.Vec(IDL.Text)),
291
- });
292
- const KnownNeuron = IDL.Record({
293
- id: IDL.Opt(NeuronId),
294
- known_neuron_data: IDL.Opt(KnownNeuronData),
295
- });
296
- const FulfillSubnetRentalRequest = IDL.Record({
297
- user: IDL.Opt(IDL.Principal),
298
- replica_version_id: IDL.Opt(IDL.Text),
299
- node_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
300
- });
301
- const Spawn = IDL.Record({
302
- percentage_to_spawn: IDL.Opt(IDL.Nat32),
303
- new_controller: IDL.Opt(IDL.Principal),
304
- nonce: IDL.Opt(IDL.Nat64),
305
- });
306
- const Split = IDL.Record({
307
- memo: IDL.Opt(IDL.Nat64),
308
- amount_e8s: IDL.Nat64,
309
- });
310
- const Follow = IDL.Record({
311
- topic: IDL.Int32,
312
- followees: IDL.Vec(NeuronId),
313
- });
314
- const Account = IDL.Record({
315
- owner: IDL.Opt(IDL.Principal),
316
- subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
317
- });
318
- const DisburseMaturity = IDL.Record({
319
- to_account_identifier: IDL.Opt(AccountIdentifier),
320
- to_account: IDL.Opt(Account),
321
- percentage_to_disburse: IDL.Nat32,
322
- });
323
- const RefreshVotingPower = IDL.Record({});
324
- const ClaimOrRefreshNeuronFromAccount = IDL.Record({
325
- controller: IDL.Opt(IDL.Principal),
326
- memo: IDL.Nat64,
327
- });
328
- const By = IDL.Variant({
329
- NeuronIdOrSubaccount: IDL.Record({}),
330
- MemoAndController: ClaimOrRefreshNeuronFromAccount,
331
- Memo: IDL.Nat64,
332
- });
333
- const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
334
- const RemoveHotKey = IDL.Record({
335
- hot_key_to_remove: IDL.Opt(IDL.Principal),
336
- });
337
- const AddHotKey = IDL.Record({ new_hot_key: IDL.Opt(IDL.Principal) });
338
- const ChangeAutoStakeMaturity = IDL.Record({
339
- requested_setting_for_auto_stake_maturity: IDL.Bool,
340
- });
341
- const IncreaseDissolveDelay = IDL.Record({
342
- additional_dissolve_delay_seconds: IDL.Nat32,
343
- });
344
- const SetVisibility = IDL.Record({ visibility: IDL.Opt(IDL.Int32) });
345
- const SetDissolveTimestamp = IDL.Record({
346
- dissolve_timestamp_seconds: IDL.Nat64,
347
- });
348
- const Operation = IDL.Variant({
349
- RemoveHotKey: RemoveHotKey,
350
- AddHotKey: AddHotKey,
351
- ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
352
- StopDissolving: IDL.Record({}),
353
- StartDissolving: IDL.Record({}),
354
- IncreaseDissolveDelay: IncreaseDissolveDelay,
355
- SetVisibility: SetVisibility,
356
- JoinCommunityFund: IDL.Record({}),
357
- LeaveCommunityFund: IDL.Record({}),
358
- SetDissolveTimestamp: SetDissolveTimestamp,
359
- });
360
- const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
361
- const RegisterVote = IDL.Record({
362
- vote: IDL.Int32,
363
- proposal: IDL.Opt(ProposalId),
364
- });
365
- const Merge = IDL.Record({ source_neuron_id: IDL.Opt(NeuronId) });
366
- const DisburseToNeuron = IDL.Record({
367
- dissolve_delay_seconds: IDL.Nat64,
368
- kyc_verified: IDL.Bool,
369
- amount_e8s: IDL.Nat64,
370
- new_controller: IDL.Opt(IDL.Principal),
371
- nonce: IDL.Nat64,
372
- });
373
- const FolloweesForTopic = IDL.Record({
374
- topic: IDL.Opt(IDL.Int32),
375
- followees: IDL.Opt(IDL.Vec(NeuronId)),
376
- });
377
- const SetFollowing = IDL.Record({
378
- topic_following: IDL.Opt(IDL.Vec(FolloweesForTopic)),
379
- });
380
- const StakeMaturity = IDL.Record({
381
- percentage_to_stake: IDL.Opt(IDL.Nat32),
382
- });
383
- const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
384
- const Amount = IDL.Record({ e8s: IDL.Nat64 });
385
- const Disburse = IDL.Record({
386
- to_account: IDL.Opt(AccountIdentifier),
387
- amount: IDL.Opt(Amount),
388
- });
389
- const Command = IDL.Variant({
390
- Spawn: Spawn,
391
- Split: Split,
392
- Follow: Follow,
393
- DisburseMaturity: DisburseMaturity,
394
- RefreshVotingPower: RefreshVotingPower,
395
- ClaimOrRefresh: ClaimOrRefresh,
396
- Configure: Configure,
397
- RegisterVote: RegisterVote,
398
- Merge: Merge,
399
- DisburseToNeuron: DisburseToNeuron,
400
- SetFollowing: SetFollowing,
401
- MakeProposal: Proposal,
402
- StakeMaturity: StakeMaturity,
403
- MergeMaturity: MergeMaturity,
404
- Disburse: Disburse,
405
- });
406
- const NeuronIdOrSubaccount = IDL.Variant({
407
- Subaccount: IDL.Vec(IDL.Nat8),
408
- NeuronId: NeuronId,
409
- });
410
- const ManageNeuron = IDL.Record({
411
- id: IDL.Opt(NeuronId),
412
- command: IDL.Opt(Command),
413
- neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount),
414
- });
415
- const Controllers = IDL.Record({ controllers: IDL.Vec(IDL.Principal) });
416
- const CanisterSettings = IDL.Record({
417
- freezing_threshold: IDL.Opt(IDL.Nat64),
418
- wasm_memory_threshold: IDL.Opt(IDL.Nat64),
419
- controllers: IDL.Opt(Controllers),
420
- log_visibility: IDL.Opt(IDL.Int32),
421
- wasm_memory_limit: IDL.Opt(IDL.Nat64),
422
- memory_allocation: IDL.Opt(IDL.Nat64),
423
- compute_allocation: IDL.Opt(IDL.Nat64),
424
- });
425
- const UpdateCanisterSettings = IDL.Record({
426
- canister_id: IDL.Opt(IDL.Principal),
427
- settings: IDL.Opt(CanisterSettings),
428
- });
429
- const InstallCode = IDL.Record({
430
- skip_stopping_before_installing: IDL.Opt(IDL.Bool),
431
- wasm_module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
432
- canister_id: IDL.Opt(IDL.Principal),
433
- arg_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
434
- install_mode: IDL.Opt(IDL.Int32),
435
- });
436
- const DeregisterKnownNeuron = IDL.Record({ id: IDL.Opt(NeuronId) });
437
- const StopOrStartCanister = IDL.Record({
438
- action: IDL.Opt(IDL.Int32),
439
- canister_id: IDL.Opt(IDL.Principal),
440
- });
441
- const Duration = IDL.Record({ seconds: IDL.Opt(IDL.Nat64) });
442
- const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
443
- const VotingRewardParameters = IDL.Record({
444
- reward_rate_transition_duration: IDL.Opt(Duration),
445
- initial_reward_rate: IDL.Opt(Percentage),
446
- final_reward_rate: IDL.Opt(Percentage),
447
- });
448
- const GovernanceParameters = IDL.Record({
449
- neuron_maximum_dissolve_delay_bonus: IDL.Opt(Percentage),
450
- neuron_maximum_age_for_age_bonus: IDL.Opt(Duration),
451
- neuron_maximum_dissolve_delay: IDL.Opt(Duration),
452
- neuron_minimum_dissolve_delay_to_vote: IDL.Opt(Duration),
453
- neuron_maximum_age_bonus: IDL.Opt(Percentage),
454
- neuron_minimum_stake: IDL.Opt(Tokens),
455
- proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
456
- proposal_initial_voting_period: IDL.Opt(Duration),
457
- proposal_rejection_fee: IDL.Opt(Tokens),
458
- voting_reward_parameters: IDL.Opt(VotingRewardParameters),
459
- });
460
- const Image = IDL.Record({ base64_encoding: IDL.Opt(IDL.Text) });
461
- const LedgerParameters = IDL.Record({
462
- transaction_fee: IDL.Opt(Tokens),
463
- token_symbol: IDL.Opt(IDL.Text),
464
- token_logo: IDL.Opt(Image),
465
- token_name: IDL.Opt(IDL.Text),
466
- });
467
- const Canister = IDL.Record({ id: IDL.Opt(IDL.Principal) });
468
- const NeuronBasketConstructionParameters = IDL.Record({
469
- dissolve_delay_interval: IDL.Opt(Duration),
470
- count: IDL.Opt(IDL.Nat64),
471
- });
472
- const GlobalTimeOfDay = IDL.Record({
473
- seconds_after_utc_midnight: IDL.Opt(IDL.Nat64),
474
- });
475
- const Countries = IDL.Record({ iso_codes: IDL.Vec(IDL.Text) });
476
- const SwapParameters = IDL.Record({
477
- minimum_participants: IDL.Opt(IDL.Nat64),
478
- neurons_fund_participation: IDL.Opt(IDL.Bool),
479
- duration: IDL.Opt(Duration),
480
- neuron_basket_construction_parameters: IDL.Opt(
481
- NeuronBasketConstructionParameters,
482
- ),
483
- confirmation_text: IDL.Opt(IDL.Text),
484
- maximum_participant_icp: IDL.Opt(Tokens),
485
- minimum_icp: IDL.Opt(Tokens),
486
- minimum_direct_participation_icp: IDL.Opt(Tokens),
487
- minimum_participant_icp: IDL.Opt(Tokens),
488
- start_time: IDL.Opt(GlobalTimeOfDay),
489
- maximum_direct_participation_icp: IDL.Opt(Tokens),
490
- maximum_icp: IDL.Opt(Tokens),
491
- neurons_fund_investment_icp: IDL.Opt(Tokens),
492
- restricted_countries: IDL.Opt(Countries),
493
- });
494
- const SwapDistribution = IDL.Record({ total: IDL.Opt(Tokens) });
495
- const NeuronDistribution = IDL.Record({
496
- controller: IDL.Opt(IDL.Principal),
497
- dissolve_delay: IDL.Opt(Duration),
498
- memo: IDL.Opt(IDL.Nat64),
499
- vesting_period: IDL.Opt(Duration),
500
- stake: IDL.Opt(Tokens),
501
- });
502
- const DeveloperDistribution = IDL.Record({
503
- developer_neurons: IDL.Vec(NeuronDistribution),
504
- });
505
- const InitialTokenDistribution = IDL.Record({
506
- treasury_distribution: IDL.Opt(SwapDistribution),
507
- developer_distribution: IDL.Opt(DeveloperDistribution),
508
- swap_distribution: IDL.Opt(SwapDistribution),
509
- });
510
- const CreateServiceNervousSystem = IDL.Record({
511
- url: IDL.Opt(IDL.Text),
512
- governance_parameters: IDL.Opt(GovernanceParameters),
513
- fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
514
- logo: IDL.Opt(Image),
515
- name: IDL.Opt(IDL.Text),
516
- ledger_parameters: IDL.Opt(LedgerParameters),
517
- description: IDL.Opt(IDL.Text),
518
- dapp_canisters: IDL.Vec(Canister),
519
- swap_parameters: IDL.Opt(SwapParameters),
520
- initial_token_distribution: IDL.Opt(InitialTokenDistribution),
521
- });
522
- const ExecuteNnsFunction = IDL.Record({
523
- nns_function: IDL.Int32,
524
- payload: IDL.Vec(IDL.Nat8),
525
- });
526
- const NeuronBasketConstructionParameters_1 = IDL.Record({
527
- dissolve_delay_interval_seconds: IDL.Nat64,
528
- count: IDL.Nat64,
529
- });
530
- const Params = IDL.Record({
531
- min_participant_icp_e8s: IDL.Nat64,
532
- neuron_basket_construction_parameters: IDL.Opt(
533
- NeuronBasketConstructionParameters_1,
534
- ),
535
- max_icp_e8s: IDL.Nat64,
536
- swap_due_timestamp_seconds: IDL.Nat64,
537
- min_participants: IDL.Nat32,
538
- sns_token_e8s: IDL.Nat64,
539
- sale_delay_seconds: IDL.Opt(IDL.Nat64),
540
- max_participant_icp_e8s: IDL.Nat64,
541
- min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
542
- min_icp_e8s: IDL.Nat64,
543
- max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
544
- });
545
- const OpenSnsTokenSwap = IDL.Record({
546
- community_fund_investment_e8s: IDL.Opt(IDL.Nat64),
547
- target_swap_canister_id: IDL.Opt(IDL.Principal),
548
- params: IDL.Opt(Params),
549
- });
550
- const TimeWindow = IDL.Record({
551
- start_timestamp_seconds: IDL.Nat64,
552
- end_timestamp_seconds: IDL.Nat64,
553
- });
554
- const SetOpenTimeWindowRequest = IDL.Record({
555
- open_time_window: IDL.Opt(TimeWindow),
556
- });
557
- const SetSnsTokenSwapOpenTimeWindow = IDL.Record({
558
- request: IDL.Opt(SetOpenTimeWindowRequest),
559
- swap_canister_id: IDL.Opt(IDL.Principal),
560
- });
561
- const SetDefaultFollowees = IDL.Record({
562
- default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
563
- });
564
- const RewardNodeProviders = IDL.Record({
565
- use_registry_derived_rewards: IDL.Opt(IDL.Bool),
566
- rewards: IDL.Vec(RewardNodeProvider),
567
- });
568
- const Principals = IDL.Record({ principals: IDL.Vec(IDL.Principal) });
569
- const Change = IDL.Variant({
570
- ToRemove: NodeProvider,
571
- ToAdd: NodeProvider,
572
- });
573
- const AddOrRemoveNodeProvider = IDL.Record({ change: IDL.Opt(Change) });
574
- const Motion = IDL.Record({ motion_text: IDL.Text });
575
- const Action = IDL.Variant({
576
- RegisterKnownNeuron: KnownNeuron,
577
- FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
578
- ManageNeuron: ManageNeuron,
579
- UpdateCanisterSettings: UpdateCanisterSettings,
580
- InstallCode: InstallCode,
581
- DeregisterKnownNeuron: DeregisterKnownNeuron,
582
- StopOrStartCanister: StopOrStartCanister,
583
- CreateServiceNervousSystem: CreateServiceNervousSystem,
584
- ExecuteNnsFunction: ExecuteNnsFunction,
585
- RewardNodeProvider: RewardNodeProvider,
586
- OpenSnsTokenSwap: OpenSnsTokenSwap,
587
- SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow,
588
- SetDefaultFollowees: SetDefaultFollowees,
589
- RewardNodeProviders: RewardNodeProviders,
590
- ManageNetworkEconomics: NetworkEconomics,
591
- ApproveGenesisKyc: Principals,
592
- AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
593
- Motion: Motion,
594
- });
595
- Proposal.fill(
596
- IDL.Record({
597
- url: IDL.Text,
598
- title: IDL.Opt(IDL.Text),
599
- action: IDL.Opt(Action),
600
- summary: IDL.Text,
601
- }),
602
- );
603
- const WaitForQuietState = IDL.Record({
604
- current_deadline_timestamp_seconds: IDL.Nat64,
605
- });
606
- const ProposalData = IDL.Record({
607
- id: IDL.Opt(ProposalId),
608
- topic: IDL.Opt(IDL.Int32),
609
- failure_reason: IDL.Opt(GovernanceError),
610
- ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
611
- proposal_timestamp_seconds: IDL.Nat64,
612
- reward_event_round: IDL.Nat64,
613
- failed_timestamp_seconds: IDL.Nat64,
614
- neurons_fund_data: IDL.Opt(NeuronsFundData),
615
- reject_cost_e8s: IDL.Nat64,
616
- derived_proposal_information: IDL.Opt(DerivedProposalInformation),
617
- latest_tally: IDL.Opt(Tally),
618
- total_potential_voting_power: IDL.Opt(IDL.Nat64),
619
- sns_token_swap_lifecycle: IDL.Opt(IDL.Int32),
620
- decided_timestamp_seconds: IDL.Nat64,
621
- proposal: IDL.Opt(Proposal),
622
- proposer: IDL.Opt(NeuronId),
623
- wait_for_quiet_state: IDL.Opt(WaitForQuietState),
624
- executed_timestamp_seconds: IDL.Nat64,
625
- original_total_community_fund_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
626
- });
627
- const Command_2 = IDL.Variant({
628
- Spawn: NeuronId,
629
- Split: Split,
630
- Configure: Configure,
631
- Merge: Merge,
632
- DisburseToNeuron: DisburseToNeuron,
633
- SyncCommand: IDL.Record({}),
634
- ClaimOrRefreshNeuron: ClaimOrRefresh,
635
- MergeMaturity: MergeMaturity,
636
- Disburse: Disburse,
637
- });
638
- const NeuronInFlightCommand = IDL.Record({
639
- command: IDL.Opt(Command_2),
640
- timestamp: IDL.Nat64,
641
- });
642
- const BallotInfo = IDL.Record({
643
- vote: IDL.Int32,
644
- proposal_id: IDL.Opt(ProposalId),
645
- });
646
- const MaturityDisbursement = IDL.Record({
647
- account_identifier_to_disburse_to: IDL.Opt(AccountIdentifier),
648
- timestamp_of_disbursement_seconds: IDL.Opt(IDL.Nat64),
649
- amount_e8s: IDL.Opt(IDL.Nat64),
650
- account_to_disburse_to: IDL.Opt(Account),
651
- finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
652
- });
653
- const DissolveState = IDL.Variant({
654
- DissolveDelaySeconds: IDL.Nat64,
655
- WhenDissolvedTimestampSeconds: IDL.Nat64,
656
- });
657
- const Neuron = IDL.Record({
658
- id: IDL.Opt(NeuronId),
659
- staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
660
- controller: IDL.Opt(IDL.Principal),
661
- recent_ballots: IDL.Vec(BallotInfo),
662
- voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
663
- kyc_verified: IDL.Bool,
664
- potential_voting_power: IDL.Opt(IDL.Nat64),
665
- neuron_type: IDL.Opt(IDL.Int32),
666
- not_for_profit: IDL.Bool,
667
- maturity_e8s_equivalent: IDL.Nat64,
668
- deciding_voting_power: IDL.Opt(IDL.Nat64),
669
- cached_neuron_stake_e8s: IDL.Nat64,
670
- created_timestamp_seconds: IDL.Nat64,
671
- auto_stake_maturity: IDL.Opt(IDL.Bool),
672
- aging_since_timestamp_seconds: IDL.Nat64,
673
- hot_keys: IDL.Vec(IDL.Principal),
674
- account: IDL.Vec(IDL.Nat8),
675
- joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
676
- maturity_disbursements_in_progress: IDL.Opt(IDL.Vec(MaturityDisbursement)),
677
- dissolve_state: IDL.Opt(DissolveState),
678
- followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
679
- neuron_fees_e8s: IDL.Nat64,
680
- visibility: IDL.Opt(IDL.Int32),
681
- transfer: IDL.Opt(NeuronStakeTransfer),
682
- known_neuron_data: IDL.Opt(KnownNeuronData),
683
- spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
684
- });
685
- const Governance = IDL.Record({
686
- default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
687
- most_recent_monthly_node_provider_rewards: IDL.Opt(
688
- MonthlyNodeProviderRewards,
689
- ),
690
- maturity_modulation_last_updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
691
- wait_for_quiet_threshold_seconds: IDL.Nat64,
692
- metrics: IDL.Opt(GovernanceCachedMetrics),
693
- neuron_management_voting_period_seconds: IDL.Opt(IDL.Nat64),
694
- node_providers: IDL.Vec(NodeProvider),
695
- cached_daily_maturity_modulation_basis_points: IDL.Opt(IDL.Int32),
696
- economics: IDL.Opt(NetworkEconomics),
697
- restore_aging_summary: IDL.Opt(RestoreAgingSummary),
698
- spawning_neurons: IDL.Opt(IDL.Bool),
699
- latest_reward_event: IDL.Opt(RewardEvent),
700
- to_claim_transfers: IDL.Vec(NeuronStakeTransfer),
701
- short_voting_period_seconds: IDL.Nat64,
702
- proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
703
- xdr_conversion_rate: IDL.Opt(XdrConversionRate),
704
- in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
705
- neurons: IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
706
- genesis_timestamp_seconds: IDL.Nat64,
707
- });
708
- const Result = IDL.Variant({ Ok: IDL.Null, Err: GovernanceError });
709
- const Result_1 = IDL.Variant({
710
- Error: GovernanceError,
711
- NeuronId: NeuronId,
712
- });
713
- const ClaimOrRefreshNeuronFromAccountResponse = IDL.Record({
714
- result: IDL.Opt(Result_1),
715
- });
716
- const Result_2 = IDL.Variant({ Ok: Neuron, Err: GovernanceError });
717
- const Result_3 = IDL.Variant({
718
- Ok: GovernanceCachedMetrics,
719
- Err: GovernanceError,
720
- });
721
- const Result_4 = IDL.Variant({
722
- Ok: MonthlyNodeProviderRewards,
723
- Err: GovernanceError,
724
- });
725
- const GetNeuronIndexRequest = IDL.Record({
726
- page_size: IDL.Opt(IDL.Nat32),
727
- exclusive_start_neuron_id: IDL.Opt(NeuronId),
728
- });
729
- const NeuronInfo = IDL.Record({
730
- id: IDL.Opt(NeuronId),
731
- dissolve_delay_seconds: IDL.Nat64,
732
- recent_ballots: IDL.Vec(BallotInfo),
733
- voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
734
- potential_voting_power: IDL.Opt(IDL.Nat64),
735
- neuron_type: IDL.Opt(IDL.Int32),
736
- deciding_voting_power: IDL.Opt(IDL.Nat64),
737
- created_timestamp_seconds: IDL.Nat64,
738
- state: IDL.Int32,
739
- stake_e8s: IDL.Nat64,
740
- joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
741
- retrieved_at_timestamp_seconds: IDL.Nat64,
742
- visibility: IDL.Opt(IDL.Int32),
743
- known_neuron_data: IDL.Opt(KnownNeuronData),
744
- voting_power: IDL.Nat64,
745
- age_seconds: IDL.Nat64,
746
- });
747
- const NeuronIndexData = IDL.Record({ neurons: IDL.Vec(NeuronInfo) });
748
- const GetNeuronIndexResult = IDL.Variant({
749
- Ok: NeuronIndexData,
750
- Err: GovernanceError,
751
- });
752
- const Result_5 = IDL.Variant({ Ok: NeuronInfo, Err: GovernanceError });
753
- const GetNeuronsFundAuditInfoRequest = IDL.Record({
754
- nns_proposal_id: IDL.Opt(ProposalId),
755
- });
756
- const NeuronsFundAuditInfo = IDL.Record({
757
- final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
758
- initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
759
- neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot),
760
- });
761
- const Ok = IDL.Record({
762
- neurons_fund_audit_info: IDL.Opt(NeuronsFundAuditInfo),
763
- });
764
- const Result_6 = IDL.Variant({ Ok: Ok, Err: GovernanceError });
765
- const GetNeuronsFundAuditInfoResponse = IDL.Record({
766
- result: IDL.Opt(Result_6),
767
- });
768
- const Result_7 = IDL.Variant({
769
- Ok: NodeProvider,
770
- Err: GovernanceError,
771
- });
772
- const ProposalInfo = IDL.Record({
773
- id: IDL.Opt(ProposalId),
774
- status: IDL.Int32,
775
- topic: IDL.Int32,
776
- failure_reason: IDL.Opt(GovernanceError),
777
- ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
778
- proposal_timestamp_seconds: IDL.Nat64,
779
- reward_event_round: IDL.Nat64,
780
- deadline_timestamp_seconds: IDL.Opt(IDL.Nat64),
781
- failed_timestamp_seconds: IDL.Nat64,
782
- reject_cost_e8s: IDL.Nat64,
783
- derived_proposal_information: IDL.Opt(DerivedProposalInformation),
784
- latest_tally: IDL.Opt(Tally),
785
- total_potential_voting_power: IDL.Opt(IDL.Nat64),
786
- reward_status: IDL.Int32,
787
- decided_timestamp_seconds: IDL.Nat64,
788
- proposal: IDL.Opt(Proposal),
789
- proposer: IDL.Opt(NeuronId),
790
- executed_timestamp_seconds: IDL.Nat64,
791
- });
792
- const ListKnownNeuronsResponse = IDL.Record({
793
- known_neurons: IDL.Vec(KnownNeuron),
794
- });
795
- const ListNeuronVotesRequest = IDL.Record({
796
- before_proposal: IDL.Opt(ProposalId),
797
- limit: IDL.Opt(IDL.Nat64),
798
- neuron_id: IDL.Opt(NeuronId),
799
- });
800
- const Vote = IDL.Variant({
801
- No: IDL.Null,
802
- Yes: IDL.Null,
803
- Unspecified: IDL.Null,
804
- });
805
- const NeuronVote = IDL.Record({
806
- vote: IDL.Opt(Vote),
807
- proposal_id: IDL.Opt(ProposalId),
808
- });
809
- const ListNeuronVotesResponse = IDL.Variant({
810
- Ok: IDL.Record({
811
- votes: IDL.Opt(IDL.Vec(NeuronVote)),
812
- all_finalized_before_proposal: IDL.Opt(ProposalId),
813
- }),
814
- Err: GovernanceError,
815
- });
816
- const NeuronSubaccount = IDL.Record({ subaccount: IDL.Vec(IDL.Nat8) });
817
- const ListNeurons = IDL.Record({
818
- page_size: IDL.Opt(IDL.Nat64),
819
- include_public_neurons_in_full_neurons: IDL.Opt(IDL.Bool),
820
- neuron_ids: IDL.Vec(IDL.Nat64),
821
- page_number: IDL.Opt(IDL.Nat64),
822
- include_empty_neurons_readable_by_caller: IDL.Opt(IDL.Bool),
823
- neuron_subaccounts: IDL.Opt(IDL.Vec(NeuronSubaccount)),
824
- include_neurons_readable_by_caller: IDL.Bool,
825
- });
826
- const ListNeuronsResponse = IDL.Record({
827
- neuron_infos: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
828
- full_neurons: IDL.Vec(Neuron),
829
- total_pages_available: IDL.Opt(IDL.Nat64),
830
- });
831
- const DateRangeFilter = IDL.Record({
832
- start_timestamp_seconds: IDL.Opt(IDL.Nat64),
833
- end_timestamp_seconds: IDL.Opt(IDL.Nat64),
834
- });
835
- const ListNodeProviderRewardsRequest = IDL.Record({
836
- date_filter: IDL.Opt(DateRangeFilter),
837
- });
838
- const ListNodeProviderRewardsResponse = IDL.Record({
839
- rewards: IDL.Vec(MonthlyNodeProviderRewards),
840
- });
841
- const ListNodeProvidersResponse = IDL.Record({
842
- node_providers: IDL.Vec(NodeProvider),
843
- });
844
- const ListProposalInfoRequest = IDL.Record({
845
- include_reward_status: IDL.Vec(IDL.Int32),
846
- omit_large_fields: IDL.Opt(IDL.Bool),
847
- before_proposal: IDL.Opt(ProposalId),
848
- limit: IDL.Nat32,
849
- exclude_topic: IDL.Vec(IDL.Int32),
850
- include_all_manage_neuron_proposals: IDL.Opt(IDL.Bool),
851
- include_status: IDL.Vec(IDL.Int32),
852
- });
853
- const ListProposalInfoResponse = IDL.Record({
854
- proposal_info: IDL.Vec(ProposalInfo),
855
- });
856
- const InstallCodeRequest = IDL.Record({
857
- arg: IDL.Opt(IDL.Vec(IDL.Nat8)),
858
- wasm_module: IDL.Opt(IDL.Vec(IDL.Nat8)),
859
- skip_stopping_before_installing: IDL.Opt(IDL.Bool),
860
- canister_id: IDL.Opt(IDL.Principal),
861
- install_mode: IDL.Opt(IDL.Int32),
862
- });
863
- const ProposalActionRequest = IDL.Variant({
864
- RegisterKnownNeuron: KnownNeuron,
865
- FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
866
- ManageNeuron: ManageNeuronRequest,
867
- UpdateCanisterSettings: UpdateCanisterSettings,
868
- InstallCode: InstallCodeRequest,
869
- DeregisterKnownNeuron: DeregisterKnownNeuron,
870
- StopOrStartCanister: StopOrStartCanister,
871
- CreateServiceNervousSystem: CreateServiceNervousSystem,
872
- ExecuteNnsFunction: ExecuteNnsFunction,
873
- RewardNodeProvider: RewardNodeProvider,
874
- RewardNodeProviders: RewardNodeProviders,
875
- ManageNetworkEconomics: NetworkEconomics,
876
- ApproveGenesisKyc: Principals,
877
- AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
878
- Motion: Motion,
879
- });
880
- const MakeProposalRequest = IDL.Record({
881
- url: IDL.Text,
882
- title: IDL.Opt(IDL.Text),
883
- action: IDL.Opt(ProposalActionRequest),
884
- summary: IDL.Text,
885
- });
886
- const ManageNeuronCommandRequest = IDL.Variant({
887
- Spawn: Spawn,
888
- Split: Split,
889
- Follow: Follow,
890
- DisburseMaturity: DisburseMaturity,
891
- RefreshVotingPower: RefreshVotingPower,
892
- ClaimOrRefresh: ClaimOrRefresh,
893
- Configure: Configure,
894
- RegisterVote: RegisterVote,
895
- Merge: Merge,
896
- DisburseToNeuron: DisburseToNeuron,
897
- SetFollowing: SetFollowing,
898
- MakeProposal: MakeProposalRequest,
899
- StakeMaturity: StakeMaturity,
900
- MergeMaturity: MergeMaturity,
901
- Disburse: Disburse,
902
- });
903
- ManageNeuronRequest.fill(
904
- IDL.Record({
905
- id: IDL.Opt(NeuronId),
906
- command: IDL.Opt(ManageNeuronCommandRequest),
907
- neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount),
908
- }),
909
- );
910
- const SpawnResponse = IDL.Record({ created_neuron_id: IDL.Opt(NeuronId) });
911
- const DisburseMaturityResponse = IDL.Record({
912
- amount_disbursed_e8s: IDL.Opt(IDL.Nat64),
913
- });
914
- const RefreshVotingPowerResponse = IDL.Record({});
915
- const ClaimOrRefreshResponse = IDL.Record({
916
- refreshed_neuron_id: IDL.Opt(NeuronId),
917
- });
918
- const MergeResponse = IDL.Record({
919
- target_neuron: IDL.Opt(Neuron),
920
- source_neuron: IDL.Opt(Neuron),
921
- target_neuron_info: IDL.Opt(NeuronInfo),
922
- source_neuron_info: IDL.Opt(NeuronInfo),
923
- });
924
- const SetFollowingResponse = IDL.Record({});
925
- const MakeProposalResponse = IDL.Record({
926
- message: IDL.Opt(IDL.Text),
927
- proposal_id: IDL.Opt(ProposalId),
928
- });
929
- const StakeMaturityResponse = IDL.Record({
930
- maturity_e8s: IDL.Nat64,
931
- staked_maturity_e8s: IDL.Nat64,
932
- });
933
- const MergeMaturityResponse = IDL.Record({
934
- merged_maturity_e8s: IDL.Nat64,
935
- new_stake_e8s: IDL.Nat64,
936
- });
937
- const DisburseResponse = IDL.Record({ transfer_block_height: IDL.Nat64 });
938
- const Command_1 = IDL.Variant({
939
- Error: GovernanceError,
940
- Spawn: SpawnResponse,
941
- Split: SpawnResponse,
942
- Follow: IDL.Record({}),
943
- DisburseMaturity: DisburseMaturityResponse,
944
- RefreshVotingPower: RefreshVotingPowerResponse,
945
- ClaimOrRefresh: ClaimOrRefreshResponse,
946
- Configure: IDL.Record({}),
947
- RegisterVote: IDL.Record({}),
948
- Merge: MergeResponse,
949
- DisburseToNeuron: SpawnResponse,
950
- SetFollowing: SetFollowingResponse,
951
- MakeProposal: MakeProposalResponse,
952
- StakeMaturity: StakeMaturityResponse,
953
- MergeMaturity: MergeMaturityResponse,
954
- Disburse: DisburseResponse,
955
- });
956
- const ManageNeuronResponse = IDL.Record({ command: IDL.Opt(Command_1) });
957
- const Committed = IDL.Record({
958
- total_direct_contribution_icp_e8s: IDL.Opt(IDL.Nat64),
959
- total_neurons_fund_contribution_icp_e8s: IDL.Opt(IDL.Nat64),
960
- sns_governance_canister_id: IDL.Opt(IDL.Principal),
961
- });
962
- const Result_8 = IDL.Variant({
963
- Committed: Committed,
964
- Aborted: IDL.Record({}),
965
- });
966
- const SettleCommunityFundParticipation = IDL.Record({
967
- result: IDL.Opt(Result_8),
968
- open_sns_token_swap_proposal_id: IDL.Opt(IDL.Nat64),
969
- });
970
- const Committed_1 = IDL.Record({
971
- total_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
972
- total_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
973
- sns_governance_canister_id: IDL.Opt(IDL.Principal),
974
- });
975
- const Result_9 = IDL.Variant({
976
- Committed: Committed_1,
977
- Aborted: IDL.Record({}),
978
- });
979
- const SettleNeuronsFundParticipationRequest = IDL.Record({
980
- result: IDL.Opt(Result_9),
981
- nns_proposal_id: IDL.Opt(IDL.Nat64),
982
- });
983
- const NeuronsFundNeuron = IDL.Record({
984
- controller: IDL.Opt(IDL.Principal),
985
- hotkeys: IDL.Opt(Principals),
986
- is_capped: IDL.Opt(IDL.Bool),
987
- nns_neuron_id: IDL.Opt(IDL.Nat64),
988
- amount_icp_e8s: IDL.Opt(IDL.Nat64),
989
- });
990
- const Ok_1 = IDL.Record({
991
- neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuron),
992
- });
993
- const Result_10 = IDL.Variant({ Ok: Ok_1, Err: GovernanceError });
994
- const SettleNeuronsFundParticipationResponse = IDL.Record({
995
- result: IDL.Opt(Result_10),
996
- });
997
- const UpdateNodeProvider = IDL.Record({
998
- reward_account: IDL.Opt(AccountIdentifier),
999
- });
1000
-
1001
- return IDL.Service({
1002
- claim_gtc_neurons: IDL.Func(
1003
- [IDL.Principal, IDL.Vec(NeuronId)],
1004
- [Result],
1005
- [],
1006
- ),
1007
- claim_or_refresh_neuron_from_account: IDL.Func(
1008
- [ClaimOrRefreshNeuronFromAccount],
1009
- [ClaimOrRefreshNeuronFromAccountResponse],
1010
- [],
1011
- ),
1012
- get_build_metadata: IDL.Func([], [IDL.Text], []),
1013
- get_full_neuron: IDL.Func([IDL.Nat64], [Result_2], []),
1014
- get_full_neuron_by_id_or_subaccount: IDL.Func(
1015
- [NeuronIdOrSubaccount],
1016
- [Result_2],
1017
- [],
1018
- ),
1019
- get_latest_reward_event: IDL.Func([], [RewardEvent], []),
1020
- get_metrics: IDL.Func([], [Result_3], []),
1021
- get_monthly_node_provider_rewards: IDL.Func([], [Result_4], []),
1022
- get_most_recent_monthly_node_provider_rewards: IDL.Func(
1023
- [],
1024
- [IDL.Opt(MonthlyNodeProviderRewards)],
1025
- [],
1026
- ),
1027
- get_network_economics_parameters: IDL.Func([], [NetworkEconomics], []),
1028
- get_neuron_ids: IDL.Func([], [IDL.Vec(IDL.Nat64)], []),
1029
- get_neuron_index: IDL.Func(
1030
- [GetNeuronIndexRequest],
1031
- [GetNeuronIndexResult],
1032
- [],
1033
- ),
1034
- get_neuron_info: IDL.Func([IDL.Nat64], [Result_5], []),
1035
- get_neuron_info_by_id_or_subaccount: IDL.Func(
1036
- [NeuronIdOrSubaccount],
1037
- [Result_5],
1038
- [],
1039
- ),
1040
- get_neurons_fund_audit_info: IDL.Func(
1041
- [GetNeuronsFundAuditInfoRequest],
1042
- [GetNeuronsFundAuditInfoResponse],
1043
- [],
1044
- ),
1045
- get_node_provider_by_caller: IDL.Func([IDL.Null], [Result_7], []),
1046
- get_pending_proposals: IDL.Func([], [IDL.Vec(ProposalInfo)], []),
1047
- get_proposal_info: IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
1048
- get_restore_aging_summary: IDL.Func([], [RestoreAgingSummary], []),
1049
- list_known_neurons: IDL.Func([], [ListKnownNeuronsResponse], []),
1050
- list_neuron_votes: IDL.Func(
1051
- [ListNeuronVotesRequest],
1052
- [ListNeuronVotesResponse],
1053
- [],
1054
- ),
1055
- list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], []),
1056
- list_node_provider_rewards: IDL.Func(
1057
- [ListNodeProviderRewardsRequest],
1058
- [ListNodeProviderRewardsResponse],
1059
- [],
1060
- ),
1061
- list_node_providers: IDL.Func([], [ListNodeProvidersResponse], []),
1062
- list_proposals: IDL.Func(
1063
- [ListProposalInfoRequest],
1064
- [ListProposalInfoResponse],
1065
- [],
1066
- ),
1067
- manage_neuron: IDL.Func([ManageNeuronRequest], [ManageNeuronResponse], []),
1068
- settle_community_fund_participation: IDL.Func(
1069
- [SettleCommunityFundParticipation],
1070
- [Result],
1071
- [],
1072
- ),
1073
- settle_neurons_fund_participation: IDL.Func(
1074
- [SettleNeuronsFundParticipationRequest],
1075
- [SettleNeuronsFundParticipationResponse],
1076
- [],
1077
- ),
1078
- simulate_manage_neuron: IDL.Func(
1079
- [ManageNeuronRequest],
1080
- [ManageNeuronResponse],
1081
- [],
1082
- ),
1083
- transfer_gtc_neuron: IDL.Func([NeuronId, NeuronId], [Result], []),
1084
- update_node_provider: IDL.Func([UpdateNodeProvider], [Result], []),
1085
- });
1086
- };
1087
-
1088
- export const init = ({ IDL }) => {
1089
- const Proposal = IDL.Rec();
1090
- const NeuronId = IDL.Record({ id: IDL.Nat64 });
1091
- const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
1092
- const DateUtc = IDL.Record({
1093
- day: IDL.Nat32,
1094
- month: IDL.Nat32,
1095
- year: IDL.Nat32,
1096
- });
1097
- const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
1098
- const NodeProvider = IDL.Record({
1099
- id: IDL.Opt(IDL.Principal),
1100
- reward_account: IDL.Opt(AccountIdentifier),
1101
- });
1102
- const RewardToNeuron = IDL.Record({ dissolve_delay_seconds: IDL.Nat64 });
1103
- const RewardToAccount = IDL.Record({
1104
- to_account: IDL.Opt(AccountIdentifier),
1105
- });
1106
- const RewardMode = IDL.Variant({
1107
- RewardToNeuron: RewardToNeuron,
1108
- RewardToAccount: RewardToAccount,
1109
- });
1110
- const RewardNodeProvider = IDL.Record({
1111
- node_provider: IDL.Opt(NodeProvider),
1112
- reward_mode: IDL.Opt(RewardMode),
1113
- amount_e8s: IDL.Nat64,
1114
- });
1115
- const XdrConversionRate = IDL.Record({
1116
- xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
1117
- timestamp_seconds: IDL.Opt(IDL.Nat64),
1118
- });
1119
- const MonthlyNodeProviderRewards = IDL.Record({
1120
- minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
1121
- end_date: IDL.Opt(DateUtc),
1122
- registry_version: IDL.Opt(IDL.Nat64),
1123
- node_providers: IDL.Vec(NodeProvider),
1124
- start_date: IDL.Opt(DateUtc),
1125
- timestamp: IDL.Nat64,
1126
- rewards: IDL.Vec(RewardNodeProvider),
1127
- xdr_conversion_rate: IDL.Opt(XdrConversionRate),
1128
- maximum_node_provider_rewards_e8s: IDL.Opt(IDL.Nat64),
1129
- });
1130
- const NeuronSubsetMetrics = IDL.Record({
1131
- total_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1132
- maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1133
- voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1134
- total_staked_e8s: IDL.Opt(IDL.Nat64),
1135
- count: IDL.Opt(IDL.Nat64),
1136
- deciding_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1137
- total_staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1138
- total_potential_voting_power: IDL.Opt(IDL.Nat64),
1139
- total_deciding_voting_power: IDL.Opt(IDL.Nat64),
1140
- staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1141
- IDL.Tuple(IDL.Nat64, IDL.Nat64),
1142
- ),
1143
- staked_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1144
- total_voting_power: IDL.Opt(IDL.Nat64),
1145
- potential_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1146
- count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1147
- });
1148
- const GovernanceCachedMetrics = IDL.Record({
1149
- total_maturity_e8s_equivalent: IDL.Nat64,
1150
- not_dissolving_neurons_e8s_buckets: IDL.Vec(
1151
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1152
- ),
1153
- dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
1154
- garbage_collectable_neurons_count: IDL.Nat64,
1155
- dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1156
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1157
- ),
1158
- neurons_with_invalid_stake_count: IDL.Nat64,
1159
- not_dissolving_neurons_count_buckets: IDL.Vec(
1160
- IDL.Tuple(IDL.Nat64, IDL.Nat64),
1161
- ),
1162
- ect_neuron_count: IDL.Nat64,
1163
- total_supply_icp: IDL.Nat64,
1164
- neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
1165
- dissolved_neurons_count: IDL.Nat64,
1166
- community_fund_total_maturity_e8s_equivalent: IDL.Nat64,
1167
- total_staked_e8s_seed: IDL.Nat64,
1168
- total_staked_maturity_e8s_equivalent_ect: IDL.Nat64,
1169
- total_staked_e8s: IDL.Nat64,
1170
- fully_lost_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1171
- not_dissolving_neurons_count: IDL.Nat64,
1172
- total_locked_e8s: IDL.Nat64,
1173
- neurons_fund_total_active_neurons: IDL.Nat64,
1174
- total_voting_power_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
1175
- total_staked_maturity_e8s_equivalent: IDL.Nat64,
1176
- not_dissolving_neurons_e8s_buckets_ect: IDL.Vec(
1177
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1178
- ),
1179
- spawning_neurons_count: IDL.Nat64,
1180
- declining_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1181
- total_staked_e8s_ect: IDL.Nat64,
1182
- not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
1183
- dissolved_neurons_e8s: IDL.Nat64,
1184
- total_staked_e8s_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
1185
- dissolving_neurons_e8s_buckets_seed: IDL.Vec(
1186
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1187
- ),
1188
- neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
1189
- not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1190
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1191
- ),
1192
- dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1193
- dissolving_neurons_e8s_buckets_ect: IDL.Vec(
1194
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1195
- ),
1196
- non_self_authenticating_controller_neuron_subset_metrics:
1197
- IDL.Opt(NeuronSubsetMetrics),
1198
- dissolving_neurons_count: IDL.Nat64,
1199
- dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
1200
- total_staked_maturity_e8s_equivalent_seed: IDL.Nat64,
1201
- community_fund_total_staked_e8s: IDL.Nat64,
1202
- not_dissolving_neurons_e8s_buckets_seed: IDL.Vec(
1203
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1204
- ),
1205
- public_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1206
- timestamp_seconds: IDL.Nat64,
1207
- seed_neuron_count: IDL.Nat64,
1208
- });
1209
- const VotingPowerEconomics = IDL.Record({
1210
- start_reducing_voting_power_after_seconds: IDL.Opt(IDL.Nat64),
1211
- neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
1212
- clear_following_after_seconds: IDL.Opt(IDL.Nat64),
1213
- });
1214
- const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
1215
- const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
1216
- const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
1217
- contribution_threshold_xdr: IDL.Opt(Decimal),
1218
- one_third_participation_milestone_xdr: IDL.Opt(Decimal),
1219
- full_participation_milestone_xdr: IDL.Opt(Decimal),
1220
- });
1221
- const NeuronsFundEconomics = IDL.Record({
1222
- maximum_icp_xdr_rate: IDL.Opt(Percentage),
1223
- neurons_fund_matched_funding_curve_coefficients: IDL.Opt(
1224
- NeuronsFundMatchedFundingCurveCoefficients,
1225
- ),
1226
- max_theoretical_neurons_fund_participation_amount_xdr: IDL.Opt(Decimal),
1227
- minimum_icp_xdr_rate: IDL.Opt(Percentage),
1228
- });
1229
- const NetworkEconomics = IDL.Record({
1230
- neuron_minimum_stake_e8s: IDL.Nat64,
1231
- voting_power_economics: IDL.Opt(VotingPowerEconomics),
1232
- max_proposals_to_keep_per_topic: IDL.Nat32,
1233
- neuron_management_fee_per_proposal_e8s: IDL.Nat64,
1234
- reject_cost_e8s: IDL.Nat64,
1235
- transaction_fee_e8s: IDL.Nat64,
1236
- neuron_spawn_dissolve_delay_seconds: IDL.Nat64,
1237
- minimum_icp_xdr_rate: IDL.Nat64,
1238
- maximum_node_provider_rewards_e8s: IDL.Nat64,
1239
- neurons_fund_economics: IDL.Opt(NeuronsFundEconomics),
1240
- });
1241
- const RestoreAgingNeuronGroup = IDL.Record({
1242
- count: IDL.Opt(IDL.Nat64),
1243
- previous_total_stake_e8s: IDL.Opt(IDL.Nat64),
1244
- current_total_stake_e8s: IDL.Opt(IDL.Nat64),
1245
- group_type: IDL.Int32,
1246
- });
1247
- const RestoreAgingSummary = IDL.Record({
1248
- groups: IDL.Vec(RestoreAgingNeuronGroup),
1249
- timestamp_seconds: IDL.Opt(IDL.Nat64),
1250
- });
1251
- const ProposalId = IDL.Record({ id: IDL.Nat64 });
1252
- const RewardEvent = IDL.Record({
1253
- rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
1254
- day_after_genesis: IDL.Nat64,
1255
- actual_timestamp_seconds: IDL.Nat64,
1256
- total_available_e8s_equivalent: IDL.Nat64,
1257
- latest_round_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
1258
- distributed_e8s_equivalent: IDL.Nat64,
1259
- settled_proposals: IDL.Vec(ProposalId),
1260
- });
1261
- const NeuronStakeTransfer = IDL.Record({
1262
- to_subaccount: IDL.Vec(IDL.Nat8),
1263
- neuron_stake_e8s: IDL.Nat64,
1264
- from: IDL.Opt(IDL.Principal),
1265
- memo: IDL.Nat64,
1266
- from_subaccount: IDL.Vec(IDL.Nat8),
1267
- transfer_timestamp: IDL.Nat64,
1268
- block_height: IDL.Nat64,
1269
- });
1270
- const GovernanceError = IDL.Record({
1271
- error_message: IDL.Text,
1272
- error_type: IDL.Int32,
1273
- });
1274
- const Ballot = IDL.Record({ vote: IDL.Int32, voting_power: IDL.Nat64 });
1275
- const SwapParticipationLimits = IDL.Record({
1276
- min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
1277
- max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
1278
- min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1279
- max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1280
- });
1281
- const NeuronsFundNeuronPortion = IDL.Record({
1282
- controller: IDL.Opt(IDL.Principal),
1283
- hotkeys: IDL.Vec(IDL.Principal),
1284
- is_capped: IDL.Opt(IDL.Bool),
1285
- maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
1286
- nns_neuron_id: IDL.Opt(NeuronId),
1287
- amount_icp_e8s: IDL.Opt(IDL.Nat64),
1288
- });
1289
- const NeuronsFundSnapshot = IDL.Record({
1290
- neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuronPortion),
1291
- });
1292
- const IdealMatchedParticipationFunction = IDL.Record({
1293
- serialized_representation: IDL.Opt(IDL.Text),
1294
- });
1295
- const NeuronsFundParticipation = IDL.Record({
1296
- total_maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
1297
- intended_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1298
- direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1299
- swap_participation_limits: IDL.Opt(SwapParticipationLimits),
1300
- max_neurons_fund_swap_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1301
- neurons_fund_reserves: IDL.Opt(NeuronsFundSnapshot),
1302
- ideal_matched_participation_function: IDL.Opt(
1303
- IdealMatchedParticipationFunction,
1304
- ),
1305
- allocated_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1306
- });
1307
- const NeuronsFundData = IDL.Record({
1308
- final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
1309
- initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
1310
- neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot),
1311
- });
1312
- const CanisterStatusResultV2 = IDL.Record({
1313
- status: IDL.Opt(IDL.Int32),
1314
- freezing_threshold: IDL.Opt(IDL.Nat64),
1315
- controllers: IDL.Vec(IDL.Principal),
1316
- memory_size: IDL.Opt(IDL.Nat64),
1317
- cycles: IDL.Opt(IDL.Nat64),
1318
- idle_cycles_burned_per_day: IDL.Opt(IDL.Nat64),
1319
- module_hash: IDL.Vec(IDL.Nat8),
1320
- });
1321
- const CanisterSummary = IDL.Record({
1322
- status: IDL.Opt(CanisterStatusResultV2),
1323
- canister_id: IDL.Opt(IDL.Principal),
1324
- });
1325
- const SwapBackgroundInformation = IDL.Record({
1326
- ledger_index_canister_summary: IDL.Opt(CanisterSummary),
1327
- fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
1328
- ledger_archive_canister_summaries: IDL.Vec(CanisterSummary),
1329
- ledger_canister_summary: IDL.Opt(CanisterSummary),
1330
- swap_canister_summary: IDL.Opt(CanisterSummary),
1331
- governance_canister_summary: IDL.Opt(CanisterSummary),
1332
- root_canister_summary: IDL.Opt(CanisterSummary),
1333
- dapp_canister_summaries: IDL.Vec(CanisterSummary),
1334
- });
1335
- const DerivedProposalInformation = IDL.Record({
1336
- swap_background_information: IDL.Opt(SwapBackgroundInformation),
1337
- });
1338
- const Tally = IDL.Record({
1339
- no: IDL.Nat64,
1340
- yes: IDL.Nat64,
1341
- total: IDL.Nat64,
1342
- timestamp_seconds: IDL.Nat64,
1343
- });
1344
- const TopicToFollow = IDL.Variant({
1345
- Kyc: IDL.Null,
1346
- ServiceNervousSystemManagement: IDL.Null,
1347
- ApiBoundaryNodeManagement: IDL.Null,
1348
- ApplicationCanisterManagement: IDL.Null,
1349
- SubnetRental: IDL.Null,
1350
- NeuronManagement: IDL.Null,
1351
- NodeProviderRewards: IDL.Null,
1352
- SubnetManagement: IDL.Null,
1353
- ExchangeRate: IDL.Null,
1354
- CatchAll: IDL.Null,
1355
- NodeAdmin: IDL.Null,
1356
- IcOsVersionElection: IDL.Null,
1357
- ProtocolCanisterManagement: IDL.Null,
1358
- NetworkEconomics: IDL.Null,
1359
- IcOsVersionDeployment: IDL.Null,
1360
- ParticipantManagement: IDL.Null,
1361
- Governance: IDL.Null,
1362
- SnsAndCommunityFund: IDL.Null,
1363
- });
1364
- const KnownNeuronData = IDL.Record({
1365
- name: IDL.Text,
1366
- committed_topics: IDL.Opt(IDL.Vec(IDL.Opt(TopicToFollow))),
1367
- description: IDL.Opt(IDL.Text),
1368
- links: IDL.Opt(IDL.Vec(IDL.Text)),
1369
- });
1370
- const KnownNeuron = IDL.Record({
1371
- id: IDL.Opt(NeuronId),
1372
- known_neuron_data: IDL.Opt(KnownNeuronData),
1373
- });
1374
- const FulfillSubnetRentalRequest = IDL.Record({
1375
- user: IDL.Opt(IDL.Principal),
1376
- replica_version_id: IDL.Opt(IDL.Text),
1377
- node_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
1378
- });
1379
- const Spawn = IDL.Record({
1380
- percentage_to_spawn: IDL.Opt(IDL.Nat32),
1381
- new_controller: IDL.Opt(IDL.Principal),
1382
- nonce: IDL.Opt(IDL.Nat64),
1383
- });
1384
- const Split = IDL.Record({
1385
- memo: IDL.Opt(IDL.Nat64),
1386
- amount_e8s: IDL.Nat64,
1387
- });
1388
- const Follow = IDL.Record({
1389
- topic: IDL.Int32,
1390
- followees: IDL.Vec(NeuronId),
1391
- });
1392
- const Account = IDL.Record({
1393
- owner: IDL.Opt(IDL.Principal),
1394
- subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
1395
- });
1396
- const DisburseMaturity = IDL.Record({
1397
- to_account_identifier: IDL.Opt(AccountIdentifier),
1398
- to_account: IDL.Opt(Account),
1399
- percentage_to_disburse: IDL.Nat32,
1400
- });
1401
- const RefreshVotingPower = IDL.Record({});
1402
- const ClaimOrRefreshNeuronFromAccount = IDL.Record({
1403
- controller: IDL.Opt(IDL.Principal),
1404
- memo: IDL.Nat64,
1405
- });
1406
- const By = IDL.Variant({
1407
- NeuronIdOrSubaccount: IDL.Record({}),
1408
- MemoAndController: ClaimOrRefreshNeuronFromAccount,
1409
- Memo: IDL.Nat64,
1410
- });
1411
- const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
1412
- const RemoveHotKey = IDL.Record({
1413
- hot_key_to_remove: IDL.Opt(IDL.Principal),
1414
- });
1415
- const AddHotKey = IDL.Record({ new_hot_key: IDL.Opt(IDL.Principal) });
1416
- const ChangeAutoStakeMaturity = IDL.Record({
1417
- requested_setting_for_auto_stake_maturity: IDL.Bool,
1418
- });
1419
- const IncreaseDissolveDelay = IDL.Record({
1420
- additional_dissolve_delay_seconds: IDL.Nat32,
1421
- });
1422
- const SetVisibility = IDL.Record({ visibility: IDL.Opt(IDL.Int32) });
1423
- const SetDissolveTimestamp = IDL.Record({
1424
- dissolve_timestamp_seconds: IDL.Nat64,
1425
- });
1426
- const Operation = IDL.Variant({
1427
- RemoveHotKey: RemoveHotKey,
1428
- AddHotKey: AddHotKey,
1429
- ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
1430
- StopDissolving: IDL.Record({}),
1431
- StartDissolving: IDL.Record({}),
1432
- IncreaseDissolveDelay: IncreaseDissolveDelay,
1433
- SetVisibility: SetVisibility,
1434
- JoinCommunityFund: IDL.Record({}),
1435
- LeaveCommunityFund: IDL.Record({}),
1436
- SetDissolveTimestamp: SetDissolveTimestamp,
1437
- });
1438
- const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
1439
- const RegisterVote = IDL.Record({
1440
- vote: IDL.Int32,
1441
- proposal: IDL.Opt(ProposalId),
1442
- });
1443
- const Merge = IDL.Record({ source_neuron_id: IDL.Opt(NeuronId) });
1444
- const DisburseToNeuron = IDL.Record({
1445
- dissolve_delay_seconds: IDL.Nat64,
1446
- kyc_verified: IDL.Bool,
1447
- amount_e8s: IDL.Nat64,
1448
- new_controller: IDL.Opt(IDL.Principal),
1449
- nonce: IDL.Nat64,
1450
- });
1451
- const FolloweesForTopic = IDL.Record({
1452
- topic: IDL.Opt(IDL.Int32),
1453
- followees: IDL.Opt(IDL.Vec(NeuronId)),
1454
- });
1455
- const SetFollowing = IDL.Record({
1456
- topic_following: IDL.Opt(IDL.Vec(FolloweesForTopic)),
1457
- });
1458
- const StakeMaturity = IDL.Record({
1459
- percentage_to_stake: IDL.Opt(IDL.Nat32),
1460
- });
1461
- const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
1462
- const Amount = IDL.Record({ e8s: IDL.Nat64 });
1463
- const Disburse = IDL.Record({
1464
- to_account: IDL.Opt(AccountIdentifier),
1465
- amount: IDL.Opt(Amount),
1466
- });
1467
- const Command = IDL.Variant({
1468
- Spawn: Spawn,
1469
- Split: Split,
1470
- Follow: Follow,
1471
- DisburseMaturity: DisburseMaturity,
1472
- RefreshVotingPower: RefreshVotingPower,
1473
- ClaimOrRefresh: ClaimOrRefresh,
1474
- Configure: Configure,
1475
- RegisterVote: RegisterVote,
1476
- Merge: Merge,
1477
- DisburseToNeuron: DisburseToNeuron,
1478
- SetFollowing: SetFollowing,
1479
- MakeProposal: Proposal,
1480
- StakeMaturity: StakeMaturity,
1481
- MergeMaturity: MergeMaturity,
1482
- Disburse: Disburse,
1483
- });
1484
- const NeuronIdOrSubaccount = IDL.Variant({
1485
- Subaccount: IDL.Vec(IDL.Nat8),
1486
- NeuronId: NeuronId,
1487
- });
1488
- const ManageNeuron = IDL.Record({
1489
- id: IDL.Opt(NeuronId),
1490
- command: IDL.Opt(Command),
1491
- neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount),
1492
- });
1493
- const Controllers = IDL.Record({ controllers: IDL.Vec(IDL.Principal) });
1494
- const CanisterSettings = IDL.Record({
1495
- freezing_threshold: IDL.Opt(IDL.Nat64),
1496
- wasm_memory_threshold: IDL.Opt(IDL.Nat64),
1497
- controllers: IDL.Opt(Controllers),
1498
- log_visibility: IDL.Opt(IDL.Int32),
1499
- wasm_memory_limit: IDL.Opt(IDL.Nat64),
1500
- memory_allocation: IDL.Opt(IDL.Nat64),
1501
- compute_allocation: IDL.Opt(IDL.Nat64),
1502
- });
1503
- const UpdateCanisterSettings = IDL.Record({
1504
- canister_id: IDL.Opt(IDL.Principal),
1505
- settings: IDL.Opt(CanisterSettings),
1506
- });
1507
- const InstallCode = IDL.Record({
1508
- skip_stopping_before_installing: IDL.Opt(IDL.Bool),
1509
- wasm_module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1510
- canister_id: IDL.Opt(IDL.Principal),
1511
- arg_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1512
- install_mode: IDL.Opt(IDL.Int32),
1513
- });
1514
- const DeregisterKnownNeuron = IDL.Record({ id: IDL.Opt(NeuronId) });
1515
- const StopOrStartCanister = IDL.Record({
1516
- action: IDL.Opt(IDL.Int32),
1517
- canister_id: IDL.Opt(IDL.Principal),
1518
- });
1519
- const Duration = IDL.Record({ seconds: IDL.Opt(IDL.Nat64) });
1520
- const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
1521
- const VotingRewardParameters = IDL.Record({
1522
- reward_rate_transition_duration: IDL.Opt(Duration),
1523
- initial_reward_rate: IDL.Opt(Percentage),
1524
- final_reward_rate: IDL.Opt(Percentage),
1525
- });
1526
- const GovernanceParameters = IDL.Record({
1527
- neuron_maximum_dissolve_delay_bonus: IDL.Opt(Percentage),
1528
- neuron_maximum_age_for_age_bonus: IDL.Opt(Duration),
1529
- neuron_maximum_dissolve_delay: IDL.Opt(Duration),
1530
- neuron_minimum_dissolve_delay_to_vote: IDL.Opt(Duration),
1531
- neuron_maximum_age_bonus: IDL.Opt(Percentage),
1532
- neuron_minimum_stake: IDL.Opt(Tokens),
1533
- proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
1534
- proposal_initial_voting_period: IDL.Opt(Duration),
1535
- proposal_rejection_fee: IDL.Opt(Tokens),
1536
- voting_reward_parameters: IDL.Opt(VotingRewardParameters),
1537
- });
1538
- const Image = IDL.Record({ base64_encoding: IDL.Opt(IDL.Text) });
1539
- const LedgerParameters = IDL.Record({
1540
- transaction_fee: IDL.Opt(Tokens),
1541
- token_symbol: IDL.Opt(IDL.Text),
1542
- token_logo: IDL.Opt(Image),
1543
- token_name: IDL.Opt(IDL.Text),
1544
- });
1545
- const Canister = IDL.Record({ id: IDL.Opt(IDL.Principal) });
1546
- const NeuronBasketConstructionParameters = IDL.Record({
1547
- dissolve_delay_interval: IDL.Opt(Duration),
1548
- count: IDL.Opt(IDL.Nat64),
1549
- });
1550
- const GlobalTimeOfDay = IDL.Record({
1551
- seconds_after_utc_midnight: IDL.Opt(IDL.Nat64),
1552
- });
1553
- const Countries = IDL.Record({ iso_codes: IDL.Vec(IDL.Text) });
1554
- const SwapParameters = IDL.Record({
1555
- minimum_participants: IDL.Opt(IDL.Nat64),
1556
- neurons_fund_participation: IDL.Opt(IDL.Bool),
1557
- duration: IDL.Opt(Duration),
1558
- neuron_basket_construction_parameters: IDL.Opt(
1559
- NeuronBasketConstructionParameters,
1560
- ),
1561
- confirmation_text: IDL.Opt(IDL.Text),
1562
- maximum_participant_icp: IDL.Opt(Tokens),
1563
- minimum_icp: IDL.Opt(Tokens),
1564
- minimum_direct_participation_icp: IDL.Opt(Tokens),
1565
- minimum_participant_icp: IDL.Opt(Tokens),
1566
- start_time: IDL.Opt(GlobalTimeOfDay),
1567
- maximum_direct_participation_icp: IDL.Opt(Tokens),
1568
- maximum_icp: IDL.Opt(Tokens),
1569
- neurons_fund_investment_icp: IDL.Opt(Tokens),
1570
- restricted_countries: IDL.Opt(Countries),
1571
- });
1572
- const SwapDistribution = IDL.Record({ total: IDL.Opt(Tokens) });
1573
- const NeuronDistribution = IDL.Record({
1574
- controller: IDL.Opt(IDL.Principal),
1575
- dissolve_delay: IDL.Opt(Duration),
1576
- memo: IDL.Opt(IDL.Nat64),
1577
- vesting_period: IDL.Opt(Duration),
1578
- stake: IDL.Opt(Tokens),
1579
- });
1580
- const DeveloperDistribution = IDL.Record({
1581
- developer_neurons: IDL.Vec(NeuronDistribution),
1582
- });
1583
- const InitialTokenDistribution = IDL.Record({
1584
- treasury_distribution: IDL.Opt(SwapDistribution),
1585
- developer_distribution: IDL.Opt(DeveloperDistribution),
1586
- swap_distribution: IDL.Opt(SwapDistribution),
1587
- });
1588
- const CreateServiceNervousSystem = IDL.Record({
1589
- url: IDL.Opt(IDL.Text),
1590
- governance_parameters: IDL.Opt(GovernanceParameters),
1591
- fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
1592
- logo: IDL.Opt(Image),
1593
- name: IDL.Opt(IDL.Text),
1594
- ledger_parameters: IDL.Opt(LedgerParameters),
1595
- description: IDL.Opt(IDL.Text),
1596
- dapp_canisters: IDL.Vec(Canister),
1597
- swap_parameters: IDL.Opt(SwapParameters),
1598
- initial_token_distribution: IDL.Opt(InitialTokenDistribution),
1599
- });
1600
- const ExecuteNnsFunction = IDL.Record({
1601
- nns_function: IDL.Int32,
1602
- payload: IDL.Vec(IDL.Nat8),
1603
- });
1604
- const NeuronBasketConstructionParameters_1 = IDL.Record({
1605
- dissolve_delay_interval_seconds: IDL.Nat64,
1606
- count: IDL.Nat64,
1607
- });
1608
- const Params = IDL.Record({
1609
- min_participant_icp_e8s: IDL.Nat64,
1610
- neuron_basket_construction_parameters: IDL.Opt(
1611
- NeuronBasketConstructionParameters_1,
1612
- ),
1613
- max_icp_e8s: IDL.Nat64,
1614
- swap_due_timestamp_seconds: IDL.Nat64,
1615
- min_participants: IDL.Nat32,
1616
- sns_token_e8s: IDL.Nat64,
1617
- sale_delay_seconds: IDL.Opt(IDL.Nat64),
1618
- max_participant_icp_e8s: IDL.Nat64,
1619
- min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1620
- min_icp_e8s: IDL.Nat64,
1621
- max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1622
- });
1623
- const OpenSnsTokenSwap = IDL.Record({
1624
- community_fund_investment_e8s: IDL.Opt(IDL.Nat64),
1625
- target_swap_canister_id: IDL.Opt(IDL.Principal),
1626
- params: IDL.Opt(Params),
1627
- });
1628
- const TimeWindow = IDL.Record({
1629
- start_timestamp_seconds: IDL.Nat64,
1630
- end_timestamp_seconds: IDL.Nat64,
1631
- });
1632
- const SetOpenTimeWindowRequest = IDL.Record({
1633
- open_time_window: IDL.Opt(TimeWindow),
1634
- });
1635
- const SetSnsTokenSwapOpenTimeWindow = IDL.Record({
1636
- request: IDL.Opt(SetOpenTimeWindowRequest),
1637
- swap_canister_id: IDL.Opt(IDL.Principal),
1638
- });
1639
- const SetDefaultFollowees = IDL.Record({
1640
- default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1641
- });
1642
- const RewardNodeProviders = IDL.Record({
1643
- use_registry_derived_rewards: IDL.Opt(IDL.Bool),
1644
- rewards: IDL.Vec(RewardNodeProvider),
1645
- });
1646
- const Principals = IDL.Record({ principals: IDL.Vec(IDL.Principal) });
1647
- const Change = IDL.Variant({
1648
- ToRemove: NodeProvider,
1649
- ToAdd: NodeProvider,
1650
- });
1651
- const AddOrRemoveNodeProvider = IDL.Record({ change: IDL.Opt(Change) });
1652
- const Motion = IDL.Record({ motion_text: IDL.Text });
1653
- const Action = IDL.Variant({
1654
- RegisterKnownNeuron: KnownNeuron,
1655
- FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
1656
- ManageNeuron: ManageNeuron,
1657
- UpdateCanisterSettings: UpdateCanisterSettings,
1658
- InstallCode: InstallCode,
1659
- DeregisterKnownNeuron: DeregisterKnownNeuron,
1660
- StopOrStartCanister: StopOrStartCanister,
1661
- CreateServiceNervousSystem: CreateServiceNervousSystem,
1662
- ExecuteNnsFunction: ExecuteNnsFunction,
1663
- RewardNodeProvider: RewardNodeProvider,
1664
- OpenSnsTokenSwap: OpenSnsTokenSwap,
1665
- SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow,
1666
- SetDefaultFollowees: SetDefaultFollowees,
1667
- RewardNodeProviders: RewardNodeProviders,
1668
- ManageNetworkEconomics: NetworkEconomics,
1669
- ApproveGenesisKyc: Principals,
1670
- AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
1671
- Motion: Motion,
1672
- });
1673
- Proposal.fill(
1674
- IDL.Record({
1675
- url: IDL.Text,
1676
- title: IDL.Opt(IDL.Text),
1677
- action: IDL.Opt(Action),
1678
- summary: IDL.Text,
1679
- }),
1680
- );
1681
- const WaitForQuietState = IDL.Record({
1682
- current_deadline_timestamp_seconds: IDL.Nat64,
1683
- });
1684
- const ProposalData = IDL.Record({
1685
- id: IDL.Opt(ProposalId),
1686
- topic: IDL.Opt(IDL.Int32),
1687
- failure_reason: IDL.Opt(GovernanceError),
1688
- ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1689
- proposal_timestamp_seconds: IDL.Nat64,
1690
- reward_event_round: IDL.Nat64,
1691
- failed_timestamp_seconds: IDL.Nat64,
1692
- neurons_fund_data: IDL.Opt(NeuronsFundData),
1693
- reject_cost_e8s: IDL.Nat64,
1694
- derived_proposal_information: IDL.Opt(DerivedProposalInformation),
1695
- latest_tally: IDL.Opt(Tally),
1696
- total_potential_voting_power: IDL.Opt(IDL.Nat64),
1697
- sns_token_swap_lifecycle: IDL.Opt(IDL.Int32),
1698
- decided_timestamp_seconds: IDL.Nat64,
1699
- proposal: IDL.Opt(Proposal),
1700
- proposer: IDL.Opt(NeuronId),
1701
- wait_for_quiet_state: IDL.Opt(WaitForQuietState),
1702
- executed_timestamp_seconds: IDL.Nat64,
1703
- original_total_community_fund_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1704
- });
1705
- const Command_2 = IDL.Variant({
1706
- Spawn: NeuronId,
1707
- Split: Split,
1708
- Configure: Configure,
1709
- Merge: Merge,
1710
- DisburseToNeuron: DisburseToNeuron,
1711
- SyncCommand: IDL.Record({}),
1712
- ClaimOrRefreshNeuron: ClaimOrRefresh,
1713
- MergeMaturity: MergeMaturity,
1714
- Disburse: Disburse,
1715
- });
1716
- const NeuronInFlightCommand = IDL.Record({
1717
- command: IDL.Opt(Command_2),
1718
- timestamp: IDL.Nat64,
1719
- });
1720
- const BallotInfo = IDL.Record({
1721
- vote: IDL.Int32,
1722
- proposal_id: IDL.Opt(ProposalId),
1723
- });
1724
- const MaturityDisbursement = IDL.Record({
1725
- account_identifier_to_disburse_to: IDL.Opt(AccountIdentifier),
1726
- timestamp_of_disbursement_seconds: IDL.Opt(IDL.Nat64),
1727
- amount_e8s: IDL.Opt(IDL.Nat64),
1728
- account_to_disburse_to: IDL.Opt(Account),
1729
- finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
1730
- });
1731
- const DissolveState = IDL.Variant({
1732
- DissolveDelaySeconds: IDL.Nat64,
1733
- WhenDissolvedTimestampSeconds: IDL.Nat64,
1734
- });
1735
- const Neuron = IDL.Record({
1736
- id: IDL.Opt(NeuronId),
1737
- staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1738
- controller: IDL.Opt(IDL.Principal),
1739
- recent_ballots: IDL.Vec(BallotInfo),
1740
- voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
1741
- kyc_verified: IDL.Bool,
1742
- potential_voting_power: IDL.Opt(IDL.Nat64),
1743
- neuron_type: IDL.Opt(IDL.Int32),
1744
- not_for_profit: IDL.Bool,
1745
- maturity_e8s_equivalent: IDL.Nat64,
1746
- deciding_voting_power: IDL.Opt(IDL.Nat64),
1747
- cached_neuron_stake_e8s: IDL.Nat64,
1748
- created_timestamp_seconds: IDL.Nat64,
1749
- auto_stake_maturity: IDL.Opt(IDL.Bool),
1750
- aging_since_timestamp_seconds: IDL.Nat64,
1751
- hot_keys: IDL.Vec(IDL.Principal),
1752
- account: IDL.Vec(IDL.Nat8),
1753
- joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
1754
- maturity_disbursements_in_progress: IDL.Opt(IDL.Vec(MaturityDisbursement)),
1755
- dissolve_state: IDL.Opt(DissolveState),
1756
- followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1757
- neuron_fees_e8s: IDL.Nat64,
1758
- visibility: IDL.Opt(IDL.Int32),
1759
- transfer: IDL.Opt(NeuronStakeTransfer),
1760
- known_neuron_data: IDL.Opt(KnownNeuronData),
1761
- spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
1762
- });
1763
- const Governance = IDL.Record({
1764
- default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1765
- most_recent_monthly_node_provider_rewards: IDL.Opt(
1766
- MonthlyNodeProviderRewards,
1767
- ),
1768
- maturity_modulation_last_updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
1769
- wait_for_quiet_threshold_seconds: IDL.Nat64,
1770
- metrics: IDL.Opt(GovernanceCachedMetrics),
1771
- neuron_management_voting_period_seconds: IDL.Opt(IDL.Nat64),
1772
- node_providers: IDL.Vec(NodeProvider),
1773
- cached_daily_maturity_modulation_basis_points: IDL.Opt(IDL.Int32),
1774
- economics: IDL.Opt(NetworkEconomics),
1775
- restore_aging_summary: IDL.Opt(RestoreAgingSummary),
1776
- spawning_neurons: IDL.Opt(IDL.Bool),
1777
- latest_reward_event: IDL.Opt(RewardEvent),
1778
- to_claim_transfers: IDL.Vec(NeuronStakeTransfer),
1779
- short_voting_period_seconds: IDL.Nat64,
1780
- proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1781
- xdr_conversion_rate: IDL.Opt(XdrConversionRate),
1782
- in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
1783
- neurons: IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
1784
- genesis_timestamp_seconds: IDL.Nat64,
1785
- });
1786
-
1787
- return [Governance];
1788
- };