@dfinity/nns 3.0.0 → 3.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.
- package/README.md +42 -21
- package/dist/candid/governance.certified.idl.js +98 -9
- package/dist/candid/governance.d.ts +58 -8
- package/dist/candid/governance.did +47 -10
- package/dist/candid/governance.idl.js +98 -9
- package/dist/candid/governance_test.certified.idl.js +98 -9
- package/dist/candid/governance_test.d.ts +58 -8
- package/dist/candid/governance_test.did +47 -10
- package/dist/candid/governance_test.idl.js +98 -9
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-LUEC3AVX.js +20 -0
- package/dist/esm/chunk-LUEC3AVX.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/types/canisters/governance/services.d.ts +1 -1
- package/dist/types/enums/governance.enums.d.ts +5 -0
- package/dist/types/governance.canister.d.ts +2 -1
- package/dist/types/types/governance_converters.d.ts +59 -57
- package/package.json +5 -5
- package/dist/esm/chunk-DEWIE3XB.js +0 -20
- package/dist/esm/chunk-DEWIE3XB.js.map +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 0ee9960d6 (2023-12-06) 'rs/nns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record { hash : vec nat8 };
|
|
3
3
|
type Action = variant {
|
|
4
4
|
RegisterKnownNeuron : KnownNeuron;
|
|
@@ -150,10 +150,15 @@ type Duration = record { seconds : opt nat64 };
|
|
|
150
150
|
type ExecuteNnsFunction = record { nns_function : int32; payload : vec nat8 };
|
|
151
151
|
type Follow = record { topic : int32; followees : vec NeuronId };
|
|
152
152
|
type Followees = record { followees : vec NeuronId };
|
|
153
|
+
type Followers = record { followers : vec NeuronId };
|
|
154
|
+
type FollowersMap = record { followers_map : vec record { nat64; Followers } };
|
|
155
|
+
type GetNeuronsFundAuditInfoRequest = record { nns_proposal_id : opt NeuronId };
|
|
156
|
+
type GetNeuronsFundAuditInfoResponse = record { result : opt Result_6 };
|
|
153
157
|
type GlobalTimeOfDay = record { seconds_after_utc_midnight : opt nat64 };
|
|
154
158
|
type Governance = record {
|
|
155
159
|
default_followees : vec record { int32; Followees };
|
|
156
160
|
making_sns_proposal : opt MakingSnsProposal;
|
|
161
|
+
seed_accounts : opt SeedAccounts;
|
|
157
162
|
most_recent_monthly_node_provider_rewards : opt MostRecentMonthlyNodeProviderRewards;
|
|
158
163
|
maturity_modulation_last_updated_at_timestamp_seconds : opt nat64;
|
|
159
164
|
wait_for_quiet_threshold_seconds : nat64;
|
|
@@ -166,6 +171,7 @@ type Governance = record {
|
|
|
166
171
|
latest_reward_event : opt RewardEvent;
|
|
167
172
|
to_claim_transfers : vec NeuronStakeTransfer;
|
|
168
173
|
short_voting_period_seconds : nat64;
|
|
174
|
+
topic_followee_index : vec record { int32; FollowersMap };
|
|
169
175
|
migrations : opt Migrations;
|
|
170
176
|
proposals : vec record { nat64; ProposalData };
|
|
171
177
|
in_flight_commands : vec record { nat64; NeuronInFlightCommand };
|
|
@@ -183,27 +189,37 @@ type GovernanceCachedMetrics = record {
|
|
|
183
189
|
};
|
|
184
190
|
neurons_with_invalid_stake_count : nat64;
|
|
185
191
|
not_dissolving_neurons_count_buckets : vec record { nat64; nat64 };
|
|
192
|
+
ect_neuron_count : nat64;
|
|
186
193
|
total_supply_icp : nat64;
|
|
187
194
|
neurons_with_less_than_6_months_dissolve_delay_count : nat64;
|
|
188
195
|
dissolved_neurons_count : nat64;
|
|
189
196
|
community_fund_total_maturity_e8s_equivalent : nat64;
|
|
197
|
+
total_staked_e8s_seed : nat64;
|
|
198
|
+
total_staked_maturity_e8s_equivalent_ect : nat64;
|
|
190
199
|
total_staked_e8s : nat64;
|
|
191
200
|
not_dissolving_neurons_count : nat64;
|
|
192
201
|
total_locked_e8s : nat64;
|
|
193
202
|
neurons_fund_total_active_neurons : nat64;
|
|
194
203
|
total_staked_maturity_e8s_equivalent : nat64;
|
|
204
|
+
not_dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
|
|
205
|
+
total_staked_e8s_ect : nat64;
|
|
195
206
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_sum : nat64;
|
|
196
207
|
dissolved_neurons_e8s : nat64;
|
|
208
|
+
dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
|
|
197
209
|
neurons_with_less_than_6_months_dissolve_delay_e8s : nat64;
|
|
198
210
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets : vec record {
|
|
199
211
|
nat64;
|
|
200
212
|
float64;
|
|
201
213
|
};
|
|
202
214
|
dissolving_neurons_count_buckets : vec record { nat64; nat64 };
|
|
215
|
+
dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
|
|
203
216
|
dissolving_neurons_count : nat64;
|
|
204
217
|
dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
|
|
218
|
+
total_staked_maturity_e8s_equivalent_seed : nat64;
|
|
205
219
|
community_fund_total_staked_e8s : nat64;
|
|
220
|
+
not_dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
|
|
206
221
|
timestamp_seconds : nat64;
|
|
222
|
+
seed_neuron_count : nat64;
|
|
207
223
|
};
|
|
208
224
|
type GovernanceError = record { error_message : text; error_type : int32 };
|
|
209
225
|
type GovernanceParameters = record {
|
|
@@ -315,6 +331,7 @@ type Neuron = record {
|
|
|
315
331
|
controller : opt principal;
|
|
316
332
|
recent_ballots : vec BallotInfo;
|
|
317
333
|
kyc_verified : bool;
|
|
334
|
+
neuron_type : opt int32;
|
|
318
335
|
not_for_profit : bool;
|
|
319
336
|
maturity_e8s_equivalent : nat64;
|
|
320
337
|
cached_neuron_stake_e8s : nat64;
|
|
@@ -358,6 +375,7 @@ type NeuronInFlightCommand = record {
|
|
|
358
375
|
type NeuronInfo = record {
|
|
359
376
|
dissolve_delay_seconds : nat64;
|
|
360
377
|
recent_ballots : vec BallotInfo;
|
|
378
|
+
neuron_type : opt int32;
|
|
361
379
|
created_timestamp_seconds : nat64;
|
|
362
380
|
state : int32;
|
|
363
381
|
stake_e8s : nat64;
|
|
@@ -376,6 +394,11 @@ type NeuronStakeTransfer = record {
|
|
|
376
394
|
transfer_timestamp : nat64;
|
|
377
395
|
block_height : nat64;
|
|
378
396
|
};
|
|
397
|
+
type NeuronsFundAuditInfo = record {
|
|
398
|
+
final_neurons_fund_participation : opt NeuronsFundParticipation;
|
|
399
|
+
initial_neurons_fund_participation : opt NeuronsFundParticipation;
|
|
400
|
+
neurons_fund_refunds : opt NeuronsFundSnapshot;
|
|
401
|
+
};
|
|
379
402
|
type NeuronsFundData = record {
|
|
380
403
|
final_neurons_fund_participation : opt NeuronsFundParticipation;
|
|
381
404
|
initial_neurons_fund_participation : opt NeuronsFundParticipation;
|
|
@@ -402,6 +425,7 @@ type NeuronsFundParticipation = record {
|
|
|
402
425
|
max_neurons_fund_swap_participation_icp_e8s : opt nat64;
|
|
403
426
|
neurons_fund_reserves : opt NeuronsFundSnapshot;
|
|
404
427
|
ideal_matched_participation_function : opt IdealMatchedParticipationFunction;
|
|
428
|
+
allocated_neurons_fund_participation_icp_e8s : opt nat64;
|
|
405
429
|
};
|
|
406
430
|
type NeuronsFundSnapshot = record {
|
|
407
431
|
neurons_fund_neuron_portions : vec NeuronsFundNeuronPortion;
|
|
@@ -410,7 +434,8 @@ type NodeProvider = record {
|
|
|
410
434
|
id : opt principal;
|
|
411
435
|
reward_account : opt AccountIdentifier;
|
|
412
436
|
};
|
|
413
|
-
type Ok = record {
|
|
437
|
+
type Ok = record { neurons_fund_audit_info : opt NeuronsFundAuditInfo };
|
|
438
|
+
type Ok_1 = record { neurons_fund_neuron_portions : vec NeuronsFundNeuron };
|
|
414
439
|
type OpenSnsTokenSwap = record {
|
|
415
440
|
community_fund_investment_e8s : opt nat64;
|
|
416
441
|
target_swap_canister_id : opt principal;
|
|
@@ -491,14 +516,15 @@ type RegisterVote = record { vote : int32; proposal : opt NeuronId };
|
|
|
491
516
|
type RemoveHotKey = record { hot_key_to_remove : opt principal };
|
|
492
517
|
type Result = variant { Ok; Err : GovernanceError };
|
|
493
518
|
type Result_1 = variant { Error : GovernanceError; NeuronId : NeuronId };
|
|
519
|
+
type Result_10 = variant { Ok : Ok_1; Err : GovernanceError };
|
|
494
520
|
type Result_2 = variant { Ok : Neuron; Err : GovernanceError };
|
|
495
521
|
type Result_3 = variant { Ok : GovernanceCachedMetrics; Err : GovernanceError };
|
|
496
522
|
type Result_4 = variant { Ok : RewardNodeProviders; Err : GovernanceError };
|
|
497
523
|
type Result_5 = variant { Ok : NeuronInfo; Err : GovernanceError };
|
|
498
|
-
type Result_6 = variant { Ok :
|
|
499
|
-
type Result_7 = variant {
|
|
500
|
-
type Result_8 = variant { Committed :
|
|
501
|
-
type Result_9 = variant {
|
|
524
|
+
type Result_6 = variant { Ok : Ok; Err : GovernanceError };
|
|
525
|
+
type Result_7 = variant { Ok : NodeProvider; Err : GovernanceError };
|
|
526
|
+
type Result_8 = variant { Committed : Committed; Aborted : record {} };
|
|
527
|
+
type Result_9 = variant { Committed : Committed_1; Aborted : record {} };
|
|
502
528
|
type RewardEvent = record {
|
|
503
529
|
rounds_since_last_distribution : opt nat64;
|
|
504
530
|
day_after_genesis : nat64;
|
|
@@ -523,6 +549,14 @@ type RewardNodeProviders = record {
|
|
|
523
549
|
};
|
|
524
550
|
type RewardToAccount = record { to_account : opt AccountIdentifier };
|
|
525
551
|
type RewardToNeuron = record { dissolve_delay_seconds : nat64 };
|
|
552
|
+
type SeedAccount = record {
|
|
553
|
+
error_count : nat64;
|
|
554
|
+
account_id : text;
|
|
555
|
+
neuron_type : int32;
|
|
556
|
+
tag_end_timestamp_seconds : opt nat64;
|
|
557
|
+
tag_start_timestamp_seconds : opt nat64;
|
|
558
|
+
};
|
|
559
|
+
type SeedAccounts = record { accounts : vec SeedAccount };
|
|
526
560
|
type SetDefaultFollowees = record {
|
|
527
561
|
default_followees : vec record { int32; Followees };
|
|
528
562
|
};
|
|
@@ -533,14 +567,14 @@ type SetSnsTokenSwapOpenTimeWindow = record {
|
|
|
533
567
|
swap_canister_id : opt principal;
|
|
534
568
|
};
|
|
535
569
|
type SettleCommunityFundParticipation = record {
|
|
536
|
-
result : opt
|
|
570
|
+
result : opt Result_8;
|
|
537
571
|
open_sns_token_swap_proposal_id : opt nat64;
|
|
538
572
|
};
|
|
539
573
|
type SettleNeuronsFundParticipationRequest = record {
|
|
540
|
-
result : opt
|
|
574
|
+
result : opt Result_9;
|
|
541
575
|
nns_proposal_id : opt nat64;
|
|
542
576
|
};
|
|
543
|
-
type SettleNeuronsFundParticipationResponse = record { result : opt
|
|
577
|
+
type SettleNeuronsFundParticipationResponse = record { result : opt Result_10 };
|
|
544
578
|
type Spawn = record {
|
|
545
579
|
percentage_to_spawn : opt nat32;
|
|
546
580
|
new_controller : opt principal;
|
|
@@ -626,7 +660,10 @@ service : (Governance) -> {
|
|
|
626
660
|
get_neuron_info_by_id_or_subaccount : (NeuronIdOrSubaccount) -> (
|
|
627
661
|
Result_5,
|
|
628
662
|
) query;
|
|
629
|
-
|
|
663
|
+
get_neurons_fund_audit_info : (GetNeuronsFundAuditInfoRequest) -> (
|
|
664
|
+
GetNeuronsFundAuditInfoResponse,
|
|
665
|
+
) query;
|
|
666
|
+
get_node_provider_by_caller : (null) -> (Result_7) query;
|
|
630
667
|
get_pending_proposals : () -> (vec ProposalInfo) query;
|
|
631
668
|
get_proposal_info : (nat64) -> (opt ProposalInfo) query;
|
|
632
669
|
list_known_neurons : () -> (ListKnownNeuronsResponse) query;
|
|
@@ -293,6 +293,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
293
293
|
'caller' : IDL.Opt(IDL.Principal),
|
|
294
294
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
295
295
|
});
|
|
296
|
+
const SeedAccount = IDL.Record({
|
|
297
|
+
'error_count' : IDL.Nat64,
|
|
298
|
+
'account_id' : IDL.Text,
|
|
299
|
+
'neuron_type' : IDL.Int32,
|
|
300
|
+
'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
301
|
+
'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
302
|
+
});
|
|
303
|
+
const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
|
|
296
304
|
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
297
305
|
'timestamp' : IDL.Nat64,
|
|
298
306
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
@@ -311,17 +319,27 @@ export const idlFactory = ({ IDL }) => {
|
|
|
311
319
|
'not_dissolving_neurons_count_buckets' : IDL.Vec(
|
|
312
320
|
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
313
321
|
),
|
|
322
|
+
'ect_neuron_count' : IDL.Nat64,
|
|
314
323
|
'total_supply_icp' : IDL.Nat64,
|
|
315
324
|
'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
|
|
316
325
|
'dissolved_neurons_count' : IDL.Nat64,
|
|
317
326
|
'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
327
|
+
'total_staked_e8s_seed' : IDL.Nat64,
|
|
328
|
+
'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
|
|
318
329
|
'total_staked_e8s' : IDL.Nat64,
|
|
319
330
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
320
331
|
'total_locked_e8s' : IDL.Nat64,
|
|
321
332
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
322
333
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
334
|
+
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
335
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
336
|
+
),
|
|
337
|
+
'total_staked_e8s_ect' : IDL.Nat64,
|
|
323
338
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
324
339
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
340
|
+
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
341
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
342
|
+
),
|
|
325
343
|
'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
|
|
326
344
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
327
345
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -329,12 +347,20 @@ export const idlFactory = ({ IDL }) => {
|
|
|
329
347
|
'dissolving_neurons_count_buckets' : IDL.Vec(
|
|
330
348
|
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
331
349
|
),
|
|
350
|
+
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
351
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
352
|
+
),
|
|
332
353
|
'dissolving_neurons_count' : IDL.Nat64,
|
|
333
354
|
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
334
355
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
335
356
|
),
|
|
357
|
+
'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
|
|
336
358
|
'community_fund_total_staked_e8s' : IDL.Nat64,
|
|
359
|
+
'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
360
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
361
|
+
),
|
|
337
362
|
'timestamp_seconds' : IDL.Nat64,
|
|
363
|
+
'seed_neuron_count' : IDL.Nat64,
|
|
338
364
|
});
|
|
339
365
|
const RewardEvent = IDL.Record({
|
|
340
366
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
@@ -354,6 +380,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
354
380
|
'transfer_timestamp' : IDL.Nat64,
|
|
355
381
|
'block_height' : IDL.Nat64,
|
|
356
382
|
});
|
|
383
|
+
const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
|
|
384
|
+
const FollowersMap = IDL.Record({
|
|
385
|
+
'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
|
|
386
|
+
});
|
|
357
387
|
const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
|
|
358
388
|
const Migration = IDL.Record({
|
|
359
389
|
'status' : IDL.Opt(IDL.Int32),
|
|
@@ -407,6 +437,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
407
437
|
'ideal_matched_participation_function' : IDL.Opt(
|
|
408
438
|
IdealMatchedParticipationFunction
|
|
409
439
|
),
|
|
440
|
+
'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
410
441
|
});
|
|
411
442
|
const NeuronsFundData = IDL.Record({
|
|
412
443
|
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
@@ -499,6 +530,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
499
530
|
'controller' : IDL.Opt(IDL.Principal),
|
|
500
531
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
501
532
|
'kyc_verified' : IDL.Bool,
|
|
533
|
+
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
502
534
|
'not_for_profit' : IDL.Bool,
|
|
503
535
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
504
536
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
@@ -518,6 +550,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
518
550
|
const Governance = IDL.Record({
|
|
519
551
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
520
552
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
553
|
+
'seed_accounts' : IDL.Opt(SeedAccounts),
|
|
521
554
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
522
555
|
MostRecentMonthlyNodeProviderRewards
|
|
523
556
|
),
|
|
@@ -534,6 +567,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
534
567
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
535
568
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
536
569
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
570
|
+
'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
|
|
537
571
|
'migrations' : IDL.Opt(Migrations),
|
|
538
572
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
539
573
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
@@ -560,6 +594,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
560
594
|
const NeuronInfo = IDL.Record({
|
|
561
595
|
'dissolve_delay_seconds' : IDL.Nat64,
|
|
562
596
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
597
|
+
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
563
598
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
564
599
|
'state' : IDL.Int32,
|
|
565
600
|
'stake_e8s' : IDL.Nat64,
|
|
@@ -570,7 +605,22 @@ export const idlFactory = ({ IDL }) => {
|
|
|
570
605
|
'age_seconds' : IDL.Nat64,
|
|
571
606
|
});
|
|
572
607
|
const Result_5 = IDL.Variant({ 'Ok' : NeuronInfo, 'Err' : GovernanceError });
|
|
573
|
-
const
|
|
608
|
+
const GetNeuronsFundAuditInfoRequest = IDL.Record({
|
|
609
|
+
'nns_proposal_id' : IDL.Opt(NeuronId),
|
|
610
|
+
});
|
|
611
|
+
const NeuronsFundAuditInfo = IDL.Record({
|
|
612
|
+
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
613
|
+
'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
614
|
+
'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
|
|
615
|
+
});
|
|
616
|
+
const Ok = IDL.Record({
|
|
617
|
+
'neurons_fund_audit_info' : IDL.Opt(NeuronsFundAuditInfo),
|
|
618
|
+
});
|
|
619
|
+
const Result_6 = IDL.Variant({ 'Ok' : Ok, 'Err' : GovernanceError });
|
|
620
|
+
const GetNeuronsFundAuditInfoResponse = IDL.Record({
|
|
621
|
+
'result' : IDL.Opt(Result_6),
|
|
622
|
+
});
|
|
623
|
+
const Result_7 = IDL.Variant({
|
|
574
624
|
'Ok' : NodeProvider,
|
|
575
625
|
'Err' : GovernanceError,
|
|
576
626
|
});
|
|
@@ -662,12 +712,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
662
712
|
'total_neurons_fund_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
663
713
|
'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
664
714
|
});
|
|
665
|
-
const
|
|
715
|
+
const Result_8 = IDL.Variant({
|
|
666
716
|
'Committed' : Committed,
|
|
667
717
|
'Aborted' : IDL.Record({}),
|
|
668
718
|
});
|
|
669
719
|
const SettleCommunityFundParticipation = IDL.Record({
|
|
670
|
-
'result' : IDL.Opt(
|
|
720
|
+
'result' : IDL.Opt(Result_8),
|
|
671
721
|
'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
|
|
672
722
|
});
|
|
673
723
|
const Committed_1 = IDL.Record({
|
|
@@ -675,12 +725,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
675
725
|
'total_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
676
726
|
'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
677
727
|
});
|
|
678
|
-
const
|
|
728
|
+
const Result_9 = IDL.Variant({
|
|
679
729
|
'Committed' : Committed_1,
|
|
680
730
|
'Aborted' : IDL.Record({}),
|
|
681
731
|
});
|
|
682
732
|
const SettleNeuronsFundParticipationRequest = IDL.Record({
|
|
683
|
-
'result' : IDL.Opt(
|
|
733
|
+
'result' : IDL.Opt(Result_9),
|
|
684
734
|
'nns_proposal_id' : IDL.Opt(IDL.Nat64),
|
|
685
735
|
});
|
|
686
736
|
const NeuronsFundNeuron = IDL.Record({
|
|
@@ -689,12 +739,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
689
739
|
'nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
690
740
|
'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
691
741
|
});
|
|
692
|
-
const
|
|
742
|
+
const Ok_1 = IDL.Record({
|
|
693
743
|
'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuron),
|
|
694
744
|
});
|
|
695
|
-
const
|
|
745
|
+
const Result_10 = IDL.Variant({ 'Ok' : Ok_1, 'Err' : GovernanceError });
|
|
696
746
|
const SettleNeuronsFundParticipationResponse = IDL.Record({
|
|
697
|
-
'result' : IDL.Opt(
|
|
747
|
+
'result' : IDL.Opt(Result_10),
|
|
698
748
|
});
|
|
699
749
|
const UpdateNodeProvider = IDL.Record({
|
|
700
750
|
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
@@ -737,7 +787,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
737
787
|
[Result_5],
|
|
738
788
|
['query'],
|
|
739
789
|
),
|
|
740
|
-
'
|
|
790
|
+
'get_neurons_fund_audit_info' : IDL.Func(
|
|
791
|
+
[GetNeuronsFundAuditInfoRequest],
|
|
792
|
+
[GetNeuronsFundAuditInfoResponse],
|
|
793
|
+
['query'],
|
|
794
|
+
),
|
|
795
|
+
'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], ['query']),
|
|
741
796
|
'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
|
|
742
797
|
'get_proposal_info' : IDL.Func(
|
|
743
798
|
[IDL.Nat64],
|
|
@@ -1070,6 +1125,14 @@ export const init = ({ IDL }) => {
|
|
|
1070
1125
|
'caller' : IDL.Opt(IDL.Principal),
|
|
1071
1126
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
1072
1127
|
});
|
|
1128
|
+
const SeedAccount = IDL.Record({
|
|
1129
|
+
'error_count' : IDL.Nat64,
|
|
1130
|
+
'account_id' : IDL.Text,
|
|
1131
|
+
'neuron_type' : IDL.Int32,
|
|
1132
|
+
'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1133
|
+
'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1134
|
+
});
|
|
1135
|
+
const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
|
|
1073
1136
|
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
1074
1137
|
'timestamp' : IDL.Nat64,
|
|
1075
1138
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
@@ -1088,17 +1151,27 @@ export const init = ({ IDL }) => {
|
|
|
1088
1151
|
'not_dissolving_neurons_count_buckets' : IDL.Vec(
|
|
1089
1152
|
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1090
1153
|
),
|
|
1154
|
+
'ect_neuron_count' : IDL.Nat64,
|
|
1091
1155
|
'total_supply_icp' : IDL.Nat64,
|
|
1092
1156
|
'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
|
|
1093
1157
|
'dissolved_neurons_count' : IDL.Nat64,
|
|
1094
1158
|
'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1159
|
+
'total_staked_e8s_seed' : IDL.Nat64,
|
|
1160
|
+
'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
|
|
1095
1161
|
'total_staked_e8s' : IDL.Nat64,
|
|
1096
1162
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1097
1163
|
'total_locked_e8s' : IDL.Nat64,
|
|
1098
1164
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1099
1165
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1166
|
+
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1167
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1168
|
+
),
|
|
1169
|
+
'total_staked_e8s_ect' : IDL.Nat64,
|
|
1100
1170
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1101
1171
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1172
|
+
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1173
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1174
|
+
),
|
|
1102
1175
|
'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
|
|
1103
1176
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1104
1177
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1106,12 +1179,20 @@ export const init = ({ IDL }) => {
|
|
|
1106
1179
|
'dissolving_neurons_count_buckets' : IDL.Vec(
|
|
1107
1180
|
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1108
1181
|
),
|
|
1182
|
+
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1183
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1184
|
+
),
|
|
1109
1185
|
'dissolving_neurons_count' : IDL.Nat64,
|
|
1110
1186
|
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
1111
1187
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1112
1188
|
),
|
|
1189
|
+
'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
|
|
1113
1190
|
'community_fund_total_staked_e8s' : IDL.Nat64,
|
|
1191
|
+
'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1192
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1193
|
+
),
|
|
1114
1194
|
'timestamp_seconds' : IDL.Nat64,
|
|
1195
|
+
'seed_neuron_count' : IDL.Nat64,
|
|
1115
1196
|
});
|
|
1116
1197
|
const RewardEvent = IDL.Record({
|
|
1117
1198
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
@@ -1131,6 +1212,10 @@ export const init = ({ IDL }) => {
|
|
|
1131
1212
|
'transfer_timestamp' : IDL.Nat64,
|
|
1132
1213
|
'block_height' : IDL.Nat64,
|
|
1133
1214
|
});
|
|
1215
|
+
const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
|
|
1216
|
+
const FollowersMap = IDL.Record({
|
|
1217
|
+
'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
|
|
1218
|
+
});
|
|
1134
1219
|
const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
|
|
1135
1220
|
const Migration = IDL.Record({
|
|
1136
1221
|
'status' : IDL.Opt(IDL.Int32),
|
|
@@ -1184,6 +1269,7 @@ export const init = ({ IDL }) => {
|
|
|
1184
1269
|
'ideal_matched_participation_function' : IDL.Opt(
|
|
1185
1270
|
IdealMatchedParticipationFunction
|
|
1186
1271
|
),
|
|
1272
|
+
'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1187
1273
|
});
|
|
1188
1274
|
const NeuronsFundData = IDL.Record({
|
|
1189
1275
|
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
@@ -1276,6 +1362,7 @@ export const init = ({ IDL }) => {
|
|
|
1276
1362
|
'controller' : IDL.Opt(IDL.Principal),
|
|
1277
1363
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
1278
1364
|
'kyc_verified' : IDL.Bool,
|
|
1365
|
+
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
1279
1366
|
'not_for_profit' : IDL.Bool,
|
|
1280
1367
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
1281
1368
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
@@ -1295,6 +1382,7 @@ export const init = ({ IDL }) => {
|
|
|
1295
1382
|
const Governance = IDL.Record({
|
|
1296
1383
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1297
1384
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
1385
|
+
'seed_accounts' : IDL.Opt(SeedAccounts),
|
|
1298
1386
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
1299
1387
|
MostRecentMonthlyNodeProviderRewards
|
|
1300
1388
|
),
|
|
@@ -1311,6 +1399,7 @@ export const init = ({ IDL }) => {
|
|
|
1311
1399
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
1312
1400
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
1313
1401
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
1402
|
+
'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
|
|
1314
1403
|
'migrations' : IDL.Opt(Migrations),
|
|
1315
1404
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
1316
1405
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|