@dfinity/sns 3.3.0 → 3.4.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.
@@ -244,6 +244,9 @@ export const idlFactory = ({ IDL }) => {
244
244
  'memory_allocation' : IDL.Opt(IDL.Nat64),
245
245
  'compute_allocation' : IDL.Opt(IDL.Nat64),
246
246
  });
247
+ const SetTopicsForCustomProposals = IDL.Record({
248
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
249
+ });
247
250
  const RegisterDappCanisters = IDL.Record({
248
251
  'canister_ids' : IDL.Vec(IDL.Principal),
249
252
  });
@@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => {
301
304
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
302
305
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
303
306
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
307
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
304
308
  'UpgradeSnsToNextVersion' : IDL.Record({}),
305
309
  'RegisterDappCanisters' : RegisterDappCanisters,
306
310
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -988,6 +992,9 @@ export const init = ({ IDL }) => {
988
992
  'memory_allocation' : IDL.Opt(IDL.Nat64),
989
993
  'compute_allocation' : IDL.Opt(IDL.Nat64),
990
994
  });
995
+ const SetTopicsForCustomProposals = IDL.Record({
996
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
997
+ });
991
998
  const RegisterDappCanisters = IDL.Record({
992
999
  'canister_ids' : IDL.Vec(IDL.Principal),
993
1000
  });
@@ -1045,6 +1052,7 @@ export const init = ({ IDL }) => {
1045
1052
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
1046
1053
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
1047
1054
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
1055
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
1048
1056
  'UpgradeSnsToNextVersion' : IDL.Record({}),
1049
1057
  'RegisterDappCanisters' : RegisterDappCanisters,
1050
1058
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -13,6 +13,7 @@ export type Action =
13
13
  | { AddGenericNervousSystemFunction: NervousSystemFunction }
14
14
  | { ManageDappCanisterSettings: ManageDappCanisterSettings }
15
15
  | { RemoveGenericNervousSystemFunction: bigint }
16
+ | { SetTopicsForCustomProposals: SetTopicsForCustomProposals }
16
17
  | { UpgradeSnsToNextVersion: {} }
17
18
  | { RegisterDappCanisters: RegisterDappCanisters }
18
19
  | { TransferSnsTreasuryFunds: TransferSnsTreasuryFunds }
@@ -570,6 +571,9 @@ export interface SetDissolveTimestamp {
570
571
  export interface SetMode {
571
572
  mode: number;
572
573
  }
574
+ export interface SetTopicsForCustomProposals {
575
+ custom_function_id_to_topic: Array<[bigint, Topic]>;
576
+ }
573
577
  export interface SnsVersion {
574
578
  archive_wasm_hash: [] | [Uint8Array | number[]];
575
579
  root_wasm_hash: [] | [Uint8Array | number[]];
@@ -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/sns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit 9769228872 (2025-02-13 tags: release-2025-03-06_03-10-disable-best-effort-messaging) 'rs/sns/governance/canister/governance.did' by import-candid
2
2
  type Account = record {
3
3
  owner : opt principal;
4
4
  subaccount : opt Subaccount;
@@ -7,6 +7,7 @@ type Account = record {
7
7
  type Action = variant {
8
8
  ManageNervousSystemParameters : NervousSystemParameters;
9
9
  AddGenericNervousSystemFunction : NervousSystemFunction;
10
+ SetTopicsForCustomProposals : SetTopicsForCustomProposals;
10
11
  ManageDappCanisterSettings : ManageDappCanisterSettings;
11
12
  RemoveGenericNervousSystemFunction : nat64;
12
13
  UpgradeSnsToNextVersion : record {};
@@ -395,6 +396,10 @@ type AdvanceSnsTargetVersion = record {
395
396
  new_target : opt SnsVersion;
396
397
  };
397
398
 
399
+ type SetTopicsForCustomProposals = record {
400
+ custom_function_id_to_topic : vec record { nat64; Topic };
401
+ };
402
+
398
403
  type ManageLedgerParameters = record {
399
404
  token_symbol : opt text;
400
405
  transfer_fee : opt nat64;
@@ -244,6 +244,9 @@ export const idlFactory = ({ IDL }) => {
244
244
  'memory_allocation' : IDL.Opt(IDL.Nat64),
245
245
  'compute_allocation' : IDL.Opt(IDL.Nat64),
246
246
  });
247
+ const SetTopicsForCustomProposals = IDL.Record({
248
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
249
+ });
247
250
  const RegisterDappCanisters = IDL.Record({
248
251
  'canister_ids' : IDL.Vec(IDL.Principal),
249
252
  });
@@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => {
301
304
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
302
305
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
303
306
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
307
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
304
308
  'UpgradeSnsToNextVersion' : IDL.Record({}),
305
309
  'RegisterDappCanisters' : RegisterDappCanisters,
306
310
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -1000,6 +1004,9 @@ export const init = ({ IDL }) => {
1000
1004
  'memory_allocation' : IDL.Opt(IDL.Nat64),
1001
1005
  'compute_allocation' : IDL.Opt(IDL.Nat64),
1002
1006
  });
1007
+ const SetTopicsForCustomProposals = IDL.Record({
1008
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
1009
+ });
1003
1010
  const RegisterDappCanisters = IDL.Record({
1004
1011
  'canister_ids' : IDL.Vec(IDL.Principal),
1005
1012
  });
@@ -1057,6 +1064,7 @@ export const init = ({ IDL }) => {
1057
1064
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
1058
1065
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
1059
1066
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
1067
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
1060
1068
  'UpgradeSnsToNextVersion' : IDL.Record({}),
1061
1069
  'RegisterDappCanisters' : RegisterDappCanisters,
1062
1070
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -244,6 +244,9 @@ export const idlFactory = ({ IDL }) => {
244
244
  'memory_allocation' : IDL.Opt(IDL.Nat64),
245
245
  'compute_allocation' : IDL.Opt(IDL.Nat64),
246
246
  });
247
+ const SetTopicsForCustomProposals = IDL.Record({
248
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
249
+ });
247
250
  const RegisterDappCanisters = IDL.Record({
248
251
  'canister_ids' : IDL.Vec(IDL.Principal),
249
252
  });
@@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => {
301
304
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
302
305
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
303
306
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
307
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
304
308
  'UpgradeSnsToNextVersion' : IDL.Record({}),
305
309
  'RegisterDappCanisters' : RegisterDappCanisters,
306
310
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -1016,6 +1020,9 @@ export const init = ({ IDL }) => {
1016
1020
  'memory_allocation' : IDL.Opt(IDL.Nat64),
1017
1021
  'compute_allocation' : IDL.Opt(IDL.Nat64),
1018
1022
  });
1023
+ const SetTopicsForCustomProposals = IDL.Record({
1024
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
1025
+ });
1019
1026
  const RegisterDappCanisters = IDL.Record({
1020
1027
  'canister_ids' : IDL.Vec(IDL.Principal),
1021
1028
  });
@@ -1073,6 +1080,7 @@ export const init = ({ IDL }) => {
1073
1080
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
1074
1081
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
1075
1082
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
1083
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
1076
1084
  'UpgradeSnsToNextVersion' : IDL.Record({}),
1077
1085
  'RegisterDappCanisters' : RegisterDappCanisters,
1078
1086
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -13,6 +13,7 @@ export type Action =
13
13
  | { AddGenericNervousSystemFunction: NervousSystemFunction }
14
14
  | { ManageDappCanisterSettings: ManageDappCanisterSettings }
15
15
  | { RemoveGenericNervousSystemFunction: bigint }
16
+ | { SetTopicsForCustomProposals: SetTopicsForCustomProposals }
16
17
  | { UpgradeSnsToNextVersion: {} }
17
18
  | { RegisterDappCanisters: RegisterDappCanisters }
18
19
  | { TransferSnsTreasuryFunds: TransferSnsTreasuryFunds }
@@ -585,6 +586,9 @@ export interface SetDissolveTimestamp {
585
586
  export interface SetMode {
586
587
  mode: number;
587
588
  }
589
+ export interface SetTopicsForCustomProposals {
590
+ custom_function_id_to_topic: Array<[bigint, Topic]>;
591
+ }
588
592
  export interface SnsVersion {
589
593
  archive_wasm_hash: [] | [Uint8Array | number[]];
590
594
  root_wasm_hash: [] | [Uint8Array | number[]];
@@ -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/sns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit 9769228872 (2025-02-13 tags: release-2025-03-06_03-10-disable-best-effort-messaging) '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;
@@ -7,6 +7,7 @@ type Account = record {
7
7
  type Action = variant {
8
8
  ManageNervousSystemParameters : NervousSystemParameters;
9
9
  AddGenericNervousSystemFunction : NervousSystemFunction;
10
+ SetTopicsForCustomProposals : SetTopicsForCustomProposals;
10
11
  ManageDappCanisterSettings : ManageDappCanisterSettings;
11
12
  RemoveGenericNervousSystemFunction : nat64;
12
13
  UpgradeSnsToNextVersion : record {};
@@ -404,6 +405,10 @@ type AdvanceSnsTargetVersion = record {
404
405
  new_target : opt SnsVersion;
405
406
  };
406
407
 
408
+ type SetTopicsForCustomProposals = record {
409
+ custom_function_id_to_topic : vec record { nat64; Topic };
410
+ };
411
+
407
412
  type ManageLedgerParameters = record {
408
413
  token_symbol : opt text;
409
414
  transfer_fee : opt nat64;
@@ -244,6 +244,9 @@ export const idlFactory = ({ IDL }) => {
244
244
  'memory_allocation' : IDL.Opt(IDL.Nat64),
245
245
  'compute_allocation' : IDL.Opt(IDL.Nat64),
246
246
  });
247
+ const SetTopicsForCustomProposals = IDL.Record({
248
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
249
+ });
247
250
  const RegisterDappCanisters = IDL.Record({
248
251
  'canister_ids' : IDL.Vec(IDL.Principal),
249
252
  });
@@ -301,6 +304,7 @@ export const idlFactory = ({ IDL }) => {
301
304
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
302
305
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
303
306
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
307
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
304
308
  'UpgradeSnsToNextVersion' : IDL.Record({}),
305
309
  'RegisterDappCanisters' : RegisterDappCanisters,
306
310
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -1028,6 +1032,9 @@ export const init = ({ IDL }) => {
1028
1032
  'memory_allocation' : IDL.Opt(IDL.Nat64),
1029
1033
  'compute_allocation' : IDL.Opt(IDL.Nat64),
1030
1034
  });
1035
+ const SetTopicsForCustomProposals = IDL.Record({
1036
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
1037
+ });
1031
1038
  const RegisterDappCanisters = IDL.Record({
1032
1039
  'canister_ids' : IDL.Vec(IDL.Principal),
1033
1040
  });
@@ -1085,6 +1092,7 @@ export const init = ({ IDL }) => {
1085
1092
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
1086
1093
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
1087
1094
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
1095
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
1088
1096
  'UpgradeSnsToNextVersion' : IDL.Record({}),
1089
1097
  'RegisterDappCanisters' : RegisterDappCanisters,
1090
1098
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -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/sns/root/canister/root.did' by import-candid
1
+ // Generated from IC repo commit 9769228872 (2025-02-13 tags: release-2025-03-06_03-10-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 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/sns/swap/canister/swap.did' by import-candid
1
+ // Generated from IC repo commit 9769228872 (2025-02-13 tags: release-2025-03-06_03-10-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;