@dfinity/sns 4.1.0 → 4.1.1

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.
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 4565785 (2025-10-01 tags: release-2025-10-02_03-13-base) 'rs/sns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit 285897d (2025-10-08 tags: release-2025-10-09_03-15-base) 'rs/sns/governance/canister/governance.did' by import-candid
2
2
 
3
3
  type Account = record {
4
4
  owner : opt principal;
@@ -290,7 +290,7 @@ type TreasuryMetrics = record {
290
290
  };
291
291
 
292
292
  type VotingPowerMetrics = record {
293
- governance_total_potential_voting_power : opt nat64;
293
+ governance_total_potential_voting_power : opt nat64;
294
294
 
295
295
  // When the metrics were last updated.
296
296
  timestamp_seconds : opt nat64;
@@ -37,6 +37,9 @@ export type ActionAuxiliary =
37
37
  }
38
38
  | { MintSnsTokens: MintSnsTokensActionAuxiliary }
39
39
  | { AdvanceSnsTargetVersion: AdvanceSnsTargetVersionActionAuxiliary };
40
+ /**
41
+ * The following types are for feature = "test"
42
+ */
40
43
  export interface AddMaturityRequest {
41
44
  id: [] | [NeuronId];
42
45
  amount_e8s: [] | [bigint];
@@ -901,6 +904,9 @@ export type Wasm =
901
904
  | { Chunked: ChunkedCanisterWasm }
902
905
  | { Bytes: Uint8Array | number[] };
903
906
  export interface _SERVICE {
907
+ /**
908
+ * The following are methods for feature = "test"
909
+ */
904
910
  add_maturity: ActorMethod<[AddMaturityRequest], AddMaturityResponse>;
905
911
  advance_target_version: ActorMethod<
906
912
  [AdvanceTargetVersionRequest],
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 4565785 (2025-10-01 tags: release-2025-10-02_03-13-base) 'rs/sns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit 285897d (2025-10-08 tags: release-2025-10-09_03-15-base) 'packages/sns/candid/sns_governance_test.did.tmp' by import-candid
2
2
 
3
3
  type Account = record {
4
4
  owner : opt principal;
@@ -34,15 +34,6 @@ type ActionAuxiliary = variant {
34
34
  AdvanceSnsTargetVersion : AdvanceSnsTargetVersionActionAuxiliary;
35
35
  };
36
36
 
37
- type AddMaturityRequest = record {
38
- id : opt NeuronId;
39
- amount_e8s : opt nat64;
40
- };
41
-
42
- type AddMaturityResponse = record {
43
- new_maturity_e8s : opt nat64;
44
- };
45
-
46
37
  type AddNeuronPermissions = record {
47
38
  permissions_to_add : opt NeuronPermissionList;
48
39
  principal_id : opt principal;
@@ -308,7 +299,7 @@ type VotingPowerMetrics = record {
308
299
  type Metrics = record {
309
300
  num_recently_submitted_proposals : opt nat64;
310
301
  num_recently_executed_proposals: opt nat64;
311
-
302
+
312
303
  last_ledger_block_timestamp : opt nat64;
313
304
 
314
305
  // The metrics below are cached (albeit this is an implementation detail).
@@ -549,11 +540,6 @@ type AdvanceSnsTargetVersionActionAuxiliary = record {
549
540
  target_version : opt SnsVersion;
550
541
  };
551
542
 
552
- type MintTokensRequest = record {
553
- recipient : opt Account;
554
- amount_e8s : opt nat64;
555
- };
556
-
557
543
  type Motion = record {
558
544
  motion_text : text;
559
545
  };
@@ -1029,10 +1015,6 @@ type GetUpgradeJournalResponse = record {
1029
1015
  upgrade_journal_entry_count: opt nat64;
1030
1016
  };
1031
1017
 
1032
- type AdvanceTargetVersionRequest = record { target_version : opt Version; };
1033
- type AdvanceTargetVersionResponse = record {};
1034
-
1035
-
1036
1018
  type Topic = variant {
1037
1019
  DaoCommunitySettings;
1038
1020
  SnsFrameworkManagement;
@@ -1059,8 +1041,25 @@ type ListTopicsResponse = record {
1059
1041
  uncategorized_functions: opt vec NervousSystemFunction
1060
1042
  };
1061
1043
 
1044
+ // The following types are for feature = "test"
1045
+ type AddMaturityRequest = record {
1046
+ id : opt NeuronId;
1047
+ amount_e8s : opt nat64;
1048
+ };
1049
+
1050
+ type AddMaturityResponse = record {
1051
+ new_maturity_e8s : opt nat64;
1052
+ };
1053
+
1054
+ type MintTokensRequest = record {
1055
+ recipient : opt Account;
1056
+ amount_e8s : opt nat64;
1057
+ };
1058
+
1059
+ type AdvanceTargetVersionRequest = record { target_version : opt Version; };
1060
+ type AdvanceTargetVersionResponse = record {};
1061
+
1062
1062
  service : (Governance) -> {
1063
- add_maturity : (AddMaturityRequest) -> (AddMaturityResponse);
1064
1063
  claim_swap_neurons : (ClaimSwapNeuronsRequest) -> (ClaimSwapNeuronsResponse);
1065
1064
  fail_stuck_upgrade_in_progress : (record {}) -> (record {});
1066
1065
  get_build_metadata : () -> (text) query;
@@ -1082,11 +1081,14 @@ service : (Governance) -> {
1082
1081
  list_proposals : (ListProposals) -> (ListProposalsResponse) query;
1083
1082
  list_topics : (ListTopicsRequest) -> (ListTopicsResponse) query;
1084
1083
  manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
1085
- mint_tokens : (MintTokensRequest) -> (record {});
1086
1084
  set_mode : (SetMode) -> (record {});
1087
- update_neuron : (Neuron) -> (opt GovernanceError);
1088
- advance_target_version : (AdvanceTargetVersionRequest) -> (AdvanceTargetVersionResponse);
1089
1085
  reset_timers : (record {}) -> (record {});
1090
1086
  get_timers : (record {}) -> (GetTimersResponse) query;
1087
+
1088
+ // The following are methods for feature = "test"
1089
+ add_maturity : (AddMaturityRequest) -> (AddMaturityResponse);
1090
+ advance_target_version : (AdvanceTargetVersionRequest) -> (AdvanceTargetVersionResponse);
1091
+ mint_tokens : (MintTokensRequest) -> (record {});
1091
1092
  refresh_cached_upgrade_steps : (record {}) -> (record {});
1093
+ update_neuron : (Neuron) -> (opt GovernanceError);
1092
1094
  }
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 4565785 (2025-10-01 tags: release-2025-10-02_03-13-base) 'rs/sns/root/canister/root.did' by import-candid
1
+ // Generated from IC repo commit 285897d (2025-10-08 tags: release-2025-10-09_03-15-base) 'rs/sns/root/canister/root.did' by import-candid
2
2
 
3
3
  type CanisterCallError = record {
4
4
  code : opt int32;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 4565785 (2025-10-01 tags: release-2025-10-02_03-13-base) 'rs/sns/swap/canister/swap.did' by import-candid
1
+ // Generated from IC repo commit 285897d (2025-10-08 tags: release-2025-10-09_03-15-base) 'rs/sns/swap/canister/swap.did' by import-candid
2
2
 
3
3
  type BuyerState = record {
4
4
  icp : opt TransferableAmount;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfinity/sns",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "A library for interfacing with a Service Nervous System (SNS) project.",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/cjs/index.cjs.js",