@dfinity/nns 8.3.2 → 8.4.0-next-2025-04-15

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.
@@ -22,6 +22,14 @@ export const idlFactory = ({ IDL }) => {
22
22
  'topic' : IDL.Int32,
23
23
  'followees' : IDL.Vec(NeuronId),
24
24
  });
25
+ const Account = IDL.Record({
26
+ 'owner' : IDL.Opt(IDL.Principal),
27
+ 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
28
+ });
29
+ const DisburseMaturity = IDL.Record({
30
+ 'to_account' : IDL.Opt(Account),
31
+ 'percentage_to_disburse' : IDL.Nat32,
32
+ });
25
33
  const RefreshVotingPower = IDL.Record({});
26
34
  const ClaimOrRefreshNeuronFromAccount = IDL.Record({
27
35
  'controller' : IDL.Opt(IDL.Principal),
@@ -87,6 +95,7 @@ export const idlFactory = ({ IDL }) => {
87
95
  'Spawn' : Spawn,
88
96
  'Split' : Split,
89
97
  'Follow' : Follow,
98
+ 'DisburseMaturity' : DisburseMaturity,
90
99
  'RefreshVotingPower' : RefreshVotingPower,
91
100
  'ClaimOrRefresh' : ClaimOrRefresh,
92
101
  'Configure' : Configure,
@@ -279,6 +288,7 @@ export const idlFactory = ({ IDL }) => {
279
288
  });
280
289
  const VotingPowerEconomics = IDL.Record({
281
290
  'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
291
+ 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
282
292
  'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
283
293
  });
284
294
  const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
@@ -477,20 +487,6 @@ export const idlFactory = ({ IDL }) => {
477
487
  'transfer_timestamp' : IDL.Nat64,
478
488
  'block_height' : IDL.Nat64,
479
489
  });
480
- const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
481
- const FollowersMap = IDL.Record({
482
- 'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
483
- });
484
- const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
485
- const Migration = IDL.Record({
486
- 'status' : IDL.Opt(IDL.Int32),
487
- 'failure_reason' : IDL.Opt(IDL.Text),
488
- 'progress' : IDL.Opt(Progress),
489
- });
490
- const Migrations = IDL.Record({
491
- 'neuron_indexes_migration' : IDL.Opt(Migration),
492
- 'copy_inactive_neurons_to_stable_memory_migration' : IDL.Opt(Migration),
493
- });
494
490
  const GovernanceError = IDL.Record({
495
491
  'error_message' : IDL.Text,
496
492
  'error_type' : IDL.Int32,
@@ -660,8 +656,6 @@ export const idlFactory = ({ IDL }) => {
660
656
  'latest_reward_event' : IDL.Opt(RewardEvent),
661
657
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
662
658
  'short_voting_period_seconds' : IDL.Nat64,
663
- 'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
664
- 'migrations' : IDL.Opt(Migrations),
665
659
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
666
660
  'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
667
661
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
@@ -817,6 +811,7 @@ export const idlFactory = ({ IDL }) => {
817
811
  'Spawn' : Spawn,
818
812
  'Split' : Split,
819
813
  'Follow' : Follow,
814
+ 'DisburseMaturity' : DisburseMaturity,
820
815
  'RefreshVotingPower' : RefreshVotingPower,
821
816
  'ClaimOrRefresh' : ClaimOrRefresh,
822
817
  'Configure' : Configure,
@@ -836,6 +831,9 @@ export const idlFactory = ({ IDL }) => {
836
831
  })
837
832
  );
838
833
  const SpawnResponse = IDL.Record({ 'created_neuron_id' : IDL.Opt(NeuronId) });
834
+ const DisburseMaturityResponse = IDL.Record({
835
+ 'amount_disbursed_e8s' : IDL.Opt(IDL.Nat64),
836
+ });
839
837
  const RefreshVotingPowerResponse = IDL.Record({});
840
838
  const ClaimOrRefreshResponse = IDL.Record({
841
839
  'refreshed_neuron_id' : IDL.Opt(NeuronId),
@@ -864,6 +862,7 @@ export const idlFactory = ({ IDL }) => {
864
862
  'Spawn' : SpawnResponse,
865
863
  'Split' : SpawnResponse,
866
864
  'Follow' : IDL.Record({}),
865
+ 'DisburseMaturity' : DisburseMaturityResponse,
867
866
  'RefreshVotingPower' : RefreshVotingPowerResponse,
868
867
  'ClaimOrRefresh' : ClaimOrRefreshResponse,
869
868
  'Configure' : IDL.Record({}),
@@ -1038,6 +1037,14 @@ export const init = ({ IDL }) => {
1038
1037
  'topic' : IDL.Int32,
1039
1038
  'followees' : IDL.Vec(NeuronId),
1040
1039
  });
1040
+ const Account = IDL.Record({
1041
+ 'owner' : IDL.Opt(IDL.Principal),
1042
+ 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1043
+ });
1044
+ const DisburseMaturity = IDL.Record({
1045
+ 'to_account' : IDL.Opt(Account),
1046
+ 'percentage_to_disburse' : IDL.Nat32,
1047
+ });
1041
1048
  const RefreshVotingPower = IDL.Record({});
1042
1049
  const ClaimOrRefreshNeuronFromAccount = IDL.Record({
1043
1050
  'controller' : IDL.Opt(IDL.Principal),
@@ -1103,6 +1110,7 @@ export const init = ({ IDL }) => {
1103
1110
  'Spawn' : Spawn,
1104
1111
  'Split' : Split,
1105
1112
  'Follow' : Follow,
1113
+ 'DisburseMaturity' : DisburseMaturity,
1106
1114
  'RefreshVotingPower' : RefreshVotingPower,
1107
1115
  'ClaimOrRefresh' : ClaimOrRefresh,
1108
1116
  'Configure' : Configure,
@@ -1295,6 +1303,7 @@ export const init = ({ IDL }) => {
1295
1303
  });
1296
1304
  const VotingPowerEconomics = IDL.Record({
1297
1305
  'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
1306
+ 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
1298
1307
  'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
1299
1308
  });
1300
1309
  const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
@@ -1493,20 +1502,6 @@ export const init = ({ IDL }) => {
1493
1502
  'transfer_timestamp' : IDL.Nat64,
1494
1503
  'block_height' : IDL.Nat64,
1495
1504
  });
1496
- const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
1497
- const FollowersMap = IDL.Record({
1498
- 'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
1499
- });
1500
- const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
1501
- const Migration = IDL.Record({
1502
- 'status' : IDL.Opt(IDL.Int32),
1503
- 'failure_reason' : IDL.Opt(IDL.Text),
1504
- 'progress' : IDL.Opt(Progress),
1505
- });
1506
- const Migrations = IDL.Record({
1507
- 'neuron_indexes_migration' : IDL.Opt(Migration),
1508
- 'copy_inactive_neurons_to_stable_memory_migration' : IDL.Opt(Migration),
1509
- });
1510
1505
  const GovernanceError = IDL.Record({
1511
1506
  'error_message' : IDL.Text,
1512
1507
  'error_type' : IDL.Int32,
@@ -1676,8 +1671,6 @@ export const init = ({ IDL }) => {
1676
1671
  'latest_reward_event' : IDL.Opt(RewardEvent),
1677
1672
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
1678
1673
  'short_voting_period_seconds' : IDL.Nat64,
1679
- 'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
1680
- 'migrations' : IDL.Opt(Migrations),
1681
1674
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1682
1675
  'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
1683
1676
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
@@ -55,9 +55,6 @@ export const idlFactory = ({ IDL }) => {
55
55
  const DeveloperDistribution = IDL.Record({
56
56
  'developer_neurons' : IDL.Vec(NeuronDistribution),
57
57
  });
58
- const AirdropDistribution = IDL.Record({
59
- 'airdrop_neurons' : IDL.Vec(NeuronDistribution),
60
- });
61
58
  const SwapDistribution = IDL.Record({
62
59
  'total_e8s' : IDL.Nat64,
63
60
  'initial_swap_amount_e8s' : IDL.Nat64,
@@ -65,7 +62,6 @@ export const idlFactory = ({ IDL }) => {
65
62
  const FractionalDeveloperVotingPower = IDL.Record({
66
63
  'treasury_distribution' : IDL.Opt(TreasuryDistribution),
67
64
  'developer_distribution' : IDL.Opt(DeveloperDistribution),
68
- 'airdrop_distribution' : IDL.Opt(AirdropDistribution),
69
65
  'swap_distribution' : IDL.Opt(SwapDistribution),
70
66
  });
71
67
  const InitialTokenDistribution = IDL.Variant({
@@ -9,9 +9,6 @@ export interface AddWasmRequest {
9
9
  export interface AddWasmResponse {
10
10
  result: [] | [Result];
11
11
  }
12
- export interface AirdropDistribution {
13
- airdrop_neurons: Array<NeuronDistribution>;
14
- }
15
12
  export interface Canister {
16
13
  id: [] | [Principal];
17
14
  }
@@ -48,7 +45,6 @@ export interface DeveloperDistribution {
48
45
  export interface FractionalDeveloperVotingPower {
49
46
  treasury_distribution: [] | [TreasuryDistribution];
50
47
  developer_distribution: [] | [DeveloperDistribution];
51
- airdrop_distribution: [] | [AirdropDistribution];
52
48
  swap_distribution: [] | [SwapDistribution];
53
49
  }
54
50
  export interface GetAllowedPrincipalsResponse {
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
1
+ // Generated from IC repo commit 148ccc9 (2025-04-04 tags: rosetta-icrc-release-1.2.0) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
2
2
  type AddWasmRequest = record {
3
3
  hash : blob;
4
4
  wasm : opt SnsWasm;
@@ -8,10 +8,6 @@ type AddWasmResponse = record {
8
8
  result : opt Result;
9
9
  };
10
10
 
11
- type AirdropDistribution = record {
12
- airdrop_neurons : vec NeuronDistribution;
13
- };
14
-
15
11
  type Canister = record {
16
12
  id : opt principal;
17
13
  };
@@ -56,7 +52,6 @@ type DeveloperDistribution = record {
56
52
  type FractionalDeveloperVotingPower = record {
57
53
  treasury_distribution : opt TreasuryDistribution;
58
54
  developer_distribution : opt DeveloperDistribution;
59
- airdrop_distribution : opt AirdropDistribution;
60
55
  swap_distribution : opt SwapDistribution;
61
56
  };
62
57
 
@@ -55,9 +55,6 @@ export const idlFactory = ({ IDL }) => {
55
55
  const DeveloperDistribution = IDL.Record({
56
56
  'developer_neurons' : IDL.Vec(NeuronDistribution),
57
57
  });
58
- const AirdropDistribution = IDL.Record({
59
- 'airdrop_neurons' : IDL.Vec(NeuronDistribution),
60
- });
61
58
  const SwapDistribution = IDL.Record({
62
59
  'total_e8s' : IDL.Nat64,
63
60
  'initial_swap_amount_e8s' : IDL.Nat64,
@@ -65,7 +62,6 @@ export const idlFactory = ({ IDL }) => {
65
62
  const FractionalDeveloperVotingPower = IDL.Record({
66
63
  'treasury_distribution' : IDL.Opt(TreasuryDistribution),
67
64
  'developer_distribution' : IDL.Opt(DeveloperDistribution),
68
- 'airdrop_distribution' : IDL.Opt(AirdropDistribution),
69
65
  'swap_distribution' : IDL.Opt(SwapDistribution),
70
66
  });
71
67
  const InitialTokenDistribution = IDL.Variant({