@optimex-xyz/market-maker-sdk 0.9.0-dev-b026721 → 0.9.0-dev-d18dfd7
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 +100 -633
- package/dist/index.d.ts +100 -633
- package/dist/index.js +43 -414
- package/dist/index.mjs +42 -413
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -986,160 +986,40 @@ interface ERC20 extends BaseContract {
|
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
988
|
|
|
989
|
-
interface
|
|
990
|
-
getFunction(nameOrSignature: "
|
|
991
|
-
getEvent(nameOrSignatureOrTopic: "
|
|
992
|
-
encodeFunctionData(functionFragment: "
|
|
993
|
-
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
994
|
-
encodeFunctionData(functionFragment: "finalizePosition", values: [AddressLike, BytesLike, BytesLike]): string;
|
|
995
|
-
encodeFunctionData(functionFragment: "onMorphoLiquidate", values: [BigNumberish, BytesLike]): string;
|
|
996
|
-
encodeFunctionData(functionFragment: "onMorphoRepay", values: [BigNumberish, BytesLike]): string;
|
|
989
|
+
interface MorphoLiquidationGatewayInterface extends Interface {
|
|
990
|
+
getFunction(nameOrSignature: "getProtocol" | "optimexDomain" | "payment" | "paymentDetails" | "setProtocol"): FunctionFragment;
|
|
991
|
+
getEvent(nameOrSignatureOrTopic: "PaymentExecuted" | "ProtocolUpdated"): EventFragment;
|
|
992
|
+
encodeFunctionData(functionFragment: "getProtocol", values?: undefined): string;
|
|
997
993
|
encodeFunctionData(functionFragment: "optimexDomain", values?: undefined): string;
|
|
998
|
-
encodeFunctionData(functionFragment: "payment", values: [
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
BigNumberish,
|
|
1003
|
-
boolean,
|
|
1004
|
-
BytesLike
|
|
1005
|
-
]): string;
|
|
1006
|
-
decodeFunctionResult(functionFragment: "MORPHO_MANAGEMENT", data: BytesLike): Result;
|
|
1007
|
-
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
1008
|
-
decodeFunctionResult(functionFragment: "finalizePosition", data: BytesLike): Result;
|
|
1009
|
-
decodeFunctionResult(functionFragment: "onMorphoLiquidate", data: BytesLike): Result;
|
|
1010
|
-
decodeFunctionResult(functionFragment: "onMorphoRepay", data: BytesLike): Result;
|
|
994
|
+
encodeFunctionData(functionFragment: "payment", values: [AddressLike, BigNumberish, BytesLike]): string;
|
|
995
|
+
encodeFunctionData(functionFragment: "paymentDetails", values?: undefined): string;
|
|
996
|
+
encodeFunctionData(functionFragment: "setProtocol", values: [AddressLike]): string;
|
|
997
|
+
decodeFunctionResult(functionFragment: "getProtocol", data: BytesLike): Result;
|
|
1011
998
|
decodeFunctionResult(functionFragment: "optimexDomain", data: BytesLike): Result;
|
|
1012
999
|
decodeFunctionResult(functionFragment: "payment", data: BytesLike): Result;
|
|
1000
|
+
decodeFunctionResult(functionFragment: "paymentDetails", data: BytesLike): Result;
|
|
1001
|
+
decodeFunctionResult(functionFragment: "setProtocol", data: BytesLike): Result;
|
|
1013
1002
|
}
|
|
1014
|
-
declare namespace
|
|
1003
|
+
declare namespace PaymentExecutedEvent {
|
|
1015
1004
|
type InputTuple = [
|
|
1016
|
-
|
|
1005
|
+
payer: AddressLike,
|
|
1006
|
+
liquidator: AddressLike,
|
|
1017
1007
|
token: AddressLike,
|
|
1018
|
-
|
|
1019
|
-
|
|
1008
|
+
amount: BigNumberish,
|
|
1009
|
+
data: BytesLike
|
|
1020
1010
|
];
|
|
1021
1011
|
type OutputTuple = [
|
|
1022
|
-
|
|
1012
|
+
payer: string,
|
|
1013
|
+
liquidator: string,
|
|
1023
1014
|
token: string,
|
|
1024
|
-
|
|
1025
|
-
|
|
1015
|
+
amount: bigint,
|
|
1016
|
+
data: string
|
|
1026
1017
|
];
|
|
1027
1018
|
interface OutputObject {
|
|
1028
|
-
|
|
1019
|
+
payer: string;
|
|
1020
|
+
liquidator: string;
|
|
1029
1021
|
token: string;
|
|
1030
|
-
recipient: string;
|
|
1031
|
-
amount: bigint;
|
|
1032
|
-
}
|
|
1033
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1034
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1035
|
-
type Log = TypedEventLog<Event>;
|
|
1036
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1037
|
-
}
|
|
1038
|
-
declare namespace EIP712DomainChangedEvent$1 {
|
|
1039
|
-
type InputTuple = [];
|
|
1040
|
-
type OutputTuple = [];
|
|
1041
|
-
interface OutputObject {
|
|
1042
|
-
}
|
|
1043
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1044
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1045
|
-
type Log = TypedEventLog<Event>;
|
|
1046
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1047
|
-
}
|
|
1048
|
-
declare namespace FinalizePositionEvent {
|
|
1049
|
-
type InputTuple = [
|
|
1050
|
-
positionId: BytesLike,
|
|
1051
|
-
apm: AddressLike,
|
|
1052
|
-
amount: BigNumberish
|
|
1053
|
-
];
|
|
1054
|
-
type OutputTuple = [positionId: string, apm: string, amount: bigint];
|
|
1055
|
-
interface OutputObject {
|
|
1056
|
-
positionId: string;
|
|
1057
|
-
apm: string;
|
|
1058
1022
|
amount: bigint;
|
|
1059
|
-
}
|
|
1060
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1061
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1062
|
-
type Log = TypedEventLog<Event>;
|
|
1063
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1064
|
-
}
|
|
1065
|
-
declare namespace ForceCloseEvent {
|
|
1066
|
-
type InputTuple = [
|
|
1067
|
-
positionId: BytesLike,
|
|
1068
|
-
totalCollateral: BigNumberish,
|
|
1069
|
-
totalPayment: BigNumberish,
|
|
1070
|
-
repaidDebt: BigNumberish
|
|
1071
|
-
];
|
|
1072
|
-
type OutputTuple = [
|
|
1073
|
-
positionId: string,
|
|
1074
|
-
totalCollateral: bigint,
|
|
1075
|
-
totalPayment: bigint,
|
|
1076
|
-
repaidDebt: bigint
|
|
1077
|
-
];
|
|
1078
|
-
interface OutputObject {
|
|
1079
|
-
positionId: string;
|
|
1080
|
-
totalCollateral: bigint;
|
|
1081
|
-
totalPayment: bigint;
|
|
1082
|
-
repaidDebt: bigint;
|
|
1083
|
-
}
|
|
1084
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1085
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1086
|
-
type Log = TypedEventLog<Event>;
|
|
1087
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1088
|
-
}
|
|
1089
|
-
declare namespace LiquidateEvent {
|
|
1090
|
-
type InputTuple = [
|
|
1091
|
-
positionId: BytesLike,
|
|
1092
|
-
totalCollateral: BigNumberish,
|
|
1093
|
-
seizedCollateral: BigNumberish,
|
|
1094
|
-
totalPayment: BigNumberish,
|
|
1095
|
-
repaidDebt: BigNumberish
|
|
1096
|
-
];
|
|
1097
|
-
type OutputTuple = [
|
|
1098
|
-
positionId: string,
|
|
1099
|
-
totalCollateral: bigint,
|
|
1100
|
-
seizedCollateral: bigint,
|
|
1101
|
-
totalPayment: bigint,
|
|
1102
|
-
repaidDebt: bigint
|
|
1103
|
-
];
|
|
1104
|
-
interface OutputObject {
|
|
1105
|
-
positionId: string;
|
|
1106
|
-
totalCollateral: bigint;
|
|
1107
|
-
seizedCollateral: bigint;
|
|
1108
|
-
totalPayment: bigint;
|
|
1109
|
-
repaidDebt: bigint;
|
|
1110
|
-
}
|
|
1111
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1112
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1113
|
-
type Log = TypedEventLog<Event>;
|
|
1114
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1115
|
-
}
|
|
1116
|
-
declare namespace OnMorphoLiquidateEvent {
|
|
1117
|
-
type InputTuple = [
|
|
1118
|
-
apm: AddressLike,
|
|
1119
|
-
repaidAssets: BigNumberish,
|
|
1120
|
-
data: BytesLike
|
|
1121
|
-
];
|
|
1122
|
-
type OutputTuple = [apm: string, repaidAssets: bigint, data: string];
|
|
1123
|
-
interface OutputObject {
|
|
1124
|
-
apm: string;
|
|
1125
|
-
repaidAssets: bigint;
|
|
1126
|
-
data: string;
|
|
1127
|
-
}
|
|
1128
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1129
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1130
|
-
type Log = TypedEventLog<Event>;
|
|
1131
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1132
|
-
}
|
|
1133
|
-
declare namespace OnMorphoRepayEvent {
|
|
1134
|
-
type InputTuple = [
|
|
1135
|
-
apm: AddressLike,
|
|
1136
|
-
repaidAssets: BigNumberish,
|
|
1137
|
-
data: BytesLike
|
|
1138
|
-
];
|
|
1139
|
-
type OutputTuple = [apm: string, repaidAssets: bigint, data: string];
|
|
1140
|
-
interface OutputObject {
|
|
1141
|
-
apm: string;
|
|
1142
|
-
repaidAssets: bigint;
|
|
1143
1023
|
data: string;
|
|
1144
1024
|
}
|
|
1145
1025
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -1147,64 +1027,22 @@ declare namespace OnMorphoRepayEvent {
|
|
|
1147
1027
|
type Log = TypedEventLog<Event>;
|
|
1148
1028
|
type LogDescription = TypedLogDescription<Event>;
|
|
1149
1029
|
}
|
|
1150
|
-
declare namespace
|
|
1151
|
-
type InputTuple = [
|
|
1152
|
-
|
|
1153
|
-
apm: AddressLike,
|
|
1154
|
-
tradeId: BytesLike,
|
|
1155
|
-
marketId: BytesLike,
|
|
1156
|
-
payer: AddressLike,
|
|
1157
|
-
isLiquidated: boolean
|
|
1158
|
-
];
|
|
1159
|
-
type OutputTuple = [
|
|
1160
|
-
positionId: string,
|
|
1161
|
-
apm: string,
|
|
1162
|
-
tradeId: string,
|
|
1163
|
-
marketId: string,
|
|
1164
|
-
payer: string,
|
|
1165
|
-
isLiquidated: boolean
|
|
1166
|
-
];
|
|
1030
|
+
declare namespace ProtocolUpdatedEvent$1 {
|
|
1031
|
+
type InputTuple = [operator: AddressLike, newProtocol: AddressLike];
|
|
1032
|
+
type OutputTuple = [operator: string, newProtocol: string];
|
|
1167
1033
|
interface OutputObject {
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
tradeId: string;
|
|
1171
|
-
marketId: string;
|
|
1172
|
-
payer: string;
|
|
1173
|
-
isLiquidated: boolean;
|
|
1174
|
-
}
|
|
1175
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1176
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1177
|
-
type Log = TypedEventLog<Event>;
|
|
1178
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1179
|
-
}
|
|
1180
|
-
declare namespace ProfitTakenEvent {
|
|
1181
|
-
type InputTuple = [
|
|
1182
|
-
positionId: BytesLike,
|
|
1183
|
-
token: AddressLike,
|
|
1184
|
-
recipient: AddressLike,
|
|
1185
|
-
amount: BigNumberish
|
|
1186
|
-
];
|
|
1187
|
-
type OutputTuple = [
|
|
1188
|
-
positionId: string,
|
|
1189
|
-
token: string,
|
|
1190
|
-
recipient: string,
|
|
1191
|
-
amount: bigint
|
|
1192
|
-
];
|
|
1193
|
-
interface OutputObject {
|
|
1194
|
-
positionId: string;
|
|
1195
|
-
token: string;
|
|
1196
|
-
recipient: string;
|
|
1197
|
-
amount: bigint;
|
|
1034
|
+
operator: string;
|
|
1035
|
+
newProtocol: string;
|
|
1198
1036
|
}
|
|
1199
1037
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1200
1038
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1201
1039
|
type Log = TypedEventLog<Event>;
|
|
1202
1040
|
type LogDescription = TypedLogDescription<Event>;
|
|
1203
1041
|
}
|
|
1204
|
-
interface
|
|
1205
|
-
connect(runner?: ContractRunner | null):
|
|
1042
|
+
interface MorphoLiquidationGateway extends BaseContract {
|
|
1043
|
+
connect(runner?: ContractRunner | null): MorphoLiquidationGateway;
|
|
1206
1044
|
waitForDeployment(): Promise<this>;
|
|
1207
|
-
interface:
|
|
1045
|
+
interface: MorphoLiquidationGatewayInterface;
|
|
1208
1046
|
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1209
1047
|
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1210
1048
|
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
@@ -1214,46 +1052,7 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1214
1052
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
1215
1053
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
1216
1054
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
1217
|
-
|
|
1218
|
-
eip712Domain: TypedContractMethod<[
|
|
1219
|
-
], [
|
|
1220
|
-
[
|
|
1221
|
-
string,
|
|
1222
|
-
string,
|
|
1223
|
-
string,
|
|
1224
|
-
bigint,
|
|
1225
|
-
string,
|
|
1226
|
-
string,
|
|
1227
|
-
bigint[]
|
|
1228
|
-
] & {
|
|
1229
|
-
fields: string;
|
|
1230
|
-
name: string;
|
|
1231
|
-
version: string;
|
|
1232
|
-
chainId: bigint;
|
|
1233
|
-
verifyingContract: string;
|
|
1234
|
-
salt: string;
|
|
1235
|
-
extensions: bigint[];
|
|
1236
|
-
}
|
|
1237
|
-
], "view">;
|
|
1238
|
-
finalizePosition: TypedContractMethod<[
|
|
1239
|
-
apm: AddressLike,
|
|
1240
|
-
positionId: BytesLike,
|
|
1241
|
-
signature: BytesLike
|
|
1242
|
-
], [
|
|
1243
|
-
void
|
|
1244
|
-
], "nonpayable">;
|
|
1245
|
-
onMorphoLiquidate: TypedContractMethod<[
|
|
1246
|
-
repaidAssets: BigNumberish,
|
|
1247
|
-
data: BytesLike
|
|
1248
|
-
], [
|
|
1249
|
-
void
|
|
1250
|
-
], "nonpayable">;
|
|
1251
|
-
onMorphoRepay: TypedContractMethod<[
|
|
1252
|
-
repaidAssets: BigNumberish,
|
|
1253
|
-
data: BytesLike
|
|
1254
|
-
], [
|
|
1255
|
-
void
|
|
1256
|
-
], "nonpayable">;
|
|
1055
|
+
getProtocol: TypedContractMethod<[], [string], "view">;
|
|
1257
1056
|
optimexDomain: TypedContractMethod<[
|
|
1258
1057
|
], [
|
|
1259
1058
|
[string, string] & {
|
|
@@ -1262,56 +1061,31 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1262
1061
|
}
|
|
1263
1062
|
], "view">;
|
|
1264
1063
|
payment: TypedContractMethod<[
|
|
1265
|
-
|
|
1266
|
-
positionId: BytesLike,
|
|
1267
|
-
tradeId: BytesLike,
|
|
1064
|
+
token: AddressLike,
|
|
1268
1065
|
amount: BigNumberish,
|
|
1269
|
-
|
|
1270
|
-
signature: BytesLike
|
|
1066
|
+
externalCall: BytesLike
|
|
1271
1067
|
], [
|
|
1272
1068
|
void
|
|
1273
1069
|
], "nonpayable">;
|
|
1274
|
-
|
|
1275
|
-
getFunction(nameOrSignature: "MORPHO_MANAGEMENT"): TypedContractMethod<[], [string], "view">;
|
|
1276
|
-
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
1070
|
+
paymentDetails: TypedContractMethod<[
|
|
1277
1071
|
], [
|
|
1278
1072
|
[
|
|
1279
1073
|
string,
|
|
1280
1074
|
string,
|
|
1281
|
-
|
|
1282
|
-
bigint,
|
|
1283
|
-
string,
|
|
1284
|
-
string,
|
|
1285
|
-
bigint[]
|
|
1075
|
+
bigint
|
|
1286
1076
|
] & {
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
chainId: bigint;
|
|
1291
|
-
verifyingContract: string;
|
|
1292
|
-
salt: string;
|
|
1293
|
-
extensions: bigint[];
|
|
1077
|
+
payer: string;
|
|
1078
|
+
paymentToken: string;
|
|
1079
|
+
paymentAmount: bigint;
|
|
1294
1080
|
}
|
|
1295
1081
|
], "view">;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
positionId: BytesLike,
|
|
1299
|
-
signature: BytesLike
|
|
1300
|
-
], [
|
|
1301
|
-
void
|
|
1302
|
-
], "nonpayable">;
|
|
1303
|
-
getFunction(nameOrSignature: "onMorphoLiquidate"): TypedContractMethod<[
|
|
1304
|
-
repaidAssets: BigNumberish,
|
|
1305
|
-
data: BytesLike
|
|
1306
|
-
], [
|
|
1307
|
-
void
|
|
1308
|
-
], "nonpayable">;
|
|
1309
|
-
getFunction(nameOrSignature: "onMorphoRepay"): TypedContractMethod<[
|
|
1310
|
-
repaidAssets: BigNumberish,
|
|
1311
|
-
data: BytesLike
|
|
1082
|
+
setProtocol: TypedContractMethod<[
|
|
1083
|
+
newProtocol: AddressLike
|
|
1312
1084
|
], [
|
|
1313
1085
|
void
|
|
1314
1086
|
], "nonpayable">;
|
|
1087
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
1088
|
+
getFunction(nameOrSignature: "getProtocol"): TypedContractMethod<[], [string], "view">;
|
|
1315
1089
|
getFunction(nameOrSignature: "optimexDomain"): TypedContractMethod<[
|
|
1316
1090
|
], [
|
|
1317
1091
|
[string, string] & {
|
|
@@ -1320,43 +1094,32 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1320
1094
|
}
|
|
1321
1095
|
], "view">;
|
|
1322
1096
|
getFunction(nameOrSignature: "payment"): TypedContractMethod<[
|
|
1323
|
-
|
|
1324
|
-
positionId: BytesLike,
|
|
1325
|
-
tradeId: BytesLike,
|
|
1097
|
+
token: AddressLike,
|
|
1326
1098
|
amount: BigNumberish,
|
|
1327
|
-
|
|
1328
|
-
signature: BytesLike
|
|
1099
|
+
externalCall: BytesLike
|
|
1329
1100
|
], [
|
|
1330
1101
|
void
|
|
1331
1102
|
], "nonpayable">;
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1103
|
+
getFunction(nameOrSignature: "paymentDetails"): TypedContractMethod<[
|
|
1104
|
+
], [
|
|
1105
|
+
[
|
|
1106
|
+
string,
|
|
1107
|
+
string,
|
|
1108
|
+
bigint
|
|
1109
|
+
] & {
|
|
1110
|
+
payer: string;
|
|
1111
|
+
paymentToken: string;
|
|
1112
|
+
paymentAmount: bigint;
|
|
1113
|
+
}
|
|
1114
|
+
], "view">;
|
|
1115
|
+
getFunction(nameOrSignature: "setProtocol"): TypedContractMethod<[newProtocol: AddressLike], [void], "nonpayable">;
|
|
1116
|
+
getEvent(key: "PaymentExecuted"): TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
|
|
1117
|
+
getEvent(key: "ProtocolUpdated"): TypedContractEvent<ProtocolUpdatedEvent$1.InputTuple, ProtocolUpdatedEvent$1.OutputTuple, ProtocolUpdatedEvent$1.OutputObject>;
|
|
1341
1118
|
filters: {
|
|
1342
|
-
"
|
|
1343
|
-
|
|
1344
|
-
"
|
|
1345
|
-
|
|
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>;
|
|
1349
|
-
ForceClose: TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
|
|
1350
|
-
"Liquidate(bytes32,uint256,uint256,uint256,uint256)": TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
1351
|
-
Liquidate: TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
1352
|
-
"OnMorphoLiquidate(address,uint256,bytes)": TypedContractEvent<OnMorphoLiquidateEvent.InputTuple, OnMorphoLiquidateEvent.OutputTuple, OnMorphoLiquidateEvent.OutputObject>;
|
|
1353
|
-
OnMorphoLiquidate: TypedContractEvent<OnMorphoLiquidateEvent.InputTuple, OnMorphoLiquidateEvent.OutputTuple, OnMorphoLiquidateEvent.OutputObject>;
|
|
1354
|
-
"OnMorphoRepay(address,uint256,bytes)": TypedContractEvent<OnMorphoRepayEvent.InputTuple, OnMorphoRepayEvent.OutputTuple, OnMorphoRepayEvent.OutputObject>;
|
|
1355
|
-
OnMorphoRepay: TypedContractEvent<OnMorphoRepayEvent.InputTuple, OnMorphoRepayEvent.OutputTuple, OnMorphoRepayEvent.OutputObject>;
|
|
1356
|
-
"Payment(bytes32,address,bytes32,bytes32,address,bool)": TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1357
|
-
Payment: TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1358
|
-
"ProfitTaken(bytes32,address,address,uint256)": TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1359
|
-
ProfitTaken: TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1119
|
+
"PaymentExecuted(address,address,address,uint256,bytes)": TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
|
|
1120
|
+
PaymentExecuted: TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
|
|
1121
|
+
"ProtocolUpdated(address,address)": TypedContractEvent<ProtocolUpdatedEvent$1.InputTuple, ProtocolUpdatedEvent$1.OutputTuple, ProtocolUpdatedEvent$1.OutputObject>;
|
|
1122
|
+
ProtocolUpdated: TypedContractEvent<ProtocolUpdatedEvent$1.InputTuple, ProtocolUpdatedEvent$1.OutputTuple, ProtocolUpdatedEvent$1.OutputObject>;
|
|
1360
1123
|
};
|
|
1361
1124
|
}
|
|
1362
1125
|
|
|
@@ -4059,11 +3822,11 @@ declare class ERC20__factory {
|
|
|
4059
3822
|
static connect(address: string, runner?: ContractRunner | null): ERC20;
|
|
4060
3823
|
}
|
|
4061
3824
|
|
|
4062
|
-
declare class
|
|
3825
|
+
declare class MorphoLiquidationGateway__factory {
|
|
4063
3826
|
static readonly abi: readonly [{
|
|
4064
3827
|
readonly inputs: readonly [{
|
|
4065
3828
|
readonly internalType: "address";
|
|
4066
|
-
readonly name: "
|
|
3829
|
+
readonly name: "initProtocol";
|
|
4067
3830
|
readonly type: "address";
|
|
4068
3831
|
}, {
|
|
4069
3832
|
readonly internalType: "string";
|
|
@@ -4071,63 +3834,15 @@ declare class MorphoLiquidator__factory {
|
|
|
4071
3834
|
readonly type: "string";
|
|
4072
3835
|
}, {
|
|
4073
3836
|
readonly internalType: "string";
|
|
4074
|
-
readonly name: "
|
|
3837
|
+
readonly name: "symbol";
|
|
4075
3838
|
readonly type: "string";
|
|
4076
3839
|
}];
|
|
4077
3840
|
readonly stateMutability: "nonpayable";
|
|
4078
3841
|
readonly type: "constructor";
|
|
4079
|
-
}, {
|
|
4080
|
-
readonly inputs: readonly [];
|
|
4081
|
-
readonly name: "ECDSAInvalidSignature";
|
|
4082
|
-
readonly type: "error";
|
|
4083
|
-
}, {
|
|
4084
|
-
readonly inputs: readonly [{
|
|
4085
|
-
readonly internalType: "uint256";
|
|
4086
|
-
readonly name: "length";
|
|
4087
|
-
readonly type: "uint256";
|
|
4088
|
-
}];
|
|
4089
|
-
readonly name: "ECDSAInvalidSignatureLength";
|
|
4090
|
-
readonly type: "error";
|
|
4091
|
-
}, {
|
|
4092
|
-
readonly inputs: readonly [{
|
|
4093
|
-
readonly internalType: "bytes32";
|
|
4094
|
-
readonly name: "s";
|
|
4095
|
-
readonly type: "bytes32";
|
|
4096
|
-
}];
|
|
4097
|
-
readonly name: "ECDSAInvalidSignatureS";
|
|
4098
|
-
readonly type: "error";
|
|
4099
3842
|
}, {
|
|
4100
3843
|
readonly inputs: readonly [];
|
|
4101
3844
|
readonly name: "InvalidAmount";
|
|
4102
3845
|
readonly type: "error";
|
|
4103
|
-
}, {
|
|
4104
|
-
readonly inputs: readonly [];
|
|
4105
|
-
readonly name: "InvalidBorrowShares";
|
|
4106
|
-
readonly type: "error";
|
|
4107
|
-
}, {
|
|
4108
|
-
readonly inputs: readonly [{
|
|
4109
|
-
readonly internalType: "bytes32";
|
|
4110
|
-
readonly name: "positionId";
|
|
4111
|
-
readonly type: "bytes32";
|
|
4112
|
-
}];
|
|
4113
|
-
readonly name: "InvalidPositionId";
|
|
4114
|
-
readonly type: "error";
|
|
4115
|
-
}, {
|
|
4116
|
-
readonly inputs: readonly [];
|
|
4117
|
-
readonly name: "InvalidShortString";
|
|
4118
|
-
readonly type: "error";
|
|
4119
|
-
}, {
|
|
4120
|
-
readonly inputs: readonly [{
|
|
4121
|
-
readonly internalType: "address";
|
|
4122
|
-
readonly name: "validator";
|
|
4123
|
-
readonly type: "address";
|
|
4124
|
-
}];
|
|
4125
|
-
readonly name: "InvalidValidator";
|
|
4126
|
-
readonly type: "error";
|
|
4127
|
-
}, {
|
|
4128
|
-
readonly inputs: readonly [];
|
|
4129
|
-
readonly name: "ReentrancyGuardReentrantCall";
|
|
4130
|
-
readonly type: "error";
|
|
4131
3846
|
}, {
|
|
4132
3847
|
readonly inputs: readonly [{
|
|
4133
3848
|
readonly internalType: "address";
|
|
@@ -4152,26 +3867,6 @@ declare class MorphoLiquidator__factory {
|
|
|
4152
3867
|
}];
|
|
4153
3868
|
readonly name: "SafeERC20FailedOperation";
|
|
4154
3869
|
readonly type: "error";
|
|
4155
|
-
}, {
|
|
4156
|
-
readonly inputs: readonly [{
|
|
4157
|
-
readonly internalType: "string";
|
|
4158
|
-
readonly name: "str";
|
|
4159
|
-
readonly type: "string";
|
|
4160
|
-
}];
|
|
4161
|
-
readonly name: "StringTooLong";
|
|
4162
|
-
readonly type: "error";
|
|
4163
|
-
}, {
|
|
4164
|
-
readonly inputs: readonly [{
|
|
4165
|
-
readonly internalType: "address";
|
|
4166
|
-
readonly name: "expected";
|
|
4167
|
-
readonly type: "address";
|
|
4168
|
-
}, {
|
|
4169
|
-
readonly internalType: "address";
|
|
4170
|
-
readonly name: "actual";
|
|
4171
|
-
readonly type: "address";
|
|
4172
|
-
}];
|
|
4173
|
-
readonly name: "TokenMismatch";
|
|
4174
|
-
readonly type: "error";
|
|
4175
3870
|
}, {
|
|
4176
3871
|
readonly inputs: readonly [{
|
|
4177
3872
|
readonly internalType: "address";
|
|
@@ -4184,233 +3879,65 @@ declare class MorphoLiquidator__factory {
|
|
|
4184
3879
|
readonly inputs: readonly [];
|
|
4185
3880
|
readonly name: "ZeroAddress";
|
|
4186
3881
|
readonly type: "error";
|
|
4187
|
-
}, {
|
|
4188
|
-
readonly inputs: readonly [];
|
|
4189
|
-
readonly name: "ZeroAmount";
|
|
4190
|
-
readonly type: "error";
|
|
4191
3882
|
}, {
|
|
4192
3883
|
readonly anonymous: false;
|
|
4193
3884
|
readonly inputs: readonly [{
|
|
4194
|
-
readonly indexed: true;
|
|
4195
|
-
readonly internalType: "bytes32";
|
|
4196
|
-
readonly name: "positionId";
|
|
4197
|
-
readonly type: "bytes32";
|
|
4198
|
-
}, {
|
|
4199
3885
|
readonly indexed: true;
|
|
4200
3886
|
readonly internalType: "address";
|
|
4201
|
-
readonly name: "
|
|
3887
|
+
readonly name: "payer";
|
|
4202
3888
|
readonly type: "address";
|
|
4203
3889
|
}, {
|
|
4204
3890
|
readonly indexed: true;
|
|
4205
3891
|
readonly internalType: "address";
|
|
4206
|
-
readonly name: "
|
|
3892
|
+
readonly name: "liquidator";
|
|
4207
3893
|
readonly type: "address";
|
|
4208
3894
|
}, {
|
|
4209
3895
|
readonly indexed: false;
|
|
4210
|
-
readonly internalType: "uint256";
|
|
4211
|
-
readonly name: "amount";
|
|
4212
|
-
readonly type: "uint256";
|
|
4213
|
-
}];
|
|
4214
|
-
readonly name: "Credit";
|
|
4215
|
-
readonly type: "event";
|
|
4216
|
-
}, {
|
|
4217
|
-
readonly anonymous: false;
|
|
4218
|
-
readonly inputs: readonly [];
|
|
4219
|
-
readonly name: "EIP712DomainChanged";
|
|
4220
|
-
readonly type: "event";
|
|
4221
|
-
}, {
|
|
4222
|
-
readonly anonymous: false;
|
|
4223
|
-
readonly inputs: readonly [{
|
|
4224
|
-
readonly indexed: true;
|
|
4225
|
-
readonly internalType: "bytes32";
|
|
4226
|
-
readonly name: "positionId";
|
|
4227
|
-
readonly type: "bytes32";
|
|
4228
|
-
}, {
|
|
4229
|
-
readonly indexed: true;
|
|
4230
3896
|
readonly internalType: "address";
|
|
4231
|
-
readonly name: "
|
|
3897
|
+
readonly name: "token";
|
|
4232
3898
|
readonly type: "address";
|
|
4233
3899
|
}, {
|
|
4234
3900
|
readonly indexed: false;
|
|
4235
3901
|
readonly internalType: "uint256";
|
|
4236
3902
|
readonly name: "amount";
|
|
4237
3903
|
readonly type: "uint256";
|
|
4238
|
-
}];
|
|
4239
|
-
readonly name: "FinalizePosition";
|
|
4240
|
-
readonly type: "event";
|
|
4241
|
-
}, {
|
|
4242
|
-
readonly anonymous: false;
|
|
4243
|
-
readonly inputs: readonly [{
|
|
4244
|
-
readonly indexed: true;
|
|
4245
|
-
readonly internalType: "bytes32";
|
|
4246
|
-
readonly name: "positionId";
|
|
4247
|
-
readonly type: "bytes32";
|
|
4248
|
-
}, {
|
|
4249
|
-
readonly indexed: false;
|
|
4250
|
-
readonly internalType: "uint256";
|
|
4251
|
-
readonly name: "totalCollateral";
|
|
4252
|
-
readonly type: "uint256";
|
|
4253
|
-
}, {
|
|
4254
|
-
readonly indexed: false;
|
|
4255
|
-
readonly internalType: "uint256";
|
|
4256
|
-
readonly name: "totalPayment";
|
|
4257
|
-
readonly type: "uint256";
|
|
4258
|
-
}, {
|
|
4259
|
-
readonly indexed: false;
|
|
4260
|
-
readonly internalType: "uint256";
|
|
4261
|
-
readonly name: "repaidDebt";
|
|
4262
|
-
readonly type: "uint256";
|
|
4263
|
-
}];
|
|
4264
|
-
readonly name: "ForceClose";
|
|
4265
|
-
readonly type: "event";
|
|
4266
|
-
}, {
|
|
4267
|
-
readonly anonymous: false;
|
|
4268
|
-
readonly inputs: readonly [{
|
|
4269
|
-
readonly indexed: true;
|
|
4270
|
-
readonly internalType: "bytes32";
|
|
4271
|
-
readonly name: "positionId";
|
|
4272
|
-
readonly type: "bytes32";
|
|
4273
|
-
}, {
|
|
4274
|
-
readonly indexed: false;
|
|
4275
|
-
readonly internalType: "uint256";
|
|
4276
|
-
readonly name: "totalCollateral";
|
|
4277
|
-
readonly type: "uint256";
|
|
4278
|
-
}, {
|
|
4279
|
-
readonly indexed: false;
|
|
4280
|
-
readonly internalType: "uint256";
|
|
4281
|
-
readonly name: "seizedCollateral";
|
|
4282
|
-
readonly type: "uint256";
|
|
4283
|
-
}, {
|
|
4284
|
-
readonly indexed: false;
|
|
4285
|
-
readonly internalType: "uint256";
|
|
4286
|
-
readonly name: "totalPayment";
|
|
4287
|
-
readonly type: "uint256";
|
|
4288
|
-
}, {
|
|
4289
|
-
readonly indexed: false;
|
|
4290
|
-
readonly internalType: "uint256";
|
|
4291
|
-
readonly name: "repaidDebt";
|
|
4292
|
-
readonly type: "uint256";
|
|
4293
|
-
}];
|
|
4294
|
-
readonly name: "Liquidate";
|
|
4295
|
-
readonly type: "event";
|
|
4296
|
-
}, {
|
|
4297
|
-
readonly anonymous: false;
|
|
4298
|
-
readonly inputs: readonly [{
|
|
4299
|
-
readonly indexed: true;
|
|
4300
|
-
readonly internalType: "address";
|
|
4301
|
-
readonly name: "apm";
|
|
4302
|
-
readonly type: "address";
|
|
4303
|
-
}, {
|
|
4304
|
-
readonly indexed: false;
|
|
4305
|
-
readonly internalType: "uint256";
|
|
4306
|
-
readonly name: "repaidAssets";
|
|
4307
|
-
readonly type: "uint256";
|
|
4308
3904
|
}, {
|
|
4309
3905
|
readonly indexed: false;
|
|
4310
3906
|
readonly internalType: "bytes";
|
|
4311
3907
|
readonly name: "data";
|
|
4312
3908
|
readonly type: "bytes";
|
|
4313
3909
|
}];
|
|
4314
|
-
readonly name: "
|
|
3910
|
+
readonly name: "PaymentExecuted";
|
|
4315
3911
|
readonly type: "event";
|
|
4316
3912
|
}, {
|
|
4317
3913
|
readonly anonymous: false;
|
|
4318
3914
|
readonly inputs: readonly [{
|
|
4319
3915
|
readonly indexed: true;
|
|
4320
3916
|
readonly internalType: "address";
|
|
4321
|
-
readonly name: "
|
|
4322
|
-
readonly type: "address";
|
|
4323
|
-
}, {
|
|
4324
|
-
readonly indexed: false;
|
|
4325
|
-
readonly internalType: "uint256";
|
|
4326
|
-
readonly name: "repaidAssets";
|
|
4327
|
-
readonly type: "uint256";
|
|
4328
|
-
}, {
|
|
4329
|
-
readonly indexed: false;
|
|
4330
|
-
readonly internalType: "bytes";
|
|
4331
|
-
readonly name: "data";
|
|
4332
|
-
readonly type: "bytes";
|
|
4333
|
-
}];
|
|
4334
|
-
readonly name: "OnMorphoRepay";
|
|
4335
|
-
readonly type: "event";
|
|
4336
|
-
}, {
|
|
4337
|
-
readonly anonymous: false;
|
|
4338
|
-
readonly inputs: readonly [{
|
|
4339
|
-
readonly indexed: true;
|
|
4340
|
-
readonly internalType: "bytes32";
|
|
4341
|
-
readonly name: "positionId";
|
|
4342
|
-
readonly type: "bytes32";
|
|
4343
|
-
}, {
|
|
4344
|
-
readonly indexed: true;
|
|
4345
|
-
readonly internalType: "address";
|
|
4346
|
-
readonly name: "apm";
|
|
4347
|
-
readonly type: "address";
|
|
4348
|
-
}, {
|
|
4349
|
-
readonly indexed: true;
|
|
4350
|
-
readonly internalType: "bytes32";
|
|
4351
|
-
readonly name: "tradeId";
|
|
4352
|
-
readonly type: "bytes32";
|
|
4353
|
-
}, {
|
|
4354
|
-
readonly indexed: false;
|
|
4355
|
-
readonly internalType: "bytes32";
|
|
4356
|
-
readonly name: "marketId";
|
|
4357
|
-
readonly type: "bytes32";
|
|
4358
|
-
}, {
|
|
4359
|
-
readonly indexed: false;
|
|
4360
|
-
readonly internalType: "address";
|
|
4361
|
-
readonly name: "payer";
|
|
4362
|
-
readonly type: "address";
|
|
4363
|
-
}, {
|
|
4364
|
-
readonly indexed: false;
|
|
4365
|
-
readonly internalType: "bool";
|
|
4366
|
-
readonly name: "isLiquidated";
|
|
4367
|
-
readonly type: "bool";
|
|
4368
|
-
}];
|
|
4369
|
-
readonly name: "Payment";
|
|
4370
|
-
readonly type: "event";
|
|
4371
|
-
}, {
|
|
4372
|
-
readonly anonymous: false;
|
|
4373
|
-
readonly inputs: readonly [{
|
|
4374
|
-
readonly indexed: true;
|
|
4375
|
-
readonly internalType: "bytes32";
|
|
4376
|
-
readonly name: "positionId";
|
|
4377
|
-
readonly type: "bytes32";
|
|
4378
|
-
}, {
|
|
4379
|
-
readonly indexed: true;
|
|
4380
|
-
readonly internalType: "address";
|
|
4381
|
-
readonly name: "token";
|
|
3917
|
+
readonly name: "operator";
|
|
4382
3918
|
readonly type: "address";
|
|
4383
3919
|
}, {
|
|
4384
3920
|
readonly indexed: true;
|
|
4385
3921
|
readonly internalType: "address";
|
|
4386
|
-
readonly name: "
|
|
3922
|
+
readonly name: "newProtocol";
|
|
4387
3923
|
readonly type: "address";
|
|
4388
|
-
}, {
|
|
4389
|
-
readonly indexed: false;
|
|
4390
|
-
readonly internalType: "uint256";
|
|
4391
|
-
readonly name: "amount";
|
|
4392
|
-
readonly type: "uint256";
|
|
4393
3924
|
}];
|
|
4394
|
-
readonly name: "
|
|
3925
|
+
readonly name: "ProtocolUpdated";
|
|
4395
3926
|
readonly type: "event";
|
|
4396
3927
|
}, {
|
|
4397
3928
|
readonly inputs: readonly [];
|
|
4398
|
-
readonly name: "
|
|
3929
|
+
readonly name: "getProtocol";
|
|
4399
3930
|
readonly outputs: readonly [{
|
|
4400
|
-
readonly internalType: "
|
|
4401
|
-
readonly name: "";
|
|
3931
|
+
readonly internalType: "address";
|
|
3932
|
+
readonly name: "protocol";
|
|
4402
3933
|
readonly type: "address";
|
|
4403
3934
|
}];
|
|
4404
3935
|
readonly stateMutability: "view";
|
|
4405
3936
|
readonly type: "function";
|
|
4406
3937
|
}, {
|
|
4407
3938
|
readonly inputs: readonly [];
|
|
4408
|
-
readonly name: "
|
|
3939
|
+
readonly name: "optimexDomain";
|
|
4409
3940
|
readonly outputs: readonly [{
|
|
4410
|
-
readonly internalType: "bytes1";
|
|
4411
|
-
readonly name: "fields";
|
|
4412
|
-
readonly type: "bytes1";
|
|
4413
|
-
}, {
|
|
4414
3941
|
readonly internalType: "string";
|
|
4415
3942
|
readonly name: "name";
|
|
4416
3943
|
readonly type: "string";
|
|
@@ -4418,118 +3945,58 @@ declare class MorphoLiquidator__factory {
|
|
|
4418
3945
|
readonly internalType: "string";
|
|
4419
3946
|
readonly name: "version";
|
|
4420
3947
|
readonly type: "string";
|
|
4421
|
-
}, {
|
|
4422
|
-
readonly internalType: "uint256";
|
|
4423
|
-
readonly name: "chainId";
|
|
4424
|
-
readonly type: "uint256";
|
|
4425
|
-
}, {
|
|
4426
|
-
readonly internalType: "address";
|
|
4427
|
-
readonly name: "verifyingContract";
|
|
4428
|
-
readonly type: "address";
|
|
4429
|
-
}, {
|
|
4430
|
-
readonly internalType: "bytes32";
|
|
4431
|
-
readonly name: "salt";
|
|
4432
|
-
readonly type: "bytes32";
|
|
4433
|
-
}, {
|
|
4434
|
-
readonly internalType: "uint256[]";
|
|
4435
|
-
readonly name: "extensions";
|
|
4436
|
-
readonly type: "uint256[]";
|
|
4437
3948
|
}];
|
|
4438
3949
|
readonly stateMutability: "view";
|
|
4439
3950
|
readonly type: "function";
|
|
4440
3951
|
}, {
|
|
4441
3952
|
readonly inputs: readonly [{
|
|
4442
3953
|
readonly internalType: "address";
|
|
4443
|
-
readonly name: "
|
|
3954
|
+
readonly name: "token";
|
|
4444
3955
|
readonly type: "address";
|
|
4445
3956
|
}, {
|
|
4446
|
-
readonly internalType: "bytes32";
|
|
4447
|
-
readonly name: "positionId";
|
|
4448
|
-
readonly type: "bytes32";
|
|
4449
|
-
}, {
|
|
4450
|
-
readonly internalType: "bytes";
|
|
4451
|
-
readonly name: "signature";
|
|
4452
|
-
readonly type: "bytes";
|
|
4453
|
-
}];
|
|
4454
|
-
readonly name: "finalizePosition";
|
|
4455
|
-
readonly outputs: readonly [];
|
|
4456
|
-
readonly stateMutability: "nonpayable";
|
|
4457
|
-
readonly type: "function";
|
|
4458
|
-
}, {
|
|
4459
|
-
readonly inputs: readonly [{
|
|
4460
|
-
readonly internalType: "uint256";
|
|
4461
|
-
readonly name: "repaidAssets";
|
|
4462
|
-
readonly type: "uint256";
|
|
4463
|
-
}, {
|
|
4464
|
-
readonly internalType: "bytes";
|
|
4465
|
-
readonly name: "data";
|
|
4466
|
-
readonly type: "bytes";
|
|
4467
|
-
}];
|
|
4468
|
-
readonly name: "onMorphoLiquidate";
|
|
4469
|
-
readonly outputs: readonly [];
|
|
4470
|
-
readonly stateMutability: "nonpayable";
|
|
4471
|
-
readonly type: "function";
|
|
4472
|
-
}, {
|
|
4473
|
-
readonly inputs: readonly [{
|
|
4474
3957
|
readonly internalType: "uint256";
|
|
4475
|
-
readonly name: "
|
|
3958
|
+
readonly name: "amount";
|
|
4476
3959
|
readonly type: "uint256";
|
|
4477
3960
|
}, {
|
|
4478
3961
|
readonly internalType: "bytes";
|
|
4479
|
-
readonly name: "
|
|
3962
|
+
readonly name: "externalCall";
|
|
4480
3963
|
readonly type: "bytes";
|
|
4481
3964
|
}];
|
|
4482
|
-
readonly name: "
|
|
3965
|
+
readonly name: "payment";
|
|
4483
3966
|
readonly outputs: readonly [];
|
|
4484
3967
|
readonly stateMutability: "nonpayable";
|
|
4485
3968
|
readonly type: "function";
|
|
4486
3969
|
}, {
|
|
4487
3970
|
readonly inputs: readonly [];
|
|
4488
|
-
readonly name: "
|
|
3971
|
+
readonly name: "paymentDetails";
|
|
4489
3972
|
readonly outputs: readonly [{
|
|
4490
|
-
readonly internalType: "
|
|
4491
|
-
readonly name: "
|
|
4492
|
-
readonly type: "
|
|
3973
|
+
readonly internalType: "address";
|
|
3974
|
+
readonly name: "payer";
|
|
3975
|
+
readonly type: "address";
|
|
4493
3976
|
}, {
|
|
4494
|
-
readonly internalType: "
|
|
4495
|
-
readonly name: "
|
|
4496
|
-
readonly type: "
|
|
3977
|
+
readonly internalType: "address";
|
|
3978
|
+
readonly name: "paymentToken";
|
|
3979
|
+
readonly type: "address";
|
|
3980
|
+
}, {
|
|
3981
|
+
readonly internalType: "uint256";
|
|
3982
|
+
readonly name: "paymentAmount";
|
|
3983
|
+
readonly type: "uint256";
|
|
4497
3984
|
}];
|
|
4498
3985
|
readonly stateMutability: "view";
|
|
4499
3986
|
readonly type: "function";
|
|
4500
3987
|
}, {
|
|
4501
3988
|
readonly inputs: readonly [{
|
|
4502
3989
|
readonly internalType: "address";
|
|
4503
|
-
readonly name: "
|
|
3990
|
+
readonly name: "newProtocol";
|
|
4504
3991
|
readonly type: "address";
|
|
4505
|
-
}, {
|
|
4506
|
-
readonly internalType: "bytes32";
|
|
4507
|
-
readonly name: "positionId";
|
|
4508
|
-
readonly type: "bytes32";
|
|
4509
|
-
}, {
|
|
4510
|
-
readonly internalType: "bytes32";
|
|
4511
|
-
readonly name: "tradeId";
|
|
4512
|
-
readonly type: "bytes32";
|
|
4513
|
-
}, {
|
|
4514
|
-
readonly internalType: "uint256";
|
|
4515
|
-
readonly name: "amount";
|
|
4516
|
-
readonly type: "uint256";
|
|
4517
|
-
}, {
|
|
4518
|
-
readonly internalType: "bool";
|
|
4519
|
-
readonly name: "isLiquidate";
|
|
4520
|
-
readonly type: "bool";
|
|
4521
|
-
}, {
|
|
4522
|
-
readonly internalType: "bytes";
|
|
4523
|
-
readonly name: "signature";
|
|
4524
|
-
readonly type: "bytes";
|
|
4525
3992
|
}];
|
|
4526
|
-
readonly name: "
|
|
3993
|
+
readonly name: "setProtocol";
|
|
4527
3994
|
readonly outputs: readonly [];
|
|
4528
3995
|
readonly stateMutability: "nonpayable";
|
|
4529
3996
|
readonly type: "function";
|
|
4530
3997
|
}];
|
|
4531
|
-
static createInterface():
|
|
4532
|
-
static connect(address: string, runner?: ContractRunner | null):
|
|
3998
|
+
static createInterface(): MorphoLiquidationGatewayInterface;
|
|
3999
|
+
static connect(address: string, runner?: ContractRunner | null): MorphoLiquidationGateway;
|
|
4533
4000
|
}
|
|
4534
4001
|
|
|
4535
4002
|
declare class Payment__factory {
|
|
@@ -6745,8 +6212,8 @@ declare class Signer__factory {
|
|
|
6745
6212
|
|
|
6746
6213
|
type index_ERC20__factory = ERC20__factory;
|
|
6747
6214
|
declare const index_ERC20__factory: typeof ERC20__factory;
|
|
6748
|
-
type
|
|
6749
|
-
declare const
|
|
6215
|
+
type index_MorphoLiquidationGateway__factory = MorphoLiquidationGateway__factory;
|
|
6216
|
+
declare const index_MorphoLiquidationGateway__factory: typeof MorphoLiquidationGateway__factory;
|
|
6750
6217
|
type index_Payment__factory = Payment__factory;
|
|
6751
6218
|
declare const index_Payment__factory: typeof Payment__factory;
|
|
6752
6219
|
type index_ProtocolFetcherProxy__factory = ProtocolFetcherProxy__factory;
|
|
@@ -6756,7 +6223,7 @@ declare const index_Router__factory: typeof Router__factory;
|
|
|
6756
6223
|
type index_Signer__factory = Signer__factory;
|
|
6757
6224
|
declare const index_Signer__factory: typeof Signer__factory;
|
|
6758
6225
|
declare namespace index {
|
|
6759
|
-
export { index_ERC20__factory as ERC20__factory,
|
|
6226
|
+
export { index_ERC20__factory as ERC20__factory, index_MorphoLiquidationGateway__factory as MorphoLiquidationGateway__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 };
|
|
6760
6227
|
}
|
|
6761
6228
|
|
|
6762
6229
|
declare namespace ITypes {
|
|
@@ -6830,7 +6297,7 @@ declare enum AssetChainContractRole {
|
|
|
6830
6297
|
Payment = "OptimexSwapPayment",
|
|
6831
6298
|
OptimexManagement = "OptimexManagement",
|
|
6832
6299
|
MorphoSupplier = "MorphoSupplier",
|
|
6833
|
-
|
|
6300
|
+
MorphoLiquidationGateway = "MorphoLiquidationGateway",
|
|
6834
6301
|
MorphoManagement = "MorphoManagement"
|
|
6835
6302
|
}
|
|
6836
6303
|
declare enum L2ContractRole {
|
|
@@ -7484,4 +6951,4 @@ declare function camelToSnakeCase(str: string): string;
|
|
|
7484
6951
|
declare const ensureHexPrefix: (value: string) => string;
|
|
7485
6952
|
declare const removeHexPrefix: (value: string) => string;
|
|
7486
6953
|
|
|
7487
|
-
export { type AppConfig, AssetChainContractRole, type ConfigObserver, type ERC20, ERC20__factory, type Environment, type EnvironmentConfig, ITypes, L2ContractRole, type
|
|
6954
|
+
export { type AppConfig, AssetChainContractRole, type ConfigObserver, type ERC20, ERC20__factory, type Environment, type EnvironmentConfig, ITypes, L2ContractRole, type MorphoLiquidationGateway, MorphoLiquidationGateway__factory, OptimexBtcNetwork, OptimexEvmNetwork, OptimexL2Network, OptimexLendingNetwork, type OptimexNetwork, OptimexSolanaNetwork, 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, type UnknownNetwork, camelToSnakeCase, config, confirmDepositType, confirmPaymentType, confirmSettlementType, convertToCamelCase, convertToSnakeCase, ensureHexPrefix, index as factories, getCommitInfoHash, getMakePaymentHash, getSignature, getSigner, getTradeIdsHash, isBtcNetwork, isEvmNetwork, isL2Network, isSolanaNetwork, makePaymentType, presignType, protocolService, removeHexPrefix, rfqAuthenticationTypes, routerService, sdk, selectionType, signerService, snakeToCamelCase, solverService, tokenService };
|