@optimex-xyz/market-maker-sdk 0.9.0-dev-f4af425 → 0.9.0-dev-55c356d
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 +53 -53
- package/dist/index.d.ts +53 -53
- package/dist/index.js +32 -32
- package/dist/index.mjs +32 -32
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -990,7 +990,7 @@ interface ERC20 extends BaseContract {
|
|
|
990
990
|
|
|
991
991
|
interface MorphoLiquidatorInterface extends Interface {
|
|
992
992
|
getFunction(nameOrSignature: "MORPHO_MANAGEMENT" | "eip712Domain" | "finalizePosition" | "onMorphoLiquidate" | "onMorphoRepay" | "optimexDomain" | "payment"): FunctionFragment;
|
|
993
|
-
getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged" | "FinalizePosition" | "ForceClose" | "Liquidate" | "OnMorphoLiquidate" | "OnMorphoRepay" | "Payment" | "ProfitTaken"
|
|
993
|
+
getEvent(nameOrSignatureOrTopic: "Credit" | "EIP712DomainChanged" | "FinalizePosition" | "ForceClose" | "Liquidate" | "OnMorphoLiquidate" | "OnMorphoRepay" | "Payment" | "ProfitTaken"): EventFragment;
|
|
994
994
|
encodeFunctionData(functionFragment: "MORPHO_MANAGEMENT", values?: undefined): string;
|
|
995
995
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
996
996
|
encodeFunctionData(functionFragment: "finalizePosition", values: [AddressLike, BytesLike, BytesLike]): string;
|
|
@@ -1013,6 +1013,30 @@ interface MorphoLiquidatorInterface extends Interface {
|
|
|
1013
1013
|
decodeFunctionResult(functionFragment: "optimexDomain", data: BytesLike): Result;
|
|
1014
1014
|
decodeFunctionResult(functionFragment: "payment", data: BytesLike): Result;
|
|
1015
1015
|
}
|
|
1016
|
+
declare namespace CreditEvent {
|
|
1017
|
+
type InputTuple = [
|
|
1018
|
+
positionId: BytesLike,
|
|
1019
|
+
token: AddressLike,
|
|
1020
|
+
recipient: AddressLike,
|
|
1021
|
+
amount: BigNumberish
|
|
1022
|
+
];
|
|
1023
|
+
type OutputTuple = [
|
|
1024
|
+
positionId: string,
|
|
1025
|
+
token: string,
|
|
1026
|
+
recipient: string,
|
|
1027
|
+
amount: bigint
|
|
1028
|
+
];
|
|
1029
|
+
interface OutputObject {
|
|
1030
|
+
positionId: string;
|
|
1031
|
+
token: string;
|
|
1032
|
+
recipient: string;
|
|
1033
|
+
amount: bigint;
|
|
1034
|
+
}
|
|
1035
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1036
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1037
|
+
type Log = TypedEventLog<Event>;
|
|
1038
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1039
|
+
}
|
|
1016
1040
|
declare namespace EIP712DomainChangedEvent$1 {
|
|
1017
1041
|
type InputTuple = [];
|
|
1018
1042
|
type OutputTuple = [];
|
|
@@ -1179,30 +1203,6 @@ declare namespace ProfitTakenEvent {
|
|
|
1179
1203
|
type Log = TypedEventLog<Event>;
|
|
1180
1204
|
type LogDescription = TypedLogDescription<Event>;
|
|
1181
1205
|
}
|
|
1182
|
-
declare namespace RefundEvent {
|
|
1183
|
-
type InputTuple = [
|
|
1184
|
-
positionId: BytesLike,
|
|
1185
|
-
token: AddressLike,
|
|
1186
|
-
recipient: AddressLike,
|
|
1187
|
-
amount: BigNumberish
|
|
1188
|
-
];
|
|
1189
|
-
type OutputTuple = [
|
|
1190
|
-
positionId: string,
|
|
1191
|
-
token: string,
|
|
1192
|
-
recipient: string,
|
|
1193
|
-
amount: bigint
|
|
1194
|
-
];
|
|
1195
|
-
interface OutputObject {
|
|
1196
|
-
positionId: string;
|
|
1197
|
-
token: string;
|
|
1198
|
-
recipient: string;
|
|
1199
|
-
amount: bigint;
|
|
1200
|
-
}
|
|
1201
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1202
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1203
|
-
type Log = TypedEventLog<Event>;
|
|
1204
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1205
|
-
}
|
|
1206
1206
|
interface MorphoLiquidator extends BaseContract {
|
|
1207
1207
|
connect(runner?: ContractRunner | null): MorphoLiquidator;
|
|
1208
1208
|
waitForDeployment(): Promise<this>;
|
|
@@ -1331,6 +1331,7 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1331
1331
|
], [
|
|
1332
1332
|
void
|
|
1333
1333
|
], "nonpayable">;
|
|
1334
|
+
getEvent(key: "Credit"): TypedContractEvent<CreditEvent.InputTuple, CreditEvent.OutputTuple, CreditEvent.OutputObject>;
|
|
1334
1335
|
getEvent(key: "EIP712DomainChanged"): TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1335
1336
|
getEvent(key: "FinalizePosition"): TypedContractEvent<FinalizePositionEvent.InputTuple, FinalizePositionEvent.OutputTuple, FinalizePositionEvent.OutputObject>;
|
|
1336
1337
|
getEvent(key: "ForceClose"): TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
|
|
@@ -1339,8 +1340,9 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1339
1340
|
getEvent(key: "OnMorphoRepay"): TypedContractEvent<OnMorphoRepayEvent.InputTuple, OnMorphoRepayEvent.OutputTuple, OnMorphoRepayEvent.OutputObject>;
|
|
1340
1341
|
getEvent(key: "Payment"): TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1341
1342
|
getEvent(key: "ProfitTaken"): TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1342
|
-
getEvent(key: "Refund"): TypedContractEvent<RefundEvent.InputTuple, RefundEvent.OutputTuple, RefundEvent.OutputObject>;
|
|
1343
1343
|
filters: {
|
|
1344
|
+
"Credit(bytes32,address,address,uint256)": TypedContractEvent<CreditEvent.InputTuple, CreditEvent.OutputTuple, CreditEvent.OutputObject>;
|
|
1345
|
+
Credit: TypedContractEvent<CreditEvent.InputTuple, CreditEvent.OutputTuple, CreditEvent.OutputObject>;
|
|
1344
1346
|
"EIP712DomainChanged()": TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1345
1347
|
EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1346
1348
|
"FinalizePosition(bytes32,address,uint256)": TypedContractEvent<FinalizePositionEvent.InputTuple, FinalizePositionEvent.OutputTuple, FinalizePositionEvent.OutputObject>;
|
|
@@ -1357,8 +1359,6 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1357
1359
|
Payment: TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1358
1360
|
"ProfitTaken(bytes32,address,address,uint256)": TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1359
1361
|
ProfitTaken: TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1360
|
-
"Refund(bytes32,address,address,uint256)": TypedContractEvent<RefundEvent.InputTuple, RefundEvent.OutputTuple, RefundEvent.OutputObject>;
|
|
1361
|
-
Refund: TypedContractEvent<RefundEvent.InputTuple, RefundEvent.OutputTuple, RefundEvent.OutputObject>;
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
1364
|
|
|
@@ -4030,6 +4030,31 @@ declare class MorphoLiquidator__factory {
|
|
|
4030
4030
|
readonly inputs: readonly [];
|
|
4031
4031
|
readonly name: "ZeroAmount";
|
|
4032
4032
|
readonly type: "error";
|
|
4033
|
+
}, {
|
|
4034
|
+
readonly anonymous: false;
|
|
4035
|
+
readonly inputs: readonly [{
|
|
4036
|
+
readonly indexed: true;
|
|
4037
|
+
readonly internalType: "bytes32";
|
|
4038
|
+
readonly name: "positionId";
|
|
4039
|
+
readonly type: "bytes32";
|
|
4040
|
+
}, {
|
|
4041
|
+
readonly indexed: true;
|
|
4042
|
+
readonly internalType: "address";
|
|
4043
|
+
readonly name: "token";
|
|
4044
|
+
readonly type: "address";
|
|
4045
|
+
}, {
|
|
4046
|
+
readonly indexed: true;
|
|
4047
|
+
readonly internalType: "address";
|
|
4048
|
+
readonly name: "recipient";
|
|
4049
|
+
readonly type: "address";
|
|
4050
|
+
}, {
|
|
4051
|
+
readonly indexed: false;
|
|
4052
|
+
readonly internalType: "uint256";
|
|
4053
|
+
readonly name: "amount";
|
|
4054
|
+
readonly type: "uint256";
|
|
4055
|
+
}];
|
|
4056
|
+
readonly name: "Credit";
|
|
4057
|
+
readonly type: "event";
|
|
4033
4058
|
}, {
|
|
4034
4059
|
readonly anonymous: false;
|
|
4035
4060
|
readonly inputs: readonly [];
|
|
@@ -4210,31 +4235,6 @@ declare class MorphoLiquidator__factory {
|
|
|
4210
4235
|
}];
|
|
4211
4236
|
readonly name: "ProfitTaken";
|
|
4212
4237
|
readonly type: "event";
|
|
4213
|
-
}, {
|
|
4214
|
-
readonly anonymous: false;
|
|
4215
|
-
readonly inputs: readonly [{
|
|
4216
|
-
readonly indexed: true;
|
|
4217
|
-
readonly internalType: "bytes32";
|
|
4218
|
-
readonly name: "positionId";
|
|
4219
|
-
readonly type: "bytes32";
|
|
4220
|
-
}, {
|
|
4221
|
-
readonly indexed: true;
|
|
4222
|
-
readonly internalType: "address";
|
|
4223
|
-
readonly name: "token";
|
|
4224
|
-
readonly type: "address";
|
|
4225
|
-
}, {
|
|
4226
|
-
readonly indexed: true;
|
|
4227
|
-
readonly internalType: "address";
|
|
4228
|
-
readonly name: "recipient";
|
|
4229
|
-
readonly type: "address";
|
|
4230
|
-
}, {
|
|
4231
|
-
readonly indexed: false;
|
|
4232
|
-
readonly internalType: "uint256";
|
|
4233
|
-
readonly name: "amount";
|
|
4234
|
-
readonly type: "uint256";
|
|
4235
|
-
}];
|
|
4236
|
-
readonly name: "Refund";
|
|
4237
|
-
readonly type: "event";
|
|
4238
4238
|
}, {
|
|
4239
4239
|
readonly inputs: readonly [];
|
|
4240
4240
|
readonly name: "MORPHO_MANAGEMENT";
|
package/dist/index.d.ts
CHANGED
|
@@ -990,7 +990,7 @@ interface ERC20 extends BaseContract {
|
|
|
990
990
|
|
|
991
991
|
interface MorphoLiquidatorInterface extends Interface {
|
|
992
992
|
getFunction(nameOrSignature: "MORPHO_MANAGEMENT" | "eip712Domain" | "finalizePosition" | "onMorphoLiquidate" | "onMorphoRepay" | "optimexDomain" | "payment"): FunctionFragment;
|
|
993
|
-
getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged" | "FinalizePosition" | "ForceClose" | "Liquidate" | "OnMorphoLiquidate" | "OnMorphoRepay" | "Payment" | "ProfitTaken"
|
|
993
|
+
getEvent(nameOrSignatureOrTopic: "Credit" | "EIP712DomainChanged" | "FinalizePosition" | "ForceClose" | "Liquidate" | "OnMorphoLiquidate" | "OnMorphoRepay" | "Payment" | "ProfitTaken"): EventFragment;
|
|
994
994
|
encodeFunctionData(functionFragment: "MORPHO_MANAGEMENT", values?: undefined): string;
|
|
995
995
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
996
996
|
encodeFunctionData(functionFragment: "finalizePosition", values: [AddressLike, BytesLike, BytesLike]): string;
|
|
@@ -1013,6 +1013,30 @@ interface MorphoLiquidatorInterface extends Interface {
|
|
|
1013
1013
|
decodeFunctionResult(functionFragment: "optimexDomain", data: BytesLike): Result;
|
|
1014
1014
|
decodeFunctionResult(functionFragment: "payment", data: BytesLike): Result;
|
|
1015
1015
|
}
|
|
1016
|
+
declare namespace CreditEvent {
|
|
1017
|
+
type InputTuple = [
|
|
1018
|
+
positionId: BytesLike,
|
|
1019
|
+
token: AddressLike,
|
|
1020
|
+
recipient: AddressLike,
|
|
1021
|
+
amount: BigNumberish
|
|
1022
|
+
];
|
|
1023
|
+
type OutputTuple = [
|
|
1024
|
+
positionId: string,
|
|
1025
|
+
token: string,
|
|
1026
|
+
recipient: string,
|
|
1027
|
+
amount: bigint
|
|
1028
|
+
];
|
|
1029
|
+
interface OutputObject {
|
|
1030
|
+
positionId: string;
|
|
1031
|
+
token: string;
|
|
1032
|
+
recipient: string;
|
|
1033
|
+
amount: bigint;
|
|
1034
|
+
}
|
|
1035
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1036
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1037
|
+
type Log = TypedEventLog<Event>;
|
|
1038
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1039
|
+
}
|
|
1016
1040
|
declare namespace EIP712DomainChangedEvent$1 {
|
|
1017
1041
|
type InputTuple = [];
|
|
1018
1042
|
type OutputTuple = [];
|
|
@@ -1179,30 +1203,6 @@ declare namespace ProfitTakenEvent {
|
|
|
1179
1203
|
type Log = TypedEventLog<Event>;
|
|
1180
1204
|
type LogDescription = TypedLogDescription<Event>;
|
|
1181
1205
|
}
|
|
1182
|
-
declare namespace RefundEvent {
|
|
1183
|
-
type InputTuple = [
|
|
1184
|
-
positionId: BytesLike,
|
|
1185
|
-
token: AddressLike,
|
|
1186
|
-
recipient: AddressLike,
|
|
1187
|
-
amount: BigNumberish
|
|
1188
|
-
];
|
|
1189
|
-
type OutputTuple = [
|
|
1190
|
-
positionId: string,
|
|
1191
|
-
token: string,
|
|
1192
|
-
recipient: string,
|
|
1193
|
-
amount: bigint
|
|
1194
|
-
];
|
|
1195
|
-
interface OutputObject {
|
|
1196
|
-
positionId: string;
|
|
1197
|
-
token: string;
|
|
1198
|
-
recipient: string;
|
|
1199
|
-
amount: bigint;
|
|
1200
|
-
}
|
|
1201
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1202
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1203
|
-
type Log = TypedEventLog<Event>;
|
|
1204
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1205
|
-
}
|
|
1206
1206
|
interface MorphoLiquidator extends BaseContract {
|
|
1207
1207
|
connect(runner?: ContractRunner | null): MorphoLiquidator;
|
|
1208
1208
|
waitForDeployment(): Promise<this>;
|
|
@@ -1331,6 +1331,7 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1331
1331
|
], [
|
|
1332
1332
|
void
|
|
1333
1333
|
], "nonpayable">;
|
|
1334
|
+
getEvent(key: "Credit"): TypedContractEvent<CreditEvent.InputTuple, CreditEvent.OutputTuple, CreditEvent.OutputObject>;
|
|
1334
1335
|
getEvent(key: "EIP712DomainChanged"): TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1335
1336
|
getEvent(key: "FinalizePosition"): TypedContractEvent<FinalizePositionEvent.InputTuple, FinalizePositionEvent.OutputTuple, FinalizePositionEvent.OutputObject>;
|
|
1336
1337
|
getEvent(key: "ForceClose"): TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
|
|
@@ -1339,8 +1340,9 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1339
1340
|
getEvent(key: "OnMorphoRepay"): TypedContractEvent<OnMorphoRepayEvent.InputTuple, OnMorphoRepayEvent.OutputTuple, OnMorphoRepayEvent.OutputObject>;
|
|
1340
1341
|
getEvent(key: "Payment"): TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1341
1342
|
getEvent(key: "ProfitTaken"): TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1342
|
-
getEvent(key: "Refund"): TypedContractEvent<RefundEvent.InputTuple, RefundEvent.OutputTuple, RefundEvent.OutputObject>;
|
|
1343
1343
|
filters: {
|
|
1344
|
+
"Credit(bytes32,address,address,uint256)": TypedContractEvent<CreditEvent.InputTuple, CreditEvent.OutputTuple, CreditEvent.OutputObject>;
|
|
1345
|
+
Credit: TypedContractEvent<CreditEvent.InputTuple, CreditEvent.OutputTuple, CreditEvent.OutputObject>;
|
|
1344
1346
|
"EIP712DomainChanged()": TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1345
1347
|
EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
|
|
1346
1348
|
"FinalizePosition(bytes32,address,uint256)": TypedContractEvent<FinalizePositionEvent.InputTuple, FinalizePositionEvent.OutputTuple, FinalizePositionEvent.OutputObject>;
|
|
@@ -1357,8 +1359,6 @@ interface MorphoLiquidator extends BaseContract {
|
|
|
1357
1359
|
Payment: TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
|
|
1358
1360
|
"ProfitTaken(bytes32,address,address,uint256)": TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1359
1361
|
ProfitTaken: TypedContractEvent<ProfitTakenEvent.InputTuple, ProfitTakenEvent.OutputTuple, ProfitTakenEvent.OutputObject>;
|
|
1360
|
-
"Refund(bytes32,address,address,uint256)": TypedContractEvent<RefundEvent.InputTuple, RefundEvent.OutputTuple, RefundEvent.OutputObject>;
|
|
1361
|
-
Refund: TypedContractEvent<RefundEvent.InputTuple, RefundEvent.OutputTuple, RefundEvent.OutputObject>;
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
1364
|
|
|
@@ -4030,6 +4030,31 @@ declare class MorphoLiquidator__factory {
|
|
|
4030
4030
|
readonly inputs: readonly [];
|
|
4031
4031
|
readonly name: "ZeroAmount";
|
|
4032
4032
|
readonly type: "error";
|
|
4033
|
+
}, {
|
|
4034
|
+
readonly anonymous: false;
|
|
4035
|
+
readonly inputs: readonly [{
|
|
4036
|
+
readonly indexed: true;
|
|
4037
|
+
readonly internalType: "bytes32";
|
|
4038
|
+
readonly name: "positionId";
|
|
4039
|
+
readonly type: "bytes32";
|
|
4040
|
+
}, {
|
|
4041
|
+
readonly indexed: true;
|
|
4042
|
+
readonly internalType: "address";
|
|
4043
|
+
readonly name: "token";
|
|
4044
|
+
readonly type: "address";
|
|
4045
|
+
}, {
|
|
4046
|
+
readonly indexed: true;
|
|
4047
|
+
readonly internalType: "address";
|
|
4048
|
+
readonly name: "recipient";
|
|
4049
|
+
readonly type: "address";
|
|
4050
|
+
}, {
|
|
4051
|
+
readonly indexed: false;
|
|
4052
|
+
readonly internalType: "uint256";
|
|
4053
|
+
readonly name: "amount";
|
|
4054
|
+
readonly type: "uint256";
|
|
4055
|
+
}];
|
|
4056
|
+
readonly name: "Credit";
|
|
4057
|
+
readonly type: "event";
|
|
4033
4058
|
}, {
|
|
4034
4059
|
readonly anonymous: false;
|
|
4035
4060
|
readonly inputs: readonly [];
|
|
@@ -4210,31 +4235,6 @@ declare class MorphoLiquidator__factory {
|
|
|
4210
4235
|
}];
|
|
4211
4236
|
readonly name: "ProfitTaken";
|
|
4212
4237
|
readonly type: "event";
|
|
4213
|
-
}, {
|
|
4214
|
-
readonly anonymous: false;
|
|
4215
|
-
readonly inputs: readonly [{
|
|
4216
|
-
readonly indexed: true;
|
|
4217
|
-
readonly internalType: "bytes32";
|
|
4218
|
-
readonly name: "positionId";
|
|
4219
|
-
readonly type: "bytes32";
|
|
4220
|
-
}, {
|
|
4221
|
-
readonly indexed: true;
|
|
4222
|
-
readonly internalType: "address";
|
|
4223
|
-
readonly name: "token";
|
|
4224
|
-
readonly type: "address";
|
|
4225
|
-
}, {
|
|
4226
|
-
readonly indexed: true;
|
|
4227
|
-
readonly internalType: "address";
|
|
4228
|
-
readonly name: "recipient";
|
|
4229
|
-
readonly type: "address";
|
|
4230
|
-
}, {
|
|
4231
|
-
readonly indexed: false;
|
|
4232
|
-
readonly internalType: "uint256";
|
|
4233
|
-
readonly name: "amount";
|
|
4234
|
-
readonly type: "uint256";
|
|
4235
|
-
}];
|
|
4236
|
-
readonly name: "Refund";
|
|
4237
|
-
readonly type: "event";
|
|
4238
4238
|
}, {
|
|
4239
4239
|
readonly inputs: readonly [];
|
|
4240
4240
|
readonly name: "MORPHO_MANAGEMENT";
|
package/dist/index.js
CHANGED
|
@@ -83,7 +83,7 @@ var environments = {
|
|
|
83
83
|
ethereum_sepolia: "0x1d8b58438D5Ccc8Fcb4b738C89078f7b4168C9c0"
|
|
84
84
|
},
|
|
85
85
|
liquidationAddressMap: {
|
|
86
|
-
ethereum_sepolia: "
|
|
86
|
+
ethereum_sepolia: "0x5A0EAc7b85F08b50f04C89A920F1E834d24694E3"
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
staging: {
|
|
@@ -1780,6 +1780,37 @@ var _abi2 = [
|
|
|
1780
1780
|
name: "ZeroAmount",
|
|
1781
1781
|
type: "error"
|
|
1782
1782
|
},
|
|
1783
|
+
{
|
|
1784
|
+
anonymous: false,
|
|
1785
|
+
inputs: [
|
|
1786
|
+
{
|
|
1787
|
+
indexed: true,
|
|
1788
|
+
internalType: "bytes32",
|
|
1789
|
+
name: "positionId",
|
|
1790
|
+
type: "bytes32"
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
indexed: true,
|
|
1794
|
+
internalType: "address",
|
|
1795
|
+
name: "token",
|
|
1796
|
+
type: "address"
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
indexed: true,
|
|
1800
|
+
internalType: "address",
|
|
1801
|
+
name: "recipient",
|
|
1802
|
+
type: "address"
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
indexed: false,
|
|
1806
|
+
internalType: "uint256",
|
|
1807
|
+
name: "amount",
|
|
1808
|
+
type: "uint256"
|
|
1809
|
+
}
|
|
1810
|
+
],
|
|
1811
|
+
name: "Credit",
|
|
1812
|
+
type: "event"
|
|
1813
|
+
},
|
|
1783
1814
|
{
|
|
1784
1815
|
anonymous: false,
|
|
1785
1816
|
inputs: [],
|
|
@@ -2003,37 +2034,6 @@ var _abi2 = [
|
|
|
2003
2034
|
name: "ProfitTaken",
|
|
2004
2035
|
type: "event"
|
|
2005
2036
|
},
|
|
2006
|
-
{
|
|
2007
|
-
anonymous: false,
|
|
2008
|
-
inputs: [
|
|
2009
|
-
{
|
|
2010
|
-
indexed: true,
|
|
2011
|
-
internalType: "bytes32",
|
|
2012
|
-
name: "positionId",
|
|
2013
|
-
type: "bytes32"
|
|
2014
|
-
},
|
|
2015
|
-
{
|
|
2016
|
-
indexed: true,
|
|
2017
|
-
internalType: "address",
|
|
2018
|
-
name: "token",
|
|
2019
|
-
type: "address"
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
indexed: true,
|
|
2023
|
-
internalType: "address",
|
|
2024
|
-
name: "recipient",
|
|
2025
|
-
type: "address"
|
|
2026
|
-
},
|
|
2027
|
-
{
|
|
2028
|
-
indexed: false,
|
|
2029
|
-
internalType: "uint256",
|
|
2030
|
-
name: "amount",
|
|
2031
|
-
type: "uint256"
|
|
2032
|
-
}
|
|
2033
|
-
],
|
|
2034
|
-
name: "Refund",
|
|
2035
|
-
type: "event"
|
|
2036
|
-
},
|
|
2037
2037
|
{
|
|
2038
2038
|
inputs: [],
|
|
2039
2039
|
name: "MORPHO_MANAGEMENT",
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var environments = {
|
|
|
14
14
|
ethereum_sepolia: "0x1d8b58438D5Ccc8Fcb4b738C89078f7b4168C9c0"
|
|
15
15
|
},
|
|
16
16
|
liquidationAddressMap: {
|
|
17
|
-
ethereum_sepolia: "
|
|
17
|
+
ethereum_sepolia: "0x5A0EAc7b85F08b50f04C89A920F1E834d24694E3"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
staging: {
|
|
@@ -1711,6 +1711,37 @@ var _abi2 = [
|
|
|
1711
1711
|
name: "ZeroAmount",
|
|
1712
1712
|
type: "error"
|
|
1713
1713
|
},
|
|
1714
|
+
{
|
|
1715
|
+
anonymous: false,
|
|
1716
|
+
inputs: [
|
|
1717
|
+
{
|
|
1718
|
+
indexed: true,
|
|
1719
|
+
internalType: "bytes32",
|
|
1720
|
+
name: "positionId",
|
|
1721
|
+
type: "bytes32"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
indexed: true,
|
|
1725
|
+
internalType: "address",
|
|
1726
|
+
name: "token",
|
|
1727
|
+
type: "address"
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
indexed: true,
|
|
1731
|
+
internalType: "address",
|
|
1732
|
+
name: "recipient",
|
|
1733
|
+
type: "address"
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
indexed: false,
|
|
1737
|
+
internalType: "uint256",
|
|
1738
|
+
name: "amount",
|
|
1739
|
+
type: "uint256"
|
|
1740
|
+
}
|
|
1741
|
+
],
|
|
1742
|
+
name: "Credit",
|
|
1743
|
+
type: "event"
|
|
1744
|
+
},
|
|
1714
1745
|
{
|
|
1715
1746
|
anonymous: false,
|
|
1716
1747
|
inputs: [],
|
|
@@ -1934,37 +1965,6 @@ var _abi2 = [
|
|
|
1934
1965
|
name: "ProfitTaken",
|
|
1935
1966
|
type: "event"
|
|
1936
1967
|
},
|
|
1937
|
-
{
|
|
1938
|
-
anonymous: false,
|
|
1939
|
-
inputs: [
|
|
1940
|
-
{
|
|
1941
|
-
indexed: true,
|
|
1942
|
-
internalType: "bytes32",
|
|
1943
|
-
name: "positionId",
|
|
1944
|
-
type: "bytes32"
|
|
1945
|
-
},
|
|
1946
|
-
{
|
|
1947
|
-
indexed: true,
|
|
1948
|
-
internalType: "address",
|
|
1949
|
-
name: "token",
|
|
1950
|
-
type: "address"
|
|
1951
|
-
},
|
|
1952
|
-
{
|
|
1953
|
-
indexed: true,
|
|
1954
|
-
internalType: "address",
|
|
1955
|
-
name: "recipient",
|
|
1956
|
-
type: "address"
|
|
1957
|
-
},
|
|
1958
|
-
{
|
|
1959
|
-
indexed: false,
|
|
1960
|
-
internalType: "uint256",
|
|
1961
|
-
name: "amount",
|
|
1962
|
-
type: "uint256"
|
|
1963
|
-
}
|
|
1964
|
-
],
|
|
1965
|
-
name: "Refund",
|
|
1966
|
-
type: "event"
|
|
1967
|
-
},
|
|
1968
1968
|
{
|
|
1969
1969
|
inputs: [],
|
|
1970
1970
|
name: "MORPHO_MANAGEMENT",
|