@dfinity/nns 11.1.4-next-2025-12-08.1 → 11.1.4-next-2025-12-10.1

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