@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.
- package/README.md +1 -1
- package/dist/candid/sns_governance.certified.idl.d.ts +1 -1
- package/dist/candid/sns_governance.d.ts +3 -3
- package/dist/candid/sns_governance.did +1 -1
- package/dist/candid/sns_governance.idl.d.ts +1 -1
- package/dist/candid/sns_governance_test.certified.idl.d.ts +1 -1
- package/dist/candid/sns_governance_test.d.ts +3 -3
- package/dist/candid/sns_governance_test.did +1 -1
- package/dist/candid/sns_governance_test.idl.d.ts +1 -1
- package/dist/candid/sns_root.certified.idl.d.ts +1 -1
- package/dist/candid/sns_root.d.ts +3 -3
- package/dist/candid/sns_root.did +1 -1
- package/dist/candid/sns_root.idl.d.ts +1 -1
- package/dist/candid/sns_swap.certified.idl.d.ts +1 -1
- package/dist/candid/sns_swap.d.ts +3 -3
- package/dist/candid/sns_swap.did +1 -1
- package/dist/candid/sns_swap.idl.d.ts +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +2 -2
- package/dist/esm/chunk-EYNJV7XA.js +2 -0
- package/dist/esm/chunk-EYNJV7XA.js.map +7 -0
- package/dist/esm/{chunk-H7THR6IO.js → chunk-K6A2DU6S.js} +1 -1
- package/dist/esm/chunk-K6A2DU6S.js.map +7 -0
- package/dist/esm/{chunk-Y6XGADSI.js → chunk-SHHI3RUG.js} +2 -2
- package/dist/esm/chunk-SHHI3RUG.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/sns.js +1 -1
- package/dist/esm/sns.wrapper.js +1 -1
- package/dist/types/sns.d.ts +1 -1
- package/dist/types/sns.wrapper.d.ts +1 -1
- package/dist/types/types/actions.d.ts +1 -1
- package/dist/types/types/canister.options.d.ts +1 -1
- package/dist/types/types/governance.params.d.ts +1 -1
- package/dist/types/utils/governance.utils.d.ts +1 -1
- package/package.json +6 -7
- package/dist/esm/chunk-DUPJUSOJ.js +0 -2
- package/dist/esm/chunk-DUPJUSOJ.js.map +0 -7
- package/dist/esm/chunk-H7THR6IO.js.map +0 -7
- 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 @
|
|
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 "@
|
|
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 "@
|
|
2
|
-
import type { IDL } from "@
|
|
3
|
-
import type { Principal } from "@
|
|
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
|
|
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 "@
|
|
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 "@
|
|
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 "@
|
|
2
|
-
import type { IDL } from "@
|
|
3
|
-
import type { Principal } from "@
|
|
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
|
|
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 "@
|
|
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 "@
|
|
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 "@
|
|
2
|
-
import type { IDL } from "@
|
|
3
|
-
import type { Principal } from "@
|
|
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];
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
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 "@
|
|
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 "@
|
|
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 "@
|
|
2
|
-
import type { IDL } from "@
|
|
3
|
-
import type { Principal } from "@
|
|
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];
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
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 "@
|
|
1
|
+
import type { IDL } from "@icp-sdk/core/candid";
|
|
2
2
|
export const idlFactory: IDL.InterfaceFactory;
|