@gearbox-protocol/sdk 14.12.0-next.46 → 14.12.0-next.48
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/cjs/abi/compressors/liquidationCompressor.js +215 -0
- package/dist/cjs/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js +104 -0
- package/dist/cjs/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js +104 -0
- package/dist/cjs/dev/withdrawalAbi.js +104 -66
- package/dist/cjs/dev/withdrawalUtils.js +8 -1
- package/dist/cjs/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +2 -306
- package/dist/cjs/plugins/adapters/abi/index.js +2 -0
- package/dist/cjs/plugins/adapters/abi/midas/iMidasGatewayV311.js +194 -0
- package/dist/cjs/plugins/adapters/abi/midas/index.js +22 -0
- package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js +184 -24
- package/dist/cjs/plugins/adapters/contracts/MidasGatewayAdapterContract.js +2 -1
- package/dist/esm/abi/compressors/liquidationCompressor.js +191 -0
- package/dist/esm/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js +80 -0
- package/dist/esm/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js +80 -0
- package/dist/esm/dev/withdrawalAbi.js +104 -66
- package/dist/esm/dev/withdrawalUtils.js +8 -1
- package/dist/esm/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +1 -304
- package/dist/esm/plugins/adapters/abi/index.js +1 -0
- package/dist/esm/plugins/adapters/abi/midas/iMidasGatewayV311.js +170 -0
- package/dist/esm/plugins/adapters/abi/midas/index.js +1 -0
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js +184 -24
- package/dist/esm/plugins/adapters/contracts/MidasGatewayAdapterContract.js +2 -4
- package/dist/types/abi/compressors/liquidationCompressor.d.ts +262 -0
- package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts +111 -0
- package/dist/types/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.d.ts +111 -0
- package/dist/types/dev/withdrawalAbi.d.ts +81 -53
- package/dist/types/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.d.ts +0 -233
- package/dist/types/plugins/adapters/abi/index.d.ts +1 -0
- package/dist/types/plugins/adapters/abi/midas/iMidasGatewayV311.d.ts +261 -0
- package/dist/types/plugins/adapters/abi/midas/index.d.ts +1 -0
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.d.ts +24 -0
- package/dist/types/plugins/adapters/contracts/MidasGatewayAdapterContract.d.ts +28 -0
- package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +24 -0
- package/package.json +1 -1
|
@@ -3,7 +3,11 @@ const iSecuritizeRedemptionGatewayV311Abi = [
|
|
|
3
3
|
type: "function",
|
|
4
4
|
name: "claim",
|
|
5
5
|
inputs: [
|
|
6
|
-
{
|
|
6
|
+
{
|
|
7
|
+
name: "redeemers",
|
|
8
|
+
type: "address[]",
|
|
9
|
+
internalType: "address[]"
|
|
10
|
+
}
|
|
7
11
|
],
|
|
8
12
|
outputs: [],
|
|
9
13
|
stateMutability: "nonpayable"
|
|
@@ -12,57 +16,157 @@ const iSecuritizeRedemptionGatewayV311Abi = [
|
|
|
12
16
|
type: "function",
|
|
13
17
|
name: "contractType",
|
|
14
18
|
inputs: [],
|
|
15
|
-
outputs: [
|
|
19
|
+
outputs: [
|
|
20
|
+
{
|
|
21
|
+
name: "",
|
|
22
|
+
type: "bytes32",
|
|
23
|
+
internalType: "bytes32"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
16
26
|
stateMutability: "view"
|
|
17
27
|
},
|
|
18
28
|
{
|
|
19
29
|
type: "function",
|
|
20
30
|
name: "dsToken",
|
|
21
31
|
inputs: [],
|
|
22
|
-
outputs: [
|
|
32
|
+
outputs: [
|
|
33
|
+
{
|
|
34
|
+
name: "",
|
|
35
|
+
type: "address",
|
|
36
|
+
internalType: "address"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
23
39
|
stateMutability: "view"
|
|
24
40
|
},
|
|
25
41
|
{
|
|
26
42
|
type: "function",
|
|
27
43
|
name: "getRedeemers",
|
|
28
|
-
inputs: [
|
|
29
|
-
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
name: "account",
|
|
47
|
+
type: "address",
|
|
48
|
+
internalType: "address"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
outputs: [
|
|
52
|
+
{
|
|
53
|
+
name: "",
|
|
54
|
+
type: "address[]",
|
|
55
|
+
internalType: "address[]"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
30
58
|
stateMutability: "view"
|
|
31
59
|
},
|
|
32
60
|
{
|
|
33
61
|
type: "function",
|
|
34
62
|
name: "getRedemptionAmount",
|
|
35
|
-
inputs: [
|
|
36
|
-
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
name: "account",
|
|
66
|
+
type: "address",
|
|
67
|
+
internalType: "address"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
outputs: [
|
|
71
|
+
{
|
|
72
|
+
name: "",
|
|
73
|
+
type: "uint256",
|
|
74
|
+
internalType: "uint256"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
37
77
|
stateMutability: "view"
|
|
38
78
|
},
|
|
39
79
|
{
|
|
40
80
|
type: "function",
|
|
41
81
|
name: "getUnclaimedRedeemers",
|
|
42
|
-
inputs: [
|
|
43
|
-
|
|
82
|
+
inputs: [
|
|
83
|
+
{
|
|
84
|
+
name: "account",
|
|
85
|
+
type: "address",
|
|
86
|
+
internalType: "address"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
outputs: [
|
|
90
|
+
{
|
|
91
|
+
name: "",
|
|
92
|
+
type: "address[]",
|
|
93
|
+
internalType: "address[]"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
stateMutability: "view"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
type: "function",
|
|
100
|
+
name: "isEligibleAccountOwner",
|
|
101
|
+
inputs: [
|
|
102
|
+
{
|
|
103
|
+
name: "account",
|
|
104
|
+
type: "address",
|
|
105
|
+
internalType: "address"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
outputs: [
|
|
109
|
+
{
|
|
110
|
+
name: "",
|
|
111
|
+
type: "bool",
|
|
112
|
+
internalType: "bool"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
44
115
|
stateMutability: "view"
|
|
45
116
|
},
|
|
46
117
|
{
|
|
47
118
|
type: "function",
|
|
48
119
|
name: "masterRedeemer",
|
|
49
120
|
inputs: [],
|
|
50
|
-
outputs: [
|
|
121
|
+
outputs: [
|
|
122
|
+
{
|
|
123
|
+
name: "",
|
|
124
|
+
type: "address",
|
|
125
|
+
internalType: "address"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
51
128
|
stateMutability: "view"
|
|
52
129
|
},
|
|
53
130
|
{
|
|
54
131
|
type: "function",
|
|
55
132
|
name: "navProvider",
|
|
56
133
|
inputs: [],
|
|
57
|
-
outputs: [
|
|
134
|
+
outputs: [
|
|
135
|
+
{
|
|
136
|
+
name: "",
|
|
137
|
+
type: "address",
|
|
138
|
+
internalType: "address"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
stateMutability: "view"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
type: "function",
|
|
145
|
+
name: "phantomToken",
|
|
146
|
+
inputs: [],
|
|
147
|
+
outputs: [
|
|
148
|
+
{
|
|
149
|
+
name: "",
|
|
150
|
+
type: "address",
|
|
151
|
+
internalType: "address"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
58
154
|
stateMutability: "view"
|
|
59
155
|
},
|
|
60
156
|
{
|
|
61
157
|
type: "function",
|
|
62
158
|
name: "redeem",
|
|
63
159
|
inputs: [
|
|
64
|
-
{
|
|
65
|
-
|
|
160
|
+
{
|
|
161
|
+
name: "dsTokenAmount",
|
|
162
|
+
type: "uint256",
|
|
163
|
+
internalType: "uint256"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "extraData",
|
|
167
|
+
type: "bytes",
|
|
168
|
+
internalType: "bytes"
|
|
169
|
+
}
|
|
66
170
|
],
|
|
67
171
|
outputs: [],
|
|
68
172
|
stateMutability: "nonpayable"
|
|
@@ -71,43 +175,81 @@ const iSecuritizeRedemptionGatewayV311Abi = [
|
|
|
71
175
|
type: "function",
|
|
72
176
|
name: "redemptionAccount",
|
|
73
177
|
inputs: [],
|
|
74
|
-
outputs: [
|
|
178
|
+
outputs: [
|
|
179
|
+
{
|
|
180
|
+
name: "",
|
|
181
|
+
type: "address",
|
|
182
|
+
internalType: "address"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
75
185
|
stateMutability: "view"
|
|
76
186
|
},
|
|
77
187
|
{
|
|
78
188
|
type: "function",
|
|
79
189
|
name: "redemptionLogger",
|
|
80
190
|
inputs: [],
|
|
81
|
-
outputs: [
|
|
191
|
+
outputs: [
|
|
192
|
+
{
|
|
193
|
+
name: "",
|
|
194
|
+
type: "address",
|
|
195
|
+
internalType: "address"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
82
198
|
stateMutability: "view"
|
|
83
199
|
},
|
|
84
200
|
{
|
|
85
201
|
type: "function",
|
|
86
202
|
name: "securitizeWhitelister",
|
|
87
203
|
inputs: [],
|
|
88
|
-
outputs: [
|
|
204
|
+
outputs: [
|
|
205
|
+
{
|
|
206
|
+
name: "",
|
|
207
|
+
type: "address",
|
|
208
|
+
internalType: "address"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
89
211
|
stateMutability: "view"
|
|
90
212
|
},
|
|
91
213
|
{
|
|
92
214
|
type: "function",
|
|
93
215
|
name: "stableCoinToken",
|
|
94
216
|
inputs: [],
|
|
95
|
-
outputs: [
|
|
217
|
+
outputs: [
|
|
218
|
+
{
|
|
219
|
+
name: "",
|
|
220
|
+
type: "address",
|
|
221
|
+
internalType: "address"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
96
224
|
stateMutability: "view"
|
|
97
225
|
},
|
|
98
226
|
{
|
|
99
227
|
type: "function",
|
|
100
228
|
name: "transferMaster",
|
|
101
229
|
inputs: [],
|
|
102
|
-
outputs: [
|
|
230
|
+
outputs: [
|
|
231
|
+
{
|
|
232
|
+
name: "",
|
|
233
|
+
type: "address",
|
|
234
|
+
internalType: "address"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
103
237
|
stateMutability: "view"
|
|
104
238
|
},
|
|
105
239
|
{
|
|
106
240
|
type: "function",
|
|
107
241
|
name: "transferRedeemer",
|
|
108
242
|
inputs: [
|
|
109
|
-
{
|
|
110
|
-
|
|
243
|
+
{
|
|
244
|
+
name: "redeemer",
|
|
245
|
+
type: "address",
|
|
246
|
+
internalType: "address"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: "newAccount",
|
|
250
|
+
type: "address",
|
|
251
|
+
internalType: "address"
|
|
252
|
+
}
|
|
111
253
|
],
|
|
112
254
|
outputs: [],
|
|
113
255
|
stateMutability: "nonpayable"
|
|
@@ -116,7 +258,13 @@ const iSecuritizeRedemptionGatewayV311Abi = [
|
|
|
116
258
|
type: "function",
|
|
117
259
|
name: "version",
|
|
118
260
|
inputs: [],
|
|
119
|
-
outputs: [
|
|
261
|
+
outputs: [
|
|
262
|
+
{
|
|
263
|
+
name: "",
|
|
264
|
+
type: "uint256",
|
|
265
|
+
internalType: "uint256"
|
|
266
|
+
}
|
|
267
|
+
],
|
|
120
268
|
stateMutability: "view"
|
|
121
269
|
},
|
|
122
270
|
{
|
|
@@ -124,9 +272,21 @@ const iSecuritizeRedemptionGatewayV311Abi = [
|
|
|
124
272
|
name: "MaxUnclaimedRedeemersPerAccountException",
|
|
125
273
|
inputs: []
|
|
126
274
|
},
|
|
127
|
-
{
|
|
128
|
-
|
|
129
|
-
|
|
275
|
+
{
|
|
276
|
+
type: "error",
|
|
277
|
+
name: "NewAccountNotRegisteredException",
|
|
278
|
+
inputs: []
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
type: "error",
|
|
282
|
+
name: "RedeemerNotOwnedByAccountException",
|
|
283
|
+
inputs: []
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
type: "error",
|
|
287
|
+
name: "RedeemerTransferNotAllowedException",
|
|
288
|
+
inputs: []
|
|
289
|
+
}
|
|
130
290
|
];
|
|
131
291
|
export {
|
|
132
292
|
iSecuritizeRedemptionGatewayV311Abi
|
|
@@ -7,10 +7,8 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
MissingSerializedParamsError
|
|
9
9
|
} from "../../../sdk/index.js";
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
iMidasGatewayV311Abi
|
|
13
|
-
} from "../abi/adapters/index.js";
|
|
10
|
+
import { iMidasGatewayAdapterV311Abi } from "../abi/adapters/index.js";
|
|
11
|
+
import { iMidasGatewayV311Abi } from "../abi/index.js";
|
|
14
12
|
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
15
13
|
const abi = iMidasGatewayAdapterV311Abi;
|
|
16
14
|
const protocolAbi = iMidasGatewayV311Abi;
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
export declare const liquidationCompressorAbi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "_owner";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "addressProvider_";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
}];
|
|
12
|
+
readonly stateMutability: "nonpayable";
|
|
13
|
+
}, {
|
|
14
|
+
readonly type: "function";
|
|
15
|
+
readonly name: "addressProvider";
|
|
16
|
+
readonly inputs: readonly [];
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly name: "";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
}];
|
|
22
|
+
readonly stateMutability: "view";
|
|
23
|
+
}, {
|
|
24
|
+
readonly type: "function";
|
|
25
|
+
readonly name: "compressorTypeToCompressor";
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly name: "";
|
|
28
|
+
readonly type: "bytes32";
|
|
29
|
+
readonly internalType: "bytes32";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "";
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
readonly internalType: "uint256";
|
|
34
|
+
}];
|
|
35
|
+
readonly outputs: readonly [{
|
|
36
|
+
readonly name: "";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
readonly internalType: "address";
|
|
39
|
+
}];
|
|
40
|
+
readonly stateMutability: "view";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
readonly name: "contractType";
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
readonly outputs: readonly [{
|
|
46
|
+
readonly name: "";
|
|
47
|
+
readonly type: "bytes32";
|
|
48
|
+
readonly internalType: "bytes32";
|
|
49
|
+
}];
|
|
50
|
+
readonly stateMutability: "view";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
readonly name: "getLiquidationData";
|
|
54
|
+
readonly inputs: readonly [{
|
|
55
|
+
readonly name: "liquidator";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "creditAccount";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
readonly internalType: "address";
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "priceUpdates";
|
|
64
|
+
readonly type: "tuple[]";
|
|
65
|
+
readonly internalType: "struct PriceUpdate[]";
|
|
66
|
+
readonly components: readonly [{
|
|
67
|
+
readonly name: "priceFeed";
|
|
68
|
+
readonly type: "address";
|
|
69
|
+
readonly internalType: "address";
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "data";
|
|
72
|
+
readonly type: "bytes";
|
|
73
|
+
readonly internalType: "bytes";
|
|
74
|
+
}];
|
|
75
|
+
}];
|
|
76
|
+
readonly outputs: readonly [{
|
|
77
|
+
readonly name: "";
|
|
78
|
+
readonly type: "tuple";
|
|
79
|
+
readonly internalType: "struct LiquidationData";
|
|
80
|
+
readonly components: readonly [{
|
|
81
|
+
readonly name: "requiredUnderlyingAmount";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
readonly internalType: "uint256";
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "expectedOutputs";
|
|
86
|
+
readonly type: "tuple[]";
|
|
87
|
+
readonly internalType: "struct LiquidationOutput[]";
|
|
88
|
+
readonly components: readonly [{
|
|
89
|
+
readonly name: "token";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
readonly internalType: "address";
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "amount";
|
|
94
|
+
readonly type: "uint256";
|
|
95
|
+
readonly internalType: "uint256";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "delayed";
|
|
98
|
+
readonly type: "bool";
|
|
99
|
+
readonly internalType: "bool";
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "redeemerAddress";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
readonly internalType: "address";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "claimableAt";
|
|
106
|
+
readonly type: "uint256";
|
|
107
|
+
readonly internalType: "uint256";
|
|
108
|
+
}];
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "liquidationCall";
|
|
111
|
+
readonly type: "tuple";
|
|
112
|
+
readonly internalType: "struct MultiCall";
|
|
113
|
+
readonly components: readonly [{
|
|
114
|
+
readonly name: "target";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "callData";
|
|
119
|
+
readonly type: "bytes";
|
|
120
|
+
readonly internalType: "bytes";
|
|
121
|
+
}];
|
|
122
|
+
}, {
|
|
123
|
+
readonly name: "isLiquidatorEligible";
|
|
124
|
+
readonly type: "bool";
|
|
125
|
+
readonly internalType: "bool";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "kycProtocol";
|
|
128
|
+
readonly type: "string";
|
|
129
|
+
readonly internalType: "string";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "kycToken";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
}];
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "nonpayable";
|
|
137
|
+
}, {
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
readonly name: "liquidatableTypeToCompressorType";
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly name: "";
|
|
142
|
+
readonly type: "bytes32";
|
|
143
|
+
readonly internalType: "bytes32";
|
|
144
|
+
}];
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly type: "bytes32";
|
|
148
|
+
readonly internalType: "bytes32";
|
|
149
|
+
}];
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
}, {
|
|
152
|
+
readonly type: "function";
|
|
153
|
+
readonly name: "liquidatableTypeToSpecificCompressorVersion";
|
|
154
|
+
readonly inputs: readonly [{
|
|
155
|
+
readonly name: "";
|
|
156
|
+
readonly type: "bytes32";
|
|
157
|
+
readonly internalType: "bytes32";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
readonly internalType: "uint256";
|
|
162
|
+
}];
|
|
163
|
+
readonly outputs: readonly [{
|
|
164
|
+
readonly name: "";
|
|
165
|
+
readonly type: "uint256";
|
|
166
|
+
readonly internalType: "uint256";
|
|
167
|
+
}];
|
|
168
|
+
readonly stateMutability: "view";
|
|
169
|
+
}, {
|
|
170
|
+
readonly type: "function";
|
|
171
|
+
readonly name: "owner";
|
|
172
|
+
readonly inputs: readonly [];
|
|
173
|
+
readonly outputs: readonly [{
|
|
174
|
+
readonly name: "";
|
|
175
|
+
readonly type: "address";
|
|
176
|
+
readonly internalType: "address";
|
|
177
|
+
}];
|
|
178
|
+
readonly stateMutability: "view";
|
|
179
|
+
}, {
|
|
180
|
+
readonly type: "function";
|
|
181
|
+
readonly name: "renounceOwnership";
|
|
182
|
+
readonly inputs: readonly [];
|
|
183
|
+
readonly outputs: readonly [];
|
|
184
|
+
readonly stateMutability: "nonpayable";
|
|
185
|
+
}, {
|
|
186
|
+
readonly type: "function";
|
|
187
|
+
readonly name: "setLiquidatableTypeToCompressorType";
|
|
188
|
+
readonly inputs: readonly [{
|
|
189
|
+
readonly name: "liquidatableType";
|
|
190
|
+
readonly type: "bytes32";
|
|
191
|
+
readonly internalType: "bytes32";
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "compressorType";
|
|
194
|
+
readonly type: "bytes32";
|
|
195
|
+
readonly internalType: "bytes32";
|
|
196
|
+
}];
|
|
197
|
+
readonly outputs: readonly [];
|
|
198
|
+
readonly stateMutability: "nonpayable";
|
|
199
|
+
}, {
|
|
200
|
+
readonly type: "function";
|
|
201
|
+
readonly name: "setLiquidatableVersionToSpecificCompressorVersion";
|
|
202
|
+
readonly inputs: readonly [{
|
|
203
|
+
readonly name: "liquidatableType";
|
|
204
|
+
readonly type: "bytes32";
|
|
205
|
+
readonly internalType: "bytes32";
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "liquidatableVersion";
|
|
208
|
+
readonly type: "uint256";
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "compressorVersion";
|
|
212
|
+
readonly type: "uint256";
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
}];
|
|
215
|
+
readonly outputs: readonly [];
|
|
216
|
+
readonly stateMutability: "nonpayable";
|
|
217
|
+
}, {
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
readonly name: "setSubcompressor";
|
|
220
|
+
readonly inputs: readonly [{
|
|
221
|
+
readonly name: "subcompressor";
|
|
222
|
+
readonly type: "address";
|
|
223
|
+
readonly internalType: "address";
|
|
224
|
+
}];
|
|
225
|
+
readonly outputs: readonly [];
|
|
226
|
+
readonly stateMutability: "nonpayable";
|
|
227
|
+
}, {
|
|
228
|
+
readonly type: "function";
|
|
229
|
+
readonly name: "transferOwnership";
|
|
230
|
+
readonly inputs: readonly [{
|
|
231
|
+
readonly name: "newOwner";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
}];
|
|
235
|
+
readonly outputs: readonly [];
|
|
236
|
+
readonly stateMutability: "nonpayable";
|
|
237
|
+
}, {
|
|
238
|
+
readonly type: "function";
|
|
239
|
+
readonly name: "version";
|
|
240
|
+
readonly inputs: readonly [];
|
|
241
|
+
readonly outputs: readonly [{
|
|
242
|
+
readonly name: "";
|
|
243
|
+
readonly type: "uint256";
|
|
244
|
+
readonly internalType: "uint256";
|
|
245
|
+
}];
|
|
246
|
+
readonly stateMutability: "view";
|
|
247
|
+
}, {
|
|
248
|
+
readonly type: "event";
|
|
249
|
+
readonly name: "OwnershipTransferred";
|
|
250
|
+
readonly inputs: readonly [{
|
|
251
|
+
readonly name: "previousOwner";
|
|
252
|
+
readonly type: "address";
|
|
253
|
+
readonly indexed: true;
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
}, {
|
|
256
|
+
readonly name: "newOwner";
|
|
257
|
+
readonly type: "address";
|
|
258
|
+
readonly indexed: true;
|
|
259
|
+
readonly internalType: "address";
|
|
260
|
+
}];
|
|
261
|
+
readonly anonymous: false;
|
|
262
|
+
}];
|
package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export declare const midasLiquidationSubcompressorAbi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "contractType";
|
|
4
|
+
readonly inputs: readonly [];
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "bytes32";
|
|
8
|
+
readonly internalType: "bytes32";
|
|
9
|
+
}];
|
|
10
|
+
readonly stateMutability: "view";
|
|
11
|
+
}, {
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "getLiquidationData";
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly name: "liquidator";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
readonly internalType: "address";
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "creditAccount";
|
|
20
|
+
readonly type: "address";
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "phantomToken";
|
|
24
|
+
readonly type: "address";
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "priceUpdates";
|
|
28
|
+
readonly type: "tuple[]";
|
|
29
|
+
readonly internalType: "struct PriceUpdate[]";
|
|
30
|
+
readonly components: readonly [{
|
|
31
|
+
readonly name: "priceFeed";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
readonly internalType: "address";
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "data";
|
|
36
|
+
readonly type: "bytes";
|
|
37
|
+
readonly internalType: "bytes";
|
|
38
|
+
}];
|
|
39
|
+
}];
|
|
40
|
+
readonly outputs: readonly [{
|
|
41
|
+
readonly name: "data";
|
|
42
|
+
readonly type: "tuple";
|
|
43
|
+
readonly internalType: "struct LiquidationData";
|
|
44
|
+
readonly components: readonly [{
|
|
45
|
+
readonly name: "requiredUnderlyingAmount";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "expectedOutputs";
|
|
50
|
+
readonly type: "tuple[]";
|
|
51
|
+
readonly internalType: "struct LiquidationOutput[]";
|
|
52
|
+
readonly components: readonly [{
|
|
53
|
+
readonly name: "token";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "amount";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
readonly internalType: "uint256";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "delayed";
|
|
62
|
+
readonly type: "bool";
|
|
63
|
+
readonly internalType: "bool";
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "redeemerAddress";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
readonly internalType: "address";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "claimableAt";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
readonly internalType: "uint256";
|
|
72
|
+
}];
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "liquidationCall";
|
|
75
|
+
readonly type: "tuple";
|
|
76
|
+
readonly internalType: "struct MultiCall";
|
|
77
|
+
readonly components: readonly [{
|
|
78
|
+
readonly name: "target";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "callData";
|
|
83
|
+
readonly type: "bytes";
|
|
84
|
+
readonly internalType: "bytes";
|
|
85
|
+
}];
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "isLiquidatorEligible";
|
|
88
|
+
readonly type: "bool";
|
|
89
|
+
readonly internalType: "bool";
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "kycProtocol";
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
readonly internalType: "string";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "kycToken";
|
|
96
|
+
readonly type: "address";
|
|
97
|
+
readonly internalType: "address";
|
|
98
|
+
}];
|
|
99
|
+
}];
|
|
100
|
+
readonly stateMutability: "nonpayable";
|
|
101
|
+
}, {
|
|
102
|
+
readonly type: "function";
|
|
103
|
+
readonly name: "version";
|
|
104
|
+
readonly inputs: readonly [];
|
|
105
|
+
readonly outputs: readonly [{
|
|
106
|
+
readonly name: "";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
readonly internalType: "uint256";
|
|
109
|
+
}];
|
|
110
|
+
readonly stateMutability: "view";
|
|
111
|
+
}];
|