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

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 +5 -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,1833 +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], []),
1035
- get_full_neuron: IDL.Func([IDL.Nat64], [Result_2], []),
1036
- get_full_neuron_by_id_or_subaccount: IDL.Func(
1037
- [NeuronIdOrSubaccount],
1038
- [Result_2],
1039
- [],
1040
- ),
1041
- get_latest_reward_event: IDL.Func([], [RewardEvent], []),
1042
- get_metrics: IDL.Func([], [Result_3], []),
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
- [],
1048
- ),
1049
- get_network_economics_parameters: IDL.Func([], [NetworkEconomics], []),
1050
- get_neuron_ids: IDL.Func([], [IDL.Vec(IDL.Nat64)], []),
1051
- get_neuron_index: IDL.Func(
1052
- [GetNeuronIndexRequest],
1053
- [GetNeuronIndexResult],
1054
- [],
1055
- ),
1056
- get_neuron_info: IDL.Func([IDL.Nat64], [Result_5], []),
1057
- get_neuron_info_by_id_or_subaccount: IDL.Func(
1058
- [NeuronIdOrSubaccount],
1059
- [Result_5],
1060
- [],
1061
- ),
1062
- get_neurons_fund_audit_info: IDL.Func(
1063
- [GetNeuronsFundAuditInfoRequest],
1064
- [GetNeuronsFundAuditInfoResponse],
1065
- [],
1066
- ),
1067
- get_node_provider_by_caller: IDL.Func([IDL.Null], [Result_7], []),
1068
- get_pending_proposals: IDL.Func(
1069
- [IDL.Opt(GetPendingProposalsRequest)],
1070
- [IDL.Vec(ProposalInfo)],
1071
- [],
1072
- ),
1073
- get_proposal_info: IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
1074
- get_restore_aging_summary: IDL.Func([], [RestoreAgingSummary], []),
1075
- list_known_neurons: IDL.Func([], [ListKnownNeuronsResponse], []),
1076
- list_neuron_votes: IDL.Func(
1077
- [ListNeuronVotesRequest],
1078
- [ListNeuronVotesResponse],
1079
- [],
1080
- ),
1081
- list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], []),
1082
- list_node_provider_rewards: IDL.Func(
1083
- [ListNodeProviderRewardsRequest],
1084
- [ListNodeProviderRewardsResponse],
1085
- [],
1086
- ),
1087
- list_node_providers: IDL.Func([], [ListNodeProvidersResponse], []),
1088
- list_proposals: IDL.Func(
1089
- [ListProposalInfoRequest],
1090
- [ListProposalInfoResponse],
1091
- [],
1092
- ),
1093
- manage_neuron: IDL.Func([ManageNeuronRequest], [ManageNeuronResponse], []),
1094
- settle_community_fund_participation: IDL.Func(
1095
- [SettleCommunityFundParticipation],
1096
- [Result],
1097
- [],
1098
- ),
1099
- settle_neurons_fund_participation: IDL.Func(
1100
- [SettleNeuronsFundParticipationRequest],
1101
- [SettleNeuronsFundParticipationResponse],
1102
- [],
1103
- ),
1104
- simulate_manage_neuron: IDL.Func(
1105
- [ManageNeuronRequest],
1106
- [ManageNeuronResponse],
1107
- [],
1108
- ),
1109
- transfer_gtc_neuron: IDL.Func([NeuronId, NeuronId], [Result], []),
1110
- update_neuron: IDL.Func([Neuron], [IDL.Opt(GovernanceError)], []),
1111
- update_node_provider: IDL.Func([UpdateNodeProvider], [Result], []),
1112
- });
1113
- };
1114
-
1115
- export const init = ({ IDL }) => {
1116
- const Proposal = IDL.Rec();
1117
- const SelfDescribingValue = IDL.Rec();
1118
- const NeuronId = IDL.Record({ id: IDL.Nat64 });
1119
- const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
1120
- const DateUtc = IDL.Record({
1121
- day: IDL.Nat32,
1122
- month: IDL.Nat32,
1123
- year: IDL.Nat32,
1124
- });
1125
- const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
1126
- const NodeProvider = IDL.Record({
1127
- id: IDL.Opt(IDL.Principal),
1128
- reward_account: IDL.Opt(AccountIdentifier),
1129
- });
1130
- const RewardToNeuron = IDL.Record({ dissolve_delay_seconds: IDL.Nat64 });
1131
- const RewardToAccount = IDL.Record({
1132
- to_account: IDL.Opt(AccountIdentifier),
1133
- });
1134
- const RewardMode = IDL.Variant({
1135
- RewardToNeuron: RewardToNeuron,
1136
- RewardToAccount: RewardToAccount,
1137
- });
1138
- const RewardNodeProvider = IDL.Record({
1139
- node_provider: IDL.Opt(NodeProvider),
1140
- reward_mode: IDL.Opt(RewardMode),
1141
- amount_e8s: IDL.Nat64,
1142
- });
1143
- const XdrConversionRate = IDL.Record({
1144
- xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
1145
- timestamp_seconds: IDL.Opt(IDL.Nat64),
1146
- });
1147
- const MonthlyNodeProviderRewards = IDL.Record({
1148
- algorithm_version: IDL.Opt(IDL.Nat32),
1149
- minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
1150
- end_date: IDL.Opt(DateUtc),
1151
- registry_version: IDL.Opt(IDL.Nat64),
1152
- node_providers: IDL.Vec(NodeProvider),
1153
- start_date: IDL.Opt(DateUtc),
1154
- timestamp: IDL.Nat64,
1155
- rewards: IDL.Vec(RewardNodeProvider),
1156
- xdr_conversion_rate: IDL.Opt(XdrConversionRate),
1157
- maximum_node_provider_rewards_e8s: IDL.Opt(IDL.Nat64),
1158
- });
1159
- const NeuronSubsetMetrics = IDL.Record({
1160
- total_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1161
- maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1162
- voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1163
- total_staked_e8s: IDL.Opt(IDL.Nat64),
1164
- count: IDL.Opt(IDL.Nat64),
1165
- deciding_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1166
- total_staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1167
- total_potential_voting_power: IDL.Opt(IDL.Nat64),
1168
- total_deciding_voting_power: IDL.Opt(IDL.Nat64),
1169
- staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1170
- IDL.Tuple(IDL.Nat64, IDL.Nat64),
1171
- ),
1172
- staked_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1173
- total_voting_power: IDL.Opt(IDL.Nat64),
1174
- potential_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1175
- count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1176
- });
1177
- const GovernanceCachedMetrics = IDL.Record({
1178
- total_maturity_e8s_equivalent: IDL.Nat64,
1179
- not_dissolving_neurons_e8s_buckets: IDL.Vec(
1180
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1181
- ),
1182
- dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
1183
- garbage_collectable_neurons_count: IDL.Nat64,
1184
- dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1185
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1186
- ),
1187
- neurons_with_invalid_stake_count: IDL.Nat64,
1188
- not_dissolving_neurons_count_buckets: IDL.Vec(
1189
- IDL.Tuple(IDL.Nat64, IDL.Nat64),
1190
- ),
1191
- ect_neuron_count: IDL.Nat64,
1192
- total_supply_icp: IDL.Nat64,
1193
- neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
1194
- dissolved_neurons_count: IDL.Nat64,
1195
- community_fund_total_maturity_e8s_equivalent: IDL.Nat64,
1196
- total_staked_e8s_seed: IDL.Nat64,
1197
- total_staked_maturity_e8s_equivalent_ect: IDL.Nat64,
1198
- total_staked_e8s: IDL.Nat64,
1199
- fully_lost_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1200
- not_dissolving_neurons_count: IDL.Nat64,
1201
- total_locked_e8s: IDL.Nat64,
1202
- neurons_fund_total_active_neurons: IDL.Nat64,
1203
- total_voting_power_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
1204
- total_staked_maturity_e8s_equivalent: IDL.Nat64,
1205
- not_dissolving_neurons_e8s_buckets_ect: IDL.Vec(
1206
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1207
- ),
1208
- spawning_neurons_count: IDL.Nat64,
1209
- declining_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1210
- total_staked_e8s_ect: IDL.Nat64,
1211
- not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
1212
- dissolved_neurons_e8s: IDL.Nat64,
1213
- total_staked_e8s_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
1214
- dissolving_neurons_e8s_buckets_seed: IDL.Vec(
1215
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1216
- ),
1217
- neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
1218
- not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1219
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1220
- ),
1221
- dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1222
- dissolving_neurons_e8s_buckets_ect: IDL.Vec(
1223
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1224
- ),
1225
- non_self_authenticating_controller_neuron_subset_metrics:
1226
- IDL.Opt(NeuronSubsetMetrics),
1227
- dissolving_neurons_count: IDL.Nat64,
1228
- dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
1229
- total_staked_maturity_e8s_equivalent_seed: IDL.Nat64,
1230
- community_fund_total_staked_e8s: IDL.Nat64,
1231
- not_dissolving_neurons_e8s_buckets_seed: IDL.Vec(
1232
- IDL.Tuple(IDL.Nat64, IDL.Float64),
1233
- ),
1234
- public_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1235
- timestamp_seconds: IDL.Nat64,
1236
- seed_neuron_count: IDL.Nat64,
1237
- });
1238
- const VotingPowerEconomics = IDL.Record({
1239
- start_reducing_voting_power_after_seconds: IDL.Opt(IDL.Nat64),
1240
- neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
1241
- clear_following_after_seconds: IDL.Opt(IDL.Nat64),
1242
- });
1243
- const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
1244
- const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
1245
- const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
1246
- contribution_threshold_xdr: IDL.Opt(Decimal),
1247
- one_third_participation_milestone_xdr: IDL.Opt(Decimal),
1248
- full_participation_milestone_xdr: IDL.Opt(Decimal),
1249
- });
1250
- const NeuronsFundEconomics = IDL.Record({
1251
- maximum_icp_xdr_rate: IDL.Opt(Percentage),
1252
- neurons_fund_matched_funding_curve_coefficients: IDL.Opt(
1253
- NeuronsFundMatchedFundingCurveCoefficients,
1254
- ),
1255
- max_theoretical_neurons_fund_participation_amount_xdr: IDL.Opt(Decimal),
1256
- minimum_icp_xdr_rate: IDL.Opt(Percentage),
1257
- });
1258
- const NetworkEconomics = IDL.Record({
1259
- neuron_minimum_stake_e8s: IDL.Nat64,
1260
- voting_power_economics: IDL.Opt(VotingPowerEconomics),
1261
- max_proposals_to_keep_per_topic: IDL.Nat32,
1262
- neuron_management_fee_per_proposal_e8s: IDL.Nat64,
1263
- reject_cost_e8s: IDL.Nat64,
1264
- transaction_fee_e8s: IDL.Nat64,
1265
- neuron_spawn_dissolve_delay_seconds: IDL.Nat64,
1266
- minimum_icp_xdr_rate: IDL.Nat64,
1267
- maximum_node_provider_rewards_e8s: IDL.Nat64,
1268
- neurons_fund_economics: IDL.Opt(NeuronsFundEconomics),
1269
- });
1270
- const RestoreAgingNeuronGroup = IDL.Record({
1271
- count: IDL.Opt(IDL.Nat64),
1272
- previous_total_stake_e8s: IDL.Opt(IDL.Nat64),
1273
- current_total_stake_e8s: IDL.Opt(IDL.Nat64),
1274
- group_type: IDL.Int32,
1275
- });
1276
- const RestoreAgingSummary = IDL.Record({
1277
- groups: IDL.Vec(RestoreAgingNeuronGroup),
1278
- timestamp_seconds: IDL.Opt(IDL.Nat64),
1279
- });
1280
- const ProposalId = IDL.Record({ id: IDL.Nat64 });
1281
- const RewardEvent = IDL.Record({
1282
- rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
1283
- day_after_genesis: IDL.Nat64,
1284
- actual_timestamp_seconds: IDL.Nat64,
1285
- total_available_e8s_equivalent: IDL.Nat64,
1286
- latest_round_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
1287
- distributed_e8s_equivalent: IDL.Nat64,
1288
- settled_proposals: IDL.Vec(ProposalId),
1289
- });
1290
- const NeuronStakeTransfer = IDL.Record({
1291
- to_subaccount: IDL.Vec(IDL.Nat8),
1292
- neuron_stake_e8s: IDL.Nat64,
1293
- from: IDL.Opt(IDL.Principal),
1294
- memo: IDL.Nat64,
1295
- from_subaccount: IDL.Vec(IDL.Nat8),
1296
- transfer_timestamp: IDL.Nat64,
1297
- block_height: IDL.Nat64,
1298
- });
1299
- const GovernanceError = IDL.Record({
1300
- error_message: IDL.Text,
1301
- error_type: IDL.Int32,
1302
- });
1303
- const Ballot = IDL.Record({ vote: IDL.Int32, voting_power: IDL.Nat64 });
1304
- const SwapParticipationLimits = IDL.Record({
1305
- min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
1306
- max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
1307
- min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1308
- max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1309
- });
1310
- const NeuronsFundNeuronPortion = IDL.Record({
1311
- controller: IDL.Opt(IDL.Principal),
1312
- hotkeys: IDL.Vec(IDL.Principal),
1313
- is_capped: IDL.Opt(IDL.Bool),
1314
- maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
1315
- nns_neuron_id: IDL.Opt(NeuronId),
1316
- amount_icp_e8s: IDL.Opt(IDL.Nat64),
1317
- });
1318
- const NeuronsFundSnapshot = IDL.Record({
1319
- neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuronPortion),
1320
- });
1321
- const IdealMatchedParticipationFunction = IDL.Record({
1322
- serialized_representation: IDL.Opt(IDL.Text),
1323
- });
1324
- const NeuronsFundParticipation = IDL.Record({
1325
- total_maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
1326
- intended_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1327
- direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1328
- swap_participation_limits: IDL.Opt(SwapParticipationLimits),
1329
- max_neurons_fund_swap_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1330
- neurons_fund_reserves: IDL.Opt(NeuronsFundSnapshot),
1331
- ideal_matched_participation_function: IDL.Opt(
1332
- IdealMatchedParticipationFunction,
1333
- ),
1334
- allocated_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1335
- });
1336
- const NeuronsFundData = IDL.Record({
1337
- final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
1338
- initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
1339
- neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot),
1340
- });
1341
- const CanisterStatusResultV2 = IDL.Record({
1342
- status: IDL.Opt(IDL.Int32),
1343
- freezing_threshold: IDL.Opt(IDL.Nat64),
1344
- controllers: IDL.Vec(IDL.Principal),
1345
- memory_size: IDL.Opt(IDL.Nat64),
1346
- cycles: IDL.Opt(IDL.Nat64),
1347
- idle_cycles_burned_per_day: IDL.Opt(IDL.Nat64),
1348
- module_hash: IDL.Vec(IDL.Nat8),
1349
- });
1350
- const CanisterSummary = IDL.Record({
1351
- status: IDL.Opt(CanisterStatusResultV2),
1352
- canister_id: IDL.Opt(IDL.Principal),
1353
- });
1354
- const SwapBackgroundInformation = IDL.Record({
1355
- ledger_index_canister_summary: IDL.Opt(CanisterSummary),
1356
- fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
1357
- ledger_archive_canister_summaries: IDL.Vec(CanisterSummary),
1358
- ledger_canister_summary: IDL.Opt(CanisterSummary),
1359
- swap_canister_summary: IDL.Opt(CanisterSummary),
1360
- governance_canister_summary: IDL.Opt(CanisterSummary),
1361
- root_canister_summary: IDL.Opt(CanisterSummary),
1362
- dapp_canister_summaries: IDL.Vec(CanisterSummary),
1363
- });
1364
- const DerivedProposalInformation = IDL.Record({
1365
- swap_background_information: IDL.Opt(SwapBackgroundInformation),
1366
- });
1367
- const Tally = IDL.Record({
1368
- no: IDL.Nat64,
1369
- yes: IDL.Nat64,
1370
- total: IDL.Nat64,
1371
- timestamp_seconds: IDL.Nat64,
1372
- });
1373
- const TopicToFollow = IDL.Variant({
1374
- Kyc: IDL.Null,
1375
- ServiceNervousSystemManagement: IDL.Null,
1376
- ApiBoundaryNodeManagement: IDL.Null,
1377
- ApplicationCanisterManagement: IDL.Null,
1378
- SubnetRental: IDL.Null,
1379
- NeuronManagement: IDL.Null,
1380
- NodeProviderRewards: IDL.Null,
1381
- SubnetManagement: IDL.Null,
1382
- ExchangeRate: IDL.Null,
1383
- CatchAll: IDL.Null,
1384
- NodeAdmin: IDL.Null,
1385
- IcOsVersionElection: IDL.Null,
1386
- ProtocolCanisterManagement: IDL.Null,
1387
- NetworkEconomics: IDL.Null,
1388
- IcOsVersionDeployment: IDL.Null,
1389
- ParticipantManagement: IDL.Null,
1390
- Governance: IDL.Null,
1391
- SnsAndCommunityFund: IDL.Null,
1392
- });
1393
- const KnownNeuronData = IDL.Record({
1394
- name: IDL.Text,
1395
- committed_topics: IDL.Opt(IDL.Vec(IDL.Opt(TopicToFollow))),
1396
- description: IDL.Opt(IDL.Text),
1397
- links: IDL.Opt(IDL.Vec(IDL.Text)),
1398
- });
1399
- const KnownNeuron = IDL.Record({
1400
- id: IDL.Opt(NeuronId),
1401
- known_neuron_data: IDL.Opt(KnownNeuronData),
1402
- });
1403
- const FulfillSubnetRentalRequest = IDL.Record({
1404
- user: IDL.Opt(IDL.Principal),
1405
- replica_version_id: IDL.Opt(IDL.Text),
1406
- node_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
1407
- });
1408
- const Spawn = IDL.Record({
1409
- percentage_to_spawn: IDL.Opt(IDL.Nat32),
1410
- new_controller: IDL.Opt(IDL.Principal),
1411
- nonce: IDL.Opt(IDL.Nat64),
1412
- });
1413
- const Split = IDL.Record({
1414
- memo: IDL.Opt(IDL.Nat64),
1415
- amount_e8s: IDL.Nat64,
1416
- });
1417
- const Follow = IDL.Record({
1418
- topic: IDL.Int32,
1419
- followees: IDL.Vec(NeuronId),
1420
- });
1421
- const Account = IDL.Record({
1422
- owner: IDL.Opt(IDL.Principal),
1423
- subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
1424
- });
1425
- const DisburseMaturity = IDL.Record({
1426
- to_account_identifier: IDL.Opt(AccountIdentifier),
1427
- to_account: IDL.Opt(Account),
1428
- percentage_to_disburse: IDL.Nat32,
1429
- });
1430
- const RefreshVotingPower = IDL.Record({});
1431
- const ClaimOrRefreshNeuronFromAccount = IDL.Record({
1432
- controller: IDL.Opt(IDL.Principal),
1433
- memo: IDL.Nat64,
1434
- });
1435
- const By = IDL.Variant({
1436
- NeuronIdOrSubaccount: IDL.Record({}),
1437
- MemoAndController: ClaimOrRefreshNeuronFromAccount,
1438
- Memo: IDL.Nat64,
1439
- });
1440
- const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
1441
- const RemoveHotKey = IDL.Record({
1442
- hot_key_to_remove: IDL.Opt(IDL.Principal),
1443
- });
1444
- const AddHotKey = IDL.Record({ new_hot_key: IDL.Opt(IDL.Principal) });
1445
- const ChangeAutoStakeMaturity = IDL.Record({
1446
- requested_setting_for_auto_stake_maturity: IDL.Bool,
1447
- });
1448
- const IncreaseDissolveDelay = IDL.Record({
1449
- additional_dissolve_delay_seconds: IDL.Nat32,
1450
- });
1451
- const SetVisibility = IDL.Record({ visibility: IDL.Opt(IDL.Int32) });
1452
- const SetDissolveTimestamp = IDL.Record({
1453
- dissolve_timestamp_seconds: IDL.Nat64,
1454
- });
1455
- const Operation = IDL.Variant({
1456
- RemoveHotKey: RemoveHotKey,
1457
- AddHotKey: AddHotKey,
1458
- ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
1459
- StopDissolving: IDL.Record({}),
1460
- StartDissolving: IDL.Record({}),
1461
- IncreaseDissolveDelay: IncreaseDissolveDelay,
1462
- SetVisibility: SetVisibility,
1463
- JoinCommunityFund: IDL.Record({}),
1464
- LeaveCommunityFund: IDL.Record({}),
1465
- SetDissolveTimestamp: SetDissolveTimestamp,
1466
- });
1467
- const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
1468
- const RegisterVote = IDL.Record({
1469
- vote: IDL.Int32,
1470
- proposal: IDL.Opt(ProposalId),
1471
- });
1472
- const Merge = IDL.Record({ source_neuron_id: IDL.Opt(NeuronId) });
1473
- const DisburseToNeuron = IDL.Record({
1474
- dissolve_delay_seconds: IDL.Nat64,
1475
- kyc_verified: IDL.Bool,
1476
- amount_e8s: IDL.Nat64,
1477
- new_controller: IDL.Opt(IDL.Principal),
1478
- nonce: IDL.Nat64,
1479
- });
1480
- const FolloweesForTopic = IDL.Record({
1481
- topic: IDL.Opt(IDL.Int32),
1482
- followees: IDL.Opt(IDL.Vec(NeuronId)),
1483
- });
1484
- const SetFollowing = IDL.Record({
1485
- topic_following: IDL.Opt(IDL.Vec(FolloweesForTopic)),
1486
- });
1487
- const StakeMaturity = IDL.Record({
1488
- percentage_to_stake: IDL.Opt(IDL.Nat32),
1489
- });
1490
- const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
1491
- const Amount = IDL.Record({ e8s: IDL.Nat64 });
1492
- const Disburse = IDL.Record({
1493
- to_account: IDL.Opt(AccountIdentifier),
1494
- amount: IDL.Opt(Amount),
1495
- });
1496
- const ManageNeuronProposalCommand = IDL.Variant({
1497
- Spawn: Spawn,
1498
- Split: Split,
1499
- Follow: Follow,
1500
- DisburseMaturity: DisburseMaturity,
1501
- RefreshVotingPower: RefreshVotingPower,
1502
- ClaimOrRefresh: ClaimOrRefresh,
1503
- Configure: Configure,
1504
- RegisterVote: RegisterVote,
1505
- Merge: Merge,
1506
- DisburseToNeuron: DisburseToNeuron,
1507
- SetFollowing: SetFollowing,
1508
- MakeProposal: Proposal,
1509
- StakeMaturity: StakeMaturity,
1510
- MergeMaturity: MergeMaturity,
1511
- Disburse: Disburse,
1512
- });
1513
- const NeuronIdOrSubaccount = IDL.Variant({
1514
- Subaccount: IDL.Vec(IDL.Nat8),
1515
- NeuronId: NeuronId,
1516
- });
1517
- const ManageNeuronProposal = IDL.Record({
1518
- id: IDL.Opt(NeuronId),
1519
- command: IDL.Opt(ManageNeuronProposalCommand),
1520
- neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount),
1521
- });
1522
- const Controllers = IDL.Record({ controllers: IDL.Vec(IDL.Principal) });
1523
- const CanisterSettings = IDL.Record({
1524
- freezing_threshold: IDL.Opt(IDL.Nat64),
1525
- wasm_memory_threshold: IDL.Opt(IDL.Nat64),
1526
- controllers: IDL.Opt(Controllers),
1527
- log_visibility: IDL.Opt(IDL.Int32),
1528
- wasm_memory_limit: IDL.Opt(IDL.Nat64),
1529
- memory_allocation: IDL.Opt(IDL.Nat64),
1530
- compute_allocation: IDL.Opt(IDL.Nat64),
1531
- });
1532
- const UpdateCanisterSettings = IDL.Record({
1533
- canister_id: IDL.Opt(IDL.Principal),
1534
- settings: IDL.Opt(CanisterSettings),
1535
- });
1536
- const InstallCode = IDL.Record({
1537
- skip_stopping_before_installing: IDL.Opt(IDL.Bool),
1538
- wasm_module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1539
- canister_id: IDL.Opt(IDL.Principal),
1540
- arg_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1541
- install_mode: IDL.Opt(IDL.Int32),
1542
- });
1543
- const DeregisterKnownNeuron = IDL.Record({ id: IDL.Opt(NeuronId) });
1544
- const StopOrStartCanister = IDL.Record({
1545
- action: IDL.Opt(IDL.Int32),
1546
- canister_id: IDL.Opt(IDL.Principal),
1547
- });
1548
- const Duration = IDL.Record({ seconds: IDL.Opt(IDL.Nat64) });
1549
- const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
1550
- const VotingRewardParameters = IDL.Record({
1551
- reward_rate_transition_duration: IDL.Opt(Duration),
1552
- initial_reward_rate: IDL.Opt(Percentage),
1553
- final_reward_rate: IDL.Opt(Percentage),
1554
- });
1555
- const GovernanceParameters = IDL.Record({
1556
- neuron_maximum_dissolve_delay_bonus: IDL.Opt(Percentage),
1557
- neuron_maximum_age_for_age_bonus: IDL.Opt(Duration),
1558
- neuron_maximum_dissolve_delay: IDL.Opt(Duration),
1559
- neuron_minimum_dissolve_delay_to_vote: IDL.Opt(Duration),
1560
- neuron_maximum_age_bonus: IDL.Opt(Percentage),
1561
- neuron_minimum_stake: IDL.Opt(Tokens),
1562
- proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
1563
- proposal_initial_voting_period: IDL.Opt(Duration),
1564
- proposal_rejection_fee: IDL.Opt(Tokens),
1565
- voting_reward_parameters: IDL.Opt(VotingRewardParameters),
1566
- });
1567
- const Image = IDL.Record({ base64_encoding: IDL.Opt(IDL.Text) });
1568
- const LedgerParameters = IDL.Record({
1569
- transaction_fee: IDL.Opt(Tokens),
1570
- token_symbol: IDL.Opt(IDL.Text),
1571
- token_logo: IDL.Opt(Image),
1572
- token_name: IDL.Opt(IDL.Text),
1573
- });
1574
- const Canister = IDL.Record({ id: IDL.Opt(IDL.Principal) });
1575
- const NeuronBasketConstructionParameters = IDL.Record({
1576
- dissolve_delay_interval: IDL.Opt(Duration),
1577
- count: IDL.Opt(IDL.Nat64),
1578
- });
1579
- const GlobalTimeOfDay = IDL.Record({
1580
- seconds_after_utc_midnight: IDL.Opt(IDL.Nat64),
1581
- });
1582
- const Countries = IDL.Record({ iso_codes: IDL.Vec(IDL.Text) });
1583
- const SwapParameters = IDL.Record({
1584
- minimum_participants: IDL.Opt(IDL.Nat64),
1585
- neurons_fund_participation: IDL.Opt(IDL.Bool),
1586
- duration: IDL.Opt(Duration),
1587
- neuron_basket_construction_parameters: IDL.Opt(
1588
- NeuronBasketConstructionParameters,
1589
- ),
1590
- confirmation_text: IDL.Opt(IDL.Text),
1591
- maximum_participant_icp: IDL.Opt(Tokens),
1592
- minimum_icp: IDL.Opt(Tokens),
1593
- minimum_direct_participation_icp: IDL.Opt(Tokens),
1594
- minimum_participant_icp: IDL.Opt(Tokens),
1595
- start_time: IDL.Opt(GlobalTimeOfDay),
1596
- maximum_direct_participation_icp: IDL.Opt(Tokens),
1597
- maximum_icp: IDL.Opt(Tokens),
1598
- neurons_fund_investment_icp: IDL.Opt(Tokens),
1599
- restricted_countries: IDL.Opt(Countries),
1600
- });
1601
- const SwapDistribution = IDL.Record({ total: IDL.Opt(Tokens) });
1602
- const NeuronDistribution = IDL.Record({
1603
- controller: IDL.Opt(IDL.Principal),
1604
- dissolve_delay: IDL.Opt(Duration),
1605
- memo: IDL.Opt(IDL.Nat64),
1606
- vesting_period: IDL.Opt(Duration),
1607
- stake: IDL.Opt(Tokens),
1608
- });
1609
- const DeveloperDistribution = IDL.Record({
1610
- developer_neurons: IDL.Vec(NeuronDistribution),
1611
- });
1612
- const InitialTokenDistribution = IDL.Record({
1613
- treasury_distribution: IDL.Opt(SwapDistribution),
1614
- developer_distribution: IDL.Opt(DeveloperDistribution),
1615
- swap_distribution: IDL.Opt(SwapDistribution),
1616
- });
1617
- const CreateServiceNervousSystem = IDL.Record({
1618
- url: IDL.Opt(IDL.Text),
1619
- governance_parameters: IDL.Opt(GovernanceParameters),
1620
- fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
1621
- logo: IDL.Opt(Image),
1622
- name: IDL.Opt(IDL.Text),
1623
- ledger_parameters: IDL.Opt(LedgerParameters),
1624
- description: IDL.Opt(IDL.Text),
1625
- dapp_canisters: IDL.Vec(Canister),
1626
- swap_parameters: IDL.Opt(SwapParameters),
1627
- initial_token_distribution: IDL.Opt(InitialTokenDistribution),
1628
- });
1629
- const ExecuteNnsFunction = IDL.Record({
1630
- nns_function: IDL.Int32,
1631
- payload: IDL.Vec(IDL.Nat8),
1632
- });
1633
- const NeuronBasketConstructionParameters_1 = IDL.Record({
1634
- dissolve_delay_interval_seconds: IDL.Nat64,
1635
- count: IDL.Nat64,
1636
- });
1637
- const Params = IDL.Record({
1638
- min_participant_icp_e8s: IDL.Nat64,
1639
- neuron_basket_construction_parameters: IDL.Opt(
1640
- NeuronBasketConstructionParameters_1,
1641
- ),
1642
- max_icp_e8s: IDL.Nat64,
1643
- swap_due_timestamp_seconds: IDL.Nat64,
1644
- min_participants: IDL.Nat32,
1645
- sns_token_e8s: IDL.Nat64,
1646
- sale_delay_seconds: IDL.Opt(IDL.Nat64),
1647
- max_participant_icp_e8s: IDL.Nat64,
1648
- min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1649
- min_icp_e8s: IDL.Nat64,
1650
- max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1651
- });
1652
- const OpenSnsTokenSwap = IDL.Record({
1653
- community_fund_investment_e8s: IDL.Opt(IDL.Nat64),
1654
- target_swap_canister_id: IDL.Opt(IDL.Principal),
1655
- params: IDL.Opt(Params),
1656
- });
1657
- const TimeWindow = IDL.Record({
1658
- start_timestamp_seconds: IDL.Nat64,
1659
- end_timestamp_seconds: IDL.Nat64,
1660
- });
1661
- const SetOpenTimeWindowRequest = IDL.Record({
1662
- open_time_window: IDL.Opt(TimeWindow),
1663
- });
1664
- const SetSnsTokenSwapOpenTimeWindow = IDL.Record({
1665
- request: IDL.Opt(SetOpenTimeWindowRequest),
1666
- swap_canister_id: IDL.Opt(IDL.Principal),
1667
- });
1668
- const SetDefaultFollowees = IDL.Record({
1669
- default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1670
- });
1671
- const RewardNodeProviders = IDL.Record({
1672
- use_registry_derived_rewards: IDL.Opt(IDL.Bool),
1673
- rewards: IDL.Vec(RewardNodeProvider),
1674
- });
1675
- const Principals = IDL.Record({ principals: IDL.Vec(IDL.Principal) });
1676
- const Change = IDL.Variant({
1677
- ToRemove: NodeProvider,
1678
- ToAdd: NodeProvider,
1679
- });
1680
- const AddOrRemoveNodeProvider = IDL.Record({ change: IDL.Opt(Change) });
1681
- const Motion = IDL.Record({ motion_text: IDL.Text });
1682
- const Action = IDL.Variant({
1683
- RegisterKnownNeuron: KnownNeuron,
1684
- FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
1685
- ManageNeuron: ManageNeuronProposal,
1686
- UpdateCanisterSettings: UpdateCanisterSettings,
1687
- InstallCode: InstallCode,
1688
- DeregisterKnownNeuron: DeregisterKnownNeuron,
1689
- StopOrStartCanister: StopOrStartCanister,
1690
- CreateServiceNervousSystem: CreateServiceNervousSystem,
1691
- ExecuteNnsFunction: ExecuteNnsFunction,
1692
- RewardNodeProvider: RewardNodeProvider,
1693
- OpenSnsTokenSwap: OpenSnsTokenSwap,
1694
- SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow,
1695
- SetDefaultFollowees: SetDefaultFollowees,
1696
- RewardNodeProviders: RewardNodeProviders,
1697
- ManageNetworkEconomics: NetworkEconomics,
1698
- ApproveGenesisKyc: Principals,
1699
- AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
1700
- Motion: Motion,
1701
- });
1702
- SelfDescribingValue.fill(
1703
- IDL.Variant({
1704
- Int: IDL.Int,
1705
- Map: IDL.Vec(IDL.Tuple(IDL.Text, SelfDescribingValue)),
1706
- Nat: IDL.Nat,
1707
- Blob: IDL.Vec(IDL.Nat8),
1708
- Text: IDL.Text,
1709
- Array: IDL.Vec(SelfDescribingValue),
1710
- }),
1711
- );
1712
- const SelfDescribingProposalAction = IDL.Record({
1713
- type_description: IDL.Opt(IDL.Text),
1714
- type_name: IDL.Opt(IDL.Text),
1715
- value: IDL.Opt(SelfDescribingValue),
1716
- });
1717
- Proposal.fill(
1718
- IDL.Record({
1719
- url: IDL.Text,
1720
- title: IDL.Opt(IDL.Text),
1721
- action: IDL.Opt(Action),
1722
- summary: IDL.Text,
1723
- self_describing_action: IDL.Opt(SelfDescribingProposalAction),
1724
- }),
1725
- );
1726
- const WaitForQuietState = IDL.Record({
1727
- current_deadline_timestamp_seconds: IDL.Nat64,
1728
- });
1729
- const ProposalData = IDL.Record({
1730
- id: IDL.Opt(ProposalId),
1731
- topic: IDL.Opt(IDL.Int32),
1732
- failure_reason: IDL.Opt(GovernanceError),
1733
- ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1734
- proposal_timestamp_seconds: IDL.Nat64,
1735
- reward_event_round: IDL.Nat64,
1736
- failed_timestamp_seconds: IDL.Nat64,
1737
- neurons_fund_data: IDL.Opt(NeuronsFundData),
1738
- reject_cost_e8s: IDL.Nat64,
1739
- derived_proposal_information: IDL.Opt(DerivedProposalInformation),
1740
- latest_tally: IDL.Opt(Tally),
1741
- total_potential_voting_power: IDL.Opt(IDL.Nat64),
1742
- sns_token_swap_lifecycle: IDL.Opt(IDL.Int32),
1743
- decided_timestamp_seconds: IDL.Nat64,
1744
- proposal: IDL.Opt(Proposal),
1745
- proposer: IDL.Opt(NeuronId),
1746
- wait_for_quiet_state: IDL.Opt(WaitForQuietState),
1747
- executed_timestamp_seconds: IDL.Nat64,
1748
- original_total_community_fund_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1749
- });
1750
- const Command_2 = IDL.Variant({
1751
- Spawn: NeuronId,
1752
- Split: Split,
1753
- Configure: Configure,
1754
- Merge: Merge,
1755
- DisburseToNeuron: DisburseToNeuron,
1756
- SyncCommand: IDL.Record({}),
1757
- ClaimOrRefreshNeuron: ClaimOrRefresh,
1758
- MergeMaturity: MergeMaturity,
1759
- Disburse: Disburse,
1760
- });
1761
- const NeuronInFlightCommand = IDL.Record({
1762
- command: IDL.Opt(Command_2),
1763
- timestamp: IDL.Nat64,
1764
- });
1765
- const BallotInfo = IDL.Record({
1766
- vote: IDL.Int32,
1767
- proposal_id: IDL.Opt(ProposalId),
1768
- });
1769
- const MaturityDisbursement = IDL.Record({
1770
- account_identifier_to_disburse_to: IDL.Opt(AccountIdentifier),
1771
- timestamp_of_disbursement_seconds: IDL.Opt(IDL.Nat64),
1772
- amount_e8s: IDL.Opt(IDL.Nat64),
1773
- account_to_disburse_to: IDL.Opt(Account),
1774
- finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
1775
- });
1776
- const DissolveState = IDL.Variant({
1777
- DissolveDelaySeconds: IDL.Nat64,
1778
- WhenDissolvedTimestampSeconds: IDL.Nat64,
1779
- });
1780
- const Neuron = IDL.Record({
1781
- id: IDL.Opt(NeuronId),
1782
- staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1783
- controller: IDL.Opt(IDL.Principal),
1784
- recent_ballots: IDL.Vec(BallotInfo),
1785
- voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
1786
- kyc_verified: IDL.Bool,
1787
- potential_voting_power: IDL.Opt(IDL.Nat64),
1788
- neuron_type: IDL.Opt(IDL.Int32),
1789
- not_for_profit: IDL.Bool,
1790
- maturity_e8s_equivalent: IDL.Nat64,
1791
- deciding_voting_power: IDL.Opt(IDL.Nat64),
1792
- cached_neuron_stake_e8s: IDL.Nat64,
1793
- created_timestamp_seconds: IDL.Nat64,
1794
- auto_stake_maturity: IDL.Opt(IDL.Bool),
1795
- aging_since_timestamp_seconds: IDL.Nat64,
1796
- hot_keys: IDL.Vec(IDL.Principal),
1797
- account: IDL.Vec(IDL.Nat8),
1798
- joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
1799
- maturity_disbursements_in_progress: IDL.Opt(IDL.Vec(MaturityDisbursement)),
1800
- dissolve_state: IDL.Opt(DissolveState),
1801
- followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1802
- neuron_fees_e8s: IDL.Nat64,
1803
- visibility: IDL.Opt(IDL.Int32),
1804
- transfer: IDL.Opt(NeuronStakeTransfer),
1805
- known_neuron_data: IDL.Opt(KnownNeuronData),
1806
- spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
1807
- });
1808
- const Governance = IDL.Record({
1809
- default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1810
- most_recent_monthly_node_provider_rewards: IDL.Opt(
1811
- MonthlyNodeProviderRewards,
1812
- ),
1813
- maturity_modulation_last_updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
1814
- wait_for_quiet_threshold_seconds: IDL.Nat64,
1815
- metrics: IDL.Opt(GovernanceCachedMetrics),
1816
- neuron_management_voting_period_seconds: IDL.Opt(IDL.Nat64),
1817
- node_providers: IDL.Vec(NodeProvider),
1818
- cached_daily_maturity_modulation_basis_points: IDL.Opt(IDL.Int32),
1819
- economics: IDL.Opt(NetworkEconomics),
1820
- restore_aging_summary: IDL.Opt(RestoreAgingSummary),
1821
- spawning_neurons: IDL.Opt(IDL.Bool),
1822
- latest_reward_event: IDL.Opt(RewardEvent),
1823
- to_claim_transfers: IDL.Vec(NeuronStakeTransfer),
1824
- short_voting_period_seconds: IDL.Nat64,
1825
- proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1826
- xdr_conversion_rate: IDL.Opt(XdrConversionRate),
1827
- in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
1828
- neurons: IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
1829
- genesis_timestamp_seconds: IDL.Nat64,
1830
- });
1831
-
1832
- return [Governance];
1833
- };