@zebec-network/zebec-vault-sdk 1.0.2 → 1.0.3

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.
@@ -200,6 +200,39 @@ export type ZebecVault = {
200
200
  ];
201
201
  };
202
202
  },
203
+ {
204
+ name: "whitelist";
205
+ pda: {
206
+ seeds: [
207
+ {
208
+ kind: "const";
209
+ value: [
210
+ 122,
211
+ 101,
212
+ 98,
213
+ 101,
214
+ 99,
215
+ 95,
216
+ 118,
217
+ 97,
218
+ 117,
219
+ 108,
220
+ 116,
221
+ 95,
222
+ 119,
223
+ 104,
224
+ 105,
225
+ 116,
226
+ 101,
227
+ 108,
228
+ 105,
229
+ 115,
230
+ 116
231
+ ];
232
+ }
233
+ ];
234
+ };
235
+ },
203
236
  {
204
237
  name: "tokenMint";
205
238
  },
@@ -484,6 +517,65 @@ export type ZebecVault = {
484
517
  }
485
518
  ];
486
519
  },
520
+ {
521
+ name: "whitelistToken";
522
+ discriminator: [6, 141, 83, 167, 31, 6, 2, 224];
523
+ accounts: [
524
+ {
525
+ name: "whitelister";
526
+ writable: true;
527
+ signer: true;
528
+ },
529
+ {
530
+ name: "whitelist";
531
+ writable: true;
532
+ pda: {
533
+ seeds: [
534
+ {
535
+ kind: "const";
536
+ value: [
537
+ 122,
538
+ 101,
539
+ 98,
540
+ 101,
541
+ 99,
542
+ 95,
543
+ 118,
544
+ 97,
545
+ 117,
546
+ 108,
547
+ 116,
548
+ 95,
549
+ 119,
550
+ 104,
551
+ 105,
552
+ 116,
553
+ 101,
554
+ 108,
555
+ 105,
556
+ 115,
557
+ 116
558
+ ];
559
+ }
560
+ ];
561
+ };
562
+ },
563
+ {
564
+ name: "systemProgram";
565
+ address: "11111111111111111111111111111111";
566
+ }
567
+ ];
568
+ args: [
569
+ {
570
+ name: "params";
571
+ type: {
572
+ defined: {
573
+ name: "whitelistTokenParams";
574
+ };
575
+ };
576
+ }
577
+ ];
578
+ },
487
579
  {
488
580
  name: "withdrawSol";
489
581
  discriminator: [145, 131, 74, 136, 65, 137, 42, 38];
@@ -772,6 +864,10 @@ export type ZebecVault = {
772
864
  {
773
865
  name: "vault";
774
866
  discriminator: [211, 8, 232, 43, 2, 152, 117, 119];
867
+ },
868
+ {
869
+ name: "whitelist";
870
+ discriminator: [204, 176, 52, 79, 146, 121, 54, 247];
775
871
  }
776
872
  ];
777
873
  events: [
@@ -807,6 +903,10 @@ export type ZebecVault = {
807
903
  name: "tokenDeposited";
808
904
  discriminator: [104, 7, 18, 187, 94, 141, 251, 120];
809
905
  },
906
+ {
907
+ name: "tokenWhitelisted";
908
+ discriminator: [65, 3, 231, 165, 235, 116, 154, 51];
909
+ },
810
910
  {
811
911
  name: "tokenWithdrawn";
812
912
  discriminator: [35, 57, 130, 51, 154, 247, 155, 142];
@@ -861,6 +961,16 @@ export type ZebecVault = {
861
961
  code: 6008;
862
962
  name: "notEnoughTokens";
863
963
  msg: "Not enough tokens for lamports";
964
+ },
965
+ {
966
+ code: 6009;
967
+ name: "notValidAdmin";
968
+ msg: "Not valid admin";
969
+ },
970
+ {
971
+ code: 6010;
972
+ name: "tokenNotWhitelisted";
973
+ msg: "Token not whitelisted";
864
974
  }
865
975
  ];
866
976
  types: [
@@ -1334,6 +1444,24 @@ export type ZebecVault = {
1334
1444
  ];
1335
1445
  };
1336
1446
  },
1447
+ {
1448
+ name: "tokenWhitelisted";
1449
+ type: {
1450
+ kind: "struct";
1451
+ fields: [
1452
+ {
1453
+ name: "tokenAddresses";
1454
+ type: {
1455
+ vec: "pubkey";
1456
+ };
1457
+ },
1458
+ {
1459
+ name: "whitelister";
1460
+ type: "pubkey";
1461
+ }
1462
+ ];
1463
+ };
1464
+ },
1337
1465
  {
1338
1466
  name: "tokenWithdrawn";
1339
1467
  type: {
@@ -1406,6 +1534,54 @@ export type ZebecVault = {
1406
1534
  ];
1407
1535
  };
1408
1536
  },
1537
+ {
1538
+ name: "whitelist";
1539
+ type: {
1540
+ kind: "struct";
1541
+ fields: [
1542
+ {
1543
+ name: "admin";
1544
+ type: "pubkey";
1545
+ },
1546
+ {
1547
+ name: "whitelistedTokens";
1548
+ type: {
1549
+ vec: {
1550
+ defined: {
1551
+ name: "whitelistedToken";
1552
+ };
1553
+ };
1554
+ };
1555
+ }
1556
+ ];
1557
+ };
1558
+ },
1559
+ {
1560
+ name: "whitelistTokenParams";
1561
+ type: {
1562
+ kind: "struct";
1563
+ fields: [
1564
+ {
1565
+ name: "tokenAddresses";
1566
+ type: {
1567
+ vec: "pubkey";
1568
+ };
1569
+ }
1570
+ ];
1571
+ };
1572
+ },
1573
+ {
1574
+ name: "whitelistedToken";
1575
+ type: {
1576
+ kind: "struct";
1577
+ fields: [
1578
+ {
1579
+ name: "tokenAddress";
1580
+ type: "pubkey";
1581
+ }
1582
+ ];
1583
+ };
1584
+ },
1409
1585
  {
1410
1586
  name: "withdrawSolParams";
1411
1587
  type: {
@@ -1442,6 +1618,13 @@ export type ZebecVault = {
1442
1618
  array: ["u8", 18];
1443
1619
  };
1444
1620
  value: "[122, 101, 98, 101, 99, 95, 118, 97, 117, 108, 116, 95, 115, 105, 103, 110, 101, 114]";
1621
+ },
1622
+ {
1623
+ name: "whitelistPrefix";
1624
+ type: {
1625
+ array: ["u8", 21];
1626
+ };
1627
+ value: "[122, 101, 98, 101, 99, 95, 118, 97, 117, 108, 116, 95, 119, 104, 105, 116, 101, 108, 105, 115, 116]";
1445
1628
  }
1446
1629
  ];
1447
1630
  };
@@ -194,6 +194,19 @@
194
194
  ]
195
195
  }
196
196
  },
197
+ {
198
+ "name": "whitelist",
199
+ "pda": {
200
+ "seeds": [
201
+ {
202
+ "kind": "const",
203
+ "value": [
204
+ 122, 101, 98, 101, 99, 95, 118, 97, 117, 108, 116, 95, 119, 104, 105, 116, 101, 108, 105, 115, 116
205
+ ]
206
+ }
207
+ ]
208
+ }
209
+ },
197
210
  {
198
211
  "name": "token_mint"
199
212
  },
@@ -358,6 +371,45 @@
358
371
  }
359
372
  ]
360
373
  },
374
+ {
375
+ "name": "whitelist_token",
376
+ "discriminator": [6, 141, 83, 167, 31, 6, 2, 224],
377
+ "accounts": [
378
+ {
379
+ "name": "whitelister",
380
+ "writable": true,
381
+ "signer": true
382
+ },
383
+ {
384
+ "name": "whitelist",
385
+ "writable": true,
386
+ "pda": {
387
+ "seeds": [
388
+ {
389
+ "kind": "const",
390
+ "value": [
391
+ 122, 101, 98, 101, 99, 95, 118, 97, 117, 108, 116, 95, 119, 104, 105, 116, 101, 108, 105, 115, 116
392
+ ]
393
+ }
394
+ ]
395
+ }
396
+ },
397
+ {
398
+ "name": "system_program",
399
+ "address": "11111111111111111111111111111111"
400
+ }
401
+ ],
402
+ "args": [
403
+ {
404
+ "name": "params",
405
+ "type": {
406
+ "defined": {
407
+ "name": "WhitelistTokenParams"
408
+ }
409
+ }
410
+ }
411
+ ]
412
+ },
361
413
  {
362
414
  "name": "withdraw_sol",
363
415
  "discriminator": [145, 131, 74, 136, 65, 137, 42, 38],
@@ -526,6 +578,10 @@
526
578
  {
527
579
  "name": "Vault",
528
580
  "discriminator": [211, 8, 232, 43, 2, 152, 117, 119]
581
+ },
582
+ {
583
+ "name": "Whitelist",
584
+ "discriminator": [204, 176, 52, 79, 146, 121, 54, 247]
529
585
  }
530
586
  ],
531
587
  "events": [
@@ -561,6 +617,10 @@
561
617
  "name": "TokenDeposited",
562
618
  "discriminator": [104, 7, 18, 187, 94, 141, 251, 120]
563
619
  },
620
+ {
621
+ "name": "TokenWhitelisted",
622
+ "discriminator": [65, 3, 231, 165, 235, 116, 154, 51]
623
+ },
564
624
  {
565
625
  "name": "TokenWithdrawn",
566
626
  "discriminator": [35, 57, 130, 51, 154, 247, 155, 142]
@@ -615,6 +675,16 @@
615
675
  "code": 6008,
616
676
  "name": "NotEnoughTokens",
617
677
  "msg": "Not enough tokens for lamports"
678
+ },
679
+ {
680
+ "code": 6009,
681
+ "name": "NotValidAdmin",
682
+ "msg": "Not valid admin"
683
+ },
684
+ {
685
+ "code": 6010,
686
+ "name": "TokenNotWhitelisted",
687
+ "msg": "Token not whitelisted"
618
688
  }
619
689
  ],
620
690
  "types": [
@@ -1088,6 +1158,24 @@
1088
1158
  ]
1089
1159
  }
1090
1160
  },
1161
+ {
1162
+ "name": "TokenWhitelisted",
1163
+ "type": {
1164
+ "kind": "struct",
1165
+ "fields": [
1166
+ {
1167
+ "name": "token_addresses",
1168
+ "type": {
1169
+ "vec": "pubkey"
1170
+ }
1171
+ },
1172
+ {
1173
+ "name": "whitelister",
1174
+ "type": "pubkey"
1175
+ }
1176
+ ]
1177
+ }
1178
+ },
1091
1179
  {
1092
1180
  "name": "TokenWithdrawn",
1093
1181
  "type": {
@@ -1160,6 +1248,54 @@
1160
1248
  ]
1161
1249
  }
1162
1250
  },
1251
+ {
1252
+ "name": "Whitelist",
1253
+ "type": {
1254
+ "kind": "struct",
1255
+ "fields": [
1256
+ {
1257
+ "name": "admin",
1258
+ "type": "pubkey"
1259
+ },
1260
+ {
1261
+ "name": "whitelisted_tokens",
1262
+ "type": {
1263
+ "vec": {
1264
+ "defined": {
1265
+ "name": "WhitelistedToken"
1266
+ }
1267
+ }
1268
+ }
1269
+ }
1270
+ ]
1271
+ }
1272
+ },
1273
+ {
1274
+ "name": "WhitelistTokenParams",
1275
+ "type": {
1276
+ "kind": "struct",
1277
+ "fields": [
1278
+ {
1279
+ "name": "token_addresses",
1280
+ "type": {
1281
+ "vec": "pubkey"
1282
+ }
1283
+ }
1284
+ ]
1285
+ }
1286
+ },
1287
+ {
1288
+ "name": "WhitelistedToken",
1289
+ "type": {
1290
+ "kind": "struct",
1291
+ "fields": [
1292
+ {
1293
+ "name": "token_address",
1294
+ "type": "pubkey"
1295
+ }
1296
+ ]
1297
+ }
1298
+ },
1163
1299
  {
1164
1300
  "name": "WithdrawSolParams",
1165
1301
  "type": {
@@ -1196,6 +1332,13 @@
1196
1332
  "array": ["u8", 18]
1197
1333
  },
1198
1334
  "value": "[122, 101, 98, 101, 99, 95, 118, 97, 117, 108, 116, 95, 115, 105, 103, 110, 101, 114]"
1335
+ },
1336
+ {
1337
+ "name": "WHITELIST_PREFIX",
1338
+ "type": {
1339
+ "array": ["u8", 21]
1340
+ },
1341
+ "value": "[122, 101, 98, 101, 99, 95, 118, 97, 117, 108, 116, 95, 119, 104, 105, 116, 101, 108, 105, 115, 116]"
1199
1342
  }
1200
1343
  ]
1201
1344
  }
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from "./providers";
5
5
  export * from "./service";
6
6
  export * from "./types";
7
7
  export * from "./utils";
8
+ export { deriveLockupAddress, deriveRewardVaultAddress, deriveStakeAddress, deriveStakeVaultAddress, deriveUserNonceAddress, InitLockupInstructionData, LockupInfo, ParsedRewardScheme, RateLimitedQueue, ReadonlyProvider, RewardScheme, StakeInfo, StakeInfoWithHash, StakeInstructionData, StakeService, StakeServiceBuilder, UserNonceInfo, ZEBEC_STAKE_IDL_V1, ZEBEC_STAKE_PROGRAM, ZebecStakeIdlV1, } from "@zebec-network/zebec-stake-sdk";
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ZEBEC_STAKE_PROGRAM = exports.ZEBEC_STAKE_IDL_V1 = exports.StakeServiceBuilder = exports.StakeService = exports.ReadonlyProvider = exports.RateLimitedQueue = exports.deriveUserNonceAddress = exports.deriveStakeVaultAddress = exports.deriveStakeAddress = exports.deriveRewardVaultAddress = exports.deriveLockupAddress = void 0;
17
18
  __exportStar(require("./artifacts"), exports);
18
19
  __exportStar(require("./constants"), exports);
19
20
  __exportStar(require("./pda"), exports);
@@ -21,3 +22,15 @@ __exportStar(require("./providers"), exports);
21
22
  __exportStar(require("./service"), exports);
22
23
  __exportStar(require("./types"), exports);
23
24
  __exportStar(require("./utils"), exports);
25
+ var zebec_stake_sdk_1 = require("@zebec-network/zebec-stake-sdk");
26
+ Object.defineProperty(exports, "deriveLockupAddress", { enumerable: true, get: function () { return zebec_stake_sdk_1.deriveLockupAddress; } });
27
+ Object.defineProperty(exports, "deriveRewardVaultAddress", { enumerable: true, get: function () { return zebec_stake_sdk_1.deriveRewardVaultAddress; } });
28
+ Object.defineProperty(exports, "deriveStakeAddress", { enumerable: true, get: function () { return zebec_stake_sdk_1.deriveStakeAddress; } });
29
+ Object.defineProperty(exports, "deriveStakeVaultAddress", { enumerable: true, get: function () { return zebec_stake_sdk_1.deriveStakeVaultAddress; } });
30
+ Object.defineProperty(exports, "deriveUserNonceAddress", { enumerable: true, get: function () { return zebec_stake_sdk_1.deriveUserNonceAddress; } });
31
+ Object.defineProperty(exports, "RateLimitedQueue", { enumerable: true, get: function () { return zebec_stake_sdk_1.RateLimitedQueue; } });
32
+ Object.defineProperty(exports, "ReadonlyProvider", { enumerable: true, get: function () { return zebec_stake_sdk_1.ReadonlyProvider; } });
33
+ Object.defineProperty(exports, "StakeService", { enumerable: true, get: function () { return zebec_stake_sdk_1.StakeService; } });
34
+ Object.defineProperty(exports, "StakeServiceBuilder", { enumerable: true, get: function () { return zebec_stake_sdk_1.StakeServiceBuilder; } });
35
+ Object.defineProperty(exports, "ZEBEC_STAKE_IDL_V1", { enumerable: true, get: function () { return zebec_stake_sdk_1.ZEBEC_STAKE_IDL_V1; } });
36
+ Object.defineProperty(exports, "ZEBEC_STAKE_PROGRAM", { enumerable: true, get: function () { return zebec_stake_sdk_1.ZEBEC_STAKE_PROGRAM; } });
package/dist/pda.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import { Address } from "@coral-xyz/anchor";
2
2
  import { PublicKey } from "@solana/web3.js";
3
3
  export declare function deriveVaultSigner(vault: Address, programId: Address): [PublicKey, number];
4
+ export declare function deriveWhitelist(programId: Address): [PublicKey, number];
package/dist/pda.js CHANGED
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deriveVaultSigner = deriveVaultSigner;
4
+ exports.deriveWhitelist = deriveWhitelist;
4
5
  const anchor_1 = require("@coral-xyz/anchor");
5
6
  const web3_js_1 = require("@solana/web3.js");
6
7
  const SEEDS = {
7
8
  VAULT_SIGNER: [122, 101, 98, 101, 99, 95, 118, 97, 117, 108, 116, 95, 115, 105, 103, 110, 101, 114],
9
+ WHITELIST: [122, 101, 98, 101, 99, 95, 118, 97, 117, 108, 116, 95, 119, 104, 105, 116, 101, 108, 105, 115, 116],
8
10
  };
9
11
  function deriveVaultSigner(vault, programId) {
10
12
  const addressAndBump = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from(SEEDS.VAULT_SIGNER), (0, anchor_1.translateAddress)(vault).toBuffer()], (0, anchor_1.translateAddress)(programId));
11
13
  return addressAndBump;
12
14
  }
15
+ function deriveWhitelist(programId) {
16
+ const addressAndBump = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from(SEEDS.WHITELIST)], (0, anchor_1.translateAddress)(programId));
17
+ return addressAndBump;
18
+ }
package/dist/service.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Address, BN, Program, Provider } from "@coral-xyz/anchor";
2
- import { AccountMeta, Keypair, PublicKey, TransactionInstruction } from "@solana/web3.js";
2
+ import { AccountMeta, Keypair, PublicKey, Signer, TransactionInstruction } from "@solana/web3.js";
3
3
  import { TransactionPayload } from "@zebec-network/solana-common";
4
4
  import { ZebecVaultIdlV1 } from "./artifacts";
5
5
  import { RpcNetwork } from "./constants";
6
- import { Numeric, ProposalAction, ProposalInfo, VaultInfo } from "./types";
6
+ import { Numeric, ProposalAction, ProposalInfo, VaultInfo, WhitelistInfo } from "./types";
7
7
  export declare class ZebecVaultService {
8
8
  readonly provider: Provider;
9
9
  readonly program: Program<ZebecVaultIdlV1>;
@@ -20,6 +20,7 @@ export declare class ZebecVaultService {
20
20
  getDeleteProposalInstruction(proposal: PublicKey): Promise<TransactionInstruction>;
21
21
  getExecuteProposalInstruction(caller: PublicKey, proposal: PublicKey, remainingAccounts: AccountMeta[]): Promise<TransactionInstruction>;
22
22
  getExecuteProposalDirectInstruction(vault: PublicKey, proposer: PublicKey, actions: ProposalAction[], remainingAccounts: AccountMeta[]): Promise<TransactionInstruction>;
23
+ getWhitelistTokenInstruction(whitelister: PublicKey, tokenAddresses: PublicKey[]): Promise<TransactionInstruction>;
23
24
  createVault(params: {
24
25
  payer?: Address;
25
26
  vaultKeypair?: Keypair;
@@ -65,16 +66,23 @@ export declare class ZebecVaultService {
65
66
  executeProposal(params: {
66
67
  caller?: Address;
67
68
  proposal: Address;
69
+ partialSigners?: Signer[];
68
70
  }): Promise<TransactionPayload>;
69
71
  executeProposalDirect(params: {
70
72
  vault: Address;
71
73
  proposer?: Address;
72
74
  actions: TransactionInstruction[];
75
+ partialSigners?: Signer[];
76
+ }): Promise<TransactionPayload>;
77
+ whitelistTokens(params: {
78
+ whitelister?: Address;
79
+ tokenAddresses: Address[];
73
80
  }): Promise<TransactionPayload>;
74
81
  private _createTransactionPayload;
75
82
  getVaultsInfoOfUser(user?: Address): Promise<VaultInfo[]>;
76
83
  getAllVaultsInfo(): Promise<VaultInfo[]>;
77
84
  getProposalsInfoOfVault(vault: Address): Promise<ProposalInfo[]>;
85
+ getWhitelistInfo(): Promise<WhitelistInfo | null>;
78
86
  get programId(): PublicKey;
79
87
  get connection(): import("@solana/web3.js").Connection;
80
88
  }
package/dist/service.js CHANGED
@@ -136,6 +136,16 @@ class ZebecVaultService {
136
136
  .remainingAccounts(remainingAccounts)
137
137
  .instruction();
138
138
  }
139
+ async getWhitelistTokenInstruction(whitelister, tokenAddresses) {
140
+ return this.program.methods
141
+ .whitelistToken({
142
+ tokenAddresses,
143
+ })
144
+ .accounts({
145
+ whitelister,
146
+ })
147
+ .instruction();
148
+ }
139
149
  async createVault(params) {
140
150
  const payer = params.payer ? (0, anchor_1.translateAddress)(params.payer) : this.provider.publicKey;
141
151
  if (!payer) {
@@ -267,9 +277,10 @@ class ZebecVaultService {
267
277
  });
268
278
  return acc;
269
279
  }, []);
280
+ const signers = params.partialSigners ? params.partialSigners : [];
270
281
  const ix = await this.getExecuteProposalInstruction(caller, proposal, remainingAccounts);
271
282
  console.log("ix:", JSON.stringify(ix.keys, null, 2));
272
- return this._createTransactionPayload(caller, [ix]);
283
+ return this._createTransactionPayload(caller, [ix], signers);
273
284
  }
274
285
  async executeProposalDirect(params) {
275
286
  const proposer = params.proposer ? (0, anchor_1.translateAddress)(params.proposer) : this.provider.publicKey;
@@ -297,7 +308,17 @@ class ZebecVaultService {
297
308
  return acc;
298
309
  }, []);
299
310
  const ix = await this.getExecuteProposalDirectInstruction(vault, proposer, actions, remainingAccounts);
300
- return this._createTransactionPayload(proposer, [ix]);
311
+ const signers = params.partialSigners ? params.partialSigners : [];
312
+ return this._createTransactionPayload(proposer, [ix], signers);
313
+ }
314
+ async whitelistTokens(params) {
315
+ const whitelister = params.whitelister ? (0, anchor_1.translateAddress)(params.whitelister) : this.provider.publicKey;
316
+ if (!whitelister) {
317
+ throw new Error("Either provide a whitelister or use AnchorProvider for provider in the service");
318
+ }
319
+ const tokens = params.tokenAddresses.map((address) => (0, anchor_1.translateAddress)(address));
320
+ const ix = await this.getWhitelistTokenInstruction(whitelister, tokens);
321
+ return this._createTransactionPayload(whitelister, [ix]);
301
322
  }
302
323
  async _createTransactionPayload(payerKey, instructions, signers, addressLookupTableAccounts) {
303
324
  const errorMap = new Map();
@@ -406,6 +427,17 @@ class ZebecVaultService {
406
427
  });
407
428
  return proposals;
408
429
  }
430
+ async getWhitelistInfo() {
431
+ const [whitelist] = (0, pda_1.deriveWhitelist)(this.programId);
432
+ const whitelistAccount = await this.program.account.whitelist.fetchNullable(whitelist, this.connection.commitment);
433
+ if (!whitelistAccount) {
434
+ return null;
435
+ }
436
+ return {
437
+ ...whitelistAccount,
438
+ whitelist,
439
+ };
440
+ }
409
441
  get programId() {
410
442
  return this.program.programId;
411
443
  }
package/dist/types.d.ts CHANGED
@@ -33,3 +33,10 @@ export type VaultInfo = {
33
33
  createdDate: number;
34
34
  signerBump: number;
35
35
  };
36
+ export type WhitelistInfo = {
37
+ whitelist: PublicKey;
38
+ admin: PublicKey;
39
+ whitelistedTokens: {
40
+ tokenAddress: PublicKey;
41
+ }[];
42
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zebec-network/zebec-vault-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "An SDK for zebec vault solana program",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -39,6 +39,7 @@
39
39
  "@solana/web3.js": "^1.98.2",
40
40
  "@types/bn.js": "^5.2.0",
41
41
  "@zebec-network/solana-common": "^1.3.0",
42
+ "@zebec-network/zebec-stake-sdk": "^1.0.8",
42
43
  "bignumber.js": "^9.3.0",
43
44
  "buffer": "^6.0.3"
44
45
  }