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