@dripfi/drip-sdk 1.1.26 → 1.1.27

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/test.js CHANGED
@@ -17,17 +17,9 @@ 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
- // OLD RECYCLER ADDRESS
21
- // RECYCLER_ADDRESS='0xe943A1320402fcf41cDc04275e842654165dAB78'
22
- // DRIP_TOKEN_ADDRESS='0xc9C66052327523d6A7a2ee5D50CF07e4415e27c7'
23
- // NEW RECYCLER ADDRESS:
24
- // RECYCLER_ADDRESS=0x463aea273644AfF560da07c7c09f3142b87E12f1
25
- // TOKEN_ADDRESS: 0x707B4Cc05645713d8Ea04FBC7192A0f2c1503d6E
26
- const RECYCLER_ADDRESS = '0x463aea273644AfF560da07c7c09f3142b87E12f1';
27
- const DRIP_TOKEN_ADDRESS = '0x707B4Cc05645713d8Ea04FBC7192A0f2c1503d6E';
28
20
  const account2 = '0x9E9B6899Ea314dD553A99f4F49440d2CeD2b2848'; // privKey 92eb90257aa76cc56ead18dd52dd3433689712ebe7356a70308b760bfcbdd787
29
- const privKey = '6ffc226f7b7769e27124317372c9dbb579a324e67e97bf07131bf2f59ec0f4fe';
30
- // const privKey: string = '92eb90257aa76cc56ead18dd52dd3433689712ebe7356a70308b760bfcbdd787';
21
+ // const privKey: string = '6ffc226f7b7769e27124317372c9dbb579a324e67e97bf07131bf2f59ec0f4fe';
22
+ const privKey = '92eb90257aa76cc56ead18dd52dd3433689712ebe7356a70308b760bfcbdd787';
31
23
  const testConfigParams = {
32
24
  subgraphUrl: 'https://subgraph.satsuma-prod.com/49eb322da234/solidant/spool-v2-sepolia/api',
33
25
  priceFeedApiUrl: 'https://pricefeed.dev.spool.fi/',
@@ -45,8 +37,8 @@ const testConfigParams = {
45
37
  }
46
38
  },
47
39
  dripContracts: {
48
- DripTokenAddress: DRIP_TOKEN_ADDRESS, // Sepolia contract address
49
- DripTokenRecyclerAddress: RECYCLER_ADDRESS // Sepolia contract address
40
+ DripTokenAddress: '0xc9C66052327523d6A7a2ee5D50CF07e4415e27c7', // Sepolia contract address
41
+ DripTokenRecyclerAddress: '0xe943A1320402fcf41cDc04275e842654165dAB78' // Sepolia contract address
50
42
  }
51
43
  };
52
44
  const configParams = {
@@ -66,8 +58,8 @@ const configParams = {
66
58
  },
67
59
  },
68
60
  dripContracts: {
69
- DripTokenAddress: '0x707B4Cc05645713d8Ea04FBC7192A0f2c1503d6E', // Sepolia contract address
70
- DripTokenRecyclerAddress: '0x463aea273644AfF560da07c7c09f3142b87E12f1' // Sepolia contract address
61
+ DripTokenAddress: '0xc9C66052327523d6A7a2ee5D50CF07e4415e27c7', // Sepolia contract address
62
+ DripTokenRecyclerAddress: '0xe943A1320402fcf41cDc04275e842654165dAB78' // Sepolia contract address
71
63
  }
72
64
  };
73
65
  const provider = new ethers_1.ethers.providers.StaticJsonRpcProvider('https://rpc.ankr.com/eth_sepolia', 11155111);
@@ -84,9 +76,6 @@ const dripSdk = new DripSdk_1.default(new DripConfig_1.DripConfig(testConfigPara
84
76
  function main() {
85
77
  return __awaiter(this, void 0, void 0, function* () {
86
78
  try {
87
- // const res = await dripSdk.approveTokenForRecycler(DRIP_TOKEN_ADDRESS.toLowerCase(), '100000000000000000000');
88
- const res = yield dripSdk.recycleTokens('100000000000000000000');
89
- console.log(res);
90
79
  // const res = await dripSdk.deposit(usdcTokenAddress,usdcVaultPerq, '1000');
91
80
  // const res = await dripSdk.withdraw(usdcVaultPerq, '1');
92
81
  // await dripSdk.authenticate()
@@ -2,6 +2,7 @@ import { StretchGoal } from './StretchGoal';
2
2
  export type DeployedProject = {
3
3
  id: number | undefined;
4
4
  projectName: string;
5
+ owners: string[];
5
6
  logo: string;
6
7
  telegramLink: string;
7
8
  twitterLink: string;
@@ -23,20 +24,17 @@ export type DeployedProject = {
23
24
  networks: string[];
24
25
  content: string;
25
26
  tgeDate?: string;
27
+ tgePrice?: number;
28
+ vAPY?: number;
26
29
  wikiLink: string;
27
30
  youTubeLink: string;
28
31
  tikTokLink: string;
29
- isMoonMathDisabled: boolean;
30
- isFastWithdrawDisabled: boolean;
32
+ stretchGoals: StretchGoal[];
31
33
  projectInfoText: string;
32
34
  projectRewardText: string;
33
- stretchGoals: StretchGoal[];
34
- owners: string[];
35
35
  coingeckoId?: string;
36
36
  projectType: string;
37
37
  isFeatured: boolean;
38
- tgePrice?: number;
39
- vAPY?: number;
40
38
  };
41
39
  export type ProjectBacker = {
42
40
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dripfi/drip-sdk",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "Drip SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",