@gearbox-protocol/sdk 14.11.12 → 14.11.14
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/sdk/chain/chains.js +1 -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/sdk/chain/chains.js +1 -1
- 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/package.json +1 -1
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var liquidationCompressor_exports = {};
|
|
20
|
+
__export(liquidationCompressor_exports, {
|
|
21
|
+
liquidationCompressorAbi: () => liquidationCompressorAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(liquidationCompressor_exports);
|
|
24
|
+
const liquidationCompressorAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "constructor",
|
|
27
|
+
inputs: [
|
|
28
|
+
{ name: "_owner", type: "address", internalType: "address" },
|
|
29
|
+
{ name: "addressProvider_", type: "address", internalType: "address" }
|
|
30
|
+
],
|
|
31
|
+
stateMutability: "nonpayable"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type: "function",
|
|
35
|
+
name: "addressProvider",
|
|
36
|
+
inputs: [],
|
|
37
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
38
|
+
stateMutability: "view"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: "function",
|
|
42
|
+
name: "compressorTypeToCompressor",
|
|
43
|
+
inputs: [
|
|
44
|
+
{ name: "", type: "bytes32", internalType: "bytes32" },
|
|
45
|
+
{ name: "", type: "uint256", internalType: "uint256" }
|
|
46
|
+
],
|
|
47
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
48
|
+
stateMutability: "view"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
type: "function",
|
|
52
|
+
name: "contractType",
|
|
53
|
+
inputs: [],
|
|
54
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
55
|
+
stateMutability: "view"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "function",
|
|
59
|
+
name: "getLiquidationData",
|
|
60
|
+
inputs: [
|
|
61
|
+
{ name: "liquidator", type: "address", internalType: "address" },
|
|
62
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
63
|
+
{
|
|
64
|
+
name: "priceUpdates",
|
|
65
|
+
type: "tuple[]",
|
|
66
|
+
internalType: "struct PriceUpdate[]",
|
|
67
|
+
components: [
|
|
68
|
+
{ name: "priceFeed", type: "address", internalType: "address" },
|
|
69
|
+
{ name: "data", type: "bytes", internalType: "bytes" }
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
outputs: [
|
|
74
|
+
{
|
|
75
|
+
name: "",
|
|
76
|
+
type: "tuple",
|
|
77
|
+
internalType: "struct LiquidationData",
|
|
78
|
+
components: [
|
|
79
|
+
{
|
|
80
|
+
name: "requiredUnderlyingAmount",
|
|
81
|
+
type: "uint256",
|
|
82
|
+
internalType: "uint256"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "expectedOutputs",
|
|
86
|
+
type: "tuple[]",
|
|
87
|
+
internalType: "struct LiquidationOutput[]",
|
|
88
|
+
components: [
|
|
89
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
90
|
+
{ name: "amount", type: "uint256", internalType: "uint256" },
|
|
91
|
+
{ name: "delayed", type: "bool", internalType: "bool" },
|
|
92
|
+
{
|
|
93
|
+
name: "redeemerAddress",
|
|
94
|
+
type: "address",
|
|
95
|
+
internalType: "address"
|
|
96
|
+
},
|
|
97
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "liquidationCall",
|
|
102
|
+
type: "tuple",
|
|
103
|
+
internalType: "struct MultiCall",
|
|
104
|
+
components: [
|
|
105
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
106
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{ name: "isLiquidatorEligible", type: "bool", internalType: "bool" },
|
|
110
|
+
{ name: "kycProtocol", type: "string", internalType: "string" },
|
|
111
|
+
{ name: "kycToken", type: "address", internalType: "address" }
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
stateMutability: "nonpayable"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "function",
|
|
119
|
+
name: "liquidatableTypeToCompressorType",
|
|
120
|
+
inputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
121
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
122
|
+
stateMutability: "view"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: "function",
|
|
126
|
+
name: "liquidatableTypeToSpecificCompressorVersion",
|
|
127
|
+
inputs: [
|
|
128
|
+
{ name: "", type: "bytes32", internalType: "bytes32" },
|
|
129
|
+
{ name: "", type: "uint256", internalType: "uint256" }
|
|
130
|
+
],
|
|
131
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
132
|
+
stateMutability: "view"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: "function",
|
|
136
|
+
name: "owner",
|
|
137
|
+
inputs: [],
|
|
138
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
139
|
+
stateMutability: "view"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
type: "function",
|
|
143
|
+
name: "renounceOwnership",
|
|
144
|
+
inputs: [],
|
|
145
|
+
outputs: [],
|
|
146
|
+
stateMutability: "nonpayable"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
type: "function",
|
|
150
|
+
name: "setLiquidatableTypeToCompressorType",
|
|
151
|
+
inputs: [
|
|
152
|
+
{ name: "liquidatableType", type: "bytes32", internalType: "bytes32" },
|
|
153
|
+
{ name: "compressorType", type: "bytes32", internalType: "bytes32" }
|
|
154
|
+
],
|
|
155
|
+
outputs: [],
|
|
156
|
+
stateMutability: "nonpayable"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
type: "function",
|
|
160
|
+
name: "setLiquidatableVersionToSpecificCompressorVersion",
|
|
161
|
+
inputs: [
|
|
162
|
+
{ name: "liquidatableType", type: "bytes32", internalType: "bytes32" },
|
|
163
|
+
{ name: "liquidatableVersion", type: "uint256", internalType: "uint256" },
|
|
164
|
+
{ name: "compressorVersion", type: "uint256", internalType: "uint256" }
|
|
165
|
+
],
|
|
166
|
+
outputs: [],
|
|
167
|
+
stateMutability: "nonpayable"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
type: "function",
|
|
171
|
+
name: "setSubcompressor",
|
|
172
|
+
inputs: [
|
|
173
|
+
{ name: "subcompressor", type: "address", internalType: "address" }
|
|
174
|
+
],
|
|
175
|
+
outputs: [],
|
|
176
|
+
stateMutability: "nonpayable"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
type: "function",
|
|
180
|
+
name: "transferOwnership",
|
|
181
|
+
inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
|
|
182
|
+
outputs: [],
|
|
183
|
+
stateMutability: "nonpayable"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
type: "function",
|
|
187
|
+
name: "version",
|
|
188
|
+
inputs: [],
|
|
189
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
190
|
+
stateMutability: "view"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: "event",
|
|
194
|
+
name: "OwnershipTransferred",
|
|
195
|
+
inputs: [
|
|
196
|
+
{
|
|
197
|
+
name: "previousOwner",
|
|
198
|
+
type: "address",
|
|
199
|
+
indexed: true,
|
|
200
|
+
internalType: "address"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: "newOwner",
|
|
204
|
+
type: "address",
|
|
205
|
+
indexed: true,
|
|
206
|
+
internalType: "address"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
anonymous: false
|
|
210
|
+
}
|
|
211
|
+
];
|
|
212
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
213
|
+
0 && (module.exports = {
|
|
214
|
+
liquidationCompressorAbi
|
|
215
|
+
});
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var midasLiquidationSubcompressor_exports = {};
|
|
20
|
+
__export(midasLiquidationSubcompressor_exports, {
|
|
21
|
+
midasLiquidationSubcompressorAbi: () => midasLiquidationSubcompressorAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(midasLiquidationSubcompressor_exports);
|
|
24
|
+
const midasLiquidationSubcompressorAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "contractType",
|
|
28
|
+
inputs: [],
|
|
29
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
30
|
+
stateMutability: "view"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "function",
|
|
34
|
+
name: "getLiquidationData",
|
|
35
|
+
inputs: [
|
|
36
|
+
{ name: "liquidator", type: "address", internalType: "address" },
|
|
37
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
38
|
+
{ name: "phantomToken", type: "address", internalType: "address" },
|
|
39
|
+
{
|
|
40
|
+
name: "priceUpdates",
|
|
41
|
+
type: "tuple[]",
|
|
42
|
+
internalType: "struct PriceUpdate[]",
|
|
43
|
+
components: [
|
|
44
|
+
{ name: "priceFeed", type: "address", internalType: "address" },
|
|
45
|
+
{ name: "data", type: "bytes", internalType: "bytes" }
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
outputs: [
|
|
50
|
+
{
|
|
51
|
+
name: "data",
|
|
52
|
+
type: "tuple",
|
|
53
|
+
internalType: "struct LiquidationData",
|
|
54
|
+
components: [
|
|
55
|
+
{
|
|
56
|
+
name: "requiredUnderlyingAmount",
|
|
57
|
+
type: "uint256",
|
|
58
|
+
internalType: "uint256"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "expectedOutputs",
|
|
62
|
+
type: "tuple[]",
|
|
63
|
+
internalType: "struct LiquidationOutput[]",
|
|
64
|
+
components: [
|
|
65
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
66
|
+
{ name: "amount", type: "uint256", internalType: "uint256" },
|
|
67
|
+
{ name: "delayed", type: "bool", internalType: "bool" },
|
|
68
|
+
{
|
|
69
|
+
name: "redeemerAddress",
|
|
70
|
+
type: "address",
|
|
71
|
+
internalType: "address"
|
|
72
|
+
},
|
|
73
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "liquidationCall",
|
|
78
|
+
type: "tuple",
|
|
79
|
+
internalType: "struct MultiCall",
|
|
80
|
+
components: [
|
|
81
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
82
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{ name: "isLiquidatorEligible", type: "bool", internalType: "bool" },
|
|
86
|
+
{ name: "kycProtocol", type: "string", internalType: "string" },
|
|
87
|
+
{ name: "kycToken", type: "address", internalType: "address" }
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
stateMutability: "nonpayable"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: "function",
|
|
95
|
+
name: "version",
|
|
96
|
+
inputs: [],
|
|
97
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
98
|
+
stateMutability: "view"
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
102
|
+
0 && (module.exports = {
|
|
103
|
+
midasLiquidationSubcompressorAbi
|
|
104
|
+
});
|
package/dist/cjs/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var securitizeLiquidationSubcompressor_exports = {};
|
|
20
|
+
__export(securitizeLiquidationSubcompressor_exports, {
|
|
21
|
+
securitizeLiquidationSubcompressorAbi: () => securitizeLiquidationSubcompressorAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(securitizeLiquidationSubcompressor_exports);
|
|
24
|
+
const securitizeLiquidationSubcompressorAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "contractType",
|
|
28
|
+
inputs: [],
|
|
29
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
30
|
+
stateMutability: "view"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "function",
|
|
34
|
+
name: "getLiquidationData",
|
|
35
|
+
inputs: [
|
|
36
|
+
{ name: "liquidator", type: "address", internalType: "address" },
|
|
37
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
38
|
+
{ name: "phantomToken", type: "address", internalType: "address" },
|
|
39
|
+
{
|
|
40
|
+
name: "priceUpdates",
|
|
41
|
+
type: "tuple[]",
|
|
42
|
+
internalType: "struct PriceUpdate[]",
|
|
43
|
+
components: [
|
|
44
|
+
{ name: "priceFeed", type: "address", internalType: "address" },
|
|
45
|
+
{ name: "data", type: "bytes", internalType: "bytes" }
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
outputs: [
|
|
50
|
+
{
|
|
51
|
+
name: "data",
|
|
52
|
+
type: "tuple",
|
|
53
|
+
internalType: "struct LiquidationData",
|
|
54
|
+
components: [
|
|
55
|
+
{
|
|
56
|
+
name: "requiredUnderlyingAmount",
|
|
57
|
+
type: "uint256",
|
|
58
|
+
internalType: "uint256"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "expectedOutputs",
|
|
62
|
+
type: "tuple[]",
|
|
63
|
+
internalType: "struct LiquidationOutput[]",
|
|
64
|
+
components: [
|
|
65
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
66
|
+
{ name: "amount", type: "uint256", internalType: "uint256" },
|
|
67
|
+
{ name: "delayed", type: "bool", internalType: "bool" },
|
|
68
|
+
{
|
|
69
|
+
name: "redeemerAddress",
|
|
70
|
+
type: "address",
|
|
71
|
+
internalType: "address"
|
|
72
|
+
},
|
|
73
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "liquidationCall",
|
|
78
|
+
type: "tuple",
|
|
79
|
+
internalType: "struct MultiCall",
|
|
80
|
+
components: [
|
|
81
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
82
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{ name: "isLiquidatorEligible", type: "bool", internalType: "bool" },
|
|
86
|
+
{ name: "kycProtocol", type: "string", internalType: "string" },
|
|
87
|
+
{ name: "kycToken", type: "address", internalType: "address" }
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
stateMutability: "nonpayable"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: "function",
|
|
95
|
+
name: "version",
|
|
96
|
+
inputs: [],
|
|
97
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
98
|
+
stateMutability: "view"
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
102
|
+
0 && (module.exports = {
|
|
103
|
+
securitizeLiquidationSubcompressorAbi
|
|
104
|
+
});
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
const liquidationCompressorAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "constructor",
|
|
4
|
+
inputs: [
|
|
5
|
+
{ name: "_owner", type: "address", internalType: "address" },
|
|
6
|
+
{ name: "addressProvider_", type: "address", internalType: "address" }
|
|
7
|
+
],
|
|
8
|
+
stateMutability: "nonpayable"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "addressProvider",
|
|
13
|
+
inputs: [],
|
|
14
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
15
|
+
stateMutability: "view"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
type: "function",
|
|
19
|
+
name: "compressorTypeToCompressor",
|
|
20
|
+
inputs: [
|
|
21
|
+
{ name: "", type: "bytes32", internalType: "bytes32" },
|
|
22
|
+
{ name: "", type: "uint256", internalType: "uint256" }
|
|
23
|
+
],
|
|
24
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
25
|
+
stateMutability: "view"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: "function",
|
|
29
|
+
name: "contractType",
|
|
30
|
+
inputs: [],
|
|
31
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
32
|
+
stateMutability: "view"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: "function",
|
|
36
|
+
name: "getLiquidationData",
|
|
37
|
+
inputs: [
|
|
38
|
+
{ name: "liquidator", type: "address", internalType: "address" },
|
|
39
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
40
|
+
{
|
|
41
|
+
name: "priceUpdates",
|
|
42
|
+
type: "tuple[]",
|
|
43
|
+
internalType: "struct PriceUpdate[]",
|
|
44
|
+
components: [
|
|
45
|
+
{ name: "priceFeed", type: "address", internalType: "address" },
|
|
46
|
+
{ name: "data", type: "bytes", internalType: "bytes" }
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
outputs: [
|
|
51
|
+
{
|
|
52
|
+
name: "",
|
|
53
|
+
type: "tuple",
|
|
54
|
+
internalType: "struct LiquidationData",
|
|
55
|
+
components: [
|
|
56
|
+
{
|
|
57
|
+
name: "requiredUnderlyingAmount",
|
|
58
|
+
type: "uint256",
|
|
59
|
+
internalType: "uint256"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "expectedOutputs",
|
|
63
|
+
type: "tuple[]",
|
|
64
|
+
internalType: "struct LiquidationOutput[]",
|
|
65
|
+
components: [
|
|
66
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
67
|
+
{ name: "amount", type: "uint256", internalType: "uint256" },
|
|
68
|
+
{ name: "delayed", type: "bool", internalType: "bool" },
|
|
69
|
+
{
|
|
70
|
+
name: "redeemerAddress",
|
|
71
|
+
type: "address",
|
|
72
|
+
internalType: "address"
|
|
73
|
+
},
|
|
74
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "liquidationCall",
|
|
79
|
+
type: "tuple",
|
|
80
|
+
internalType: "struct MultiCall",
|
|
81
|
+
components: [
|
|
82
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
83
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{ name: "isLiquidatorEligible", type: "bool", internalType: "bool" },
|
|
87
|
+
{ name: "kycProtocol", type: "string", internalType: "string" },
|
|
88
|
+
{ name: "kycToken", type: "address", internalType: "address" }
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
stateMutability: "nonpayable"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
type: "function",
|
|
96
|
+
name: "liquidatableTypeToCompressorType",
|
|
97
|
+
inputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
98
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
99
|
+
stateMutability: "view"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
type: "function",
|
|
103
|
+
name: "liquidatableTypeToSpecificCompressorVersion",
|
|
104
|
+
inputs: [
|
|
105
|
+
{ name: "", type: "bytes32", internalType: "bytes32" },
|
|
106
|
+
{ name: "", type: "uint256", internalType: "uint256" }
|
|
107
|
+
],
|
|
108
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
109
|
+
stateMutability: "view"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: "function",
|
|
113
|
+
name: "owner",
|
|
114
|
+
inputs: [],
|
|
115
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
116
|
+
stateMutability: "view"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
type: "function",
|
|
120
|
+
name: "renounceOwnership",
|
|
121
|
+
inputs: [],
|
|
122
|
+
outputs: [],
|
|
123
|
+
stateMutability: "nonpayable"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
type: "function",
|
|
127
|
+
name: "setLiquidatableTypeToCompressorType",
|
|
128
|
+
inputs: [
|
|
129
|
+
{ name: "liquidatableType", type: "bytes32", internalType: "bytes32" },
|
|
130
|
+
{ name: "compressorType", type: "bytes32", internalType: "bytes32" }
|
|
131
|
+
],
|
|
132
|
+
outputs: [],
|
|
133
|
+
stateMutability: "nonpayable"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
type: "function",
|
|
137
|
+
name: "setLiquidatableVersionToSpecificCompressorVersion",
|
|
138
|
+
inputs: [
|
|
139
|
+
{ name: "liquidatableType", type: "bytes32", internalType: "bytes32" },
|
|
140
|
+
{ name: "liquidatableVersion", type: "uint256", internalType: "uint256" },
|
|
141
|
+
{ name: "compressorVersion", type: "uint256", internalType: "uint256" }
|
|
142
|
+
],
|
|
143
|
+
outputs: [],
|
|
144
|
+
stateMutability: "nonpayable"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
type: "function",
|
|
148
|
+
name: "setSubcompressor",
|
|
149
|
+
inputs: [
|
|
150
|
+
{ name: "subcompressor", type: "address", internalType: "address" }
|
|
151
|
+
],
|
|
152
|
+
outputs: [],
|
|
153
|
+
stateMutability: "nonpayable"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
type: "function",
|
|
157
|
+
name: "transferOwnership",
|
|
158
|
+
inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
|
|
159
|
+
outputs: [],
|
|
160
|
+
stateMutability: "nonpayable"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
type: "function",
|
|
164
|
+
name: "version",
|
|
165
|
+
inputs: [],
|
|
166
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
167
|
+
stateMutability: "view"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
type: "event",
|
|
171
|
+
name: "OwnershipTransferred",
|
|
172
|
+
inputs: [
|
|
173
|
+
{
|
|
174
|
+
name: "previousOwner",
|
|
175
|
+
type: "address",
|
|
176
|
+
indexed: true,
|
|
177
|
+
internalType: "address"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: "newOwner",
|
|
181
|
+
type: "address",
|
|
182
|
+
indexed: true,
|
|
183
|
+
internalType: "address"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
anonymous: false
|
|
187
|
+
}
|
|
188
|
+
];
|
|
189
|
+
export {
|
|
190
|
+
liquidationCompressorAbi
|
|
191
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const midasLiquidationSubcompressorAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "contractType",
|
|
5
|
+
inputs: [],
|
|
6
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
7
|
+
stateMutability: "view"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: "function",
|
|
11
|
+
name: "getLiquidationData",
|
|
12
|
+
inputs: [
|
|
13
|
+
{ name: "liquidator", type: "address", internalType: "address" },
|
|
14
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
15
|
+
{ name: "phantomToken", type: "address", internalType: "address" },
|
|
16
|
+
{
|
|
17
|
+
name: "priceUpdates",
|
|
18
|
+
type: "tuple[]",
|
|
19
|
+
internalType: "struct PriceUpdate[]",
|
|
20
|
+
components: [
|
|
21
|
+
{ name: "priceFeed", type: "address", internalType: "address" },
|
|
22
|
+
{ name: "data", type: "bytes", internalType: "bytes" }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
outputs: [
|
|
27
|
+
{
|
|
28
|
+
name: "data",
|
|
29
|
+
type: "tuple",
|
|
30
|
+
internalType: "struct LiquidationData",
|
|
31
|
+
components: [
|
|
32
|
+
{
|
|
33
|
+
name: "requiredUnderlyingAmount",
|
|
34
|
+
type: "uint256",
|
|
35
|
+
internalType: "uint256"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "expectedOutputs",
|
|
39
|
+
type: "tuple[]",
|
|
40
|
+
internalType: "struct LiquidationOutput[]",
|
|
41
|
+
components: [
|
|
42
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
43
|
+
{ name: "amount", type: "uint256", internalType: "uint256" },
|
|
44
|
+
{ name: "delayed", type: "bool", internalType: "bool" },
|
|
45
|
+
{
|
|
46
|
+
name: "redeemerAddress",
|
|
47
|
+
type: "address",
|
|
48
|
+
internalType: "address"
|
|
49
|
+
},
|
|
50
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "liquidationCall",
|
|
55
|
+
type: "tuple",
|
|
56
|
+
internalType: "struct MultiCall",
|
|
57
|
+
components: [
|
|
58
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
59
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{ name: "isLiquidatorEligible", type: "bool", internalType: "bool" },
|
|
63
|
+
{ name: "kycProtocol", type: "string", internalType: "string" },
|
|
64
|
+
{ name: "kycToken", type: "address", internalType: "address" }
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
stateMutability: "nonpayable"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: "function",
|
|
72
|
+
name: "version",
|
|
73
|
+
inputs: [],
|
|
74
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
75
|
+
stateMutability: "view"
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
export {
|
|
79
|
+
midasLiquidationSubcompressorAbi
|
|
80
|
+
};
|
package/dist/esm/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const securitizeLiquidationSubcompressorAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "contractType",
|
|
5
|
+
inputs: [],
|
|
6
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
7
|
+
stateMutability: "view"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: "function",
|
|
11
|
+
name: "getLiquidationData",
|
|
12
|
+
inputs: [
|
|
13
|
+
{ name: "liquidator", type: "address", internalType: "address" },
|
|
14
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
15
|
+
{ name: "phantomToken", type: "address", internalType: "address" },
|
|
16
|
+
{
|
|
17
|
+
name: "priceUpdates",
|
|
18
|
+
type: "tuple[]",
|
|
19
|
+
internalType: "struct PriceUpdate[]",
|
|
20
|
+
components: [
|
|
21
|
+
{ name: "priceFeed", type: "address", internalType: "address" },
|
|
22
|
+
{ name: "data", type: "bytes", internalType: "bytes" }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
outputs: [
|
|
27
|
+
{
|
|
28
|
+
name: "data",
|
|
29
|
+
type: "tuple",
|
|
30
|
+
internalType: "struct LiquidationData",
|
|
31
|
+
components: [
|
|
32
|
+
{
|
|
33
|
+
name: "requiredUnderlyingAmount",
|
|
34
|
+
type: "uint256",
|
|
35
|
+
internalType: "uint256"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "expectedOutputs",
|
|
39
|
+
type: "tuple[]",
|
|
40
|
+
internalType: "struct LiquidationOutput[]",
|
|
41
|
+
components: [
|
|
42
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
43
|
+
{ name: "amount", type: "uint256", internalType: "uint256" },
|
|
44
|
+
{ name: "delayed", type: "bool", internalType: "bool" },
|
|
45
|
+
{
|
|
46
|
+
name: "redeemerAddress",
|
|
47
|
+
type: "address",
|
|
48
|
+
internalType: "address"
|
|
49
|
+
},
|
|
50
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "liquidationCall",
|
|
55
|
+
type: "tuple",
|
|
56
|
+
internalType: "struct MultiCall",
|
|
57
|
+
components: [
|
|
58
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
59
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{ name: "isLiquidatorEligible", type: "bool", internalType: "bool" },
|
|
63
|
+
{ name: "kycProtocol", type: "string", internalType: "string" },
|
|
64
|
+
{ name: "kycToken", type: "address", internalType: "address" }
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
stateMutability: "nonpayable"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: "function",
|
|
72
|
+
name: "version",
|
|
73
|
+
inputs: [],
|
|
74
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
75
|
+
stateMutability: "view"
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
export {
|
|
79
|
+
securitizeLiquidationSubcompressorAbi
|
|
80
|
+
};
|
|
@@ -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
|
+
}];
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export declare const securitizeLiquidationSubcompressorAbi: 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
|
+
}];
|