@dfinity/nns 10.0.1 → 10.1.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.
@@ -4,99 +4,359 @@ export const idlFactory = ({ IDL }) => {
4
4
  const Proposal = IDL.Rec();
5
5
  const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
6
6
  const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
7
- const KnownNeuronData = IDL.Record({
8
- 'name' : IDL.Text,
9
- 'description' : IDL.Opt(IDL.Text),
7
+ const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
8
+ const NodeProvider = IDL.Record({
9
+ 'id' : IDL.Opt(IDL.Principal),
10
+ 'reward_account' : IDL.Opt(AccountIdentifier),
10
11
  });
11
- const KnownNeuron = IDL.Record({
12
- 'id' : IDL.Opt(NeuronId),
13
- 'known_neuron_data' : IDL.Opt(KnownNeuronData),
12
+ const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
13
+ const RewardToAccount = IDL.Record({
14
+ 'to_account' : IDL.Opt(AccountIdentifier),
14
15
  });
15
- const FulfillSubnetRentalRequest = IDL.Record({
16
- 'user' : IDL.Opt(IDL.Principal),
17
- 'replica_version_id' : IDL.Opt(IDL.Text),
18
- 'node_ids' : IDL.Opt(IDL.Vec(IDL.Principal)),
16
+ const RewardMode = IDL.Variant({
17
+ 'RewardToNeuron' : RewardToNeuron,
18
+ 'RewardToAccount' : RewardToAccount,
19
19
  });
20
- const Spawn = IDL.Record({
21
- 'percentage_to_spawn' : IDL.Opt(IDL.Nat32),
22
- 'new_controller' : IDL.Opt(IDL.Principal),
23
- 'nonce' : IDL.Opt(IDL.Nat64),
20
+ const RewardNodeProvider = IDL.Record({
21
+ 'node_provider' : IDL.Opt(NodeProvider),
22
+ 'reward_mode' : IDL.Opt(RewardMode),
23
+ 'amount_e8s' : IDL.Nat64,
24
24
  });
25
- const Split = IDL.Record({ 'amount_e8s' : IDL.Nat64 });
26
- const Follow = IDL.Record({
27
- 'topic' : IDL.Int32,
28
- 'followees' : IDL.Vec(NeuronId),
25
+ const XdrConversionRate = IDL.Record({
26
+ 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
27
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
29
28
  });
30
- const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
31
- const Account = IDL.Record({
32
- 'owner' : IDL.Opt(IDL.Principal),
33
- 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
29
+ const MonthlyNodeProviderRewards = IDL.Record({
30
+ 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
31
+ 'registry_version' : IDL.Opt(IDL.Nat64),
32
+ 'node_providers' : IDL.Vec(NodeProvider),
33
+ 'timestamp' : IDL.Nat64,
34
+ 'rewards' : IDL.Vec(RewardNodeProvider),
35
+ 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
36
+ 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
34
37
  });
35
- const DisburseMaturity = IDL.Record({
36
- 'to_account_identifier' : IDL.Opt(AccountIdentifier),
37
- 'to_account' : IDL.Opt(Account),
38
- 'percentage_to_disburse' : IDL.Nat32,
38
+ const NeuronSubsetMetrics = IDL.Record({
39
+ 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
40
+ 'maturity_e8s_equivalent_buckets' : IDL.Vec(
41
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
42
+ ),
43
+ 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
44
+ 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
45
+ 'count' : IDL.Opt(IDL.Nat64),
46
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
47
+ 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
48
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
49
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
50
+ 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
51
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
52
+ ),
53
+ 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
54
+ 'total_voting_power' : IDL.Opt(IDL.Nat64),
55
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
56
+ 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
39
57
  });
40
- const RefreshVotingPower = IDL.Record({});
41
- const ClaimOrRefreshNeuronFromAccount = IDL.Record({
42
- 'controller' : IDL.Opt(IDL.Principal),
43
- 'memo' : IDL.Nat64,
58
+ const GovernanceCachedMetrics = IDL.Record({
59
+ 'total_maturity_e8s_equivalent' : IDL.Nat64,
60
+ 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
61
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
62
+ ),
63
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
64
+ 'garbage_collectable_neurons_count' : IDL.Nat64,
65
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
66
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
67
+ ),
68
+ 'neurons_with_invalid_stake_count' : IDL.Nat64,
69
+ 'not_dissolving_neurons_count_buckets' : IDL.Vec(
70
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
71
+ ),
72
+ 'ect_neuron_count' : IDL.Nat64,
73
+ 'total_supply_icp' : IDL.Nat64,
74
+ 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
75
+ 'dissolved_neurons_count' : IDL.Nat64,
76
+ 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
77
+ 'total_staked_e8s_seed' : IDL.Nat64,
78
+ 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
79
+ 'total_staked_e8s' : IDL.Nat64,
80
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
81
+ NeuronSubsetMetrics
82
+ ),
83
+ 'not_dissolving_neurons_count' : IDL.Nat64,
84
+ 'total_locked_e8s' : IDL.Nat64,
85
+ 'neurons_fund_total_active_neurons' : IDL.Nat64,
86
+ 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
87
+ IDL.Nat64
88
+ ),
89
+ 'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
90
+ 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
91
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
92
+ ),
93
+ 'spawning_neurons_count' : IDL.Nat64,
94
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
95
+ NeuronSubsetMetrics
96
+ ),
97
+ 'total_staked_e8s_ect' : IDL.Nat64,
98
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
99
+ 'dissolved_neurons_e8s' : IDL.Nat64,
100
+ 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
101
+ 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
102
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
103
+ ),
104
+ 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
105
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
106
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
107
+ ),
108
+ 'dissolving_neurons_count_buckets' : IDL.Vec(
109
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
110
+ ),
111
+ 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
112
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
113
+ ),
114
+ 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
115
+ NeuronSubsetMetrics
116
+ ),
117
+ 'dissolving_neurons_count' : IDL.Nat64,
118
+ 'dissolving_neurons_e8s_buckets' : IDL.Vec(
119
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
120
+ ),
121
+ 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
122
+ 'community_fund_total_staked_e8s' : IDL.Nat64,
123
+ 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
124
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
125
+ ),
126
+ 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
127
+ 'timestamp_seconds' : IDL.Nat64,
128
+ 'seed_neuron_count' : IDL.Nat64,
44
129
  });
45
- const By = IDL.Variant({
46
- 'NeuronIdOrSubaccount' : IDL.Record({}),
47
- 'MemoAndController' : ClaimOrRefreshNeuronFromAccount,
48
- 'Memo' : IDL.Nat64,
130
+ const VotingPowerEconomics = IDL.Record({
131
+ 'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
132
+ 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
133
+ 'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
49
134
  });
50
- const ClaimOrRefresh = IDL.Record({ 'by' : IDL.Opt(By) });
51
- const RemoveHotKey = IDL.Record({
52
- 'hot_key_to_remove' : IDL.Opt(IDL.Principal),
135
+ const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
136
+ const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
137
+ const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
138
+ 'contribution_threshold_xdr' : IDL.Opt(Decimal),
139
+ 'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
140
+ 'full_participation_milestone_xdr' : IDL.Opt(Decimal),
53
141
  });
54
- const AddHotKey = IDL.Record({ 'new_hot_key' : IDL.Opt(IDL.Principal) });
55
- const ChangeAutoStakeMaturity = IDL.Record({
56
- 'requested_setting_for_auto_stake_maturity' : IDL.Bool,
142
+ const NeuronsFundEconomics = IDL.Record({
143
+ 'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
144
+ 'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
145
+ NeuronsFundMatchedFundingCurveCoefficients
146
+ ),
147
+ 'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
148
+ 'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
57
149
  });
58
- const IncreaseDissolveDelay = IDL.Record({
59
- 'additional_dissolve_delay_seconds' : IDL.Nat32,
150
+ const NetworkEconomics = IDL.Record({
151
+ 'neuron_minimum_stake_e8s' : IDL.Nat64,
152
+ 'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
153
+ 'max_proposals_to_keep_per_topic' : IDL.Nat32,
154
+ 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
155
+ 'reject_cost_e8s' : IDL.Nat64,
156
+ 'transaction_fee_e8s' : IDL.Nat64,
157
+ 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
158
+ 'minimum_icp_xdr_rate' : IDL.Nat64,
159
+ 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
160
+ 'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
60
161
  });
61
- const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
62
- const SetDissolveTimestamp = IDL.Record({
63
- 'dissolve_timestamp_seconds' : IDL.Nat64,
162
+ const RestoreAgingNeuronGroup = IDL.Record({
163
+ 'count' : IDL.Opt(IDL.Nat64),
164
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
165
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
166
+ 'group_type' : IDL.Int32,
64
167
  });
65
- const Operation = IDL.Variant({
66
- 'RemoveHotKey' : RemoveHotKey,
67
- 'AddHotKey' : AddHotKey,
68
- 'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity,
69
- 'StopDissolving' : IDL.Record({}),
70
- 'StartDissolving' : IDL.Record({}),
71
- 'IncreaseDissolveDelay' : IncreaseDissolveDelay,
72
- 'SetVisibility' : SetVisibility,
73
- 'JoinCommunityFund' : IDL.Record({}),
74
- 'LeaveCommunityFund' : IDL.Record({}),
75
- 'SetDissolveTimestamp' : SetDissolveTimestamp,
168
+ const RestoreAgingSummary = IDL.Record({
169
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
170
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
76
171
  });
77
- const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
78
172
  const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
79
- const RegisterVote = IDL.Record({
80
- 'vote' : IDL.Int32,
81
- 'proposal' : IDL.Opt(ProposalId),
173
+ const RewardEvent = IDL.Record({
174
+ 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
175
+ 'day_after_genesis' : IDL.Nat64,
176
+ 'actual_timestamp_seconds' : IDL.Nat64,
177
+ 'total_available_e8s_equivalent' : IDL.Nat64,
178
+ 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
179
+ 'distributed_e8s_equivalent' : IDL.Nat64,
180
+ 'settled_proposals' : IDL.Vec(ProposalId),
82
181
  });
83
- const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
84
- const DisburseToNeuron = IDL.Record({
85
- 'dissolve_delay_seconds' : IDL.Nat64,
86
- 'kyc_verified' : IDL.Bool,
87
- 'amount_e8s' : IDL.Nat64,
88
- 'new_controller' : IDL.Opt(IDL.Principal),
89
- 'nonce' : IDL.Nat64,
182
+ const NeuronStakeTransfer = IDL.Record({
183
+ 'to_subaccount' : IDL.Vec(IDL.Nat8),
184
+ 'neuron_stake_e8s' : IDL.Nat64,
185
+ 'from' : IDL.Opt(IDL.Principal),
186
+ 'memo' : IDL.Nat64,
187
+ 'from_subaccount' : IDL.Vec(IDL.Nat8),
188
+ 'transfer_timestamp' : IDL.Nat64,
189
+ 'block_height' : IDL.Nat64,
90
190
  });
91
- const FolloweesForTopic = IDL.Record({
92
- 'topic' : IDL.Opt(IDL.Int32),
93
- 'followees' : IDL.Opt(IDL.Vec(NeuronId)),
191
+ const GovernanceError = IDL.Record({
192
+ 'error_message' : IDL.Text,
193
+ 'error_type' : IDL.Int32,
94
194
  });
95
- const SetFollowing = IDL.Record({
96
- 'topic_following' : IDL.Opt(IDL.Vec(FolloweesForTopic)),
195
+ const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
196
+ const SwapParticipationLimits = IDL.Record({
197
+ 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
198
+ 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
199
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
200
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
97
201
  });
98
- const StakeMaturity = IDL.Record({
99
- 'percentage_to_stake' : IDL.Opt(IDL.Nat32),
202
+ const NeuronsFundNeuronPortion = IDL.Record({
203
+ 'controller' : IDL.Opt(IDL.Principal),
204
+ 'hotkeys' : IDL.Vec(IDL.Principal),
205
+ 'is_capped' : IDL.Opt(IDL.Bool),
206
+ 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
207
+ 'nns_neuron_id' : IDL.Opt(NeuronId),
208
+ 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
209
+ });
210
+ const NeuronsFundSnapshot = IDL.Record({
211
+ 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
212
+ });
213
+ const IdealMatchedParticipationFunction = IDL.Record({
214
+ 'serialized_representation' : IDL.Opt(IDL.Text),
215
+ });
216
+ const NeuronsFundParticipation = IDL.Record({
217
+ 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
218
+ 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
219
+ 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
220
+ 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
221
+ 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
222
+ 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
223
+ 'ideal_matched_participation_function' : IDL.Opt(
224
+ IdealMatchedParticipationFunction
225
+ ),
226
+ 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
227
+ });
228
+ const NeuronsFundData = IDL.Record({
229
+ 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
230
+ 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
231
+ 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
232
+ });
233
+ const CanisterStatusResultV2 = IDL.Record({
234
+ 'status' : IDL.Opt(IDL.Int32),
235
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
236
+ 'controllers' : IDL.Vec(IDL.Principal),
237
+ 'memory_size' : IDL.Opt(IDL.Nat64),
238
+ 'cycles' : IDL.Opt(IDL.Nat64),
239
+ 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
240
+ 'module_hash' : IDL.Vec(IDL.Nat8),
241
+ });
242
+ const CanisterSummary = IDL.Record({
243
+ 'status' : IDL.Opt(CanisterStatusResultV2),
244
+ 'canister_id' : IDL.Opt(IDL.Principal),
245
+ });
246
+ const SwapBackgroundInformation = IDL.Record({
247
+ 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
248
+ 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
249
+ 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
250
+ 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
251
+ 'swap_canister_summary' : IDL.Opt(CanisterSummary),
252
+ 'governance_canister_summary' : IDL.Opt(CanisterSummary),
253
+ 'root_canister_summary' : IDL.Opt(CanisterSummary),
254
+ 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
255
+ });
256
+ const DerivedProposalInformation = IDL.Record({
257
+ 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
258
+ });
259
+ const Tally = IDL.Record({
260
+ 'no' : IDL.Nat64,
261
+ 'yes' : IDL.Nat64,
262
+ 'total' : IDL.Nat64,
263
+ 'timestamp_seconds' : IDL.Nat64,
264
+ });
265
+ const KnownNeuronData = IDL.Record({
266
+ 'name' : IDL.Text,
267
+ 'description' : IDL.Opt(IDL.Text),
268
+ 'links' : IDL.Opt(IDL.Vec(IDL.Text)),
269
+ });
270
+ const KnownNeuron = IDL.Record({
271
+ 'id' : IDL.Opt(NeuronId),
272
+ 'known_neuron_data' : IDL.Opt(KnownNeuronData),
273
+ });
274
+ const FulfillSubnetRentalRequest = IDL.Record({
275
+ 'user' : IDL.Opt(IDL.Principal),
276
+ 'replica_version_id' : IDL.Opt(IDL.Text),
277
+ 'node_ids' : IDL.Opt(IDL.Vec(IDL.Principal)),
278
+ });
279
+ const Spawn = IDL.Record({
280
+ 'percentage_to_spawn' : IDL.Opt(IDL.Nat32),
281
+ 'new_controller' : IDL.Opt(IDL.Principal),
282
+ 'nonce' : IDL.Opt(IDL.Nat64),
283
+ });
284
+ const Split = IDL.Record({
285
+ 'memo' : IDL.Opt(IDL.Nat64),
286
+ 'amount_e8s' : IDL.Nat64,
287
+ });
288
+ const Follow = IDL.Record({
289
+ 'topic' : IDL.Int32,
290
+ 'followees' : IDL.Vec(NeuronId),
291
+ });
292
+ const Account = IDL.Record({
293
+ 'owner' : IDL.Opt(IDL.Principal),
294
+ 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
295
+ });
296
+ const DisburseMaturity = IDL.Record({
297
+ 'to_account_identifier' : IDL.Opt(AccountIdentifier),
298
+ 'to_account' : IDL.Opt(Account),
299
+ 'percentage_to_disburse' : IDL.Nat32,
300
+ });
301
+ const RefreshVotingPower = IDL.Record({});
302
+ const ClaimOrRefreshNeuronFromAccount = IDL.Record({
303
+ 'controller' : IDL.Opt(IDL.Principal),
304
+ 'memo' : IDL.Nat64,
305
+ });
306
+ const By = IDL.Variant({
307
+ 'NeuronIdOrSubaccount' : IDL.Record({}),
308
+ 'MemoAndController' : ClaimOrRefreshNeuronFromAccount,
309
+ 'Memo' : IDL.Nat64,
310
+ });
311
+ const ClaimOrRefresh = IDL.Record({ 'by' : IDL.Opt(By) });
312
+ const RemoveHotKey = IDL.Record({
313
+ 'hot_key_to_remove' : IDL.Opt(IDL.Principal),
314
+ });
315
+ const AddHotKey = IDL.Record({ 'new_hot_key' : IDL.Opt(IDL.Principal) });
316
+ const ChangeAutoStakeMaturity = IDL.Record({
317
+ 'requested_setting_for_auto_stake_maturity' : IDL.Bool,
318
+ });
319
+ const IncreaseDissolveDelay = IDL.Record({
320
+ 'additional_dissolve_delay_seconds' : IDL.Nat32,
321
+ });
322
+ const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
323
+ const SetDissolveTimestamp = IDL.Record({
324
+ 'dissolve_timestamp_seconds' : IDL.Nat64,
325
+ });
326
+ const Operation = IDL.Variant({
327
+ 'RemoveHotKey' : RemoveHotKey,
328
+ 'AddHotKey' : AddHotKey,
329
+ 'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity,
330
+ 'StopDissolving' : IDL.Record({}),
331
+ 'StartDissolving' : IDL.Record({}),
332
+ 'IncreaseDissolveDelay' : IncreaseDissolveDelay,
333
+ 'SetVisibility' : SetVisibility,
334
+ 'JoinCommunityFund' : IDL.Record({}),
335
+ 'LeaveCommunityFund' : IDL.Record({}),
336
+ 'SetDissolveTimestamp' : SetDissolveTimestamp,
337
+ });
338
+ const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
339
+ const RegisterVote = IDL.Record({
340
+ 'vote' : IDL.Int32,
341
+ 'proposal' : IDL.Opt(ProposalId),
342
+ });
343
+ const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
344
+ const DisburseToNeuron = IDL.Record({
345
+ 'dissolve_delay_seconds' : IDL.Nat64,
346
+ 'kyc_verified' : IDL.Bool,
347
+ 'amount_e8s' : IDL.Nat64,
348
+ 'new_controller' : IDL.Opt(IDL.Principal),
349
+ 'nonce' : IDL.Nat64,
350
+ });
351
+ const FolloweesForTopic = IDL.Record({
352
+ 'topic' : IDL.Opt(IDL.Int32),
353
+ 'followees' : IDL.Opt(IDL.Vec(NeuronId)),
354
+ });
355
+ const SetFollowing = IDL.Record({
356
+ 'topic_following' : IDL.Opt(IDL.Vec(FolloweesForTopic)),
357
+ });
358
+ const StakeMaturity = IDL.Record({
359
+ 'percentage_to_stake' : IDL.Opt(IDL.Nat32),
100
360
  });
101
361
  const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
102
362
  const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
@@ -151,11 +411,11 @@ export const idlFactory = ({ IDL }) => {
151
411
  'arg_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
152
412
  'install_mode' : IDL.Opt(IDL.Int32),
153
413
  });
414
+ const DeregisterKnownNeuron = IDL.Record({ 'id' : IDL.Opt(NeuronId) });
154
415
  const StopOrStartCanister = IDL.Record({
155
416
  'action' : IDL.Opt(IDL.Int32),
156
417
  'canister_id' : IDL.Opt(IDL.Principal),
157
418
  });
158
- const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
159
419
  const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
160
420
  const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
161
421
  const VotingRewardParameters = IDL.Record({
@@ -241,23 +501,6 @@ export const idlFactory = ({ IDL }) => {
241
501
  'nns_function' : IDL.Int32,
242
502
  'payload' : IDL.Vec(IDL.Nat8),
243
503
  });
244
- const NodeProvider = IDL.Record({
245
- 'id' : IDL.Opt(IDL.Principal),
246
- 'reward_account' : IDL.Opt(AccountIdentifier),
247
- });
248
- const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
249
- const RewardToAccount = IDL.Record({
250
- 'to_account' : IDL.Opt(AccountIdentifier),
251
- });
252
- const RewardMode = IDL.Variant({
253
- 'RewardToNeuron' : RewardToNeuron,
254
- 'RewardToAccount' : RewardToAccount,
255
- });
256
- const RewardNodeProvider = IDL.Record({
257
- 'node_provider' : IDL.Opt(NodeProvider),
258
- 'reward_mode' : IDL.Opt(RewardMode),
259
- 'amount_e8s' : IDL.Nat64,
260
- });
261
504
  const NeuronBasketConstructionParameters_1 = IDL.Record({
262
505
  'dissolve_delay_interval_seconds' : IDL.Nat64,
263
506
  'count' : IDL.Nat64,
@@ -300,37 +543,6 @@ export const idlFactory = ({ IDL }) => {
300
543
  'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
301
544
  'rewards' : IDL.Vec(RewardNodeProvider),
302
545
  });
303
- const VotingPowerEconomics = IDL.Record({
304
- 'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
305
- 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
306
- 'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
307
- });
308
- const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
309
- const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
310
- 'contribution_threshold_xdr' : IDL.Opt(Decimal),
311
- 'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
312
- 'full_participation_milestone_xdr' : IDL.Opt(Decimal),
313
- });
314
- const NeuronsFundEconomics = IDL.Record({
315
- 'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
316
- 'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
317
- NeuronsFundMatchedFundingCurveCoefficients
318
- ),
319
- 'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
320
- 'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
321
- });
322
- const NetworkEconomics = IDL.Record({
323
- 'neuron_minimum_stake_e8s' : IDL.Nat64,
324
- 'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
325
- 'max_proposals_to_keep_per_topic' : IDL.Nat32,
326
- 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
327
- 'reject_cost_e8s' : IDL.Nat64,
328
- 'transaction_fee_e8s' : IDL.Nat64,
329
- 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
330
- 'minimum_icp_xdr_rate' : IDL.Nat64,
331
- 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
332
- 'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
333
- });
334
546
  const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
335
547
  const Change = IDL.Variant({
336
548
  'ToRemove' : NodeProvider,
@@ -344,6 +556,7 @@ export const idlFactory = ({ IDL }) => {
344
556
  'ManageNeuron' : ManageNeuron,
345
557
  'UpdateCanisterSettings' : UpdateCanisterSettings,
346
558
  'InstallCode' : InstallCode,
559
+ 'DeregisterKnownNeuron' : DeregisterKnownNeuron,
347
560
  'StopOrStartCanister' : StopOrStartCanister,
348
561
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
349
562
  'ExecuteNnsFunction' : ExecuteNnsFunction,
@@ -365,257 +578,45 @@ export const idlFactory = ({ IDL }) => {
365
578
  'summary' : IDL.Text,
366
579
  })
367
580
  );
368
- const MakingSnsProposal = IDL.Record({
581
+ const WaitForQuietState = IDL.Record({
582
+ 'current_deadline_timestamp_seconds' : IDL.Nat64,
583
+ });
584
+ const ProposalData = IDL.Record({
585
+ 'id' : IDL.Opt(ProposalId),
586
+ 'topic' : IDL.Opt(IDL.Int32),
587
+ 'failure_reason' : IDL.Opt(GovernanceError),
588
+ 'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
589
+ 'proposal_timestamp_seconds' : IDL.Nat64,
590
+ 'reward_event_round' : IDL.Nat64,
591
+ 'failed_timestamp_seconds' : IDL.Nat64,
592
+ 'neurons_fund_data' : IDL.Opt(NeuronsFundData),
593
+ 'reject_cost_e8s' : IDL.Nat64,
594
+ 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
595
+ 'latest_tally' : IDL.Opt(Tally),
596
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
597
+ 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
598
+ 'decided_timestamp_seconds' : IDL.Nat64,
369
599
  'proposal' : IDL.Opt(Proposal),
370
- 'caller' : IDL.Opt(IDL.Principal),
371
- 'proposer_id' : IDL.Opt(NeuronId),
600
+ 'proposer' : IDL.Opt(NeuronId),
601
+ 'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
602
+ 'executed_timestamp_seconds' : IDL.Nat64,
603
+ 'original_total_community_fund_maturity_e8s_equivalent' : IDL.Opt(
604
+ IDL.Nat64
605
+ ),
372
606
  });
373
- const XdrConversionRate = IDL.Record({
374
- 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
375
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
607
+ const Command_2 = IDL.Variant({
608
+ 'Spawn' : NeuronId,
609
+ 'Split' : Split,
610
+ 'Configure' : Configure,
611
+ 'Merge' : Merge,
612
+ 'DisburseToNeuron' : DisburseToNeuron,
613
+ 'SyncCommand' : IDL.Record({}),
614
+ 'ClaimOrRefreshNeuron' : ClaimOrRefresh,
615
+ 'MergeMaturity' : MergeMaturity,
616
+ 'Disburse' : Disburse,
376
617
  });
377
- const MonthlyNodeProviderRewards = IDL.Record({
378
- 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
379
- 'registry_version' : IDL.Opt(IDL.Nat64),
380
- 'node_providers' : IDL.Vec(NodeProvider),
381
- 'timestamp' : IDL.Nat64,
382
- 'rewards' : IDL.Vec(RewardNodeProvider),
383
- 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
384
- 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
385
- });
386
- const NeuronSubsetMetrics = IDL.Record({
387
- 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
388
- 'maturity_e8s_equivalent_buckets' : IDL.Vec(
389
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
390
- ),
391
- 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
392
- 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
393
- 'count' : IDL.Opt(IDL.Nat64),
394
- 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
395
- 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
396
- 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
397
- 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
398
- 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
399
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
400
- ),
401
- 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
402
- 'total_voting_power' : IDL.Opt(IDL.Nat64),
403
- 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
404
- 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
405
- });
406
- const GovernanceCachedMetrics = IDL.Record({
407
- 'total_maturity_e8s_equivalent' : IDL.Nat64,
408
- 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
409
- IDL.Tuple(IDL.Nat64, IDL.Float64)
410
- ),
411
- 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
412
- 'garbage_collectable_neurons_count' : IDL.Nat64,
413
- 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
414
- IDL.Tuple(IDL.Nat64, IDL.Float64)
415
- ),
416
- 'neurons_with_invalid_stake_count' : IDL.Nat64,
417
- 'not_dissolving_neurons_count_buckets' : IDL.Vec(
418
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
419
- ),
420
- 'ect_neuron_count' : IDL.Nat64,
421
- 'total_supply_icp' : IDL.Nat64,
422
- 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
423
- 'dissolved_neurons_count' : IDL.Nat64,
424
- 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
425
- 'total_staked_e8s_seed' : IDL.Nat64,
426
- 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
427
- 'total_staked_e8s' : IDL.Nat64,
428
- 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
429
- NeuronSubsetMetrics
430
- ),
431
- 'not_dissolving_neurons_count' : IDL.Nat64,
432
- 'total_locked_e8s' : IDL.Nat64,
433
- 'neurons_fund_total_active_neurons' : IDL.Nat64,
434
- 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
435
- IDL.Nat64
436
- ),
437
- 'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
438
- 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
439
- IDL.Tuple(IDL.Nat64, IDL.Float64)
440
- ),
441
- 'spawning_neurons_count' : IDL.Nat64,
442
- 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
443
- NeuronSubsetMetrics
444
- ),
445
- 'total_staked_e8s_ect' : IDL.Nat64,
446
- 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
447
- 'dissolved_neurons_e8s' : IDL.Nat64,
448
- 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
449
- 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
450
- IDL.Tuple(IDL.Nat64, IDL.Float64)
451
- ),
452
- 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
453
- 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
454
- IDL.Tuple(IDL.Nat64, IDL.Float64)
455
- ),
456
- 'dissolving_neurons_count_buckets' : IDL.Vec(
457
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
458
- ),
459
- 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
460
- IDL.Tuple(IDL.Nat64, IDL.Float64)
461
- ),
462
- 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
463
- NeuronSubsetMetrics
464
- ),
465
- 'dissolving_neurons_count' : IDL.Nat64,
466
- 'dissolving_neurons_e8s_buckets' : IDL.Vec(
467
- IDL.Tuple(IDL.Nat64, IDL.Float64)
468
- ),
469
- 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
470
- 'community_fund_total_staked_e8s' : IDL.Nat64,
471
- 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
472
- IDL.Tuple(IDL.Nat64, IDL.Float64)
473
- ),
474
- 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
475
- 'timestamp_seconds' : IDL.Nat64,
476
- 'seed_neuron_count' : IDL.Nat64,
477
- });
478
- const RestoreAgingNeuronGroup = IDL.Record({
479
- 'count' : IDL.Opt(IDL.Nat64),
480
- 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
481
- 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
482
- 'group_type' : IDL.Int32,
483
- });
484
- const RestoreAgingSummary = IDL.Record({
485
- 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
486
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
487
- });
488
- const RewardEvent = IDL.Record({
489
- 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
490
- 'day_after_genesis' : IDL.Nat64,
491
- 'actual_timestamp_seconds' : IDL.Nat64,
492
- 'total_available_e8s_equivalent' : IDL.Nat64,
493
- 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
494
- 'distributed_e8s_equivalent' : IDL.Nat64,
495
- 'settled_proposals' : IDL.Vec(ProposalId),
496
- });
497
- const NeuronStakeTransfer = IDL.Record({
498
- 'to_subaccount' : IDL.Vec(IDL.Nat8),
499
- 'neuron_stake_e8s' : IDL.Nat64,
500
- 'from' : IDL.Opt(IDL.Principal),
501
- 'memo' : IDL.Nat64,
502
- 'from_subaccount' : IDL.Vec(IDL.Nat8),
503
- 'transfer_timestamp' : IDL.Nat64,
504
- 'block_height' : IDL.Nat64,
505
- });
506
- const GovernanceError = IDL.Record({
507
- 'error_message' : IDL.Text,
508
- 'error_type' : IDL.Int32,
509
- });
510
- const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
511
- const SwapParticipationLimits = IDL.Record({
512
- 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
513
- 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
514
- 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
515
- 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
516
- });
517
- const NeuronsFundNeuronPortion = IDL.Record({
518
- 'controller' : IDL.Opt(IDL.Principal),
519
- 'hotkeys' : IDL.Vec(IDL.Principal),
520
- 'is_capped' : IDL.Opt(IDL.Bool),
521
- 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
522
- 'nns_neuron_id' : IDL.Opt(NeuronId),
523
- 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
524
- });
525
- const NeuronsFundSnapshot = IDL.Record({
526
- 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
527
- });
528
- const IdealMatchedParticipationFunction = IDL.Record({
529
- 'serialized_representation' : IDL.Opt(IDL.Text),
530
- });
531
- const NeuronsFundParticipation = IDL.Record({
532
- 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
533
- 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
534
- 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
535
- 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
536
- 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
537
- 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
538
- 'ideal_matched_participation_function' : IDL.Opt(
539
- IdealMatchedParticipationFunction
540
- ),
541
- 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
542
- });
543
- const NeuronsFundData = IDL.Record({
544
- 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
545
- 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
546
- 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
547
- });
548
- const CanisterStatusResultV2 = IDL.Record({
549
- 'status' : IDL.Opt(IDL.Int32),
550
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
551
- 'controllers' : IDL.Vec(IDL.Principal),
552
- 'memory_size' : IDL.Opt(IDL.Nat64),
553
- 'cycles' : IDL.Opt(IDL.Nat64),
554
- 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
555
- 'module_hash' : IDL.Vec(IDL.Nat8),
556
- });
557
- const CanisterSummary = IDL.Record({
558
- 'status' : IDL.Opt(CanisterStatusResultV2),
559
- 'canister_id' : IDL.Opt(IDL.Principal),
560
- });
561
- const SwapBackgroundInformation = IDL.Record({
562
- 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
563
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
564
- 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
565
- 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
566
- 'swap_canister_summary' : IDL.Opt(CanisterSummary),
567
- 'governance_canister_summary' : IDL.Opt(CanisterSummary),
568
- 'root_canister_summary' : IDL.Opt(CanisterSummary),
569
- 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
570
- });
571
- const DerivedProposalInformation = IDL.Record({
572
- 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
573
- });
574
- const Tally = IDL.Record({
575
- 'no' : IDL.Nat64,
576
- 'yes' : IDL.Nat64,
577
- 'total' : IDL.Nat64,
578
- 'timestamp_seconds' : IDL.Nat64,
579
- });
580
- const WaitForQuietState = IDL.Record({
581
- 'current_deadline_timestamp_seconds' : IDL.Nat64,
582
- });
583
- const ProposalData = IDL.Record({
584
- 'id' : IDL.Opt(ProposalId),
585
- 'topic' : IDL.Opt(IDL.Int32),
586
- 'failure_reason' : IDL.Opt(GovernanceError),
587
- 'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
588
- 'proposal_timestamp_seconds' : IDL.Nat64,
589
- 'reward_event_round' : IDL.Nat64,
590
- 'failed_timestamp_seconds' : IDL.Nat64,
591
- 'neurons_fund_data' : IDL.Opt(NeuronsFundData),
592
- 'reject_cost_e8s' : IDL.Nat64,
593
- 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
594
- 'latest_tally' : IDL.Opt(Tally),
595
- 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
596
- 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
597
- 'decided_timestamp_seconds' : IDL.Nat64,
598
- 'proposal' : IDL.Opt(Proposal),
599
- 'proposer' : IDL.Opt(NeuronId),
600
- 'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
601
- 'executed_timestamp_seconds' : IDL.Nat64,
602
- 'original_total_community_fund_maturity_e8s_equivalent' : IDL.Opt(
603
- IDL.Nat64
604
- ),
605
- });
606
- const Command_2 = IDL.Variant({
607
- 'Spawn' : NeuronId,
608
- 'Split' : Split,
609
- 'Configure' : Configure,
610
- 'Merge' : Merge,
611
- 'DisburseToNeuron' : DisburseToNeuron,
612
- 'SyncCommand' : IDL.Record({}),
613
- 'ClaimOrRefreshNeuron' : ClaimOrRefresh,
614
- 'MergeMaturity' : MergeMaturity,
615
- 'Disburse' : Disburse,
616
- });
617
- const NeuronInFlightCommand = IDL.Record({
618
- 'command' : IDL.Opt(Command_2),
618
+ const NeuronInFlightCommand = IDL.Record({
619
+ 'command' : IDL.Opt(Command_2),
619
620
  'timestamp' : IDL.Nat64,
620
621
  });
621
622
  const BallotInfo = IDL.Record({
@@ -665,7 +666,6 @@ export const idlFactory = ({ IDL }) => {
665
666
  });
666
667
  const Governance = IDL.Record({
667
668
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
668
- 'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
669
669
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
670
670
  MonthlyNodeProviderRewards
671
671
  ),
@@ -819,6 +819,7 @@ export const idlFactory = ({ IDL }) => {
819
819
  'ManageNeuron' : ManageNeuronRequest,
820
820
  'UpdateCanisterSettings' : UpdateCanisterSettings,
821
821
  'InstallCode' : InstallCodeRequest,
822
+ 'DeregisterKnownNeuron' : DeregisterKnownNeuron,
822
823
  'StopOrStartCanister' : StopOrStartCanister,
823
824
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
824
825
  'ExecuteNnsFunction' : ExecuteNnsFunction,
@@ -905,138 +906,397 @@ export const idlFactory = ({ IDL }) => {
905
906
  'MergeMaturity' : MergeMaturityResponse,
906
907
  'Disburse' : DisburseResponse,
907
908
  });
908
- const ManageNeuronResponse = IDL.Record({ 'command' : IDL.Opt(Command_1) });
909
- const Committed = IDL.Record({
910
- 'total_direct_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
911
- 'total_neurons_fund_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
912
- 'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
909
+ const ManageNeuronResponse = IDL.Record({ 'command' : IDL.Opt(Command_1) });
910
+ const Committed = IDL.Record({
911
+ 'total_direct_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
912
+ 'total_neurons_fund_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
913
+ 'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
914
+ });
915
+ const Result_8 = IDL.Variant({
916
+ 'Committed' : Committed,
917
+ 'Aborted' : IDL.Record({}),
918
+ });
919
+ const SettleCommunityFundParticipation = IDL.Record({
920
+ 'result' : IDL.Opt(Result_8),
921
+ 'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
922
+ });
923
+ const Committed_1 = IDL.Record({
924
+ 'total_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
925
+ 'total_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
926
+ 'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
927
+ });
928
+ const Result_9 = IDL.Variant({
929
+ 'Committed' : Committed_1,
930
+ 'Aborted' : IDL.Record({}),
931
+ });
932
+ const SettleNeuronsFundParticipationRequest = IDL.Record({
933
+ 'result' : IDL.Opt(Result_9),
934
+ 'nns_proposal_id' : IDL.Opt(IDL.Nat64),
935
+ });
936
+ const NeuronsFundNeuron = IDL.Record({
937
+ 'controller' : IDL.Opt(IDL.Principal),
938
+ 'hotkeys' : IDL.Opt(Principals),
939
+ 'is_capped' : IDL.Opt(IDL.Bool),
940
+ 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
941
+ 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
942
+ });
943
+ const Ok_1 = IDL.Record({
944
+ 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuron),
945
+ });
946
+ const Result_10 = IDL.Variant({ 'Ok' : Ok_1, 'Err' : GovernanceError });
947
+ const SettleNeuronsFundParticipationResponse = IDL.Record({
948
+ 'result' : IDL.Opt(Result_10),
949
+ });
950
+ const UpdateNodeProvider = IDL.Record({
951
+ 'reward_account' : IDL.Opt(AccountIdentifier),
952
+ });
953
+ return IDL.Service({
954
+ 'claim_gtc_neurons' : IDL.Func(
955
+ [IDL.Principal, IDL.Vec(NeuronId)],
956
+ [Result],
957
+ [],
958
+ ),
959
+ 'claim_or_refresh_neuron_from_account' : IDL.Func(
960
+ [ClaimOrRefreshNeuronFromAccount],
961
+ [ClaimOrRefreshNeuronFromAccountResponse],
962
+ [],
963
+ ),
964
+ 'get_build_metadata' : IDL.Func([], [IDL.Text], []),
965
+ 'get_full_neuron' : IDL.Func([IDL.Nat64], [Result_2], []),
966
+ 'get_full_neuron_by_id_or_subaccount' : IDL.Func(
967
+ [NeuronIdOrSubaccount],
968
+ [Result_2],
969
+ [],
970
+ ),
971
+ 'get_latest_reward_event' : IDL.Func([], [RewardEvent], []),
972
+ 'get_metrics' : IDL.Func([], [Result_3], []),
973
+ 'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
974
+ 'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
975
+ [],
976
+ [IDL.Opt(MonthlyNodeProviderRewards)],
977
+ [],
978
+ ),
979
+ 'get_network_economics_parameters' : IDL.Func([], [NetworkEconomics], []),
980
+ 'get_neuron_ids' : IDL.Func([], [IDL.Vec(IDL.Nat64)], []),
981
+ 'get_neuron_info' : IDL.Func([IDL.Nat64], [Result_5], []),
982
+ 'get_neuron_info_by_id_or_subaccount' : IDL.Func(
983
+ [NeuronIdOrSubaccount],
984
+ [Result_5],
985
+ [],
986
+ ),
987
+ 'get_neurons_fund_audit_info' : IDL.Func(
988
+ [GetNeuronsFundAuditInfoRequest],
989
+ [GetNeuronsFundAuditInfoResponse],
990
+ [],
991
+ ),
992
+ 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], []),
993
+ 'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], []),
994
+ 'get_proposal_info' : IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
995
+ 'get_restore_aging_summary' : IDL.Func([], [RestoreAgingSummary], []),
996
+ 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []),
997
+ 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
998
+ 'list_node_provider_rewards' : IDL.Func(
999
+ [ListNodeProviderRewardsRequest],
1000
+ [ListNodeProviderRewardsResponse],
1001
+ [],
1002
+ ),
1003
+ 'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []),
1004
+ 'list_proposals' : IDL.Func(
1005
+ [ListProposalInfo],
1006
+ [ListProposalInfoResponse],
1007
+ [],
1008
+ ),
1009
+ 'manage_neuron' : IDL.Func(
1010
+ [ManageNeuronRequest],
1011
+ [ManageNeuronResponse],
1012
+ [],
1013
+ ),
1014
+ 'settle_community_fund_participation' : IDL.Func(
1015
+ [SettleCommunityFundParticipation],
1016
+ [Result],
1017
+ [],
1018
+ ),
1019
+ 'settle_neurons_fund_participation' : IDL.Func(
1020
+ [SettleNeuronsFundParticipationRequest],
1021
+ [SettleNeuronsFundParticipationResponse],
1022
+ [],
1023
+ ),
1024
+ 'simulate_manage_neuron' : IDL.Func(
1025
+ [ManageNeuronRequest],
1026
+ [ManageNeuronResponse],
1027
+ [],
1028
+ ),
1029
+ 'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
1030
+ 'update_neuron' : IDL.Func([Neuron], [IDL.Opt(GovernanceError)], []),
1031
+ 'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
1032
+ });
1033
+ };
1034
+ export const init = ({ IDL }) => {
1035
+ const Proposal = IDL.Rec();
1036
+ const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
1037
+ const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
1038
+ const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
1039
+ const NodeProvider = IDL.Record({
1040
+ 'id' : IDL.Opt(IDL.Principal),
1041
+ 'reward_account' : IDL.Opt(AccountIdentifier),
1042
+ });
1043
+ const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
1044
+ const RewardToAccount = IDL.Record({
1045
+ 'to_account' : IDL.Opt(AccountIdentifier),
1046
+ });
1047
+ const RewardMode = IDL.Variant({
1048
+ 'RewardToNeuron' : RewardToNeuron,
1049
+ 'RewardToAccount' : RewardToAccount,
1050
+ });
1051
+ const RewardNodeProvider = IDL.Record({
1052
+ 'node_provider' : IDL.Opt(NodeProvider),
1053
+ 'reward_mode' : IDL.Opt(RewardMode),
1054
+ 'amount_e8s' : IDL.Nat64,
1055
+ });
1056
+ const XdrConversionRate = IDL.Record({
1057
+ 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1058
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1059
+ });
1060
+ const MonthlyNodeProviderRewards = IDL.Record({
1061
+ 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1062
+ 'registry_version' : IDL.Opt(IDL.Nat64),
1063
+ 'node_providers' : IDL.Vec(NodeProvider),
1064
+ 'timestamp' : IDL.Nat64,
1065
+ 'rewards' : IDL.Vec(RewardNodeProvider),
1066
+ 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
1067
+ 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
1068
+ });
1069
+ const NeuronSubsetMetrics = IDL.Record({
1070
+ 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1071
+ 'maturity_e8s_equivalent_buckets' : IDL.Vec(
1072
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1073
+ ),
1074
+ 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1075
+ 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1076
+ 'count' : IDL.Opt(IDL.Nat64),
1077
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1078
+ 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1079
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1080
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1081
+ 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1082
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1083
+ ),
1084
+ 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1085
+ 'total_voting_power' : IDL.Opt(IDL.Nat64),
1086
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1087
+ 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1088
+ });
1089
+ const GovernanceCachedMetrics = IDL.Record({
1090
+ 'total_maturity_e8s_equivalent' : IDL.Nat64,
1091
+ 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
1092
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1093
+ ),
1094
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1095
+ 'garbage_collectable_neurons_count' : IDL.Nat64,
1096
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1097
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1098
+ ),
1099
+ 'neurons_with_invalid_stake_count' : IDL.Nat64,
1100
+ 'not_dissolving_neurons_count_buckets' : IDL.Vec(
1101
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1102
+ ),
1103
+ 'ect_neuron_count' : IDL.Nat64,
1104
+ 'total_supply_icp' : IDL.Nat64,
1105
+ 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
1106
+ 'dissolved_neurons_count' : IDL.Nat64,
1107
+ 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
1108
+ 'total_staked_e8s_seed' : IDL.Nat64,
1109
+ 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1110
+ 'total_staked_e8s' : IDL.Nat64,
1111
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1112
+ NeuronSubsetMetrics
1113
+ ),
1114
+ 'not_dissolving_neurons_count' : IDL.Nat64,
1115
+ 'total_locked_e8s' : IDL.Nat64,
1116
+ 'neurons_fund_total_active_neurons' : IDL.Nat64,
1117
+ 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
1118
+ IDL.Nat64
1119
+ ),
1120
+ 'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
1121
+ 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1122
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1123
+ ),
1124
+ 'spawning_neurons_count' : IDL.Nat64,
1125
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1126
+ NeuronSubsetMetrics
1127
+ ),
1128
+ 'total_staked_e8s_ect' : IDL.Nat64,
1129
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1130
+ 'dissolved_neurons_e8s' : IDL.Nat64,
1131
+ 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
1132
+ 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1133
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1134
+ ),
1135
+ 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
1136
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1137
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1138
+ ),
1139
+ 'dissolving_neurons_count_buckets' : IDL.Vec(
1140
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1141
+ ),
1142
+ 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1143
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1144
+ ),
1145
+ 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
1146
+ NeuronSubsetMetrics
1147
+ ),
1148
+ 'dissolving_neurons_count' : IDL.Nat64,
1149
+ 'dissolving_neurons_e8s_buckets' : IDL.Vec(
1150
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1151
+ ),
1152
+ 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
1153
+ 'community_fund_total_staked_e8s' : IDL.Nat64,
1154
+ 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1155
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1156
+ ),
1157
+ 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
1158
+ 'timestamp_seconds' : IDL.Nat64,
1159
+ 'seed_neuron_count' : IDL.Nat64,
1160
+ });
1161
+ const VotingPowerEconomics = IDL.Record({
1162
+ 'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
1163
+ 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
1164
+ 'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
1165
+ });
1166
+ const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
1167
+ const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
1168
+ const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
1169
+ 'contribution_threshold_xdr' : IDL.Opt(Decimal),
1170
+ 'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
1171
+ 'full_participation_milestone_xdr' : IDL.Opt(Decimal),
1172
+ });
1173
+ const NeuronsFundEconomics = IDL.Record({
1174
+ 'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
1175
+ 'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
1176
+ NeuronsFundMatchedFundingCurveCoefficients
1177
+ ),
1178
+ 'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
1179
+ 'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
913
1180
  });
914
- const Result_8 = IDL.Variant({
915
- 'Committed' : Committed,
916
- 'Aborted' : IDL.Record({}),
1181
+ const NetworkEconomics = IDL.Record({
1182
+ 'neuron_minimum_stake_e8s' : IDL.Nat64,
1183
+ 'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
1184
+ 'max_proposals_to_keep_per_topic' : IDL.Nat32,
1185
+ 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
1186
+ 'reject_cost_e8s' : IDL.Nat64,
1187
+ 'transaction_fee_e8s' : IDL.Nat64,
1188
+ 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
1189
+ 'minimum_icp_xdr_rate' : IDL.Nat64,
1190
+ 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
1191
+ 'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
917
1192
  });
918
- const SettleCommunityFundParticipation = IDL.Record({
919
- 'result' : IDL.Opt(Result_8),
920
- 'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
1193
+ const RestoreAgingNeuronGroup = IDL.Record({
1194
+ 'count' : IDL.Opt(IDL.Nat64),
1195
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1196
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1197
+ 'group_type' : IDL.Int32,
921
1198
  });
922
- const Committed_1 = IDL.Record({
923
- 'total_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
924
- 'total_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
925
- 'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
1199
+ const RestoreAgingSummary = IDL.Record({
1200
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
1201
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
926
1202
  });
927
- const Result_9 = IDL.Variant({
928
- 'Committed' : Committed_1,
929
- 'Aborted' : IDL.Record({}),
1203
+ const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
1204
+ const RewardEvent = IDL.Record({
1205
+ 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1206
+ 'day_after_genesis' : IDL.Nat64,
1207
+ 'actual_timestamp_seconds' : IDL.Nat64,
1208
+ 'total_available_e8s_equivalent' : IDL.Nat64,
1209
+ 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1210
+ 'distributed_e8s_equivalent' : IDL.Nat64,
1211
+ 'settled_proposals' : IDL.Vec(ProposalId),
930
1212
  });
931
- const SettleNeuronsFundParticipationRequest = IDL.Record({
932
- 'result' : IDL.Opt(Result_9),
933
- 'nns_proposal_id' : IDL.Opt(IDL.Nat64),
1213
+ const NeuronStakeTransfer = IDL.Record({
1214
+ 'to_subaccount' : IDL.Vec(IDL.Nat8),
1215
+ 'neuron_stake_e8s' : IDL.Nat64,
1216
+ 'from' : IDL.Opt(IDL.Principal),
1217
+ 'memo' : IDL.Nat64,
1218
+ 'from_subaccount' : IDL.Vec(IDL.Nat8),
1219
+ 'transfer_timestamp' : IDL.Nat64,
1220
+ 'block_height' : IDL.Nat64,
934
1221
  });
935
- const NeuronsFundNeuron = IDL.Record({
1222
+ const GovernanceError = IDL.Record({
1223
+ 'error_message' : IDL.Text,
1224
+ 'error_type' : IDL.Int32,
1225
+ });
1226
+ const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
1227
+ const SwapParticipationLimits = IDL.Record({
1228
+ 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1229
+ 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1230
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1231
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1232
+ });
1233
+ const NeuronsFundNeuronPortion = IDL.Record({
936
1234
  'controller' : IDL.Opt(IDL.Principal),
937
- 'hotkeys' : IDL.Opt(Principals),
1235
+ 'hotkeys' : IDL.Vec(IDL.Principal),
938
1236
  'is_capped' : IDL.Opt(IDL.Bool),
939
- 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
1237
+ 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1238
+ 'nns_neuron_id' : IDL.Opt(NeuronId),
940
1239
  'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
941
1240
  });
942
- const Ok_1 = IDL.Record({
943
- 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuron),
1241
+ const NeuronsFundSnapshot = IDL.Record({
1242
+ 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
944
1243
  });
945
- const Result_10 = IDL.Variant({ 'Ok' : Ok_1, 'Err' : GovernanceError });
946
- const SettleNeuronsFundParticipationResponse = IDL.Record({
947
- 'result' : IDL.Opt(Result_10),
1244
+ const IdealMatchedParticipationFunction = IDL.Record({
1245
+ 'serialized_representation' : IDL.Opt(IDL.Text),
948
1246
  });
949
- const UpdateNodeProvider = IDL.Record({
950
- 'reward_account' : IDL.Opt(AccountIdentifier),
1247
+ const NeuronsFundParticipation = IDL.Record({
1248
+ 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1249
+ 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1250
+ 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1251
+ 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
1252
+ 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1253
+ 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
1254
+ 'ideal_matched_participation_function' : IDL.Opt(
1255
+ IdealMatchedParticipationFunction
1256
+ ),
1257
+ 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
951
1258
  });
952
- return IDL.Service({
953
- 'claim_gtc_neurons' : IDL.Func(
954
- [IDL.Principal, IDL.Vec(NeuronId)],
955
- [Result],
956
- [],
957
- ),
958
- 'claim_or_refresh_neuron_from_account' : IDL.Func(
959
- [ClaimOrRefreshNeuronFromAccount],
960
- [ClaimOrRefreshNeuronFromAccountResponse],
961
- [],
962
- ),
963
- 'get_build_metadata' : IDL.Func([], [IDL.Text], []),
964
- 'get_full_neuron' : IDL.Func([IDL.Nat64], [Result_2], []),
965
- 'get_full_neuron_by_id_or_subaccount' : IDL.Func(
966
- [NeuronIdOrSubaccount],
967
- [Result_2],
968
- [],
969
- ),
970
- 'get_latest_reward_event' : IDL.Func([], [RewardEvent], []),
971
- 'get_metrics' : IDL.Func([], [Result_3], []),
972
- 'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
973
- 'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
974
- [],
975
- [IDL.Opt(MonthlyNodeProviderRewards)],
976
- [],
977
- ),
978
- 'get_network_economics_parameters' : IDL.Func([], [NetworkEconomics], []),
979
- 'get_neuron_ids' : IDL.Func([], [IDL.Vec(IDL.Nat64)], []),
980
- 'get_neuron_info' : IDL.Func([IDL.Nat64], [Result_5], []),
981
- 'get_neuron_info_by_id_or_subaccount' : IDL.Func(
982
- [NeuronIdOrSubaccount],
983
- [Result_5],
984
- [],
985
- ),
986
- 'get_neurons_fund_audit_info' : IDL.Func(
987
- [GetNeuronsFundAuditInfoRequest],
988
- [GetNeuronsFundAuditInfoResponse],
989
- [],
990
- ),
991
- 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], []),
992
- 'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], []),
993
- 'get_proposal_info' : IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
994
- 'get_restore_aging_summary' : IDL.Func([], [RestoreAgingSummary], []),
995
- 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []),
996
- 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
997
- 'list_node_provider_rewards' : IDL.Func(
998
- [ListNodeProviderRewardsRequest],
999
- [ListNodeProviderRewardsResponse],
1000
- [],
1001
- ),
1002
- 'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []),
1003
- 'list_proposals' : IDL.Func(
1004
- [ListProposalInfo],
1005
- [ListProposalInfoResponse],
1006
- [],
1007
- ),
1008
- 'manage_neuron' : IDL.Func(
1009
- [ManageNeuronRequest],
1010
- [ManageNeuronResponse],
1011
- [],
1012
- ),
1013
- 'settle_community_fund_participation' : IDL.Func(
1014
- [SettleCommunityFundParticipation],
1015
- [Result],
1016
- [],
1017
- ),
1018
- 'settle_neurons_fund_participation' : IDL.Func(
1019
- [SettleNeuronsFundParticipationRequest],
1020
- [SettleNeuronsFundParticipationResponse],
1021
- [],
1022
- ),
1023
- 'simulate_manage_neuron' : IDL.Func(
1024
- [ManageNeuronRequest],
1025
- [ManageNeuronResponse],
1026
- [],
1027
- ),
1028
- 'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
1029
- 'update_neuron' : IDL.Func([Neuron], [IDL.Opt(GovernanceError)], []),
1030
- 'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
1259
+ const NeuronsFundData = IDL.Record({
1260
+ 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1261
+ 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1262
+ 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
1263
+ });
1264
+ const CanisterStatusResultV2 = IDL.Record({
1265
+ 'status' : IDL.Opt(IDL.Int32),
1266
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1267
+ 'controllers' : IDL.Vec(IDL.Principal),
1268
+ 'memory_size' : IDL.Opt(IDL.Nat64),
1269
+ 'cycles' : IDL.Opt(IDL.Nat64),
1270
+ 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
1271
+ 'module_hash' : IDL.Vec(IDL.Nat8),
1272
+ });
1273
+ const CanisterSummary = IDL.Record({
1274
+ 'status' : IDL.Opt(CanisterStatusResultV2),
1275
+ 'canister_id' : IDL.Opt(IDL.Principal),
1276
+ });
1277
+ const SwapBackgroundInformation = IDL.Record({
1278
+ 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
1279
+ 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1280
+ 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
1281
+ 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
1282
+ 'swap_canister_summary' : IDL.Opt(CanisterSummary),
1283
+ 'governance_canister_summary' : IDL.Opt(CanisterSummary),
1284
+ 'root_canister_summary' : IDL.Opt(CanisterSummary),
1285
+ 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
1286
+ });
1287
+ const DerivedProposalInformation = IDL.Record({
1288
+ 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
1289
+ });
1290
+ const Tally = IDL.Record({
1291
+ 'no' : IDL.Nat64,
1292
+ 'yes' : IDL.Nat64,
1293
+ 'total' : IDL.Nat64,
1294
+ 'timestamp_seconds' : IDL.Nat64,
1031
1295
  });
1032
- };
1033
- export const init = ({ IDL }) => {
1034
- const Proposal = IDL.Rec();
1035
- const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
1036
- const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
1037
1296
  const KnownNeuronData = IDL.Record({
1038
1297
  'name' : IDL.Text,
1039
1298
  'description' : IDL.Opt(IDL.Text),
1299
+ 'links' : IDL.Opt(IDL.Vec(IDL.Text)),
1040
1300
  });
1041
1301
  const KnownNeuron = IDL.Record({
1042
1302
  'id' : IDL.Opt(NeuronId),
@@ -1052,12 +1312,14 @@ export const init = ({ IDL }) => {
1052
1312
  'new_controller' : IDL.Opt(IDL.Principal),
1053
1313
  'nonce' : IDL.Opt(IDL.Nat64),
1054
1314
  });
1055
- const Split = IDL.Record({ 'amount_e8s' : IDL.Nat64 });
1315
+ const Split = IDL.Record({
1316
+ 'memo' : IDL.Opt(IDL.Nat64),
1317
+ 'amount_e8s' : IDL.Nat64,
1318
+ });
1056
1319
  const Follow = IDL.Record({
1057
1320
  'topic' : IDL.Int32,
1058
1321
  'followees' : IDL.Vec(NeuronId),
1059
1322
  });
1060
- const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
1061
1323
  const Account = IDL.Record({
1062
1324
  'owner' : IDL.Opt(IDL.Principal),
1063
1325
  'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
@@ -1105,7 +1367,6 @@ export const init = ({ IDL }) => {
1105
1367
  'SetDissolveTimestamp' : SetDissolveTimestamp,
1106
1368
  });
1107
1369
  const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
1108
- const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
1109
1370
  const RegisterVote = IDL.Record({
1110
1371
  'vote' : IDL.Int32,
1111
1372
  'proposal' : IDL.Opt(ProposalId),
@@ -1181,11 +1442,11 @@ export const init = ({ IDL }) => {
1181
1442
  'arg_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1182
1443
  'install_mode' : IDL.Opt(IDL.Int32),
1183
1444
  });
1445
+ const DeregisterKnownNeuron = IDL.Record({ 'id' : IDL.Opt(NeuronId) });
1184
1446
  const StopOrStartCanister = IDL.Record({
1185
1447
  'action' : IDL.Opt(IDL.Int32),
1186
1448
  'canister_id' : IDL.Opt(IDL.Principal),
1187
1449
  });
1188
- const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
1189
1450
  const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
1190
1451
  const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
1191
1452
  const VotingRewardParameters = IDL.Record({
@@ -1257,36 +1518,19 @@ export const init = ({ IDL }) => {
1257
1518
  });
1258
1519
  const CreateServiceNervousSystem = IDL.Record({
1259
1520
  'url' : IDL.Opt(IDL.Text),
1260
- 'governance_parameters' : IDL.Opt(GovernanceParameters),
1261
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1262
- 'logo' : IDL.Opt(Image),
1263
- 'name' : IDL.Opt(IDL.Text),
1264
- 'ledger_parameters' : IDL.Opt(LedgerParameters),
1265
- 'description' : IDL.Opt(IDL.Text),
1266
- 'dapp_canisters' : IDL.Vec(Canister),
1267
- 'swap_parameters' : IDL.Opt(SwapParameters),
1268
- 'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
1269
- });
1270
- const ExecuteNnsFunction = IDL.Record({
1271
- 'nns_function' : IDL.Int32,
1272
- 'payload' : IDL.Vec(IDL.Nat8),
1273
- });
1274
- const NodeProvider = IDL.Record({
1275
- 'id' : IDL.Opt(IDL.Principal),
1276
- 'reward_account' : IDL.Opt(AccountIdentifier),
1277
- });
1278
- const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
1279
- const RewardToAccount = IDL.Record({
1280
- 'to_account' : IDL.Opt(AccountIdentifier),
1281
- });
1282
- const RewardMode = IDL.Variant({
1283
- 'RewardToNeuron' : RewardToNeuron,
1284
- 'RewardToAccount' : RewardToAccount,
1521
+ 'governance_parameters' : IDL.Opt(GovernanceParameters),
1522
+ 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1523
+ 'logo' : IDL.Opt(Image),
1524
+ 'name' : IDL.Opt(IDL.Text),
1525
+ 'ledger_parameters' : IDL.Opt(LedgerParameters),
1526
+ 'description' : IDL.Opt(IDL.Text),
1527
+ 'dapp_canisters' : IDL.Vec(Canister),
1528
+ 'swap_parameters' : IDL.Opt(SwapParameters),
1529
+ 'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
1285
1530
  });
1286
- const RewardNodeProvider = IDL.Record({
1287
- 'node_provider' : IDL.Opt(NodeProvider),
1288
- 'reward_mode' : IDL.Opt(RewardMode),
1289
- 'amount_e8s' : IDL.Nat64,
1531
+ const ExecuteNnsFunction = IDL.Record({
1532
+ 'nns_function' : IDL.Int32,
1533
+ 'payload' : IDL.Vec(IDL.Nat8),
1290
1534
  });
1291
1535
  const NeuronBasketConstructionParameters_1 = IDL.Record({
1292
1536
  'dissolve_delay_interval_seconds' : IDL.Nat64,
@@ -1330,37 +1574,6 @@ export const init = ({ IDL }) => {
1330
1574
  'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
1331
1575
  'rewards' : IDL.Vec(RewardNodeProvider),
1332
1576
  });
1333
- const VotingPowerEconomics = IDL.Record({
1334
- 'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
1335
- 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
1336
- 'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
1337
- });
1338
- const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
1339
- const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
1340
- 'contribution_threshold_xdr' : IDL.Opt(Decimal),
1341
- 'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
1342
- 'full_participation_milestone_xdr' : IDL.Opt(Decimal),
1343
- });
1344
- const NeuronsFundEconomics = IDL.Record({
1345
- 'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
1346
- 'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
1347
- NeuronsFundMatchedFundingCurveCoefficients
1348
- ),
1349
- 'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
1350
- 'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
1351
- });
1352
- const NetworkEconomics = IDL.Record({
1353
- 'neuron_minimum_stake_e8s' : IDL.Nat64,
1354
- 'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
1355
- 'max_proposals_to_keep_per_topic' : IDL.Nat32,
1356
- 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
1357
- 'reject_cost_e8s' : IDL.Nat64,
1358
- 'transaction_fee_e8s' : IDL.Nat64,
1359
- 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
1360
- 'minimum_icp_xdr_rate' : IDL.Nat64,
1361
- 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
1362
- 'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
1363
- });
1364
1577
  const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
1365
1578
  const Change = IDL.Variant({
1366
1579
  'ToRemove' : NodeProvider,
@@ -1374,6 +1587,7 @@ export const init = ({ IDL }) => {
1374
1587
  'ManageNeuron' : ManageNeuron,
1375
1588
  'UpdateCanisterSettings' : UpdateCanisterSettings,
1376
1589
  'InstallCode' : InstallCode,
1590
+ 'DeregisterKnownNeuron' : DeregisterKnownNeuron,
1377
1591
  'StopOrStartCanister' : StopOrStartCanister,
1378
1592
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
1379
1593
  'ExecuteNnsFunction' : ExecuteNnsFunction,
@@ -1395,218 +1609,6 @@ export const init = ({ IDL }) => {
1395
1609
  'summary' : IDL.Text,
1396
1610
  })
1397
1611
  );
1398
- const MakingSnsProposal = IDL.Record({
1399
- 'proposal' : IDL.Opt(Proposal),
1400
- 'caller' : IDL.Opt(IDL.Principal),
1401
- 'proposer_id' : IDL.Opt(NeuronId),
1402
- });
1403
- const XdrConversionRate = IDL.Record({
1404
- 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1405
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1406
- });
1407
- const MonthlyNodeProviderRewards = IDL.Record({
1408
- 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1409
- 'registry_version' : IDL.Opt(IDL.Nat64),
1410
- 'node_providers' : IDL.Vec(NodeProvider),
1411
- 'timestamp' : IDL.Nat64,
1412
- 'rewards' : IDL.Vec(RewardNodeProvider),
1413
- 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
1414
- 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
1415
- });
1416
- const NeuronSubsetMetrics = IDL.Record({
1417
- 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1418
- 'maturity_e8s_equivalent_buckets' : IDL.Vec(
1419
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1420
- ),
1421
- 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1422
- 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1423
- 'count' : IDL.Opt(IDL.Nat64),
1424
- 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1425
- 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1426
- 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1427
- 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1428
- 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1429
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1430
- ),
1431
- 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1432
- 'total_voting_power' : IDL.Opt(IDL.Nat64),
1433
- 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1434
- 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1435
- });
1436
- const GovernanceCachedMetrics = IDL.Record({
1437
- 'total_maturity_e8s_equivalent' : IDL.Nat64,
1438
- 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
1439
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1440
- ),
1441
- 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1442
- 'garbage_collectable_neurons_count' : IDL.Nat64,
1443
- 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1444
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1445
- ),
1446
- 'neurons_with_invalid_stake_count' : IDL.Nat64,
1447
- 'not_dissolving_neurons_count_buckets' : IDL.Vec(
1448
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1449
- ),
1450
- 'ect_neuron_count' : IDL.Nat64,
1451
- 'total_supply_icp' : IDL.Nat64,
1452
- 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
1453
- 'dissolved_neurons_count' : IDL.Nat64,
1454
- 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
1455
- 'total_staked_e8s_seed' : IDL.Nat64,
1456
- 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1457
- 'total_staked_e8s' : IDL.Nat64,
1458
- 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1459
- NeuronSubsetMetrics
1460
- ),
1461
- 'not_dissolving_neurons_count' : IDL.Nat64,
1462
- 'total_locked_e8s' : IDL.Nat64,
1463
- 'neurons_fund_total_active_neurons' : IDL.Nat64,
1464
- 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
1465
- IDL.Nat64
1466
- ),
1467
- 'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
1468
- 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1469
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1470
- ),
1471
- 'spawning_neurons_count' : IDL.Nat64,
1472
- 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1473
- NeuronSubsetMetrics
1474
- ),
1475
- 'total_staked_e8s_ect' : IDL.Nat64,
1476
- 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1477
- 'dissolved_neurons_e8s' : IDL.Nat64,
1478
- 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
1479
- 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1480
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1481
- ),
1482
- 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
1483
- 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1484
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1485
- ),
1486
- 'dissolving_neurons_count_buckets' : IDL.Vec(
1487
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1488
- ),
1489
- 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1490
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1491
- ),
1492
- 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
1493
- NeuronSubsetMetrics
1494
- ),
1495
- 'dissolving_neurons_count' : IDL.Nat64,
1496
- 'dissolving_neurons_e8s_buckets' : IDL.Vec(
1497
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1498
- ),
1499
- 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
1500
- 'community_fund_total_staked_e8s' : IDL.Nat64,
1501
- 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1502
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1503
- ),
1504
- 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
1505
- 'timestamp_seconds' : IDL.Nat64,
1506
- 'seed_neuron_count' : IDL.Nat64,
1507
- });
1508
- const RestoreAgingNeuronGroup = IDL.Record({
1509
- 'count' : IDL.Opt(IDL.Nat64),
1510
- 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1511
- 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1512
- 'group_type' : IDL.Int32,
1513
- });
1514
- const RestoreAgingSummary = IDL.Record({
1515
- 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
1516
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1517
- });
1518
- const RewardEvent = IDL.Record({
1519
- 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1520
- 'day_after_genesis' : IDL.Nat64,
1521
- 'actual_timestamp_seconds' : IDL.Nat64,
1522
- 'total_available_e8s_equivalent' : IDL.Nat64,
1523
- 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1524
- 'distributed_e8s_equivalent' : IDL.Nat64,
1525
- 'settled_proposals' : IDL.Vec(ProposalId),
1526
- });
1527
- const NeuronStakeTransfer = IDL.Record({
1528
- 'to_subaccount' : IDL.Vec(IDL.Nat8),
1529
- 'neuron_stake_e8s' : IDL.Nat64,
1530
- 'from' : IDL.Opt(IDL.Principal),
1531
- 'memo' : IDL.Nat64,
1532
- 'from_subaccount' : IDL.Vec(IDL.Nat8),
1533
- 'transfer_timestamp' : IDL.Nat64,
1534
- 'block_height' : IDL.Nat64,
1535
- });
1536
- const GovernanceError = IDL.Record({
1537
- 'error_message' : IDL.Text,
1538
- 'error_type' : IDL.Int32,
1539
- });
1540
- const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
1541
- const SwapParticipationLimits = IDL.Record({
1542
- 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1543
- 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1544
- 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1545
- 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1546
- });
1547
- const NeuronsFundNeuronPortion = IDL.Record({
1548
- 'controller' : IDL.Opt(IDL.Principal),
1549
- 'hotkeys' : IDL.Vec(IDL.Principal),
1550
- 'is_capped' : IDL.Opt(IDL.Bool),
1551
- 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1552
- 'nns_neuron_id' : IDL.Opt(NeuronId),
1553
- 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
1554
- });
1555
- const NeuronsFundSnapshot = IDL.Record({
1556
- 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
1557
- });
1558
- const IdealMatchedParticipationFunction = IDL.Record({
1559
- 'serialized_representation' : IDL.Opt(IDL.Text),
1560
- });
1561
- const NeuronsFundParticipation = IDL.Record({
1562
- 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1563
- 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1564
- 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1565
- 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
1566
- 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1567
- 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
1568
- 'ideal_matched_participation_function' : IDL.Opt(
1569
- IdealMatchedParticipationFunction
1570
- ),
1571
- 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1572
- });
1573
- const NeuronsFundData = IDL.Record({
1574
- 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1575
- 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1576
- 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
1577
- });
1578
- const CanisterStatusResultV2 = IDL.Record({
1579
- 'status' : IDL.Opt(IDL.Int32),
1580
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1581
- 'controllers' : IDL.Vec(IDL.Principal),
1582
- 'memory_size' : IDL.Opt(IDL.Nat64),
1583
- 'cycles' : IDL.Opt(IDL.Nat64),
1584
- 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
1585
- 'module_hash' : IDL.Vec(IDL.Nat8),
1586
- });
1587
- const CanisterSummary = IDL.Record({
1588
- 'status' : IDL.Opt(CanisterStatusResultV2),
1589
- 'canister_id' : IDL.Opt(IDL.Principal),
1590
- });
1591
- const SwapBackgroundInformation = IDL.Record({
1592
- 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
1593
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1594
- 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
1595
- 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
1596
- 'swap_canister_summary' : IDL.Opt(CanisterSummary),
1597
- 'governance_canister_summary' : IDL.Opt(CanisterSummary),
1598
- 'root_canister_summary' : IDL.Opt(CanisterSummary),
1599
- 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
1600
- });
1601
- const DerivedProposalInformation = IDL.Record({
1602
- 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
1603
- });
1604
- const Tally = IDL.Record({
1605
- 'no' : IDL.Nat64,
1606
- 'yes' : IDL.Nat64,
1607
- 'total' : IDL.Nat64,
1608
- 'timestamp_seconds' : IDL.Nat64,
1609
- });
1610
1612
  const WaitForQuietState = IDL.Record({
1611
1613
  'current_deadline_timestamp_seconds' : IDL.Nat64,
1612
1614
  });
@@ -1695,7 +1697,6 @@ export const init = ({ IDL }) => {
1695
1697
  });
1696
1698
  const Governance = IDL.Record({
1697
1699
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1698
- 'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
1699
1700
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
1700
1701
  MonthlyNodeProviderRewards
1701
1702
  ),