@1delta/abis 0.0.1 → 0.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.
Files changed (65) hide show
  1. package/dist/aave/index.d.ts +3 -0
  2. package/dist/aave/index.d.ts.map +1 -0
  3. package/dist/aave/index.js +2 -0
  4. package/dist/aave/pool.d.ts +1657 -0
  5. package/dist/aave/pool.d.ts.map +1 -0
  6. package/dist/aave/pool.js +883 -0
  7. package/dist/aave/weth-gateway.d.ts +189 -0
  8. package/dist/aave/weth-gateway.d.ts.map +1 -0
  9. package/dist/aave/weth-gateway.js +114 -0
  10. package/dist/compound-v2/c-ether.d.ts +1032 -0
  11. package/dist/compound-v2/c-ether.d.ts.map +1 -0
  12. package/dist/compound-v2/c-ether.js +615 -0
  13. package/dist/compound-v2/comptroller.d.ts +1419 -0
  14. package/dist/compound-v2/comptroller.d.ts.map +1 -0
  15. package/dist/compound-v2/comptroller.js +789 -0
  16. package/dist/compound-v2/index.d.ts +3 -0
  17. package/dist/compound-v2/index.d.ts.map +1 -0
  18. package/dist/compound-v2/index.js +2 -0
  19. package/dist/compound-v3/comet.d.ts +1505 -0
  20. package/dist/compound-v3/comet.d.ts.map +1 -0
  21. package/dist/compound-v3/comet.js +790 -0
  22. package/dist/compound-v3/index.d.ts +2 -0
  23. package/dist/compound-v3/index.d.ts.map +1 -0
  24. package/dist/compound-v3/index.js +1 -0
  25. package/dist/erc20/index.d.ts +2 -0
  26. package/dist/erc20/index.d.ts.map +1 -0
  27. package/dist/erc20/index.js +1 -0
  28. package/dist/index.d.ts +8 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +7 -0
  31. package/dist/morpho/blue.d.ts +1193 -0
  32. package/dist/morpho/blue.d.ts.map +1 -0
  33. package/dist/morpho/blue.js +612 -0
  34. package/dist/morpho/index.d.ts +3 -0
  35. package/dist/morpho/index.d.ts.map +1 -0
  36. package/{src/morpho/index.ts → dist/morpho/index.js} +2 -2
  37. package/dist/morpho/lens.d.ts +128 -0
  38. package/dist/morpho/lens.d.ts.map +1 -0
  39. package/dist/morpho/lens.js +129 -0
  40. package/dist/permissions/index.d.ts +566 -0
  41. package/dist/permissions/index.d.ts.map +1 -0
  42. package/dist/permissions/index.js +715 -0
  43. package/dist/silo-v2/index.d.ts +2 -0
  44. package/dist/silo-v2/index.d.ts.map +1 -0
  45. package/dist/silo-v2/index.js +1 -0
  46. package/dist/silo-v2/silo.d.ts +1980 -0
  47. package/dist/silo-v2/silo.d.ts.map +1 -0
  48. package/dist/silo-v2/silo.js +1031 -0
  49. package/package.json +12 -5
  50. package/src/aave/index.ts +0 -2
  51. package/src/aave/pool.ts +0 -883
  52. package/src/aave/weth-gateway.ts +0 -114
  53. package/src/compound-v2/c-ether.ts +0 -615
  54. package/src/compound-v2/comptroller.ts +0 -789
  55. package/src/compound-v2/index.ts +0 -2
  56. package/src/compound-v3/comet.ts +0 -790
  57. package/src/compound-v3/index.ts +0 -1
  58. package/src/erc20/index.ts +0 -1
  59. package/src/index.ts +0 -10
  60. package/src/morpho/blue.ts +0 -612
  61. package/src/morpho/lens.ts +0 -129
  62. package/src/permissions/index.ts +0 -718
  63. package/src/silo-v2/index.ts +0 -1
  64. package/src/silo-v2/silo.ts +0 -1031
  65. package/tsconfig.json +0 -20
@@ -0,0 +1,715 @@
1
+ export const Eip2612Abi = [
2
+ {
3
+ constant: true,
4
+ inputs: [
5
+ {
6
+ name: 'owner',
7
+ type: 'address',
8
+ },
9
+ ],
10
+ name: 'nonces',
11
+ outputs: [
12
+ {
13
+ name: '',
14
+ type: 'uint256',
15
+ },
16
+ ],
17
+ payable: false,
18
+ stateMutability: 'view',
19
+ type: 'function',
20
+ },
21
+ {
22
+ constant: true,
23
+ inputs: [
24
+ {
25
+ name: 'owner',
26
+ type: 'address',
27
+ },
28
+ ],
29
+ name: 'userNonce',
30
+ outputs: [
31
+ {
32
+ name: '',
33
+ type: 'uint256',
34
+ },
35
+ ],
36
+ payable: false,
37
+ stateMutability: 'view',
38
+ type: 'function',
39
+ },
40
+ {
41
+ constant: true,
42
+ inputs: [
43
+ {
44
+ name: 'owner',
45
+ type: 'address',
46
+ },
47
+ ],
48
+ name: '_nonces',
49
+ outputs: [
50
+ {
51
+ name: '',
52
+ type: 'uint256',
53
+ },
54
+ ],
55
+ payable: false,
56
+ stateMutability: 'view',
57
+ type: 'function',
58
+ },
59
+ {
60
+ constant: true,
61
+ inputs: [
62
+ {
63
+ name: 'user',
64
+ type: 'address',
65
+ },
66
+ ],
67
+ name: 'getNonce',
68
+ outputs: [
69
+ {
70
+ name: 'nonce',
71
+ type: 'uint256',
72
+ },
73
+ ],
74
+ payable: false,
75
+ stateMutability: 'view',
76
+ type: 'function',
77
+ },
78
+ {
79
+ constant: true,
80
+ inputs: [],
81
+ name: 'DOMAIN_SEPARATOR',
82
+ outputs: [
83
+ {
84
+ name: '',
85
+ type: 'bytes32',
86
+ },
87
+ ],
88
+ payable: false,
89
+ stateMutability: 'view',
90
+ type: 'function',
91
+ },
92
+ {
93
+ inputs: [],
94
+ name: 'eip712Domain',
95
+ outputs: [
96
+ {
97
+ internalType: 'bytes1',
98
+ name: '_fields',
99
+ type: 'bytes1',
100
+ },
101
+ {
102
+ internalType: 'string',
103
+ name: '_name',
104
+ type: 'string',
105
+ },
106
+ {
107
+ internalType: 'string',
108
+ name: '_version',
109
+ type: 'string',
110
+ },
111
+ {
112
+ internalType: 'uint256',
113
+ name: '_chainId',
114
+ type: 'uint256',
115
+ },
116
+ {
117
+ internalType: 'address',
118
+ name: '_verifyingContract',
119
+ type: 'address',
120
+ },
121
+ {
122
+ internalType: 'bytes32',
123
+ name: '_salt',
124
+ type: 'bytes32',
125
+ },
126
+ {
127
+ internalType: 'uint256[]',
128
+ name: '_extensions',
129
+ type: 'uint256[]',
130
+ },
131
+ ],
132
+ stateMutability: 'view',
133
+ type: 'function',
134
+ },
135
+ {
136
+ inputs: [],
137
+ name: 'ERC712_VERSION',
138
+ outputs: [
139
+ {
140
+ internalType: 'string',
141
+ name: '',
142
+ type: 'string',
143
+ },
144
+ ],
145
+ stateMutability: 'view',
146
+ type: 'function',
147
+ },
148
+ {
149
+ inputs: [],
150
+ name: 'version',
151
+ outputs: [
152
+ {
153
+ internalType: 'string',
154
+ name: '',
155
+ type: 'string',
156
+ },
157
+ ],
158
+ stateMutability: 'view',
159
+ type: 'function',
160
+ },
161
+ ];
162
+ export const Permit2Abi = [
163
+ {
164
+ inputs: [
165
+ {
166
+ internalType: 'address',
167
+ name: '',
168
+ type: 'address',
169
+ },
170
+ {
171
+ internalType: 'address',
172
+ name: '',
173
+ type: 'address',
174
+ },
175
+ {
176
+ internalType: 'address',
177
+ name: '',
178
+ type: 'address',
179
+ },
180
+ ],
181
+ name: 'allowance',
182
+ outputs: [
183
+ {
184
+ internalType: 'uint160',
185
+ name: 'amount',
186
+ type: 'uint160',
187
+ },
188
+ {
189
+ internalType: 'uint48',
190
+ name: 'expiration',
191
+ type: 'uint48',
192
+ },
193
+ {
194
+ internalType: 'uint48',
195
+ name: 'nonce',
196
+ type: 'uint48',
197
+ },
198
+ ],
199
+ stateMutability: 'view',
200
+ type: 'function',
201
+ },
202
+ {
203
+ inputs: [
204
+ {
205
+ internalType: 'address',
206
+ name: 'owner',
207
+ type: 'address',
208
+ },
209
+ {
210
+ components: [
211
+ {
212
+ components: [
213
+ {
214
+ internalType: 'address',
215
+ name: 'token',
216
+ type: 'address',
217
+ },
218
+ {
219
+ internalType: 'uint160',
220
+ name: 'amount',
221
+ type: 'uint160',
222
+ },
223
+ {
224
+ internalType: 'uint48',
225
+ name: 'expiration',
226
+ type: 'uint48',
227
+ },
228
+ {
229
+ internalType: 'uint48',
230
+ name: 'nonce',
231
+ type: 'uint48',
232
+ },
233
+ ],
234
+ internalType: 'struct IAllowanceTransfer.PermitDetails',
235
+ name: 'details',
236
+ type: 'tuple',
237
+ },
238
+ {
239
+ internalType: 'address',
240
+ name: 'spender',
241
+ type: 'address',
242
+ },
243
+ {
244
+ internalType: 'uint256',
245
+ name: 'sigDeadline',
246
+ type: 'uint256',
247
+ },
248
+ ],
249
+ internalType: 'struct IAllowanceTransfer.PermitSingle',
250
+ name: 'permitSingle',
251
+ type: 'tuple',
252
+ },
253
+ {
254
+ internalType: 'bytes',
255
+ name: 'signature',
256
+ type: 'bytes',
257
+ },
258
+ ],
259
+ name: 'permit',
260
+ outputs: [],
261
+ stateMutability: 'nonpayable',
262
+ type: 'function',
263
+ },
264
+ {
265
+ inputs: [
266
+ { internalType: 'address', name: 'from', type: 'address' },
267
+ { internalType: 'address', name: 'to', type: 'address' },
268
+ { internalType: 'uint160', name: 'amount', type: 'uint160' },
269
+ { internalType: 'address', name: 'token', type: 'address' },
270
+ ],
271
+ name: 'transferFrom',
272
+ outputs: [],
273
+ stateMutability: 'nonpayable',
274
+ type: 'function',
275
+ },
276
+ ];
277
+ export const Erc20Abi = [
278
+ {
279
+ constant: true,
280
+ inputs: [],
281
+ name: 'name',
282
+ outputs: [
283
+ {
284
+ name: '',
285
+ type: 'string',
286
+ },
287
+ ],
288
+ payable: false,
289
+ stateMutability: 'view',
290
+ type: 'function',
291
+ },
292
+ {
293
+ constant: false,
294
+ inputs: [
295
+ {
296
+ name: '_spender',
297
+ type: 'address',
298
+ },
299
+ {
300
+ name: '_value',
301
+ type: 'uint256',
302
+ },
303
+ ],
304
+ name: 'approve',
305
+ outputs: [
306
+ {
307
+ name: '',
308
+ type: 'bool',
309
+ },
310
+ ],
311
+ payable: false,
312
+ stateMutability: 'nonpayable',
313
+ type: 'function',
314
+ },
315
+ {
316
+ constant: true,
317
+ inputs: [],
318
+ name: 'totalSupply',
319
+ outputs: [
320
+ {
321
+ name: '',
322
+ type: 'uint256',
323
+ },
324
+ ],
325
+ payable: false,
326
+ stateMutability: 'view',
327
+ type: 'function',
328
+ },
329
+ {
330
+ constant: false,
331
+ inputs: [
332
+ {
333
+ name: '_from',
334
+ type: 'address',
335
+ },
336
+ {
337
+ name: '_to',
338
+ type: 'address',
339
+ },
340
+ {
341
+ name: '_value',
342
+ type: 'uint256',
343
+ },
344
+ ],
345
+ name: 'transferFrom',
346
+ outputs: [
347
+ {
348
+ name: '',
349
+ type: 'bool',
350
+ },
351
+ ],
352
+ payable: false,
353
+ stateMutability: 'nonpayable',
354
+ type: 'function',
355
+ },
356
+ {
357
+ constant: true,
358
+ inputs: [],
359
+ name: 'decimals',
360
+ outputs: [
361
+ {
362
+ name: '',
363
+ type: 'uint8',
364
+ },
365
+ ],
366
+ payable: false,
367
+ stateMutability: 'view',
368
+ type: 'function',
369
+ },
370
+ {
371
+ constant: true,
372
+ inputs: [
373
+ {
374
+ name: '_owner',
375
+ type: 'address',
376
+ },
377
+ ],
378
+ name: 'balanceOf',
379
+ outputs: [
380
+ {
381
+ name: 'balance',
382
+ type: 'uint256',
383
+ },
384
+ ],
385
+ payable: false,
386
+ stateMutability: 'view',
387
+ type: 'function',
388
+ },
389
+ {
390
+ constant: true,
391
+ inputs: [],
392
+ name: 'symbol',
393
+ outputs: [
394
+ {
395
+ name: '',
396
+ type: 'string',
397
+ },
398
+ ],
399
+ payable: false,
400
+ stateMutability: 'view',
401
+ type: 'function',
402
+ },
403
+ {
404
+ constant: false,
405
+ inputs: [
406
+ {
407
+ name: '_to',
408
+ type: 'address',
409
+ },
410
+ {
411
+ name: '_value',
412
+ type: 'uint256',
413
+ },
414
+ ],
415
+ name: 'transfer',
416
+ outputs: [
417
+ {
418
+ name: '',
419
+ type: 'bool',
420
+ },
421
+ ],
422
+ payable: false,
423
+ stateMutability: 'nonpayable',
424
+ type: 'function',
425
+ },
426
+ {
427
+ constant: true,
428
+ inputs: [
429
+ {
430
+ name: '_owner',
431
+ type: 'address',
432
+ },
433
+ {
434
+ name: '_spender',
435
+ type: 'address',
436
+ },
437
+ ],
438
+ name: 'allowance',
439
+ outputs: [
440
+ {
441
+ name: '',
442
+ type: 'uint256',
443
+ },
444
+ ],
445
+ payable: false,
446
+ stateMutability: 'view',
447
+ type: 'function',
448
+ },
449
+ {
450
+ payable: true,
451
+ stateMutability: 'payable',
452
+ type: 'fallback',
453
+ },
454
+ {
455
+ anonymous: false,
456
+ inputs: [
457
+ {
458
+ indexed: true,
459
+ name: 'owner',
460
+ type: 'address',
461
+ },
462
+ {
463
+ indexed: true,
464
+ name: 'spender',
465
+ type: 'address',
466
+ },
467
+ {
468
+ indexed: false,
469
+ name: 'value',
470
+ type: 'uint256',
471
+ },
472
+ ],
473
+ name: 'Approval',
474
+ type: 'event',
475
+ },
476
+ {
477
+ anonymous: false,
478
+ inputs: [
479
+ {
480
+ indexed: true,
481
+ name: 'from',
482
+ type: 'address',
483
+ },
484
+ {
485
+ indexed: true,
486
+ name: 'to',
487
+ type: 'address',
488
+ },
489
+ {
490
+ indexed: false,
491
+ name: 'value',
492
+ type: 'uint256',
493
+ },
494
+ ],
495
+ name: 'Transfer',
496
+ type: 'event',
497
+ },
498
+ {
499
+ inputs: [
500
+ {
501
+ internalType: 'address',
502
+ name: 'owner',
503
+ type: 'address',
504
+ },
505
+ {
506
+ internalType: 'address',
507
+ name: 'spender',
508
+ type: 'address',
509
+ },
510
+ {
511
+ internalType: 'uint256',
512
+ name: 'value',
513
+ type: 'uint256',
514
+ },
515
+ {
516
+ internalType: 'uint256',
517
+ name: 'deadline',
518
+ type: 'uint256',
519
+ },
520
+ {
521
+ internalType: 'uint8',
522
+ name: 'v',
523
+ type: 'uint8',
524
+ },
525
+ {
526
+ internalType: 'bytes32',
527
+ name: 'r',
528
+ type: 'bytes32',
529
+ },
530
+ {
531
+ internalType: 'bytes32',
532
+ name: 's',
533
+ type: 'bytes32',
534
+ },
535
+ ],
536
+ name: 'permit',
537
+ outputs: [],
538
+ stateMutability: 'nonpayable',
539
+ type: 'function',
540
+ },
541
+ {
542
+ inputs: [
543
+ {
544
+ internalType: 'bytes32',
545
+ name: 'role',
546
+ type: 'bytes32',
547
+ },
548
+ {
549
+ internalType: 'address',
550
+ name: 'account',
551
+ type: 'address',
552
+ },
553
+ ],
554
+ name: 'renounceRole',
555
+ outputs: [],
556
+ stateMutability: 'nonpayable',
557
+ type: 'function',
558
+ },
559
+ {
560
+ inputs: [
561
+ {
562
+ internalType: 'bytes32',
563
+ name: 'role',
564
+ type: 'bytes32',
565
+ },
566
+ {
567
+ internalType: 'address',
568
+ name: 'account',
569
+ type: 'address',
570
+ },
571
+ ],
572
+ name: 'revokeRole',
573
+ outputs: [],
574
+ stateMutability: 'nonpayable',
575
+ type: 'function',
576
+ },
577
+ ];
578
+ export const VenusComptrollerAbi = [
579
+ {
580
+ inputs: [
581
+ { internalType: 'address', name: '', type: 'address' },
582
+ { internalType: 'address', name: '', type: 'address' },
583
+ ],
584
+ name: 'approvedDelegates',
585
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
586
+ stateMutability: 'view',
587
+ type: 'function',
588
+ },
589
+ {
590
+ inputs: [],
591
+ name: 'exchangeRateCurrent',
592
+ outputs: [
593
+ {
594
+ internalType: 'uint256',
595
+ name: '',
596
+ type: 'uint256',
597
+ },
598
+ ],
599
+ stateMutability: 'nonpayable',
600
+ type: 'function',
601
+ },
602
+ ];
603
+ // minimalistic abi for fetching permits and allowances
604
+ export const LenderPermitAbi = [
605
+ {
606
+ inputs: [
607
+ {
608
+ internalType: 'address',
609
+ name: 'fromUser',
610
+ type: 'address',
611
+ },
612
+ {
613
+ internalType: 'address',
614
+ name: 'toUser',
615
+ type: 'address',
616
+ },
617
+ ],
618
+ name: 'borrowAllowance',
619
+ outputs: [
620
+ {
621
+ internalType: 'uint256',
622
+ name: '',
623
+ type: 'uint256',
624
+ },
625
+ ],
626
+ stateMutability: 'view',
627
+ type: 'function',
628
+ },
629
+ {
630
+ inputs: [
631
+ {
632
+ internalType: 'uint256',
633
+ name: 'posId',
634
+ type: 'uint256',
635
+ },
636
+ ],
637
+ name: 'getApproved',
638
+ outputs: [
639
+ {
640
+ internalType: 'address',
641
+ name: '',
642
+ type: 'address',
643
+ },
644
+ ],
645
+ stateMutability: 'view',
646
+ type: 'function',
647
+ },
648
+ {
649
+ inputs: [
650
+ {
651
+ internalType: 'address',
652
+ name: '',
653
+ type: 'address',
654
+ },
655
+ {
656
+ internalType: 'address',
657
+ name: '',
658
+ type: 'address',
659
+ },
660
+ ],
661
+ name: 'isAllowed',
662
+ outputs: [
663
+ {
664
+ internalType: 'bool',
665
+ name: '',
666
+ type: 'bool',
667
+ },
668
+ ],
669
+ stateMutability: 'view',
670
+ type: 'function',
671
+ },
672
+ {
673
+ inputs: [
674
+ {
675
+ internalType: 'address',
676
+ name: '',
677
+ type: 'address',
678
+ },
679
+ ],
680
+ name: 'nonce',
681
+ outputs: [
682
+ {
683
+ internalType: 'uint256',
684
+ name: '',
685
+ type: 'uint256',
686
+ },
687
+ ],
688
+ stateMutability: 'view',
689
+ type: 'function',
690
+ },
691
+ {
692
+ inputs: [
693
+ {
694
+ internalType: 'address',
695
+ name: '',
696
+ type: 'address',
697
+ },
698
+ {
699
+ internalType: 'address',
700
+ name: '',
701
+ type: 'address',
702
+ },
703
+ ],
704
+ name: 'isAuthorized',
705
+ outputs: [
706
+ {
707
+ internalType: 'bool',
708
+ name: '',
709
+ type: 'bool',
710
+ },
711
+ ],
712
+ stateMutability: 'view',
713
+ type: 'function',
714
+ },
715
+ ];
@@ -0,0 +1,2 @@
1
+ export { SiloV2Abi } from './silo.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/silo-v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export { SiloV2Abi } from './silo.js';