@1delta/abis 0.0.9 → 0.0.11
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/dist/aave-v4/hub.d.ts +314 -0
- package/dist/aave-v4/hub.d.ts.map +1 -0
- package/dist/aave-v4/hub.js +188 -0
- package/dist/aave-v4/index.d.ts +8 -0
- package/dist/aave-v4/index.d.ts.map +1 -0
- package/dist/aave-v4/index.js +7 -0
- package/dist/aave-v4/interestRate.d.ts +26 -0
- package/dist/aave-v4/interestRate.d.ts.map +1 -0
- package/dist/aave-v4/interestRate.js +15 -0
- package/dist/aave-v4/nativeGateway.d.ts +107 -0
- package/dist/aave-v4/nativeGateway.d.ts.map +1 -0
- package/dist/aave-v4/nativeGateway.js +72 -0
- package/dist/aave-v4/oracle.d.ts +56 -0
- package/dist/aave-v4/oracle.d.ts.map +1 -0
- package/dist/aave-v4/oracle.js +37 -0
- package/dist/aave-v4/positionManagers.d.ts +346 -0
- package/dist/aave-v4/positionManagers.d.ts.map +1 -0
- package/dist/aave-v4/positionManagers.js +235 -0
- package/dist/aave-v4/spoke.d.ts +317 -0
- package/dist/aave-v4/spoke.d.ts.map +1 -0
- package/dist/aave-v4/spoke.js +220 -0
- package/dist/aave-v4/spokeActions.d.ts +170 -0
- package/dist/aave-v4/spokeActions.d.ts.map +1 -0
- package/dist/aave-v4/spokeActions.js +115 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/permissions/index.d.ts +18 -0
- package/dist/permissions/index.d.ts.map +1 -1
- package/dist/permissions/index.js +24 -0
- package/package.json +4 -2
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
export const AaveV4GiverPMAbi = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [
|
|
4
|
+
{ name: 'spoke', type: 'address' },
|
|
5
|
+
{ name: 'reserveId', type: 'uint256' },
|
|
6
|
+
{ name: 'amount', type: 'uint256' },
|
|
7
|
+
{ name: 'onBehalfOf', type: 'address' },
|
|
8
|
+
],
|
|
9
|
+
name: 'supplyOnBehalfOf',
|
|
10
|
+
outputs: [
|
|
11
|
+
{ name: 'shares', type: 'uint256' },
|
|
12
|
+
{ name: 'assets', type: 'uint256' },
|
|
13
|
+
],
|
|
14
|
+
stateMutability: 'nonpayable',
|
|
15
|
+
type: 'function',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
inputs: [
|
|
19
|
+
{ name: 'spoke', type: 'address' },
|
|
20
|
+
{ name: 'reserveId', type: 'uint256' },
|
|
21
|
+
{ name: 'amount', type: 'uint256' },
|
|
22
|
+
{ name: 'onBehalfOf', type: 'address' },
|
|
23
|
+
],
|
|
24
|
+
name: 'repayOnBehalfOf',
|
|
25
|
+
outputs: [
|
|
26
|
+
{ name: 'shares', type: 'uint256' },
|
|
27
|
+
{ name: 'assets', type: 'uint256' },
|
|
28
|
+
],
|
|
29
|
+
stateMutability: 'nonpayable',
|
|
30
|
+
type: 'function',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
inputs: [
|
|
34
|
+
{ name: 'spoke', type: 'address' },
|
|
35
|
+
{ name: 'reserveId', type: 'uint256' },
|
|
36
|
+
{ name: 'onBehalfOf', type: 'address' },
|
|
37
|
+
{ name: 'value', type: 'uint256' },
|
|
38
|
+
{ name: 'deadline', type: 'uint256' },
|
|
39
|
+
{ name: 'permitV', type: 'uint8' },
|
|
40
|
+
{ name: 'permitR', type: 'bytes32' },
|
|
41
|
+
{ name: 'permitS', type: 'bytes32' },
|
|
42
|
+
],
|
|
43
|
+
name: 'permitReserveUnderlying',
|
|
44
|
+
outputs: [],
|
|
45
|
+
stateMutability: 'nonpayable',
|
|
46
|
+
type: 'function',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
inputs: [{ name: 'data', type: 'bytes[]' }],
|
|
50
|
+
name: 'multicall',
|
|
51
|
+
outputs: [{ name: 'results', type: 'bytes[]' }],
|
|
52
|
+
stateMutability: 'nonpayable',
|
|
53
|
+
type: 'function',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
export const AaveV4TakerPMAbi = [
|
|
57
|
+
{
|
|
58
|
+
inputs: [
|
|
59
|
+
{ name: 'spoke', type: 'address' },
|
|
60
|
+
{ name: 'reserveId', type: 'uint256' },
|
|
61
|
+
{ name: 'spender', type: 'address' },
|
|
62
|
+
{ name: 'amount', type: 'uint256' },
|
|
63
|
+
],
|
|
64
|
+
name: 'approveWithdraw',
|
|
65
|
+
outputs: [],
|
|
66
|
+
stateMutability: 'nonpayable',
|
|
67
|
+
type: 'function',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
inputs: [
|
|
71
|
+
{ name: 'spoke', type: 'address' },
|
|
72
|
+
{ name: 'reserveId', type: 'uint256' },
|
|
73
|
+
{ name: 'spender', type: 'address' },
|
|
74
|
+
{ name: 'amount', type: 'uint256' },
|
|
75
|
+
],
|
|
76
|
+
name: 'approveBorrow',
|
|
77
|
+
outputs: [],
|
|
78
|
+
stateMutability: 'nonpayable',
|
|
79
|
+
type: 'function',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
inputs: [
|
|
83
|
+
{ name: 'spoke', type: 'address' },
|
|
84
|
+
{ name: 'reserveId', type: 'uint256' },
|
|
85
|
+
{ name: 'amount', type: 'uint256' },
|
|
86
|
+
{ name: 'onBehalfOf', type: 'address' },
|
|
87
|
+
],
|
|
88
|
+
name: 'withdrawOnBehalfOf',
|
|
89
|
+
outputs: [
|
|
90
|
+
{ name: 'shares', type: 'uint256' },
|
|
91
|
+
{ name: 'assets', type: 'uint256' },
|
|
92
|
+
],
|
|
93
|
+
stateMutability: 'nonpayable',
|
|
94
|
+
type: 'function',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
inputs: [
|
|
98
|
+
{ name: 'spoke', type: 'address' },
|
|
99
|
+
{ name: 'reserveId', type: 'uint256' },
|
|
100
|
+
{ name: 'amount', type: 'uint256' },
|
|
101
|
+
{ name: 'onBehalfOf', type: 'address' },
|
|
102
|
+
],
|
|
103
|
+
name: 'borrowOnBehalfOf',
|
|
104
|
+
outputs: [
|
|
105
|
+
{ name: 'shares', type: 'uint256' },
|
|
106
|
+
{ name: 'assets', type: 'uint256' },
|
|
107
|
+
],
|
|
108
|
+
stateMutability: 'nonpayable',
|
|
109
|
+
type: 'function',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
inputs: [
|
|
113
|
+
{ name: 'spoke', type: 'address' },
|
|
114
|
+
{ name: 'reserveId', type: 'uint256' },
|
|
115
|
+
{ name: 'owner', type: 'address' },
|
|
116
|
+
],
|
|
117
|
+
name: 'renounceWithdrawAllowance',
|
|
118
|
+
outputs: [],
|
|
119
|
+
stateMutability: 'nonpayable',
|
|
120
|
+
type: 'function',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
inputs: [
|
|
124
|
+
{ name: 'spoke', type: 'address' },
|
|
125
|
+
{ name: 'reserveId', type: 'uint256' },
|
|
126
|
+
{ name: 'owner', type: 'address' },
|
|
127
|
+
],
|
|
128
|
+
name: 'renounceBorrowAllowance',
|
|
129
|
+
outputs: [],
|
|
130
|
+
stateMutability: 'nonpayable',
|
|
131
|
+
type: 'function',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
inputs: [{ name: 'data', type: 'bytes[]' }],
|
|
135
|
+
name: 'multicall',
|
|
136
|
+
outputs: [{ name: 'results', type: 'bytes[]' }],
|
|
137
|
+
stateMutability: 'nonpayable',
|
|
138
|
+
type: 'function',
|
|
139
|
+
},
|
|
140
|
+
];
|
|
141
|
+
export const AaveV4ConfigPMAbi = [
|
|
142
|
+
{
|
|
143
|
+
inputs: [
|
|
144
|
+
{ name: 'spoke', type: 'address' },
|
|
145
|
+
{ name: 'delegatee', type: 'address' },
|
|
146
|
+
{ name: 'status', type: 'bool' },
|
|
147
|
+
],
|
|
148
|
+
name: 'setGlobalPermission',
|
|
149
|
+
outputs: [],
|
|
150
|
+
stateMutability: 'nonpayable',
|
|
151
|
+
type: 'function',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
inputs: [
|
|
155
|
+
{ name: 'spoke', type: 'address' },
|
|
156
|
+
{ name: 'delegatee', type: 'address' },
|
|
157
|
+
{ name: 'status', type: 'bool' },
|
|
158
|
+
],
|
|
159
|
+
name: 'setCanSetUsingAsCollateralPermission',
|
|
160
|
+
outputs: [],
|
|
161
|
+
stateMutability: 'nonpayable',
|
|
162
|
+
type: 'function',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
inputs: [
|
|
166
|
+
{ name: 'spoke', type: 'address' },
|
|
167
|
+
{ name: 'delegatee', type: 'address' },
|
|
168
|
+
{ name: 'status', type: 'bool' },
|
|
169
|
+
],
|
|
170
|
+
name: 'setCanUpdateUserRiskPremiumPermission',
|
|
171
|
+
outputs: [],
|
|
172
|
+
stateMutability: 'nonpayable',
|
|
173
|
+
type: 'function',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
inputs: [
|
|
177
|
+
{ name: 'spoke', type: 'address' },
|
|
178
|
+
{ name: 'delegatee', type: 'address' },
|
|
179
|
+
{ name: 'status', type: 'bool' },
|
|
180
|
+
],
|
|
181
|
+
name: 'setCanUpdateUserDynamicConfigPermission',
|
|
182
|
+
outputs: [],
|
|
183
|
+
stateMutability: 'nonpayable',
|
|
184
|
+
type: 'function',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
inputs: [
|
|
188
|
+
{ name: 'spoke', type: 'address' },
|
|
189
|
+
{ name: 'reserveId', type: 'uint256' },
|
|
190
|
+
{ name: 'usingAsCollateral', type: 'bool' },
|
|
191
|
+
{ name: 'onBehalfOf', type: 'address' },
|
|
192
|
+
],
|
|
193
|
+
name: 'setUsingAsCollateralOnBehalfOf',
|
|
194
|
+
outputs: [],
|
|
195
|
+
stateMutability: 'nonpayable',
|
|
196
|
+
type: 'function',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
inputs: [
|
|
200
|
+
{ name: 'spoke', type: 'address' },
|
|
201
|
+
{ name: 'onBehalfOf', type: 'address' },
|
|
202
|
+
],
|
|
203
|
+
name: 'updateUserRiskPremiumOnBehalfOf',
|
|
204
|
+
outputs: [],
|
|
205
|
+
stateMutability: 'nonpayable',
|
|
206
|
+
type: 'function',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
inputs: [
|
|
210
|
+
{ name: 'spoke', type: 'address' },
|
|
211
|
+
{ name: 'onBehalfOf', type: 'address' },
|
|
212
|
+
],
|
|
213
|
+
name: 'updateUserDynamicConfigOnBehalfOf',
|
|
214
|
+
outputs: [],
|
|
215
|
+
stateMutability: 'nonpayable',
|
|
216
|
+
type: 'function',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
inputs: [
|
|
220
|
+
{ name: 'spoke', type: 'address' },
|
|
221
|
+
{ name: 'delegator', type: 'address' },
|
|
222
|
+
],
|
|
223
|
+
name: 'renounceGlobalPermission',
|
|
224
|
+
outputs: [],
|
|
225
|
+
stateMutability: 'nonpayable',
|
|
226
|
+
type: 'function',
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
inputs: [{ name: 'data', type: 'bytes[]' }],
|
|
230
|
+
name: 'multicall',
|
|
231
|
+
outputs: [{ name: 'results', type: 'bytes[]' }],
|
|
232
|
+
stateMutability: 'nonpayable',
|
|
233
|
+
type: 'function',
|
|
234
|
+
},
|
|
235
|
+
];
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
export declare const AaveV4SpokeAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "getReserveCount";
|
|
4
|
+
readonly outputs: readonly [{
|
|
5
|
+
readonly name: "";
|
|
6
|
+
readonly type: "uint256";
|
|
7
|
+
}];
|
|
8
|
+
readonly stateMutability: "view";
|
|
9
|
+
readonly type: "function";
|
|
10
|
+
}, {
|
|
11
|
+
readonly inputs: readonly [{
|
|
12
|
+
readonly name: "reserveId";
|
|
13
|
+
readonly type: "uint256";
|
|
14
|
+
}];
|
|
15
|
+
readonly name: "getReserve";
|
|
16
|
+
readonly outputs: readonly [{
|
|
17
|
+
readonly components: readonly [{
|
|
18
|
+
readonly name: "underlying";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "hub";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "assetId";
|
|
25
|
+
readonly type: "uint16";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "decimals";
|
|
28
|
+
readonly type: "uint8";
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "collateralRisk";
|
|
31
|
+
readonly type: "uint24";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "flags";
|
|
34
|
+
readonly type: "uint8";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "dynamicConfigKey";
|
|
37
|
+
readonly type: "uint32";
|
|
38
|
+
}];
|
|
39
|
+
readonly name: "";
|
|
40
|
+
readonly type: "tuple";
|
|
41
|
+
}];
|
|
42
|
+
readonly stateMutability: "view";
|
|
43
|
+
readonly type: "function";
|
|
44
|
+
}, {
|
|
45
|
+
readonly inputs: readonly [{
|
|
46
|
+
readonly name: "reserveId";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
}];
|
|
49
|
+
readonly name: "getReserveConfig";
|
|
50
|
+
readonly outputs: readonly [{
|
|
51
|
+
readonly components: readonly [{
|
|
52
|
+
readonly name: "collateralRisk";
|
|
53
|
+
readonly type: "uint24";
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "paused";
|
|
56
|
+
readonly type: "bool";
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "frozen";
|
|
59
|
+
readonly type: "bool";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "borrowable";
|
|
62
|
+
readonly type: "bool";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "receiveSharesEnabled";
|
|
65
|
+
readonly type: "bool";
|
|
66
|
+
}];
|
|
67
|
+
readonly name: "";
|
|
68
|
+
readonly type: "tuple";
|
|
69
|
+
}];
|
|
70
|
+
readonly stateMutability: "view";
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
}, {
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly name: "reserveId";
|
|
75
|
+
readonly type: "uint256";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "dynamicConfigKey";
|
|
78
|
+
readonly type: "uint32";
|
|
79
|
+
}];
|
|
80
|
+
readonly name: "getDynamicReserveConfig";
|
|
81
|
+
readonly outputs: readonly [{
|
|
82
|
+
readonly components: readonly [{
|
|
83
|
+
readonly name: "collateralFactor";
|
|
84
|
+
readonly type: "uint16";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "maxLiquidationBonus";
|
|
87
|
+
readonly type: "uint32";
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "liquidationFee";
|
|
90
|
+
readonly type: "uint16";
|
|
91
|
+
}];
|
|
92
|
+
readonly name: "";
|
|
93
|
+
readonly type: "tuple";
|
|
94
|
+
}];
|
|
95
|
+
readonly stateMutability: "view";
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
}, {
|
|
98
|
+
readonly inputs: readonly [{
|
|
99
|
+
readonly name: "reserveId";
|
|
100
|
+
readonly type: "uint256";
|
|
101
|
+
}];
|
|
102
|
+
readonly name: "getReserveSuppliedAssets";
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly name: "";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}];
|
|
107
|
+
readonly stateMutability: "view";
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
}, {
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly name: "reserveId";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
}];
|
|
114
|
+
readonly name: "getReserveSuppliedShares";
|
|
115
|
+
readonly outputs: readonly [{
|
|
116
|
+
readonly name: "";
|
|
117
|
+
readonly type: "uint256";
|
|
118
|
+
}];
|
|
119
|
+
readonly stateMutability: "view";
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
}, {
|
|
122
|
+
readonly inputs: readonly [{
|
|
123
|
+
readonly name: "reserveId";
|
|
124
|
+
readonly type: "uint256";
|
|
125
|
+
}];
|
|
126
|
+
readonly name: "getReserveDebt";
|
|
127
|
+
readonly outputs: readonly [{
|
|
128
|
+
readonly name: "";
|
|
129
|
+
readonly type: "uint256";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
}];
|
|
134
|
+
readonly stateMutability: "view";
|
|
135
|
+
readonly type: "function";
|
|
136
|
+
}, {
|
|
137
|
+
readonly inputs: readonly [{
|
|
138
|
+
readonly name: "reserveId";
|
|
139
|
+
readonly type: "uint256";
|
|
140
|
+
}];
|
|
141
|
+
readonly name: "getReserveTotalDebt";
|
|
142
|
+
readonly outputs: readonly [{
|
|
143
|
+
readonly name: "";
|
|
144
|
+
readonly type: "uint256";
|
|
145
|
+
}];
|
|
146
|
+
readonly stateMutability: "view";
|
|
147
|
+
readonly type: "function";
|
|
148
|
+
}, {
|
|
149
|
+
readonly inputs: readonly [];
|
|
150
|
+
readonly name: "getLiquidationConfig";
|
|
151
|
+
readonly outputs: readonly [{
|
|
152
|
+
readonly components: readonly [{
|
|
153
|
+
readonly name: "targetHealthFactor";
|
|
154
|
+
readonly type: "uint128";
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "healthFactorForMaxBonus";
|
|
157
|
+
readonly type: "uint64";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "liquidationBonusFactor";
|
|
160
|
+
readonly type: "uint16";
|
|
161
|
+
}];
|
|
162
|
+
readonly name: "";
|
|
163
|
+
readonly type: "tuple";
|
|
164
|
+
}];
|
|
165
|
+
readonly stateMutability: "view";
|
|
166
|
+
readonly type: "function";
|
|
167
|
+
}, {
|
|
168
|
+
readonly inputs: readonly [];
|
|
169
|
+
readonly name: "ORACLE";
|
|
170
|
+
readonly outputs: readonly [{
|
|
171
|
+
readonly name: "";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}];
|
|
174
|
+
readonly stateMutability: "view";
|
|
175
|
+
readonly type: "function";
|
|
176
|
+
}, {
|
|
177
|
+
readonly inputs: readonly [];
|
|
178
|
+
readonly name: "MAX_USER_RESERVES_LIMIT";
|
|
179
|
+
readonly outputs: readonly [{
|
|
180
|
+
readonly name: "";
|
|
181
|
+
readonly type: "uint16";
|
|
182
|
+
}];
|
|
183
|
+
readonly stateMutability: "view";
|
|
184
|
+
readonly type: "function";
|
|
185
|
+
}, {
|
|
186
|
+
readonly inputs: readonly [{
|
|
187
|
+
readonly name: "reserveId";
|
|
188
|
+
readonly type: "uint256";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "user";
|
|
191
|
+
readonly type: "address";
|
|
192
|
+
}];
|
|
193
|
+
readonly name: "getUserSuppliedAssets";
|
|
194
|
+
readonly outputs: readonly [{
|
|
195
|
+
readonly name: "";
|
|
196
|
+
readonly type: "uint256";
|
|
197
|
+
}];
|
|
198
|
+
readonly stateMutability: "view";
|
|
199
|
+
readonly type: "function";
|
|
200
|
+
}, {
|
|
201
|
+
readonly inputs: readonly [{
|
|
202
|
+
readonly name: "reserveId";
|
|
203
|
+
readonly type: "uint256";
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "user";
|
|
206
|
+
readonly type: "address";
|
|
207
|
+
}];
|
|
208
|
+
readonly name: "getUserDebt";
|
|
209
|
+
readonly outputs: readonly [{
|
|
210
|
+
readonly name: "drawnDebt";
|
|
211
|
+
readonly type: "uint256";
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "premiumDebt";
|
|
214
|
+
readonly type: "uint256";
|
|
215
|
+
}];
|
|
216
|
+
readonly stateMutability: "view";
|
|
217
|
+
readonly type: "function";
|
|
218
|
+
}, {
|
|
219
|
+
readonly inputs: readonly [{
|
|
220
|
+
readonly name: "reserveId";
|
|
221
|
+
readonly type: "uint256";
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "user";
|
|
224
|
+
readonly type: "address";
|
|
225
|
+
}];
|
|
226
|
+
readonly name: "getUserReserveStatus";
|
|
227
|
+
readonly outputs: readonly [{
|
|
228
|
+
readonly name: "usingAsCollateral";
|
|
229
|
+
readonly type: "bool";
|
|
230
|
+
}, {
|
|
231
|
+
readonly name: "isBorrowing";
|
|
232
|
+
readonly type: "bool";
|
|
233
|
+
}];
|
|
234
|
+
readonly stateMutability: "view";
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
}, {
|
|
237
|
+
readonly inputs: readonly [{
|
|
238
|
+
readonly name: "user";
|
|
239
|
+
readonly type: "address";
|
|
240
|
+
}, {
|
|
241
|
+
readonly name: "positionManager";
|
|
242
|
+
readonly type: "address";
|
|
243
|
+
}];
|
|
244
|
+
readonly name: "isPositionManager";
|
|
245
|
+
readonly outputs: readonly [{
|
|
246
|
+
readonly name: "";
|
|
247
|
+
readonly type: "bool";
|
|
248
|
+
}];
|
|
249
|
+
readonly stateMutability: "view";
|
|
250
|
+
readonly type: "function";
|
|
251
|
+
}, {
|
|
252
|
+
readonly inputs: readonly [{
|
|
253
|
+
readonly name: "user";
|
|
254
|
+
readonly type: "address";
|
|
255
|
+
}];
|
|
256
|
+
readonly name: "getUserAccountData";
|
|
257
|
+
readonly outputs: readonly [{
|
|
258
|
+
readonly components: readonly [{
|
|
259
|
+
readonly name: "riskPremium";
|
|
260
|
+
readonly type: "uint256";
|
|
261
|
+
}, {
|
|
262
|
+
readonly name: "avgCollateralFactor";
|
|
263
|
+
readonly type: "uint256";
|
|
264
|
+
}, {
|
|
265
|
+
readonly name: "healthFactor";
|
|
266
|
+
readonly type: "uint256";
|
|
267
|
+
}, {
|
|
268
|
+
readonly name: "totalCollateralValue";
|
|
269
|
+
readonly type: "uint256";
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "totalDebtValueRay";
|
|
272
|
+
readonly type: "uint256";
|
|
273
|
+
}, {
|
|
274
|
+
readonly name: "activeCollateralCount";
|
|
275
|
+
readonly type: "uint256";
|
|
276
|
+
}, {
|
|
277
|
+
readonly name: "borrowCount";
|
|
278
|
+
readonly type: "uint256";
|
|
279
|
+
}];
|
|
280
|
+
readonly name: "";
|
|
281
|
+
readonly type: "tuple";
|
|
282
|
+
}];
|
|
283
|
+
readonly stateMutability: "view";
|
|
284
|
+
readonly type: "function";
|
|
285
|
+
}, {
|
|
286
|
+
readonly inputs: readonly [{
|
|
287
|
+
readonly name: "reserveId";
|
|
288
|
+
readonly type: "uint256";
|
|
289
|
+
}, {
|
|
290
|
+
readonly name: "user";
|
|
291
|
+
readonly type: "address";
|
|
292
|
+
}];
|
|
293
|
+
readonly name: "getUserPosition";
|
|
294
|
+
readonly outputs: readonly [{
|
|
295
|
+
readonly components: readonly [{
|
|
296
|
+
readonly name: "drawnShares";
|
|
297
|
+
readonly type: "uint120";
|
|
298
|
+
}, {
|
|
299
|
+
readonly name: "premiumShares";
|
|
300
|
+
readonly type: "uint120";
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "premiumOffsetRay";
|
|
303
|
+
readonly type: "int200";
|
|
304
|
+
}, {
|
|
305
|
+
readonly name: "suppliedShares";
|
|
306
|
+
readonly type: "uint120";
|
|
307
|
+
}, {
|
|
308
|
+
readonly name: "dynamicConfigKey";
|
|
309
|
+
readonly type: "uint32";
|
|
310
|
+
}];
|
|
311
|
+
readonly name: "";
|
|
312
|
+
readonly type: "tuple";
|
|
313
|
+
}];
|
|
314
|
+
readonly stateMutability: "view";
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
}];
|
|
317
|
+
//# sourceMappingURL=spoke.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spoke.d.ts","sourceRoot":"","sources":["../../src/aave-v4/spoke.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2NjB,CAAA"}
|