@optimex-xyz/market-maker-sdk 0.9.0-dev-c1dabf3 → 0.9.0-dev-f4af425
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/index.d.mts +158 -124
- package/dist/index.d.ts +158 -124
- package/dist/index.js +98 -69
- package/dist/index.mjs +98 -69
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -989,23 +989,25 @@ interface ERC20 extends BaseContract {
|
|
|
989
989
|
}
|
|
990
990
|
|
|
991
991
|
interface MorphoLiquidatorInterface extends Interface {
|
|
992
|
-
getFunction(nameOrSignature: "MORPHO_MANAGEMENT" | "eip712Domain" | "onMorphoLiquidate" | "onMorphoRepay" | "optimexDomain" | "payment"): FunctionFragment;
|
|
993
|
-
getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged" | "ForceClose" | "Liquidate" | "OnMorphoLiquidate" | "OnMorphoRepay" | "Payment" | "ProfitTaken" | "
|
|
992
|
+
getFunction(nameOrSignature: "MORPHO_MANAGEMENT" | "eip712Domain" | "finalizePosition" | "onMorphoLiquidate" | "onMorphoRepay" | "optimexDomain" | "payment"): FunctionFragment;
|
|
993
|
+
getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged" | "FinalizePosition" | "ForceClose" | "Liquidate" | "OnMorphoLiquidate" | "OnMorphoRepay" | "Payment" | "ProfitTaken" | "Refund"): EventFragment;
|
|
994
994
|
encodeFunctionData(functionFragment: "MORPHO_MANAGEMENT", values?: undefined): string;
|
|
995
995
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
996
|
+
encodeFunctionData(functionFragment: "finalizePosition", values: [AddressLike, BytesLike, BytesLike]): string;
|
|
996
997
|
encodeFunctionData(functionFragment: "onMorphoLiquidate", values: [BigNumberish, BytesLike]): string;
|
|
997
998
|
encodeFunctionData(functionFragment: "onMorphoRepay", values: [BigNumberish, BytesLike]): string;
|
|
998
999
|
encodeFunctionData(functionFragment: "optimexDomain", values?: undefined): string;
|
|
999
1000
|
encodeFunctionData(functionFragment: "payment", values: [
|
|
1000
|
-
BytesLike,
|
|
1001
1001
|
AddressLike,
|
|
1002
|
-
BigNumberish,
|
|
1003
1002
|
BytesLike,
|
|
1003
|
+
BytesLike,
|
|
1004
|
+
BigNumberish,
|
|
1004
1005
|
boolean,
|
|
1005
1006
|
BytesLike
|
|
1006
1007
|
]): string;
|
|
1007
1008
|
decodeFunctionResult(functionFragment: "MORPHO_MANAGEMENT", data: BytesLike): Result;
|
|
1008
1009
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
1010
|
+
decodeFunctionResult(functionFragment: "finalizePosition", data: BytesLike): Result;
|
|
1009
1011
|
decodeFunctionResult(functionFragment: "onMorphoLiquidate", data: BytesLike): Result;
|
|
1010
1012
|
decodeFunctionResult(functionFragment: "onMorphoRepay", data: BytesLike): Result;
|
|
1011
1013
|
decodeFunctionResult(functionFragment: "optimexDomain", data: BytesLike): Result;
|
|
@@ -1021,27 +1023,38 @@ declare namespace EIP712DomainChangedEvent$1 {
|
|
|
1021
1023
|
type Log = TypedEventLog<Event>;
|
|
1022
1024
|
type LogDescription = TypedLogDescription<Event>;
|
|
1023
1025
|
}
|
|
1026
|
+
declare namespace FinalizePositionEvent {
|
|
1027
|
+
type InputTuple = [
|
|
1028
|
+
positionId: BytesLike,
|
|
1029
|
+
apm: AddressLike,
|
|
1030
|
+
amount: BigNumberish
|
|
1031
|
+
];
|
|
1032
|
+
type OutputTuple = [positionId: string, apm: string, amount: bigint];
|
|
1033
|
+
interface OutputObject {
|
|
1034
|
+
positionId: string;
|
|
1035
|
+
apm: string;
|
|
1036
|
+
amount: bigint;
|
|
1037
|
+
}
|
|
1038
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1039
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1040
|
+
type Log = TypedEventLog<Event>;
|
|
1041
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1042
|
+
}
|
|
1024
1043
|
declare namespace ForceCloseEvent {
|
|
1025
1044
|
type InputTuple = [
|
|
1026
|
-
positionManager: AddressLike,
|
|
1027
1045
|
positionId: BytesLike,
|
|
1028
|
-
marketId: BytesLike,
|
|
1029
1046
|
totalCollateral: BigNumberish,
|
|
1030
1047
|
totalPayment: BigNumberish,
|
|
1031
1048
|
repaidDebt: BigNumberish
|
|
1032
1049
|
];
|
|
1033
1050
|
type OutputTuple = [
|
|
1034
|
-
positionManager: string,
|
|
1035
1051
|
positionId: string,
|
|
1036
|
-
marketId: string,
|
|
1037
1052
|
totalCollateral: bigint,
|
|
1038
1053
|
totalPayment: bigint,
|
|
1039
1054
|
repaidDebt: bigint
|
|
1040
1055
|
];
|
|
1041
1056
|
interface OutputObject {
|
|
1042
|
-
positionManager: string;
|
|
1043
1057
|
positionId: string;
|
|
1044
|
-
marketId: string;
|
|
1045
1058
|
totalCollateral: bigint;
|
|
1046
1059
|
totalPayment: bigint;
|
|
1047
1060
|
repaidDebt: bigint;
|
|
@@ -1053,27 +1066,21 @@ declare namespace ForceCloseEvent {
|
|
|
1053
1066
|
}
|
|
1054
1067
|
declare namespace LiquidateEvent {
|
|
1055
1068
|
type InputTuple = [
|
|
1056
|
-
positionManager: AddressLike,
|
|
1057
1069
|
positionId: BytesLike,
|
|
1058
|
-
marketId: BytesLike,
|
|
1059
1070
|
totalCollateral: BigNumberish,
|
|
1060
1071
|
seizedCollateral: BigNumberish,
|
|
1061
1072
|
totalPayment: BigNumberish,
|
|
1062
1073
|
repaidDebt: BigNumberish
|
|
1063
1074
|
];
|
|
1064
1075
|
type OutputTuple = [
|
|
1065
|
-
positionManager: string,
|
|
1066
1076
|
positionId: string,
|
|
1067
|
-
marketId: string,
|
|
1068
1077
|
totalCollateral: bigint,
|
|
1069
1078
|
seizedCollateral: bigint,
|
|
1070
1079
|
totalPayment: bigint,
|
|
1071
1080
|
repaidDebt: bigint
|
|
1072
1081
|
];
|
|
1073
1082
|
interface OutputObject {
|
|
1074
|
-
positionManager: string;
|
|
1075
1083
|
positionId: string;
|
|
1076
|
-
marketId: string;
|
|
1077
1084
|
totalCollateral: bigint;
|
|
1078
1085
|
seizedCollateral: bigint;
|
|
1079
1086
|
totalPayment: bigint;
|
|
@@ -1086,17 +1093,13 @@ declare namespace LiquidateEvent {
|
|
|
1086
1093
|
}
|
|
1087
1094
|
declare namespace OnMorphoLiquidateEvent {
|
|
1088
1095
|
type InputTuple = [
|
|
1089
|
-
|
|
1096
|
+
apm: AddressLike,
|
|
1090
1097
|
repaidAssets: BigNumberish,
|
|
1091
1098
|
data: BytesLike
|
|
1092
1099
|
];
|
|
1093
|
-
type OutputTuple = [
|
|
1094
|
-
positionManager: string,
|
|
1095
|
-
repaidAssets: bigint,
|
|
1096
|
-
data: string
|
|
1097
|
-
];
|
|
1100
|
+
type OutputTuple = [apm: string, repaidAssets: bigint, data: string];
|
|
1098
1101
|
interface OutputObject {
|
|
1099
|
-
|
|
1102
|
+
apm: string;
|
|
1100
1103
|
repaidAssets: bigint;
|
|
1101
1104
|
data: string;
|
|
1102
1105
|
}
|
|
@@ -1107,17 +1110,13 @@ declare namespace OnMorphoLiquidateEvent {
|
|
|
1107
1110
|
}
|
|
1108
1111
|
declare namespace OnMorphoRepayEvent {
|
|
1109
1112
|
type InputTuple = [
|
|
1110
|
-
|
|
1113
|
+
apm: AddressLike,
|
|
1111
1114
|
repaidAssets: BigNumberish,
|
|
1112
1115
|
data: BytesLike
|
|
1113
1116
|
];
|
|
1114
|
-
type OutputTuple = [
|
|
1115
|
-
positionManager: string,
|
|
1116
|
-
repaidAssets: bigint,
|
|
1117
|
-
data: string
|
|
1118
|
-
];
|
|
1117
|
+
type OutputTuple = [apm: string, repaidAssets: bigint, data: string];
|
|
1119
1118
|
interface OutputObject {
|
|
1120
|
-
|
|
1119
|
+
apm: string;
|
|
1121
1120
|
repaidAssets: bigint;
|
|
1122
1121
|
data: string;
|
|
1123
1122
|
}
|
|
@@ -1128,31 +1127,28 @@ declare namespace OnMorphoRepayEvent {
|
|
|
1128
1127
|
}
|
|
1129
1128
|
declare namespace PaymentEvent {
|
|
1130
1129
|
type InputTuple = [
|
|
1131
|
-
tradeId: BytesLike,
|
|
1132
|
-
positionManager: AddressLike,
|
|
1133
1130
|
positionId: BytesLike,
|
|
1134
|
-
|
|
1131
|
+
apm: AddressLike,
|
|
1132
|
+
tradeId: BytesLike,
|
|
1135
1133
|
marketId: BytesLike,
|
|
1136
|
-
|
|
1137
|
-
|
|
1134
|
+
payer: AddressLike,
|
|
1135
|
+
isLiquidated: boolean
|
|
1138
1136
|
];
|
|
1139
1137
|
type OutputTuple = [
|
|
1140
|
-
tradeId: string,
|
|
1141
|
-
positionManager: string,
|
|
1142
1138
|
positionId: string,
|
|
1143
|
-
|
|
1139
|
+
apm: string,
|
|
1140
|
+
tradeId: string,
|
|
1144
1141
|
marketId: string,
|
|
1145
|
-
|
|
1146
|
-
|
|
1142
|
+
payer: string,
|
|
1143
|
+
isLiquidated: boolean
|
|
1147
1144
|
];
|
|
1148
1145
|
interface OutputObject {
|
|
1149
|
-
tradeId: string;
|
|
1150
|
-
positionManager: string;
|
|
1151
1146
|
positionId: string;
|
|
1152
|
-
|
|
1147
|
+
apm: string;
|
|
1148
|
+
tradeId: string;
|
|
1153
1149
|
marketId: string;
|
|
1154
|
-
|
|
1155
|
-
|
|
1150
|
+
payer: string;
|
|
1151
|
+
isLiquidated: boolean;
|
|
1156
1152
|
}
|
|
1157
1153
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1158
1154
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -1163,19 +1159,19 @@ declare namespace ProfitTakenEvent {
|
|
|
1163
1159
|
type InputTuple = [
|
|
1164
1160
|
positionId: BytesLike,
|
|
1165
1161
|
token: AddressLike,
|
|
1166
|
-
|
|
1162
|
+
recipient: AddressLike,
|
|
1167
1163
|
amount: BigNumberish
|
|
1168
1164
|
];
|
|
1169
1165
|
type OutputTuple = [
|
|
1170
1166
|
positionId: string,
|
|
1171
1167
|
token: string,
|
|
1172
|
-
|
|
1168
|
+
recipient: string,
|
|
1173
1169
|
amount: bigint
|
|
1174
1170
|
];
|
|
1175
1171
|
interface OutputObject {
|
|
1176
1172
|
positionId: string;
|
|
1177
1173
|
token: string;
|
|
1178
|
-
|
|
1174
|
+
recipient: string;
|
|
1179
1175
|
amount: bigint;
|
|
1180
1176
|
}
|
|
1181
1177
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -1183,24 +1179,24 @@ declare namespace ProfitTakenEvent {
|
|
|
1183
1179
|
type Log = TypedEventLog<Event>;
|
|
1184
1180
|
type LogDescription = TypedLogDescription<Event>;
|
|
1185
1181
|
}
|
|
1186
|
-
declare namespace
|
|
1182
|
+
declare namespace RefundEvent {
|
|
1187
1183
|
type InputTuple = [
|
|
1188
1184
|
positionId: BytesLike,
|
|
1189
1185
|
token: AddressLike,
|
|
1190
1186
|
recipient: AddressLike,
|
|
1191
|
-
|
|
1187
|
+
amount: BigNumberish
|
|
1192
1188
|
];
|
|
1193
1189
|
type OutputTuple = [
|
|
1194
1190
|
positionId: string,
|
|
1195
1191
|
token: string,
|
|
1196
1192
|
recipient: string,
|
|
1197
|
-
|
|
1193
|
+
amount: bigint
|
|
1198
1194
|
];
|
|
1199
1195
|
interface OutputObject {
|
|
1200
1196
|
positionId: string;
|
|
1201
1197
|
token: string;
|
|
1202
1198
|
recipient: string;
|
|
1203
|
-
|
|
1199
|
+
amount: bigint;
|
|
1204
1200
|
}
|
|
1205
1201
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1206
1202
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -1241,6 +1237,13 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1241
1237
|
extensions: bigint[];
|
|
1242
1238
|
}
|
|
1243
1239
|
], "view">;
|
|
1240
|
+
finalizePosition: TypedContractMethod<[
|
|
1241
|
+
apm: AddressLike,
|
|
1242
|
+
positionId: BytesLike,
|
|
1243
|
+
signature: BytesLike
|
|
1244
|
+
], [
|
|
1245
|
+
void
|
|
1246
|
+
], "nonpayable">;
|
|
1244
1247
|
onMorphoLiquidate: TypedContractMethod<[
|
|
1245
1248
|
repaidAssets: BigNumberish,
|
|
1246
1249
|
data: BytesLike
|
|
@@ -1261,12 +1264,12 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1261
1264
|
}
|
|
1262
1265
|
], "view">;
|
|
1263
1266
|
payment: TypedContractMethod<[
|
|
1267
|
+
apm: AddressLike,
|
|
1268
|
+
positionId: BytesLike,
|
|
1264
1269
|
tradeId: BytesLike,
|
|
1265
|
-
positionManager: AddressLike,
|
|
1266
1270
|
amount: BigNumberish,
|
|
1267
|
-
positionId: BytesLike,
|
|
1268
1271
|
isLiquidate: boolean,
|
|
1269
|
-
|
|
1272
|
+
signature: BytesLike
|
|
1270
1273
|
], [
|
|
1271
1274
|
void
|
|
1272
1275
|
], "nonpayable">;
|
|
@@ -1292,6 +1295,13 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1292
1295
|
extensions: bigint[];
|
|
1293
1296
|
}
|
|
1294
1297
|
], "view">;
|
|
1298
|
+
getFunction(nameOrSignature: "finalizePosition"): TypedContractMethod<[
|
|
1299
|
+
apm: AddressLike,
|
|
1300
|
+
positionId: BytesLike,
|
|
1301
|
+
signature: BytesLike
|
|
1302
|
+
], [
|
|
1303
|
+
void
|
|
1304
|
+
], "nonpayable">;
|
|
1295
1305
|
getFunction(nameOrSignature: "onMorphoLiquidate"): TypedContractMethod<[
|
|
1296
1306
|
repaidAssets: BigNumberish,
|
|
1297
1307
|
data: BytesLike
|
|
@@ -1312,40 +1322,43 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1312
1322
|
}
|
|
1313
1323
|
], "view">;
|
|
1314
1324
|
getFunction(nameOrSignature: "payment"): TypedContractMethod<[
|
|
1325
|
+
apm: AddressLike,
|
|
1326
|
+
positionId: BytesLike,
|
|
1315
1327
|
tradeId: BytesLike,
|
|
1316
|
-
positionManager: AddressLike,
|
|
1317
1328
|
amount: BigNumberish,
|
|
1318
|
-
positionId: BytesLike,
|
|
1319
1329
|
isLiquidate: boolean,
|
|
1320
|
-
|
|
1330
|
+
signature: BytesLike
|
|
1321
1331
|
], [
|
|
1322
1332
|
void
|
|
1323
1333
|
], "nonpayable">;
|
|
1324
1334
|
getEvent(key: "EIP712DomainChanged"): TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1335
|
+
getEvent(key: "FinalizePosition"): TypedContractEvent<FinalizePositionEvent.InputTuple, FinalizePositionEvent.OutputTuple, FinalizePositionEvent.OutputObject>;
|
|
1325
1336
|
getEvent(key: "ForceClose"): TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
|
|
1326
1337
|
getEvent(key: "Liquidate"): TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
1327
1338
|
getEvent(key: "OnMorphoLiquidate"): TypedContractEvent<OnMorphoLiquidateEvent.InputTuple, OnMorphoLiquidateEvent.OutputTuple, OnMorphoLiquidateEvent.OutputObject>;
|
|
1328
1339
|
getEvent(key: "OnMorphoRepay"): TypedContractEvent<OnMorphoRepayEvent.InputTuple, OnMorphoRepayEvent.OutputTuple, OnMorphoRepayEvent.OutputObject>;
|
|
1329
1340
|
getEvent(key: "Payment"): TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1330
1341
|
getEvent(key: "ProfitTaken"): TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1331
|
-
getEvent(key: "
|
|
1342
|
+
getEvent(key: "Refund"): TypedContractEvent<RefundEvent.InputTuple, RefundEvent.OutputTuple, RefundEvent.OutputObject>;
|
|
1332
1343
|
filters: {
|
|
1333
1344
|
"EIP712DomainChanged()": TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1334
1345
|
EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1335
|
-
"
|
|
1346
|
+
"FinalizePosition(bytes32,address,uint256)": TypedContractEvent<FinalizePositionEvent.InputTuple, FinalizePositionEvent.OutputTuple, FinalizePositionEvent.OutputObject>;
|
|
1347
|
+
FinalizePosition: TypedContractEvent<FinalizePositionEvent.InputTuple, FinalizePositionEvent.OutputTuple, FinalizePositionEvent.OutputObject>;
|
|
1348
|
+
"ForceClose(bytes32,uint256,uint256,uint256)": TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
|
|
1336
1349
|
ForceClose: TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
|
|
1337
|
-
"Liquidate(
|
|
1350
|
+
"Liquidate(bytes32,uint256,uint256,uint256,uint256)": TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
1338
1351
|
Liquidate: TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
1339
1352
|
"OnMorphoLiquidate(address,uint256,bytes)": TypedContractEvent<OnMorphoLiquidateEvent.InputTuple, OnMorphoLiquidateEvent.OutputTuple, OnMorphoLiquidateEvent.OutputObject>;
|
|
1340
1353
|
OnMorphoLiquidate: TypedContractEvent<OnMorphoLiquidateEvent.InputTuple, OnMorphoLiquidateEvent.OutputTuple, OnMorphoLiquidateEvent.OutputObject>;
|
|
1341
1354
|
"OnMorphoRepay(address,uint256,bytes)": TypedContractEvent<OnMorphoRepayEvent.InputTuple, OnMorphoRepayEvent.OutputTuple, OnMorphoRepayEvent.OutputObject>;
|
|
1342
1355
|
OnMorphoRepay: TypedContractEvent<OnMorphoRepayEvent.InputTuple, OnMorphoRepayEvent.OutputTuple, OnMorphoRepayEvent.OutputObject>;
|
|
1343
|
-
"Payment(bytes32,address,bytes32,
|
|
1356
|
+
"Payment(bytes32,address,bytes32,bytes32,address,bool)": TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1344
1357
|
Payment: TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1345
1358
|
"ProfitTaken(bytes32,address,address,uint256)": TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1346
1359
|
ProfitTaken: TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1347
|
-
"
|
|
1348
|
-
|
|
1360
|
+
"Refund(bytes32,address,address,uint256)": TypedContractEvent<RefundEvent.InputTuple, RefundEvent.OutputTuple, RefundEvent.OutputObject>;
|
|
1361
|
+
Refund: TypedContractEvent<RefundEvent.InputTuple, RefundEvent.OutputTuple, RefundEvent.OutputObject>;
|
|
1349
1362
|
};
|
|
1350
1363
|
}
|
|
1351
1364
|
|
|
@@ -3926,20 +3939,12 @@ declare class MorphoLiquidator__factory {
|
|
|
3926
3939
|
readonly name: "ECDSAInvalidSignatureS";
|
|
3927
3940
|
readonly type: "error";
|
|
3928
3941
|
}, {
|
|
3929
|
-
readonly inputs: readonly [
|
|
3930
|
-
|
|
3931
|
-
readonly name: "expected";
|
|
3932
|
-
readonly type: "address";
|
|
3933
|
-
}, {
|
|
3934
|
-
readonly internalType: "address";
|
|
3935
|
-
readonly name: "actual";
|
|
3936
|
-
readonly type: "address";
|
|
3937
|
-
}];
|
|
3938
|
-
readonly name: "InconsistentAsset";
|
|
3942
|
+
readonly inputs: readonly [];
|
|
3943
|
+
readonly name: "InvalidAmount";
|
|
3939
3944
|
readonly type: "error";
|
|
3940
3945
|
}, {
|
|
3941
3946
|
readonly inputs: readonly [];
|
|
3942
|
-
readonly name: "
|
|
3947
|
+
readonly name: "InvalidBorrowShares";
|
|
3943
3948
|
readonly type: "error";
|
|
3944
3949
|
}, {
|
|
3945
3950
|
readonly inputs: readonly [{
|
|
@@ -3959,11 +3964,7 @@ declare class MorphoLiquidator__factory {
|
|
|
3959
3964
|
readonly name: "validator";
|
|
3960
3965
|
readonly type: "address";
|
|
3961
3966
|
}];
|
|
3962
|
-
readonly name: "
|
|
3963
|
-
readonly type: "error";
|
|
3964
|
-
}, {
|
|
3965
|
-
readonly inputs: readonly [];
|
|
3966
|
-
readonly name: "NotEnoughPaymentAmount";
|
|
3967
|
+
readonly name: "InvalidValidator";
|
|
3967
3968
|
readonly type: "error";
|
|
3968
3969
|
}, {
|
|
3969
3970
|
readonly inputs: readonly [];
|
|
@@ -4001,6 +4002,26 @@ declare class MorphoLiquidator__factory {
|
|
|
4001
4002
|
}];
|
|
4002
4003
|
readonly name: "StringTooLong";
|
|
4003
4004
|
readonly type: "error";
|
|
4005
|
+
}, {
|
|
4006
|
+
readonly inputs: readonly [{
|
|
4007
|
+
readonly internalType: "address";
|
|
4008
|
+
readonly name: "expected";
|
|
4009
|
+
readonly type: "address";
|
|
4010
|
+
}, {
|
|
4011
|
+
readonly internalType: "address";
|
|
4012
|
+
readonly name: "actual";
|
|
4013
|
+
readonly type: "address";
|
|
4014
|
+
}];
|
|
4015
|
+
readonly name: "TokenMismatch";
|
|
4016
|
+
readonly type: "error";
|
|
4017
|
+
}, {
|
|
4018
|
+
readonly inputs: readonly [{
|
|
4019
|
+
readonly internalType: "address";
|
|
4020
|
+
readonly name: "sender";
|
|
4021
|
+
readonly type: "address";
|
|
4022
|
+
}];
|
|
4023
|
+
readonly name: "Unauthorized";
|
|
4024
|
+
readonly type: "error";
|
|
4004
4025
|
}, {
|
|
4005
4026
|
readonly inputs: readonly [];
|
|
4006
4027
|
readonly name: "ZeroAddress";
|
|
@@ -4017,19 +4038,29 @@ declare class MorphoLiquidator__factory {
|
|
|
4017
4038
|
}, {
|
|
4018
4039
|
readonly anonymous: false;
|
|
4019
4040
|
readonly inputs: readonly [{
|
|
4020
|
-
readonly indexed: true;
|
|
4021
|
-
readonly internalType: "address";
|
|
4022
|
-
readonly name: "positionManager";
|
|
4023
|
-
readonly type: "address";
|
|
4024
|
-
}, {
|
|
4025
4041
|
readonly indexed: true;
|
|
4026
4042
|
readonly internalType: "bytes32";
|
|
4027
4043
|
readonly name: "positionId";
|
|
4028
4044
|
readonly type: "bytes32";
|
|
4045
|
+
}, {
|
|
4046
|
+
readonly indexed: true;
|
|
4047
|
+
readonly internalType: "address";
|
|
4048
|
+
readonly name: "apm";
|
|
4049
|
+
readonly type: "address";
|
|
4029
4050
|
}, {
|
|
4030
4051
|
readonly indexed: false;
|
|
4052
|
+
readonly internalType: "uint256";
|
|
4053
|
+
readonly name: "amount";
|
|
4054
|
+
readonly type: "uint256";
|
|
4055
|
+
}];
|
|
4056
|
+
readonly name: "FinalizePosition";
|
|
4057
|
+
readonly type: "event";
|
|
4058
|
+
}, {
|
|
4059
|
+
readonly anonymous: false;
|
|
4060
|
+
readonly inputs: readonly [{
|
|
4061
|
+
readonly indexed: true;
|
|
4031
4062
|
readonly internalType: "bytes32";
|
|
4032
|
-
readonly name: "
|
|
4063
|
+
readonly name: "positionId";
|
|
4033
4064
|
readonly type: "bytes32";
|
|
4034
4065
|
}, {
|
|
4035
4066
|
readonly indexed: false;
|
|
@@ -4052,20 +4083,10 @@ declare class MorphoLiquidator__factory {
|
|
|
4052
4083
|
}, {
|
|
4053
4084
|
readonly anonymous: false;
|
|
4054
4085
|
readonly inputs: readonly [{
|
|
4055
|
-
readonly indexed: true;
|
|
4056
|
-
readonly internalType: "address";
|
|
4057
|
-
readonly name: "positionManager";
|
|
4058
|
-
readonly type: "address";
|
|
4059
|
-
}, {
|
|
4060
4086
|
readonly indexed: true;
|
|
4061
4087
|
readonly internalType: "bytes32";
|
|
4062
4088
|
readonly name: "positionId";
|
|
4063
4089
|
readonly type: "bytes32";
|
|
4064
|
-
}, {
|
|
4065
|
-
readonly indexed: false;
|
|
4066
|
-
readonly internalType: "bytes32";
|
|
4067
|
-
readonly name: "marketId";
|
|
4068
|
-
readonly type: "bytes32";
|
|
4069
4090
|
}, {
|
|
4070
4091
|
readonly indexed: false;
|
|
4071
4092
|
readonly internalType: "uint256";
|
|
@@ -4094,7 +4115,7 @@ declare class MorphoLiquidator__factory {
|
|
|
4094
4115
|
readonly inputs: readonly [{
|
|
4095
4116
|
readonly indexed: true;
|
|
4096
4117
|
readonly internalType: "address";
|
|
4097
|
-
readonly name: "
|
|
4118
|
+
readonly name: "apm";
|
|
4098
4119
|
readonly type: "address";
|
|
4099
4120
|
}, {
|
|
4100
4121
|
readonly indexed: false;
|
|
@@ -4114,7 +4135,7 @@ declare class MorphoLiquidator__factory {
|
|
|
4114
4135
|
readonly inputs: readonly [{
|
|
4115
4136
|
readonly indexed: true;
|
|
4116
4137
|
readonly internalType: "address";
|
|
4117
|
-
readonly name: "
|
|
4138
|
+
readonly name: "apm";
|
|
4118
4139
|
readonly type: "address";
|
|
4119
4140
|
}, {
|
|
4120
4141
|
readonly indexed: false;
|
|
@@ -4134,23 +4155,18 @@ declare class MorphoLiquidator__factory {
|
|
|
4134
4155
|
readonly inputs: readonly [{
|
|
4135
4156
|
readonly indexed: true;
|
|
4136
4157
|
readonly internalType: "bytes32";
|
|
4137
|
-
readonly name: "
|
|
4158
|
+
readonly name: "positionId";
|
|
4138
4159
|
readonly type: "bytes32";
|
|
4139
4160
|
}, {
|
|
4140
4161
|
readonly indexed: true;
|
|
4141
4162
|
readonly internalType: "address";
|
|
4142
|
-
readonly name: "
|
|
4163
|
+
readonly name: "apm";
|
|
4143
4164
|
readonly type: "address";
|
|
4144
4165
|
}, {
|
|
4145
4166
|
readonly indexed: true;
|
|
4146
4167
|
readonly internalType: "bytes32";
|
|
4147
|
-
readonly name: "
|
|
4168
|
+
readonly name: "tradeId";
|
|
4148
4169
|
readonly type: "bytes32";
|
|
4149
|
-
}, {
|
|
4150
|
-
readonly indexed: false;
|
|
4151
|
-
readonly internalType: "address";
|
|
4152
|
-
readonly name: "sender";
|
|
4153
|
-
readonly type: "address";
|
|
4154
4170
|
}, {
|
|
4155
4171
|
readonly indexed: false;
|
|
4156
4172
|
readonly internalType: "bytes32";
|
|
@@ -4158,14 +4174,14 @@ declare class MorphoLiquidator__factory {
|
|
|
4158
4174
|
readonly type: "bytes32";
|
|
4159
4175
|
}, {
|
|
4160
4176
|
readonly indexed: false;
|
|
4161
|
-
readonly internalType: "
|
|
4162
|
-
readonly name: "
|
|
4163
|
-
readonly type: "
|
|
4177
|
+
readonly internalType: "address";
|
|
4178
|
+
readonly name: "payer";
|
|
4179
|
+
readonly type: "address";
|
|
4164
4180
|
}, {
|
|
4165
4181
|
readonly indexed: false;
|
|
4166
|
-
readonly internalType: "
|
|
4167
|
-
readonly name: "
|
|
4168
|
-
readonly type: "
|
|
4182
|
+
readonly internalType: "bool";
|
|
4183
|
+
readonly name: "isLiquidated";
|
|
4184
|
+
readonly type: "bool";
|
|
4169
4185
|
}];
|
|
4170
4186
|
readonly name: "Payment";
|
|
4171
4187
|
readonly type: "event";
|
|
@@ -4184,7 +4200,7 @@ declare class MorphoLiquidator__factory {
|
|
|
4184
4200
|
}, {
|
|
4185
4201
|
readonly indexed: true;
|
|
4186
4202
|
readonly internalType: "address";
|
|
4187
|
-
readonly name: "
|
|
4203
|
+
readonly name: "recipient";
|
|
4188
4204
|
readonly type: "address";
|
|
4189
4205
|
}, {
|
|
4190
4206
|
readonly indexed: false;
|
|
@@ -4214,10 +4230,10 @@ declare class MorphoLiquidator__factory {
|
|
|
4214
4230
|
}, {
|
|
4215
4231
|
readonly indexed: false;
|
|
4216
4232
|
readonly internalType: "uint256";
|
|
4217
|
-
readonly name: "
|
|
4233
|
+
readonly name: "amount";
|
|
4218
4234
|
readonly type: "uint256";
|
|
4219
4235
|
}];
|
|
4220
|
-
readonly name: "
|
|
4236
|
+
readonly name: "Refund";
|
|
4221
4237
|
readonly type: "event";
|
|
4222
4238
|
}, {
|
|
4223
4239
|
readonly inputs: readonly [];
|
|
@@ -4263,6 +4279,24 @@ declare class MorphoLiquidator__factory {
|
|
|
4263
4279
|
}];
|
|
4264
4280
|
readonly stateMutability: "view";
|
|
4265
4281
|
readonly type: "function";
|
|
4282
|
+
}, {
|
|
4283
|
+
readonly inputs: readonly [{
|
|
4284
|
+
readonly internalType: "address";
|
|
4285
|
+
readonly name: "apm";
|
|
4286
|
+
readonly type: "address";
|
|
4287
|
+
}, {
|
|
4288
|
+
readonly internalType: "bytes32";
|
|
4289
|
+
readonly name: "positionId";
|
|
4290
|
+
readonly type: "bytes32";
|
|
4291
|
+
}, {
|
|
4292
|
+
readonly internalType: "bytes";
|
|
4293
|
+
readonly name: "signature";
|
|
4294
|
+
readonly type: "bytes";
|
|
4295
|
+
}];
|
|
4296
|
+
readonly name: "finalizePosition";
|
|
4297
|
+
readonly outputs: readonly [];
|
|
4298
|
+
readonly stateMutability: "nonpayable";
|
|
4299
|
+
readonly type: "function";
|
|
4266
4300
|
}, {
|
|
4267
4301
|
readonly inputs: readonly [{
|
|
4268
4302
|
readonly internalType: "uint256";
|
|
@@ -4307,28 +4341,28 @@ declare class MorphoLiquidator__factory {
|
|
|
4307
4341
|
readonly type: "function";
|
|
4308
4342
|
}, {
|
|
4309
4343
|
readonly inputs: readonly [{
|
|
4344
|
+
readonly internalType: "address";
|
|
4345
|
+
readonly name: "apm";
|
|
4346
|
+
readonly type: "address";
|
|
4347
|
+
}, {
|
|
4310
4348
|
readonly internalType: "bytes32";
|
|
4311
|
-
readonly name: "
|
|
4349
|
+
readonly name: "positionId";
|
|
4312
4350
|
readonly type: "bytes32";
|
|
4313
4351
|
}, {
|
|
4314
|
-
readonly internalType: "
|
|
4315
|
-
readonly name: "
|
|
4316
|
-
readonly type: "
|
|
4352
|
+
readonly internalType: "bytes32";
|
|
4353
|
+
readonly name: "tradeId";
|
|
4354
|
+
readonly type: "bytes32";
|
|
4317
4355
|
}, {
|
|
4318
4356
|
readonly internalType: "uint256";
|
|
4319
4357
|
readonly name: "amount";
|
|
4320
4358
|
readonly type: "uint256";
|
|
4321
|
-
}, {
|
|
4322
|
-
readonly internalType: "bytes32";
|
|
4323
|
-
readonly name: "positionId";
|
|
4324
|
-
readonly type: "bytes32";
|
|
4325
4359
|
}, {
|
|
4326
4360
|
readonly internalType: "bool";
|
|
4327
4361
|
readonly name: "isLiquidate";
|
|
4328
4362
|
readonly type: "bool";
|
|
4329
4363
|
}, {
|
|
4330
4364
|
readonly internalType: "bytes";
|
|
4331
|
-
readonly name: "
|
|
4365
|
+
readonly name: "signature";
|
|
4332
4366
|
readonly type: "bytes";
|
|
4333
4367
|
}];
|
|
4334
4368
|
readonly name: "payment";
|