@dfinity/nns 7.0.1 → 7.0.2-next-2024-11-01

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.
@@ -59,9 +59,10 @@ export const idlFactory = ({ IDL }) => {
59
59
  'SetDissolveTimestamp' : SetDissolveTimestamp,
60
60
  });
61
61
  const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
62
+ const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
62
63
  const RegisterVote = IDL.Record({
63
64
  'vote' : IDL.Int32,
64
- 'proposal' : IDL.Opt(NeuronId),
65
+ 'proposal' : IDL.Opt(ProposalId),
65
66
  });
66
67
  const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
67
68
  const DisburseToNeuron = IDL.Record({
@@ -447,7 +448,7 @@ export const idlFactory = ({ IDL }) => {
447
448
  'total_available_e8s_equivalent' : IDL.Nat64,
448
449
  'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
449
450
  'distributed_e8s_equivalent' : IDL.Nat64,
450
- 'settled_proposals' : IDL.Vec(NeuronId),
451
+ 'settled_proposals' : IDL.Vec(ProposalId),
451
452
  });
452
453
  const NeuronStakeTransfer = IDL.Record({
453
454
  'to_subaccount' : IDL.Vec(IDL.Nat8),
@@ -550,7 +551,7 @@ export const idlFactory = ({ IDL }) => {
550
551
  'current_deadline_timestamp_seconds' : IDL.Nat64,
551
552
  });
552
553
  const ProposalData = IDL.Record({
553
- 'id' : IDL.Opt(NeuronId),
554
+ 'id' : IDL.Opt(ProposalId),
554
555
  'failure_reason' : IDL.Opt(GovernanceError),
555
556
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
556
557
  'proposal_timestamp_seconds' : IDL.Nat64,
@@ -587,7 +588,7 @@ export const idlFactory = ({ IDL }) => {
587
588
  });
588
589
  const BallotInfo = IDL.Record({
589
590
  'vote' : IDL.Int32,
590
- 'proposal_id' : IDL.Opt(NeuronId),
591
+ 'proposal_id' : IDL.Opt(ProposalId),
591
592
  });
592
593
  const DissolveState = IDL.Variant({
593
594
  'DissolveDelaySeconds' : IDL.Nat64,
@@ -678,7 +679,7 @@ export const idlFactory = ({ IDL }) => {
678
679
  });
679
680
  const Result_5 = IDL.Variant({ 'Ok' : NeuronInfo, 'Err' : GovernanceError });
680
681
  const GetNeuronsFundAuditInfoRequest = IDL.Record({
681
- 'nns_proposal_id' : IDL.Opt(NeuronId),
682
+ 'nns_proposal_id' : IDL.Opt(ProposalId),
682
683
  });
683
684
  const NeuronsFundAuditInfo = IDL.Record({
684
685
  'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
@@ -697,7 +698,7 @@ export const idlFactory = ({ IDL }) => {
697
698
  'Err' : GovernanceError,
698
699
  });
699
700
  const ProposalInfo = IDL.Record({
700
- 'id' : IDL.Opt(NeuronId),
701
+ 'id' : IDL.Opt(ProposalId),
701
702
  'status' : IDL.Int32,
702
703
  'topic' : IDL.Int32,
703
704
  'failure_reason' : IDL.Opt(GovernanceError),
@@ -744,7 +745,7 @@ export const idlFactory = ({ IDL }) => {
744
745
  const ListProposalInfo = IDL.Record({
745
746
  'include_reward_status' : IDL.Vec(IDL.Int32),
746
747
  'omit_large_fields' : IDL.Opt(IDL.Bool),
747
- 'before_proposal' : IDL.Opt(NeuronId),
748
+ 'before_proposal' : IDL.Opt(ProposalId),
748
749
  'limit' : IDL.Nat32,
749
750
  'exclude_topic' : IDL.Vec(IDL.Int32),
750
751
  'include_all_manage_neuron_proposals' : IDL.Opt(IDL.Bool),
@@ -814,7 +815,7 @@ export const idlFactory = ({ IDL }) => {
814
815
  });
815
816
  const MakeProposalResponse = IDL.Record({
816
817
  'message' : IDL.Opt(IDL.Text),
817
- 'proposal_id' : IDL.Opt(NeuronId),
818
+ 'proposal_id' : IDL.Opt(ProposalId),
818
819
  });
819
820
  const StakeMaturityResponse = IDL.Record({
820
821
  'maturity_e8s' : IDL.Nat64,
@@ -1039,9 +1040,10 @@ export const init = ({ IDL }) => {
1039
1040
  'SetDissolveTimestamp' : SetDissolveTimestamp,
1040
1041
  });
1041
1042
  const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
1043
+ const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
1042
1044
  const RegisterVote = IDL.Record({
1043
1045
  'vote' : IDL.Int32,
1044
- 'proposal' : IDL.Opt(NeuronId),
1046
+ 'proposal' : IDL.Opt(ProposalId),
1045
1047
  });
1046
1048
  const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
1047
1049
  const DisburseToNeuron = IDL.Record({
@@ -1427,7 +1429,7 @@ export const init = ({ IDL }) => {
1427
1429
  'total_available_e8s_equivalent' : IDL.Nat64,
1428
1430
  'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1429
1431
  'distributed_e8s_equivalent' : IDL.Nat64,
1430
- 'settled_proposals' : IDL.Vec(NeuronId),
1432
+ 'settled_proposals' : IDL.Vec(ProposalId),
1431
1433
  });
1432
1434
  const NeuronStakeTransfer = IDL.Record({
1433
1435
  'to_subaccount' : IDL.Vec(IDL.Nat8),
@@ -1530,7 +1532,7 @@ export const init = ({ IDL }) => {
1530
1532
  'current_deadline_timestamp_seconds' : IDL.Nat64,
1531
1533
  });
1532
1534
  const ProposalData = IDL.Record({
1533
- 'id' : IDL.Opt(NeuronId),
1535
+ 'id' : IDL.Opt(ProposalId),
1534
1536
  'failure_reason' : IDL.Opt(GovernanceError),
1535
1537
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1536
1538
  'proposal_timestamp_seconds' : IDL.Nat64,
@@ -1567,7 +1569,7 @@ export const init = ({ IDL }) => {
1567
1569
  });
1568
1570
  const BallotInfo = IDL.Record({
1569
1571
  'vote' : IDL.Int32,
1570
- 'proposal_id' : IDL.Opt(NeuronId),
1572
+ 'proposal_id' : IDL.Opt(ProposalId),
1571
1573
  });
1572
1574
  const DissolveState = IDL.Variant({
1573
1575
  'DissolveDelaySeconds' : IDL.Nat64,
@@ -59,9 +59,10 @@ export const idlFactory = ({ IDL }) => {
59
59
  'SetDissolveTimestamp' : SetDissolveTimestamp,
60
60
  });
61
61
  const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
62
+ const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
62
63
  const RegisterVote = IDL.Record({
63
64
  'vote' : IDL.Int32,
64
- 'proposal' : IDL.Opt(NeuronId),
65
+ 'proposal' : IDL.Opt(ProposalId),
65
66
  });
66
67
  const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
67
68
  const DisburseToNeuron = IDL.Record({
@@ -447,7 +448,7 @@ export const idlFactory = ({ IDL }) => {
447
448
  'total_available_e8s_equivalent' : IDL.Nat64,
448
449
  'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
449
450
  'distributed_e8s_equivalent' : IDL.Nat64,
450
- 'settled_proposals' : IDL.Vec(NeuronId),
451
+ 'settled_proposals' : IDL.Vec(ProposalId),
451
452
  });
452
453
  const NeuronStakeTransfer = IDL.Record({
453
454
  'to_subaccount' : IDL.Vec(IDL.Nat8),
@@ -550,7 +551,7 @@ export const idlFactory = ({ IDL }) => {
550
551
  'current_deadline_timestamp_seconds' : IDL.Nat64,
551
552
  });
552
553
  const ProposalData = IDL.Record({
553
- 'id' : IDL.Opt(NeuronId),
554
+ 'id' : IDL.Opt(ProposalId),
554
555
  'failure_reason' : IDL.Opt(GovernanceError),
555
556
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
556
557
  'proposal_timestamp_seconds' : IDL.Nat64,
@@ -587,7 +588,7 @@ export const idlFactory = ({ IDL }) => {
587
588
  });
588
589
  const BallotInfo = IDL.Record({
589
590
  'vote' : IDL.Int32,
590
- 'proposal_id' : IDL.Opt(NeuronId),
591
+ 'proposal_id' : IDL.Opt(ProposalId),
591
592
  });
592
593
  const DissolveState = IDL.Variant({
593
594
  'DissolveDelaySeconds' : IDL.Nat64,
@@ -678,7 +679,7 @@ export const idlFactory = ({ IDL }) => {
678
679
  });
679
680
  const Result_5 = IDL.Variant({ 'Ok' : NeuronInfo, 'Err' : GovernanceError });
680
681
  const GetNeuronsFundAuditInfoRequest = IDL.Record({
681
- 'nns_proposal_id' : IDL.Opt(NeuronId),
682
+ 'nns_proposal_id' : IDL.Opt(ProposalId),
682
683
  });
683
684
  const NeuronsFundAuditInfo = IDL.Record({
684
685
  'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
@@ -697,7 +698,7 @@ export const idlFactory = ({ IDL }) => {
697
698
  'Err' : GovernanceError,
698
699
  });
699
700
  const ProposalInfo = IDL.Record({
700
- 'id' : IDL.Opt(NeuronId),
701
+ 'id' : IDL.Opt(ProposalId),
701
702
  'status' : IDL.Int32,
702
703
  'topic' : IDL.Int32,
703
704
  'failure_reason' : IDL.Opt(GovernanceError),
@@ -744,7 +745,7 @@ export const idlFactory = ({ IDL }) => {
744
745
  const ListProposalInfo = IDL.Record({
745
746
  'include_reward_status' : IDL.Vec(IDL.Int32),
746
747
  'omit_large_fields' : IDL.Opt(IDL.Bool),
747
- 'before_proposal' : IDL.Opt(NeuronId),
748
+ 'before_proposal' : IDL.Opt(ProposalId),
748
749
  'limit' : IDL.Nat32,
749
750
  'exclude_topic' : IDL.Vec(IDL.Int32),
750
751
  'include_all_manage_neuron_proposals' : IDL.Opt(IDL.Bool),
@@ -814,7 +815,7 @@ export const idlFactory = ({ IDL }) => {
814
815
  });
815
816
  const MakeProposalResponse = IDL.Record({
816
817
  'message' : IDL.Opt(IDL.Text),
817
- 'proposal_id' : IDL.Opt(NeuronId),
818
+ 'proposal_id' : IDL.Opt(ProposalId),
818
819
  });
819
820
  const StakeMaturityResponse = IDL.Record({
820
821
  'maturity_e8s' : IDL.Nat64,
@@ -1024,9 +1025,10 @@ export const init = ({ IDL }) => {
1024
1025
  'SetDissolveTimestamp' : SetDissolveTimestamp,
1025
1026
  });
1026
1027
  const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
1028
+ const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
1027
1029
  const RegisterVote = IDL.Record({
1028
1030
  'vote' : IDL.Int32,
1029
- 'proposal' : IDL.Opt(NeuronId),
1031
+ 'proposal' : IDL.Opt(ProposalId),
1030
1032
  });
1031
1033
  const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
1032
1034
  const DisburseToNeuron = IDL.Record({
@@ -1412,7 +1414,7 @@ export const init = ({ IDL }) => {
1412
1414
  'total_available_e8s_equivalent' : IDL.Nat64,
1413
1415
  'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1414
1416
  'distributed_e8s_equivalent' : IDL.Nat64,
1415
- 'settled_proposals' : IDL.Vec(NeuronId),
1417
+ 'settled_proposals' : IDL.Vec(ProposalId),
1416
1418
  });
1417
1419
  const NeuronStakeTransfer = IDL.Record({
1418
1420
  'to_subaccount' : IDL.Vec(IDL.Nat8),
@@ -1515,7 +1517,7 @@ export const init = ({ IDL }) => {
1515
1517
  'current_deadline_timestamp_seconds' : IDL.Nat64,
1516
1518
  });
1517
1519
  const ProposalData = IDL.Record({
1518
- 'id' : IDL.Opt(NeuronId),
1520
+ 'id' : IDL.Opt(ProposalId),
1519
1521
  'failure_reason' : IDL.Opt(GovernanceError),
1520
1522
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1521
1523
  'proposal_timestamp_seconds' : IDL.Nat64,
@@ -1552,7 +1554,7 @@ export const init = ({ IDL }) => {
1552
1554
  });
1553
1555
  const BallotInfo = IDL.Record({
1554
1556
  'vote' : IDL.Int32,
1555
- 'proposal_id' : IDL.Opt(NeuronId),
1557
+ 'proposal_id' : IDL.Opt(ProposalId),
1556
1558
  });
1557
1559
  const DissolveState = IDL.Variant({
1558
1560
  'DissolveDelaySeconds' : IDL.Nat64,
@@ -40,7 +40,7 @@ export interface Ballot {
40
40
  }
41
41
  export interface BallotInfo {
42
42
  vote: number;
43
- proposal_id: [] | [NeuronId];
43
+ proposal_id: [] | [ProposalId];
44
44
  }
45
45
  export type By =
46
46
  | { NeuronIdOrSubaccount: {} }
@@ -206,7 +206,7 @@ export interface FollowersMap {
206
206
  followers_map: Array<[bigint, Followers]>;
207
207
  }
208
208
  export interface GetNeuronsFundAuditInfoRequest {
209
- nns_proposal_id: [] | [NeuronId];
209
+ nns_proposal_id: [] | [ProposalId];
210
210
  }
211
211
  export interface GetNeuronsFundAuditInfoResponse {
212
212
  result: [] | [Result_6];
@@ -368,7 +368,7 @@ export interface ListNodeProvidersResponse {
368
368
  export interface ListProposalInfo {
369
369
  include_reward_status: Int32Array | number[];
370
370
  omit_large_fields: [] | [boolean];
371
- before_proposal: [] | [NeuronId];
371
+ before_proposal: [] | [ProposalId];
372
372
  limit: number;
373
373
  exclude_topic: Int32Array | number[];
374
374
  include_all_manage_neuron_proposals: [] | [boolean];
@@ -385,7 +385,7 @@ export interface MakeProposalRequest {
385
385
  }
386
386
  export interface MakeProposalResponse {
387
387
  message: [] | [string];
388
- proposal_id: [] | [NeuronId];
388
+ proposal_id: [] | [ProposalId];
389
389
  }
390
390
  export interface MakingSnsProposal {
391
391
  proposal: [] | [Proposal];
@@ -672,7 +672,7 @@ export type ProposalActionRequest =
672
672
  | { AddOrRemoveNodeProvider: AddOrRemoveNodeProvider }
673
673
  | { Motion: Motion };
674
674
  export interface ProposalData {
675
- id: [] | [NeuronId];
675
+ id: [] | [ProposalId];
676
676
  failure_reason: [] | [GovernanceError];
677
677
  ballots: Array<[bigint, Ballot]>;
678
678
  proposal_timestamp_seconds: bigint;
@@ -690,8 +690,11 @@ export interface ProposalData {
690
690
  executed_timestamp_seconds: bigint;
691
691
  original_total_community_fund_maturity_e8s_equivalent: [] | [bigint];
692
692
  }
693
+ export interface ProposalId {
694
+ id: bigint;
695
+ }
693
696
  export interface ProposalInfo {
694
- id: [] | [NeuronId];
697
+ id: [] | [ProposalId];
695
698
  status: number;
696
699
  topic: number;
697
700
  failure_reason: [] | [GovernanceError];
@@ -711,7 +714,7 @@ export interface ProposalInfo {
711
714
  }
712
715
  export interface RegisterVote {
713
716
  vote: number;
714
- proposal: [] | [NeuronId];
717
+ proposal: [] | [ProposalId];
715
718
  }
716
719
  export interface RemoveHotKey {
717
720
  hot_key_to_remove: [] | [Principal];
@@ -748,7 +751,7 @@ export interface RewardEvent {
748
751
  total_available_e8s_equivalent: bigint;
749
752
  latest_round_available_e8s_equivalent: [] | [bigint];
750
753
  distributed_e8s_equivalent: bigint;
751
- settled_proposals: Array<NeuronId>;
754
+ settled_proposals: Array<ProposalId>;
752
755
  }
753
756
  export type RewardMode =
754
757
  | { RewardToNeuron: RewardToNeuron }
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) 'rs/nns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/governance/canister/governance_test.did' by import-candid
2
2
  type AccountIdentifier = record {
3
3
  hash : blob;
4
4
  };
@@ -45,7 +45,7 @@ type Ballot = record {
45
45
 
46
46
  type BallotInfo = record {
47
47
  vote : int32;
48
- proposal_id : opt NeuronId;
48
+ proposal_id : opt ProposalId;
49
49
  };
50
50
 
51
51
  type By = variant {
@@ -256,7 +256,7 @@ type FollowersMap = record {
256
256
  } };
257
257
 
258
258
  type GetNeuronsFundAuditInfoRequest = record {
259
- nns_proposal_id : opt NeuronId;
259
+ nns_proposal_id : opt ProposalId;
260
260
  };
261
261
 
262
262
  type GetNeuronsFundAuditInfoResponse = record {
@@ -440,7 +440,7 @@ type ListNodeProvidersResponse = record {
440
440
  type ListProposalInfo = record {
441
441
  include_reward_status : vec int32;
442
442
  omit_large_fields : opt bool;
443
- before_proposal : opt NeuronId;
443
+ before_proposal : opt ProposalId;
444
444
  limit : nat32;
445
445
  exclude_topic : vec int32;
446
446
  include_all_manage_neuron_proposals : opt bool;
@@ -460,7 +460,7 @@ type MakeProposalRequest = record {
460
460
 
461
461
  type MakeProposalResponse = record {
462
462
  message : opt text;
463
- proposal_id : opt NeuronId;
463
+ proposal_id : opt ProposalId;
464
464
  };
465
465
 
466
466
  type MakingSnsProposal = record {
@@ -604,6 +604,10 @@ type NeuronId = record {
604
604
  id : nat64;
605
605
  };
606
606
 
607
+ type ProposalId = record {
608
+ id : nat64;
609
+ };
610
+
607
611
  type NeuronIdOrSubaccount = variant {
608
612
  Subaccount : blob;
609
613
  NeuronId : NeuronId;
@@ -791,7 +795,7 @@ type ProposalActionRequest = variant {
791
795
  };
792
796
 
793
797
  type ProposalData = record {
794
- id : opt NeuronId;
798
+ id : opt ProposalId;
795
799
  failure_reason : opt GovernanceError;
796
800
  ballots : vec record { nat64; Ballot };
797
801
  proposal_timestamp_seconds : nat64;
@@ -811,7 +815,7 @@ type ProposalData = record {
811
815
  };
812
816
 
813
817
  type ProposalInfo = record {
814
- id : opt NeuronId;
818
+ id : opt ProposalId;
815
819
  status : int32;
816
820
  topic : int32;
817
821
  failure_reason : opt GovernanceError;
@@ -832,7 +836,7 @@ type ProposalInfo = record {
832
836
 
833
837
  type RegisterVote = record {
834
838
  vote : int32;
835
- proposal : opt NeuronId;
839
+ proposal : opt ProposalId;
836
840
  };
837
841
 
838
842
  type RemoveHotKey = record {
@@ -911,7 +915,7 @@ type RewardEvent = record {
911
915
  total_available_e8s_equivalent : nat64;
912
916
  latest_round_available_e8s_equivalent : opt nat64;
913
917
  distributed_e8s_equivalent : nat64;
914
- settled_proposals : vec NeuronId;
918
+ settled_proposals : vec ProposalId;
915
919
  };
916
920
 
917
921
  type RewardMode = variant {
@@ -59,9 +59,10 @@ export const idlFactory = ({ IDL }) => {
59
59
  'SetDissolveTimestamp' : SetDissolveTimestamp,
60
60
  });
61
61
  const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
62
+ const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
62
63
  const RegisterVote = IDL.Record({
63
64
  'vote' : IDL.Int32,
64
- 'proposal' : IDL.Opt(NeuronId),
65
+ 'proposal' : IDL.Opt(ProposalId),
65
66
  });
66
67
  const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
67
68
  const DisburseToNeuron = IDL.Record({
@@ -447,7 +448,7 @@ export const idlFactory = ({ IDL }) => {
447
448
  'total_available_e8s_equivalent' : IDL.Nat64,
448
449
  'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
449
450
  'distributed_e8s_equivalent' : IDL.Nat64,
450
- 'settled_proposals' : IDL.Vec(NeuronId),
451
+ 'settled_proposals' : IDL.Vec(ProposalId),
451
452
  });
452
453
  const NeuronStakeTransfer = IDL.Record({
453
454
  'to_subaccount' : IDL.Vec(IDL.Nat8),
@@ -550,7 +551,7 @@ export const idlFactory = ({ IDL }) => {
550
551
  'current_deadline_timestamp_seconds' : IDL.Nat64,
551
552
  });
552
553
  const ProposalData = IDL.Record({
553
- 'id' : IDL.Opt(NeuronId),
554
+ 'id' : IDL.Opt(ProposalId),
554
555
  'failure_reason' : IDL.Opt(GovernanceError),
555
556
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
556
557
  'proposal_timestamp_seconds' : IDL.Nat64,
@@ -587,7 +588,7 @@ export const idlFactory = ({ IDL }) => {
587
588
  });
588
589
  const BallotInfo = IDL.Record({
589
590
  'vote' : IDL.Int32,
590
- 'proposal_id' : IDL.Opt(NeuronId),
591
+ 'proposal_id' : IDL.Opt(ProposalId),
591
592
  });
592
593
  const DissolveState = IDL.Variant({
593
594
  'DissolveDelaySeconds' : IDL.Nat64,
@@ -678,7 +679,7 @@ export const idlFactory = ({ IDL }) => {
678
679
  });
679
680
  const Result_5 = IDL.Variant({ 'Ok' : NeuronInfo, 'Err' : GovernanceError });
680
681
  const GetNeuronsFundAuditInfoRequest = IDL.Record({
681
- 'nns_proposal_id' : IDL.Opt(NeuronId),
682
+ 'nns_proposal_id' : IDL.Opt(ProposalId),
682
683
  });
683
684
  const NeuronsFundAuditInfo = IDL.Record({
684
685
  'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
@@ -697,7 +698,7 @@ export const idlFactory = ({ IDL }) => {
697
698
  'Err' : GovernanceError,
698
699
  });
699
700
  const ProposalInfo = IDL.Record({
700
- 'id' : IDL.Opt(NeuronId),
701
+ 'id' : IDL.Opt(ProposalId),
701
702
  'status' : IDL.Int32,
702
703
  'topic' : IDL.Int32,
703
704
  'failure_reason' : IDL.Opt(GovernanceError),
@@ -744,7 +745,7 @@ export const idlFactory = ({ IDL }) => {
744
745
  const ListProposalInfo = IDL.Record({
745
746
  'include_reward_status' : IDL.Vec(IDL.Int32),
746
747
  'omit_large_fields' : IDL.Opt(IDL.Bool),
747
- 'before_proposal' : IDL.Opt(NeuronId),
748
+ 'before_proposal' : IDL.Opt(ProposalId),
748
749
  'limit' : IDL.Nat32,
749
750
  'exclude_topic' : IDL.Vec(IDL.Int32),
750
751
  'include_all_manage_neuron_proposals' : IDL.Opt(IDL.Bool),
@@ -814,7 +815,7 @@ export const idlFactory = ({ IDL }) => {
814
815
  });
815
816
  const MakeProposalResponse = IDL.Record({
816
817
  'message' : IDL.Opt(IDL.Text),
817
- 'proposal_id' : IDL.Opt(NeuronId),
818
+ 'proposal_id' : IDL.Opt(ProposalId),
818
819
  });
819
820
  const StakeMaturityResponse = IDL.Record({
820
821
  'maturity_e8s' : IDL.Nat64,
@@ -1040,9 +1041,10 @@ export const init = ({ IDL }) => {
1040
1041
  'SetDissolveTimestamp' : SetDissolveTimestamp,
1041
1042
  });
1042
1043
  const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
1044
+ const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
1043
1045
  const RegisterVote = IDL.Record({
1044
1046
  'vote' : IDL.Int32,
1045
- 'proposal' : IDL.Opt(NeuronId),
1047
+ 'proposal' : IDL.Opt(ProposalId),
1046
1048
  });
1047
1049
  const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
1048
1050
  const DisburseToNeuron = IDL.Record({
@@ -1428,7 +1430,7 @@ export const init = ({ IDL }) => {
1428
1430
  'total_available_e8s_equivalent' : IDL.Nat64,
1429
1431
  'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1430
1432
  'distributed_e8s_equivalent' : IDL.Nat64,
1431
- 'settled_proposals' : IDL.Vec(NeuronId),
1433
+ 'settled_proposals' : IDL.Vec(ProposalId),
1432
1434
  });
1433
1435
  const NeuronStakeTransfer = IDL.Record({
1434
1436
  'to_subaccount' : IDL.Vec(IDL.Nat8),
@@ -1531,7 +1533,7 @@ export const init = ({ IDL }) => {
1531
1533
  'current_deadline_timestamp_seconds' : IDL.Nat64,
1532
1534
  });
1533
1535
  const ProposalData = IDL.Record({
1534
- 'id' : IDL.Opt(NeuronId),
1536
+ 'id' : IDL.Opt(ProposalId),
1535
1537
  'failure_reason' : IDL.Opt(GovernanceError),
1536
1538
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1537
1539
  'proposal_timestamp_seconds' : IDL.Nat64,
@@ -1568,7 +1570,7 @@ export const init = ({ IDL }) => {
1568
1570
  });
1569
1571
  const BallotInfo = IDL.Record({
1570
1572
  'vote' : IDL.Int32,
1571
- 'proposal_id' : IDL.Opt(NeuronId),
1573
+ 'proposal_id' : IDL.Opt(ProposalId),
1572
1574
  });
1573
1575
  const DissolveState = IDL.Variant({
1574
1576
  'DissolveDelaySeconds' : IDL.Nat64,
@@ -1,78 +1,81 @@
1
1
  // This file was created manually by taking governance.certified.idl.js and
2
2
  // removing everything that isn't needed for `list_neurons` and then removing
3
- // `include_empty_neurons_readable_by_caller` from `ListNeurons`.
4
- // The Ledger hardware wallet doesn't support the
5
- // `include_empty_neurons_readable_by_caller` field, even when it's not set, so
6
- // we use this service for compatibility with the hardware wallet.
3
+ // all fields except `neuron_ids` and `include_neurons_readable_by_caller` from
4
+ // `ListNeurons`.
5
+ // The Ledger hardware wallet app verion 2.4.9 doesn't support the newer fields,
6
+ // even when they are optional and not set, so we use this service for
7
+ // compatibility with the hardware wallet.
7
8
  export const idlFactory = ({ IDL }) => {
8
- const NeuronId = IDL.Record({ id: IDL.Nat64 });
9
- const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
9
+ const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
10
+ const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
10
11
  const KnownNeuronData = IDL.Record({
11
- name: IDL.Text,
12
- description: IDL.Opt(IDL.Text),
12
+ 'name' : IDL.Text,
13
+ 'description' : IDL.Opt(IDL.Text),
13
14
  });
14
15
  const NeuronStakeTransfer = IDL.Record({
15
- to_subaccount: IDL.Vec(IDL.Nat8),
16
- neuron_stake_e8s: IDL.Nat64,
17
- from: IDL.Opt(IDL.Principal),
18
- memo: IDL.Nat64,
19
- from_subaccount: IDL.Vec(IDL.Nat8),
20
- transfer_timestamp: IDL.Nat64,
21
- block_height: IDL.Nat64,
16
+ 'to_subaccount' : IDL.Vec(IDL.Nat8),
17
+ 'neuron_stake_e8s' : IDL.Nat64,
18
+ 'from' : IDL.Opt(IDL.Principal),
19
+ 'memo' : IDL.Nat64,
20
+ 'from_subaccount' : IDL.Vec(IDL.Nat8),
21
+ 'transfer_timestamp' : IDL.Nat64,
22
+ 'block_height' : IDL.Nat64,
22
23
  });
23
24
  const BallotInfo = IDL.Record({
24
- vote: IDL.Int32,
25
- proposal_id: IDL.Opt(NeuronId),
25
+ 'vote' : IDL.Int32,
26
+ 'proposal_id' : IDL.Opt(NeuronId),
26
27
  });
27
28
  const DissolveState = IDL.Variant({
28
- DissolveDelaySeconds: IDL.Nat64,
29
- WhenDissolvedTimestampSeconds: IDL.Nat64,
29
+ 'DissolveDelaySeconds' : IDL.Nat64,
30
+ 'WhenDissolvedTimestampSeconds' : IDL.Nat64,
30
31
  });
31
32
  const Neuron = IDL.Record({
32
- id: IDL.Opt(NeuronId),
33
- staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
34
- controller: IDL.Opt(IDL.Principal),
35
- recent_ballots: IDL.Vec(BallotInfo),
36
- kyc_verified: IDL.Bool,
37
- neuron_type: IDL.Opt(IDL.Int32),
38
- not_for_profit: IDL.Bool,
39
- maturity_e8s_equivalent: IDL.Nat64,
40
- cached_neuron_stake_e8s: IDL.Nat64,
41
- created_timestamp_seconds: IDL.Nat64,
42
- auto_stake_maturity: IDL.Opt(IDL.Bool),
43
- aging_since_timestamp_seconds: IDL.Nat64,
44
- hot_keys: IDL.Vec(IDL.Principal),
45
- account: IDL.Vec(IDL.Nat8),
46
- joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
47
- dissolve_state: IDL.Opt(DissolveState),
48
- followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
49
- neuron_fees_e8s: IDL.Nat64,
50
- transfer: IDL.Opt(NeuronStakeTransfer),
51
- known_neuron_data: IDL.Opt(KnownNeuronData),
52
- spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
33
+ 'id' : IDL.Opt(NeuronId),
34
+ 'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
35
+ 'controller' : IDL.Opt(IDL.Principal),
36
+ 'recent_ballots' : IDL.Vec(BallotInfo),
37
+ 'kyc_verified' : IDL.Bool,
38
+ 'neuron_type' : IDL.Opt(IDL.Int32),
39
+ 'not_for_profit' : IDL.Bool,
40
+ 'maturity_e8s_equivalent' : IDL.Nat64,
41
+ 'cached_neuron_stake_e8s' : IDL.Nat64,
42
+ 'created_timestamp_seconds' : IDL.Nat64,
43
+ 'auto_stake_maturity' : IDL.Opt(IDL.Bool),
44
+ 'aging_since_timestamp_seconds' : IDL.Nat64,
45
+ 'hot_keys' : IDL.Vec(IDL.Principal),
46
+ 'account' : IDL.Vec(IDL.Nat8),
47
+ 'joined_community_fund_timestamp_seconds' : IDL.Opt(IDL.Nat64),
48
+ 'dissolve_state' : IDL.Opt(DissolveState),
49
+ 'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
50
+ 'neuron_fees_e8s' : IDL.Nat64,
51
+ 'visibility' : IDL.Opt(IDL.Int32),
52
+ 'transfer' : IDL.Opt(NeuronStakeTransfer),
53
+ 'known_neuron_data' : IDL.Opt(KnownNeuronData),
54
+ 'spawn_at_timestamp_seconds' : IDL.Opt(IDL.Nat64),
53
55
  });
54
56
  const NeuronInfo = IDL.Record({
55
- dissolve_delay_seconds: IDL.Nat64,
56
- recent_ballots: IDL.Vec(BallotInfo),
57
- neuron_type: IDL.Opt(IDL.Int32),
58
- created_timestamp_seconds: IDL.Nat64,
59
- state: IDL.Int32,
60
- stake_e8s: IDL.Nat64,
61
- joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
62
- retrieved_at_timestamp_seconds: IDL.Nat64,
63
- known_neuron_data: IDL.Opt(KnownNeuronData),
64
- voting_power: IDL.Nat64,
65
- age_seconds: IDL.Nat64,
57
+ 'dissolve_delay_seconds' : IDL.Nat64,
58
+ 'recent_ballots' : IDL.Vec(BallotInfo),
59
+ 'neuron_type' : IDL.Opt(IDL.Int32),
60
+ 'created_timestamp_seconds' : IDL.Nat64,
61
+ 'state' : IDL.Int32,
62
+ 'stake_e8s' : IDL.Nat64,
63
+ 'joined_community_fund_timestamp_seconds' : IDL.Opt(IDL.Nat64),
64
+ 'retrieved_at_timestamp_seconds' : IDL.Nat64,
65
+ 'visibility' : IDL.Opt(IDL.Int32),
66
+ 'known_neuron_data' : IDL.Opt(KnownNeuronData),
67
+ 'voting_power' : IDL.Nat64,
68
+ 'age_seconds' : IDL.Nat64,
66
69
  });
67
70
  const ListNeurons = IDL.Record({
68
- neuron_ids: IDL.Vec(IDL.Nat64),
69
- include_neurons_readable_by_caller: IDL.Bool,
71
+ 'neuron_ids' : IDL.Vec(IDL.Nat64),
72
+ 'include_neurons_readable_by_caller' : IDL.Bool,
70
73
  });
71
74
  const ListNeuronsResponse = IDL.Record({
72
- neuron_infos: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
73
- full_neurons: IDL.Vec(Neuron),
75
+ 'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
76
+ 'full_neurons' : IDL.Vec(Neuron),
74
77
  });
75
78
  return IDL.Service({
76
- list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], []),
79
+ 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
77
80
  });
78
81
  };
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
1
+ // Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) '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;