@zebec-network/zebec-vault-sdk 5.1.3 → 5.2.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.
- package/dist/artifacts/zebec_vault.d.ts +1078 -124
- package/dist/artifacts/zebec_vault.json +970 -593
- package/dist/errors.js +10 -2
- package/dist/pda.d.ts +1 -12
- package/dist/pda.js +15 -75
- package/dist/providers.js +3 -1
- package/dist/service.d.ts +219 -9
- package/dist/service.js +249 -79
- package/dist/types.d.ts +4 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +50 -50
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Address, BN } from "@coral-xyz/anchor";
|
|
2
|
-
import { Keypair, PublicKey } from "@solana/web3.js";
|
|
1
|
+
import type { Address, BN } from "@coral-xyz/anchor";
|
|
2
|
+
import type { Keypair, PublicKey } from "@solana/web3.js";
|
|
3
3
|
export type Numeric = number | string;
|
|
4
4
|
export type ProposalAction = {
|
|
5
5
|
programId: PublicKey;
|
|
@@ -163,6 +163,7 @@ export type CreateStreamFromVaultParams = {
|
|
|
163
163
|
vaultOwner: Address;
|
|
164
164
|
receiver: Address;
|
|
165
165
|
streamToken: Address;
|
|
166
|
+
streamConfigName: string;
|
|
166
167
|
amount: Numeric;
|
|
167
168
|
automaticWithdrawal: boolean;
|
|
168
169
|
cancelableByRecipient: boolean;
|
|
@@ -182,6 +183,7 @@ export type CreateStreamFromVaultParams = {
|
|
|
182
183
|
};
|
|
183
184
|
export type createMultipleStreamFromVaultParams = {
|
|
184
185
|
vaultOwner: Address;
|
|
186
|
+
streamConfigName: string;
|
|
185
187
|
streamInfo: {
|
|
186
188
|
receiver: Address;
|
|
187
189
|
streamToken: Address;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TransactionInstruction } from "@solana/web3.js";
|
|
2
|
-
import { ProposalAction } from "./types";
|
|
1
|
+
import type { TransactionInstruction } from "@solana/web3.js";
|
|
2
|
+
import type { ProposalAction } from "./types";
|
|
3
3
|
export declare function calculateActionsSize(actions: ProposalAction[]): number;
|
|
4
4
|
export declare function calculateProposalSize(name: string, actions: ProposalAction[]): number;
|
|
5
5
|
export declare function transactionInstructionToPropoalAction(ix: TransactionInstruction): ProposalAction;
|
package/package.json
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "Zebec Network | Ashish Sapkota",
|
|
3
|
-
"dependencies": {
|
|
4
|
-
"@coral-xyz/anchor": "^0.31.1",
|
|
5
|
-
"@solana/spl-token": "^0.4.14",
|
|
6
|
-
"@solana/web3.js": "^1.98.2",
|
|
7
|
-
"@types/bn.js": "^5.2.0",
|
|
8
|
-
"@zebec-network/core-utils": "^1.1.1",
|
|
9
|
-
"@zebec-network/solana-common": "^2.3.1",
|
|
10
|
-
"@zebec-network/zebec-card-v2-sdk": "^2.5.4",
|
|
11
|
-
"@zebec-network/zebec-stake-sdk": "^1.2.2",
|
|
12
|
-
"@zebec-network/zebec-stream-sdk": "^
|
|
13
|
-
"bignumber.js": "^9.3.1",
|
|
14
|
-
"buffer": "^6.0.3"
|
|
15
|
-
},
|
|
16
|
-
"description": "An SDK for zebec vault solana program",
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@types/mocha": "^10.0.10",
|
|
19
|
-
"@types/node": "^24.3.1",
|
|
20
|
-
"dotenv": "^17.2.2",
|
|
21
|
-
"mocha": "^11.7.2",
|
|
22
|
-
"prettier": "^3.6.2",
|
|
23
|
-
"rimraf": "^6.0.1",
|
|
24
|
-
"ts-mocha": "^11.1.0",
|
|
25
|
-
"ts-node": "^10.9.2",
|
|
26
|
-
"typescript": "^5.9.2"
|
|
27
|
-
},
|
|
28
|
-
"files": [
|
|
29
|
-
"dist",
|
|
30
|
-
"assets"
|
|
31
|
-
],
|
|
32
|
-
"keywords": [
|
|
33
|
-
"solana",
|
|
34
|
-
"zebec",
|
|
35
|
-
"zebec network",
|
|
36
|
-
"vualt",
|
|
37
|
-
"zebec vault"
|
|
38
|
-
],
|
|
39
|
-
"license": "MIT",
|
|
40
|
-
"main": "dist/index.js",
|
|
41
|
-
"name": "@zebec-network/zebec-vault-sdk",
|
|
42
|
-
"scripts": {
|
|
43
|
-
"build": "npm run clean && tsc",
|
|
44
|
-
"clean": "rimraf ./dist",
|
|
45
|
-
"format": "
|
|
46
|
-
"test": "ts-mocha -p ./tsconfig.json -t 1000000000 test/**/*.test.ts",
|
|
47
|
-
"test:single": "ts-mocha -p ./tsconfig.json -t 1000000000"
|
|
48
|
-
},
|
|
49
|
-
"types": "dist/index.d.ts",
|
|
50
|
-
"version": "5.
|
|
1
|
+
{
|
|
2
|
+
"author": "Zebec Network | Ashish Sapkota",
|
|
3
|
+
"dependencies": {
|
|
4
|
+
"@coral-xyz/anchor": "^0.31.1",
|
|
5
|
+
"@solana/spl-token": "^0.4.14",
|
|
6
|
+
"@solana/web3.js": "^1.98.2",
|
|
7
|
+
"@types/bn.js": "^5.2.0",
|
|
8
|
+
"@zebec-network/core-utils": "^1.1.1",
|
|
9
|
+
"@zebec-network/solana-common": "^2.3.1",
|
|
10
|
+
"@zebec-network/zebec-card-v2-sdk": "^2.5.4",
|
|
11
|
+
"@zebec-network/zebec-stake-sdk": "^1.2.2",
|
|
12
|
+
"@zebec-network/zebec-stream-sdk": "^3.1.0",
|
|
13
|
+
"bignumber.js": "^9.3.1",
|
|
14
|
+
"buffer": "^6.0.3"
|
|
15
|
+
},
|
|
16
|
+
"description": "An SDK for zebec vault solana program",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/mocha": "^10.0.10",
|
|
19
|
+
"@types/node": "^24.3.1",
|
|
20
|
+
"dotenv": "^17.2.2",
|
|
21
|
+
"mocha": "^11.7.2",
|
|
22
|
+
"prettier": "^3.6.2",
|
|
23
|
+
"rimraf": "^6.0.1",
|
|
24
|
+
"ts-mocha": "^11.1.0",
|
|
25
|
+
"ts-node": "^10.9.2",
|
|
26
|
+
"typescript": "^5.9.2"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"assets"
|
|
31
|
+
],
|
|
32
|
+
"keywords": [
|
|
33
|
+
"solana",
|
|
34
|
+
"zebec",
|
|
35
|
+
"zebec network",
|
|
36
|
+
"vualt",
|
|
37
|
+
"zebec vault"
|
|
38
|
+
],
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"main": "dist/index.js",
|
|
41
|
+
"name": "@zebec-network/zebec-vault-sdk",
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "npm run clean && tsc",
|
|
44
|
+
"clean": "rimraf ./dist",
|
|
45
|
+
"format": "npx @biomejs/biome format --write ",
|
|
46
|
+
"test": "ts-mocha -p ./tsconfig.json -t 1000000000 test/**/*.test.ts",
|
|
47
|
+
"test:single": "ts-mocha -p ./tsconfig.json -t 1000000000"
|
|
48
|
+
},
|
|
49
|
+
"types": "dist/index.d.ts",
|
|
50
|
+
"version": "5.2.0"
|
|
51
51
|
}
|