@dripfi/drip-sdk 1.3.0 → 1.3.1

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 CHANGED
@@ -10,6 +10,7 @@ The Drip SDK is a TypeScript library designed to interact with the Drip protocol
10
10
  - [Methods](#methods)
11
11
  - [Examples](#examples)
12
12
  - [Types](#types)
13
+ - [Abis](#abis)
13
14
 
14
15
  # Installation
15
16
 
@@ -400,3 +401,17 @@ export type MyPerqData = {
400
401
  }
401
402
  };
402
403
  ```
404
+
405
+ # Abis
406
+
407
+ - DRIP_SWAP_AND_RECYCLER_ABI
408
+
409
+ - WETH_TOKEN_ABI
410
+
411
+ - DRIP_TOKEN_ABI
412
+
413
+ - TOKEN_RECYCLER_ABI
414
+
415
+ - PERQ_VESTING_ABI
416
+
417
+
@@ -1,368 +1,4 @@
1
1
  [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "contract IUniswapV2Router02",
6
- "name": "swapRouter_",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "contract ITokenRecycler",
11
- "name": "tokenRecycler_",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "address",
16
- "name": "admin_",
17
- "type": "address"
18
- }
19
- ],
20
- "stateMutability": "nonpayable",
21
- "type": "constructor"
22
- },
23
- {
24
- "inputs": [],
25
- "name": "AccessControlBadConfirmation",
26
- "type": "error"
27
- },
28
- {
29
- "inputs": [
30
- {
31
- "internalType": "address",
32
- "name": "account",
33
- "type": "address"
34
- },
35
- {
36
- "internalType": "bytes32",
37
- "name": "neededRole",
38
- "type": "bytes32"
39
- }
40
- ],
41
- "name": "AccessControlUnauthorizedAccount",
42
- "type": "error"
43
- },
44
- {
45
- "inputs": [
46
- {
47
- "internalType": "address",
48
- "name": "target",
49
- "type": "address"
50
- }
51
- ],
52
- "name": "AddressEmptyCode",
53
- "type": "error"
54
- },
55
- {
56
- "inputs": [
57
- {
58
- "internalType": "address",
59
- "name": "account",
60
- "type": "address"
61
- }
62
- ],
63
- "name": "AddressInsufficientBalance",
64
- "type": "error"
65
- },
66
- {
67
- "inputs": [],
68
- "name": "FailedInnerCall",
69
- "type": "error"
70
- },
71
- {
72
- "inputs": [],
73
- "name": "ReentrancyGuardReentrantCall",
74
- "type": "error"
75
- },
76
- {
77
- "inputs": [
78
- {
79
- "internalType": "address",
80
- "name": "token",
81
- "type": "address"
82
- }
83
- ],
84
- "name": "SafeERC20FailedOperation",
85
- "type": "error"
86
- },
87
- {
88
- "anonymous": false,
89
- "inputs": [
90
- {
91
- "indexed": true,
92
- "internalType": "bytes32",
93
- "name": "role",
94
- "type": "bytes32"
95
- },
96
- {
97
- "indexed": true,
98
- "internalType": "bytes32",
99
- "name": "previousAdminRole",
100
- "type": "bytes32"
101
- },
102
- {
103
- "indexed": true,
104
- "internalType": "bytes32",
105
- "name": "newAdminRole",
106
- "type": "bytes32"
107
- }
108
- ],
109
- "name": "RoleAdminChanged",
110
- "type": "event"
111
- },
112
- {
113
- "anonymous": false,
114
- "inputs": [
115
- {
116
- "indexed": true,
117
- "internalType": "bytes32",
118
- "name": "role",
119
- "type": "bytes32"
120
- },
121
- {
122
- "indexed": true,
123
- "internalType": "address",
124
- "name": "account",
125
- "type": "address"
126
- },
127
- {
128
- "indexed": true,
129
- "internalType": "address",
130
- "name": "sender",
131
- "type": "address"
132
- }
133
- ],
134
- "name": "RoleGranted",
135
- "type": "event"
136
- },
137
- {
138
- "anonymous": false,
139
- "inputs": [
140
- {
141
- "indexed": true,
142
- "internalType": "bytes32",
143
- "name": "role",
144
- "type": "bytes32"
145
- },
146
- {
147
- "indexed": true,
148
- "internalType": "address",
149
- "name": "account",
150
- "type": "address"
151
- },
152
- {
153
- "indexed": true,
154
- "internalType": "address",
155
- "name": "sender",
156
- "type": "address"
157
- }
158
- ],
159
- "name": "RoleRevoked",
160
- "type": "event"
161
- },
162
- {
163
- "anonymous": false,
164
- "inputs": [
165
- {
166
- "indexed": true,
167
- "internalType": "address",
168
- "name": "sender",
169
- "type": "address"
170
- },
171
- {
172
- "indexed": true,
173
- "internalType": "address",
174
- "name": "rewardBeneficiary",
175
- "type": "address"
176
- },
177
- {
178
- "indexed": false,
179
- "internalType": "address[]",
180
- "name": "path",
181
- "type": "address[]"
182
- },
183
- {
184
- "indexed": false,
185
- "internalType": "uint256[]",
186
- "name": "swapAmounts",
187
- "type": "uint256[]"
188
- },
189
- {
190
- "indexed": false,
191
- "internalType": "uint256",
192
- "name": "minAmountOut",
193
- "type": "uint256"
194
- },
195
- {
196
- "indexed": false,
197
- "internalType": "uint256",
198
- "name": "deadline",
199
- "type": "uint256"
200
- },
201
- {
202
- "indexed": false,
203
- "internalType": "uint256",
204
- "name": "rewardAmount",
205
- "type": "uint256"
206
- }
207
- ],
208
- "name": "SwappedAndRecycled",
209
- "type": "event"
210
- },
211
- {
212
- "inputs": [],
213
- "name": "ADMIN_ROLE",
214
- "outputs": [
215
- {
216
- "internalType": "bytes32",
217
- "name": "",
218
- "type": "bytes32"
219
- }
220
- ],
221
- "stateMutability": "view",
222
- "type": "function"
223
- },
224
- {
225
- "inputs": [],
226
- "name": "DEFAULT_ADMIN_ROLE",
227
- "outputs": [
228
- {
229
- "internalType": "bytes32",
230
- "name": "",
231
- "type": "bytes32"
232
- }
233
- ],
234
- "stateMutability": "view",
235
- "type": "function"
236
- },
237
- {
238
- "inputs": [
239
- {
240
- "internalType": "bytes32",
241
- "name": "role",
242
- "type": "bytes32"
243
- }
244
- ],
245
- "name": "getRoleAdmin",
246
- "outputs": [
247
- {
248
- "internalType": "bytes32",
249
- "name": "",
250
- "type": "bytes32"
251
- }
252
- ],
253
- "stateMutability": "view",
254
- "type": "function"
255
- },
256
- {
257
- "inputs": [
258
- {
259
- "internalType": "bytes32",
260
- "name": "role",
261
- "type": "bytes32"
262
- },
263
- {
264
- "internalType": "address",
265
- "name": "account",
266
- "type": "address"
267
- }
268
- ],
269
- "name": "grantRole",
270
- "outputs": [],
271
- "stateMutability": "nonpayable",
272
- "type": "function"
273
- },
274
- {
275
- "inputs": [
276
- {
277
- "internalType": "bytes32",
278
- "name": "role",
279
- "type": "bytes32"
280
- },
281
- {
282
- "internalType": "address",
283
- "name": "account",
284
- "type": "address"
285
- }
286
- ],
287
- "name": "hasRole",
288
- "outputs": [
289
- {
290
- "internalType": "bool",
291
- "name": "",
292
- "type": "bool"
293
- }
294
- ],
295
- "stateMutability": "view",
296
- "type": "function"
297
- },
298
- {
299
- "inputs": [],
300
- "name": "recycledToken",
301
- "outputs": [
302
- {
303
- "internalType": "contract IERC20",
304
- "name": "",
305
- "type": "address"
306
- }
307
- ],
308
- "stateMutability": "view",
309
- "type": "function"
310
- },
311
- {
312
- "inputs": [
313
- {
314
- "internalType": "bytes32",
315
- "name": "role",
316
- "type": "bytes32"
317
- },
318
- {
319
- "internalType": "address",
320
- "name": "callerConfirmation",
321
- "type": "address"
322
- }
323
- ],
324
- "name": "renounceRole",
325
- "outputs": [],
326
- "stateMutability": "nonpayable",
327
- "type": "function"
328
- },
329
- {
330
- "inputs": [
331
- {
332
- "internalType": "bytes32",
333
- "name": "role",
334
- "type": "bytes32"
335
- },
336
- {
337
- "internalType": "address",
338
- "name": "account",
339
- "type": "address"
340
- }
341
- ],
342
- "name": "revokeRole",
343
- "outputs": [],
344
- "stateMutability": "nonpayable",
345
- "type": "function"
346
- },
347
- {
348
- "inputs": [
349
- {
350
- "internalType": "bytes4",
351
- "name": "interfaceId",
352
- "type": "bytes4"
353
- }
354
- ],
355
- "name": "supportsInterface",
356
- "outputs": [
357
- {
358
- "internalType": "bool",
359
- "name": "",
360
- "type": "bool"
361
- }
362
- ],
363
- "stateMutability": "view",
364
- "type": "function"
365
- },
366
2
  {
367
3
  "inputs": [
368
4
  {
@@ -455,62 +91,5 @@
455
91
  ],
456
92
  "stateMutability": "payable",
457
93
  "type": "function"
458
- },
459
- {
460
- "inputs": [],
461
- "name": "swapRouter",
462
- "outputs": [
463
- {
464
- "internalType": "contract IUniswapV2Router02",
465
- "name": "",
466
- "type": "address"
467
- }
468
- ],
469
- "stateMutability": "view",
470
- "type": "function"
471
- },
472
- {
473
- "inputs": [],
474
- "name": "tokenRecycler",
475
- "outputs": [
476
- {
477
- "internalType": "contract ITokenRecycler",
478
- "name": "",
479
- "type": "address"
480
- }
481
- ],
482
- "stateMutability": "view",
483
- "type": "function"
484
- },
485
- {
486
- "inputs": [
487
- {
488
- "internalType": "uint256",
489
- "name": "amount_",
490
- "type": "uint256"
491
- }
492
- ],
493
- "name": "withdrawETH",
494
- "outputs": [],
495
- "stateMutability": "nonpayable",
496
- "type": "function"
497
- },
498
- {
499
- "inputs": [
500
- {
501
- "internalType": "contract IERC20",
502
- "name": "token_",
503
- "type": "address"
504
- },
505
- {
506
- "internalType": "uint256",
507
- "name": "amount_",
508
- "type": "uint256"
509
- }
510
- ],
511
- "name": "withdrawToken",
512
- "outputs": [],
513
- "stateMutability": "nonpayable",
514
- "type": "function"
515
94
  }
516
95
  ]
@@ -1,88 +1,4 @@
1
1
  [
2
- {
3
- "constant": true,
4
- "inputs": [],
5
- "name": "name",
6
- "outputs": [
7
- {
8
- "name": "",
9
- "type": "string"
10
- }
11
- ],
12
- "payable": false,
13
- "stateMutability": "view",
14
- "type": "function"
15
- },
16
- {
17
- "constant": true,
18
- "inputs": [],
19
- "name": "symbol",
20
- "outputs": [
21
- {
22
- "name": "",
23
- "type": "string"
24
- }
25
- ],
26
- "payable": false,
27
- "stateMutability": "view",
28
- "type": "function"
29
- },
30
- {
31
- "constant": true,
32
- "inputs": [],
33
- "name": "decimals",
34
- "outputs": [
35
- {
36
- "name": "",
37
- "type": "uint8"
38
- }
39
- ],
40
- "payable": false,
41
- "stateMutability": "view",
42
- "type": "function"
43
- },
44
- {
45
- "constant": true,
46
- "inputs": [
47
- {
48
- "name": "account",
49
- "type": "address"
50
- }
51
- ],
52
- "name": "balanceOf",
53
- "outputs": [
54
- {
55
- "name": "",
56
- "type": "uint256"
57
- }
58
- ],
59
- "payable": false,
60
- "stateMutability": "view",
61
- "type": "function"
62
- },
63
- {
64
- "constant": false,
65
- "inputs": [
66
- {
67
- "name": "to",
68
- "type": "address"
69
- },
70
- {
71
- "name": "value",
72
- "type": "uint256"
73
- }
74
- ],
75
- "name": "transfer",
76
- "outputs": [
77
- {
78
- "name": "",
79
- "type": "bool"
80
- }
81
- ],
82
- "payable": false,
83
- "stateMutability": "nonpayable",
84
- "type": "function"
85
- },
86
2
  {
87
3
  "constant": true,
88
4
  "inputs": [
@@ -128,76 +44,5 @@
128
44
  "payable": false,
129
45
  "stateMutability": "nonpayable",
130
46
  "type": "function"
131
- },
132
- {
133
- "constant": false,
134
- "inputs": [
135
- {
136
- "name": "from",
137
- "type": "address"
138
- },
139
- {
140
- "name": "to",
141
- "type": "address"
142
- },
143
- {
144
- "name": "value",
145
- "type": "uint256"
146
- }
147
- ],
148
- "name": "transferFrom",
149
- "outputs": [
150
- {
151
- "name": "",
152
- "type": "bool"
153
- }
154
- ],
155
- "payable": false,
156
- "stateMutability": "nonpayable",
157
- "type": "function"
158
- },
159
- {
160
- "anonymous": false,
161
- "inputs": [
162
- {
163
- "indexed": true,
164
- "name": "owner",
165
- "type": "address"
166
- },
167
- {
168
- "indexed": true,
169
- "name": "spender",
170
- "type": "address"
171
- },
172
- {
173
- "indexed": false,
174
- "name": "value",
175
- "type": "uint256"
176
- }
177
- ],
178
- "name": "Approval",
179
- "type": "event"
180
- },
181
- {
182
- "anonymous": false,
183
- "inputs": [
184
- {
185
- "indexed": true,
186
- "name": "from",
187
- "type": "address"
188
- },
189
- {
190
- "indexed": true,
191
- "name": "to",
192
- "type": "address"
193
- },
194
- {
195
- "indexed": false,
196
- "name": "value",
197
- "type": "uint256"
198
- }
199
- ],
200
- "name": "Transfer",
201
- "type": "event"
202
47
  }
203
48
  ]