@dfinity/nns 10.0.1 → 10.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,153 +906,412 @@ 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], ['query']),
965
+ 'get_full_neuron' : IDL.Func([IDL.Nat64], [Result_2], ['query']),
966
+ 'get_full_neuron_by_id_or_subaccount' : IDL.Func(
967
+ [NeuronIdOrSubaccount],
968
+ [Result_2],
969
+ ['query'],
970
+ ),
971
+ 'get_latest_reward_event' : IDL.Func([], [RewardEvent], ['query']),
972
+ 'get_metrics' : IDL.Func([], [Result_3], ['query']),
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
+ ['query'],
978
+ ),
979
+ 'get_network_economics_parameters' : IDL.Func(
980
+ [],
981
+ [NetworkEconomics],
982
+ ['query'],
983
+ ),
984
+ 'get_neuron_ids' : IDL.Func([], [IDL.Vec(IDL.Nat64)], ['query']),
985
+ 'get_neuron_info' : IDL.Func([IDL.Nat64], [Result_5], ['query']),
986
+ 'get_neuron_info_by_id_or_subaccount' : IDL.Func(
987
+ [NeuronIdOrSubaccount],
988
+ [Result_5],
989
+ ['query'],
990
+ ),
991
+ 'get_neurons_fund_audit_info' : IDL.Func(
992
+ [GetNeuronsFundAuditInfoRequest],
993
+ [GetNeuronsFundAuditInfoResponse],
994
+ ['query'],
995
+ ),
996
+ 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], ['query']),
997
+ 'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
998
+ 'get_proposal_info' : IDL.Func(
999
+ [IDL.Nat64],
1000
+ [IDL.Opt(ProposalInfo)],
1001
+ ['query'],
1002
+ ),
1003
+ 'get_restore_aging_summary' : IDL.Func(
1004
+ [],
1005
+ [RestoreAgingSummary],
1006
+ ['query'],
1007
+ ),
1008
+ 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], ['query']),
1009
+ 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
1010
+ 'list_node_provider_rewards' : IDL.Func(
1011
+ [ListNodeProviderRewardsRequest],
1012
+ [ListNodeProviderRewardsResponse],
1013
+ ['query'],
1014
+ ),
1015
+ 'list_node_providers' : IDL.Func(
1016
+ [],
1017
+ [ListNodeProvidersResponse],
1018
+ ['query'],
1019
+ ),
1020
+ 'list_proposals' : IDL.Func(
1021
+ [ListProposalInfo],
1022
+ [ListProposalInfoResponse],
1023
+ ['query'],
1024
+ ),
1025
+ 'manage_neuron' : IDL.Func(
1026
+ [ManageNeuronRequest],
1027
+ [ManageNeuronResponse],
1028
+ [],
1029
+ ),
1030
+ 'settle_community_fund_participation' : IDL.Func(
1031
+ [SettleCommunityFundParticipation],
1032
+ [Result],
1033
+ [],
1034
+ ),
1035
+ 'settle_neurons_fund_participation' : IDL.Func(
1036
+ [SettleNeuronsFundParticipationRequest],
1037
+ [SettleNeuronsFundParticipationResponse],
1038
+ [],
1039
+ ),
1040
+ 'simulate_manage_neuron' : IDL.Func(
1041
+ [ManageNeuronRequest],
1042
+ [ManageNeuronResponse],
1043
+ [],
1044
+ ),
1045
+ 'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
1046
+ 'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
1047
+ });
1048
+ };
1049
+ export const init = ({ IDL }) => {
1050
+ const Proposal = IDL.Rec();
1051
+ const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
1052
+ const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
1053
+ const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
1054
+ const NodeProvider = IDL.Record({
1055
+ 'id' : IDL.Opt(IDL.Principal),
1056
+ 'reward_account' : IDL.Opt(AccountIdentifier),
1057
+ });
1058
+ const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
1059
+ const RewardToAccount = IDL.Record({
1060
+ 'to_account' : IDL.Opt(AccountIdentifier),
1061
+ });
1062
+ const RewardMode = IDL.Variant({
1063
+ 'RewardToNeuron' : RewardToNeuron,
1064
+ 'RewardToAccount' : RewardToAccount,
1065
+ });
1066
+ const RewardNodeProvider = IDL.Record({
1067
+ 'node_provider' : IDL.Opt(NodeProvider),
1068
+ 'reward_mode' : IDL.Opt(RewardMode),
1069
+ 'amount_e8s' : IDL.Nat64,
1070
+ });
1071
+ const XdrConversionRate = IDL.Record({
1072
+ 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1073
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1074
+ });
1075
+ const MonthlyNodeProviderRewards = IDL.Record({
1076
+ 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1077
+ 'registry_version' : IDL.Opt(IDL.Nat64),
1078
+ 'node_providers' : IDL.Vec(NodeProvider),
1079
+ 'timestamp' : IDL.Nat64,
1080
+ 'rewards' : IDL.Vec(RewardNodeProvider),
1081
+ 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
1082
+ 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
1083
+ });
1084
+ const NeuronSubsetMetrics = IDL.Record({
1085
+ 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1086
+ 'maturity_e8s_equivalent_buckets' : IDL.Vec(
1087
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1088
+ ),
1089
+ 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1090
+ 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1091
+ 'count' : IDL.Opt(IDL.Nat64),
1092
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1093
+ 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1094
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1095
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1096
+ 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1097
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1098
+ ),
1099
+ 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1100
+ 'total_voting_power' : IDL.Opt(IDL.Nat64),
1101
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1102
+ 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1103
+ });
1104
+ const GovernanceCachedMetrics = IDL.Record({
1105
+ 'total_maturity_e8s_equivalent' : IDL.Nat64,
1106
+ 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
1107
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1108
+ ),
1109
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1110
+ 'garbage_collectable_neurons_count' : IDL.Nat64,
1111
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1112
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1113
+ ),
1114
+ 'neurons_with_invalid_stake_count' : IDL.Nat64,
1115
+ 'not_dissolving_neurons_count_buckets' : IDL.Vec(
1116
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1117
+ ),
1118
+ 'ect_neuron_count' : IDL.Nat64,
1119
+ 'total_supply_icp' : IDL.Nat64,
1120
+ 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
1121
+ 'dissolved_neurons_count' : IDL.Nat64,
1122
+ 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
1123
+ 'total_staked_e8s_seed' : IDL.Nat64,
1124
+ 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1125
+ 'total_staked_e8s' : IDL.Nat64,
1126
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1127
+ NeuronSubsetMetrics
1128
+ ),
1129
+ 'not_dissolving_neurons_count' : IDL.Nat64,
1130
+ 'total_locked_e8s' : IDL.Nat64,
1131
+ 'neurons_fund_total_active_neurons' : IDL.Nat64,
1132
+ 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
1133
+ IDL.Nat64
1134
+ ),
1135
+ 'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
1136
+ 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1137
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1138
+ ),
1139
+ 'spawning_neurons_count' : IDL.Nat64,
1140
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1141
+ NeuronSubsetMetrics
1142
+ ),
1143
+ 'total_staked_e8s_ect' : IDL.Nat64,
1144
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1145
+ 'dissolved_neurons_e8s' : IDL.Nat64,
1146
+ 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
1147
+ 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1148
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1149
+ ),
1150
+ 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
1151
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1152
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1153
+ ),
1154
+ 'dissolving_neurons_count_buckets' : IDL.Vec(
1155
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1156
+ ),
1157
+ 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1158
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1159
+ ),
1160
+ 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
1161
+ NeuronSubsetMetrics
1162
+ ),
1163
+ 'dissolving_neurons_count' : IDL.Nat64,
1164
+ 'dissolving_neurons_e8s_buckets' : IDL.Vec(
1165
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1166
+ ),
1167
+ 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
1168
+ 'community_fund_total_staked_e8s' : IDL.Nat64,
1169
+ 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1170
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1171
+ ),
1172
+ 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
1173
+ 'timestamp_seconds' : IDL.Nat64,
1174
+ 'seed_neuron_count' : IDL.Nat64,
1175
+ });
1176
+ const VotingPowerEconomics = IDL.Record({
1177
+ 'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
1178
+ 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
1179
+ 'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
1180
+ });
1181
+ const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
1182
+ const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
1183
+ const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
1184
+ 'contribution_threshold_xdr' : IDL.Opt(Decimal),
1185
+ 'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
1186
+ 'full_participation_milestone_xdr' : IDL.Opt(Decimal),
1187
+ });
1188
+ const NeuronsFundEconomics = IDL.Record({
1189
+ 'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
1190
+ 'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
1191
+ NeuronsFundMatchedFundingCurveCoefficients
1192
+ ),
1193
+ 'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
1194
+ 'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
1195
+ });
1196
+ const NetworkEconomics = IDL.Record({
1197
+ 'neuron_minimum_stake_e8s' : IDL.Nat64,
1198
+ 'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
1199
+ 'max_proposals_to_keep_per_topic' : IDL.Nat32,
1200
+ 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
1201
+ 'reject_cost_e8s' : IDL.Nat64,
1202
+ 'transaction_fee_e8s' : IDL.Nat64,
1203
+ 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
1204
+ 'minimum_icp_xdr_rate' : IDL.Nat64,
1205
+ 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
1206
+ 'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
1207
+ });
1208
+ const RestoreAgingNeuronGroup = IDL.Record({
1209
+ 'count' : IDL.Opt(IDL.Nat64),
1210
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1211
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1212
+ 'group_type' : IDL.Int32,
913
1213
  });
914
- const Result_8 = IDL.Variant({
915
- 'Committed' : Committed,
916
- 'Aborted' : IDL.Record({}),
1214
+ const RestoreAgingSummary = IDL.Record({
1215
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
1216
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
917
1217
  });
918
- const SettleCommunityFundParticipation = IDL.Record({
919
- 'result' : IDL.Opt(Result_8),
920
- 'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
1218
+ const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
1219
+ const RewardEvent = IDL.Record({
1220
+ 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1221
+ 'day_after_genesis' : IDL.Nat64,
1222
+ 'actual_timestamp_seconds' : IDL.Nat64,
1223
+ 'total_available_e8s_equivalent' : IDL.Nat64,
1224
+ 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1225
+ 'distributed_e8s_equivalent' : IDL.Nat64,
1226
+ 'settled_proposals' : IDL.Vec(ProposalId),
921
1227
  });
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),
1228
+ const NeuronStakeTransfer = IDL.Record({
1229
+ 'to_subaccount' : IDL.Vec(IDL.Nat8),
1230
+ 'neuron_stake_e8s' : IDL.Nat64,
1231
+ 'from' : IDL.Opt(IDL.Principal),
1232
+ 'memo' : IDL.Nat64,
1233
+ 'from_subaccount' : IDL.Vec(IDL.Nat8),
1234
+ 'transfer_timestamp' : IDL.Nat64,
1235
+ 'block_height' : IDL.Nat64,
926
1236
  });
927
- const Result_9 = IDL.Variant({
928
- 'Committed' : Committed_1,
929
- 'Aborted' : IDL.Record({}),
1237
+ const GovernanceError = IDL.Record({
1238
+ 'error_message' : IDL.Text,
1239
+ 'error_type' : IDL.Int32,
930
1240
  });
931
- const SettleNeuronsFundParticipationRequest = IDL.Record({
932
- 'result' : IDL.Opt(Result_9),
933
- 'nns_proposal_id' : IDL.Opt(IDL.Nat64),
1241
+ const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
1242
+ const SwapParticipationLimits = IDL.Record({
1243
+ 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1244
+ 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1245
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1246
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
934
1247
  });
935
- const NeuronsFundNeuron = IDL.Record({
1248
+ const NeuronsFundNeuronPortion = IDL.Record({
936
1249
  'controller' : IDL.Opt(IDL.Principal),
937
- 'hotkeys' : IDL.Opt(Principals),
1250
+ 'hotkeys' : IDL.Vec(IDL.Principal),
938
1251
  'is_capped' : IDL.Opt(IDL.Bool),
939
- 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
1252
+ 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1253
+ 'nns_neuron_id' : IDL.Opt(NeuronId),
940
1254
  'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
941
1255
  });
942
- const Ok_1 = IDL.Record({
943
- 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuron),
1256
+ const NeuronsFundSnapshot = IDL.Record({
1257
+ 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
944
1258
  });
945
- const Result_10 = IDL.Variant({ 'Ok' : Ok_1, 'Err' : GovernanceError });
946
- const SettleNeuronsFundParticipationResponse = IDL.Record({
947
- 'result' : IDL.Opt(Result_10),
1259
+ const IdealMatchedParticipationFunction = IDL.Record({
1260
+ 'serialized_representation' : IDL.Opt(IDL.Text),
948
1261
  });
949
- const UpdateNodeProvider = IDL.Record({
950
- 'reward_account' : IDL.Opt(AccountIdentifier),
1262
+ const NeuronsFundParticipation = IDL.Record({
1263
+ 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1264
+ 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1265
+ 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1266
+ 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
1267
+ 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1268
+ 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
1269
+ 'ideal_matched_participation_function' : IDL.Opt(
1270
+ IdealMatchedParticipationFunction
1271
+ ),
1272
+ 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
951
1273
  });
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], ['query']),
964
- 'get_full_neuron' : IDL.Func([IDL.Nat64], [Result_2], ['query']),
965
- 'get_full_neuron_by_id_or_subaccount' : IDL.Func(
966
- [NeuronIdOrSubaccount],
967
- [Result_2],
968
- ['query'],
969
- ),
970
- 'get_latest_reward_event' : IDL.Func([], [RewardEvent], ['query']),
971
- 'get_metrics' : IDL.Func([], [Result_3], ['query']),
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
- ['query'],
977
- ),
978
- 'get_network_economics_parameters' : IDL.Func(
979
- [],
980
- [NetworkEconomics],
981
- ['query'],
982
- ),
983
- 'get_neuron_ids' : IDL.Func([], [IDL.Vec(IDL.Nat64)], ['query']),
984
- 'get_neuron_info' : IDL.Func([IDL.Nat64], [Result_5], ['query']),
985
- 'get_neuron_info_by_id_or_subaccount' : IDL.Func(
986
- [NeuronIdOrSubaccount],
987
- [Result_5],
988
- ['query'],
989
- ),
990
- 'get_neurons_fund_audit_info' : IDL.Func(
991
- [GetNeuronsFundAuditInfoRequest],
992
- [GetNeuronsFundAuditInfoResponse],
993
- ['query'],
994
- ),
995
- 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], ['query']),
996
- 'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
997
- 'get_proposal_info' : IDL.Func(
998
- [IDL.Nat64],
999
- [IDL.Opt(ProposalInfo)],
1000
- ['query'],
1001
- ),
1002
- 'get_restore_aging_summary' : IDL.Func(
1003
- [],
1004
- [RestoreAgingSummary],
1005
- ['query'],
1006
- ),
1007
- 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], ['query']),
1008
- 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
1009
- 'list_node_provider_rewards' : IDL.Func(
1010
- [ListNodeProviderRewardsRequest],
1011
- [ListNodeProviderRewardsResponse],
1012
- ['query'],
1013
- ),
1014
- 'list_node_providers' : IDL.Func(
1015
- [],
1016
- [ListNodeProvidersResponse],
1017
- ['query'],
1018
- ),
1019
- 'list_proposals' : IDL.Func(
1020
- [ListProposalInfo],
1021
- [ListProposalInfoResponse],
1022
- ['query'],
1023
- ),
1024
- 'manage_neuron' : IDL.Func(
1025
- [ManageNeuronRequest],
1026
- [ManageNeuronResponse],
1027
- [],
1028
- ),
1029
- 'settle_community_fund_participation' : IDL.Func(
1030
- [SettleCommunityFundParticipation],
1031
- [Result],
1032
- [],
1033
- ),
1034
- 'settle_neurons_fund_participation' : IDL.Func(
1035
- [SettleNeuronsFundParticipationRequest],
1036
- [SettleNeuronsFundParticipationResponse],
1037
- [],
1038
- ),
1039
- 'simulate_manage_neuron' : IDL.Func(
1040
- [ManageNeuronRequest],
1041
- [ManageNeuronResponse],
1042
- [],
1043
- ),
1044
- 'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
1045
- 'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
1274
+ const NeuronsFundData = IDL.Record({
1275
+ 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1276
+ 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1277
+ 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
1278
+ });
1279
+ const CanisterStatusResultV2 = IDL.Record({
1280
+ 'status' : IDL.Opt(IDL.Int32),
1281
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1282
+ 'controllers' : IDL.Vec(IDL.Principal),
1283
+ 'memory_size' : IDL.Opt(IDL.Nat64),
1284
+ 'cycles' : IDL.Opt(IDL.Nat64),
1285
+ 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
1286
+ 'module_hash' : IDL.Vec(IDL.Nat8),
1287
+ });
1288
+ const CanisterSummary = IDL.Record({
1289
+ 'status' : IDL.Opt(CanisterStatusResultV2),
1290
+ 'canister_id' : IDL.Opt(IDL.Principal),
1291
+ });
1292
+ const SwapBackgroundInformation = IDL.Record({
1293
+ 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
1294
+ 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1295
+ 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
1296
+ 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
1297
+ 'swap_canister_summary' : IDL.Opt(CanisterSummary),
1298
+ 'governance_canister_summary' : IDL.Opt(CanisterSummary),
1299
+ 'root_canister_summary' : IDL.Opt(CanisterSummary),
1300
+ 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
1301
+ });
1302
+ const DerivedProposalInformation = IDL.Record({
1303
+ 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
1304
+ });
1305
+ const Tally = IDL.Record({
1306
+ 'no' : IDL.Nat64,
1307
+ 'yes' : IDL.Nat64,
1308
+ 'total' : IDL.Nat64,
1309
+ 'timestamp_seconds' : IDL.Nat64,
1046
1310
  });
1047
- };
1048
- export const init = ({ IDL }) => {
1049
- const Proposal = IDL.Rec();
1050
- const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
1051
- const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
1052
1311
  const KnownNeuronData = IDL.Record({
1053
1312
  'name' : IDL.Text,
1054
1313
  'description' : IDL.Opt(IDL.Text),
1314
+ 'links' : IDL.Opt(IDL.Vec(IDL.Text)),
1055
1315
  });
1056
1316
  const KnownNeuron = IDL.Record({
1057
1317
  'id' : IDL.Opt(NeuronId),
@@ -1067,12 +1327,14 @@ export const init = ({ IDL }) => {
1067
1327
  'new_controller' : IDL.Opt(IDL.Principal),
1068
1328
  'nonce' : IDL.Opt(IDL.Nat64),
1069
1329
  });
1070
- const Split = IDL.Record({ 'amount_e8s' : IDL.Nat64 });
1330
+ const Split = IDL.Record({
1331
+ 'memo' : IDL.Opt(IDL.Nat64),
1332
+ 'amount_e8s' : IDL.Nat64,
1333
+ });
1071
1334
  const Follow = IDL.Record({
1072
1335
  'topic' : IDL.Int32,
1073
1336
  'followees' : IDL.Vec(NeuronId),
1074
1337
  });
1075
- const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
1076
1338
  const Account = IDL.Record({
1077
1339
  'owner' : IDL.Opt(IDL.Principal),
1078
1340
  'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
@@ -1120,7 +1382,6 @@ export const init = ({ IDL }) => {
1120
1382
  'SetDissolveTimestamp' : SetDissolveTimestamp,
1121
1383
  });
1122
1384
  const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
1123
- const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
1124
1385
  const RegisterVote = IDL.Record({
1125
1386
  'vote' : IDL.Int32,
1126
1387
  'proposal' : IDL.Opt(ProposalId),
@@ -1196,11 +1457,11 @@ export const init = ({ IDL }) => {
1196
1457
  'arg_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1197
1458
  'install_mode' : IDL.Opt(IDL.Int32),
1198
1459
  });
1460
+ const DeregisterKnownNeuron = IDL.Record({ 'id' : IDL.Opt(NeuronId) });
1199
1461
  const StopOrStartCanister = IDL.Record({
1200
1462
  'action' : IDL.Opt(IDL.Int32),
1201
1463
  'canister_id' : IDL.Opt(IDL.Principal),
1202
1464
  });
1203
- const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
1204
1465
  const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
1205
1466
  const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
1206
1467
  const VotingRewardParameters = IDL.Record({
@@ -1272,36 +1533,19 @@ export const init = ({ IDL }) => {
1272
1533
  });
1273
1534
  const CreateServiceNervousSystem = IDL.Record({
1274
1535
  'url' : IDL.Opt(IDL.Text),
1275
- 'governance_parameters' : IDL.Opt(GovernanceParameters),
1276
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1277
- 'logo' : IDL.Opt(Image),
1278
- 'name' : IDL.Opt(IDL.Text),
1279
- 'ledger_parameters' : IDL.Opt(LedgerParameters),
1280
- 'description' : IDL.Opt(IDL.Text),
1281
- 'dapp_canisters' : IDL.Vec(Canister),
1282
- 'swap_parameters' : IDL.Opt(SwapParameters),
1283
- 'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
1284
- });
1285
- const ExecuteNnsFunction = IDL.Record({
1286
- 'nns_function' : IDL.Int32,
1287
- 'payload' : IDL.Vec(IDL.Nat8),
1288
- });
1289
- const NodeProvider = IDL.Record({
1290
- 'id' : IDL.Opt(IDL.Principal),
1291
- 'reward_account' : IDL.Opt(AccountIdentifier),
1292
- });
1293
- const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
1294
- const RewardToAccount = IDL.Record({
1295
- 'to_account' : IDL.Opt(AccountIdentifier),
1296
- });
1297
- const RewardMode = IDL.Variant({
1298
- 'RewardToNeuron' : RewardToNeuron,
1299
- 'RewardToAccount' : RewardToAccount,
1536
+ 'governance_parameters' : IDL.Opt(GovernanceParameters),
1537
+ 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1538
+ 'logo' : IDL.Opt(Image),
1539
+ 'name' : IDL.Opt(IDL.Text),
1540
+ 'ledger_parameters' : IDL.Opt(LedgerParameters),
1541
+ 'description' : IDL.Opt(IDL.Text),
1542
+ 'dapp_canisters' : IDL.Vec(Canister),
1543
+ 'swap_parameters' : IDL.Opt(SwapParameters),
1544
+ 'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
1300
1545
  });
1301
- const RewardNodeProvider = IDL.Record({
1302
- 'node_provider' : IDL.Opt(NodeProvider),
1303
- 'reward_mode' : IDL.Opt(RewardMode),
1304
- 'amount_e8s' : IDL.Nat64,
1546
+ const ExecuteNnsFunction = IDL.Record({
1547
+ 'nns_function' : IDL.Int32,
1548
+ 'payload' : IDL.Vec(IDL.Nat8),
1305
1549
  });
1306
1550
  const NeuronBasketConstructionParameters_1 = IDL.Record({
1307
1551
  'dissolve_delay_interval_seconds' : IDL.Nat64,
@@ -1345,37 +1589,6 @@ export const init = ({ IDL }) => {
1345
1589
  'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
1346
1590
  'rewards' : IDL.Vec(RewardNodeProvider),
1347
1591
  });
1348
- const VotingPowerEconomics = IDL.Record({
1349
- 'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
1350
- 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
1351
- 'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
1352
- });
1353
- const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
1354
- const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
1355
- 'contribution_threshold_xdr' : IDL.Opt(Decimal),
1356
- 'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
1357
- 'full_participation_milestone_xdr' : IDL.Opt(Decimal),
1358
- });
1359
- const NeuronsFundEconomics = IDL.Record({
1360
- 'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
1361
- 'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
1362
- NeuronsFundMatchedFundingCurveCoefficients
1363
- ),
1364
- 'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
1365
- 'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
1366
- });
1367
- const NetworkEconomics = IDL.Record({
1368
- 'neuron_minimum_stake_e8s' : IDL.Nat64,
1369
- 'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
1370
- 'max_proposals_to_keep_per_topic' : IDL.Nat32,
1371
- 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
1372
- 'reject_cost_e8s' : IDL.Nat64,
1373
- 'transaction_fee_e8s' : IDL.Nat64,
1374
- 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
1375
- 'minimum_icp_xdr_rate' : IDL.Nat64,
1376
- 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
1377
- 'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
1378
- });
1379
1592
  const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
1380
1593
  const Change = IDL.Variant({
1381
1594
  'ToRemove' : NodeProvider,
@@ -1389,6 +1602,7 @@ export const init = ({ IDL }) => {
1389
1602
  'ManageNeuron' : ManageNeuron,
1390
1603
  'UpdateCanisterSettings' : UpdateCanisterSettings,
1391
1604
  'InstallCode' : InstallCode,
1605
+ 'DeregisterKnownNeuron' : DeregisterKnownNeuron,
1392
1606
  'StopOrStartCanister' : StopOrStartCanister,
1393
1607
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
1394
1608
  'ExecuteNnsFunction' : ExecuteNnsFunction,
@@ -1410,218 +1624,6 @@ export const init = ({ IDL }) => {
1410
1624
  'summary' : IDL.Text,
1411
1625
  })
1412
1626
  );
1413
- const MakingSnsProposal = IDL.Record({
1414
- 'proposal' : IDL.Opt(Proposal),
1415
- 'caller' : IDL.Opt(IDL.Principal),
1416
- 'proposer_id' : IDL.Opt(NeuronId),
1417
- });
1418
- const XdrConversionRate = IDL.Record({
1419
- 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1420
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1421
- });
1422
- const MonthlyNodeProviderRewards = IDL.Record({
1423
- 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1424
- 'registry_version' : IDL.Opt(IDL.Nat64),
1425
- 'node_providers' : IDL.Vec(NodeProvider),
1426
- 'timestamp' : IDL.Nat64,
1427
- 'rewards' : IDL.Vec(RewardNodeProvider),
1428
- 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
1429
- 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
1430
- });
1431
- const NeuronSubsetMetrics = IDL.Record({
1432
- 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1433
- 'maturity_e8s_equivalent_buckets' : IDL.Vec(
1434
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1435
- ),
1436
- 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1437
- 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1438
- 'count' : IDL.Opt(IDL.Nat64),
1439
- 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1440
- 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1441
- 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1442
- 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1443
- 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1444
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1445
- ),
1446
- 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1447
- 'total_voting_power' : IDL.Opt(IDL.Nat64),
1448
- 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1449
- 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1450
- });
1451
- const GovernanceCachedMetrics = IDL.Record({
1452
- 'total_maturity_e8s_equivalent' : IDL.Nat64,
1453
- 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
1454
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1455
- ),
1456
- 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1457
- 'garbage_collectable_neurons_count' : IDL.Nat64,
1458
- 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1459
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1460
- ),
1461
- 'neurons_with_invalid_stake_count' : IDL.Nat64,
1462
- 'not_dissolving_neurons_count_buckets' : IDL.Vec(
1463
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1464
- ),
1465
- 'ect_neuron_count' : IDL.Nat64,
1466
- 'total_supply_icp' : IDL.Nat64,
1467
- 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
1468
- 'dissolved_neurons_count' : IDL.Nat64,
1469
- 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
1470
- 'total_staked_e8s_seed' : IDL.Nat64,
1471
- 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1472
- 'total_staked_e8s' : IDL.Nat64,
1473
- 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1474
- NeuronSubsetMetrics
1475
- ),
1476
- 'not_dissolving_neurons_count' : IDL.Nat64,
1477
- 'total_locked_e8s' : IDL.Nat64,
1478
- 'neurons_fund_total_active_neurons' : IDL.Nat64,
1479
- 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
1480
- IDL.Nat64
1481
- ),
1482
- 'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
1483
- 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1484
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1485
- ),
1486
- 'spawning_neurons_count' : IDL.Nat64,
1487
- 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1488
- NeuronSubsetMetrics
1489
- ),
1490
- 'total_staked_e8s_ect' : IDL.Nat64,
1491
- 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1492
- 'dissolved_neurons_e8s' : IDL.Nat64,
1493
- 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
1494
- 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1495
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1496
- ),
1497
- 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
1498
- 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1499
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1500
- ),
1501
- 'dissolving_neurons_count_buckets' : IDL.Vec(
1502
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1503
- ),
1504
- 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1505
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1506
- ),
1507
- 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
1508
- NeuronSubsetMetrics
1509
- ),
1510
- 'dissolving_neurons_count' : IDL.Nat64,
1511
- 'dissolving_neurons_e8s_buckets' : IDL.Vec(
1512
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1513
- ),
1514
- 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
1515
- 'community_fund_total_staked_e8s' : IDL.Nat64,
1516
- 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1517
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1518
- ),
1519
- 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
1520
- 'timestamp_seconds' : IDL.Nat64,
1521
- 'seed_neuron_count' : IDL.Nat64,
1522
- });
1523
- const RestoreAgingNeuronGroup = IDL.Record({
1524
- 'count' : IDL.Opt(IDL.Nat64),
1525
- 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1526
- 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1527
- 'group_type' : IDL.Int32,
1528
- });
1529
- const RestoreAgingSummary = IDL.Record({
1530
- 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
1531
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1532
- });
1533
- const RewardEvent = IDL.Record({
1534
- 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1535
- 'day_after_genesis' : IDL.Nat64,
1536
- 'actual_timestamp_seconds' : IDL.Nat64,
1537
- 'total_available_e8s_equivalent' : IDL.Nat64,
1538
- 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1539
- 'distributed_e8s_equivalent' : IDL.Nat64,
1540
- 'settled_proposals' : IDL.Vec(ProposalId),
1541
- });
1542
- const NeuronStakeTransfer = IDL.Record({
1543
- 'to_subaccount' : IDL.Vec(IDL.Nat8),
1544
- 'neuron_stake_e8s' : IDL.Nat64,
1545
- 'from' : IDL.Opt(IDL.Principal),
1546
- 'memo' : IDL.Nat64,
1547
- 'from_subaccount' : IDL.Vec(IDL.Nat8),
1548
- 'transfer_timestamp' : IDL.Nat64,
1549
- 'block_height' : IDL.Nat64,
1550
- });
1551
- const GovernanceError = IDL.Record({
1552
- 'error_message' : IDL.Text,
1553
- 'error_type' : IDL.Int32,
1554
- });
1555
- const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
1556
- const SwapParticipationLimits = IDL.Record({
1557
- 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1558
- 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1559
- 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1560
- 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1561
- });
1562
- const NeuronsFundNeuronPortion = IDL.Record({
1563
- 'controller' : IDL.Opt(IDL.Principal),
1564
- 'hotkeys' : IDL.Vec(IDL.Principal),
1565
- 'is_capped' : IDL.Opt(IDL.Bool),
1566
- 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1567
- 'nns_neuron_id' : IDL.Opt(NeuronId),
1568
- 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
1569
- });
1570
- const NeuronsFundSnapshot = IDL.Record({
1571
- 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
1572
- });
1573
- const IdealMatchedParticipationFunction = IDL.Record({
1574
- 'serialized_representation' : IDL.Opt(IDL.Text),
1575
- });
1576
- const NeuronsFundParticipation = IDL.Record({
1577
- 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1578
- 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1579
- 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1580
- 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
1581
- 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1582
- 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
1583
- 'ideal_matched_participation_function' : IDL.Opt(
1584
- IdealMatchedParticipationFunction
1585
- ),
1586
- 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1587
- });
1588
- const NeuronsFundData = IDL.Record({
1589
- 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1590
- 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1591
- 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
1592
- });
1593
- const CanisterStatusResultV2 = IDL.Record({
1594
- 'status' : IDL.Opt(IDL.Int32),
1595
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1596
- 'controllers' : IDL.Vec(IDL.Principal),
1597
- 'memory_size' : IDL.Opt(IDL.Nat64),
1598
- 'cycles' : IDL.Opt(IDL.Nat64),
1599
- 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
1600
- 'module_hash' : IDL.Vec(IDL.Nat8),
1601
- });
1602
- const CanisterSummary = IDL.Record({
1603
- 'status' : IDL.Opt(CanisterStatusResultV2),
1604
- 'canister_id' : IDL.Opt(IDL.Principal),
1605
- });
1606
- const SwapBackgroundInformation = IDL.Record({
1607
- 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
1608
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1609
- 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
1610
- 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
1611
- 'swap_canister_summary' : IDL.Opt(CanisterSummary),
1612
- 'governance_canister_summary' : IDL.Opt(CanisterSummary),
1613
- 'root_canister_summary' : IDL.Opt(CanisterSummary),
1614
- 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
1615
- });
1616
- const DerivedProposalInformation = IDL.Record({
1617
- 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
1618
- });
1619
- const Tally = IDL.Record({
1620
- 'no' : IDL.Nat64,
1621
- 'yes' : IDL.Nat64,
1622
- 'total' : IDL.Nat64,
1623
- 'timestamp_seconds' : IDL.Nat64,
1624
- });
1625
1627
  const WaitForQuietState = IDL.Record({
1626
1628
  'current_deadline_timestamp_seconds' : IDL.Nat64,
1627
1629
  });
@@ -1710,7 +1712,6 @@ export const init = ({ IDL }) => {
1710
1712
  });
1711
1713
  const Governance = IDL.Record({
1712
1714
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1713
- 'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
1714
1715
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
1715
1716
  MonthlyNodeProviderRewards
1716
1717
  ),