@dfinity/sns 4.0.1 → 4.0.2-beta-2025-09-25

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.
Files changed (40) hide show
  1. package/README.md +1 -1
  2. package/dist/candid/sns_governance.certified.idl.d.ts +1 -1
  3. package/dist/candid/sns_governance.d.ts +3 -3
  4. package/dist/candid/sns_governance.did +1 -1
  5. package/dist/candid/sns_governance.idl.d.ts +1 -1
  6. package/dist/candid/sns_governance_test.certified.idl.d.ts +1 -1
  7. package/dist/candid/sns_governance_test.d.ts +3 -3
  8. package/dist/candid/sns_governance_test.did +1 -1
  9. package/dist/candid/sns_governance_test.idl.d.ts +1 -1
  10. package/dist/candid/sns_root.certified.idl.d.ts +1 -1
  11. package/dist/candid/sns_root.d.ts +3 -3
  12. package/dist/candid/sns_root.did +1 -1
  13. package/dist/candid/sns_root.idl.d.ts +1 -1
  14. package/dist/candid/sns_swap.certified.idl.d.ts +1 -1
  15. package/dist/candid/sns_swap.d.ts +3 -3
  16. package/dist/candid/sns_swap.did +1 -1
  17. package/dist/candid/sns_swap.idl.d.ts +1 -1
  18. package/dist/cjs/index.cjs.js +1 -1
  19. package/dist/cjs/index.cjs.js.map +2 -2
  20. package/dist/esm/chunk-EYNJV7XA.js +2 -0
  21. package/dist/esm/chunk-EYNJV7XA.js.map +7 -0
  22. package/dist/esm/{chunk-H7THR6IO.js → chunk-K6A2DU6S.js} +1 -1
  23. package/dist/esm/chunk-K6A2DU6S.js.map +7 -0
  24. package/dist/esm/{chunk-Y6XGADSI.js → chunk-SHHI3RUG.js} +2 -2
  25. package/dist/esm/chunk-SHHI3RUG.js.map +7 -0
  26. package/dist/esm/governance.canister.js +1 -1
  27. package/dist/esm/index.js +1 -1
  28. package/dist/esm/sns.js +1 -1
  29. package/dist/esm/sns.wrapper.js +1 -1
  30. package/dist/types/sns.d.ts +1 -1
  31. package/dist/types/sns.wrapper.d.ts +1 -1
  32. package/dist/types/types/actions.d.ts +1 -1
  33. package/dist/types/types/canister.options.d.ts +1 -1
  34. package/dist/types/types/governance.params.d.ts +1 -1
  35. package/dist/types/utils/governance.utils.d.ts +1 -1
  36. package/package.json +6 -7
  37. package/dist/esm/chunk-DUPJUSOJ.js +0 -2
  38. package/dist/esm/chunk-DUPJUSOJ.js.map +0 -7
  39. package/dist/esm/chunk-H7THR6IO.js.map +0 -7
  40. package/dist/esm/chunk-Y6XGADSI.js.map +0 -7
package/README.md CHANGED
@@ -21,7 +21,7 @@ npm i @dfinity/sns
21
21
  The bundle needs peer dependencies, be sure that following resources are available in your project as well.
22
22
 
23
23
  ```bash
24
- npm i @dfinity/agent @dfinity/candid @dfinity/principal @dfinity/utils @dfinity/ledger
24
+ npm i @icp-sdk/core @dfinity/utils @dfinity/ledger
25
25
  ```
26
26
 
27
27
  ## Usage
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@dfinity/candid";
1
+ import type { IDL } from "@icp-sdk/core/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,6 +1,6 @@
1
- import type { ActorMethod } from "@dfinity/agent";
2
- import type { IDL } from "@dfinity/candid";
3
- import type { Principal } from "@dfinity/principal";
1
+ import type { ActorMethod } from "@icp-sdk/core/agent";
2
+ import type { IDL } from "@icp-sdk/core/candid";
3
+ import type { Principal } from "@icp-sdk/core/principal";
4
4
 
5
5
  export interface Account {
6
6
  owner: [] | [Principal];
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 9173238 (2025-08-18 tags: release-2025-08-28_03-17-snapshot-feature) 'rs/sns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit bf0d4d1 (2025-09-19 tags: release-2025-09-19_10-17-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;
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@dfinity/candid";
1
+ import type { IDL } from "@icp-sdk/core/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@dfinity/candid";
1
+ import type { IDL } from "@icp-sdk/core/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,6 +1,6 @@
1
- import type { ActorMethod } from "@dfinity/agent";
2
- import type { IDL } from "@dfinity/candid";
3
- import type { Principal } from "@dfinity/principal";
1
+ import type { ActorMethod } from "@icp-sdk/core/agent";
2
+ import type { IDL } from "@icp-sdk/core/candid";
3
+ import type { Principal } from "@icp-sdk/core/principal";
4
4
 
5
5
  export interface Account {
6
6
  owner: [] | [Principal];
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 9173238 (2025-08-18 tags: release-2025-08-28_03-17-snapshot-feature) 'rs/sns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit bf0d4d1 (2025-09-19 tags: release-2025-09-19_10-17-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;
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@dfinity/candid";
1
+ import type { IDL } from "@icp-sdk/core/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@dfinity/candid";
1
+ import type { IDL } from "@icp-sdk/core/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,6 +1,6 @@
1
- import type { ActorMethod } from "@dfinity/agent";
2
- import type { IDL } from "@dfinity/candid";
3
- import type { Principal } from "@dfinity/principal";
1
+ import type { ActorMethod } from "@icp-sdk/core/agent";
2
+ import type { IDL } from "@icp-sdk/core/candid";
3
+ import type { Principal } from "@icp-sdk/core/principal";
4
4
 
5
5
  export interface CanisterCallError {
6
6
  code: [] | [number];
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 9173238 (2025-08-18 tags: release-2025-08-28_03-17-snapshot-feature) 'rs/sns/root/canister/root.did' by import-candid
1
+ // Generated from IC repo commit bf0d4d1 (2025-09-19 tags: release-2025-09-19_10-17-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,2 +1,2 @@
1
- import type { IDL } from "@dfinity/candid";
1
+ import type { IDL } from "@icp-sdk/core/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@dfinity/candid";
1
+ import type { IDL } from "@icp-sdk/core/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,6 +1,6 @@
1
- import type { ActorMethod } from "@dfinity/agent";
2
- import type { IDL } from "@dfinity/candid";
3
- import type { Principal } from "@dfinity/principal";
1
+ import type { ActorMethod } from "@icp-sdk/core/agent";
2
+ import type { IDL } from "@icp-sdk/core/candid";
3
+ import type { Principal } from "@icp-sdk/core/principal";
4
4
 
5
5
  export interface BuyerState {
6
6
  icp: [] | [TransferableAmount];
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 9173238 (2025-08-18 tags: release-2025-08-28_03-17-snapshot-feature) 'rs/sns/swap/canister/swap.did' by import-candid
1
+ // Generated from IC repo commit bf0d4d1 (2025-09-19 tags: release-2025-09-19_10-17-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;
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@dfinity/candid";
1
+ import type { IDL } from "@icp-sdk/core/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;