@junobuild/functions 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/canisters/_canister.d.ts +17 -0
  2. package/canisters/_constants.d.ts +3 -0
  3. package/canisters/ckbtc/index.d.ts +1 -0
  4. package/canisters/ckbtc/index.js +2 -0
  5. package/canisters/cketh/index.d.ts +1 -0
  6. package/canisters/cketh/index.js +2 -0
  7. package/canisters/cketh/index.js.map +7 -0
  8. package/canisters/cmc/cmc.canister.d.ts +28 -0
  9. package/canisters/cmc/index.d.ts +2 -0
  10. package/canisters/cmc/index.js +2 -0
  11. package/canisters/cmc/index.js.map +7 -0
  12. package/canisters/declarations/_idl.d.ts +16 -0
  13. package/canisters/declarations/_types.d.ts +16 -0
  14. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  15. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +40 -0
  16. package/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  17. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +61 -0
  18. package/canisters/declarations/cketh/minter.did.d.ts +893 -0
  19. package/canisters/declarations/cketh/minter.did.idl.d.ts +58 -0
  20. package/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  21. package/canisters/declarations/cketh/orchestrator.did.idl.d.ts +34 -0
  22. package/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  23. package/canisters/declarations/cmc/cmc.did.idl.d.ts +53 -0
  24. package/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  25. package/canisters/declarations/ic-management/ic-management.did.idl.d.ts +147 -0
  26. package/canisters/declarations/index.d.ts +2 -0
  27. package/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  28. package/canisters/declarations/ledger-icp/index.did.idl.d.ts +35 -0
  29. package/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  30. package/canisters/declarations/ledger-icp/ledger.did.idl.d.ts +106 -0
  31. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  32. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +44 -0
  33. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  34. package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +28 -0
  35. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  36. package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +100 -0
  37. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  38. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.d.ts +39 -0
  39. package/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  40. package/canisters/declarations/nns/genesis_token.did.idl.d.ts +24 -0
  41. package/canisters/declarations/nns/governance.did.d.ts +1254 -0
  42. package/canisters/declarations/nns/governance.did.idl.d.ts +217 -0
  43. package/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  44. package/canisters/declarations/nns/governance_test.did.idl.d.ts +218 -0
  45. package/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  46. package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +80 -0
  47. package/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  48. package/canisters/declarations/sns/sns_governance.did.idl.d.ts +189 -0
  49. package/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  50. package/canisters/declarations/sns/sns_governance_test.did.idl.d.ts +199 -0
  51. package/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  52. package/canisters/declarations/sns/sns_root.did.idl.d.ts +53 -0
  53. package/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  54. package/canisters/declarations/sns/sns_swap.did.idl.d.ts +108 -0
  55. package/canisters/ic-management/index.d.ts +1 -0
  56. package/canisters/ic-management/index.js +2 -0
  57. package/canisters/ic-management/index.js.map +7 -0
  58. package/canisters/index.d.ts +1 -0
  59. package/canisters/index.js +2 -0
  60. package/canisters/index.js.map +7 -0
  61. package/canisters/ledger/icp/index.d.ts +2 -0
  62. package/canisters/ledger/icp/index.js +2 -0
  63. package/canisters/ledger/icp/index.js.map +7 -0
  64. package/canisters/ledger/icp/ledger.canister.d.ts +24 -0
  65. package/canisters/ledger/icrc/index.d.ts +3 -0
  66. package/canisters/ledger/icrc/index.js +2 -0
  67. package/canisters/ledger/icrc/index.js.map +7 -0
  68. package/canisters/ledger/icrc/ledger.canister.d.ts +45 -0
  69. package/canisters/ledger/icrc/schemas.d.ts +11 -0
  70. package/canisters/nns/index.d.ts +1 -0
  71. package/canisters/nns/index.js +2 -0
  72. package/canisters/nns/index.js.map +7 -0
  73. package/canisters/schemas.d.ts +11 -0
  74. package/canisters/sns/index.d.ts +1 -0
  75. package/canisters/sns/index.js +2 -0
  76. package/canisters/sns/index.js.map +7 -0
  77. package/chunk-4C666HHU.js +2 -0
  78. package/chunk-4C666HHU.js.map +7 -0
  79. package/chunk-5NZMOUKF.js +2 -0
  80. package/chunk-5NZMOUKF.js.map +7 -0
  81. package/chunk-BXZ5PSUW.js +2 -0
  82. package/chunk-BXZ5PSUW.js.map +7 -0
  83. package/chunk-EMQQE34V.js +2 -0
  84. package/chunk-EMQQE34V.js.map +7 -0
  85. package/chunk-HANEPD6T.js +2 -0
  86. package/chunk-HANEPD6T.js.map +7 -0
  87. package/chunk-TZVF5LQY.js +2 -0
  88. package/chunk-TZVF5LQY.js.map +7 -0
  89. package/ic-cdk.js +1 -1
  90. package/ic-cdk.js.map +4 -4
  91. package/index.js +1 -1
  92. package/index.js.map +1 -1
  93. package/package.json +39 -2
  94. package/sdk.js +1 -1
  95. package/sdk.js.map +1 -1
  96. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  97. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +302 -0
  98. package/src/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  99. package/src/canisters/declarations/ckbtc/minter.did.idl.js +893 -0
  100. package/src/canisters/declarations/cketh/minter.did.d.ts +893 -0
  101. package/src/canisters/declarations/cketh/minter.did.idl.js +878 -0
  102. package/src/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  103. package/src/canisters/declarations/cketh/orchestrator.did.idl.js +343 -0
  104. package/src/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  105. package/src/canisters/declarations/cmc/cmc.did.idl.js +338 -0
  106. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  107. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +1150 -0
  108. package/src/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  109. package/src/canisters/declarations/ledger-icp/index.did.idl.js +225 -0
  110. package/src/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  111. package/src/canisters/declarations/ledger-icp/ledger.did.idl.js +813 -0
  112. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  113. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +274 -0
  114. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  115. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +171 -0
  116. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  117. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +923 -0
  118. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  119. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.js +163 -0
  120. package/src/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  121. package/src/canisters/declarations/nns/genesis_token.did.idl.js +84 -0
  122. package/src/canisters/declarations/nns/governance.did.d.ts +1254 -0
  123. package/src/canisters/declarations/nns/governance.did.idl.js +2756 -0
  124. package/src/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  125. package/src/canisters/declarations/nns/governance_test.did.idl.js +2758 -0
  126. package/src/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  127. package/src/canisters/declarations/nns/sns_wasm.did.idl.js +589 -0
  128. package/src/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  129. package/src/canisters/declarations/sns/sns_governance.did.idl.js +2235 -0
  130. package/src/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  131. package/src/canisters/declarations/sns/sns_governance_test.did.idl.js +2283 -0
  132. package/src/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  133. package/src/canisters/declarations/sns/sns_root.did.idl.js +433 -0
  134. package/src/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  135. package/src/canisters/declarations/sns/sns_swap.did.idl.js +858 -0
  136. package/global.d.js +0 -1
  137. /package/{global.d.js.map → canisters/ckbtc/index.js.map} +0 -0
@@ -0,0 +1,2756 @@
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
+ import {IDL} from '@icp-sdk/core/candid';
10
+
11
+ export const ManageNeuronRequest = IDL.Rec();
12
+ export const Proposal = IDL.Rec();
13
+ export const NeuronId = IDL.Record({id: IDL.Nat64});
14
+ export const Followees = IDL.Record({followees: IDL.Vec(NeuronId)});
15
+ export const DateUtc = IDL.Record({
16
+ day: IDL.Nat32,
17
+ month: IDL.Nat32,
18
+ year: IDL.Nat32
19
+ });
20
+ export const AccountIdentifier = IDL.Record({hash: IDL.Vec(IDL.Nat8)});
21
+ export const NodeProvider = IDL.Record({
22
+ id: IDL.Opt(IDL.Principal),
23
+ reward_account: IDL.Opt(AccountIdentifier)
24
+ });
25
+ export const RewardToNeuron = IDL.Record({
26
+ dissolve_delay_seconds: IDL.Nat64
27
+ });
28
+ export const RewardToAccount = IDL.Record({
29
+ to_account: IDL.Opt(AccountIdentifier)
30
+ });
31
+ export const RewardMode = IDL.Variant({
32
+ RewardToNeuron: RewardToNeuron,
33
+ RewardToAccount: RewardToAccount
34
+ });
35
+ export const RewardNodeProvider = IDL.Record({
36
+ node_provider: IDL.Opt(NodeProvider),
37
+ reward_mode: IDL.Opt(RewardMode),
38
+ amount_e8s: IDL.Nat64
39
+ });
40
+ export const XdrConversionRate = IDL.Record({
41
+ xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
42
+ timestamp_seconds: IDL.Opt(IDL.Nat64)
43
+ });
44
+ export const MonthlyNodeProviderRewards = IDL.Record({
45
+ minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
46
+ end_date: IDL.Opt(DateUtc),
47
+ registry_version: IDL.Opt(IDL.Nat64),
48
+ node_providers: IDL.Vec(NodeProvider),
49
+ start_date: IDL.Opt(DateUtc),
50
+ timestamp: IDL.Nat64,
51
+ rewards: IDL.Vec(RewardNodeProvider),
52
+ xdr_conversion_rate: IDL.Opt(XdrConversionRate),
53
+ maximum_node_provider_rewards_e8s: IDL.Opt(IDL.Nat64)
54
+ });
55
+ export const NeuronSubsetMetrics = IDL.Record({
56
+ total_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
57
+ maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
58
+ voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
59
+ total_staked_e8s: IDL.Opt(IDL.Nat64),
60
+ count: IDL.Opt(IDL.Nat64),
61
+ deciding_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
62
+ total_staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
63
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
64
+ total_deciding_voting_power: IDL.Opt(IDL.Nat64),
65
+ staked_maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
66
+ staked_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
67
+ total_voting_power: IDL.Opt(IDL.Nat64),
68
+ potential_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
69
+ count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64))
70
+ });
71
+ export const GovernanceCachedMetrics = IDL.Record({
72
+ total_maturity_e8s_equivalent: IDL.Nat64,
73
+ not_dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
74
+ dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
75
+ garbage_collectable_neurons_count: IDL.Nat64,
76
+ dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
77
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
78
+ ),
79
+ neurons_with_invalid_stake_count: IDL.Nat64,
80
+ not_dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
81
+ ect_neuron_count: IDL.Nat64,
82
+ total_supply_icp: IDL.Nat64,
83
+ neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
84
+ dissolved_neurons_count: IDL.Nat64,
85
+ community_fund_total_maturity_e8s_equivalent: IDL.Nat64,
86
+ total_staked_e8s_seed: IDL.Nat64,
87
+ total_staked_maturity_e8s_equivalent_ect: IDL.Nat64,
88
+ total_staked_e8s: IDL.Nat64,
89
+ fully_lost_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
90
+ not_dissolving_neurons_count: IDL.Nat64,
91
+ total_locked_e8s: IDL.Nat64,
92
+ neurons_fund_total_active_neurons: IDL.Nat64,
93
+ total_voting_power_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
94
+ total_staked_maturity_e8s_equivalent: IDL.Nat64,
95
+ not_dissolving_neurons_e8s_buckets_ect: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
96
+ spawning_neurons_count: IDL.Nat64,
97
+ declining_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
98
+ total_staked_e8s_ect: IDL.Nat64,
99
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
100
+ dissolved_neurons_e8s: IDL.Nat64,
101
+ total_staked_e8s_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
102
+ dissolving_neurons_e8s_buckets_seed: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
103
+ neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
104
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
105
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
106
+ ),
107
+ dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
108
+ dissolving_neurons_e8s_buckets_ect: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
109
+ non_self_authenticating_controller_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
110
+ dissolving_neurons_count: IDL.Nat64,
111
+ dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
112
+ total_staked_maturity_e8s_equivalent_seed: IDL.Nat64,
113
+ community_fund_total_staked_e8s: IDL.Nat64,
114
+ not_dissolving_neurons_e8s_buckets_seed: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
115
+ public_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
116
+ timestamp_seconds: IDL.Nat64,
117
+ seed_neuron_count: IDL.Nat64
118
+ });
119
+ export const VotingPowerEconomics = IDL.Record({
120
+ start_reducing_voting_power_after_seconds: IDL.Opt(IDL.Nat64),
121
+ neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
122
+ clear_following_after_seconds: IDL.Opt(IDL.Nat64)
123
+ });
124
+ export const Percentage = IDL.Record({basis_points: IDL.Opt(IDL.Nat64)});
125
+ export const Decimal = IDL.Record({human_readable: IDL.Opt(IDL.Text)});
126
+ export const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
127
+ contribution_threshold_xdr: IDL.Opt(Decimal),
128
+ one_third_participation_milestone_xdr: IDL.Opt(Decimal),
129
+ full_participation_milestone_xdr: IDL.Opt(Decimal)
130
+ });
131
+ export const NeuronsFundEconomics = IDL.Record({
132
+ maximum_icp_xdr_rate: IDL.Opt(Percentage),
133
+ neurons_fund_matched_funding_curve_coefficients: IDL.Opt(
134
+ NeuronsFundMatchedFundingCurveCoefficients
135
+ ),
136
+ max_theoretical_neurons_fund_participation_amount_xdr: IDL.Opt(Decimal),
137
+ minimum_icp_xdr_rate: IDL.Opt(Percentage)
138
+ });
139
+ export const NetworkEconomics = IDL.Record({
140
+ neuron_minimum_stake_e8s: IDL.Nat64,
141
+ voting_power_economics: IDL.Opt(VotingPowerEconomics),
142
+ max_proposals_to_keep_per_topic: IDL.Nat32,
143
+ neuron_management_fee_per_proposal_e8s: IDL.Nat64,
144
+ reject_cost_e8s: IDL.Nat64,
145
+ transaction_fee_e8s: IDL.Nat64,
146
+ neuron_spawn_dissolve_delay_seconds: IDL.Nat64,
147
+ minimum_icp_xdr_rate: IDL.Nat64,
148
+ maximum_node_provider_rewards_e8s: IDL.Nat64,
149
+ neurons_fund_economics: IDL.Opt(NeuronsFundEconomics)
150
+ });
151
+ export const RestoreAgingNeuronGroup = IDL.Record({
152
+ count: IDL.Opt(IDL.Nat64),
153
+ previous_total_stake_e8s: IDL.Opt(IDL.Nat64),
154
+ current_total_stake_e8s: IDL.Opt(IDL.Nat64),
155
+ group_type: IDL.Int32
156
+ });
157
+ export const RestoreAgingSummary = IDL.Record({
158
+ groups: IDL.Vec(RestoreAgingNeuronGroup),
159
+ timestamp_seconds: IDL.Opt(IDL.Nat64)
160
+ });
161
+ export const ProposalId = IDL.Record({id: IDL.Nat64});
162
+ export const RewardEvent = IDL.Record({
163
+ rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
164
+ day_after_genesis: IDL.Nat64,
165
+ actual_timestamp_seconds: IDL.Nat64,
166
+ total_available_e8s_equivalent: IDL.Nat64,
167
+ latest_round_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
168
+ distributed_e8s_equivalent: IDL.Nat64,
169
+ settled_proposals: IDL.Vec(ProposalId)
170
+ });
171
+ export const NeuronStakeTransfer = IDL.Record({
172
+ to_subaccount: IDL.Vec(IDL.Nat8),
173
+ neuron_stake_e8s: IDL.Nat64,
174
+ from: IDL.Opt(IDL.Principal),
175
+ memo: IDL.Nat64,
176
+ from_subaccount: IDL.Vec(IDL.Nat8),
177
+ transfer_timestamp: IDL.Nat64,
178
+ block_height: IDL.Nat64
179
+ });
180
+ export const GovernanceError = IDL.Record({
181
+ error_message: IDL.Text,
182
+ error_type: IDL.Int32
183
+ });
184
+ export const Ballot = IDL.Record({
185
+ vote: IDL.Int32,
186
+ voting_power: IDL.Nat64
187
+ });
188
+ export const SwapParticipationLimits = IDL.Record({
189
+ min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
190
+ max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
191
+ min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
192
+ max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64)
193
+ });
194
+ export const NeuronsFundNeuronPortion = IDL.Record({
195
+ controller: IDL.Opt(IDL.Principal),
196
+ hotkeys: IDL.Vec(IDL.Principal),
197
+ is_capped: IDL.Opt(IDL.Bool),
198
+ maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
199
+ nns_neuron_id: IDL.Opt(NeuronId),
200
+ amount_icp_e8s: IDL.Opt(IDL.Nat64)
201
+ });
202
+ export const NeuronsFundSnapshot = IDL.Record({
203
+ neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuronPortion)
204
+ });
205
+ export const IdealMatchedParticipationFunction = IDL.Record({
206
+ serialized_representation: IDL.Opt(IDL.Text)
207
+ });
208
+ export const NeuronsFundParticipation = IDL.Record({
209
+ total_maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
210
+ intended_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
211
+ direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
212
+ swap_participation_limits: IDL.Opt(SwapParticipationLimits),
213
+ max_neurons_fund_swap_participation_icp_e8s: IDL.Opt(IDL.Nat64),
214
+ neurons_fund_reserves: IDL.Opt(NeuronsFundSnapshot),
215
+ ideal_matched_participation_function: IDL.Opt(IdealMatchedParticipationFunction),
216
+ allocated_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64)
217
+ });
218
+ export const NeuronsFundData = IDL.Record({
219
+ final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
220
+ initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
221
+ neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot)
222
+ });
223
+ export const CanisterStatusResultV2 = IDL.Record({
224
+ status: IDL.Opt(IDL.Int32),
225
+ freezing_threshold: IDL.Opt(IDL.Nat64),
226
+ controllers: IDL.Vec(IDL.Principal),
227
+ memory_size: IDL.Opt(IDL.Nat64),
228
+ cycles: IDL.Opt(IDL.Nat64),
229
+ idle_cycles_burned_per_day: IDL.Opt(IDL.Nat64),
230
+ module_hash: IDL.Vec(IDL.Nat8)
231
+ });
232
+ export const CanisterSummary = IDL.Record({
233
+ status: IDL.Opt(CanisterStatusResultV2),
234
+ canister_id: IDL.Opt(IDL.Principal)
235
+ });
236
+ export const SwapBackgroundInformation = IDL.Record({
237
+ ledger_index_canister_summary: IDL.Opt(CanisterSummary),
238
+ fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
239
+ ledger_archive_canister_summaries: IDL.Vec(CanisterSummary),
240
+ ledger_canister_summary: IDL.Opt(CanisterSummary),
241
+ swap_canister_summary: IDL.Opt(CanisterSummary),
242
+ governance_canister_summary: IDL.Opt(CanisterSummary),
243
+ root_canister_summary: IDL.Opt(CanisterSummary),
244
+ dapp_canister_summaries: IDL.Vec(CanisterSummary)
245
+ });
246
+ export const DerivedProposalInformation = IDL.Record({
247
+ swap_background_information: IDL.Opt(SwapBackgroundInformation)
248
+ });
249
+ export const Tally = IDL.Record({
250
+ no: IDL.Nat64,
251
+ yes: IDL.Nat64,
252
+ total: IDL.Nat64,
253
+ timestamp_seconds: IDL.Nat64
254
+ });
255
+ export const TopicToFollow = IDL.Variant({
256
+ Kyc: IDL.Null,
257
+ ServiceNervousSystemManagement: IDL.Null,
258
+ ApiBoundaryNodeManagement: IDL.Null,
259
+ ApplicationCanisterManagement: IDL.Null,
260
+ SubnetRental: IDL.Null,
261
+ NeuronManagement: IDL.Null,
262
+ NodeProviderRewards: IDL.Null,
263
+ SubnetManagement: IDL.Null,
264
+ ExchangeRate: IDL.Null,
265
+ CatchAll: IDL.Null,
266
+ NodeAdmin: IDL.Null,
267
+ IcOsVersionElection: IDL.Null,
268
+ ProtocolCanisterManagement: IDL.Null,
269
+ NetworkEconomics: IDL.Null,
270
+ IcOsVersionDeployment: IDL.Null,
271
+ ParticipantManagement: IDL.Null,
272
+ Governance: IDL.Null,
273
+ SnsAndCommunityFund: IDL.Null
274
+ });
275
+ export const KnownNeuronData = IDL.Record({
276
+ name: IDL.Text,
277
+ committed_topics: IDL.Opt(IDL.Vec(IDL.Opt(TopicToFollow))),
278
+ description: IDL.Opt(IDL.Text),
279
+ links: IDL.Opt(IDL.Vec(IDL.Text))
280
+ });
281
+ export const KnownNeuron = IDL.Record({
282
+ id: IDL.Opt(NeuronId),
283
+ known_neuron_data: IDL.Opt(KnownNeuronData)
284
+ });
285
+ export const FulfillSubnetRentalRequest = IDL.Record({
286
+ user: IDL.Opt(IDL.Principal),
287
+ replica_version_id: IDL.Opt(IDL.Text),
288
+ node_ids: IDL.Opt(IDL.Vec(IDL.Principal))
289
+ });
290
+ export const Spawn = IDL.Record({
291
+ percentage_to_spawn: IDL.Opt(IDL.Nat32),
292
+ new_controller: IDL.Opt(IDL.Principal),
293
+ nonce: IDL.Opt(IDL.Nat64)
294
+ });
295
+ export const Split = IDL.Record({
296
+ memo: IDL.Opt(IDL.Nat64),
297
+ amount_e8s: IDL.Nat64
298
+ });
299
+ export const Follow = IDL.Record({
300
+ topic: IDL.Int32,
301
+ followees: IDL.Vec(NeuronId)
302
+ });
303
+ export const Account = IDL.Record({
304
+ owner: IDL.Opt(IDL.Principal),
305
+ subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
306
+ });
307
+ export const DisburseMaturity = IDL.Record({
308
+ to_account_identifier: IDL.Opt(AccountIdentifier),
309
+ to_account: IDL.Opt(Account),
310
+ percentage_to_disburse: IDL.Nat32
311
+ });
312
+ export const RefreshVotingPower = IDL.Record({});
313
+ export const ClaimOrRefreshNeuronFromAccount = IDL.Record({
314
+ controller: IDL.Opt(IDL.Principal),
315
+ memo: IDL.Nat64
316
+ });
317
+ export const By = IDL.Variant({
318
+ NeuronIdOrSubaccount: IDL.Record({}),
319
+ MemoAndController: ClaimOrRefreshNeuronFromAccount,
320
+ Memo: IDL.Nat64
321
+ });
322
+ export const ClaimOrRefresh = IDL.Record({by: IDL.Opt(By)});
323
+ export const RemoveHotKey = IDL.Record({
324
+ hot_key_to_remove: IDL.Opt(IDL.Principal)
325
+ });
326
+ export const AddHotKey = IDL.Record({new_hot_key: IDL.Opt(IDL.Principal)});
327
+ export const ChangeAutoStakeMaturity = IDL.Record({
328
+ requested_setting_for_auto_stake_maturity: IDL.Bool
329
+ });
330
+ export const IncreaseDissolveDelay = IDL.Record({
331
+ additional_dissolve_delay_seconds: IDL.Nat32
332
+ });
333
+ export const SetVisibility = IDL.Record({visibility: IDL.Opt(IDL.Int32)});
334
+ export const SetDissolveTimestamp = IDL.Record({
335
+ dissolve_timestamp_seconds: IDL.Nat64
336
+ });
337
+ export const Operation = IDL.Variant({
338
+ RemoveHotKey: RemoveHotKey,
339
+ AddHotKey: AddHotKey,
340
+ ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
341
+ StopDissolving: IDL.Record({}),
342
+ StartDissolving: IDL.Record({}),
343
+ IncreaseDissolveDelay: IncreaseDissolveDelay,
344
+ SetVisibility: SetVisibility,
345
+ JoinCommunityFund: IDL.Record({}),
346
+ LeaveCommunityFund: IDL.Record({}),
347
+ SetDissolveTimestamp: SetDissolveTimestamp
348
+ });
349
+ export const Configure = IDL.Record({operation: IDL.Opt(Operation)});
350
+ export const RegisterVote = IDL.Record({
351
+ vote: IDL.Int32,
352
+ proposal: IDL.Opt(ProposalId)
353
+ });
354
+ export const Merge = IDL.Record({source_neuron_id: IDL.Opt(NeuronId)});
355
+ export const DisburseToNeuron = IDL.Record({
356
+ dissolve_delay_seconds: IDL.Nat64,
357
+ kyc_verified: IDL.Bool,
358
+ amount_e8s: IDL.Nat64,
359
+ new_controller: IDL.Opt(IDL.Principal),
360
+ nonce: IDL.Nat64
361
+ });
362
+ export const FolloweesForTopic = IDL.Record({
363
+ topic: IDL.Opt(IDL.Int32),
364
+ followees: IDL.Opt(IDL.Vec(NeuronId))
365
+ });
366
+ export const SetFollowing = IDL.Record({
367
+ topic_following: IDL.Opt(IDL.Vec(FolloweesForTopic))
368
+ });
369
+ export const StakeMaturity = IDL.Record({
370
+ percentage_to_stake: IDL.Opt(IDL.Nat32)
371
+ });
372
+ export const MergeMaturity = IDL.Record({percentage_to_merge: IDL.Nat32});
373
+ export const Amount = IDL.Record({e8s: IDL.Nat64});
374
+ export const Disburse = IDL.Record({
375
+ to_account: IDL.Opt(AccountIdentifier),
376
+ amount: IDL.Opt(Amount)
377
+ });
378
+ export const Command = IDL.Variant({
379
+ Spawn: Spawn,
380
+ Split: Split,
381
+ Follow: Follow,
382
+ DisburseMaturity: DisburseMaturity,
383
+ RefreshVotingPower: RefreshVotingPower,
384
+ ClaimOrRefresh: ClaimOrRefresh,
385
+ Configure: Configure,
386
+ RegisterVote: RegisterVote,
387
+ Merge: Merge,
388
+ DisburseToNeuron: DisburseToNeuron,
389
+ SetFollowing: SetFollowing,
390
+ MakeProposal: Proposal,
391
+ StakeMaturity: StakeMaturity,
392
+ MergeMaturity: MergeMaturity,
393
+ Disburse: Disburse
394
+ });
395
+ export const NeuronIdOrSubaccount = IDL.Variant({
396
+ Subaccount: IDL.Vec(IDL.Nat8),
397
+ NeuronId: NeuronId
398
+ });
399
+ export const ManageNeuron = IDL.Record({
400
+ id: IDL.Opt(NeuronId),
401
+ command: IDL.Opt(Command),
402
+ neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
403
+ });
404
+ export const Controllers = IDL.Record({
405
+ controllers: IDL.Vec(IDL.Principal)
406
+ });
407
+ export const CanisterSettings = IDL.Record({
408
+ freezing_threshold: IDL.Opt(IDL.Nat64),
409
+ wasm_memory_threshold: IDL.Opt(IDL.Nat64),
410
+ controllers: IDL.Opt(Controllers),
411
+ log_visibility: IDL.Opt(IDL.Int32),
412
+ wasm_memory_limit: IDL.Opt(IDL.Nat64),
413
+ memory_allocation: IDL.Opt(IDL.Nat64),
414
+ compute_allocation: IDL.Opt(IDL.Nat64)
415
+ });
416
+ export const UpdateCanisterSettings = IDL.Record({
417
+ canister_id: IDL.Opt(IDL.Principal),
418
+ settings: IDL.Opt(CanisterSettings)
419
+ });
420
+ export const InstallCode = IDL.Record({
421
+ skip_stopping_before_installing: IDL.Opt(IDL.Bool),
422
+ wasm_module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
423
+ canister_id: IDL.Opt(IDL.Principal),
424
+ arg_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
425
+ install_mode: IDL.Opt(IDL.Int32)
426
+ });
427
+ export const DeregisterKnownNeuron = IDL.Record({id: IDL.Opt(NeuronId)});
428
+ export const StopOrStartCanister = IDL.Record({
429
+ action: IDL.Opt(IDL.Int32),
430
+ canister_id: IDL.Opt(IDL.Principal)
431
+ });
432
+ export const Duration = IDL.Record({seconds: IDL.Opt(IDL.Nat64)});
433
+ export const Tokens = IDL.Record({e8s: IDL.Opt(IDL.Nat64)});
434
+ export const VotingRewardParameters = IDL.Record({
435
+ reward_rate_transition_duration: IDL.Opt(Duration),
436
+ initial_reward_rate: IDL.Opt(Percentage),
437
+ final_reward_rate: IDL.Opt(Percentage)
438
+ });
439
+ export const GovernanceParameters = IDL.Record({
440
+ neuron_maximum_dissolve_delay_bonus: IDL.Opt(Percentage),
441
+ neuron_maximum_age_for_age_bonus: IDL.Opt(Duration),
442
+ neuron_maximum_dissolve_delay: IDL.Opt(Duration),
443
+ neuron_minimum_dissolve_delay_to_vote: IDL.Opt(Duration),
444
+ neuron_maximum_age_bonus: IDL.Opt(Percentage),
445
+ neuron_minimum_stake: IDL.Opt(Tokens),
446
+ proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
447
+ proposal_initial_voting_period: IDL.Opt(Duration),
448
+ proposal_rejection_fee: IDL.Opt(Tokens),
449
+ voting_reward_parameters: IDL.Opt(VotingRewardParameters)
450
+ });
451
+ export const Image = IDL.Record({base64_encoding: IDL.Opt(IDL.Text)});
452
+ export const LedgerParameters = IDL.Record({
453
+ transaction_fee: IDL.Opt(Tokens),
454
+ token_symbol: IDL.Opt(IDL.Text),
455
+ token_logo: IDL.Opt(Image),
456
+ token_name: IDL.Opt(IDL.Text)
457
+ });
458
+ export const Canister = IDL.Record({id: IDL.Opt(IDL.Principal)});
459
+ export const NeuronBasketConstructionParameters = IDL.Record({
460
+ dissolve_delay_interval: IDL.Opt(Duration),
461
+ count: IDL.Opt(IDL.Nat64)
462
+ });
463
+ export const GlobalTimeOfDay = IDL.Record({
464
+ seconds_after_utc_midnight: IDL.Opt(IDL.Nat64)
465
+ });
466
+ export const Countries = IDL.Record({iso_codes: IDL.Vec(IDL.Text)});
467
+ export const SwapParameters = IDL.Record({
468
+ minimum_participants: IDL.Opt(IDL.Nat64),
469
+ neurons_fund_participation: IDL.Opt(IDL.Bool),
470
+ duration: IDL.Opt(Duration),
471
+ neuron_basket_construction_parameters: IDL.Opt(NeuronBasketConstructionParameters),
472
+ confirmation_text: IDL.Opt(IDL.Text),
473
+ maximum_participant_icp: IDL.Opt(Tokens),
474
+ minimum_icp: IDL.Opt(Tokens),
475
+ minimum_direct_participation_icp: IDL.Opt(Tokens),
476
+ minimum_participant_icp: IDL.Opt(Tokens),
477
+ start_time: IDL.Opt(GlobalTimeOfDay),
478
+ maximum_direct_participation_icp: IDL.Opt(Tokens),
479
+ maximum_icp: IDL.Opt(Tokens),
480
+ neurons_fund_investment_icp: IDL.Opt(Tokens),
481
+ restricted_countries: IDL.Opt(Countries)
482
+ });
483
+ export const SwapDistribution = IDL.Record({total: IDL.Opt(Tokens)});
484
+ export const NeuronDistribution = IDL.Record({
485
+ controller: IDL.Opt(IDL.Principal),
486
+ dissolve_delay: IDL.Opt(Duration),
487
+ memo: IDL.Opt(IDL.Nat64),
488
+ vesting_period: IDL.Opt(Duration),
489
+ stake: IDL.Opt(Tokens)
490
+ });
491
+ export const DeveloperDistribution = IDL.Record({
492
+ developer_neurons: IDL.Vec(NeuronDistribution)
493
+ });
494
+ export const InitialTokenDistribution = IDL.Record({
495
+ treasury_distribution: IDL.Opt(SwapDistribution),
496
+ developer_distribution: IDL.Opt(DeveloperDistribution),
497
+ swap_distribution: IDL.Opt(SwapDistribution)
498
+ });
499
+ export const CreateServiceNervousSystem = IDL.Record({
500
+ url: IDL.Opt(IDL.Text),
501
+ governance_parameters: IDL.Opt(GovernanceParameters),
502
+ fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
503
+ logo: IDL.Opt(Image),
504
+ name: IDL.Opt(IDL.Text),
505
+ ledger_parameters: IDL.Opt(LedgerParameters),
506
+ description: IDL.Opt(IDL.Text),
507
+ dapp_canisters: IDL.Vec(Canister),
508
+ swap_parameters: IDL.Opt(SwapParameters),
509
+ initial_token_distribution: IDL.Opt(InitialTokenDistribution)
510
+ });
511
+ export const ExecuteNnsFunction = IDL.Record({
512
+ nns_function: IDL.Int32,
513
+ payload: IDL.Vec(IDL.Nat8)
514
+ });
515
+ export const NeuronBasketConstructionParameters_1 = IDL.Record({
516
+ dissolve_delay_interval_seconds: IDL.Nat64,
517
+ count: IDL.Nat64
518
+ });
519
+ export const Params = IDL.Record({
520
+ min_participant_icp_e8s: IDL.Nat64,
521
+ neuron_basket_construction_parameters: IDL.Opt(NeuronBasketConstructionParameters_1),
522
+ max_icp_e8s: IDL.Nat64,
523
+ swap_due_timestamp_seconds: IDL.Nat64,
524
+ min_participants: IDL.Nat32,
525
+ sns_token_e8s: IDL.Nat64,
526
+ sale_delay_seconds: IDL.Opt(IDL.Nat64),
527
+ max_participant_icp_e8s: IDL.Nat64,
528
+ min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
529
+ min_icp_e8s: IDL.Nat64,
530
+ max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64)
531
+ });
532
+ export const OpenSnsTokenSwap = IDL.Record({
533
+ community_fund_investment_e8s: IDL.Opt(IDL.Nat64),
534
+ target_swap_canister_id: IDL.Opt(IDL.Principal),
535
+ params: IDL.Opt(Params)
536
+ });
537
+ export const TimeWindow = IDL.Record({
538
+ start_timestamp_seconds: IDL.Nat64,
539
+ end_timestamp_seconds: IDL.Nat64
540
+ });
541
+ export const SetOpenTimeWindowRequest = IDL.Record({
542
+ open_time_window: IDL.Opt(TimeWindow)
543
+ });
544
+ export const SetSnsTokenSwapOpenTimeWindow = IDL.Record({
545
+ request: IDL.Opt(SetOpenTimeWindowRequest),
546
+ swap_canister_id: IDL.Opt(IDL.Principal)
547
+ });
548
+ export const SetDefaultFollowees = IDL.Record({
549
+ default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees))
550
+ });
551
+ export const RewardNodeProviders = IDL.Record({
552
+ use_registry_derived_rewards: IDL.Opt(IDL.Bool),
553
+ rewards: IDL.Vec(RewardNodeProvider)
554
+ });
555
+ export const Principals = IDL.Record({principals: IDL.Vec(IDL.Principal)});
556
+ export const Change = IDL.Variant({
557
+ ToRemove: NodeProvider,
558
+ ToAdd: NodeProvider
559
+ });
560
+ export const AddOrRemoveNodeProvider = IDL.Record({
561
+ change: IDL.Opt(Change)
562
+ });
563
+ export const Motion = IDL.Record({motion_text: IDL.Text});
564
+ export const Action = IDL.Variant({
565
+ RegisterKnownNeuron: KnownNeuron,
566
+ FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
567
+ ManageNeuron: ManageNeuron,
568
+ UpdateCanisterSettings: UpdateCanisterSettings,
569
+ InstallCode: InstallCode,
570
+ DeregisterKnownNeuron: DeregisterKnownNeuron,
571
+ StopOrStartCanister: StopOrStartCanister,
572
+ CreateServiceNervousSystem: CreateServiceNervousSystem,
573
+ ExecuteNnsFunction: ExecuteNnsFunction,
574
+ RewardNodeProvider: RewardNodeProvider,
575
+ OpenSnsTokenSwap: OpenSnsTokenSwap,
576
+ SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow,
577
+ SetDefaultFollowees: SetDefaultFollowees,
578
+ RewardNodeProviders: RewardNodeProviders,
579
+ ManageNetworkEconomics: NetworkEconomics,
580
+ ApproveGenesisKyc: Principals,
581
+ AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
582
+ Motion: Motion
583
+ });
584
+ Proposal.fill(
585
+ IDL.Record({
586
+ url: IDL.Text,
587
+ title: IDL.Opt(IDL.Text),
588
+ action: IDL.Opt(Action),
589
+ summary: IDL.Text
590
+ })
591
+ );
592
+ export const WaitForQuietState = IDL.Record({
593
+ current_deadline_timestamp_seconds: IDL.Nat64
594
+ });
595
+ export const ProposalData = IDL.Record({
596
+ id: IDL.Opt(ProposalId),
597
+ topic: IDL.Opt(IDL.Int32),
598
+ failure_reason: IDL.Opt(GovernanceError),
599
+ ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
600
+ proposal_timestamp_seconds: IDL.Nat64,
601
+ reward_event_round: IDL.Nat64,
602
+ failed_timestamp_seconds: IDL.Nat64,
603
+ neurons_fund_data: IDL.Opt(NeuronsFundData),
604
+ reject_cost_e8s: IDL.Nat64,
605
+ derived_proposal_information: IDL.Opt(DerivedProposalInformation),
606
+ latest_tally: IDL.Opt(Tally),
607
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
608
+ sns_token_swap_lifecycle: IDL.Opt(IDL.Int32),
609
+ decided_timestamp_seconds: IDL.Nat64,
610
+ proposal: IDL.Opt(Proposal),
611
+ proposer: IDL.Opt(NeuronId),
612
+ wait_for_quiet_state: IDL.Opt(WaitForQuietState),
613
+ executed_timestamp_seconds: IDL.Nat64,
614
+ original_total_community_fund_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64)
615
+ });
616
+ export const Command_2 = IDL.Variant({
617
+ Spawn: NeuronId,
618
+ Split: Split,
619
+ Configure: Configure,
620
+ Merge: Merge,
621
+ DisburseToNeuron: DisburseToNeuron,
622
+ SyncCommand: IDL.Record({}),
623
+ ClaimOrRefreshNeuron: ClaimOrRefresh,
624
+ MergeMaturity: MergeMaturity,
625
+ Disburse: Disburse
626
+ });
627
+ export const NeuronInFlightCommand = IDL.Record({
628
+ command: IDL.Opt(Command_2),
629
+ timestamp: IDL.Nat64
630
+ });
631
+ export const BallotInfo = IDL.Record({
632
+ vote: IDL.Int32,
633
+ proposal_id: IDL.Opt(ProposalId)
634
+ });
635
+ export const MaturityDisbursement = IDL.Record({
636
+ account_identifier_to_disburse_to: IDL.Opt(AccountIdentifier),
637
+ timestamp_of_disbursement_seconds: IDL.Opt(IDL.Nat64),
638
+ amount_e8s: IDL.Opt(IDL.Nat64),
639
+ account_to_disburse_to: IDL.Opt(Account),
640
+ finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64)
641
+ });
642
+ export const DissolveState = IDL.Variant({
643
+ DissolveDelaySeconds: IDL.Nat64,
644
+ WhenDissolvedTimestampSeconds: IDL.Nat64
645
+ });
646
+ export const Neuron = IDL.Record({
647
+ id: IDL.Opt(NeuronId),
648
+ staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
649
+ controller: IDL.Opt(IDL.Principal),
650
+ recent_ballots: IDL.Vec(BallotInfo),
651
+ voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
652
+ kyc_verified: IDL.Bool,
653
+ potential_voting_power: IDL.Opt(IDL.Nat64),
654
+ neuron_type: IDL.Opt(IDL.Int32),
655
+ not_for_profit: IDL.Bool,
656
+ maturity_e8s_equivalent: IDL.Nat64,
657
+ deciding_voting_power: IDL.Opt(IDL.Nat64),
658
+ cached_neuron_stake_e8s: IDL.Nat64,
659
+ created_timestamp_seconds: IDL.Nat64,
660
+ auto_stake_maturity: IDL.Opt(IDL.Bool),
661
+ aging_since_timestamp_seconds: IDL.Nat64,
662
+ hot_keys: IDL.Vec(IDL.Principal),
663
+ account: IDL.Vec(IDL.Nat8),
664
+ joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
665
+ maturity_disbursements_in_progress: IDL.Opt(IDL.Vec(MaturityDisbursement)),
666
+ dissolve_state: IDL.Opt(DissolveState),
667
+ followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
668
+ neuron_fees_e8s: IDL.Nat64,
669
+ visibility: IDL.Opt(IDL.Int32),
670
+ transfer: IDL.Opt(NeuronStakeTransfer),
671
+ known_neuron_data: IDL.Opt(KnownNeuronData),
672
+ spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64)
673
+ });
674
+ export const Governance = IDL.Record({
675
+ default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
676
+ most_recent_monthly_node_provider_rewards: IDL.Opt(MonthlyNodeProviderRewards),
677
+ maturity_modulation_last_updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
678
+ wait_for_quiet_threshold_seconds: IDL.Nat64,
679
+ metrics: IDL.Opt(GovernanceCachedMetrics),
680
+ neuron_management_voting_period_seconds: IDL.Opt(IDL.Nat64),
681
+ node_providers: IDL.Vec(NodeProvider),
682
+ cached_daily_maturity_modulation_basis_points: IDL.Opt(IDL.Int32),
683
+ economics: IDL.Opt(NetworkEconomics),
684
+ restore_aging_summary: IDL.Opt(RestoreAgingSummary),
685
+ spawning_neurons: IDL.Opt(IDL.Bool),
686
+ latest_reward_event: IDL.Opt(RewardEvent),
687
+ to_claim_transfers: IDL.Vec(NeuronStakeTransfer),
688
+ short_voting_period_seconds: IDL.Nat64,
689
+ proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
690
+ xdr_conversion_rate: IDL.Opt(XdrConversionRate),
691
+ in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
692
+ neurons: IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
693
+ genesis_timestamp_seconds: IDL.Nat64
694
+ });
695
+ export const Result = IDL.Variant({Ok: IDL.Null, Err: GovernanceError});
696
+ export const Result_1 = IDL.Variant({
697
+ Error: GovernanceError,
698
+ NeuronId: NeuronId
699
+ });
700
+ export const ClaimOrRefreshNeuronFromAccountResponse = IDL.Record({
701
+ result: IDL.Opt(Result_1)
702
+ });
703
+ export const Result_2 = IDL.Variant({Ok: Neuron, Err: GovernanceError});
704
+ export const Result_3 = IDL.Variant({
705
+ Ok: GovernanceCachedMetrics,
706
+ Err: GovernanceError
707
+ });
708
+ export const Result_4 = IDL.Variant({
709
+ Ok: MonthlyNodeProviderRewards,
710
+ Err: GovernanceError
711
+ });
712
+ export const GetNeuronIndexRequest = IDL.Record({
713
+ page_size: IDL.Opt(IDL.Nat32),
714
+ exclusive_start_neuron_id: IDL.Opt(NeuronId)
715
+ });
716
+ export const NeuronInfo = IDL.Record({
717
+ id: IDL.Opt(NeuronId),
718
+ dissolve_delay_seconds: IDL.Nat64,
719
+ recent_ballots: IDL.Vec(BallotInfo),
720
+ voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
721
+ potential_voting_power: IDL.Opt(IDL.Nat64),
722
+ neuron_type: IDL.Opt(IDL.Int32),
723
+ deciding_voting_power: IDL.Opt(IDL.Nat64),
724
+ created_timestamp_seconds: IDL.Nat64,
725
+ state: IDL.Int32,
726
+ stake_e8s: IDL.Nat64,
727
+ joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
728
+ retrieved_at_timestamp_seconds: IDL.Nat64,
729
+ visibility: IDL.Opt(IDL.Int32),
730
+ known_neuron_data: IDL.Opt(KnownNeuronData),
731
+ voting_power: IDL.Nat64,
732
+ age_seconds: IDL.Nat64
733
+ });
734
+ export const NeuronIndexData = IDL.Record({neurons: IDL.Vec(NeuronInfo)});
735
+ export const GetNeuronIndexResult = IDL.Variant({
736
+ Ok: NeuronIndexData,
737
+ Err: GovernanceError
738
+ });
739
+ export const Result_5 = IDL.Variant({
740
+ Ok: NeuronInfo,
741
+ Err: GovernanceError
742
+ });
743
+ export const GetNeuronsFundAuditInfoRequest = IDL.Record({
744
+ nns_proposal_id: IDL.Opt(ProposalId)
745
+ });
746
+ export const NeuronsFundAuditInfo = IDL.Record({
747
+ final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
748
+ initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
749
+ neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot)
750
+ });
751
+ export const Ok = IDL.Record({
752
+ neurons_fund_audit_info: IDL.Opt(NeuronsFundAuditInfo)
753
+ });
754
+ export const Result_6 = IDL.Variant({Ok: Ok, Err: GovernanceError});
755
+ export const GetNeuronsFundAuditInfoResponse = IDL.Record({
756
+ result: IDL.Opt(Result_6)
757
+ });
758
+ export const Result_7 = IDL.Variant({
759
+ Ok: NodeProvider,
760
+ Err: GovernanceError
761
+ });
762
+ export const ProposalInfo = IDL.Record({
763
+ id: IDL.Opt(ProposalId),
764
+ status: IDL.Int32,
765
+ topic: IDL.Int32,
766
+ failure_reason: IDL.Opt(GovernanceError),
767
+ ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
768
+ proposal_timestamp_seconds: IDL.Nat64,
769
+ reward_event_round: IDL.Nat64,
770
+ deadline_timestamp_seconds: IDL.Opt(IDL.Nat64),
771
+ failed_timestamp_seconds: IDL.Nat64,
772
+ reject_cost_e8s: IDL.Nat64,
773
+ derived_proposal_information: IDL.Opt(DerivedProposalInformation),
774
+ latest_tally: IDL.Opt(Tally),
775
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
776
+ reward_status: IDL.Int32,
777
+ decided_timestamp_seconds: IDL.Nat64,
778
+ proposal: IDL.Opt(Proposal),
779
+ proposer: IDL.Opt(NeuronId),
780
+ executed_timestamp_seconds: IDL.Nat64
781
+ });
782
+ export const ListKnownNeuronsResponse = IDL.Record({
783
+ known_neurons: IDL.Vec(KnownNeuron)
784
+ });
785
+ export const ListNeuronVotesRequest = IDL.Record({
786
+ before_proposal: IDL.Opt(ProposalId),
787
+ limit: IDL.Opt(IDL.Nat64),
788
+ neuron_id: IDL.Opt(NeuronId)
789
+ });
790
+ export const Vote = IDL.Variant({
791
+ No: IDL.Null,
792
+ Yes: IDL.Null,
793
+ Unspecified: IDL.Null
794
+ });
795
+ export const NeuronVote = IDL.Record({
796
+ vote: IDL.Opt(Vote),
797
+ proposal_id: IDL.Opt(ProposalId)
798
+ });
799
+ export const ListNeuronVotesResponse = IDL.Variant({
800
+ Ok: IDL.Record({
801
+ votes: IDL.Opt(IDL.Vec(NeuronVote)),
802
+ all_finalized_before_proposal: IDL.Opt(ProposalId)
803
+ }),
804
+ Err: GovernanceError
805
+ });
806
+ export const NeuronSubaccount = IDL.Record({
807
+ subaccount: IDL.Vec(IDL.Nat8)
808
+ });
809
+ export const ListNeurons = IDL.Record({
810
+ page_size: IDL.Opt(IDL.Nat64),
811
+ include_public_neurons_in_full_neurons: IDL.Opt(IDL.Bool),
812
+ neuron_ids: IDL.Vec(IDL.Nat64),
813
+ page_number: IDL.Opt(IDL.Nat64),
814
+ include_empty_neurons_readable_by_caller: IDL.Opt(IDL.Bool),
815
+ neuron_subaccounts: IDL.Opt(IDL.Vec(NeuronSubaccount)),
816
+ include_neurons_readable_by_caller: IDL.Bool
817
+ });
818
+ export const ListNeuronsResponse = IDL.Record({
819
+ neuron_infos: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
820
+ full_neurons: IDL.Vec(Neuron),
821
+ total_pages_available: IDL.Opt(IDL.Nat64)
822
+ });
823
+ export const DateRangeFilter = IDL.Record({
824
+ start_timestamp_seconds: IDL.Opt(IDL.Nat64),
825
+ end_timestamp_seconds: IDL.Opt(IDL.Nat64)
826
+ });
827
+ export const ListNodeProviderRewardsRequest = IDL.Record({
828
+ date_filter: IDL.Opt(DateRangeFilter)
829
+ });
830
+ export const ListNodeProviderRewardsResponse = IDL.Record({
831
+ rewards: IDL.Vec(MonthlyNodeProviderRewards)
832
+ });
833
+ export const ListNodeProvidersResponse = IDL.Record({
834
+ node_providers: IDL.Vec(NodeProvider)
835
+ });
836
+ export const ListProposalInfoRequest = IDL.Record({
837
+ include_reward_status: IDL.Vec(IDL.Int32),
838
+ omit_large_fields: IDL.Opt(IDL.Bool),
839
+ before_proposal: IDL.Opt(ProposalId),
840
+ limit: IDL.Nat32,
841
+ exclude_topic: IDL.Vec(IDL.Int32),
842
+ include_all_manage_neuron_proposals: IDL.Opt(IDL.Bool),
843
+ include_status: IDL.Vec(IDL.Int32)
844
+ });
845
+ export const ListProposalInfoResponse = IDL.Record({
846
+ proposal_info: IDL.Vec(ProposalInfo)
847
+ });
848
+ export const InstallCodeRequest = IDL.Record({
849
+ arg: IDL.Opt(IDL.Vec(IDL.Nat8)),
850
+ wasm_module: IDL.Opt(IDL.Vec(IDL.Nat8)),
851
+ skip_stopping_before_installing: IDL.Opt(IDL.Bool),
852
+ canister_id: IDL.Opt(IDL.Principal),
853
+ install_mode: IDL.Opt(IDL.Int32)
854
+ });
855
+ export const ProposalActionRequest = IDL.Variant({
856
+ RegisterKnownNeuron: KnownNeuron,
857
+ FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
858
+ ManageNeuron: ManageNeuronRequest,
859
+ UpdateCanisterSettings: UpdateCanisterSettings,
860
+ InstallCode: InstallCodeRequest,
861
+ DeregisterKnownNeuron: DeregisterKnownNeuron,
862
+ StopOrStartCanister: StopOrStartCanister,
863
+ CreateServiceNervousSystem: CreateServiceNervousSystem,
864
+ ExecuteNnsFunction: ExecuteNnsFunction,
865
+ RewardNodeProvider: RewardNodeProvider,
866
+ RewardNodeProviders: RewardNodeProviders,
867
+ ManageNetworkEconomics: NetworkEconomics,
868
+ ApproveGenesisKyc: Principals,
869
+ AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
870
+ Motion: Motion
871
+ });
872
+ export const MakeProposalRequest = IDL.Record({
873
+ url: IDL.Text,
874
+ title: IDL.Opt(IDL.Text),
875
+ action: IDL.Opt(ProposalActionRequest),
876
+ summary: IDL.Text
877
+ });
878
+ export const ManageNeuronCommandRequest = IDL.Variant({
879
+ Spawn: Spawn,
880
+ Split: Split,
881
+ Follow: Follow,
882
+ DisburseMaturity: DisburseMaturity,
883
+ RefreshVotingPower: RefreshVotingPower,
884
+ ClaimOrRefresh: ClaimOrRefresh,
885
+ Configure: Configure,
886
+ RegisterVote: RegisterVote,
887
+ Merge: Merge,
888
+ DisburseToNeuron: DisburseToNeuron,
889
+ SetFollowing: SetFollowing,
890
+ MakeProposal: MakeProposalRequest,
891
+ StakeMaturity: StakeMaturity,
892
+ MergeMaturity: MergeMaturity,
893
+ Disburse: Disburse
894
+ });
895
+ ManageNeuronRequest.fill(
896
+ IDL.Record({
897
+ id: IDL.Opt(NeuronId),
898
+ command: IDL.Opt(ManageNeuronCommandRequest),
899
+ neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
900
+ })
901
+ );
902
+ export const SpawnResponse = IDL.Record({
903
+ created_neuron_id: IDL.Opt(NeuronId)
904
+ });
905
+ export const DisburseMaturityResponse = IDL.Record({
906
+ amount_disbursed_e8s: IDL.Opt(IDL.Nat64)
907
+ });
908
+ export const RefreshVotingPowerResponse = IDL.Record({});
909
+ export const ClaimOrRefreshResponse = IDL.Record({
910
+ refreshed_neuron_id: IDL.Opt(NeuronId)
911
+ });
912
+ export const MergeResponse = IDL.Record({
913
+ target_neuron: IDL.Opt(Neuron),
914
+ source_neuron: IDL.Opt(Neuron),
915
+ target_neuron_info: IDL.Opt(NeuronInfo),
916
+ source_neuron_info: IDL.Opt(NeuronInfo)
917
+ });
918
+ export const SetFollowingResponse = IDL.Record({});
919
+ export const MakeProposalResponse = IDL.Record({
920
+ message: IDL.Opt(IDL.Text),
921
+ proposal_id: IDL.Opt(ProposalId)
922
+ });
923
+ export const StakeMaturityResponse = IDL.Record({
924
+ maturity_e8s: IDL.Nat64,
925
+ staked_maturity_e8s: IDL.Nat64
926
+ });
927
+ export const MergeMaturityResponse = IDL.Record({
928
+ merged_maturity_e8s: IDL.Nat64,
929
+ new_stake_e8s: IDL.Nat64
930
+ });
931
+ export const DisburseResponse = IDL.Record({
932
+ transfer_block_height: IDL.Nat64
933
+ });
934
+ export const Command_1 = IDL.Variant({
935
+ Error: GovernanceError,
936
+ Spawn: SpawnResponse,
937
+ Split: SpawnResponse,
938
+ Follow: IDL.Record({}),
939
+ DisburseMaturity: DisburseMaturityResponse,
940
+ RefreshVotingPower: RefreshVotingPowerResponse,
941
+ ClaimOrRefresh: ClaimOrRefreshResponse,
942
+ Configure: IDL.Record({}),
943
+ RegisterVote: IDL.Record({}),
944
+ Merge: MergeResponse,
945
+ DisburseToNeuron: SpawnResponse,
946
+ SetFollowing: SetFollowingResponse,
947
+ MakeProposal: MakeProposalResponse,
948
+ StakeMaturity: StakeMaturityResponse,
949
+ MergeMaturity: MergeMaturityResponse,
950
+ Disburse: DisburseResponse
951
+ });
952
+ export const ManageNeuronResponse = IDL.Record({
953
+ command: IDL.Opt(Command_1)
954
+ });
955
+ export const Committed = IDL.Record({
956
+ total_direct_contribution_icp_e8s: IDL.Opt(IDL.Nat64),
957
+ total_neurons_fund_contribution_icp_e8s: IDL.Opt(IDL.Nat64),
958
+ sns_governance_canister_id: IDL.Opt(IDL.Principal)
959
+ });
960
+ export const Result_8 = IDL.Variant({
961
+ Committed: Committed,
962
+ Aborted: IDL.Record({})
963
+ });
964
+ export const SettleCommunityFundParticipation = IDL.Record({
965
+ result: IDL.Opt(Result_8),
966
+ open_sns_token_swap_proposal_id: IDL.Opt(IDL.Nat64)
967
+ });
968
+ export const Committed_1 = IDL.Record({
969
+ total_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
970
+ total_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
971
+ sns_governance_canister_id: IDL.Opt(IDL.Principal)
972
+ });
973
+ export const Result_9 = IDL.Variant({
974
+ Committed: Committed_1,
975
+ Aborted: IDL.Record({})
976
+ });
977
+ export const SettleNeuronsFundParticipationRequest = IDL.Record({
978
+ result: IDL.Opt(Result_9),
979
+ nns_proposal_id: IDL.Opt(IDL.Nat64)
980
+ });
981
+ export const NeuronsFundNeuron = IDL.Record({
982
+ controller: IDL.Opt(IDL.Principal),
983
+ hotkeys: IDL.Opt(Principals),
984
+ is_capped: IDL.Opt(IDL.Bool),
985
+ nns_neuron_id: IDL.Opt(IDL.Nat64),
986
+ amount_icp_e8s: IDL.Opt(IDL.Nat64)
987
+ });
988
+ export const Ok_1 = IDL.Record({
989
+ neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuron)
990
+ });
991
+ export const Result_10 = IDL.Variant({Ok: Ok_1, Err: GovernanceError});
992
+ export const SettleNeuronsFundParticipationResponse = IDL.Record({
993
+ result: IDL.Opt(Result_10)
994
+ });
995
+ export const UpdateNodeProvider = IDL.Record({
996
+ reward_account: IDL.Opt(AccountIdentifier)
997
+ });
998
+
999
+ export const idlService = IDL.Service({
1000
+ claim_gtc_neurons: IDL.Func([IDL.Principal, IDL.Vec(NeuronId)], [Result], []),
1001
+ claim_or_refresh_neuron_from_account: IDL.Func(
1002
+ [ClaimOrRefreshNeuronFromAccount],
1003
+ [ClaimOrRefreshNeuronFromAccountResponse],
1004
+ []
1005
+ ),
1006
+ get_build_metadata: IDL.Func([], [IDL.Text], ['query']),
1007
+ get_full_neuron: IDL.Func([IDL.Nat64], [Result_2], ['query']),
1008
+ get_full_neuron_by_id_or_subaccount: IDL.Func([NeuronIdOrSubaccount], [Result_2], ['query']),
1009
+ get_latest_reward_event: IDL.Func([], [RewardEvent], ['query']),
1010
+ get_metrics: IDL.Func([], [Result_3], ['query']),
1011
+ get_monthly_node_provider_rewards: IDL.Func([], [Result_4], []),
1012
+ get_most_recent_monthly_node_provider_rewards: IDL.Func(
1013
+ [],
1014
+ [IDL.Opt(MonthlyNodeProviderRewards)],
1015
+ ['query']
1016
+ ),
1017
+ get_network_economics_parameters: IDL.Func([], [NetworkEconomics], ['query']),
1018
+ get_neuron_ids: IDL.Func([], [IDL.Vec(IDL.Nat64)], ['query']),
1019
+ get_neuron_index: IDL.Func([GetNeuronIndexRequest], [GetNeuronIndexResult], ['query']),
1020
+ get_neuron_info: IDL.Func([IDL.Nat64], [Result_5], ['query']),
1021
+ get_neuron_info_by_id_or_subaccount: IDL.Func([NeuronIdOrSubaccount], [Result_5], ['query']),
1022
+ get_neurons_fund_audit_info: IDL.Func(
1023
+ [GetNeuronsFundAuditInfoRequest],
1024
+ [GetNeuronsFundAuditInfoResponse],
1025
+ ['query']
1026
+ ),
1027
+ get_node_provider_by_caller: IDL.Func([IDL.Null], [Result_7], ['query']),
1028
+ get_pending_proposals: IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
1029
+ get_proposal_info: IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], ['query']),
1030
+ get_restore_aging_summary: IDL.Func([], [RestoreAgingSummary], ['query']),
1031
+ list_known_neurons: IDL.Func([], [ListKnownNeuronsResponse], ['query']),
1032
+ list_neuron_votes: IDL.Func([ListNeuronVotesRequest], [ListNeuronVotesResponse], ['query']),
1033
+ list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
1034
+ list_node_provider_rewards: IDL.Func(
1035
+ [ListNodeProviderRewardsRequest],
1036
+ [ListNodeProviderRewardsResponse],
1037
+ ['query']
1038
+ ),
1039
+ list_node_providers: IDL.Func([], [ListNodeProvidersResponse], ['query']),
1040
+ list_proposals: IDL.Func([ListProposalInfoRequest], [ListProposalInfoResponse], ['query']),
1041
+ manage_neuron: IDL.Func([ManageNeuronRequest], [ManageNeuronResponse], []),
1042
+ settle_community_fund_participation: IDL.Func([SettleCommunityFundParticipation], [Result], []),
1043
+ settle_neurons_fund_participation: IDL.Func(
1044
+ [SettleNeuronsFundParticipationRequest],
1045
+ [SettleNeuronsFundParticipationResponse],
1046
+ []
1047
+ ),
1048
+ simulate_manage_neuron: IDL.Func([ManageNeuronRequest], [ManageNeuronResponse], []),
1049
+ transfer_gtc_neuron: IDL.Func([NeuronId, NeuronId], [Result], []),
1050
+ update_node_provider: IDL.Func([UpdateNodeProvider], [Result], [])
1051
+ });
1052
+
1053
+ export const idlInitArgs = [Governance];
1054
+
1055
+ export const idlFactory = ({IDL}) => {
1056
+ const ManageNeuronRequest = IDL.Rec();
1057
+ const Proposal = IDL.Rec();
1058
+ const NeuronId = IDL.Record({id: IDL.Nat64});
1059
+ const Followees = IDL.Record({followees: IDL.Vec(NeuronId)});
1060
+ const DateUtc = IDL.Record({
1061
+ day: IDL.Nat32,
1062
+ month: IDL.Nat32,
1063
+ year: IDL.Nat32
1064
+ });
1065
+ const AccountIdentifier = IDL.Record({hash: IDL.Vec(IDL.Nat8)});
1066
+ const NodeProvider = IDL.Record({
1067
+ id: IDL.Opt(IDL.Principal),
1068
+ reward_account: IDL.Opt(AccountIdentifier)
1069
+ });
1070
+ const RewardToNeuron = IDL.Record({dissolve_delay_seconds: IDL.Nat64});
1071
+ const RewardToAccount = IDL.Record({
1072
+ to_account: IDL.Opt(AccountIdentifier)
1073
+ });
1074
+ const RewardMode = IDL.Variant({
1075
+ RewardToNeuron: RewardToNeuron,
1076
+ RewardToAccount: RewardToAccount
1077
+ });
1078
+ const RewardNodeProvider = IDL.Record({
1079
+ node_provider: IDL.Opt(NodeProvider),
1080
+ reward_mode: IDL.Opt(RewardMode),
1081
+ amount_e8s: IDL.Nat64
1082
+ });
1083
+ const XdrConversionRate = IDL.Record({
1084
+ xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
1085
+ timestamp_seconds: IDL.Opt(IDL.Nat64)
1086
+ });
1087
+ const MonthlyNodeProviderRewards = IDL.Record({
1088
+ minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
1089
+ end_date: IDL.Opt(DateUtc),
1090
+ registry_version: IDL.Opt(IDL.Nat64),
1091
+ node_providers: IDL.Vec(NodeProvider),
1092
+ start_date: IDL.Opt(DateUtc),
1093
+ timestamp: IDL.Nat64,
1094
+ rewards: IDL.Vec(RewardNodeProvider),
1095
+ xdr_conversion_rate: IDL.Opt(XdrConversionRate),
1096
+ maximum_node_provider_rewards_e8s: IDL.Opt(IDL.Nat64)
1097
+ });
1098
+ const NeuronSubsetMetrics = IDL.Record({
1099
+ total_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1100
+ maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1101
+ voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1102
+ total_staked_e8s: IDL.Opt(IDL.Nat64),
1103
+ count: IDL.Opt(IDL.Nat64),
1104
+ deciding_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1105
+ total_staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1106
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
1107
+ total_deciding_voting_power: IDL.Opt(IDL.Nat64),
1108
+ staked_maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1109
+ staked_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1110
+ total_voting_power: IDL.Opt(IDL.Nat64),
1111
+ potential_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1112
+ count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64))
1113
+ });
1114
+ const GovernanceCachedMetrics = IDL.Record({
1115
+ total_maturity_e8s_equivalent: IDL.Nat64,
1116
+ not_dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
1117
+ dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
1118
+ garbage_collectable_neurons_count: IDL.Nat64,
1119
+ dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1120
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1121
+ ),
1122
+ neurons_with_invalid_stake_count: IDL.Nat64,
1123
+ not_dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1124
+ ect_neuron_count: IDL.Nat64,
1125
+ total_supply_icp: IDL.Nat64,
1126
+ neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
1127
+ dissolved_neurons_count: IDL.Nat64,
1128
+ community_fund_total_maturity_e8s_equivalent: IDL.Nat64,
1129
+ total_staked_e8s_seed: IDL.Nat64,
1130
+ total_staked_maturity_e8s_equivalent_ect: IDL.Nat64,
1131
+ total_staked_e8s: IDL.Nat64,
1132
+ fully_lost_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1133
+ not_dissolving_neurons_count: IDL.Nat64,
1134
+ total_locked_e8s: IDL.Nat64,
1135
+ neurons_fund_total_active_neurons: IDL.Nat64,
1136
+ total_voting_power_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
1137
+ total_staked_maturity_e8s_equivalent: IDL.Nat64,
1138
+ not_dissolving_neurons_e8s_buckets_ect: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
1139
+ spawning_neurons_count: IDL.Nat64,
1140
+ declining_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1141
+ total_staked_e8s_ect: IDL.Nat64,
1142
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
1143
+ dissolved_neurons_e8s: IDL.Nat64,
1144
+ total_staked_e8s_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
1145
+ dissolving_neurons_e8s_buckets_seed: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
1146
+ neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
1147
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1148
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1149
+ ),
1150
+ dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1151
+ dissolving_neurons_e8s_buckets_ect: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
1152
+ non_self_authenticating_controller_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1153
+ dissolving_neurons_count: IDL.Nat64,
1154
+ dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
1155
+ total_staked_maturity_e8s_equivalent_seed: IDL.Nat64,
1156
+ community_fund_total_staked_e8s: IDL.Nat64,
1157
+ not_dissolving_neurons_e8s_buckets_seed: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
1158
+ public_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1159
+ timestamp_seconds: IDL.Nat64,
1160
+ seed_neuron_count: IDL.Nat64
1161
+ });
1162
+ const VotingPowerEconomics = IDL.Record({
1163
+ start_reducing_voting_power_after_seconds: IDL.Opt(IDL.Nat64),
1164
+ neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
1165
+ clear_following_after_seconds: IDL.Opt(IDL.Nat64)
1166
+ });
1167
+ const Percentage = IDL.Record({basis_points: IDL.Opt(IDL.Nat64)});
1168
+ const Decimal = IDL.Record({human_readable: IDL.Opt(IDL.Text)});
1169
+ const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
1170
+ contribution_threshold_xdr: IDL.Opt(Decimal),
1171
+ one_third_participation_milestone_xdr: IDL.Opt(Decimal),
1172
+ full_participation_milestone_xdr: IDL.Opt(Decimal)
1173
+ });
1174
+ const NeuronsFundEconomics = IDL.Record({
1175
+ maximum_icp_xdr_rate: IDL.Opt(Percentage),
1176
+ neurons_fund_matched_funding_curve_coefficients: IDL.Opt(
1177
+ NeuronsFundMatchedFundingCurveCoefficients
1178
+ ),
1179
+ max_theoretical_neurons_fund_participation_amount_xdr: IDL.Opt(Decimal),
1180
+ minimum_icp_xdr_rate: IDL.Opt(Percentage)
1181
+ });
1182
+ const NetworkEconomics = IDL.Record({
1183
+ neuron_minimum_stake_e8s: IDL.Nat64,
1184
+ voting_power_economics: IDL.Opt(VotingPowerEconomics),
1185
+ max_proposals_to_keep_per_topic: IDL.Nat32,
1186
+ neuron_management_fee_per_proposal_e8s: IDL.Nat64,
1187
+ reject_cost_e8s: IDL.Nat64,
1188
+ transaction_fee_e8s: IDL.Nat64,
1189
+ neuron_spawn_dissolve_delay_seconds: IDL.Nat64,
1190
+ minimum_icp_xdr_rate: IDL.Nat64,
1191
+ maximum_node_provider_rewards_e8s: IDL.Nat64,
1192
+ neurons_fund_economics: IDL.Opt(NeuronsFundEconomics)
1193
+ });
1194
+ const RestoreAgingNeuronGroup = IDL.Record({
1195
+ count: IDL.Opt(IDL.Nat64),
1196
+ previous_total_stake_e8s: IDL.Opt(IDL.Nat64),
1197
+ current_total_stake_e8s: IDL.Opt(IDL.Nat64),
1198
+ group_type: IDL.Int32
1199
+ });
1200
+ const RestoreAgingSummary = IDL.Record({
1201
+ groups: IDL.Vec(RestoreAgingNeuronGroup),
1202
+ timestamp_seconds: IDL.Opt(IDL.Nat64)
1203
+ });
1204
+ const ProposalId = IDL.Record({id: IDL.Nat64});
1205
+ const RewardEvent = IDL.Record({
1206
+ rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
1207
+ day_after_genesis: IDL.Nat64,
1208
+ actual_timestamp_seconds: IDL.Nat64,
1209
+ total_available_e8s_equivalent: IDL.Nat64,
1210
+ latest_round_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
1211
+ distributed_e8s_equivalent: IDL.Nat64,
1212
+ settled_proposals: IDL.Vec(ProposalId)
1213
+ });
1214
+ const NeuronStakeTransfer = IDL.Record({
1215
+ to_subaccount: IDL.Vec(IDL.Nat8),
1216
+ neuron_stake_e8s: IDL.Nat64,
1217
+ from: IDL.Opt(IDL.Principal),
1218
+ memo: IDL.Nat64,
1219
+ from_subaccount: IDL.Vec(IDL.Nat8),
1220
+ transfer_timestamp: IDL.Nat64,
1221
+ block_height: IDL.Nat64
1222
+ });
1223
+ const GovernanceError = IDL.Record({
1224
+ error_message: IDL.Text,
1225
+ error_type: IDL.Int32
1226
+ });
1227
+ const Ballot = IDL.Record({vote: IDL.Int32, voting_power: IDL.Nat64});
1228
+ const SwapParticipationLimits = IDL.Record({
1229
+ min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
1230
+ max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
1231
+ min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1232
+ max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64)
1233
+ });
1234
+ const NeuronsFundNeuronPortion = IDL.Record({
1235
+ controller: IDL.Opt(IDL.Principal),
1236
+ hotkeys: IDL.Vec(IDL.Principal),
1237
+ is_capped: IDL.Opt(IDL.Bool),
1238
+ maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
1239
+ nns_neuron_id: IDL.Opt(NeuronId),
1240
+ amount_icp_e8s: IDL.Opt(IDL.Nat64)
1241
+ });
1242
+ const NeuronsFundSnapshot = IDL.Record({
1243
+ neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuronPortion)
1244
+ });
1245
+ const IdealMatchedParticipationFunction = IDL.Record({
1246
+ serialized_representation: IDL.Opt(IDL.Text)
1247
+ });
1248
+ const NeuronsFundParticipation = IDL.Record({
1249
+ total_maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
1250
+ intended_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1251
+ direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1252
+ swap_participation_limits: IDL.Opt(SwapParticipationLimits),
1253
+ max_neurons_fund_swap_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1254
+ neurons_fund_reserves: IDL.Opt(NeuronsFundSnapshot),
1255
+ ideal_matched_participation_function: IDL.Opt(IdealMatchedParticipationFunction),
1256
+ allocated_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64)
1257
+ });
1258
+ const NeuronsFundData = IDL.Record({
1259
+ final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
1260
+ initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
1261
+ neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot)
1262
+ });
1263
+ const CanisterStatusResultV2 = IDL.Record({
1264
+ status: IDL.Opt(IDL.Int32),
1265
+ freezing_threshold: IDL.Opt(IDL.Nat64),
1266
+ controllers: IDL.Vec(IDL.Principal),
1267
+ memory_size: IDL.Opt(IDL.Nat64),
1268
+ cycles: IDL.Opt(IDL.Nat64),
1269
+ idle_cycles_burned_per_day: IDL.Opt(IDL.Nat64),
1270
+ module_hash: IDL.Vec(IDL.Nat8)
1271
+ });
1272
+ const CanisterSummary = IDL.Record({
1273
+ status: IDL.Opt(CanisterStatusResultV2),
1274
+ canister_id: IDL.Opt(IDL.Principal)
1275
+ });
1276
+ const SwapBackgroundInformation = IDL.Record({
1277
+ ledger_index_canister_summary: IDL.Opt(CanisterSummary),
1278
+ fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
1279
+ ledger_archive_canister_summaries: IDL.Vec(CanisterSummary),
1280
+ ledger_canister_summary: IDL.Opt(CanisterSummary),
1281
+ swap_canister_summary: IDL.Opt(CanisterSummary),
1282
+ governance_canister_summary: IDL.Opt(CanisterSummary),
1283
+ root_canister_summary: IDL.Opt(CanisterSummary),
1284
+ dapp_canister_summaries: IDL.Vec(CanisterSummary)
1285
+ });
1286
+ const DerivedProposalInformation = IDL.Record({
1287
+ swap_background_information: IDL.Opt(SwapBackgroundInformation)
1288
+ });
1289
+ const Tally = IDL.Record({
1290
+ no: IDL.Nat64,
1291
+ yes: IDL.Nat64,
1292
+ total: IDL.Nat64,
1293
+ timestamp_seconds: IDL.Nat64
1294
+ });
1295
+ const TopicToFollow = IDL.Variant({
1296
+ Kyc: IDL.Null,
1297
+ ServiceNervousSystemManagement: IDL.Null,
1298
+ ApiBoundaryNodeManagement: IDL.Null,
1299
+ ApplicationCanisterManagement: IDL.Null,
1300
+ SubnetRental: IDL.Null,
1301
+ NeuronManagement: IDL.Null,
1302
+ NodeProviderRewards: IDL.Null,
1303
+ SubnetManagement: IDL.Null,
1304
+ ExchangeRate: IDL.Null,
1305
+ CatchAll: IDL.Null,
1306
+ NodeAdmin: IDL.Null,
1307
+ IcOsVersionElection: IDL.Null,
1308
+ ProtocolCanisterManagement: IDL.Null,
1309
+ NetworkEconomics: IDL.Null,
1310
+ IcOsVersionDeployment: IDL.Null,
1311
+ ParticipantManagement: IDL.Null,
1312
+ Governance: IDL.Null,
1313
+ SnsAndCommunityFund: IDL.Null
1314
+ });
1315
+ const KnownNeuronData = IDL.Record({
1316
+ name: IDL.Text,
1317
+ committed_topics: IDL.Opt(IDL.Vec(IDL.Opt(TopicToFollow))),
1318
+ description: IDL.Opt(IDL.Text),
1319
+ links: IDL.Opt(IDL.Vec(IDL.Text))
1320
+ });
1321
+ const KnownNeuron = IDL.Record({
1322
+ id: IDL.Opt(NeuronId),
1323
+ known_neuron_data: IDL.Opt(KnownNeuronData)
1324
+ });
1325
+ const FulfillSubnetRentalRequest = IDL.Record({
1326
+ user: IDL.Opt(IDL.Principal),
1327
+ replica_version_id: IDL.Opt(IDL.Text),
1328
+ node_ids: IDL.Opt(IDL.Vec(IDL.Principal))
1329
+ });
1330
+ const Spawn = IDL.Record({
1331
+ percentage_to_spawn: IDL.Opt(IDL.Nat32),
1332
+ new_controller: IDL.Opt(IDL.Principal),
1333
+ nonce: IDL.Opt(IDL.Nat64)
1334
+ });
1335
+ const Split = IDL.Record({
1336
+ memo: IDL.Opt(IDL.Nat64),
1337
+ amount_e8s: IDL.Nat64
1338
+ });
1339
+ const Follow = IDL.Record({
1340
+ topic: IDL.Int32,
1341
+ followees: IDL.Vec(NeuronId)
1342
+ });
1343
+ const Account = IDL.Record({
1344
+ owner: IDL.Opt(IDL.Principal),
1345
+ subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
1346
+ });
1347
+ const DisburseMaturity = IDL.Record({
1348
+ to_account_identifier: IDL.Opt(AccountIdentifier),
1349
+ to_account: IDL.Opt(Account),
1350
+ percentage_to_disburse: IDL.Nat32
1351
+ });
1352
+ const RefreshVotingPower = IDL.Record({});
1353
+ const ClaimOrRefreshNeuronFromAccount = IDL.Record({
1354
+ controller: IDL.Opt(IDL.Principal),
1355
+ memo: IDL.Nat64
1356
+ });
1357
+ const By = IDL.Variant({
1358
+ NeuronIdOrSubaccount: IDL.Record({}),
1359
+ MemoAndController: ClaimOrRefreshNeuronFromAccount,
1360
+ Memo: IDL.Nat64
1361
+ });
1362
+ const ClaimOrRefresh = IDL.Record({by: IDL.Opt(By)});
1363
+ const RemoveHotKey = IDL.Record({
1364
+ hot_key_to_remove: IDL.Opt(IDL.Principal)
1365
+ });
1366
+ const AddHotKey = IDL.Record({new_hot_key: IDL.Opt(IDL.Principal)});
1367
+ const ChangeAutoStakeMaturity = IDL.Record({
1368
+ requested_setting_for_auto_stake_maturity: IDL.Bool
1369
+ });
1370
+ const IncreaseDissolveDelay = IDL.Record({
1371
+ additional_dissolve_delay_seconds: IDL.Nat32
1372
+ });
1373
+ const SetVisibility = IDL.Record({visibility: IDL.Opt(IDL.Int32)});
1374
+ const SetDissolveTimestamp = IDL.Record({
1375
+ dissolve_timestamp_seconds: IDL.Nat64
1376
+ });
1377
+ const Operation = IDL.Variant({
1378
+ RemoveHotKey: RemoveHotKey,
1379
+ AddHotKey: AddHotKey,
1380
+ ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
1381
+ StopDissolving: IDL.Record({}),
1382
+ StartDissolving: IDL.Record({}),
1383
+ IncreaseDissolveDelay: IncreaseDissolveDelay,
1384
+ SetVisibility: SetVisibility,
1385
+ JoinCommunityFund: IDL.Record({}),
1386
+ LeaveCommunityFund: IDL.Record({}),
1387
+ SetDissolveTimestamp: SetDissolveTimestamp
1388
+ });
1389
+ const Configure = IDL.Record({operation: IDL.Opt(Operation)});
1390
+ const RegisterVote = IDL.Record({
1391
+ vote: IDL.Int32,
1392
+ proposal: IDL.Opt(ProposalId)
1393
+ });
1394
+ const Merge = IDL.Record({source_neuron_id: IDL.Opt(NeuronId)});
1395
+ const DisburseToNeuron = IDL.Record({
1396
+ dissolve_delay_seconds: IDL.Nat64,
1397
+ kyc_verified: IDL.Bool,
1398
+ amount_e8s: IDL.Nat64,
1399
+ new_controller: IDL.Opt(IDL.Principal),
1400
+ nonce: IDL.Nat64
1401
+ });
1402
+ const FolloweesForTopic = IDL.Record({
1403
+ topic: IDL.Opt(IDL.Int32),
1404
+ followees: IDL.Opt(IDL.Vec(NeuronId))
1405
+ });
1406
+ const SetFollowing = IDL.Record({
1407
+ topic_following: IDL.Opt(IDL.Vec(FolloweesForTopic))
1408
+ });
1409
+ const StakeMaturity = IDL.Record({
1410
+ percentage_to_stake: IDL.Opt(IDL.Nat32)
1411
+ });
1412
+ const MergeMaturity = IDL.Record({percentage_to_merge: IDL.Nat32});
1413
+ const Amount = IDL.Record({e8s: IDL.Nat64});
1414
+ const Disburse = IDL.Record({
1415
+ to_account: IDL.Opt(AccountIdentifier),
1416
+ amount: IDL.Opt(Amount)
1417
+ });
1418
+ const Command = IDL.Variant({
1419
+ Spawn: Spawn,
1420
+ Split: Split,
1421
+ Follow: Follow,
1422
+ DisburseMaturity: DisburseMaturity,
1423
+ RefreshVotingPower: RefreshVotingPower,
1424
+ ClaimOrRefresh: ClaimOrRefresh,
1425
+ Configure: Configure,
1426
+ RegisterVote: RegisterVote,
1427
+ Merge: Merge,
1428
+ DisburseToNeuron: DisburseToNeuron,
1429
+ SetFollowing: SetFollowing,
1430
+ MakeProposal: Proposal,
1431
+ StakeMaturity: StakeMaturity,
1432
+ MergeMaturity: MergeMaturity,
1433
+ Disburse: Disburse
1434
+ });
1435
+ const NeuronIdOrSubaccount = IDL.Variant({
1436
+ Subaccount: IDL.Vec(IDL.Nat8),
1437
+ NeuronId: NeuronId
1438
+ });
1439
+ const ManageNeuron = IDL.Record({
1440
+ id: IDL.Opt(NeuronId),
1441
+ command: IDL.Opt(Command),
1442
+ neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
1443
+ });
1444
+ const Controllers = IDL.Record({controllers: IDL.Vec(IDL.Principal)});
1445
+ const CanisterSettings = IDL.Record({
1446
+ freezing_threshold: IDL.Opt(IDL.Nat64),
1447
+ wasm_memory_threshold: IDL.Opt(IDL.Nat64),
1448
+ controllers: IDL.Opt(Controllers),
1449
+ log_visibility: IDL.Opt(IDL.Int32),
1450
+ wasm_memory_limit: IDL.Opt(IDL.Nat64),
1451
+ memory_allocation: IDL.Opt(IDL.Nat64),
1452
+ compute_allocation: IDL.Opt(IDL.Nat64)
1453
+ });
1454
+ const UpdateCanisterSettings = IDL.Record({
1455
+ canister_id: IDL.Opt(IDL.Principal),
1456
+ settings: IDL.Opt(CanisterSettings)
1457
+ });
1458
+ const InstallCode = IDL.Record({
1459
+ skip_stopping_before_installing: IDL.Opt(IDL.Bool),
1460
+ wasm_module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1461
+ canister_id: IDL.Opt(IDL.Principal),
1462
+ arg_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1463
+ install_mode: IDL.Opt(IDL.Int32)
1464
+ });
1465
+ const DeregisterKnownNeuron = IDL.Record({id: IDL.Opt(NeuronId)});
1466
+ const StopOrStartCanister = IDL.Record({
1467
+ action: IDL.Opt(IDL.Int32),
1468
+ canister_id: IDL.Opt(IDL.Principal)
1469
+ });
1470
+ const Duration = IDL.Record({seconds: IDL.Opt(IDL.Nat64)});
1471
+ const Tokens = IDL.Record({e8s: IDL.Opt(IDL.Nat64)});
1472
+ const VotingRewardParameters = IDL.Record({
1473
+ reward_rate_transition_duration: IDL.Opt(Duration),
1474
+ initial_reward_rate: IDL.Opt(Percentage),
1475
+ final_reward_rate: IDL.Opt(Percentage)
1476
+ });
1477
+ const GovernanceParameters = IDL.Record({
1478
+ neuron_maximum_dissolve_delay_bonus: IDL.Opt(Percentage),
1479
+ neuron_maximum_age_for_age_bonus: IDL.Opt(Duration),
1480
+ neuron_maximum_dissolve_delay: IDL.Opt(Duration),
1481
+ neuron_minimum_dissolve_delay_to_vote: IDL.Opt(Duration),
1482
+ neuron_maximum_age_bonus: IDL.Opt(Percentage),
1483
+ neuron_minimum_stake: IDL.Opt(Tokens),
1484
+ proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
1485
+ proposal_initial_voting_period: IDL.Opt(Duration),
1486
+ proposal_rejection_fee: IDL.Opt(Tokens),
1487
+ voting_reward_parameters: IDL.Opt(VotingRewardParameters)
1488
+ });
1489
+ const Image = IDL.Record({base64_encoding: IDL.Opt(IDL.Text)});
1490
+ const LedgerParameters = IDL.Record({
1491
+ transaction_fee: IDL.Opt(Tokens),
1492
+ token_symbol: IDL.Opt(IDL.Text),
1493
+ token_logo: IDL.Opt(Image),
1494
+ token_name: IDL.Opt(IDL.Text)
1495
+ });
1496
+ const Canister = IDL.Record({id: IDL.Opt(IDL.Principal)});
1497
+ const NeuronBasketConstructionParameters = IDL.Record({
1498
+ dissolve_delay_interval: IDL.Opt(Duration),
1499
+ count: IDL.Opt(IDL.Nat64)
1500
+ });
1501
+ const GlobalTimeOfDay = IDL.Record({
1502
+ seconds_after_utc_midnight: IDL.Opt(IDL.Nat64)
1503
+ });
1504
+ const Countries = IDL.Record({iso_codes: IDL.Vec(IDL.Text)});
1505
+ const SwapParameters = IDL.Record({
1506
+ minimum_participants: IDL.Opt(IDL.Nat64),
1507
+ neurons_fund_participation: IDL.Opt(IDL.Bool),
1508
+ duration: IDL.Opt(Duration),
1509
+ neuron_basket_construction_parameters: IDL.Opt(NeuronBasketConstructionParameters),
1510
+ confirmation_text: IDL.Opt(IDL.Text),
1511
+ maximum_participant_icp: IDL.Opt(Tokens),
1512
+ minimum_icp: IDL.Opt(Tokens),
1513
+ minimum_direct_participation_icp: IDL.Opt(Tokens),
1514
+ minimum_participant_icp: IDL.Opt(Tokens),
1515
+ start_time: IDL.Opt(GlobalTimeOfDay),
1516
+ maximum_direct_participation_icp: IDL.Opt(Tokens),
1517
+ maximum_icp: IDL.Opt(Tokens),
1518
+ neurons_fund_investment_icp: IDL.Opt(Tokens),
1519
+ restricted_countries: IDL.Opt(Countries)
1520
+ });
1521
+ const SwapDistribution = IDL.Record({total: IDL.Opt(Tokens)});
1522
+ const NeuronDistribution = IDL.Record({
1523
+ controller: IDL.Opt(IDL.Principal),
1524
+ dissolve_delay: IDL.Opt(Duration),
1525
+ memo: IDL.Opt(IDL.Nat64),
1526
+ vesting_period: IDL.Opt(Duration),
1527
+ stake: IDL.Opt(Tokens)
1528
+ });
1529
+ const DeveloperDistribution = IDL.Record({
1530
+ developer_neurons: IDL.Vec(NeuronDistribution)
1531
+ });
1532
+ const InitialTokenDistribution = IDL.Record({
1533
+ treasury_distribution: IDL.Opt(SwapDistribution),
1534
+ developer_distribution: IDL.Opt(DeveloperDistribution),
1535
+ swap_distribution: IDL.Opt(SwapDistribution)
1536
+ });
1537
+ const CreateServiceNervousSystem = IDL.Record({
1538
+ url: IDL.Opt(IDL.Text),
1539
+ governance_parameters: IDL.Opt(GovernanceParameters),
1540
+ fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
1541
+ logo: IDL.Opt(Image),
1542
+ name: IDL.Opt(IDL.Text),
1543
+ ledger_parameters: IDL.Opt(LedgerParameters),
1544
+ description: IDL.Opt(IDL.Text),
1545
+ dapp_canisters: IDL.Vec(Canister),
1546
+ swap_parameters: IDL.Opt(SwapParameters),
1547
+ initial_token_distribution: IDL.Opt(InitialTokenDistribution)
1548
+ });
1549
+ const ExecuteNnsFunction = IDL.Record({
1550
+ nns_function: IDL.Int32,
1551
+ payload: IDL.Vec(IDL.Nat8)
1552
+ });
1553
+ const NeuronBasketConstructionParameters_1 = IDL.Record({
1554
+ dissolve_delay_interval_seconds: IDL.Nat64,
1555
+ count: IDL.Nat64
1556
+ });
1557
+ const Params = IDL.Record({
1558
+ min_participant_icp_e8s: IDL.Nat64,
1559
+ neuron_basket_construction_parameters: IDL.Opt(NeuronBasketConstructionParameters_1),
1560
+ max_icp_e8s: IDL.Nat64,
1561
+ swap_due_timestamp_seconds: IDL.Nat64,
1562
+ min_participants: IDL.Nat32,
1563
+ sns_token_e8s: IDL.Nat64,
1564
+ sale_delay_seconds: IDL.Opt(IDL.Nat64),
1565
+ max_participant_icp_e8s: IDL.Nat64,
1566
+ min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1567
+ min_icp_e8s: IDL.Nat64,
1568
+ max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64)
1569
+ });
1570
+ const OpenSnsTokenSwap = IDL.Record({
1571
+ community_fund_investment_e8s: IDL.Opt(IDL.Nat64),
1572
+ target_swap_canister_id: IDL.Opt(IDL.Principal),
1573
+ params: IDL.Opt(Params)
1574
+ });
1575
+ const TimeWindow = IDL.Record({
1576
+ start_timestamp_seconds: IDL.Nat64,
1577
+ end_timestamp_seconds: IDL.Nat64
1578
+ });
1579
+ const SetOpenTimeWindowRequest = IDL.Record({
1580
+ open_time_window: IDL.Opt(TimeWindow)
1581
+ });
1582
+ const SetSnsTokenSwapOpenTimeWindow = IDL.Record({
1583
+ request: IDL.Opt(SetOpenTimeWindowRequest),
1584
+ swap_canister_id: IDL.Opt(IDL.Principal)
1585
+ });
1586
+ const SetDefaultFollowees = IDL.Record({
1587
+ default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees))
1588
+ });
1589
+ const RewardNodeProviders = IDL.Record({
1590
+ use_registry_derived_rewards: IDL.Opt(IDL.Bool),
1591
+ rewards: IDL.Vec(RewardNodeProvider)
1592
+ });
1593
+ const Principals = IDL.Record({principals: IDL.Vec(IDL.Principal)});
1594
+ const Change = IDL.Variant({
1595
+ ToRemove: NodeProvider,
1596
+ ToAdd: NodeProvider
1597
+ });
1598
+ const AddOrRemoveNodeProvider = IDL.Record({change: IDL.Opt(Change)});
1599
+ const Motion = IDL.Record({motion_text: IDL.Text});
1600
+ const Action = IDL.Variant({
1601
+ RegisterKnownNeuron: KnownNeuron,
1602
+ FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
1603
+ ManageNeuron: ManageNeuron,
1604
+ UpdateCanisterSettings: UpdateCanisterSettings,
1605
+ InstallCode: InstallCode,
1606
+ DeregisterKnownNeuron: DeregisterKnownNeuron,
1607
+ StopOrStartCanister: StopOrStartCanister,
1608
+ CreateServiceNervousSystem: CreateServiceNervousSystem,
1609
+ ExecuteNnsFunction: ExecuteNnsFunction,
1610
+ RewardNodeProvider: RewardNodeProvider,
1611
+ OpenSnsTokenSwap: OpenSnsTokenSwap,
1612
+ SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow,
1613
+ SetDefaultFollowees: SetDefaultFollowees,
1614
+ RewardNodeProviders: RewardNodeProviders,
1615
+ ManageNetworkEconomics: NetworkEconomics,
1616
+ ApproveGenesisKyc: Principals,
1617
+ AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
1618
+ Motion: Motion
1619
+ });
1620
+ Proposal.fill(
1621
+ IDL.Record({
1622
+ url: IDL.Text,
1623
+ title: IDL.Opt(IDL.Text),
1624
+ action: IDL.Opt(Action),
1625
+ summary: IDL.Text
1626
+ })
1627
+ );
1628
+ const WaitForQuietState = IDL.Record({
1629
+ current_deadline_timestamp_seconds: IDL.Nat64
1630
+ });
1631
+ const ProposalData = IDL.Record({
1632
+ id: IDL.Opt(ProposalId),
1633
+ topic: IDL.Opt(IDL.Int32),
1634
+ failure_reason: IDL.Opt(GovernanceError),
1635
+ ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1636
+ proposal_timestamp_seconds: IDL.Nat64,
1637
+ reward_event_round: IDL.Nat64,
1638
+ failed_timestamp_seconds: IDL.Nat64,
1639
+ neurons_fund_data: IDL.Opt(NeuronsFundData),
1640
+ reject_cost_e8s: IDL.Nat64,
1641
+ derived_proposal_information: IDL.Opt(DerivedProposalInformation),
1642
+ latest_tally: IDL.Opt(Tally),
1643
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
1644
+ sns_token_swap_lifecycle: IDL.Opt(IDL.Int32),
1645
+ decided_timestamp_seconds: IDL.Nat64,
1646
+ proposal: IDL.Opt(Proposal),
1647
+ proposer: IDL.Opt(NeuronId),
1648
+ wait_for_quiet_state: IDL.Opt(WaitForQuietState),
1649
+ executed_timestamp_seconds: IDL.Nat64,
1650
+ original_total_community_fund_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64)
1651
+ });
1652
+ const Command_2 = IDL.Variant({
1653
+ Spawn: NeuronId,
1654
+ Split: Split,
1655
+ Configure: Configure,
1656
+ Merge: Merge,
1657
+ DisburseToNeuron: DisburseToNeuron,
1658
+ SyncCommand: IDL.Record({}),
1659
+ ClaimOrRefreshNeuron: ClaimOrRefresh,
1660
+ MergeMaturity: MergeMaturity,
1661
+ Disburse: Disburse
1662
+ });
1663
+ const NeuronInFlightCommand = IDL.Record({
1664
+ command: IDL.Opt(Command_2),
1665
+ timestamp: IDL.Nat64
1666
+ });
1667
+ const BallotInfo = IDL.Record({
1668
+ vote: IDL.Int32,
1669
+ proposal_id: IDL.Opt(ProposalId)
1670
+ });
1671
+ const MaturityDisbursement = IDL.Record({
1672
+ account_identifier_to_disburse_to: IDL.Opt(AccountIdentifier),
1673
+ timestamp_of_disbursement_seconds: IDL.Opt(IDL.Nat64),
1674
+ amount_e8s: IDL.Opt(IDL.Nat64),
1675
+ account_to_disburse_to: IDL.Opt(Account),
1676
+ finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64)
1677
+ });
1678
+ const DissolveState = IDL.Variant({
1679
+ DissolveDelaySeconds: IDL.Nat64,
1680
+ WhenDissolvedTimestampSeconds: IDL.Nat64
1681
+ });
1682
+ const Neuron = IDL.Record({
1683
+ id: IDL.Opt(NeuronId),
1684
+ staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1685
+ controller: IDL.Opt(IDL.Principal),
1686
+ recent_ballots: IDL.Vec(BallotInfo),
1687
+ voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
1688
+ kyc_verified: IDL.Bool,
1689
+ potential_voting_power: IDL.Opt(IDL.Nat64),
1690
+ neuron_type: IDL.Opt(IDL.Int32),
1691
+ not_for_profit: IDL.Bool,
1692
+ maturity_e8s_equivalent: IDL.Nat64,
1693
+ deciding_voting_power: IDL.Opt(IDL.Nat64),
1694
+ cached_neuron_stake_e8s: IDL.Nat64,
1695
+ created_timestamp_seconds: IDL.Nat64,
1696
+ auto_stake_maturity: IDL.Opt(IDL.Bool),
1697
+ aging_since_timestamp_seconds: IDL.Nat64,
1698
+ hot_keys: IDL.Vec(IDL.Principal),
1699
+ account: IDL.Vec(IDL.Nat8),
1700
+ joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
1701
+ maturity_disbursements_in_progress: IDL.Opt(IDL.Vec(MaturityDisbursement)),
1702
+ dissolve_state: IDL.Opt(DissolveState),
1703
+ followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1704
+ neuron_fees_e8s: IDL.Nat64,
1705
+ visibility: IDL.Opt(IDL.Int32),
1706
+ transfer: IDL.Opt(NeuronStakeTransfer),
1707
+ known_neuron_data: IDL.Opt(KnownNeuronData),
1708
+ spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64)
1709
+ });
1710
+ const Governance = IDL.Record({
1711
+ default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1712
+ most_recent_monthly_node_provider_rewards: IDL.Opt(MonthlyNodeProviderRewards),
1713
+ maturity_modulation_last_updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
1714
+ wait_for_quiet_threshold_seconds: IDL.Nat64,
1715
+ metrics: IDL.Opt(GovernanceCachedMetrics),
1716
+ neuron_management_voting_period_seconds: IDL.Opt(IDL.Nat64),
1717
+ node_providers: IDL.Vec(NodeProvider),
1718
+ cached_daily_maturity_modulation_basis_points: IDL.Opt(IDL.Int32),
1719
+ economics: IDL.Opt(NetworkEconomics),
1720
+ restore_aging_summary: IDL.Opt(RestoreAgingSummary),
1721
+ spawning_neurons: IDL.Opt(IDL.Bool),
1722
+ latest_reward_event: IDL.Opt(RewardEvent),
1723
+ to_claim_transfers: IDL.Vec(NeuronStakeTransfer),
1724
+ short_voting_period_seconds: IDL.Nat64,
1725
+ proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1726
+ xdr_conversion_rate: IDL.Opt(XdrConversionRate),
1727
+ in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
1728
+ neurons: IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
1729
+ genesis_timestamp_seconds: IDL.Nat64
1730
+ });
1731
+ const Result = IDL.Variant({Ok: IDL.Null, Err: GovernanceError});
1732
+ const Result_1 = IDL.Variant({
1733
+ Error: GovernanceError,
1734
+ NeuronId: NeuronId
1735
+ });
1736
+ const ClaimOrRefreshNeuronFromAccountResponse = IDL.Record({
1737
+ result: IDL.Opt(Result_1)
1738
+ });
1739
+ const Result_2 = IDL.Variant({Ok: Neuron, Err: GovernanceError});
1740
+ const Result_3 = IDL.Variant({
1741
+ Ok: GovernanceCachedMetrics,
1742
+ Err: GovernanceError
1743
+ });
1744
+ const Result_4 = IDL.Variant({
1745
+ Ok: MonthlyNodeProviderRewards,
1746
+ Err: GovernanceError
1747
+ });
1748
+ const GetNeuronIndexRequest = IDL.Record({
1749
+ page_size: IDL.Opt(IDL.Nat32),
1750
+ exclusive_start_neuron_id: IDL.Opt(NeuronId)
1751
+ });
1752
+ const NeuronInfo = IDL.Record({
1753
+ id: IDL.Opt(NeuronId),
1754
+ dissolve_delay_seconds: IDL.Nat64,
1755
+ recent_ballots: IDL.Vec(BallotInfo),
1756
+ voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
1757
+ potential_voting_power: IDL.Opt(IDL.Nat64),
1758
+ neuron_type: IDL.Opt(IDL.Int32),
1759
+ deciding_voting_power: IDL.Opt(IDL.Nat64),
1760
+ created_timestamp_seconds: IDL.Nat64,
1761
+ state: IDL.Int32,
1762
+ stake_e8s: IDL.Nat64,
1763
+ joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
1764
+ retrieved_at_timestamp_seconds: IDL.Nat64,
1765
+ visibility: IDL.Opt(IDL.Int32),
1766
+ known_neuron_data: IDL.Opt(KnownNeuronData),
1767
+ voting_power: IDL.Nat64,
1768
+ age_seconds: IDL.Nat64
1769
+ });
1770
+ const NeuronIndexData = IDL.Record({neurons: IDL.Vec(NeuronInfo)});
1771
+ const GetNeuronIndexResult = IDL.Variant({
1772
+ Ok: NeuronIndexData,
1773
+ Err: GovernanceError
1774
+ });
1775
+ const Result_5 = IDL.Variant({Ok: NeuronInfo, Err: GovernanceError});
1776
+ const GetNeuronsFundAuditInfoRequest = IDL.Record({
1777
+ nns_proposal_id: IDL.Opt(ProposalId)
1778
+ });
1779
+ const NeuronsFundAuditInfo = IDL.Record({
1780
+ final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
1781
+ initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
1782
+ neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot)
1783
+ });
1784
+ const Ok = IDL.Record({
1785
+ neurons_fund_audit_info: IDL.Opt(NeuronsFundAuditInfo)
1786
+ });
1787
+ const Result_6 = IDL.Variant({Ok: Ok, Err: GovernanceError});
1788
+ const GetNeuronsFundAuditInfoResponse = IDL.Record({
1789
+ result: IDL.Opt(Result_6)
1790
+ });
1791
+ const Result_7 = IDL.Variant({
1792
+ Ok: NodeProvider,
1793
+ Err: GovernanceError
1794
+ });
1795
+ const ProposalInfo = IDL.Record({
1796
+ id: IDL.Opt(ProposalId),
1797
+ status: IDL.Int32,
1798
+ topic: IDL.Int32,
1799
+ failure_reason: IDL.Opt(GovernanceError),
1800
+ ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1801
+ proposal_timestamp_seconds: IDL.Nat64,
1802
+ reward_event_round: IDL.Nat64,
1803
+ deadline_timestamp_seconds: IDL.Opt(IDL.Nat64),
1804
+ failed_timestamp_seconds: IDL.Nat64,
1805
+ reject_cost_e8s: IDL.Nat64,
1806
+ derived_proposal_information: IDL.Opt(DerivedProposalInformation),
1807
+ latest_tally: IDL.Opt(Tally),
1808
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
1809
+ reward_status: IDL.Int32,
1810
+ decided_timestamp_seconds: IDL.Nat64,
1811
+ proposal: IDL.Opt(Proposal),
1812
+ proposer: IDL.Opt(NeuronId),
1813
+ executed_timestamp_seconds: IDL.Nat64
1814
+ });
1815
+ const ListKnownNeuronsResponse = IDL.Record({
1816
+ known_neurons: IDL.Vec(KnownNeuron)
1817
+ });
1818
+ const ListNeuronVotesRequest = IDL.Record({
1819
+ before_proposal: IDL.Opt(ProposalId),
1820
+ limit: IDL.Opt(IDL.Nat64),
1821
+ neuron_id: IDL.Opt(NeuronId)
1822
+ });
1823
+ const Vote = IDL.Variant({
1824
+ No: IDL.Null,
1825
+ Yes: IDL.Null,
1826
+ Unspecified: IDL.Null
1827
+ });
1828
+ const NeuronVote = IDL.Record({
1829
+ vote: IDL.Opt(Vote),
1830
+ proposal_id: IDL.Opt(ProposalId)
1831
+ });
1832
+ const ListNeuronVotesResponse = IDL.Variant({
1833
+ Ok: IDL.Record({
1834
+ votes: IDL.Opt(IDL.Vec(NeuronVote)),
1835
+ all_finalized_before_proposal: IDL.Opt(ProposalId)
1836
+ }),
1837
+ Err: GovernanceError
1838
+ });
1839
+ const NeuronSubaccount = IDL.Record({subaccount: IDL.Vec(IDL.Nat8)});
1840
+ const ListNeurons = IDL.Record({
1841
+ page_size: IDL.Opt(IDL.Nat64),
1842
+ include_public_neurons_in_full_neurons: IDL.Opt(IDL.Bool),
1843
+ neuron_ids: IDL.Vec(IDL.Nat64),
1844
+ page_number: IDL.Opt(IDL.Nat64),
1845
+ include_empty_neurons_readable_by_caller: IDL.Opt(IDL.Bool),
1846
+ neuron_subaccounts: IDL.Opt(IDL.Vec(NeuronSubaccount)),
1847
+ include_neurons_readable_by_caller: IDL.Bool
1848
+ });
1849
+ const ListNeuronsResponse = IDL.Record({
1850
+ neuron_infos: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
1851
+ full_neurons: IDL.Vec(Neuron),
1852
+ total_pages_available: IDL.Opt(IDL.Nat64)
1853
+ });
1854
+ const DateRangeFilter = IDL.Record({
1855
+ start_timestamp_seconds: IDL.Opt(IDL.Nat64),
1856
+ end_timestamp_seconds: IDL.Opt(IDL.Nat64)
1857
+ });
1858
+ const ListNodeProviderRewardsRequest = IDL.Record({
1859
+ date_filter: IDL.Opt(DateRangeFilter)
1860
+ });
1861
+ const ListNodeProviderRewardsResponse = IDL.Record({
1862
+ rewards: IDL.Vec(MonthlyNodeProviderRewards)
1863
+ });
1864
+ const ListNodeProvidersResponse = IDL.Record({
1865
+ node_providers: IDL.Vec(NodeProvider)
1866
+ });
1867
+ const ListProposalInfoRequest = IDL.Record({
1868
+ include_reward_status: IDL.Vec(IDL.Int32),
1869
+ omit_large_fields: IDL.Opt(IDL.Bool),
1870
+ before_proposal: IDL.Opt(ProposalId),
1871
+ limit: IDL.Nat32,
1872
+ exclude_topic: IDL.Vec(IDL.Int32),
1873
+ include_all_manage_neuron_proposals: IDL.Opt(IDL.Bool),
1874
+ include_status: IDL.Vec(IDL.Int32)
1875
+ });
1876
+ const ListProposalInfoResponse = IDL.Record({
1877
+ proposal_info: IDL.Vec(ProposalInfo)
1878
+ });
1879
+ const InstallCodeRequest = IDL.Record({
1880
+ arg: IDL.Opt(IDL.Vec(IDL.Nat8)),
1881
+ wasm_module: IDL.Opt(IDL.Vec(IDL.Nat8)),
1882
+ skip_stopping_before_installing: IDL.Opt(IDL.Bool),
1883
+ canister_id: IDL.Opt(IDL.Principal),
1884
+ install_mode: IDL.Opt(IDL.Int32)
1885
+ });
1886
+ const ProposalActionRequest = IDL.Variant({
1887
+ RegisterKnownNeuron: KnownNeuron,
1888
+ FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
1889
+ ManageNeuron: ManageNeuronRequest,
1890
+ UpdateCanisterSettings: UpdateCanisterSettings,
1891
+ InstallCode: InstallCodeRequest,
1892
+ DeregisterKnownNeuron: DeregisterKnownNeuron,
1893
+ StopOrStartCanister: StopOrStartCanister,
1894
+ CreateServiceNervousSystem: CreateServiceNervousSystem,
1895
+ ExecuteNnsFunction: ExecuteNnsFunction,
1896
+ RewardNodeProvider: RewardNodeProvider,
1897
+ RewardNodeProviders: RewardNodeProviders,
1898
+ ManageNetworkEconomics: NetworkEconomics,
1899
+ ApproveGenesisKyc: Principals,
1900
+ AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
1901
+ Motion: Motion
1902
+ });
1903
+ const MakeProposalRequest = IDL.Record({
1904
+ url: IDL.Text,
1905
+ title: IDL.Opt(IDL.Text),
1906
+ action: IDL.Opt(ProposalActionRequest),
1907
+ summary: IDL.Text
1908
+ });
1909
+ const ManageNeuronCommandRequest = IDL.Variant({
1910
+ Spawn: Spawn,
1911
+ Split: Split,
1912
+ Follow: Follow,
1913
+ DisburseMaturity: DisburseMaturity,
1914
+ RefreshVotingPower: RefreshVotingPower,
1915
+ ClaimOrRefresh: ClaimOrRefresh,
1916
+ Configure: Configure,
1917
+ RegisterVote: RegisterVote,
1918
+ Merge: Merge,
1919
+ DisburseToNeuron: DisburseToNeuron,
1920
+ SetFollowing: SetFollowing,
1921
+ MakeProposal: MakeProposalRequest,
1922
+ StakeMaturity: StakeMaturity,
1923
+ MergeMaturity: MergeMaturity,
1924
+ Disburse: Disburse
1925
+ });
1926
+ ManageNeuronRequest.fill(
1927
+ IDL.Record({
1928
+ id: IDL.Opt(NeuronId),
1929
+ command: IDL.Opt(ManageNeuronCommandRequest),
1930
+ neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
1931
+ })
1932
+ );
1933
+ const SpawnResponse = IDL.Record({created_neuron_id: IDL.Opt(NeuronId)});
1934
+ const DisburseMaturityResponse = IDL.Record({
1935
+ amount_disbursed_e8s: IDL.Opt(IDL.Nat64)
1936
+ });
1937
+ const RefreshVotingPowerResponse = IDL.Record({});
1938
+ const ClaimOrRefreshResponse = IDL.Record({
1939
+ refreshed_neuron_id: IDL.Opt(NeuronId)
1940
+ });
1941
+ const MergeResponse = IDL.Record({
1942
+ target_neuron: IDL.Opt(Neuron),
1943
+ source_neuron: IDL.Opt(Neuron),
1944
+ target_neuron_info: IDL.Opt(NeuronInfo),
1945
+ source_neuron_info: IDL.Opt(NeuronInfo)
1946
+ });
1947
+ const SetFollowingResponse = IDL.Record({});
1948
+ const MakeProposalResponse = IDL.Record({
1949
+ message: IDL.Opt(IDL.Text),
1950
+ proposal_id: IDL.Opt(ProposalId)
1951
+ });
1952
+ const StakeMaturityResponse = IDL.Record({
1953
+ maturity_e8s: IDL.Nat64,
1954
+ staked_maturity_e8s: IDL.Nat64
1955
+ });
1956
+ const MergeMaturityResponse = IDL.Record({
1957
+ merged_maturity_e8s: IDL.Nat64,
1958
+ new_stake_e8s: IDL.Nat64
1959
+ });
1960
+ const DisburseResponse = IDL.Record({transfer_block_height: IDL.Nat64});
1961
+ const Command_1 = IDL.Variant({
1962
+ Error: GovernanceError,
1963
+ Spawn: SpawnResponse,
1964
+ Split: SpawnResponse,
1965
+ Follow: IDL.Record({}),
1966
+ DisburseMaturity: DisburseMaturityResponse,
1967
+ RefreshVotingPower: RefreshVotingPowerResponse,
1968
+ ClaimOrRefresh: ClaimOrRefreshResponse,
1969
+ Configure: IDL.Record({}),
1970
+ RegisterVote: IDL.Record({}),
1971
+ Merge: MergeResponse,
1972
+ DisburseToNeuron: SpawnResponse,
1973
+ SetFollowing: SetFollowingResponse,
1974
+ MakeProposal: MakeProposalResponse,
1975
+ StakeMaturity: StakeMaturityResponse,
1976
+ MergeMaturity: MergeMaturityResponse,
1977
+ Disburse: DisburseResponse
1978
+ });
1979
+ const ManageNeuronResponse = IDL.Record({command: IDL.Opt(Command_1)});
1980
+ const Committed = IDL.Record({
1981
+ total_direct_contribution_icp_e8s: IDL.Opt(IDL.Nat64),
1982
+ total_neurons_fund_contribution_icp_e8s: IDL.Opt(IDL.Nat64),
1983
+ sns_governance_canister_id: IDL.Opt(IDL.Principal)
1984
+ });
1985
+ const Result_8 = IDL.Variant({
1986
+ Committed: Committed,
1987
+ Aborted: IDL.Record({})
1988
+ });
1989
+ const SettleCommunityFundParticipation = IDL.Record({
1990
+ result: IDL.Opt(Result_8),
1991
+ open_sns_token_swap_proposal_id: IDL.Opt(IDL.Nat64)
1992
+ });
1993
+ const Committed_1 = IDL.Record({
1994
+ total_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1995
+ total_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1996
+ sns_governance_canister_id: IDL.Opt(IDL.Principal)
1997
+ });
1998
+ const Result_9 = IDL.Variant({
1999
+ Committed: Committed_1,
2000
+ Aborted: IDL.Record({})
2001
+ });
2002
+ const SettleNeuronsFundParticipationRequest = IDL.Record({
2003
+ result: IDL.Opt(Result_9),
2004
+ nns_proposal_id: IDL.Opt(IDL.Nat64)
2005
+ });
2006
+ const NeuronsFundNeuron = IDL.Record({
2007
+ controller: IDL.Opt(IDL.Principal),
2008
+ hotkeys: IDL.Opt(Principals),
2009
+ is_capped: IDL.Opt(IDL.Bool),
2010
+ nns_neuron_id: IDL.Opt(IDL.Nat64),
2011
+ amount_icp_e8s: IDL.Opt(IDL.Nat64)
2012
+ });
2013
+ const Ok_1 = IDL.Record({
2014
+ neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuron)
2015
+ });
2016
+ const Result_10 = IDL.Variant({Ok: Ok_1, Err: GovernanceError});
2017
+ const SettleNeuronsFundParticipationResponse = IDL.Record({
2018
+ result: IDL.Opt(Result_10)
2019
+ });
2020
+ const UpdateNodeProvider = IDL.Record({
2021
+ reward_account: IDL.Opt(AccountIdentifier)
2022
+ });
2023
+
2024
+ return IDL.Service({
2025
+ claim_gtc_neurons: IDL.Func([IDL.Principal, IDL.Vec(NeuronId)], [Result], []),
2026
+ claim_or_refresh_neuron_from_account: IDL.Func(
2027
+ [ClaimOrRefreshNeuronFromAccount],
2028
+ [ClaimOrRefreshNeuronFromAccountResponse],
2029
+ []
2030
+ ),
2031
+ get_build_metadata: IDL.Func([], [IDL.Text], ['query']),
2032
+ get_full_neuron: IDL.Func([IDL.Nat64], [Result_2], ['query']),
2033
+ get_full_neuron_by_id_or_subaccount: IDL.Func([NeuronIdOrSubaccount], [Result_2], ['query']),
2034
+ get_latest_reward_event: IDL.Func([], [RewardEvent], ['query']),
2035
+ get_metrics: IDL.Func([], [Result_3], ['query']),
2036
+ get_monthly_node_provider_rewards: IDL.Func([], [Result_4], []),
2037
+ get_most_recent_monthly_node_provider_rewards: IDL.Func(
2038
+ [],
2039
+ [IDL.Opt(MonthlyNodeProviderRewards)],
2040
+ ['query']
2041
+ ),
2042
+ get_network_economics_parameters: IDL.Func([], [NetworkEconomics], ['query']),
2043
+ get_neuron_ids: IDL.Func([], [IDL.Vec(IDL.Nat64)], ['query']),
2044
+ get_neuron_index: IDL.Func([GetNeuronIndexRequest], [GetNeuronIndexResult], ['query']),
2045
+ get_neuron_info: IDL.Func([IDL.Nat64], [Result_5], ['query']),
2046
+ get_neuron_info_by_id_or_subaccount: IDL.Func([NeuronIdOrSubaccount], [Result_5], ['query']),
2047
+ get_neurons_fund_audit_info: IDL.Func(
2048
+ [GetNeuronsFundAuditInfoRequest],
2049
+ [GetNeuronsFundAuditInfoResponse],
2050
+ ['query']
2051
+ ),
2052
+ get_node_provider_by_caller: IDL.Func([IDL.Null], [Result_7], ['query']),
2053
+ get_pending_proposals: IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
2054
+ get_proposal_info: IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], ['query']),
2055
+ get_restore_aging_summary: IDL.Func([], [RestoreAgingSummary], ['query']),
2056
+ list_known_neurons: IDL.Func([], [ListKnownNeuronsResponse], ['query']),
2057
+ list_neuron_votes: IDL.Func([ListNeuronVotesRequest], [ListNeuronVotesResponse], ['query']),
2058
+ list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
2059
+ list_node_provider_rewards: IDL.Func(
2060
+ [ListNodeProviderRewardsRequest],
2061
+ [ListNodeProviderRewardsResponse],
2062
+ ['query']
2063
+ ),
2064
+ list_node_providers: IDL.Func([], [ListNodeProvidersResponse], ['query']),
2065
+ list_proposals: IDL.Func([ListProposalInfoRequest], [ListProposalInfoResponse], ['query']),
2066
+ manage_neuron: IDL.Func([ManageNeuronRequest], [ManageNeuronResponse], []),
2067
+ settle_community_fund_participation: IDL.Func([SettleCommunityFundParticipation], [Result], []),
2068
+ settle_neurons_fund_participation: IDL.Func(
2069
+ [SettleNeuronsFundParticipationRequest],
2070
+ [SettleNeuronsFundParticipationResponse],
2071
+ []
2072
+ ),
2073
+ simulate_manage_neuron: IDL.Func([ManageNeuronRequest], [ManageNeuronResponse], []),
2074
+ transfer_gtc_neuron: IDL.Func([NeuronId, NeuronId], [Result], []),
2075
+ update_node_provider: IDL.Func([UpdateNodeProvider], [Result], [])
2076
+ });
2077
+ };
2078
+
2079
+ export const init = ({IDL}) => {
2080
+ const Proposal = IDL.Rec();
2081
+ const NeuronId = IDL.Record({id: IDL.Nat64});
2082
+ const Followees = IDL.Record({followees: IDL.Vec(NeuronId)});
2083
+ const DateUtc = IDL.Record({
2084
+ day: IDL.Nat32,
2085
+ month: IDL.Nat32,
2086
+ year: IDL.Nat32
2087
+ });
2088
+ const AccountIdentifier = IDL.Record({hash: IDL.Vec(IDL.Nat8)});
2089
+ const NodeProvider = IDL.Record({
2090
+ id: IDL.Opt(IDL.Principal),
2091
+ reward_account: IDL.Opt(AccountIdentifier)
2092
+ });
2093
+ const RewardToNeuron = IDL.Record({dissolve_delay_seconds: IDL.Nat64});
2094
+ const RewardToAccount = IDL.Record({
2095
+ to_account: IDL.Opt(AccountIdentifier)
2096
+ });
2097
+ const RewardMode = IDL.Variant({
2098
+ RewardToNeuron: RewardToNeuron,
2099
+ RewardToAccount: RewardToAccount
2100
+ });
2101
+ const RewardNodeProvider = IDL.Record({
2102
+ node_provider: IDL.Opt(NodeProvider),
2103
+ reward_mode: IDL.Opt(RewardMode),
2104
+ amount_e8s: IDL.Nat64
2105
+ });
2106
+ const XdrConversionRate = IDL.Record({
2107
+ xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
2108
+ timestamp_seconds: IDL.Opt(IDL.Nat64)
2109
+ });
2110
+ const MonthlyNodeProviderRewards = IDL.Record({
2111
+ minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
2112
+ end_date: IDL.Opt(DateUtc),
2113
+ registry_version: IDL.Opt(IDL.Nat64),
2114
+ node_providers: IDL.Vec(NodeProvider),
2115
+ start_date: IDL.Opt(DateUtc),
2116
+ timestamp: IDL.Nat64,
2117
+ rewards: IDL.Vec(RewardNodeProvider),
2118
+ xdr_conversion_rate: IDL.Opt(XdrConversionRate),
2119
+ maximum_node_provider_rewards_e8s: IDL.Opt(IDL.Nat64)
2120
+ });
2121
+ const NeuronSubsetMetrics = IDL.Record({
2122
+ total_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
2123
+ maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
2124
+ voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
2125
+ total_staked_e8s: IDL.Opt(IDL.Nat64),
2126
+ count: IDL.Opt(IDL.Nat64),
2127
+ deciding_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
2128
+ total_staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
2129
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
2130
+ total_deciding_voting_power: IDL.Opt(IDL.Nat64),
2131
+ staked_maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
2132
+ staked_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
2133
+ total_voting_power: IDL.Opt(IDL.Nat64),
2134
+ potential_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
2135
+ count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64))
2136
+ });
2137
+ const GovernanceCachedMetrics = IDL.Record({
2138
+ total_maturity_e8s_equivalent: IDL.Nat64,
2139
+ not_dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
2140
+ dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
2141
+ garbage_collectable_neurons_count: IDL.Nat64,
2142
+ dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
2143
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
2144
+ ),
2145
+ neurons_with_invalid_stake_count: IDL.Nat64,
2146
+ not_dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
2147
+ ect_neuron_count: IDL.Nat64,
2148
+ total_supply_icp: IDL.Nat64,
2149
+ neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
2150
+ dissolved_neurons_count: IDL.Nat64,
2151
+ community_fund_total_maturity_e8s_equivalent: IDL.Nat64,
2152
+ total_staked_e8s_seed: IDL.Nat64,
2153
+ total_staked_maturity_e8s_equivalent_ect: IDL.Nat64,
2154
+ total_staked_e8s: IDL.Nat64,
2155
+ fully_lost_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
2156
+ not_dissolving_neurons_count: IDL.Nat64,
2157
+ total_locked_e8s: IDL.Nat64,
2158
+ neurons_fund_total_active_neurons: IDL.Nat64,
2159
+ total_voting_power_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
2160
+ total_staked_maturity_e8s_equivalent: IDL.Nat64,
2161
+ not_dissolving_neurons_e8s_buckets_ect: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
2162
+ spawning_neurons_count: IDL.Nat64,
2163
+ declining_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
2164
+ total_staked_e8s_ect: IDL.Nat64,
2165
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
2166
+ dissolved_neurons_e8s: IDL.Nat64,
2167
+ total_staked_e8s_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
2168
+ dissolving_neurons_e8s_buckets_seed: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
2169
+ neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
2170
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
2171
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
2172
+ ),
2173
+ dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
2174
+ dissolving_neurons_e8s_buckets_ect: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
2175
+ non_self_authenticating_controller_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
2176
+ dissolving_neurons_count: IDL.Nat64,
2177
+ dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
2178
+ total_staked_maturity_e8s_equivalent_seed: IDL.Nat64,
2179
+ community_fund_total_staked_e8s: IDL.Nat64,
2180
+ not_dissolving_neurons_e8s_buckets_seed: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
2181
+ public_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
2182
+ timestamp_seconds: IDL.Nat64,
2183
+ seed_neuron_count: IDL.Nat64
2184
+ });
2185
+ const VotingPowerEconomics = IDL.Record({
2186
+ start_reducing_voting_power_after_seconds: IDL.Opt(IDL.Nat64),
2187
+ neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
2188
+ clear_following_after_seconds: IDL.Opt(IDL.Nat64)
2189
+ });
2190
+ const Percentage = IDL.Record({basis_points: IDL.Opt(IDL.Nat64)});
2191
+ const Decimal = IDL.Record({human_readable: IDL.Opt(IDL.Text)});
2192
+ const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
2193
+ contribution_threshold_xdr: IDL.Opt(Decimal),
2194
+ one_third_participation_milestone_xdr: IDL.Opt(Decimal),
2195
+ full_participation_milestone_xdr: IDL.Opt(Decimal)
2196
+ });
2197
+ const NeuronsFundEconomics = IDL.Record({
2198
+ maximum_icp_xdr_rate: IDL.Opt(Percentage),
2199
+ neurons_fund_matched_funding_curve_coefficients: IDL.Opt(
2200
+ NeuronsFundMatchedFundingCurveCoefficients
2201
+ ),
2202
+ max_theoretical_neurons_fund_participation_amount_xdr: IDL.Opt(Decimal),
2203
+ minimum_icp_xdr_rate: IDL.Opt(Percentage)
2204
+ });
2205
+ const NetworkEconomics = IDL.Record({
2206
+ neuron_minimum_stake_e8s: IDL.Nat64,
2207
+ voting_power_economics: IDL.Opt(VotingPowerEconomics),
2208
+ max_proposals_to_keep_per_topic: IDL.Nat32,
2209
+ neuron_management_fee_per_proposal_e8s: IDL.Nat64,
2210
+ reject_cost_e8s: IDL.Nat64,
2211
+ transaction_fee_e8s: IDL.Nat64,
2212
+ neuron_spawn_dissolve_delay_seconds: IDL.Nat64,
2213
+ minimum_icp_xdr_rate: IDL.Nat64,
2214
+ maximum_node_provider_rewards_e8s: IDL.Nat64,
2215
+ neurons_fund_economics: IDL.Opt(NeuronsFundEconomics)
2216
+ });
2217
+ const RestoreAgingNeuronGroup = IDL.Record({
2218
+ count: IDL.Opt(IDL.Nat64),
2219
+ previous_total_stake_e8s: IDL.Opt(IDL.Nat64),
2220
+ current_total_stake_e8s: IDL.Opt(IDL.Nat64),
2221
+ group_type: IDL.Int32
2222
+ });
2223
+ const RestoreAgingSummary = IDL.Record({
2224
+ groups: IDL.Vec(RestoreAgingNeuronGroup),
2225
+ timestamp_seconds: IDL.Opt(IDL.Nat64)
2226
+ });
2227
+ const ProposalId = IDL.Record({id: IDL.Nat64});
2228
+ const RewardEvent = IDL.Record({
2229
+ rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
2230
+ day_after_genesis: IDL.Nat64,
2231
+ actual_timestamp_seconds: IDL.Nat64,
2232
+ total_available_e8s_equivalent: IDL.Nat64,
2233
+ latest_round_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
2234
+ distributed_e8s_equivalent: IDL.Nat64,
2235
+ settled_proposals: IDL.Vec(ProposalId)
2236
+ });
2237
+ const NeuronStakeTransfer = IDL.Record({
2238
+ to_subaccount: IDL.Vec(IDL.Nat8),
2239
+ neuron_stake_e8s: IDL.Nat64,
2240
+ from: IDL.Opt(IDL.Principal),
2241
+ memo: IDL.Nat64,
2242
+ from_subaccount: IDL.Vec(IDL.Nat8),
2243
+ transfer_timestamp: IDL.Nat64,
2244
+ block_height: IDL.Nat64
2245
+ });
2246
+ const GovernanceError = IDL.Record({
2247
+ error_message: IDL.Text,
2248
+ error_type: IDL.Int32
2249
+ });
2250
+ const Ballot = IDL.Record({vote: IDL.Int32, voting_power: IDL.Nat64});
2251
+ const SwapParticipationLimits = IDL.Record({
2252
+ min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
2253
+ max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
2254
+ min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
2255
+ max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64)
2256
+ });
2257
+ const NeuronsFundNeuronPortion = IDL.Record({
2258
+ controller: IDL.Opt(IDL.Principal),
2259
+ hotkeys: IDL.Vec(IDL.Principal),
2260
+ is_capped: IDL.Opt(IDL.Bool),
2261
+ maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
2262
+ nns_neuron_id: IDL.Opt(NeuronId),
2263
+ amount_icp_e8s: IDL.Opt(IDL.Nat64)
2264
+ });
2265
+ const NeuronsFundSnapshot = IDL.Record({
2266
+ neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuronPortion)
2267
+ });
2268
+ const IdealMatchedParticipationFunction = IDL.Record({
2269
+ serialized_representation: IDL.Opt(IDL.Text)
2270
+ });
2271
+ const NeuronsFundParticipation = IDL.Record({
2272
+ total_maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
2273
+ intended_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
2274
+ direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
2275
+ swap_participation_limits: IDL.Opt(SwapParticipationLimits),
2276
+ max_neurons_fund_swap_participation_icp_e8s: IDL.Opt(IDL.Nat64),
2277
+ neurons_fund_reserves: IDL.Opt(NeuronsFundSnapshot),
2278
+ ideal_matched_participation_function: IDL.Opt(IdealMatchedParticipationFunction),
2279
+ allocated_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64)
2280
+ });
2281
+ const NeuronsFundData = IDL.Record({
2282
+ final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
2283
+ initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
2284
+ neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot)
2285
+ });
2286
+ const CanisterStatusResultV2 = IDL.Record({
2287
+ status: IDL.Opt(IDL.Int32),
2288
+ freezing_threshold: IDL.Opt(IDL.Nat64),
2289
+ controllers: IDL.Vec(IDL.Principal),
2290
+ memory_size: IDL.Opt(IDL.Nat64),
2291
+ cycles: IDL.Opt(IDL.Nat64),
2292
+ idle_cycles_burned_per_day: IDL.Opt(IDL.Nat64),
2293
+ module_hash: IDL.Vec(IDL.Nat8)
2294
+ });
2295
+ const CanisterSummary = IDL.Record({
2296
+ status: IDL.Opt(CanisterStatusResultV2),
2297
+ canister_id: IDL.Opt(IDL.Principal)
2298
+ });
2299
+ const SwapBackgroundInformation = IDL.Record({
2300
+ ledger_index_canister_summary: IDL.Opt(CanisterSummary),
2301
+ fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
2302
+ ledger_archive_canister_summaries: IDL.Vec(CanisterSummary),
2303
+ ledger_canister_summary: IDL.Opt(CanisterSummary),
2304
+ swap_canister_summary: IDL.Opt(CanisterSummary),
2305
+ governance_canister_summary: IDL.Opt(CanisterSummary),
2306
+ root_canister_summary: IDL.Opt(CanisterSummary),
2307
+ dapp_canister_summaries: IDL.Vec(CanisterSummary)
2308
+ });
2309
+ const DerivedProposalInformation = IDL.Record({
2310
+ swap_background_information: IDL.Opt(SwapBackgroundInformation)
2311
+ });
2312
+ const Tally = IDL.Record({
2313
+ no: IDL.Nat64,
2314
+ yes: IDL.Nat64,
2315
+ total: IDL.Nat64,
2316
+ timestamp_seconds: IDL.Nat64
2317
+ });
2318
+ const TopicToFollow = IDL.Variant({
2319
+ Kyc: IDL.Null,
2320
+ ServiceNervousSystemManagement: IDL.Null,
2321
+ ApiBoundaryNodeManagement: IDL.Null,
2322
+ ApplicationCanisterManagement: IDL.Null,
2323
+ SubnetRental: IDL.Null,
2324
+ NeuronManagement: IDL.Null,
2325
+ NodeProviderRewards: IDL.Null,
2326
+ SubnetManagement: IDL.Null,
2327
+ ExchangeRate: IDL.Null,
2328
+ CatchAll: IDL.Null,
2329
+ NodeAdmin: IDL.Null,
2330
+ IcOsVersionElection: IDL.Null,
2331
+ ProtocolCanisterManagement: IDL.Null,
2332
+ NetworkEconomics: IDL.Null,
2333
+ IcOsVersionDeployment: IDL.Null,
2334
+ ParticipantManagement: IDL.Null,
2335
+ Governance: IDL.Null,
2336
+ SnsAndCommunityFund: IDL.Null
2337
+ });
2338
+ const KnownNeuronData = IDL.Record({
2339
+ name: IDL.Text,
2340
+ committed_topics: IDL.Opt(IDL.Vec(IDL.Opt(TopicToFollow))),
2341
+ description: IDL.Opt(IDL.Text),
2342
+ links: IDL.Opt(IDL.Vec(IDL.Text))
2343
+ });
2344
+ const KnownNeuron = IDL.Record({
2345
+ id: IDL.Opt(NeuronId),
2346
+ known_neuron_data: IDL.Opt(KnownNeuronData)
2347
+ });
2348
+ const FulfillSubnetRentalRequest = IDL.Record({
2349
+ user: IDL.Opt(IDL.Principal),
2350
+ replica_version_id: IDL.Opt(IDL.Text),
2351
+ node_ids: IDL.Opt(IDL.Vec(IDL.Principal))
2352
+ });
2353
+ const Spawn = IDL.Record({
2354
+ percentage_to_spawn: IDL.Opt(IDL.Nat32),
2355
+ new_controller: IDL.Opt(IDL.Principal),
2356
+ nonce: IDL.Opt(IDL.Nat64)
2357
+ });
2358
+ const Split = IDL.Record({
2359
+ memo: IDL.Opt(IDL.Nat64),
2360
+ amount_e8s: IDL.Nat64
2361
+ });
2362
+ const Follow = IDL.Record({
2363
+ topic: IDL.Int32,
2364
+ followees: IDL.Vec(NeuronId)
2365
+ });
2366
+ const Account = IDL.Record({
2367
+ owner: IDL.Opt(IDL.Principal),
2368
+ subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
2369
+ });
2370
+ const DisburseMaturity = IDL.Record({
2371
+ to_account_identifier: IDL.Opt(AccountIdentifier),
2372
+ to_account: IDL.Opt(Account),
2373
+ percentage_to_disburse: IDL.Nat32
2374
+ });
2375
+ const RefreshVotingPower = IDL.Record({});
2376
+ const ClaimOrRefreshNeuronFromAccount = IDL.Record({
2377
+ controller: IDL.Opt(IDL.Principal),
2378
+ memo: IDL.Nat64
2379
+ });
2380
+ const By = IDL.Variant({
2381
+ NeuronIdOrSubaccount: IDL.Record({}),
2382
+ MemoAndController: ClaimOrRefreshNeuronFromAccount,
2383
+ Memo: IDL.Nat64
2384
+ });
2385
+ const ClaimOrRefresh = IDL.Record({by: IDL.Opt(By)});
2386
+ const RemoveHotKey = IDL.Record({
2387
+ hot_key_to_remove: IDL.Opt(IDL.Principal)
2388
+ });
2389
+ const AddHotKey = IDL.Record({new_hot_key: IDL.Opt(IDL.Principal)});
2390
+ const ChangeAutoStakeMaturity = IDL.Record({
2391
+ requested_setting_for_auto_stake_maturity: IDL.Bool
2392
+ });
2393
+ const IncreaseDissolveDelay = IDL.Record({
2394
+ additional_dissolve_delay_seconds: IDL.Nat32
2395
+ });
2396
+ const SetVisibility = IDL.Record({visibility: IDL.Opt(IDL.Int32)});
2397
+ const SetDissolveTimestamp = IDL.Record({
2398
+ dissolve_timestamp_seconds: IDL.Nat64
2399
+ });
2400
+ const Operation = IDL.Variant({
2401
+ RemoveHotKey: RemoveHotKey,
2402
+ AddHotKey: AddHotKey,
2403
+ ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
2404
+ StopDissolving: IDL.Record({}),
2405
+ StartDissolving: IDL.Record({}),
2406
+ IncreaseDissolveDelay: IncreaseDissolveDelay,
2407
+ SetVisibility: SetVisibility,
2408
+ JoinCommunityFund: IDL.Record({}),
2409
+ LeaveCommunityFund: IDL.Record({}),
2410
+ SetDissolveTimestamp: SetDissolveTimestamp
2411
+ });
2412
+ const Configure = IDL.Record({operation: IDL.Opt(Operation)});
2413
+ const RegisterVote = IDL.Record({
2414
+ vote: IDL.Int32,
2415
+ proposal: IDL.Opt(ProposalId)
2416
+ });
2417
+ const Merge = IDL.Record({source_neuron_id: IDL.Opt(NeuronId)});
2418
+ const DisburseToNeuron = IDL.Record({
2419
+ dissolve_delay_seconds: IDL.Nat64,
2420
+ kyc_verified: IDL.Bool,
2421
+ amount_e8s: IDL.Nat64,
2422
+ new_controller: IDL.Opt(IDL.Principal),
2423
+ nonce: IDL.Nat64
2424
+ });
2425
+ const FolloweesForTopic = IDL.Record({
2426
+ topic: IDL.Opt(IDL.Int32),
2427
+ followees: IDL.Opt(IDL.Vec(NeuronId))
2428
+ });
2429
+ const SetFollowing = IDL.Record({
2430
+ topic_following: IDL.Opt(IDL.Vec(FolloweesForTopic))
2431
+ });
2432
+ const StakeMaturity = IDL.Record({
2433
+ percentage_to_stake: IDL.Opt(IDL.Nat32)
2434
+ });
2435
+ const MergeMaturity = IDL.Record({percentage_to_merge: IDL.Nat32});
2436
+ const Amount = IDL.Record({e8s: IDL.Nat64});
2437
+ const Disburse = IDL.Record({
2438
+ to_account: IDL.Opt(AccountIdentifier),
2439
+ amount: IDL.Opt(Amount)
2440
+ });
2441
+ const Command = IDL.Variant({
2442
+ Spawn: Spawn,
2443
+ Split: Split,
2444
+ Follow: Follow,
2445
+ DisburseMaturity: DisburseMaturity,
2446
+ RefreshVotingPower: RefreshVotingPower,
2447
+ ClaimOrRefresh: ClaimOrRefresh,
2448
+ Configure: Configure,
2449
+ RegisterVote: RegisterVote,
2450
+ Merge: Merge,
2451
+ DisburseToNeuron: DisburseToNeuron,
2452
+ SetFollowing: SetFollowing,
2453
+ MakeProposal: Proposal,
2454
+ StakeMaturity: StakeMaturity,
2455
+ MergeMaturity: MergeMaturity,
2456
+ Disburse: Disburse
2457
+ });
2458
+ const NeuronIdOrSubaccount = IDL.Variant({
2459
+ Subaccount: IDL.Vec(IDL.Nat8),
2460
+ NeuronId: NeuronId
2461
+ });
2462
+ const ManageNeuron = IDL.Record({
2463
+ id: IDL.Opt(NeuronId),
2464
+ command: IDL.Opt(Command),
2465
+ neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
2466
+ });
2467
+ const Controllers = IDL.Record({controllers: IDL.Vec(IDL.Principal)});
2468
+ const CanisterSettings = IDL.Record({
2469
+ freezing_threshold: IDL.Opt(IDL.Nat64),
2470
+ wasm_memory_threshold: IDL.Opt(IDL.Nat64),
2471
+ controllers: IDL.Opt(Controllers),
2472
+ log_visibility: IDL.Opt(IDL.Int32),
2473
+ wasm_memory_limit: IDL.Opt(IDL.Nat64),
2474
+ memory_allocation: IDL.Opt(IDL.Nat64),
2475
+ compute_allocation: IDL.Opt(IDL.Nat64)
2476
+ });
2477
+ const UpdateCanisterSettings = IDL.Record({
2478
+ canister_id: IDL.Opt(IDL.Principal),
2479
+ settings: IDL.Opt(CanisterSettings)
2480
+ });
2481
+ const InstallCode = IDL.Record({
2482
+ skip_stopping_before_installing: IDL.Opt(IDL.Bool),
2483
+ wasm_module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
2484
+ canister_id: IDL.Opt(IDL.Principal),
2485
+ arg_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
2486
+ install_mode: IDL.Opt(IDL.Int32)
2487
+ });
2488
+ const DeregisterKnownNeuron = IDL.Record({id: IDL.Opt(NeuronId)});
2489
+ const StopOrStartCanister = IDL.Record({
2490
+ action: IDL.Opt(IDL.Int32),
2491
+ canister_id: IDL.Opt(IDL.Principal)
2492
+ });
2493
+ const Duration = IDL.Record({seconds: IDL.Opt(IDL.Nat64)});
2494
+ const Tokens = IDL.Record({e8s: IDL.Opt(IDL.Nat64)});
2495
+ const VotingRewardParameters = IDL.Record({
2496
+ reward_rate_transition_duration: IDL.Opt(Duration),
2497
+ initial_reward_rate: IDL.Opt(Percentage),
2498
+ final_reward_rate: IDL.Opt(Percentage)
2499
+ });
2500
+ const GovernanceParameters = IDL.Record({
2501
+ neuron_maximum_dissolve_delay_bonus: IDL.Opt(Percentage),
2502
+ neuron_maximum_age_for_age_bonus: IDL.Opt(Duration),
2503
+ neuron_maximum_dissolve_delay: IDL.Opt(Duration),
2504
+ neuron_minimum_dissolve_delay_to_vote: IDL.Opt(Duration),
2505
+ neuron_maximum_age_bonus: IDL.Opt(Percentage),
2506
+ neuron_minimum_stake: IDL.Opt(Tokens),
2507
+ proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
2508
+ proposal_initial_voting_period: IDL.Opt(Duration),
2509
+ proposal_rejection_fee: IDL.Opt(Tokens),
2510
+ voting_reward_parameters: IDL.Opt(VotingRewardParameters)
2511
+ });
2512
+ const Image = IDL.Record({base64_encoding: IDL.Opt(IDL.Text)});
2513
+ const LedgerParameters = IDL.Record({
2514
+ transaction_fee: IDL.Opt(Tokens),
2515
+ token_symbol: IDL.Opt(IDL.Text),
2516
+ token_logo: IDL.Opt(Image),
2517
+ token_name: IDL.Opt(IDL.Text)
2518
+ });
2519
+ const Canister = IDL.Record({id: IDL.Opt(IDL.Principal)});
2520
+ const NeuronBasketConstructionParameters = IDL.Record({
2521
+ dissolve_delay_interval: IDL.Opt(Duration),
2522
+ count: IDL.Opt(IDL.Nat64)
2523
+ });
2524
+ const GlobalTimeOfDay = IDL.Record({
2525
+ seconds_after_utc_midnight: IDL.Opt(IDL.Nat64)
2526
+ });
2527
+ const Countries = IDL.Record({iso_codes: IDL.Vec(IDL.Text)});
2528
+ const SwapParameters = IDL.Record({
2529
+ minimum_participants: IDL.Opt(IDL.Nat64),
2530
+ neurons_fund_participation: IDL.Opt(IDL.Bool),
2531
+ duration: IDL.Opt(Duration),
2532
+ neuron_basket_construction_parameters: IDL.Opt(NeuronBasketConstructionParameters),
2533
+ confirmation_text: IDL.Opt(IDL.Text),
2534
+ maximum_participant_icp: IDL.Opt(Tokens),
2535
+ minimum_icp: IDL.Opt(Tokens),
2536
+ minimum_direct_participation_icp: IDL.Opt(Tokens),
2537
+ minimum_participant_icp: IDL.Opt(Tokens),
2538
+ start_time: IDL.Opt(GlobalTimeOfDay),
2539
+ maximum_direct_participation_icp: IDL.Opt(Tokens),
2540
+ maximum_icp: IDL.Opt(Tokens),
2541
+ neurons_fund_investment_icp: IDL.Opt(Tokens),
2542
+ restricted_countries: IDL.Opt(Countries)
2543
+ });
2544
+ const SwapDistribution = IDL.Record({total: IDL.Opt(Tokens)});
2545
+ const NeuronDistribution = IDL.Record({
2546
+ controller: IDL.Opt(IDL.Principal),
2547
+ dissolve_delay: IDL.Opt(Duration),
2548
+ memo: IDL.Opt(IDL.Nat64),
2549
+ vesting_period: IDL.Opt(Duration),
2550
+ stake: IDL.Opt(Tokens)
2551
+ });
2552
+ const DeveloperDistribution = IDL.Record({
2553
+ developer_neurons: IDL.Vec(NeuronDistribution)
2554
+ });
2555
+ const InitialTokenDistribution = IDL.Record({
2556
+ treasury_distribution: IDL.Opt(SwapDistribution),
2557
+ developer_distribution: IDL.Opt(DeveloperDistribution),
2558
+ swap_distribution: IDL.Opt(SwapDistribution)
2559
+ });
2560
+ const CreateServiceNervousSystem = IDL.Record({
2561
+ url: IDL.Opt(IDL.Text),
2562
+ governance_parameters: IDL.Opt(GovernanceParameters),
2563
+ fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
2564
+ logo: IDL.Opt(Image),
2565
+ name: IDL.Opt(IDL.Text),
2566
+ ledger_parameters: IDL.Opt(LedgerParameters),
2567
+ description: IDL.Opt(IDL.Text),
2568
+ dapp_canisters: IDL.Vec(Canister),
2569
+ swap_parameters: IDL.Opt(SwapParameters),
2570
+ initial_token_distribution: IDL.Opt(InitialTokenDistribution)
2571
+ });
2572
+ const ExecuteNnsFunction = IDL.Record({
2573
+ nns_function: IDL.Int32,
2574
+ payload: IDL.Vec(IDL.Nat8)
2575
+ });
2576
+ const NeuronBasketConstructionParameters_1 = IDL.Record({
2577
+ dissolve_delay_interval_seconds: IDL.Nat64,
2578
+ count: IDL.Nat64
2579
+ });
2580
+ const Params = IDL.Record({
2581
+ min_participant_icp_e8s: IDL.Nat64,
2582
+ neuron_basket_construction_parameters: IDL.Opt(NeuronBasketConstructionParameters_1),
2583
+ max_icp_e8s: IDL.Nat64,
2584
+ swap_due_timestamp_seconds: IDL.Nat64,
2585
+ min_participants: IDL.Nat32,
2586
+ sns_token_e8s: IDL.Nat64,
2587
+ sale_delay_seconds: IDL.Opt(IDL.Nat64),
2588
+ max_participant_icp_e8s: IDL.Nat64,
2589
+ min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
2590
+ min_icp_e8s: IDL.Nat64,
2591
+ max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64)
2592
+ });
2593
+ const OpenSnsTokenSwap = IDL.Record({
2594
+ community_fund_investment_e8s: IDL.Opt(IDL.Nat64),
2595
+ target_swap_canister_id: IDL.Opt(IDL.Principal),
2596
+ params: IDL.Opt(Params)
2597
+ });
2598
+ const TimeWindow = IDL.Record({
2599
+ start_timestamp_seconds: IDL.Nat64,
2600
+ end_timestamp_seconds: IDL.Nat64
2601
+ });
2602
+ const SetOpenTimeWindowRequest = IDL.Record({
2603
+ open_time_window: IDL.Opt(TimeWindow)
2604
+ });
2605
+ const SetSnsTokenSwapOpenTimeWindow = IDL.Record({
2606
+ request: IDL.Opt(SetOpenTimeWindowRequest),
2607
+ swap_canister_id: IDL.Opt(IDL.Principal)
2608
+ });
2609
+ const SetDefaultFollowees = IDL.Record({
2610
+ default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees))
2611
+ });
2612
+ const RewardNodeProviders = IDL.Record({
2613
+ use_registry_derived_rewards: IDL.Opt(IDL.Bool),
2614
+ rewards: IDL.Vec(RewardNodeProvider)
2615
+ });
2616
+ const Principals = IDL.Record({principals: IDL.Vec(IDL.Principal)});
2617
+ const Change = IDL.Variant({
2618
+ ToRemove: NodeProvider,
2619
+ ToAdd: NodeProvider
2620
+ });
2621
+ const AddOrRemoveNodeProvider = IDL.Record({change: IDL.Opt(Change)});
2622
+ const Motion = IDL.Record({motion_text: IDL.Text});
2623
+ const Action = IDL.Variant({
2624
+ RegisterKnownNeuron: KnownNeuron,
2625
+ FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
2626
+ ManageNeuron: ManageNeuron,
2627
+ UpdateCanisterSettings: UpdateCanisterSettings,
2628
+ InstallCode: InstallCode,
2629
+ DeregisterKnownNeuron: DeregisterKnownNeuron,
2630
+ StopOrStartCanister: StopOrStartCanister,
2631
+ CreateServiceNervousSystem: CreateServiceNervousSystem,
2632
+ ExecuteNnsFunction: ExecuteNnsFunction,
2633
+ RewardNodeProvider: RewardNodeProvider,
2634
+ OpenSnsTokenSwap: OpenSnsTokenSwap,
2635
+ SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow,
2636
+ SetDefaultFollowees: SetDefaultFollowees,
2637
+ RewardNodeProviders: RewardNodeProviders,
2638
+ ManageNetworkEconomics: NetworkEconomics,
2639
+ ApproveGenesisKyc: Principals,
2640
+ AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
2641
+ Motion: Motion
2642
+ });
2643
+ Proposal.fill(
2644
+ IDL.Record({
2645
+ url: IDL.Text,
2646
+ title: IDL.Opt(IDL.Text),
2647
+ action: IDL.Opt(Action),
2648
+ summary: IDL.Text
2649
+ })
2650
+ );
2651
+ const WaitForQuietState = IDL.Record({
2652
+ current_deadline_timestamp_seconds: IDL.Nat64
2653
+ });
2654
+ const ProposalData = IDL.Record({
2655
+ id: IDL.Opt(ProposalId),
2656
+ topic: IDL.Opt(IDL.Int32),
2657
+ failure_reason: IDL.Opt(GovernanceError),
2658
+ ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
2659
+ proposal_timestamp_seconds: IDL.Nat64,
2660
+ reward_event_round: IDL.Nat64,
2661
+ failed_timestamp_seconds: IDL.Nat64,
2662
+ neurons_fund_data: IDL.Opt(NeuronsFundData),
2663
+ reject_cost_e8s: IDL.Nat64,
2664
+ derived_proposal_information: IDL.Opt(DerivedProposalInformation),
2665
+ latest_tally: IDL.Opt(Tally),
2666
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
2667
+ sns_token_swap_lifecycle: IDL.Opt(IDL.Int32),
2668
+ decided_timestamp_seconds: IDL.Nat64,
2669
+ proposal: IDL.Opt(Proposal),
2670
+ proposer: IDL.Opt(NeuronId),
2671
+ wait_for_quiet_state: IDL.Opt(WaitForQuietState),
2672
+ executed_timestamp_seconds: IDL.Nat64,
2673
+ original_total_community_fund_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64)
2674
+ });
2675
+ const Command_2 = IDL.Variant({
2676
+ Spawn: NeuronId,
2677
+ Split: Split,
2678
+ Configure: Configure,
2679
+ Merge: Merge,
2680
+ DisburseToNeuron: DisburseToNeuron,
2681
+ SyncCommand: IDL.Record({}),
2682
+ ClaimOrRefreshNeuron: ClaimOrRefresh,
2683
+ MergeMaturity: MergeMaturity,
2684
+ Disburse: Disburse
2685
+ });
2686
+ const NeuronInFlightCommand = IDL.Record({
2687
+ command: IDL.Opt(Command_2),
2688
+ timestamp: IDL.Nat64
2689
+ });
2690
+ const BallotInfo = IDL.Record({
2691
+ vote: IDL.Int32,
2692
+ proposal_id: IDL.Opt(ProposalId)
2693
+ });
2694
+ const MaturityDisbursement = IDL.Record({
2695
+ account_identifier_to_disburse_to: IDL.Opt(AccountIdentifier),
2696
+ timestamp_of_disbursement_seconds: IDL.Opt(IDL.Nat64),
2697
+ amount_e8s: IDL.Opt(IDL.Nat64),
2698
+ account_to_disburse_to: IDL.Opt(Account),
2699
+ finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64)
2700
+ });
2701
+ const DissolveState = IDL.Variant({
2702
+ DissolveDelaySeconds: IDL.Nat64,
2703
+ WhenDissolvedTimestampSeconds: IDL.Nat64
2704
+ });
2705
+ const Neuron = IDL.Record({
2706
+ id: IDL.Opt(NeuronId),
2707
+ staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
2708
+ controller: IDL.Opt(IDL.Principal),
2709
+ recent_ballots: IDL.Vec(BallotInfo),
2710
+ voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
2711
+ kyc_verified: IDL.Bool,
2712
+ potential_voting_power: IDL.Opt(IDL.Nat64),
2713
+ neuron_type: IDL.Opt(IDL.Int32),
2714
+ not_for_profit: IDL.Bool,
2715
+ maturity_e8s_equivalent: IDL.Nat64,
2716
+ deciding_voting_power: IDL.Opt(IDL.Nat64),
2717
+ cached_neuron_stake_e8s: IDL.Nat64,
2718
+ created_timestamp_seconds: IDL.Nat64,
2719
+ auto_stake_maturity: IDL.Opt(IDL.Bool),
2720
+ aging_since_timestamp_seconds: IDL.Nat64,
2721
+ hot_keys: IDL.Vec(IDL.Principal),
2722
+ account: IDL.Vec(IDL.Nat8),
2723
+ joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
2724
+ maturity_disbursements_in_progress: IDL.Opt(IDL.Vec(MaturityDisbursement)),
2725
+ dissolve_state: IDL.Opt(DissolveState),
2726
+ followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
2727
+ neuron_fees_e8s: IDL.Nat64,
2728
+ visibility: IDL.Opt(IDL.Int32),
2729
+ transfer: IDL.Opt(NeuronStakeTransfer),
2730
+ known_neuron_data: IDL.Opt(KnownNeuronData),
2731
+ spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64)
2732
+ });
2733
+ const Governance = IDL.Record({
2734
+ default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
2735
+ most_recent_monthly_node_provider_rewards: IDL.Opt(MonthlyNodeProviderRewards),
2736
+ maturity_modulation_last_updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
2737
+ wait_for_quiet_threshold_seconds: IDL.Nat64,
2738
+ metrics: IDL.Opt(GovernanceCachedMetrics),
2739
+ neuron_management_voting_period_seconds: IDL.Opt(IDL.Nat64),
2740
+ node_providers: IDL.Vec(NodeProvider),
2741
+ cached_daily_maturity_modulation_basis_points: IDL.Opt(IDL.Int32),
2742
+ economics: IDL.Opt(NetworkEconomics),
2743
+ restore_aging_summary: IDL.Opt(RestoreAgingSummary),
2744
+ spawning_neurons: IDL.Opt(IDL.Bool),
2745
+ latest_reward_event: IDL.Opt(RewardEvent),
2746
+ to_claim_transfers: IDL.Vec(NeuronStakeTransfer),
2747
+ short_voting_period_seconds: IDL.Nat64,
2748
+ proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
2749
+ xdr_conversion_rate: IDL.Opt(XdrConversionRate),
2750
+ in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
2751
+ neurons: IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
2752
+ genesis_timestamp_seconds: IDL.Nat64
2753
+ });
2754
+
2755
+ return [Governance];
2756
+ };