@optimex-xyz/market-maker-sdk 0.9.0-dev-df6089b → 0.9.0-dev-6069ee6
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 +276 -118
- package/dist/index.d.ts +276 -118
- package/dist/index.js +165 -72
- package/dist/index.mjs +164 -71
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -988,17 +988,14 @@ interface ERC20 extends BaseContract {
|
|
|
988
988
|
};
|
|
989
989
|
}
|
|
990
990
|
|
|
991
|
-
interface
|
|
992
|
-
getFunction(nameOrSignature: "
|
|
993
|
-
getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged" | "ForceClose" | "Liquidate" | "Payment"): EventFragment;
|
|
994
|
-
encodeFunctionData(functionFragment: "
|
|
995
|
-
encodeFunctionData(functionFragment: "MORPHO", values?: undefined): string;
|
|
996
|
-
encodeFunctionData(functionFragment: "VALIDATOR_FORCE_CLOSE_TYPEHASH", values?: undefined): string;
|
|
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" | "Refunded"): EventFragment;
|
|
994
|
+
encodeFunctionData(functionFragment: "MORPHO_MANAGEMENT", values?: undefined): string;
|
|
997
995
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
998
996
|
encodeFunctionData(functionFragment: "onMorphoLiquidate", values: [BigNumberish, BytesLike]): string;
|
|
999
997
|
encodeFunctionData(functionFragment: "onMorphoRepay", values: [BigNumberish, BytesLike]): string;
|
|
1000
998
|
encodeFunctionData(functionFragment: "optimexDomain", values?: undefined): string;
|
|
1001
|
-
encodeFunctionData(functionFragment: "owBtc", values?: undefined): string;
|
|
1002
999
|
encodeFunctionData(functionFragment: "payment", values: [
|
|
1003
1000
|
BytesLike,
|
|
1004
1001
|
AddressLike,
|
|
@@ -1007,14 +1004,11 @@ interface LendingLiquidationInterface extends Interface {
|
|
|
1007
1004
|
boolean,
|
|
1008
1005
|
BytesLike
|
|
1009
1006
|
]): string;
|
|
1010
|
-
decodeFunctionResult(functionFragment: "
|
|
1011
|
-
decodeFunctionResult(functionFragment: "MORPHO", data: BytesLike): Result;
|
|
1012
|
-
decodeFunctionResult(functionFragment: "VALIDATOR_FORCE_CLOSE_TYPEHASH", data: BytesLike): Result;
|
|
1007
|
+
decodeFunctionResult(functionFragment: "MORPHO_MANAGEMENT", data: BytesLike): Result;
|
|
1013
1008
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
1014
1009
|
decodeFunctionResult(functionFragment: "onMorphoLiquidate", data: BytesLike): Result;
|
|
1015
1010
|
decodeFunctionResult(functionFragment: "onMorphoRepay", data: BytesLike): Result;
|
|
1016
1011
|
decodeFunctionResult(functionFragment: "optimexDomain", data: BytesLike): Result;
|
|
1017
|
-
decodeFunctionResult(functionFragment: "owBtc", data: BytesLike): Result;
|
|
1018
1012
|
decodeFunctionResult(functionFragment: "payment", data: BytesLike): Result;
|
|
1019
1013
|
}
|
|
1020
1014
|
declare namespace EIP712DomainChangedEvent$1 {
|
|
@@ -1031,26 +1025,26 @@ declare namespace ForceCloseEvent {
|
|
|
1031
1025
|
type InputTuple = [
|
|
1032
1026
|
positionManager: AddressLike,
|
|
1033
1027
|
positionId: BytesLike,
|
|
1034
|
-
tradeId: BytesLike,
|
|
1035
1028
|
marketId: BytesLike,
|
|
1036
|
-
|
|
1037
|
-
|
|
1029
|
+
totalCollateral: BigNumberish,
|
|
1030
|
+
totalPayment: BigNumberish,
|
|
1031
|
+
repaidDebt: BigNumberish
|
|
1038
1032
|
];
|
|
1039
1033
|
type OutputTuple = [
|
|
1040
1034
|
positionManager: string,
|
|
1041
1035
|
positionId: string,
|
|
1042
|
-
tradeId: string,
|
|
1043
1036
|
marketId: string,
|
|
1044
|
-
|
|
1045
|
-
|
|
1037
|
+
totalCollateral: bigint,
|
|
1038
|
+
totalPayment: bigint,
|
|
1039
|
+
repaidDebt: bigint
|
|
1046
1040
|
];
|
|
1047
1041
|
interface OutputObject {
|
|
1048
1042
|
positionManager: string;
|
|
1049
1043
|
positionId: string;
|
|
1050
|
-
tradeId: string;
|
|
1051
1044
|
marketId: string;
|
|
1052
|
-
|
|
1053
|
-
|
|
1045
|
+
totalCollateral: bigint;
|
|
1046
|
+
totalPayment: bigint;
|
|
1047
|
+
repaidDebt: bigint;
|
|
1054
1048
|
}
|
|
1055
1049
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1056
1050
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -1061,35 +1055,71 @@ declare namespace LiquidateEvent {
|
|
|
1061
1055
|
type InputTuple = [
|
|
1062
1056
|
positionManager: AddressLike,
|
|
1063
1057
|
positionId: BytesLike,
|
|
1064
|
-
tradeId: BytesLike,
|
|
1065
|
-
sender: AddressLike,
|
|
1066
1058
|
marketId: BytesLike,
|
|
1059
|
+
totalCollateral: BigNumberish,
|
|
1067
1060
|
seizedCollateral: BigNumberish,
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
bonusLoan: BigNumberish
|
|
1061
|
+
totalPayment: BigNumberish,
|
|
1062
|
+
repaidDebt: BigNumberish
|
|
1071
1063
|
];
|
|
1072
1064
|
type OutputTuple = [
|
|
1073
1065
|
positionManager: string,
|
|
1074
1066
|
positionId: string,
|
|
1075
|
-
tradeId: string,
|
|
1076
|
-
sender: string,
|
|
1077
1067
|
marketId: string,
|
|
1068
|
+
totalCollateral: bigint,
|
|
1078
1069
|
seizedCollateral: bigint,
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
bonusLoan: bigint
|
|
1070
|
+
totalPayment: bigint,
|
|
1071
|
+
repaidDebt: bigint
|
|
1082
1072
|
];
|
|
1083
1073
|
interface OutputObject {
|
|
1084
1074
|
positionManager: string;
|
|
1085
1075
|
positionId: string;
|
|
1086
|
-
tradeId: string;
|
|
1087
|
-
sender: string;
|
|
1088
1076
|
marketId: string;
|
|
1077
|
+
totalCollateral: bigint;
|
|
1089
1078
|
seizedCollateral: bigint;
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1079
|
+
totalPayment: bigint;
|
|
1080
|
+
repaidDebt: bigint;
|
|
1081
|
+
}
|
|
1082
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1083
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1084
|
+
type Log = TypedEventLog<Event>;
|
|
1085
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1086
|
+
}
|
|
1087
|
+
declare namespace OnMorphoLiquidateEvent {
|
|
1088
|
+
type InputTuple = [
|
|
1089
|
+
positionManager: AddressLike,
|
|
1090
|
+
repaidAssets: BigNumberish,
|
|
1091
|
+
data: BytesLike
|
|
1092
|
+
];
|
|
1093
|
+
type OutputTuple = [
|
|
1094
|
+
positionManager: string,
|
|
1095
|
+
repaidAssets: bigint,
|
|
1096
|
+
data: string
|
|
1097
|
+
];
|
|
1098
|
+
interface OutputObject {
|
|
1099
|
+
positionManager: string;
|
|
1100
|
+
repaidAssets: bigint;
|
|
1101
|
+
data: string;
|
|
1102
|
+
}
|
|
1103
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1104
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1105
|
+
type Log = TypedEventLog<Event>;
|
|
1106
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1107
|
+
}
|
|
1108
|
+
declare namespace OnMorphoRepayEvent {
|
|
1109
|
+
type InputTuple = [
|
|
1110
|
+
positionManager: AddressLike,
|
|
1111
|
+
repaidAssets: BigNumberish,
|
|
1112
|
+
data: BytesLike
|
|
1113
|
+
];
|
|
1114
|
+
type OutputTuple = [
|
|
1115
|
+
positionManager: string,
|
|
1116
|
+
repaidAssets: bigint,
|
|
1117
|
+
data: string
|
|
1118
|
+
];
|
|
1119
|
+
interface OutputObject {
|
|
1120
|
+
positionManager: string;
|
|
1121
|
+
repaidAssets: bigint;
|
|
1122
|
+
data: string;
|
|
1093
1123
|
}
|
|
1094
1124
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1095
1125
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -1098,27 +1128,27 @@ declare namespace LiquidateEvent {
|
|
|
1098
1128
|
}
|
|
1099
1129
|
declare namespace PaymentEvent {
|
|
1100
1130
|
type InputTuple = [
|
|
1131
|
+
tradeId: BytesLike,
|
|
1101
1132
|
positionManager: AddressLike,
|
|
1102
1133
|
positionId: BytesLike,
|
|
1103
|
-
tradeId: BytesLike,
|
|
1104
1134
|
sender: AddressLike,
|
|
1105
1135
|
marketId: BytesLike,
|
|
1106
1136
|
amount: BigNumberish,
|
|
1107
1137
|
collateral: BigNumberish
|
|
1108
1138
|
];
|
|
1109
1139
|
type OutputTuple = [
|
|
1140
|
+
tradeId: string,
|
|
1110
1141
|
positionManager: string,
|
|
1111
1142
|
positionId: string,
|
|
1112
|
-
tradeId: string,
|
|
1113
1143
|
sender: string,
|
|
1114
1144
|
marketId: string,
|
|
1115
1145
|
amount: bigint,
|
|
1116
1146
|
collateral: bigint
|
|
1117
1147
|
];
|
|
1118
1148
|
interface OutputObject {
|
|
1149
|
+
tradeId: string;
|
|
1119
1150
|
positionManager: string;
|
|
1120
1151
|
positionId: string;
|
|
1121
|
-
tradeId: string;
|
|
1122
1152
|
sender: string;
|
|
1123
1153
|
marketId: string;
|
|
1124
1154
|
amount: bigint;
|
|
@@ -1129,10 +1159,58 @@ declare namespace PaymentEvent {
|
|
|
1129
1159
|
type Log = TypedEventLog<Event>;
|
|
1130
1160
|
type LogDescription = TypedLogDescription<Event>;
|
|
1131
1161
|
}
|
|
1132
|
-
|
|
1133
|
-
|
|
1162
|
+
declare namespace ProfitTakenEvent {
|
|
1163
|
+
type InputTuple = [
|
|
1164
|
+
positionId: BytesLike,
|
|
1165
|
+
token: AddressLike,
|
|
1166
|
+
pFeeReceiver: AddressLike,
|
|
1167
|
+
amount: BigNumberish
|
|
1168
|
+
];
|
|
1169
|
+
type OutputTuple = [
|
|
1170
|
+
positionId: string,
|
|
1171
|
+
token: string,
|
|
1172
|
+
pFeeReceiver: string,
|
|
1173
|
+
amount: bigint
|
|
1174
|
+
];
|
|
1175
|
+
interface OutputObject {
|
|
1176
|
+
positionId: string;
|
|
1177
|
+
token: string;
|
|
1178
|
+
pFeeReceiver: string;
|
|
1179
|
+
amount: bigint;
|
|
1180
|
+
}
|
|
1181
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1182
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1183
|
+
type Log = TypedEventLog<Event>;
|
|
1184
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1185
|
+
}
|
|
1186
|
+
declare namespace RefundedEvent {
|
|
1187
|
+
type InputTuple = [
|
|
1188
|
+
positionId: BytesLike,
|
|
1189
|
+
token: AddressLike,
|
|
1190
|
+
recipient: AddressLike,
|
|
1191
|
+
refundedAmount: BigNumberish
|
|
1192
|
+
];
|
|
1193
|
+
type OutputTuple = [
|
|
1194
|
+
positionId: string,
|
|
1195
|
+
token: string,
|
|
1196
|
+
recipient: string,
|
|
1197
|
+
refundedAmount: bigint
|
|
1198
|
+
];
|
|
1199
|
+
interface OutputObject {
|
|
1200
|
+
positionId: string;
|
|
1201
|
+
token: string;
|
|
1202
|
+
recipient: string;
|
|
1203
|
+
refundedAmount: bigint;
|
|
1204
|
+
}
|
|
1205
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1206
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1207
|
+
type Log = TypedEventLog<Event>;
|
|
1208
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1209
|
+
}
|
|
1210
|
+
interface MorphoLiquidator extends BaseContract {
|
|
1211
|
+
connect(runner?: ContractRunner | null): MorphoLiquidator;
|
|
1134
1212
|
waitForDeployment(): Promise<this>;
|
|
1135
|
-
interface:
|
|
1213
|
+
interface: MorphoLiquidatorInterface;
|
|
1136
1214
|
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1137
1215
|
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1138
1216
|
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
@@ -1142,9 +1220,7 @@ interface LendingLiquidation extends BaseContract {
|
|
|
1142
1220
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
1143
1221
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
1144
1222
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
1145
|
-
|
|
1146
|
-
MORPHO: TypedContractMethod<[], [string], "view">;
|
|
1147
|
-
VALIDATOR_FORCE_CLOSE_TYPEHASH: TypedContractMethod<[], [string], "view">;
|
|
1223
|
+
MORPHO_MANAGEMENT: TypedContractMethod<[], [string], "view">;
|
|
1148
1224
|
eip712Domain: TypedContractMethod<[
|
|
1149
1225
|
], [
|
|
1150
1226
|
[
|
|
@@ -1184,7 +1260,6 @@ interface LendingLiquidation extends BaseContract {
|
|
|
1184
1260
|
version: string;
|
|
1185
1261
|
}
|
|
1186
1262
|
], "view">;
|
|
1187
|
-
owBtc: TypedContractMethod<[], [string], "view">;
|
|
1188
1263
|
payment: TypedContractMethod<[
|
|
1189
1264
|
tradeId: BytesLike,
|
|
1190
1265
|
positionManager: AddressLike,
|
|
@@ -1196,9 +1271,7 @@ interface LendingLiquidation extends BaseContract {
|
|
|
1196
1271
|
void
|
|
1197
1272
|
], "nonpayable">;
|
|
1198
1273
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
1199
|
-
getFunction(nameOrSignature: "
|
|
1200
|
-
getFunction(nameOrSignature: "MORPHO"): TypedContractMethod<[], [string], "view">;
|
|
1201
|
-
getFunction(nameOrSignature: "VALIDATOR_FORCE_CLOSE_TYPEHASH"): TypedContractMethod<[], [string], "view">;
|
|
1274
|
+
getFunction(nameOrSignature: "MORPHO_MANAGEMENT"): TypedContractMethod<[], [string], "view">;
|
|
1202
1275
|
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
1203
1276
|
], [
|
|
1204
1277
|
[
|
|
@@ -1238,7 +1311,6 @@ interface LendingLiquidation extends BaseContract {
|
|
|
1238
1311
|
version: string;
|
|
1239
1312
|
}
|
|
1240
1313
|
], "view">;
|
|
1241
|
-
getFunction(nameOrSignature: "owBtc"): TypedContractMethod<[], [string], "view">;
|
|
1242
1314
|
getFunction(nameOrSignature: "payment"): TypedContractMethod<[
|
|
1243
1315
|
tradeId: BytesLike,
|
|
1244
1316
|
positionManager: AddressLike,
|
|
@@ -1252,16 +1324,28 @@ interface LendingLiquidation extends BaseContract {
|
|
|
1252
1324
|
getEvent(key: "EIP712DomainChanged"): TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1253
1325
|
getEvent(key: "ForceClose"): TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
|
|
1254
1326
|
getEvent(key: "Liquidate"): TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
1327
|
+
getEvent(key: "OnMorphoLiquidate"): TypedContractEvent<OnMorphoLiquidateEvent.InputTuple, OnMorphoLiquidateEvent.OutputTuple, OnMorphoLiquidateEvent.OutputObject>;
|
|
1328
|
+
getEvent(key: "OnMorphoRepay"): TypedContractEvent<OnMorphoRepayEvent.InputTuple, OnMorphoRepayEvent.OutputTuple, OnMorphoRepayEvent.OutputObject>;
|
|
1255
1329
|
getEvent(key: "Payment"): TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1330
|
+
getEvent(key: "ProfitTaken"): TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1331
|
+
getEvent(key: "Refunded"): TypedContractEvent<RefundedEvent.InputTuple, RefundedEvent.OutputTuple, RefundedEvent.OutputObject>;
|
|
1256
1332
|
filters: {
|
|
1257
1333
|
"EIP712DomainChanged()": TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1258
1334
|
EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1259
|
-
"ForceClose(address,bytes32,bytes32,
|
|
1335
|
+
"ForceClose(address,bytes32,bytes32,uint256,uint256,uint256)": TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
|
|
1260
1336
|
ForceClose: TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
|
|
1261
|
-
"Liquidate(address,bytes32,bytes32,
|
|
1337
|
+
"Liquidate(address,bytes32,bytes32,uint256,uint256,uint256,uint256)": TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
1262
1338
|
Liquidate: TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
1263
|
-
"
|
|
1339
|
+
"OnMorphoLiquidate(address,uint256,bytes)": TypedContractEvent<OnMorphoLiquidateEvent.InputTuple, OnMorphoLiquidateEvent.OutputTuple, OnMorphoLiquidateEvent.OutputObject>;
|
|
1340
|
+
OnMorphoLiquidate: TypedContractEvent<OnMorphoLiquidateEvent.InputTuple, OnMorphoLiquidateEvent.OutputTuple, OnMorphoLiquidateEvent.OutputObject>;
|
|
1341
|
+
"OnMorphoRepay(address,uint256,bytes)": TypedContractEvent<OnMorphoRepayEvent.InputTuple, OnMorphoRepayEvent.OutputTuple, OnMorphoRepayEvent.OutputObject>;
|
|
1342
|
+
OnMorphoRepay: TypedContractEvent<OnMorphoRepayEvent.InputTuple, OnMorphoRepayEvent.OutputTuple, OnMorphoRepayEvent.OutputObject>;
|
|
1343
|
+
"Payment(bytes32,address,bytes32,address,bytes32,uint256,uint256)": TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1264
1344
|
Payment: TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1345
|
+
"ProfitTaken(bytes32,address,address,uint256)": TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1346
|
+
ProfitTaken: TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1347
|
+
"Refunded(bytes32,address,address,uint256)": TypedContractEvent<RefundedEvent.InputTuple, RefundedEvent.OutputTuple, RefundedEvent.OutputObject>;
|
|
1348
|
+
Refunded: TypedContractEvent<RefundedEvent.InputTuple, RefundedEvent.OutputTuple, RefundedEvent.OutputObject>;
|
|
1265
1349
|
};
|
|
1266
1350
|
}
|
|
1267
1351
|
|
|
@@ -3804,19 +3888,11 @@ declare class ERC20__factory {
|
|
|
3804
3888
|
static connect(address: string, runner?: ContractRunner | null): ERC20;
|
|
3805
3889
|
}
|
|
3806
3890
|
|
|
3807
|
-
declare class
|
|
3891
|
+
declare class MorphoLiquidator__factory {
|
|
3808
3892
|
static readonly abi: readonly [{
|
|
3809
3893
|
readonly inputs: readonly [{
|
|
3810
3894
|
readonly internalType: "address";
|
|
3811
|
-
readonly name: "
|
|
3812
|
-
readonly type: "address";
|
|
3813
|
-
}, {
|
|
3814
|
-
readonly internalType: "address";
|
|
3815
|
-
readonly name: "_morpho";
|
|
3816
|
-
readonly type: "address";
|
|
3817
|
-
}, {
|
|
3818
|
-
readonly internalType: "address";
|
|
3819
|
-
readonly name: "_lendingManagement";
|
|
3895
|
+
readonly name: "morphoManagement";
|
|
3820
3896
|
readonly type: "address";
|
|
3821
3897
|
}, {
|
|
3822
3898
|
readonly internalType: "string";
|
|
@@ -3865,6 +3941,14 @@ declare class LendingLiquidation__factory {
|
|
|
3865
3941
|
readonly inputs: readonly [];
|
|
3866
3942
|
readonly name: "InvalidMorpho";
|
|
3867
3943
|
readonly type: "error";
|
|
3944
|
+
}, {
|
|
3945
|
+
readonly inputs: readonly [{
|
|
3946
|
+
readonly internalType: "bytes32";
|
|
3947
|
+
readonly name: "positionId";
|
|
3948
|
+
readonly type: "bytes32";
|
|
3949
|
+
}];
|
|
3950
|
+
readonly name: "InvalidPositionId";
|
|
3951
|
+
readonly type: "error";
|
|
3868
3952
|
}, {
|
|
3869
3953
|
readonly inputs: readonly [];
|
|
3870
3954
|
readonly name: "InvalidShortString";
|
|
@@ -3885,6 +3969,22 @@ declare class LendingLiquidation__factory {
|
|
|
3885
3969
|
readonly inputs: readonly [];
|
|
3886
3970
|
readonly name: "ReentrancyGuardReentrantCall";
|
|
3887
3971
|
readonly type: "error";
|
|
3972
|
+
}, {
|
|
3973
|
+
readonly inputs: readonly [{
|
|
3974
|
+
readonly internalType: "address";
|
|
3975
|
+
readonly name: "spender";
|
|
3976
|
+
readonly type: "address";
|
|
3977
|
+
}, {
|
|
3978
|
+
readonly internalType: "uint256";
|
|
3979
|
+
readonly name: "currentAllowance";
|
|
3980
|
+
readonly type: "uint256";
|
|
3981
|
+
}, {
|
|
3982
|
+
readonly internalType: "uint256";
|
|
3983
|
+
readonly name: "requestedDecrease";
|
|
3984
|
+
readonly type: "uint256";
|
|
3985
|
+
}];
|
|
3986
|
+
readonly name: "SafeERC20FailedDecreaseAllowance";
|
|
3987
|
+
readonly type: "error";
|
|
3888
3988
|
}, {
|
|
3889
3989
|
readonly inputs: readonly [{
|
|
3890
3990
|
readonly internalType: "address";
|
|
@@ -3901,6 +4001,14 @@ declare class LendingLiquidation__factory {
|
|
|
3901
4001
|
}];
|
|
3902
4002
|
readonly name: "StringTooLong";
|
|
3903
4003
|
readonly type: "error";
|
|
4004
|
+
}, {
|
|
4005
|
+
readonly inputs: readonly [];
|
|
4006
|
+
readonly name: "ZeroAddress";
|
|
4007
|
+
readonly type: "error";
|
|
4008
|
+
}, {
|
|
4009
|
+
readonly inputs: readonly [];
|
|
4010
|
+
readonly name: "ZeroAmount";
|
|
4011
|
+
readonly type: "error";
|
|
3904
4012
|
}, {
|
|
3905
4013
|
readonly anonymous: false;
|
|
3906
4014
|
readonly inputs: readonly [];
|
|
@@ -3918,11 +4026,6 @@ declare class LendingLiquidation__factory {
|
|
|
3918
4026
|
readonly internalType: "bytes32";
|
|
3919
4027
|
readonly name: "positionId";
|
|
3920
4028
|
readonly type: "bytes32";
|
|
3921
|
-
}, {
|
|
3922
|
-
readonly indexed: true;
|
|
3923
|
-
readonly internalType: "bytes32";
|
|
3924
|
-
readonly name: "tradeId";
|
|
3925
|
-
readonly type: "bytes32";
|
|
3926
4029
|
}, {
|
|
3927
4030
|
readonly indexed: false;
|
|
3928
4031
|
readonly internalType: "bytes32";
|
|
@@ -3931,12 +4034,17 @@ declare class LendingLiquidation__factory {
|
|
|
3931
4034
|
}, {
|
|
3932
4035
|
readonly indexed: false;
|
|
3933
4036
|
readonly internalType: "uint256";
|
|
3934
|
-
readonly name: "
|
|
4037
|
+
readonly name: "totalCollateral";
|
|
4038
|
+
readonly type: "uint256";
|
|
4039
|
+
}, {
|
|
4040
|
+
readonly indexed: false;
|
|
4041
|
+
readonly internalType: "uint256";
|
|
4042
|
+
readonly name: "totalPayment";
|
|
3935
4043
|
readonly type: "uint256";
|
|
3936
4044
|
}, {
|
|
3937
4045
|
readonly indexed: false;
|
|
3938
4046
|
readonly internalType: "uint256";
|
|
3939
|
-
readonly name: "
|
|
4047
|
+
readonly name: "repaidDebt";
|
|
3940
4048
|
readonly type: "uint256";
|
|
3941
4049
|
}];
|
|
3942
4050
|
readonly name: "ForceClose";
|
|
@@ -3953,16 +4061,6 @@ declare class LendingLiquidation__factory {
|
|
|
3953
4061
|
readonly internalType: "bytes32";
|
|
3954
4062
|
readonly name: "positionId";
|
|
3955
4063
|
readonly type: "bytes32";
|
|
3956
|
-
}, {
|
|
3957
|
-
readonly indexed: true;
|
|
3958
|
-
readonly internalType: "bytes32";
|
|
3959
|
-
readonly name: "tradeId";
|
|
3960
|
-
readonly type: "bytes32";
|
|
3961
|
-
}, {
|
|
3962
|
-
readonly indexed: false;
|
|
3963
|
-
readonly internalType: "address";
|
|
3964
|
-
readonly name: "sender";
|
|
3965
|
-
readonly type: "address";
|
|
3966
4064
|
}, {
|
|
3967
4065
|
readonly indexed: false;
|
|
3968
4066
|
readonly internalType: "bytes32";
|
|
@@ -3971,22 +4069,22 @@ declare class LendingLiquidation__factory {
|
|
|
3971
4069
|
}, {
|
|
3972
4070
|
readonly indexed: false;
|
|
3973
4071
|
readonly internalType: "uint256";
|
|
3974
|
-
readonly name: "
|
|
4072
|
+
readonly name: "totalCollateral";
|
|
3975
4073
|
readonly type: "uint256";
|
|
3976
4074
|
}, {
|
|
3977
4075
|
readonly indexed: false;
|
|
3978
4076
|
readonly internalType: "uint256";
|
|
3979
|
-
readonly name: "
|
|
4077
|
+
readonly name: "seizedCollateral";
|
|
3980
4078
|
readonly type: "uint256";
|
|
3981
4079
|
}, {
|
|
3982
4080
|
readonly indexed: false;
|
|
3983
4081
|
readonly internalType: "uint256";
|
|
3984
|
-
readonly name: "
|
|
4082
|
+
readonly name: "totalPayment";
|
|
3985
4083
|
readonly type: "uint256";
|
|
3986
4084
|
}, {
|
|
3987
4085
|
readonly indexed: false;
|
|
3988
4086
|
readonly internalType: "uint256";
|
|
3989
|
-
readonly name: "
|
|
4087
|
+
readonly name: "repaidDebt";
|
|
3990
4088
|
readonly type: "uint256";
|
|
3991
4089
|
}];
|
|
3992
4090
|
readonly name: "Liquidate";
|
|
@@ -3999,14 +4097,54 @@ declare class LendingLiquidation__factory {
|
|
|
3999
4097
|
readonly name: "positionManager";
|
|
4000
4098
|
readonly type: "address";
|
|
4001
4099
|
}, {
|
|
4100
|
+
readonly indexed: false;
|
|
4101
|
+
readonly internalType: "uint256";
|
|
4102
|
+
readonly name: "repaidAssets";
|
|
4103
|
+
readonly type: "uint256";
|
|
4104
|
+
}, {
|
|
4105
|
+
readonly indexed: false;
|
|
4106
|
+
readonly internalType: "bytes";
|
|
4107
|
+
readonly name: "data";
|
|
4108
|
+
readonly type: "bytes";
|
|
4109
|
+
}];
|
|
4110
|
+
readonly name: "OnMorphoLiquidate";
|
|
4111
|
+
readonly type: "event";
|
|
4112
|
+
}, {
|
|
4113
|
+
readonly anonymous: false;
|
|
4114
|
+
readonly inputs: readonly [{
|
|
4115
|
+
readonly indexed: true;
|
|
4116
|
+
readonly internalType: "address";
|
|
4117
|
+
readonly name: "positionManager";
|
|
4118
|
+
readonly type: "address";
|
|
4119
|
+
}, {
|
|
4120
|
+
readonly indexed: false;
|
|
4121
|
+
readonly internalType: "uint256";
|
|
4122
|
+
readonly name: "repaidAssets";
|
|
4123
|
+
readonly type: "uint256";
|
|
4124
|
+
}, {
|
|
4125
|
+
readonly indexed: false;
|
|
4126
|
+
readonly internalType: "bytes";
|
|
4127
|
+
readonly name: "data";
|
|
4128
|
+
readonly type: "bytes";
|
|
4129
|
+
}];
|
|
4130
|
+
readonly name: "OnMorphoRepay";
|
|
4131
|
+
readonly type: "event";
|
|
4132
|
+
}, {
|
|
4133
|
+
readonly anonymous: false;
|
|
4134
|
+
readonly inputs: readonly [{
|
|
4002
4135
|
readonly indexed: true;
|
|
4003
4136
|
readonly internalType: "bytes32";
|
|
4004
|
-
readonly name: "
|
|
4137
|
+
readonly name: "tradeId";
|
|
4005
4138
|
readonly type: "bytes32";
|
|
4139
|
+
}, {
|
|
4140
|
+
readonly indexed: true;
|
|
4141
|
+
readonly internalType: "address";
|
|
4142
|
+
readonly name: "positionManager";
|
|
4143
|
+
readonly type: "address";
|
|
4006
4144
|
}, {
|
|
4007
4145
|
readonly indexed: true;
|
|
4008
4146
|
readonly internalType: "bytes32";
|
|
4009
|
-
readonly name: "
|
|
4147
|
+
readonly name: "positionId";
|
|
4010
4148
|
readonly type: "bytes32";
|
|
4011
4149
|
}, {
|
|
4012
4150
|
readonly indexed: false;
|
|
@@ -4032,32 +4170,62 @@ declare class LendingLiquidation__factory {
|
|
|
4032
4170
|
readonly name: "Payment";
|
|
4033
4171
|
readonly type: "event";
|
|
4034
4172
|
}, {
|
|
4035
|
-
readonly
|
|
4036
|
-
readonly
|
|
4037
|
-
|
|
4038
|
-
readonly internalType: "
|
|
4039
|
-
readonly name: "";
|
|
4173
|
+
readonly anonymous: false;
|
|
4174
|
+
readonly inputs: readonly [{
|
|
4175
|
+
readonly indexed: true;
|
|
4176
|
+
readonly internalType: "bytes32";
|
|
4177
|
+
readonly name: "positionId";
|
|
4178
|
+
readonly type: "bytes32";
|
|
4179
|
+
}, {
|
|
4180
|
+
readonly indexed: true;
|
|
4181
|
+
readonly internalType: "address";
|
|
4182
|
+
readonly name: "token";
|
|
4183
|
+
readonly type: "address";
|
|
4184
|
+
}, {
|
|
4185
|
+
readonly indexed: true;
|
|
4186
|
+
readonly internalType: "address";
|
|
4187
|
+
readonly name: "pFeeReceiver";
|
|
4040
4188
|
readonly type: "address";
|
|
4189
|
+
}, {
|
|
4190
|
+
readonly indexed: false;
|
|
4191
|
+
readonly internalType: "uint256";
|
|
4192
|
+
readonly name: "amount";
|
|
4193
|
+
readonly type: "uint256";
|
|
4041
4194
|
}];
|
|
4042
|
-
readonly
|
|
4043
|
-
readonly type: "
|
|
4195
|
+
readonly name: "ProfitTaken";
|
|
4196
|
+
readonly type: "event";
|
|
4044
4197
|
}, {
|
|
4045
|
-
readonly
|
|
4046
|
-
readonly
|
|
4047
|
-
|
|
4048
|
-
readonly internalType: "
|
|
4049
|
-
readonly name: "";
|
|
4198
|
+
readonly anonymous: false;
|
|
4199
|
+
readonly inputs: readonly [{
|
|
4200
|
+
readonly indexed: true;
|
|
4201
|
+
readonly internalType: "bytes32";
|
|
4202
|
+
readonly name: "positionId";
|
|
4203
|
+
readonly type: "bytes32";
|
|
4204
|
+
}, {
|
|
4205
|
+
readonly indexed: true;
|
|
4206
|
+
readonly internalType: "address";
|
|
4207
|
+
readonly name: "token";
|
|
4050
4208
|
readonly type: "address";
|
|
4209
|
+
}, {
|
|
4210
|
+
readonly indexed: true;
|
|
4211
|
+
readonly internalType: "address";
|
|
4212
|
+
readonly name: "recipient";
|
|
4213
|
+
readonly type: "address";
|
|
4214
|
+
}, {
|
|
4215
|
+
readonly indexed: false;
|
|
4216
|
+
readonly internalType: "uint256";
|
|
4217
|
+
readonly name: "refundedAmount";
|
|
4218
|
+
readonly type: "uint256";
|
|
4051
4219
|
}];
|
|
4052
|
-
readonly
|
|
4053
|
-
readonly type: "
|
|
4220
|
+
readonly name: "Refunded";
|
|
4221
|
+
readonly type: "event";
|
|
4054
4222
|
}, {
|
|
4055
4223
|
readonly inputs: readonly [];
|
|
4056
|
-
readonly name: "
|
|
4224
|
+
readonly name: "MORPHO_MANAGEMENT";
|
|
4057
4225
|
readonly outputs: readonly [{
|
|
4058
|
-
readonly internalType: "
|
|
4226
|
+
readonly internalType: "contract IMorphoManagement";
|
|
4059
4227
|
readonly name: "";
|
|
4060
|
-
readonly type: "
|
|
4228
|
+
readonly type: "address";
|
|
4061
4229
|
}];
|
|
4062
4230
|
readonly stateMutability: "view";
|
|
4063
4231
|
readonly type: "function";
|
|
@@ -4137,16 +4305,6 @@ declare class LendingLiquidation__factory {
|
|
|
4137
4305
|
}];
|
|
4138
4306
|
readonly stateMutability: "view";
|
|
4139
4307
|
readonly type: "function";
|
|
4140
|
-
}, {
|
|
4141
|
-
readonly inputs: readonly [];
|
|
4142
|
-
readonly name: "owBtc";
|
|
4143
|
-
readonly outputs: readonly [{
|
|
4144
|
-
readonly internalType: "contract OW_BTC";
|
|
4145
|
-
readonly name: "";
|
|
4146
|
-
readonly type: "address";
|
|
4147
|
-
}];
|
|
4148
|
-
readonly stateMutability: "view";
|
|
4149
|
-
readonly type: "function";
|
|
4150
4308
|
}, {
|
|
4151
4309
|
readonly inputs: readonly [{
|
|
4152
4310
|
readonly internalType: "bytes32";
|
|
@@ -4178,8 +4336,8 @@ declare class LendingLiquidation__factory {
|
|
|
4178
4336
|
readonly stateMutability: "nonpayable";
|
|
4179
4337
|
readonly type: "function";
|
|
4180
4338
|
}];
|
|
4181
|
-
static createInterface():
|
|
4182
|
-
static connect(address: string, runner?: ContractRunner | null):
|
|
4339
|
+
static createInterface(): MorphoLiquidatorInterface;
|
|
4340
|
+
static connect(address: string, runner?: ContractRunner | null): MorphoLiquidator;
|
|
4183
4341
|
}
|
|
4184
4342
|
|
|
4185
4343
|
declare class Payment__factory {
|
|
@@ -6175,8 +6333,8 @@ declare class Signer__factory {
|
|
|
6175
6333
|
|
|
6176
6334
|
type index_ERC20__factory = ERC20__factory;
|
|
6177
6335
|
declare const index_ERC20__factory: typeof ERC20__factory;
|
|
6178
|
-
type
|
|
6179
|
-
declare const
|
|
6336
|
+
type index_MorphoLiquidator__factory = MorphoLiquidator__factory;
|
|
6337
|
+
declare const index_MorphoLiquidator__factory: typeof MorphoLiquidator__factory;
|
|
6180
6338
|
type index_Payment__factory = Payment__factory;
|
|
6181
6339
|
declare const index_Payment__factory: typeof Payment__factory;
|
|
6182
6340
|
type index_ProtocolFetcherProxy__factory = ProtocolFetcherProxy__factory;
|
|
@@ -6186,7 +6344,7 @@ declare const index_Router__factory: typeof Router__factory;
|
|
|
6186
6344
|
type index_Signer__factory = Signer__factory;
|
|
6187
6345
|
declare const index_Signer__factory: typeof Signer__factory;
|
|
6188
6346
|
declare namespace index {
|
|
6189
|
-
export { index_ERC20__factory as ERC20__factory,
|
|
6347
|
+
export { index_ERC20__factory as ERC20__factory, index_MorphoLiquidator__factory as MorphoLiquidator__factory, index_Payment__factory as Payment__factory, index_ProtocolFetcherProxy__factory as ProtocolFetcherProxy__factory, index_Router__factory as Router__factory, index_Signer__factory as Signer__factory };
|
|
6190
6348
|
}
|
|
6191
6349
|
|
|
6192
6350
|
declare namespace ITypes {
|
|
@@ -6864,4 +7022,4 @@ declare function camelToSnakeCase(str: string): string;
|
|
|
6864
7022
|
declare const ensureHexPrefix: (value: string) => string;
|
|
6865
7023
|
declare const removeHexPrefix: (value: string) => string;
|
|
6866
7024
|
|
|
6867
|
-
export { type AppConfig, type ConfigObserver, type ERC20, ERC20__factory, type Environment, type EnvironmentConfig, ITypes, type
|
|
7025
|
+
export { type AppConfig, type ConfigObserver, type ERC20, ERC20__factory, type Environment, type EnvironmentConfig, ITypes, type MorphoLiquidator, MorphoLiquidator__factory, type Payment, Payment__factory, type ProtocolFetcherProxy, ProtocolFetcherProxy__factory, ProtocolService, type Router, RouterService, Router__factory, SDK, SignatureType, type Signer, SignerService, Signer__factory, SolverService, type Token, TokenSchema, TokenService, camelToSnakeCase, config, confirmDepositType, confirmPaymentType, confirmSettlementType, convertToCamelCase, convertToSnakeCase, ensureHexPrefix, index as factories, getCommitInfoHash, getMakePaymentHash, getSignature, getSigner, getTradeIdsHash, makePaymentType, presignType, protocolService, removeHexPrefix, rfqAuthenticationTypes, routerService, sdk, selectionType, signerService, snakeToCamelCase, solverService, tokenService };
|