@dfinity/nns 6.0.0 → 7.0.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/dist/candid/genesis_token.did +23 -6
- package/dist/candid/governance.certified.idl.js +1 -31
- package/dist/candid/governance.d.ts +3 -18
- package/dist/candid/governance.did +386 -87
- package/dist/candid/governance.idl.js +1 -31
- package/dist/candid/governance_test.certified.idl.js +1 -31
- package/dist/candid/governance_test.d.ts +3 -18
- package/dist/candid/governance_test.did +388 -87
- package/dist/candid/governance_test.idl.js +1 -31
- package/dist/candid/sns_wasm.did +136 -27
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-QAGO7B5R.js +19 -0
- package/dist/esm/chunk-QAGO7B5R.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/types/governance_converters.d.ts +0 -6
- package/package.json +6 -6
- package/dist/esm/chunk-L6YE6E7N.js +0 -19
- package/dist/esm/chunk-L6YE6E7N.js.map +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) 'rs/nns/gtc/canister/gtc.did' by import-candid
|
|
2
2
|
type AccountState = record {
|
|
3
3
|
authenticated_principal_id : opt principal;
|
|
4
4
|
successfully_transferred_neurons : vec TransferredNeuron;
|
|
@@ -10,15 +10,32 @@ type AccountState = record {
|
|
|
10
10
|
has_forwarded : bool;
|
|
11
11
|
icpts : nat32;
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
type
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
|
|
14
|
+
type NeuronId = record {
|
|
15
|
+
id : nat64
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type Result = variant {
|
|
19
|
+
Ok : vec NeuronId;
|
|
20
|
+
Err : text
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
type Result_1 = variant {
|
|
24
|
+
Ok;
|
|
25
|
+
Err : text
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
type Result_2 = variant {
|
|
29
|
+
Ok : AccountState;
|
|
30
|
+
Err : text
|
|
31
|
+
};
|
|
32
|
+
|
|
17
33
|
type TransferredNeuron = record {
|
|
18
34
|
error : opt text;
|
|
19
35
|
timestamp_seconds : nat64;
|
|
20
36
|
neuron_id : opt NeuronId;
|
|
21
37
|
};
|
|
38
|
+
|
|
22
39
|
service : {
|
|
23
40
|
balance : (text) -> (nat32) query;
|
|
24
41
|
claim_neurons : (text) -> (Result);
|
|
@@ -28,4 +45,4 @@ service : {
|
|
|
28
45
|
get_build_metadata : () -> (text) query;
|
|
29
46
|
len : () -> (nat16) query;
|
|
30
47
|
total : () -> (nat32) query;
|
|
31
|
-
}
|
|
48
|
+
}
|
|
@@ -476,17 +476,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
476
476
|
'error_message' : IDL.Text,
|
|
477
477
|
'error_type' : IDL.Int32,
|
|
478
478
|
});
|
|
479
|
-
const CfNeuron = IDL.Record({
|
|
480
|
-
'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
|
|
481
|
-
'hotkeys' : IDL.Opt(Principals),
|
|
482
|
-
'nns_neuron_id' : IDL.Nat64,
|
|
483
|
-
'amount_icp_e8s' : IDL.Nat64,
|
|
484
|
-
});
|
|
485
|
-
const CfParticipant = IDL.Record({
|
|
486
|
-
'controller' : IDL.Opt(IDL.Principal),
|
|
487
|
-
'hotkey_principal' : IDL.Text,
|
|
488
|
-
'cf_neurons' : IDL.Vec(CfNeuron),
|
|
489
|
-
});
|
|
490
479
|
const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
|
|
491
480
|
const SwapParticipationLimits = IDL.Record({
|
|
492
481
|
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
@@ -496,7 +485,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
496
485
|
});
|
|
497
486
|
const NeuronsFundNeuronPortion = IDL.Record({
|
|
498
487
|
'controller' : IDL.Opt(IDL.Principal),
|
|
499
|
-
'hotkey_principal' : IDL.Opt(IDL.Principal),
|
|
500
488
|
'hotkeys' : IDL.Vec(IDL.Principal),
|
|
501
489
|
'is_capped' : IDL.Opt(IDL.Bool),
|
|
502
490
|
'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
@@ -564,7 +552,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
564
552
|
const ProposalData = IDL.Record({
|
|
565
553
|
'id' : IDL.Opt(NeuronId),
|
|
566
554
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
567
|
-
'cf_participants' : IDL.Vec(CfParticipant),
|
|
568
555
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
569
556
|
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
570
557
|
'reward_event_round' : IDL.Nat64,
|
|
@@ -672,7 +659,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
672
659
|
'Err' : GovernanceError,
|
|
673
660
|
});
|
|
674
661
|
const Result_4 = IDL.Variant({
|
|
675
|
-
'Ok' :
|
|
662
|
+
'Ok' : MonthlyNodeProviderRewards,
|
|
676
663
|
'Err' : GovernanceError,
|
|
677
664
|
});
|
|
678
665
|
const NeuronInfo = IDL.Record({
|
|
@@ -782,9 +769,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
782
769
|
'CreateServiceNervousSystem' : CreateServiceNervousSystem,
|
|
783
770
|
'ExecuteNnsFunction' : ExecuteNnsFunction,
|
|
784
771
|
'RewardNodeProvider' : RewardNodeProvider,
|
|
785
|
-
'OpenSnsTokenSwap' : OpenSnsTokenSwap,
|
|
786
|
-
'SetSnsTokenSwapOpenTimeWindow' : SetSnsTokenSwapOpenTimeWindow,
|
|
787
|
-
'SetDefaultFollowees' : SetDefaultFollowees,
|
|
788
772
|
'RewardNodeProviders' : RewardNodeProviders,
|
|
789
773
|
'ManageNetworkEconomics' : NetworkEconomics,
|
|
790
774
|
'ApproveGenesisKyc' : Principals,
|
|
@@ -885,7 +869,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
885
869
|
});
|
|
886
870
|
const NeuronsFundNeuron = IDL.Record({
|
|
887
871
|
'controller' : IDL.Opt(IDL.Principal),
|
|
888
|
-
'hotkey_principal' : IDL.Opt(IDL.Text),
|
|
889
872
|
'hotkeys' : IDL.Opt(Principals),
|
|
890
873
|
'is_capped' : IDL.Opt(IDL.Bool),
|
|
891
874
|
'nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
@@ -1457,17 +1440,6 @@ export const init = ({ IDL }) => {
|
|
|
1457
1440
|
'error_message' : IDL.Text,
|
|
1458
1441
|
'error_type' : IDL.Int32,
|
|
1459
1442
|
});
|
|
1460
|
-
const CfNeuron = IDL.Record({
|
|
1461
|
-
'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
|
|
1462
|
-
'hotkeys' : IDL.Opt(Principals),
|
|
1463
|
-
'nns_neuron_id' : IDL.Nat64,
|
|
1464
|
-
'amount_icp_e8s' : IDL.Nat64,
|
|
1465
|
-
});
|
|
1466
|
-
const CfParticipant = IDL.Record({
|
|
1467
|
-
'controller' : IDL.Opt(IDL.Principal),
|
|
1468
|
-
'hotkey_principal' : IDL.Text,
|
|
1469
|
-
'cf_neurons' : IDL.Vec(CfNeuron),
|
|
1470
|
-
});
|
|
1471
1443
|
const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
|
|
1472
1444
|
const SwapParticipationLimits = IDL.Record({
|
|
1473
1445
|
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
@@ -1477,7 +1449,6 @@ export const init = ({ IDL }) => {
|
|
|
1477
1449
|
});
|
|
1478
1450
|
const NeuronsFundNeuronPortion = IDL.Record({
|
|
1479
1451
|
'controller' : IDL.Opt(IDL.Principal),
|
|
1480
|
-
'hotkey_principal' : IDL.Opt(IDL.Principal),
|
|
1481
1452
|
'hotkeys' : IDL.Vec(IDL.Principal),
|
|
1482
1453
|
'is_capped' : IDL.Opt(IDL.Bool),
|
|
1483
1454
|
'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
@@ -1545,7 +1516,6 @@ export const init = ({ IDL }) => {
|
|
|
1545
1516
|
const ProposalData = IDL.Record({
|
|
1546
1517
|
'id' : IDL.Opt(NeuronId),
|
|
1547
1518
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
1548
|
-
'cf_participants' : IDL.Vec(CfParticipant),
|
|
1549
1519
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
1550
1520
|
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
1551
1521
|
'reward_event_round' : IDL.Nat64,
|
|
@@ -70,17 +70,6 @@ export interface CanisterSummary {
|
|
|
70
70
|
status: [] | [CanisterStatusResultV2];
|
|
71
71
|
canister_id: [] | [Principal];
|
|
72
72
|
}
|
|
73
|
-
export interface CfNeuron {
|
|
74
|
-
has_created_neuron_recipes: [] | [boolean];
|
|
75
|
-
hotkeys: [] | [Principals];
|
|
76
|
-
nns_neuron_id: bigint;
|
|
77
|
-
amount_icp_e8s: bigint;
|
|
78
|
-
}
|
|
79
|
-
export interface CfParticipant {
|
|
80
|
-
controller: [] | [Principal];
|
|
81
|
-
hotkey_principal: string;
|
|
82
|
-
cf_neurons: Array<CfNeuron>;
|
|
83
|
-
}
|
|
84
73
|
export type Change = { ToRemove: NodeProvider } | { ToAdd: NodeProvider };
|
|
85
74
|
export interface ChangeAutoStakeMaturity {
|
|
86
75
|
requested_setting_for_auto_stake_maturity: boolean;
|
|
@@ -586,7 +575,6 @@ export interface NeuronsFundMatchedFundingCurveCoefficients {
|
|
|
586
575
|
}
|
|
587
576
|
export interface NeuronsFundNeuron {
|
|
588
577
|
controller: [] | [Principal];
|
|
589
|
-
hotkey_principal: [] | [string];
|
|
590
578
|
hotkeys: [] | [Principals];
|
|
591
579
|
is_capped: [] | [boolean];
|
|
592
580
|
nns_neuron_id: [] | [bigint];
|
|
@@ -594,7 +582,6 @@ export interface NeuronsFundNeuron {
|
|
|
594
582
|
}
|
|
595
583
|
export interface NeuronsFundNeuronPortion {
|
|
596
584
|
controller: [] | [Principal];
|
|
597
|
-
hotkey_principal: [] | [Principal];
|
|
598
585
|
hotkeys: Array<Principal>;
|
|
599
586
|
is_capped: [] | [boolean];
|
|
600
587
|
maturity_equivalent_icp_e8s: [] | [bigint];
|
|
@@ -679,9 +666,6 @@ export type ProposalActionRequest =
|
|
|
679
666
|
| { CreateServiceNervousSystem: CreateServiceNervousSystem }
|
|
680
667
|
| { ExecuteNnsFunction: ExecuteNnsFunction }
|
|
681
668
|
| { RewardNodeProvider: RewardNodeProvider }
|
|
682
|
-
| { OpenSnsTokenSwap: OpenSnsTokenSwap }
|
|
683
|
-
| { SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow }
|
|
684
|
-
| { SetDefaultFollowees: SetDefaultFollowees }
|
|
685
669
|
| { RewardNodeProviders: RewardNodeProviders }
|
|
686
670
|
| { ManageNetworkEconomics: NetworkEconomics }
|
|
687
671
|
| { ApproveGenesisKyc: Principals }
|
|
@@ -690,7 +674,6 @@ export type ProposalActionRequest =
|
|
|
690
674
|
export interface ProposalData {
|
|
691
675
|
id: [] | [NeuronId];
|
|
692
676
|
failure_reason: [] | [GovernanceError];
|
|
693
|
-
cf_participants: Array<CfParticipant>;
|
|
694
677
|
ballots: Array<[bigint, Ballot]>;
|
|
695
678
|
proposal_timestamp_seconds: bigint;
|
|
696
679
|
reward_event_round: bigint;
|
|
@@ -750,7 +733,9 @@ export type Result_2 = { Ok: Neuron } | { Err: GovernanceError };
|
|
|
750
733
|
export type Result_3 =
|
|
751
734
|
| { Ok: GovernanceCachedMetrics }
|
|
752
735
|
| { Err: GovernanceError };
|
|
753
|
-
export type Result_4 =
|
|
736
|
+
export type Result_4 =
|
|
737
|
+
| { Ok: MonthlyNodeProviderRewards }
|
|
738
|
+
| { Err: GovernanceError };
|
|
754
739
|
export type Result_5 = { Ok: NeuronInfo } | { Err: GovernanceError };
|
|
755
740
|
export type Result_6 = { Ok: Ok } | { Err: GovernanceError };
|
|
756
741
|
export type Result_7 = { Ok: NodeProvider } | { Err: GovernanceError };
|