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