@dfinity/sns 3.2.10 → 3.3.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.
@@ -19,7 +19,17 @@ export const idlFactory = ({ IDL }) => {
19
19
  'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
20
20
  'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
21
21
  });
22
+ const Topic = IDL.Variant({
23
+ 'DappCanisterManagement' : IDL.Null,
24
+ 'DaoCommunitySettings' : IDL.Null,
25
+ 'ApplicationBusinessLogic' : IDL.Null,
26
+ 'CriticalDappOperations' : IDL.Null,
27
+ 'TreasuryAssetManagement' : IDL.Null,
28
+ 'Governance' : IDL.Null,
29
+ 'SnsFrameworkManagement' : IDL.Null,
30
+ });
22
31
  const GenericNervousSystemFunction = IDL.Record({
32
+ 'topic' : IDL.Opt(Topic),
23
33
  'validator_canister_id' : IDL.Opt(IDL.Principal),
24
34
  'target_canister_id' : IDL.Opt(IDL.Principal),
25
35
  'validator_method_name' : IDL.Opt(IDL.Text),
@@ -615,6 +625,19 @@ export const idlFactory = ({ IDL }) => {
615
625
  'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
616
626
  'proposals' : IDL.Vec(ProposalData),
617
627
  });
628
+ const ListTopicsRequest = IDL.Record({});
629
+ const TopicInfo = IDL.Record({
630
+ 'native_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
631
+ 'topic' : IDL.Opt(Topic),
632
+ 'is_critical' : IDL.Opt(IDL.Bool),
633
+ 'name' : IDL.Opt(IDL.Text),
634
+ 'description' : IDL.Opt(IDL.Text),
635
+ 'custom_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
636
+ });
637
+ const ListTopicsResponse = IDL.Record({
638
+ 'uncategorized_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
639
+ 'topics' : IDL.Opt(IDL.Vec(TopicInfo)),
640
+ });
618
641
  const StakeMaturity = IDL.Record({
619
642
  'percentage_to_stake' : IDL.Opt(IDL.Nat32),
620
643
  });
@@ -743,6 +766,11 @@ export const idlFactory = ({ IDL }) => {
743
766
  [ListProposalsResponse],
744
767
  ['query'],
745
768
  ),
769
+ 'list_topics' : IDL.Func(
770
+ [ListTopicsRequest],
771
+ [ListTopicsResponse],
772
+ ['query'],
773
+ ),
746
774
  'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
747
775
  'mint_tokens' : IDL.Func([MintTokensRequest], [IDL.Record({})], []),
748
776
  'refresh_cached_upgrade_steps' : IDL.Func(
@@ -775,7 +803,17 @@ export const init = ({ IDL }) => {
775
803
  'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
776
804
  'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
777
805
  });
806
+ const Topic = IDL.Variant({
807
+ 'DappCanisterManagement' : IDL.Null,
808
+ 'DaoCommunitySettings' : IDL.Null,
809
+ 'ApplicationBusinessLogic' : IDL.Null,
810
+ 'CriticalDappOperations' : IDL.Null,
811
+ 'TreasuryAssetManagement' : IDL.Null,
812
+ 'Governance' : IDL.Null,
813
+ 'SnsFrameworkManagement' : IDL.Null,
814
+ });
778
815
  const GenericNervousSystemFunction = IDL.Record({
816
+ 'topic' : IDL.Opt(Topic),
779
817
  'validator_canister_id' : IDL.Opt(IDL.Principal),
780
818
  'target_canister_id' : IDL.Opt(IDL.Principal),
781
819
  'validator_method_name' : IDL.Opt(IDL.Text),
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/sns/root/canister/root.did' by import-candid
1
+ // Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/sns/swap/canister/swap.did' by import-candid
1
+ // Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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;