@dfinity/sns 3.3.0 → 3.4.0-next-2025-03-26

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.
package/README.md CHANGED
@@ -102,9 +102,26 @@ Lookup for the canister ids of a Sns and initialize the wrapper to access its fe
102
102
 
103
103
  [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L65)
104
104
 
105
- #### Methods
105
+ #### Static Methods
106
106
 
107
107
  - [create](#gear-create)
108
+
109
+ ##### :gear: create
110
+
111
+ Instantiate a canister to interact with the governance of a Sns project.
112
+
113
+ | Method | Type |
114
+ | -------- | ------------------------------------------------------------------ |
115
+ | `create` | `(options: SnsCanisterOptions<_SERVICE>) => SnsGovernanceCanister` |
116
+
117
+ Parameters:
118
+
119
+ - `options`: Miscellaneous options to initialize the canister. Its ID being the only mandatory parammeter.
120
+
121
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L71)
122
+
123
+ #### Methods
124
+
108
125
  - [listNeurons](#gear-listneurons)
109
126
  - [listProposals](#gear-listproposals)
110
127
  - [listTopics](#gear-listtopics)
@@ -131,20 +148,6 @@ Lookup for the canister ids of a Sns and initialize the wrapper to access its fe
131
148
  - [refreshNeuron](#gear-refreshneuron)
132
149
  - [claimNeuron](#gear-claimneuron)
133
150
 
134
- ##### :gear: create
135
-
136
- Instantiate a canister to interact with the governance of a Sns project.
137
-
138
- | Method | Type |
139
- | -------- | ------------------------------------------------------------------ |
140
- | `create` | `(options: SnsCanisterOptions<_SERVICE>) => SnsGovernanceCanister` |
141
-
142
- Parameters:
143
-
144
- - `options`: Miscellaneous options to initialize the canister. Its ID being the only mandatory parammeter.
145
-
146
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/governance.canister.ts#L71)
147
-
148
151
  ##### :gear: listNeurons
149
152
 
150
153
  List the neurons of the Sns
@@ -416,10 +419,9 @@ Claim neuron
416
419
 
417
420
  [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/root.canister.ts#L10)
418
421
 
419
- #### Methods
422
+ #### Static Methods
420
423
 
421
424
  - [create](#gear-create)
422
- - [listSnsCanisters](#gear-listsnscanisters)
423
425
 
424
426
  ##### :gear: create
425
427
 
@@ -429,6 +431,10 @@ Claim neuron
429
431
 
430
432
  [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/root.canister.ts#L11)
431
433
 
434
+ #### Methods
435
+
436
+ - [listSnsCanisters](#gear-listsnscanisters)
437
+
432
438
  ##### :gear: listSnsCanisters
433
439
 
434
440
  List the canisters that are part of the Sns.
@@ -449,9 +455,20 @@ Parameters:
449
455
 
450
456
  [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#L33)
451
457
 
452
- #### Methods
458
+ #### Static Methods
453
459
 
454
460
  - [create](#gear-create)
461
+
462
+ ##### :gear: create
463
+
464
+ | Method | Type |
465
+ | -------- | ------------------------------------------------------------ |
466
+ | `create` | `(options: SnsCanisterOptions<_SERVICE>) => SnsSwapCanister` |
467
+
468
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#L34)
469
+
470
+ #### Methods
471
+
455
472
  - [state](#gear-state)
456
473
  - [notifyPaymentFailure](#gear-notifypaymentfailure)
457
474
  - [notifyParticipation](#gear-notifyparticipation)
@@ -463,14 +480,6 @@ Parameters:
463
480
  - [getLifecycle](#gear-getlifecycle)
464
481
  - [getFinalizationStatus](#gear-getfinalizationstatus)
465
482
 
466
- ##### :gear: create
467
-
468
- | Method | Type |
469
- | -------- | ------------------------------------------------------------ |
470
- | `create` | `(options: SnsCanisterOptions<_SERVICE>) => SnsSwapCanister` |
471
-
472
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/sns/src/swap.canister.ts#L34)
473
-
474
483
  ##### :gear: state
475
484
 
476
485
  Get the state of the swap
@@ -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,
@@ -326,6 +330,7 @@ export const idlFactory = ({ IDL }) => {
326
330
  const ProposalData = IDL.Record({
327
331
  'id' : IDL.Opt(ProposalId),
328
332
  'payload_text_rendering' : IDL.Opt(IDL.Text),
333
+ 'topic' : IDL.Opt(Topic),
329
334
  'action' : IDL.Nat64,
330
335
  'failure_reason' : IDL.Opt(GovernanceError),
331
336
  'action_auxiliary' : IDL.Opt(ActionAuxiliary),
@@ -988,6 +993,9 @@ export const init = ({ IDL }) => {
988
993
  'memory_allocation' : IDL.Opt(IDL.Nat64),
989
994
  'compute_allocation' : IDL.Opt(IDL.Nat64),
990
995
  });
996
+ const SetTopicsForCustomProposals = IDL.Record({
997
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
998
+ });
991
999
  const RegisterDappCanisters = IDL.Record({
992
1000
  'canister_ids' : IDL.Vec(IDL.Principal),
993
1001
  });
@@ -1045,6 +1053,7 @@ export const init = ({ IDL }) => {
1045
1053
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
1046
1054
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
1047
1055
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
1056
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
1048
1057
  'UpgradeSnsToNextVersion' : IDL.Record({}),
1049
1058
  'RegisterDappCanisters' : RegisterDappCanisters,
1050
1059
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -1070,6 +1079,7 @@ export const init = ({ IDL }) => {
1070
1079
  const ProposalData = IDL.Record({
1071
1080
  'id' : IDL.Opt(ProposalId),
1072
1081
  'payload_text_rendering' : IDL.Opt(IDL.Text),
1082
+ 'topic' : IDL.Opt(Topic),
1073
1083
  'action' : IDL.Nat64,
1074
1084
  'failure_reason' : IDL.Opt(GovernanceError),
1075
1085
  'action_auxiliary' : IDL.Opt(ActionAuxiliary),
@@ -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 }
@@ -512,6 +513,7 @@ export interface Proposal {
512
513
  export interface ProposalData {
513
514
  id: [] | [ProposalId];
514
515
  payload_text_rendering: [] | [string];
516
+ topic: [] | [Topic];
515
517
  action: bigint;
516
518
  failure_reason: [] | [GovernanceError];
517
519
  action_auxiliary: [] | [ActionAuxiliary];
@@ -570,6 +572,9 @@ export interface SetDissolveTimestamp {
570
572
  export interface SetMode {
571
573
  mode: number;
572
574
  }
575
+ export interface SetTopicsForCustomProposals {
576
+ custom_function_id_to_topic: Array<[bigint, Topic]>;
577
+ }
573
578
  export interface SnsVersion {
574
579
  archive_wasm_hash: [] | [Uint8Array | number[]];
575
580
  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 f6f5e0927d (2025-03-13 tags: release-2025-03-14_03-10-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;
@@ -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 {};
@@ -227,7 +228,7 @@ type GenericNervousSystemFunction = record {
227
228
  target_canister_id : opt principal;
228
229
  validator_method_name : opt text;
229
230
  target_method_name : opt text;
230
- topic: opt Topic;
231
+ topic : opt Topic;
231
232
  };
232
233
 
233
234
  type GetMaturityModulationResponse = 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;
@@ -607,6 +612,7 @@ type ProposalData = record {
607
612
  minimum_yes_proportion_of_exercised : opt Percentage;
608
613
  is_eligible_for_rewards : bool;
609
614
  executed_timestamp_seconds : nat64;
615
+ topic : opt Topic;
610
616
  };
611
617
 
612
618
  type ProposalId = record {
@@ -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,
@@ -326,6 +330,7 @@ export const idlFactory = ({ IDL }) => {
326
330
  const ProposalData = IDL.Record({
327
331
  'id' : IDL.Opt(ProposalId),
328
332
  'payload_text_rendering' : IDL.Opt(IDL.Text),
333
+ 'topic' : IDL.Opt(Topic),
329
334
  'action' : IDL.Nat64,
330
335
  'failure_reason' : IDL.Opt(GovernanceError),
331
336
  'action_auxiliary' : IDL.Opt(ActionAuxiliary),
@@ -1000,6 +1005,9 @@ export const init = ({ IDL }) => {
1000
1005
  'memory_allocation' : IDL.Opt(IDL.Nat64),
1001
1006
  'compute_allocation' : IDL.Opt(IDL.Nat64),
1002
1007
  });
1008
+ const SetTopicsForCustomProposals = IDL.Record({
1009
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
1010
+ });
1003
1011
  const RegisterDappCanisters = IDL.Record({
1004
1012
  'canister_ids' : IDL.Vec(IDL.Principal),
1005
1013
  });
@@ -1057,6 +1065,7 @@ export const init = ({ IDL }) => {
1057
1065
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
1058
1066
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
1059
1067
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
1068
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
1060
1069
  'UpgradeSnsToNextVersion' : IDL.Record({}),
1061
1070
  'RegisterDappCanisters' : RegisterDappCanisters,
1062
1071
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -1082,6 +1091,7 @@ export const init = ({ IDL }) => {
1082
1091
  const ProposalData = IDL.Record({
1083
1092
  'id' : IDL.Opt(ProposalId),
1084
1093
  'payload_text_rendering' : IDL.Opt(IDL.Text),
1094
+ 'topic' : IDL.Opt(Topic),
1085
1095
  'action' : IDL.Nat64,
1086
1096
  'failure_reason' : IDL.Opt(GovernanceError),
1087
1097
  'action_auxiliary' : IDL.Opt(ActionAuxiliary),
@@ -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,
@@ -326,6 +330,7 @@ export const idlFactory = ({ IDL }) => {
326
330
  const ProposalData = IDL.Record({
327
331
  'id' : IDL.Opt(ProposalId),
328
332
  'payload_text_rendering' : IDL.Opt(IDL.Text),
333
+ 'topic' : IDL.Opt(Topic),
329
334
  'action' : IDL.Nat64,
330
335
  'failure_reason' : IDL.Opt(GovernanceError),
331
336
  'action_auxiliary' : IDL.Opt(ActionAuxiliary),
@@ -1016,6 +1021,9 @@ export const init = ({ IDL }) => {
1016
1021
  'memory_allocation' : IDL.Opt(IDL.Nat64),
1017
1022
  'compute_allocation' : IDL.Opt(IDL.Nat64),
1018
1023
  });
1024
+ const SetTopicsForCustomProposals = IDL.Record({
1025
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
1026
+ });
1019
1027
  const RegisterDappCanisters = IDL.Record({
1020
1028
  'canister_ids' : IDL.Vec(IDL.Principal),
1021
1029
  });
@@ -1073,6 +1081,7 @@ export const init = ({ IDL }) => {
1073
1081
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
1074
1082
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
1075
1083
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
1084
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
1076
1085
  'UpgradeSnsToNextVersion' : IDL.Record({}),
1077
1086
  'RegisterDappCanisters' : RegisterDappCanisters,
1078
1087
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -1098,6 +1107,7 @@ export const init = ({ IDL }) => {
1098
1107
  const ProposalData = IDL.Record({
1099
1108
  'id' : IDL.Opt(ProposalId),
1100
1109
  'payload_text_rendering' : IDL.Opt(IDL.Text),
1110
+ 'topic' : IDL.Opt(Topic),
1101
1111
  'action' : IDL.Nat64,
1102
1112
  'failure_reason' : IDL.Opt(GovernanceError),
1103
1113
  'action_auxiliary' : IDL.Opt(ActionAuxiliary),
@@ -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 }
@@ -527,6 +528,7 @@ export interface Proposal {
527
528
  export interface ProposalData {
528
529
  id: [] | [ProposalId];
529
530
  payload_text_rendering: [] | [string];
531
+ topic: [] | [Topic];
530
532
  action: bigint;
531
533
  failure_reason: [] | [GovernanceError];
532
534
  action_auxiliary: [] | [ActionAuxiliary];
@@ -585,6 +587,9 @@ export interface SetDissolveTimestamp {
585
587
  export interface SetMode {
586
588
  mode: number;
587
589
  }
590
+ export interface SetTopicsForCustomProposals {
591
+ custom_function_id_to_topic: Array<[bigint, Topic]>;
592
+ }
588
593
  export interface SnsVersion {
589
594
  archive_wasm_hash: [] | [Uint8Array | number[]];
590
595
  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 f6f5e0927d (2025-03-13 tags: release-2025-03-14_03-10-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;
@@ -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 {};
@@ -236,7 +237,7 @@ type GenericNervousSystemFunction = record {
236
237
  target_canister_id : opt principal;
237
238
  validator_method_name : opt text;
238
239
  target_method_name : opt text;
239
- topic: opt Topic;
240
+ topic : opt Topic;
240
241
  };
241
242
 
242
243
  type GetMaturityModulationResponse = 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;
@@ -621,6 +626,7 @@ type ProposalData = record {
621
626
  minimum_yes_proportion_of_exercised : opt Percentage;
622
627
  is_eligible_for_rewards : bool;
623
628
  executed_timestamp_seconds : nat64;
629
+ topic : opt Topic;
624
630
  };
625
631
 
626
632
  type ProposalId = record {
@@ -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,
@@ -326,6 +330,7 @@ export const idlFactory = ({ IDL }) => {
326
330
  const ProposalData = IDL.Record({
327
331
  'id' : IDL.Opt(ProposalId),
328
332
  'payload_text_rendering' : IDL.Opt(IDL.Text),
333
+ 'topic' : IDL.Opt(Topic),
329
334
  'action' : IDL.Nat64,
330
335
  'failure_reason' : IDL.Opt(GovernanceError),
331
336
  'action_auxiliary' : IDL.Opt(ActionAuxiliary),
@@ -1028,6 +1033,9 @@ export const init = ({ IDL }) => {
1028
1033
  'memory_allocation' : IDL.Opt(IDL.Nat64),
1029
1034
  'compute_allocation' : IDL.Opt(IDL.Nat64),
1030
1035
  });
1036
+ const SetTopicsForCustomProposals = IDL.Record({
1037
+ 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
1038
+ });
1031
1039
  const RegisterDappCanisters = IDL.Record({
1032
1040
  'canister_ids' : IDL.Vec(IDL.Principal),
1033
1041
  });
@@ -1085,6 +1093,7 @@ export const init = ({ IDL }) => {
1085
1093
  'AddGenericNervousSystemFunction' : NervousSystemFunction,
1086
1094
  'ManageDappCanisterSettings' : ManageDappCanisterSettings,
1087
1095
  'RemoveGenericNervousSystemFunction' : IDL.Nat64,
1096
+ 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
1088
1097
  'UpgradeSnsToNextVersion' : IDL.Record({}),
1089
1098
  'RegisterDappCanisters' : RegisterDappCanisters,
1090
1099
  'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
@@ -1110,6 +1119,7 @@ export const init = ({ IDL }) => {
1110
1119
  const ProposalData = IDL.Record({
1111
1120
  'id' : IDL.Opt(ProposalId),
1112
1121
  'payload_text_rendering' : IDL.Opt(IDL.Text),
1122
+ 'topic' : IDL.Opt(Topic),
1113
1123
  'action' : IDL.Nat64,
1114
1124
  'failure_reason' : IDL.Opt(GovernanceError),
1115
1125
  'action_auxiliary' : IDL.Opt(ActionAuxiliary),
@@ -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 f6f5e0927d (2025-03-13 tags: release-2025-03-14_03-10-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 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 f6f5e0927d (2025-03-13 tags: release-2025-03-14_03-10-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;