@1delta/abis 0.0.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/package.json +19 -0
- package/src/aave/index.ts +2 -0
- package/src/aave/pool.ts +883 -0
- package/src/aave/weth-gateway.ts +114 -0
- package/src/compound-v2/c-ether.ts +615 -0
- package/src/compound-v2/comptroller.ts +789 -0
- package/src/compound-v2/index.ts +2 -0
- package/src/compound-v3/comet.ts +790 -0
- package/src/compound-v3/index.ts +1 -0
- package/src/erc20/index.ts +1 -0
- package/src/index.ts +10 -0
- package/src/morpho/blue.ts +612 -0
- package/src/morpho/index.ts +2 -0
- package/src/morpho/lens.ts +129 -0
- package/src/permissions/index.ts +718 -0
- package/src/silo-v2/index.ts +1 -0
- package/src/silo-v2/silo.ts +1031 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export const AaveWethGatewayAbi = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [{ internalType: 'address', name: 'weth', type: 'address' }],
|
|
4
|
+
stateMutability: 'nonpayable',
|
|
5
|
+
type: 'constructor',
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
anonymous: false,
|
|
9
|
+
inputs: [
|
|
10
|
+
{ indexed: true, internalType: 'address', name: 'previousOwner', type: 'address' },
|
|
11
|
+
{ indexed: true, internalType: 'address', name: 'newOwner', type: 'address' },
|
|
12
|
+
],
|
|
13
|
+
name: 'OwnershipTransferred',
|
|
14
|
+
type: 'event',
|
|
15
|
+
},
|
|
16
|
+
{ stateMutability: 'payable', type: 'fallback' },
|
|
17
|
+
{
|
|
18
|
+
inputs: [{ internalType: 'address', name: 'lendingPool', type: 'address' }],
|
|
19
|
+
name: 'authorizeLendingPool',
|
|
20
|
+
outputs: [],
|
|
21
|
+
stateMutability: 'nonpayable',
|
|
22
|
+
type: 'function',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
inputs: [
|
|
26
|
+
{ internalType: 'address', name: 'lendingPool', type: 'address' },
|
|
27
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
28
|
+
{ internalType: 'uint256', name: 'interesRateMode', type: 'uint256' },
|
|
29
|
+
{ internalType: 'uint16', name: 'referralCode', type: 'uint16' },
|
|
30
|
+
],
|
|
31
|
+
name: 'borrowETH',
|
|
32
|
+
outputs: [],
|
|
33
|
+
stateMutability: 'nonpayable',
|
|
34
|
+
type: 'function',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
inputs: [
|
|
38
|
+
{ internalType: 'address', name: 'lendingPool', type: 'address' },
|
|
39
|
+
{ internalType: 'address', name: 'onBehalfOf', type: 'address' },
|
|
40
|
+
{ internalType: 'uint16', name: 'referralCode', type: 'uint16' },
|
|
41
|
+
],
|
|
42
|
+
name: 'depositETH',
|
|
43
|
+
outputs: [],
|
|
44
|
+
stateMutability: 'payable',
|
|
45
|
+
type: 'function',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
inputs: [
|
|
49
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
50
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
51
|
+
],
|
|
52
|
+
name: 'emergencyEtherTransfer',
|
|
53
|
+
outputs: [],
|
|
54
|
+
stateMutability: 'nonpayable',
|
|
55
|
+
type: 'function',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
inputs: [
|
|
59
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
|
60
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
61
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
62
|
+
],
|
|
63
|
+
name: 'emergencyTokenTransfer',
|
|
64
|
+
outputs: [],
|
|
65
|
+
stateMutability: 'nonpayable',
|
|
66
|
+
type: 'function',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
inputs: [],
|
|
70
|
+
name: 'getWETHAddress',
|
|
71
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
72
|
+
stateMutability: 'view',
|
|
73
|
+
type: 'function',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
inputs: [],
|
|
77
|
+
name: 'owner',
|
|
78
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
79
|
+
stateMutability: 'view',
|
|
80
|
+
type: 'function',
|
|
81
|
+
},
|
|
82
|
+
{ inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function' },
|
|
83
|
+
{
|
|
84
|
+
inputs: [
|
|
85
|
+
{ internalType: 'address', name: 'lendingPool', type: 'address' },
|
|
86
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
87
|
+
{ internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
|
88
|
+
{ internalType: 'address', name: 'onBehalfOf', type: 'address' },
|
|
89
|
+
],
|
|
90
|
+
name: 'repayETH',
|
|
91
|
+
outputs: [],
|
|
92
|
+
stateMutability: 'payable',
|
|
93
|
+
type: 'function',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
|
|
97
|
+
name: 'transferOwnership',
|
|
98
|
+
outputs: [],
|
|
99
|
+
stateMutability: 'nonpayable',
|
|
100
|
+
type: 'function',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
inputs: [
|
|
104
|
+
{ internalType: 'address', name: 'lendingPool', type: 'address' },
|
|
105
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
106
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
107
|
+
],
|
|
108
|
+
name: 'withdrawETH',
|
|
109
|
+
outputs: [],
|
|
110
|
+
stateMutability: 'nonpayable',
|
|
111
|
+
type: 'function',
|
|
112
|
+
},
|
|
113
|
+
{ stateMutability: 'payable', type: 'receive' },
|
|
114
|
+
] as const
|