@dripfi/drip-sdk 1.1.19 → 1.1.21-dev

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/DripApi.d.ts CHANGED
@@ -6,17 +6,20 @@ import { UserRewards } from './types/UserRewards';
6
6
  import { VaultStats } from './types/VaultStats';
7
7
  import { UserBalance } from './types/UserBalance';
8
8
  import { VaultClaimData } from './types/VaultClaimData';
9
+ import { MetaVault } from './types/MetaVault';
9
10
  export declare const IMPERSONATOR_HEADER = "impersonatorAddress";
10
11
  export default class DripApi {
11
12
  route: string;
12
13
  constructor(route: string);
13
14
  fetchAllVaults(): Promise<Vault[]>;
15
+ fetchAllMetaVaults(): Promise<MetaVault[]>;
14
16
  fetchTokenPrice(tokenName: string): Promise<number>;
15
17
  getExpectedSwapResult(fromTokenAddress: string, toTokenAddress: string, amount: string, decimals: number, token: string): Promise<string>;
16
18
  getUserBalance(walletAddress: string, token: string, headers?: Headers): Promise<UserBalance>;
17
19
  getUserBoostedNfts(walletAddress: string, vaultAddress: string, token: string, headers?: Headers): Promise<string[]>;
18
20
  fetchVaultStats(): Promise<VaultStats>;
19
21
  fetchVaultDetails(vaultAddress: string): Promise<Vault>;
22
+ fetchMetaVaultDetails(metaVaultAddress: string): Promise<MetaVault>;
20
23
  fetchRewardsPerHour(vaultAddress: string, token: string): Promise<number>;
21
24
  getSwapInfo(fromTokenAddress: string, toTokenAddress: string, amount: BigNumber, fromAddress: string): Promise<SwapInfo[]>;
22
25
  fetchUserSVTBalance(vaultAddress: string, walletAddress: string, token: string): Promise<BigNumber>;
@@ -31,8 +34,28 @@ export default class DripApi {
31
34
  fetchUserRewards(walletAddress: string, token: string, headers?: Headers): Promise<UserRewards>;
32
35
  fetchVaultsClaimableData(walletAddress: string, token: string, headers?: Headers): Promise<VaultClaimData>;
33
36
  fetchAllLoyaltyCards(token: string, headers?: Headers): Promise<any>;
34
- fetchOwnedLoyaltyCards(token: string, headers?: Headers): Promise<any>;
35
- fetchNextLoyaltyCard(token: string, headers?: Headers): Promise<any>;
36
- fetchBeansBalance(walletAddress: string, token: string, headers?: Headers): Promise<any>;
37
- upgradeLoyaltyCard(token: string, headers?: Headers): Promise<any>;
37
+ fetchOwnedLoyaltyCards(token: string, headers?: Headers): Promise<{
38
+ id: any;
39
+ tier: any;
40
+ level: any;
41
+ cost: number;
42
+ boost: any;
43
+ }>;
44
+ fetchNextLoyaltyCard(token: string, headers?: Headers): Promise<{
45
+ id: any;
46
+ tier: any;
47
+ level: any;
48
+ cost: number;
49
+ boost: any;
50
+ }>;
51
+ fetchBeansBalance(token: string, headers?: Headers): Promise<{
52
+ balance: number;
53
+ }>;
54
+ upgradeLoyaltyCard(token: string, headers?: Headers): Promise<{
55
+ id: any;
56
+ tier: any;
57
+ level: any;
58
+ cost: number;
59
+ boost: any;
60
+ }>;
38
61
  }
package/dist/DripApi.js CHANGED
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.IMPERSONATOR_HEADER = void 0;
13
13
  const ethers_1 = require("ethers");
14
+ const DripConfig_1 = require("./DripConfig");
14
15
  const WETH_TOKEN_ADDRESS = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2';
15
16
  exports.IMPERSONATOR_HEADER = 'impersonatorAddress';
16
17
  const AUTHORIZATION_HEADER = 'Authorization';
@@ -30,6 +31,18 @@ class DripApi {
30
31
  }
31
32
  });
32
33
  }
34
+ fetchAllMetaVaults() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ const res = yield fetch(`${this.route}/api-be/api/metavault`);
37
+ if (res.ok) {
38
+ const data = (yield res.json());
39
+ return data;
40
+ }
41
+ else {
42
+ throw Error(`${yield res.text()}`);
43
+ }
44
+ });
45
+ }
33
46
  fetchTokenPrice(tokenName) {
34
47
  return __awaiter(this, void 0, void 0, function* () {
35
48
  const res = yield fetch(`${this.route}/api-be/api/tokenPrice?tokenName=${tokenName}`);
@@ -126,6 +139,18 @@ class DripApi {
126
139
  }
127
140
  });
128
141
  }
142
+ fetchMetaVaultDetails(metaVaultAddress) {
143
+ return __awaiter(this, void 0, void 0, function* () {
144
+ const res = yield fetch(`${this.route}/api-be/api/metavault/${metaVaultAddress}`);
145
+ if (res.ok) {
146
+ const data = (yield res.json());
147
+ return data;
148
+ }
149
+ else {
150
+ throw Error(`${yield res.text()}`);
151
+ }
152
+ });
153
+ }
129
154
  fetchRewardsPerHour(vaultAddress, token) {
130
155
  return __awaiter(this, void 0, void 0, function* () {
131
156
  const headers = new Headers();
@@ -363,7 +388,16 @@ class DripApi {
363
388
  headers: reqHeaders,
364
389
  });
365
390
  const data = yield res.json();
366
- return data;
391
+ const mappedData = data.map((element) => {
392
+ return {
393
+ id: element.id,
394
+ tier: element.tier,
395
+ level: element.level,
396
+ cost: parseFloat(ethers_1.ethers.utils.formatUnits(element.cost.toString(), DripConfig_1.DRIP_TOKEN_DECIMALS)),
397
+ boost: element.boost
398
+ };
399
+ });
400
+ return mappedData;
367
401
  });
368
402
  }
369
403
  fetchOwnedLoyaltyCards(token, headers) {
@@ -374,7 +408,13 @@ class DripApi {
374
408
  headers: reqHeaders,
375
409
  });
376
410
  const data = yield res.json();
377
- return data;
411
+ return {
412
+ id: data.id,
413
+ tier: data.tier,
414
+ level: data.level,
415
+ cost: parseFloat(ethers_1.ethers.utils.formatUnits(data.cost.toString(), DripConfig_1.DRIP_TOKEN_DECIMALS)),
416
+ boost: data.boost
417
+ };
378
418
  });
379
419
  }
380
420
  fetchNextLoyaltyCard(token, headers) {
@@ -385,10 +425,16 @@ class DripApi {
385
425
  headers: reqHeaders,
386
426
  });
387
427
  const data = yield res.json();
388
- return data;
428
+ return {
429
+ id: data.id,
430
+ tier: data.tier,
431
+ level: data.level,
432
+ cost: parseFloat(ethers_1.ethers.utils.formatUnits(data.cost.toString(), DripConfig_1.DRIP_TOKEN_DECIMALS)),
433
+ boost: data.boost
434
+ };
389
435
  });
390
436
  }
391
- fetchBeansBalance(walletAddress, token, headers) {
437
+ fetchBeansBalance(token, headers) {
392
438
  return __awaiter(this, void 0, void 0, function* () {
393
439
  const reqHeaders = headers ? headers : new Headers();
394
440
  reqHeaders.append(AUTHORIZATION_HEADER, token);
@@ -396,7 +442,7 @@ class DripApi {
396
442
  headers: reqHeaders,
397
443
  });
398
444
  const data = yield res.json();
399
- return data;
445
+ return { balance: parseFloat(ethers_1.ethers.utils.formatUnits(data.balance, DripConfig_1.DRIP_TOKEN_DECIMALS)) };
400
446
  });
401
447
  }
402
448
  upgradeLoyaltyCard(token, headers) {
@@ -408,7 +454,13 @@ class DripApi {
408
454
  headers: reqHeaders,
409
455
  });
410
456
  const data = yield res.json();
411
- return data;
457
+ return {
458
+ id: data.id,
459
+ tier: data.tier,
460
+ level: data.level,
461
+ cost: parseFloat(ethers_1.ethers.utils.formatUnits(data.cost.toString(), DripConfig_1.DRIP_TOKEN_DECIMALS)),
462
+ boost: data.boost
463
+ };
412
464
  });
413
465
  }
414
466
  }
@@ -1,6 +1,7 @@
1
1
  import { ContractAddresses, SDKConfig } from '@spool.fi/spool-v2-sdk';
2
2
  import { Signer } from 'ethers';
3
3
  export declare const NULL_ADDRESS = "0x0000000000000000000000000000000000000000";
4
+ export declare const DRIP_TOKEN_DECIMALS = 18;
4
5
  export declare class DripConfig {
5
6
  internalConfig: SDKConfig;
6
7
  dripRoute: string;
@@ -9,9 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DripConfig = exports.NULL_ADDRESS = void 0;
12
+ exports.DripConfig = exports.DRIP_TOKEN_DECIMALS = exports.NULL_ADDRESS = void 0;
13
13
  const spool_v2_sdk_1 = require("@spool.fi/spool-v2-sdk");
14
- exports.NULL_ADDRESS = "0x0000000000000000000000000000000000000000";
14
+ exports.NULL_ADDRESS = '0x0000000000000000000000000000000000000000';
15
+ exports.DRIP_TOKEN_DECIMALS = 18;
15
16
  class DripConfig {
16
17
  constructor(subgraphUrl, priceFeedApiUrl, rewardsUrl, fastRedeemApi, contracts, dripRoute, dripTokenAddress, dripTokenRecyclerAddress) {
17
18
  this.internalConfig = new spool_v2_sdk_1.SDKConfig(subgraphUrl, priceFeedApiUrl, rewardsUrl, fastRedeemApi, contracts);
package/dist/DripSdk.d.ts CHANGED
@@ -8,6 +8,7 @@ import { UserVaultBalance } from './types/UserVaultBalance';
8
8
  import { VaultClaimData } from './types/VaultClaimData';
9
9
  import { Vault } from './types/Vault';
10
10
  import { LoyaltyCard } from './types/LoyaltyCard';
11
+ import { MetaVault } from './types/MetaVault';
11
12
  export default class DripSdk {
12
13
  private dripApi;
13
14
  private dripTokenContract;
@@ -17,6 +18,7 @@ export default class DripSdk {
17
18
  private dripConfig;
18
19
  constructor(dripConfig: DripConfig, signer?: Signer);
19
20
  getAllVaults(): Promise<Vault[]>;
21
+ getAllMetaVaults(): Promise<MetaVault[]>;
20
22
  getVaultDetails(vaultAddress: string): Promise<Vault>;
21
23
  getVaultStats(): Promise<VaultStats>;
22
24
  getTokenPrice(tokenName: string): Promise<number>;
@@ -25,6 +27,7 @@ export default class DripSdk {
25
27
  authenticate(): Promise<boolean>;
26
28
  newDeposit(tokenAddress: string, vaultAddress: string, amount: string): Promise<string>;
27
29
  deposit(tokenAddress: string, vaultAddress: string, amount: string): Promise<string>;
30
+ depositMetaVault(metaVaultAddress: string, amount: string): Promise<string>;
28
31
  private doDeposit;
29
32
  getTokenAllowanceForCurrency(tokenAddress: string): Promise<string>;
30
33
  getExpectedSwapResult(fromTokenAddress: string, toTokenAddress: string, amount: string, decimals: number): Promise<string>;
@@ -38,9 +41,12 @@ export default class DripSdk {
38
41
  newSwapAndDeposit(fromTokenAddress: string, toTokenAddress: string, fromTokenAmount: string, vaultAddress: string, ethAmount?: string): Promise<string>;
39
42
  private doSwapAndDeposit;
40
43
  withdraw(vaultAddress: string, amountToWithdraw?: string): Promise<string>;
44
+ withdrawMetavault(metaVaultAddress: string): Promise<string>;
41
45
  claimWithdraws(vaultAddress: string): Promise<string>;
42
46
  getVaultsClaimableData(headers?: Headers): Promise<VaultClaimData>;
43
- getBeansBalance(walletAddress: string, headers?: Headers): Promise<any>;
47
+ getBeansBalance(headers?: Headers): Promise<{
48
+ balance: number;
49
+ }>;
44
50
  recycleTokens(amount: string): Promise<string>;
45
51
  upgradeLoyaltyCard(): Promise<LoyaltyCard>;
46
52
  getNextLoyaltyCard(headers?: Headers): Promise<LoyaltyCard>;
@@ -49,6 +55,7 @@ export default class DripSdk {
49
55
  approveTokenForRecycler(tokenAddress: string, amount: string): Promise<string>;
50
56
  approveTokenForSwapAndDeposit(tokenAddress: string, amount: string): Promise<string>;
51
57
  approveTokenForDeposit(tokenAddress: string, amount: string): Promise<string>;
58
+ approveTokenForMetaVaultDeposit(tokenAddress: string, metaVaultAddress: string, amount: string): Promise<string>;
52
59
  private generateRedeemBagStruct;
53
60
  private getAllSvts;
54
61
  private getERC20Precission;
package/dist/DripSdk.js CHANGED
@@ -36,6 +36,11 @@ class DripSdk {
36
36
  return this.dripApi.fetchAllVaults();
37
37
  });
38
38
  }
39
+ getAllMetaVaults() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ return this.dripApi.fetchAllMetaVaults();
42
+ });
43
+ }
39
44
  getVaultDetails(vaultAddress) {
40
45
  return __awaiter(this, void 0, void 0, function* () {
41
46
  return this.dripApi.fetchVaultDetails(vaultAddress);
@@ -116,6 +121,23 @@ class DripSdk {
116
121
  return this.doDeposit(tokenAddress, vaultAddress, amount, true);
117
122
  });
118
123
  }
124
+ depositMetaVault(metaVaultAddress, amount) {
125
+ return __awaiter(this, void 0, void 0, function* () {
126
+ if (!this.signer) {
127
+ throw Error('No signer provided');
128
+ }
129
+ const metavault = yield this.dripApi.fetchMetaVaultDetails(metaVaultAddress);
130
+ if (!metavault) {
131
+ throw Error('Metavault not found');
132
+ }
133
+ const decimals = yield this.getERC20Precission(metavault.depositToken.tokenAddress);
134
+ const amountWithDecimals = parseFloat(parseFloat(amount).toFixed(decimals));
135
+ const amountToDeposit = ethers_1.ethers.utils.parseUnits(amountWithDecimals.toString(), decimals);
136
+ const depositTx = yield this.spoolSdk.metaVaultDeposit(metaVaultAddress, amountToDeposit);
137
+ const txReceipt = yield depositTx.wait();
138
+ return txReceipt.transactionHash;
139
+ });
140
+ }
119
141
  doDeposit(tokenAddress, vaultAddress, amount, checkAllowance) {
120
142
  return __awaiter(this, void 0, void 0, function* () {
121
143
  if (!this.signer) {
@@ -297,6 +319,16 @@ class DripSdk {
297
319
  return redeemTxReceipt.transactionHash;
298
320
  });
299
321
  }
322
+ withdrawMetavault(metaVaultAddress) {
323
+ return __awaiter(this, void 0, void 0, function* () {
324
+ if (!this.signer) {
325
+ throw Error('No signer provided');
326
+ }
327
+ const depositTx = yield this.spoolSdk.metaVaultWithdraw(metaVaultAddress, []);
328
+ const txReceipt = yield depositTx.wait();
329
+ return txReceipt.transactionHash;
330
+ });
331
+ }
300
332
  claimWithdraws(vaultAddress) {
301
333
  return __awaiter(this, void 0, void 0, function* () {
302
334
  const userAddress = yield this.signer.getAddress();
@@ -330,13 +362,13 @@ class DripSdk {
330
362
  return yield this.dripApi.fetchVaultsClaimableData(authData.address, authData.token, headers);
331
363
  });
332
364
  }
333
- getBeansBalance(walletAddress, headers) {
365
+ getBeansBalance(headers) {
334
366
  return __awaiter(this, void 0, void 0, function* () {
335
367
  const authData = yield this.isUserAuthenticated();
336
368
  if (!authData.isAuthenticated) {
337
369
  throw Error(`User not authenticated: ${authData.message}`);
338
370
  }
339
- return this.dripApi.fetchBeansBalance(walletAddress, authData.token, headers);
371
+ return this.dripApi.fetchBeansBalance(authData.token, headers);
340
372
  });
341
373
  }
342
374
  recycleTokens(amount) {
@@ -420,6 +452,14 @@ class DripSdk {
420
452
  return yield this.approveToken(tokenAddress, amount, smartVaultManagerAddress);
421
453
  });
422
454
  }
455
+ approveTokenForMetaVaultDeposit(tokenAddress, metaVaultAddress, amount) {
456
+ return __awaiter(this, void 0, void 0, function* () {
457
+ if (!this.signer) {
458
+ throw Error('No signer provided');
459
+ }
460
+ return yield this.approveToken(tokenAddress, amount, metaVaultAddress);
461
+ });
462
+ }
423
463
  generateRedeemBagStruct(token, vault, signerAddress, amountToWithdraw) {
424
464
  return __awaiter(this, void 0, void 0, function* () {
425
465
  const decimals = yield this.getERC20Precission(vault.depositToken.tokenAddress.toLowerCase());
package/dist/index.d.ts CHANGED
@@ -12,4 +12,5 @@ import { UserVaultBalance } from './types/UserVaultBalance';
12
12
  import { UserBalance } from './types/UserBalance';
13
13
  import { VaultStats } from './types/VaultStats';
14
14
  import { DripConfig } from './DripConfig';
15
- export { Vault, VaultReward, DripSdk, DripConfig, UserVaultBalance, UserBalance, VaultStats, AuthenticationStatus, NFTBoost, Strategy, StretchGoal, SwapInfo, VaultDepositToken, VaultType };
15
+ import { MetaVault } from './types/MetaVault';
16
+ export { Vault, VaultReward, DripSdk, DripConfig, UserVaultBalance, UserBalance, VaultStats, AuthenticationStatus, NFTBoost, Strategy, StretchGoal, SwapInfo, VaultDepositToken, VaultType, MetaVault };
package/dist/test.js CHANGED
@@ -17,7 +17,7 @@ const ethers_1 = require("ethers");
17
17
  const DripConfig_1 = require("./DripConfig");
18
18
  const DripSdk_1 = __importDefault(require("./DripSdk"));
19
19
  // This is script to test locally the drip sdk methods
20
- const account2 = "0x9E9B6899Ea314dD553A99f4F49440d2CeD2b2848"; // privKey 92eb90257aa76cc56ead18dd52dd3433689712ebe7356a70308b760bfcbdd787
20
+ const account2 = '0x9E9B6899Ea314dD553A99f4F49440d2CeD2b2848'; // privKey 92eb90257aa76cc56ead18dd52dd3433689712ebe7356a70308b760bfcbdd787
21
21
  // const privKey: string = '6ffc226f7b7769e27124317372c9dbb579a324e67e97bf07131bf2f59ec0f4fe';
22
22
  const privKey = '92eb90257aa76cc56ead18dd52dd3433689712ebe7356a70308b760bfcbdd787';
23
23
  const testConfigParams = {
@@ -34,6 +34,7 @@ const testConfigParams = {
34
34
  IRewardManager: '0xcE7F66BD505a80129Ef25b06207Ac49620A55522',
35
35
  IStrategyRegistry: '0xf978853Db777d00b1130Ea21d8d98E8710b0Bc56',
36
36
  ISpoolLens: '0x33Df6cf08Fbb10047e318989fE687294CD45A7B4',
37
+ IMetaVaultFactory: '0x28a3a4f4D469Fb33601639Db40a800ca6776A3d0',
37
38
  }
38
39
  },
39
40
  dripContracts: {
@@ -41,7 +42,7 @@ const testConfigParams = {
41
42
  DripTokenRecyclerAddress: '0xe943A1320402fcf41cDc04275e842654165dAB78' // Sepolia contract address
42
43
  }
43
44
  };
44
- const configParams = {
45
+ const sepoliaConfigParams = {
45
46
  subgraphUrl: 'https://subgraph.satsuma-prod.com/49eb322da234/solidant/spool-v2-sepolia/api',
46
47
  priceFeedApiUrl: 'https://pricefeed.dev.spool.fi/',
47
48
  rewardsUrl: 'https://rewards.dev.spool.fi/sepolia',
@@ -55,6 +56,7 @@ const configParams = {
55
56
  IRewardManager: '0xcE7F66BD505a80129Ef25b06207Ac49620A55522',
56
57
  IStrategyRegistry: '0xf978853Db777d00b1130Ea21d8d98E8710b0Bc56',
57
58
  ISpoolLens: '0x33Df6cf08Fbb10047e318989fE687294CD45A7B4',
59
+ IMetaVaultFactory: '0xe07a896CFD8FEdFb6d7515480853c5D5ED30EBFE',
58
60
  },
59
61
  },
60
62
  dripContracts: {
@@ -62,6 +64,24 @@ const configParams = {
62
64
  DripTokenRecyclerAddress: '0xe943A1320402fcf41cDc04275e842654165dAB78' // Sepolia contract address
63
65
  }
64
66
  };
67
+ const mainnetConfigParams = {
68
+ subgraphUrl: 'https://subgraph.satsuma-prod.com/49eb322da234/solidant/spool-v2/api',
69
+ priceFeedApiUrl: 'https://pricefeed.v2.spool.fi/',
70
+ rewardsUrl: 'https://rewards.v2.spool.fi/',
71
+ fastRedeemApi: 'https://fastwithdraw.v2.spool.fi/',
72
+ contracts: {
73
+ 1: {
74
+ ISmartVaultManager: '0x23Daf34e2b9Af02A74dC19cB52Af727B19403874',
75
+ IDepositSwap: '0xd8534197Bd587F8226d12E0C864ef2CaE6f82f5C',
76
+ ISmartVaultFactory: '0x362599Cdc123e3FFEB7c0812d769128D180667E8',
77
+ IDepositManager: '0x823Ba38992825FF37E72B6c3D669a09173B8F7bf',
78
+ IRewardManager: '0xd8d2C1C3C7982272e3e12dEC5aF681433fdcf003',
79
+ IStrategyRegistry: '0x554c6bCB54656390aca0a0af38CA954dbE653F15',
80
+ ISpoolLens: '0x8aa6174333F75421903b2B5c70DdF8DA5D84f74F',
81
+ IMetaVaultFactory: '0x28a3a4f4D469Fb33601639Db40a800ca6776A3d0'
82
+ },
83
+ }
84
+ };
65
85
  const provider = new ethers_1.ethers.providers.StaticJsonRpcProvider('https://rpc.ankr.com/eth_sepolia', 11155111);
66
86
  exports.signer = new ethers_1.ethers.Wallet(privKey, provider);
67
87
  // const random_address = '0x25dFcFB061956c6f33B1ee032cc33837d0b83257';
@@ -0,0 +1,6 @@
1
+ export type DeployedMetaVault = {
2
+ address: string;
3
+ liveUntil: string;
4
+ liveFrom: string;
5
+ depositTokenId: string;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,8 @@
1
- import { BigNumber } from 'ethers';
2
1
  import ELoyaltyCardTier from './ELoyaltyCardTier';
3
2
  export type LoyaltyCard = {
4
3
  id: string;
5
4
  tier: ELoyaltyCardTier;
6
5
  level: number;
7
- cost: BigNumber;
6
+ cost: number;
8
7
  boost: number;
9
8
  };
@@ -0,0 +1,15 @@
1
+ import { VaultDepositToken } from './VaultDepositToken';
2
+ type VaultAllocation = {
3
+ vaultAddress: string;
4
+ vaultName: string;
5
+ allocation: number;
6
+ };
7
+ export type MetaVault = {
8
+ name: string;
9
+ address: string;
10
+ depositToken: VaultDepositToken;
11
+ liveUntil: string;
12
+ liveFrom: string;
13
+ allocations: VaultAllocation[];
14
+ };
15
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dripfi/drip-sdk",
3
- "version": "1.1.19",
3
+ "version": "1.1.21-dev",
4
4
  "description": "Drip SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "test": "echo \"Error: no test specified\" && exit 1"
12
12
  },
13
13
  "dependencies": {
14
- "@spool.fi/spool-v2-sdk": "1.0.14",
14
+ "@spool.fi/spool-v2-sdk": "2.0.13",
15
15
  "ethers": "^5.7.2",
16
16
  "js-cookie": "^3.0.5",
17
17
  "web3-token": "^1.0.6"