@dfinity/sns 3.2.5 → 3.2.6

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.
@@ -554,13 +554,17 @@ export const idlFactory = ({ IDL }) => {
554
554
  'sns_initialization_parameters' : IDL.Text,
555
555
  });
556
556
  const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
557
- const GetUpgradeJournalRequest = IDL.Record({});
557
+ const GetUpgradeJournalRequest = IDL.Record({
558
+ 'offset' : IDL.Opt(IDL.Nat64),
559
+ 'limit' : IDL.Opt(IDL.Nat64),
560
+ });
558
561
  const GetUpgradeJournalResponse = IDL.Record({
559
562
  'upgrade_journal' : IDL.Opt(UpgradeJournal),
560
563
  'upgrade_steps' : IDL.Opt(Versions),
561
564
  'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
562
565
  'deployed_version' : IDL.Opt(Version),
563
566
  'target_version' : IDL.Opt(Version),
567
+ 'upgrade_journal_entry_count' : IDL.Opt(IDL.Nat64),
564
568
  });
565
569
  const ListNervousSystemFunctionsResponse = IDL.Record({
566
570
  'reserved_ids' : IDL.Vec(IDL.Nat64),
@@ -242,13 +242,17 @@ export interface GetSnsInitializationParametersResponse {
242
242
  export interface GetTimersResponse {
243
243
  timers: [] | [Timers];
244
244
  }
245
- export type GetUpgradeJournalRequest = {};
245
+ export interface GetUpgradeJournalRequest {
246
+ offset: [] | [bigint];
247
+ limit: [] | [bigint];
248
+ }
246
249
  export interface GetUpgradeJournalResponse {
247
250
  upgrade_journal: [] | [UpgradeJournal];
248
251
  upgrade_steps: [] | [Versions];
249
252
  response_timestamp_seconds: [] | [bigint];
250
253
  deployed_version: [] | [Version];
251
254
  target_version: [] | [Version];
255
+ upgrade_journal_entry_count: [] | [bigint];
252
256
  }
253
257
  export interface Governance {
254
258
  root_canister_id: [] | [Principal];
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 5d20289 (2024-11-21 tags: release-2024-11-21_03-11-24.04-base-kernel) 'rs/sns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit d9fe207 (2024-12-06 tags: release-2024-12-06_03-16-base) 'rs/sns/governance/canister/governance.did' by import-candid
2
2
  type Account = record {
3
3
  owner : opt principal;
4
4
  subaccount : opt Subaccount;
@@ -807,7 +807,10 @@ type UpgradeJournal = record {
807
807
  entries : vec UpgradeJournalEntry;
808
808
  };
809
809
 
810
- type GetUpgradeJournalRequest = record {};
810
+ type GetUpgradeJournalRequest = record {
811
+ limit : opt nat64;
812
+ offset : opt nat64;
813
+ };
811
814
 
812
815
  type GetUpgradeJournalResponse = record {
813
816
  upgrade_steps : opt Versions;
@@ -815,6 +818,7 @@ type GetUpgradeJournalResponse = record {
815
818
  target_version : opt Version;
816
819
  deployed_version : opt Version;
817
820
  upgrade_journal : opt UpgradeJournal;
821
+ upgrade_journal_entry_count: opt nat64;
818
822
  };
819
823
 
820
824
  service : (Governance) -> {
@@ -554,13 +554,17 @@ export const idlFactory = ({ IDL }) => {
554
554
  'sns_initialization_parameters' : IDL.Text,
555
555
  });
556
556
  const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
557
- const GetUpgradeJournalRequest = IDL.Record({});
557
+ const GetUpgradeJournalRequest = IDL.Record({
558
+ 'offset' : IDL.Opt(IDL.Nat64),
559
+ 'limit' : IDL.Opt(IDL.Nat64),
560
+ });
558
561
  const GetUpgradeJournalResponse = IDL.Record({
559
562
  'upgrade_journal' : IDL.Opt(UpgradeJournal),
560
563
  'upgrade_steps' : IDL.Opt(Versions),
561
564
  'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
562
565
  'deployed_version' : IDL.Opt(Version),
563
566
  'target_version' : IDL.Opt(Version),
567
+ 'upgrade_journal_entry_count' : IDL.Opt(IDL.Nat64),
564
568
  });
565
569
  const ListNervousSystemFunctionsResponse = IDL.Record({
566
570
  'reserved_ids' : IDL.Vec(IDL.Nat64),
@@ -565,13 +565,17 @@ export const idlFactory = ({ IDL }) => {
565
565
  'sns_initialization_parameters' : IDL.Text,
566
566
  });
567
567
  const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
568
- const GetUpgradeJournalRequest = IDL.Record({});
568
+ const GetUpgradeJournalRequest = IDL.Record({
569
+ 'offset' : IDL.Opt(IDL.Nat64),
570
+ 'limit' : IDL.Opt(IDL.Nat64),
571
+ });
569
572
  const GetUpgradeJournalResponse = IDL.Record({
570
573
  'upgrade_journal' : IDL.Opt(UpgradeJournal),
571
574
  'upgrade_steps' : IDL.Opt(Versions),
572
575
  'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
573
576
  'deployed_version' : IDL.Opt(Version),
574
577
  'target_version' : IDL.Opt(Version),
578
+ 'upgrade_journal_entry_count' : IDL.Opt(IDL.Nat64),
575
579
  });
576
580
  const ListNervousSystemFunctionsResponse = IDL.Record({
577
581
  'reserved_ids' : IDL.Vec(IDL.Nat64),
@@ -716,6 +720,11 @@ export const idlFactory = ({ IDL }) => {
716
720
  'list_proposals' : IDL.Func([ListProposals], [ListProposalsResponse], []),
717
721
  'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
718
722
  'mint_tokens' : IDL.Func([MintTokensRequest], [IDL.Record({})], []),
723
+ 'refresh_cached_upgrade_steps' : IDL.Func(
724
+ [IDL.Record({})],
725
+ [IDL.Record({})],
726
+ [],
727
+ ),
719
728
  'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
720
729
  'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []),
721
730
  'update_neuron' : IDL.Func([Neuron], [IDL.Opt(GovernanceError)], []),
@@ -253,13 +253,17 @@ export interface GetSnsInitializationParametersResponse {
253
253
  export interface GetTimersResponse {
254
254
  timers: [] | [Timers];
255
255
  }
256
- export type GetUpgradeJournalRequest = {};
256
+ export interface GetUpgradeJournalRequest {
257
+ offset: [] | [bigint];
258
+ limit: [] | [bigint];
259
+ }
257
260
  export interface GetUpgradeJournalResponse {
258
261
  upgrade_journal: [] | [UpgradeJournal];
259
262
  upgrade_steps: [] | [Versions];
260
263
  response_timestamp_seconds: [] | [bigint];
261
264
  deployed_version: [] | [Version];
262
265
  target_version: [] | [Version];
266
+ upgrade_journal_entry_count: [] | [bigint];
263
267
  }
264
268
  export interface Governance {
265
269
  root_canister_id: [] | [Principal];
@@ -744,6 +748,7 @@ export interface _SERVICE {
744
748
  list_proposals: ActorMethod<[ListProposals], ListProposalsResponse>;
745
749
  manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
746
750
  mint_tokens: ActorMethod<[MintTokensRequest], {}>;
751
+ refresh_cached_upgrade_steps: ActorMethod<[{}], {}>;
747
752
  reset_timers: ActorMethod<[{}], {}>;
748
753
  set_mode: ActorMethod<[SetMode], {}>;
749
754
  update_neuron: ActorMethod<[Neuron], [] | [GovernanceError]>;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 5d20289 (2024-11-21 tags: release-2024-11-21_03-11-24.04-base-kernel) 'rs/sns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit d9fe207 (2024-12-06 tags: release-2024-12-06_03-16-base) 'rs/sns/governance/canister/governance_test.did' by import-candid
2
2
  type Account = record {
3
3
  owner : opt principal;
4
4
  subaccount : opt Subaccount;
@@ -821,7 +821,10 @@ type UpgradeJournal = record {
821
821
  entries : vec UpgradeJournalEntry;
822
822
  };
823
823
 
824
- type GetUpgradeJournalRequest = record {};
824
+ type GetUpgradeJournalRequest = record {
825
+ limit : opt nat64;
826
+ offset : opt nat64;
827
+ };
825
828
 
826
829
  type GetUpgradeJournalResponse = record {
827
830
  upgrade_steps : opt Versions;
@@ -829,6 +832,7 @@ type GetUpgradeJournalResponse = record {
829
832
  target_version : opt Version;
830
833
  deployed_version : opt Version;
831
834
  upgrade_journal : opt UpgradeJournal;
835
+ upgrade_journal_entry_count: opt nat64;
832
836
  };
833
837
 
834
838
  type AdvanceTargetVersionRequest = record { target_version : opt Version; };
@@ -860,4 +864,5 @@ service : (Governance) -> {
860
864
  advance_target_version : (AdvanceTargetVersionRequest) -> (AdvanceTargetVersionResponse);
861
865
  reset_timers : (record {}) -> (record {});
862
866
  get_timers : (record {}) -> (GetTimersResponse) query;
867
+ refresh_cached_upgrade_steps : (record {}) -> (record {});
863
868
  }
@@ -565,13 +565,17 @@ export const idlFactory = ({ IDL }) => {
565
565
  'sns_initialization_parameters' : IDL.Text,
566
566
  });
567
567
  const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
568
- const GetUpgradeJournalRequest = IDL.Record({});
568
+ const GetUpgradeJournalRequest = IDL.Record({
569
+ 'offset' : IDL.Opt(IDL.Nat64),
570
+ 'limit' : IDL.Opt(IDL.Nat64),
571
+ });
569
572
  const GetUpgradeJournalResponse = IDL.Record({
570
573
  'upgrade_journal' : IDL.Opt(UpgradeJournal),
571
574
  'upgrade_steps' : IDL.Opt(Versions),
572
575
  'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
573
576
  'deployed_version' : IDL.Opt(Version),
574
577
  'target_version' : IDL.Opt(Version),
578
+ 'upgrade_journal_entry_count' : IDL.Opt(IDL.Nat64),
575
579
  });
576
580
  const ListNervousSystemFunctionsResponse = IDL.Record({
577
581
  'reserved_ids' : IDL.Vec(IDL.Nat64),
@@ -724,6 +728,11 @@ export const idlFactory = ({ IDL }) => {
724
728
  ),
725
729
  'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
726
730
  'mint_tokens' : IDL.Func([MintTokensRequest], [IDL.Record({})], []),
731
+ 'refresh_cached_upgrade_steps' : IDL.Func(
732
+ [IDL.Record({})],
733
+ [IDL.Record({})],
734
+ [],
735
+ ),
727
736
  'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
728
737
  'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []),
729
738
  'update_neuron' : IDL.Func([Neuron], [IDL.Opt(GovernanceError)], []),
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 5d20289 (2024-11-21 tags: release-2024-11-21_03-11-24.04-base-kernel) 'rs/sns/root/canister/root.did' by import-candid
1
+ // Generated from IC repo commit d9fe207 (2024-12-06 tags: release-2024-12-06_03-16-base) 'rs/sns/root/canister/root.did' by import-candid
2
2
  type CanisterCallError = record {
3
3
  code : opt int32;
4
4
  description : text;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 5d20289 (2024-11-21 tags: release-2024-11-21_03-11-24.04-base-kernel) 'rs/sns/swap/canister/swap.did' by import-candid
1
+ // Generated from IC repo commit d9fe207 (2024-12-06 tags: release-2024-12-06_03-16-base) 'rs/sns/swap/canister/swap.did' by import-candid
2
2
  type BuyerState = record {
3
3
  icp : opt TransferableAmount;
4
4
  has_created_neuron_recipes : opt bool;