@dripfi/drip-sdk 1.3.2 → 1.3.4

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.
@@ -1,212 +1,12 @@
1
1
  [
2
2
  {
3
3
  "inputs": [],
4
- "stateMutability": "nonpayable",
5
- "type": "constructor"
6
- },
7
- {
8
- "inputs": [],
9
- "name": "AccessControlBadConfirmation",
10
- "type": "error"
11
- },
12
- {
13
- "inputs": [
14
- {
15
- "internalType": "address",
16
- "name": "account",
17
- "type": "address"
18
- },
19
- {
20
- "internalType": "bytes32",
21
- "name": "neededRole",
22
- "type": "bytes32"
23
- }
24
- ],
25
- "name": "AccessControlUnauthorizedAccount",
26
- "type": "error"
27
- },
28
- {
29
- "inputs": [
30
- {
31
- "internalType": "address",
32
- "name": "target",
33
- "type": "address"
34
- }
35
- ],
36
- "name": "AddressEmptyCode",
37
- "type": "error"
38
- },
39
- {
40
- "inputs": [
41
- {
42
- "internalType": "address",
43
- "name": "account",
44
- "type": "address"
45
- }
46
- ],
47
- "name": "AddressInsufficientBalance",
48
- "type": "error"
49
- },
50
- {
51
- "inputs": [],
52
- "name": "FailedInnerCall",
53
- "type": "error"
54
- },
55
- {
56
- "inputs": [],
57
- "name": "InvalidInitialization",
58
- "type": "error"
59
- },
60
- {
61
- "inputs": [],
62
- "name": "NotInitializing",
63
- "type": "error"
64
- },
65
- {
66
- "inputs": [
67
- {
68
- "internalType": "address",
69
- "name": "token",
70
- "type": "address"
71
- }
72
- ],
73
- "name": "SafeERC20FailedOperation",
74
- "type": "error"
75
- },
76
- {
77
- "anonymous": false,
78
- "inputs": [
79
- {
80
- "indexed": true,
81
- "internalType": "address",
82
- "name": "sender",
83
- "type": "address"
84
- },
85
- {
86
- "indexed": false,
87
- "internalType": "uint256",
88
- "name": "burnedAmount",
89
- "type": "uint256"
90
- }
91
- ],
92
- "name": "Burned",
93
- "type": "event"
94
- },
95
- {
96
- "anonymous": false,
97
- "inputs": [
98
- {
99
- "indexed": true,
100
- "internalType": "address",
101
- "name": "sender",
102
- "type": "address"
103
- },
104
- {
105
- "indexed": false,
106
- "internalType": "uint256",
107
- "name": "claimedAmount",
108
- "type": "uint256"
109
- }
110
- ],
111
- "name": "Claimed",
112
- "type": "event"
113
- },
114
- {
115
- "anonymous": false,
116
- "inputs": [
117
- {
118
- "indexed": false,
119
- "internalType": "uint64",
120
- "name": "version",
121
- "type": "uint64"
122
- }
123
- ],
124
- "name": "Initialized",
125
- "type": "event"
126
- },
127
- {
128
- "anonymous": false,
129
- "inputs": [
130
- {
131
- "indexed": true,
132
- "internalType": "bytes32",
133
- "name": "role",
134
- "type": "bytes32"
135
- },
136
- {
137
- "indexed": true,
138
- "internalType": "bytes32",
139
- "name": "previousAdminRole",
140
- "type": "bytes32"
141
- },
142
- {
143
- "indexed": true,
144
- "internalType": "bytes32",
145
- "name": "newAdminRole",
146
- "type": "bytes32"
147
- }
148
- ],
149
- "name": "RoleAdminChanged",
150
- "type": "event"
151
- },
152
- {
153
- "anonymous": false,
154
- "inputs": [
155
- {
156
- "indexed": true,
157
- "internalType": "bytes32",
158
- "name": "role",
159
- "type": "bytes32"
160
- },
161
- {
162
- "indexed": true,
163
- "internalType": "address",
164
- "name": "account",
165
- "type": "address"
166
- },
167
- {
168
- "indexed": true,
169
- "internalType": "address",
170
- "name": "sender",
171
- "type": "address"
172
- }
173
- ],
174
- "name": "RoleGranted",
175
- "type": "event"
176
- },
177
- {
178
- "anonymous": false,
179
- "inputs": [
180
- {
181
- "indexed": true,
182
- "internalType": "bytes32",
183
- "name": "role",
184
- "type": "bytes32"
185
- },
186
- {
187
- "indexed": true,
188
- "internalType": "address",
189
- "name": "account",
190
- "type": "address"
191
- },
192
- {
193
- "indexed": true,
194
- "internalType": "address",
195
- "name": "sender",
196
- "type": "address"
197
- }
198
- ],
199
- "name": "RoleRevoked",
200
- "type": "event"
201
- },
202
- {
203
- "inputs": [],
204
- "name": "ADMIN_ROLE",
4
+ "name": "start",
205
5
  "outputs": [
206
6
  {
207
- "internalType": "bytes32",
7
+ "internalType": "uint64",
208
8
  "name": "",
209
- "type": "bytes32"
9
+ "type": "uint64"
210
10
  }
211
11
  ],
212
12
  "stateMutability": "view",
@@ -214,12 +14,12 @@
214
14
  },
215
15
  {
216
16
  "inputs": [],
217
- "name": "DEFAULT_ADMIN_ROLE",
17
+ "name": "end",
218
18
  "outputs": [
219
19
  {
220
- "internalType": "bytes32",
20
+ "internalType": "uint64",
221
21
  "name": "",
222
- "type": "bytes32"
22
+ "type": "uint64"
223
23
  }
224
24
  ],
225
25
  "stateMutability": "view",
@@ -229,11 +29,11 @@
229
29
  "inputs": [
230
30
  {
231
31
  "internalType": "address",
232
- "name": "",
32
+ "name": "beneficiary_",
233
33
  "type": "address"
234
34
  }
235
35
  ],
236
- "name": "addressToAllocation",
36
+ "name": "vested",
237
37
  "outputs": [
238
38
  {
239
39
  "internalType": "uint256",
@@ -248,11 +48,11 @@
248
48
  "inputs": [
249
49
  {
250
50
  "internalType": "address",
251
- "name": "",
51
+ "name": "beneficiary_",
252
52
  "type": "address"
253
53
  }
254
54
  ],
255
- "name": "addressToBurnedAmount",
55
+ "name": "releasable",
256
56
  "outputs": [
257
57
  {
258
58
  "internalType": "uint256",
@@ -265,21 +65,15 @@
265
65
  },
266
66
  {
267
67
  "inputs": [
268
- {
269
- "internalType": "address",
270
- "name": "",
271
- "type": "address"
272
- }
273
- ],
274
- "name": "addressToClaimedAmount",
275
- "outputs": [
276
68
  {
277
69
  "internalType": "uint256",
278
- "name": "",
70
+ "name": "amount_",
279
71
  "type": "uint256"
280
72
  }
281
73
  ],
282
- "stateMutability": "view",
74
+ "name": "claim",
75
+ "outputs": [],
76
+ "stateMutability": "nonpayable",
283
77
  "type": "function"
284
78
  },
285
79
  {
@@ -310,170 +104,6 @@
310
104
  "stateMutability": "nonpayable",
311
105
  "type": "function"
312
106
  },
313
- {
314
- "inputs": [
315
- {
316
- "internalType": "uint256",
317
- "name": "amount_",
318
- "type": "uint256"
319
- }
320
- ],
321
- "name": "claim",
322
- "outputs": [],
323
- "stateMutability": "nonpayable",
324
- "type": "function"
325
- },
326
- {
327
- "inputs": [],
328
- "name": "duration",
329
- "outputs": [
330
- {
331
- "internalType": "uint64",
332
- "name": "",
333
- "type": "uint64"
334
- }
335
- ],
336
- "stateMutability": "view",
337
- "type": "function"
338
- },
339
- {
340
- "inputs": [],
341
- "name": "end",
342
- "outputs": [
343
- {
344
- "internalType": "uint64",
345
- "name": "",
346
- "type": "uint64"
347
- }
348
- ],
349
- "stateMutability": "view",
350
- "type": "function"
351
- },
352
- {
353
- "inputs": [
354
- {
355
- "internalType": "bytes32",
356
- "name": "role",
357
- "type": "bytes32"
358
- }
359
- ],
360
- "name": "getRoleAdmin",
361
- "outputs": [
362
- {
363
- "internalType": "bytes32",
364
- "name": "",
365
- "type": "bytes32"
366
- }
367
- ],
368
- "stateMutability": "view",
369
- "type": "function"
370
- },
371
- {
372
- "inputs": [
373
- {
374
- "internalType": "bytes32",
375
- "name": "role",
376
- "type": "bytes32"
377
- },
378
- {
379
- "internalType": "address",
380
- "name": "account",
381
- "type": "address"
382
- }
383
- ],
384
- "name": "grantRole",
385
- "outputs": [],
386
- "stateMutability": "nonpayable",
387
- "type": "function"
388
- },
389
- {
390
- "inputs": [
391
- {
392
- "internalType": "bytes32",
393
- "name": "role",
394
- "type": "bytes32"
395
- },
396
- {
397
- "internalType": "address",
398
- "name": "account",
399
- "type": "address"
400
- }
401
- ],
402
- "name": "hasRole",
403
- "outputs": [
404
- {
405
- "internalType": "bool",
406
- "name": "",
407
- "type": "bool"
408
- }
409
- ],
410
- "stateMutability": "view",
411
- "type": "function"
412
- },
413
- {
414
- "inputs": [
415
- {
416
- "internalType": "contract ITokenRecycler",
417
- "name": "tokenRecycler_",
418
- "type": "address"
419
- },
420
- {
421
- "internalType": "address",
422
- "name": "admin_",
423
- "type": "address"
424
- },
425
- {
426
- "internalType": "uint64",
427
- "name": "start_",
428
- "type": "uint64"
429
- },
430
- {
431
- "internalType": "uint64",
432
- "name": "duration_",
433
- "type": "uint64"
434
- },
435
- {
436
- "components": [
437
- {
438
- "internalType": "address",
439
- "name": "beneficiary",
440
- "type": "address"
441
- },
442
- {
443
- "internalType": "uint256",
444
- "name": "allocation",
445
- "type": "uint256"
446
- }
447
- ],
448
- "internalType": "struct Beneficiary[]",
449
- "name": "beneficiaries_",
450
- "type": "tuple[]"
451
- }
452
- ],
453
- "name": "initialize",
454
- "outputs": [],
455
- "stateMutability": "nonpayable",
456
- "type": "function"
457
- },
458
- {
459
- "inputs": [
460
- {
461
- "internalType": "address",
462
- "name": "beneficiary_",
463
- "type": "address"
464
- }
465
- ],
466
- "name": "releasable",
467
- "outputs": [
468
- {
469
- "internalType": "uint256",
470
- "name": "",
471
- "type": "uint256"
472
- }
473
- ],
474
- "stateMutability": "view",
475
- "type": "function"
476
- },
477
107
  {
478
108
  "inputs": [
479
109
  {
@@ -492,149 +122,5 @@
492
122
  ],
493
123
  "stateMutability": "view",
494
124
  "type": "function"
495
- },
496
- {
497
- "inputs": [
498
- {
499
- "internalType": "bytes32",
500
- "name": "role",
501
- "type": "bytes32"
502
- },
503
- {
504
- "internalType": "address",
505
- "name": "callerConfirmation",
506
- "type": "address"
507
- }
508
- ],
509
- "name": "renounceRole",
510
- "outputs": [],
511
- "stateMutability": "nonpayable",
512
- "type": "function"
513
- },
514
- {
515
- "inputs": [
516
- {
517
- "internalType": "bytes32",
518
- "name": "role",
519
- "type": "bytes32"
520
- },
521
- {
522
- "internalType": "address",
523
- "name": "account",
524
- "type": "address"
525
- }
526
- ],
527
- "name": "revokeRole",
528
- "outputs": [],
529
- "stateMutability": "nonpayable",
530
- "type": "function"
531
- },
532
- {
533
- "inputs": [],
534
- "name": "start",
535
- "outputs": [
536
- {
537
- "internalType": "uint64",
538
- "name": "",
539
- "type": "uint64"
540
- }
541
- ],
542
- "stateMutability": "view",
543
- "type": "function"
544
- },
545
- {
546
- "inputs": [
547
- {
548
- "internalType": "bytes4",
549
- "name": "interfaceId",
550
- "type": "bytes4"
551
- }
552
- ],
553
- "name": "supportsInterface",
554
- "outputs": [
555
- {
556
- "internalType": "bool",
557
- "name": "",
558
- "type": "bool"
559
- }
560
- ],
561
- "stateMutability": "view",
562
- "type": "function"
563
- },
564
- {
565
- "inputs": [],
566
- "name": "token",
567
- "outputs": [
568
- {
569
- "internalType": "contract IERC20",
570
- "name": "",
571
- "type": "address"
572
- }
573
- ],
574
- "stateMutability": "view",
575
- "type": "function"
576
- },
577
- {
578
- "inputs": [],
579
- "name": "tokenRecycler",
580
- "outputs": [
581
- {
582
- "internalType": "contract ITokenRecycler",
583
- "name": "",
584
- "type": "address"
585
- }
586
- ],
587
- "stateMutability": "view",
588
- "type": "function"
589
- },
590
- {
591
- "inputs": [
592
- {
593
- "internalType": "address",
594
- "name": "beneficiary_",
595
- "type": "address"
596
- }
597
- ],
598
- "name": "vested",
599
- "outputs": [
600
- {
601
- "internalType": "uint256",
602
- "name": "",
603
- "type": "uint256"
604
- }
605
- ],
606
- "stateMutability": "view",
607
- "type": "function"
608
- },
609
- {
610
- "inputs": [
611
- {
612
- "internalType": "uint256",
613
- "name": "amount_",
614
- "type": "uint256"
615
- }
616
- ],
617
- "name": "withdrawETH",
618
- "outputs": [],
619
- "stateMutability": "nonpayable",
620
- "type": "function"
621
- },
622
- {
623
- "inputs": [
624
- {
625
- "internalType": "contract IERC20",
626
- "name": "token_",
627
- "type": "address"
628
- },
629
- {
630
- "internalType": "uint256",
631
- "name": "amount_",
632
- "type": "uint256"
633
- }
634
- ],
635
- "name": "withdrawToken",
636
- "outputs": [],
637
- "stateMutability": "nonpayable",
638
- "type": "function"
639
125
  }
640
126
  ]