@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
@@ -1,718 +0,0 @@
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
- ] as const
162
-
163
- export const Permit2Abi = [
164
- {
165
- inputs: [
166
- {
167
- internalType: 'address',
168
- name: '',
169
- type: 'address',
170
- },
171
- {
172
- internalType: 'address',
173
- name: '',
174
- type: 'address',
175
- },
176
- {
177
- internalType: 'address',
178
- name: '',
179
- type: 'address',
180
- },
181
- ],
182
- name: 'allowance',
183
- outputs: [
184
- {
185
- internalType: 'uint160',
186
- name: 'amount',
187
- type: 'uint160',
188
- },
189
- {
190
- internalType: 'uint48',
191
- name: 'expiration',
192
- type: 'uint48',
193
- },
194
- {
195
- internalType: 'uint48',
196
- name: 'nonce',
197
- type: 'uint48',
198
- },
199
- ],
200
- stateMutability: 'view',
201
- type: 'function',
202
- },
203
- {
204
- inputs: [
205
- {
206
- internalType: 'address',
207
- name: 'owner',
208
- type: 'address',
209
- },
210
- {
211
- components: [
212
- {
213
- components: [
214
- {
215
- internalType: 'address',
216
- name: 'token',
217
- type: 'address',
218
- },
219
- {
220
- internalType: 'uint160',
221
- name: 'amount',
222
- type: 'uint160',
223
- },
224
- {
225
- internalType: 'uint48',
226
- name: 'expiration',
227
- type: 'uint48',
228
- },
229
- {
230
- internalType: 'uint48',
231
- name: 'nonce',
232
- type: 'uint48',
233
- },
234
- ],
235
- internalType: 'struct IAllowanceTransfer.PermitDetails',
236
- name: 'details',
237
- type: 'tuple',
238
- },
239
- {
240
- internalType: 'address',
241
- name: 'spender',
242
- type: 'address',
243
- },
244
- {
245
- internalType: 'uint256',
246
- name: 'sigDeadline',
247
- type: 'uint256',
248
- },
249
- ],
250
- internalType: 'struct IAllowanceTransfer.PermitSingle',
251
- name: 'permitSingle',
252
- type: 'tuple',
253
- },
254
- {
255
- internalType: 'bytes',
256
- name: 'signature',
257
- type: 'bytes',
258
- },
259
- ],
260
- name: 'permit',
261
- outputs: [],
262
- stateMutability: 'nonpayable',
263
- type: 'function',
264
- },
265
- {
266
- inputs: [
267
- { internalType: 'address', name: 'from', type: 'address' },
268
- { internalType: 'address', name: 'to', type: 'address' },
269
- { internalType: 'uint160', name: 'amount', type: 'uint160' },
270
- { internalType: 'address', name: 'token', type: 'address' },
271
- ],
272
- name: 'transferFrom',
273
- outputs: [],
274
- stateMutability: 'nonpayable',
275
- type: 'function',
276
- },
277
- ] as const
278
-
279
- export const Erc20Abi = [
280
- {
281
- constant: true,
282
- inputs: [],
283
- name: 'name',
284
- outputs: [
285
- {
286
- name: '',
287
- type: 'string',
288
- },
289
- ],
290
- payable: false,
291
- stateMutability: 'view',
292
- type: 'function',
293
- },
294
- {
295
- constant: false,
296
- inputs: [
297
- {
298
- name: '_spender',
299
- type: 'address',
300
- },
301
- {
302
- name: '_value',
303
- type: 'uint256',
304
- },
305
- ],
306
- name: 'approve',
307
- outputs: [
308
- {
309
- name: '',
310
- type: 'bool',
311
- },
312
- ],
313
- payable: false,
314
- stateMutability: 'nonpayable',
315
- type: 'function',
316
- },
317
- {
318
- constant: true,
319
- inputs: [],
320
- name: 'totalSupply',
321
- outputs: [
322
- {
323
- name: '',
324
- type: 'uint256',
325
- },
326
- ],
327
- payable: false,
328
- stateMutability: 'view',
329
- type: 'function',
330
- },
331
- {
332
- constant: false,
333
- inputs: [
334
- {
335
- name: '_from',
336
- type: 'address',
337
- },
338
- {
339
- name: '_to',
340
- type: 'address',
341
- },
342
- {
343
- name: '_value',
344
- type: 'uint256',
345
- },
346
- ],
347
- name: 'transferFrom',
348
- outputs: [
349
- {
350
- name: '',
351
- type: 'bool',
352
- },
353
- ],
354
- payable: false,
355
- stateMutability: 'nonpayable',
356
- type: 'function',
357
- },
358
- {
359
- constant: true,
360
- inputs: [],
361
- name: 'decimals',
362
- outputs: [
363
- {
364
- name: '',
365
- type: 'uint8',
366
- },
367
- ],
368
- payable: false,
369
- stateMutability: 'view',
370
- type: 'function',
371
- },
372
- {
373
- constant: true,
374
- inputs: [
375
- {
376
- name: '_owner',
377
- type: 'address',
378
- },
379
- ],
380
- name: 'balanceOf',
381
- outputs: [
382
- {
383
- name: 'balance',
384
- type: 'uint256',
385
- },
386
- ],
387
- payable: false,
388
- stateMutability: 'view',
389
- type: 'function',
390
- },
391
- {
392
- constant: true,
393
- inputs: [],
394
- name: 'symbol',
395
- outputs: [
396
- {
397
- name: '',
398
- type: 'string',
399
- },
400
- ],
401
- payable: false,
402
- stateMutability: 'view',
403
- type: 'function',
404
- },
405
- {
406
- constant: false,
407
- inputs: [
408
- {
409
- name: '_to',
410
- type: 'address',
411
- },
412
- {
413
- name: '_value',
414
- type: 'uint256',
415
- },
416
- ],
417
- name: 'transfer',
418
- outputs: [
419
- {
420
- name: '',
421
- type: 'bool',
422
- },
423
- ],
424
- payable: false,
425
- stateMutability: 'nonpayable',
426
- type: 'function',
427
- },
428
- {
429
- constant: true,
430
- inputs: [
431
- {
432
- name: '_owner',
433
- type: 'address',
434
- },
435
- {
436
- name: '_spender',
437
- type: 'address',
438
- },
439
- ],
440
- name: 'allowance',
441
- outputs: [
442
- {
443
- name: '',
444
- type: 'uint256',
445
- },
446
- ],
447
- payable: false,
448
- stateMutability: 'view',
449
- type: 'function',
450
- },
451
- {
452
- payable: true,
453
- stateMutability: 'payable',
454
- type: 'fallback',
455
- },
456
- {
457
- anonymous: false,
458
- inputs: [
459
- {
460
- indexed: true,
461
- name: 'owner',
462
- type: 'address',
463
- },
464
- {
465
- indexed: true,
466
- name: 'spender',
467
- type: 'address',
468
- },
469
- {
470
- indexed: false,
471
- name: 'value',
472
- type: 'uint256',
473
- },
474
- ],
475
- name: 'Approval',
476
- type: 'event',
477
- },
478
- {
479
- anonymous: false,
480
- inputs: [
481
- {
482
- indexed: true,
483
- name: 'from',
484
- type: 'address',
485
- },
486
- {
487
- indexed: true,
488
- name: 'to',
489
- type: 'address',
490
- },
491
- {
492
- indexed: false,
493
- name: 'value',
494
- type: 'uint256',
495
- },
496
- ],
497
- name: 'Transfer',
498
- type: 'event',
499
- },
500
- {
501
- inputs: [
502
- {
503
- internalType: 'address',
504
- name: 'owner',
505
- type: 'address',
506
- },
507
- {
508
- internalType: 'address',
509
- name: 'spender',
510
- type: 'address',
511
- },
512
- {
513
- internalType: 'uint256',
514
- name: 'value',
515
- type: 'uint256',
516
- },
517
- {
518
- internalType: 'uint256',
519
- name: 'deadline',
520
- type: 'uint256',
521
- },
522
- {
523
- internalType: 'uint8',
524
- name: 'v',
525
- type: 'uint8',
526
- },
527
- {
528
- internalType: 'bytes32',
529
- name: 'r',
530
- type: 'bytes32',
531
- },
532
- {
533
- internalType: 'bytes32',
534
- name: 's',
535
- type: 'bytes32',
536
- },
537
- ],
538
- name: 'permit',
539
- outputs: [],
540
- stateMutability: 'nonpayable',
541
- type: 'function',
542
- },
543
- {
544
- inputs: [
545
- {
546
- internalType: 'bytes32',
547
- name: 'role',
548
- type: 'bytes32',
549
- },
550
- {
551
- internalType: 'address',
552
- name: 'account',
553
- type: 'address',
554
- },
555
- ],
556
- name: 'renounceRole',
557
- outputs: [],
558
- stateMutability: 'nonpayable',
559
- type: 'function',
560
- },
561
- {
562
- inputs: [
563
- {
564
- internalType: 'bytes32',
565
- name: 'role',
566
- type: 'bytes32',
567
- },
568
- {
569
- internalType: 'address',
570
- name: 'account',
571
- type: 'address',
572
- },
573
- ],
574
- name: 'revokeRole',
575
- outputs: [],
576
- stateMutability: 'nonpayable',
577
- type: 'function',
578
- },
579
- ] as const
580
-
581
- export const VenusComptrollerAbi = [
582
- {
583
- inputs: [
584
- { internalType: 'address', name: '', type: 'address' },
585
- { internalType: 'address', name: '', type: 'address' },
586
- ],
587
- name: 'approvedDelegates',
588
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
589
- stateMutability: 'view',
590
- type: 'function',
591
- },
592
- {
593
- inputs: [],
594
- name: 'exchangeRateCurrent',
595
- outputs: [
596
- {
597
- internalType: 'uint256',
598
- name: '',
599
- type: 'uint256',
600
- },
601
- ],
602
- stateMutability: 'nonpayable',
603
- type: 'function',
604
- },
605
- ] as const
606
- // minimalistic abi for fetching permits and allowances
607
- export const LenderPermitAbi = [
608
- {
609
- inputs: [
610
- {
611
- internalType: 'address',
612
- name: 'fromUser',
613
- type: 'address',
614
- },
615
- {
616
- internalType: 'address',
617
- name: 'toUser',
618
- type: 'address',
619
- },
620
- ],
621
- name: 'borrowAllowance',
622
- outputs: [
623
- {
624
- internalType: 'uint256',
625
- name: '',
626
- type: 'uint256',
627
- },
628
- ],
629
- stateMutability: 'view',
630
- type: 'function',
631
- },
632
- {
633
- inputs: [
634
- {
635
- internalType: 'uint256',
636
- name: 'posId',
637
- type: 'uint256',
638
- },
639
- ],
640
- name: 'getApproved',
641
- outputs: [
642
- {
643
- internalType: 'address',
644
- name: '',
645
- type: 'address',
646
- },
647
- ],
648
- stateMutability: 'view',
649
- type: 'function',
650
- },
651
- {
652
- inputs: [
653
- {
654
- internalType: 'address',
655
- name: '',
656
- type: 'address',
657
- },
658
- {
659
- internalType: 'address',
660
- name: '',
661
- type: 'address',
662
- },
663
- ],
664
- name: 'isAllowed',
665
- outputs: [
666
- {
667
- internalType: 'bool',
668
- name: '',
669
- type: 'bool',
670
- },
671
- ],
672
- stateMutability: 'view',
673
- type: 'function',
674
- },
675
- {
676
- inputs: [
677
- {
678
- internalType: 'address',
679
- name: '',
680
- type: 'address',
681
- },
682
- ],
683
- name: 'nonce',
684
- outputs: [
685
- {
686
- internalType: 'uint256',
687
- name: '',
688
- type: 'uint256',
689
- },
690
- ],
691
- stateMutability: 'view',
692
- type: 'function',
693
- },
694
- {
695
- inputs: [
696
- {
697
- internalType: 'address',
698
- name: '',
699
- type: 'address',
700
- },
701
- {
702
- internalType: 'address',
703
- name: '',
704
- type: 'address',
705
- },
706
- ],
707
- name: 'isAuthorized',
708
- outputs: [
709
- {
710
- internalType: 'bool',
711
- name: '',
712
- type: 'bool',
713
- },
714
- ],
715
- stateMutability: 'view',
716
- type: 'function',
717
- },
718
- ] as const
@@ -1 +0,0 @@
1
- export { SiloV2Abi } from './silo'