@optimex-xyz/market-maker-sdk 0.9.0-dev-b4f27ea → 0.9.0-dev-df6089b

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, AddressLike, BigNumberish, BytesLike, Result, Listener, ContractMethod, Provider, Signer as Signer$1, Wallet, TypedDataDomain } from 'ethers';
2
2
  import { z } from 'zod';
3
3
 
4
- type Environment = 'dev' | 'prelive' | 'production' | 'staging';
4
+ type Environment = 'development' | 'prelive' | 'production' | 'staging';
5
5
  interface EnvironmentConfig {
6
6
  backendUrl: string;
7
7
  rpcUrl: string;
@@ -989,13 +989,14 @@ interface ERC20 extends BaseContract {
989
989
  }
990
990
 
991
991
  interface LendingLiquidationInterface extends Interface {
992
- getFunction(nameOrSignature: "LENDING_MANAGEMENT" | "MORPHO" | "VALIDATOR_FORCE_CLOSE_TYPEHASH" | "eip712Domain" | "onMorphoLiquidate" | "optimexDomain" | "owBtc" | "payment"): FunctionFragment;
992
+ getFunction(nameOrSignature: "LENDING_MANAGEMENT" | "MORPHO" | "VALIDATOR_FORCE_CLOSE_TYPEHASH" | "eip712Domain" | "onMorphoLiquidate" | "onMorphoRepay" | "optimexDomain" | "owBtc" | "payment"): FunctionFragment;
993
993
  getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged" | "ForceClose" | "Liquidate" | "Payment"): EventFragment;
994
994
  encodeFunctionData(functionFragment: "LENDING_MANAGEMENT", values?: undefined): string;
995
995
  encodeFunctionData(functionFragment: "MORPHO", values?: undefined): string;
996
996
  encodeFunctionData(functionFragment: "VALIDATOR_FORCE_CLOSE_TYPEHASH", values?: undefined): string;
997
997
  encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
998
998
  encodeFunctionData(functionFragment: "onMorphoLiquidate", values: [BigNumberish, BytesLike]): string;
999
+ encodeFunctionData(functionFragment: "onMorphoRepay", values: [BigNumberish, BytesLike]): string;
999
1000
  encodeFunctionData(functionFragment: "optimexDomain", values?: undefined): string;
1000
1001
  encodeFunctionData(functionFragment: "owBtc", values?: undefined): string;
1001
1002
  encodeFunctionData(functionFragment: "payment", values: [
@@ -1011,6 +1012,7 @@ interface LendingLiquidationInterface extends Interface {
1011
1012
  decodeFunctionResult(functionFragment: "VALIDATOR_FORCE_CLOSE_TYPEHASH", data: BytesLike): Result;
1012
1013
  decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
1013
1014
  decodeFunctionResult(functionFragment: "onMorphoLiquidate", data: BytesLike): Result;
1015
+ decodeFunctionResult(functionFragment: "onMorphoRepay", data: BytesLike): Result;
1014
1016
  decodeFunctionResult(functionFragment: "optimexDomain", data: BytesLike): Result;
1015
1017
  decodeFunctionResult(functionFragment: "owBtc", data: BytesLike): Result;
1016
1018
  decodeFunctionResult(functionFragment: "payment", data: BytesLike): Result;
@@ -1060,6 +1062,7 @@ declare namespace LiquidateEvent {
1060
1062
  positionManager: AddressLike,
1061
1063
  positionId: BytesLike,
1062
1064
  tradeId: BytesLike,
1065
+ sender: AddressLike,
1063
1066
  marketId: BytesLike,
1064
1067
  seizedCollateral: BigNumberish,
1065
1068
  remainingCollateral: BigNumberish,
@@ -1070,6 +1073,7 @@ declare namespace LiquidateEvent {
1070
1073
  positionManager: string,
1071
1074
  positionId: string,
1072
1075
  tradeId: string,
1076
+ sender: string,
1073
1077
  marketId: string,
1074
1078
  seizedCollateral: bigint,
1075
1079
  remainingCollateral: bigint,
@@ -1080,6 +1084,7 @@ declare namespace LiquidateEvent {
1080
1084
  positionManager: string;
1081
1085
  positionId: string;
1082
1086
  tradeId: string;
1087
+ sender: string;
1083
1088
  marketId: string;
1084
1089
  seizedCollateral: bigint;
1085
1090
  remainingCollateral: bigint;
@@ -1166,6 +1171,12 @@ interface LendingLiquidation extends BaseContract {
1166
1171
  ], [
1167
1172
  void
1168
1173
  ], "nonpayable">;
1174
+ onMorphoRepay: TypedContractMethod<[
1175
+ repaidAssets: BigNumberish,
1176
+ data: BytesLike
1177
+ ], [
1178
+ void
1179
+ ], "nonpayable">;
1169
1180
  optimexDomain: TypedContractMethod<[
1170
1181
  ], [
1171
1182
  [string, string] & {
@@ -1214,6 +1225,12 @@ interface LendingLiquidation extends BaseContract {
1214
1225
  ], [
1215
1226
  void
1216
1227
  ], "nonpayable">;
1228
+ getFunction(nameOrSignature: "onMorphoRepay"): TypedContractMethod<[
1229
+ repaidAssets: BigNumberish,
1230
+ data: BytesLike
1231
+ ], [
1232
+ void
1233
+ ], "nonpayable">;
1217
1234
  getFunction(nameOrSignature: "optimexDomain"): TypedContractMethod<[
1218
1235
  ], [
1219
1236
  [string, string] & {
@@ -1241,7 +1258,7 @@ interface LendingLiquidation extends BaseContract {
1241
1258
  EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
1242
1259
  "ForceClose(address,bytes32,bytes32,bytes32,uint256,uint256)": TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
1243
1260
  ForceClose: TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
1244
- "Liquidate(address,bytes32,bytes32,bytes32,uint256,uint256,uint256,uint256)": TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
1261
+ "Liquidate(address,bytes32,bytes32,address,bytes32,uint256,uint256,uint256,uint256)": TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
1245
1262
  Liquidate: TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
1246
1263
  "Payment(address,bytes32,bytes32,address,bytes32,uint256,uint256)": TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
1247
1264
  Payment: TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
@@ -3832,6 +3849,18 @@ declare class LendingLiquidation__factory {
3832
3849
  }];
3833
3850
  readonly name: "ECDSAInvalidSignatureS";
3834
3851
  readonly type: "error";
3852
+ }, {
3853
+ readonly inputs: readonly [{
3854
+ readonly internalType: "address";
3855
+ readonly name: "expected";
3856
+ readonly type: "address";
3857
+ }, {
3858
+ readonly internalType: "address";
3859
+ readonly name: "actual";
3860
+ readonly type: "address";
3861
+ }];
3862
+ readonly name: "InconsistentAsset";
3863
+ readonly type: "error";
3835
3864
  }, {
3836
3865
  readonly inputs: readonly [];
3837
3866
  readonly name: "InvalidMorpho";
@@ -3852,6 +3881,18 @@ declare class LendingLiquidation__factory {
3852
3881
  readonly inputs: readonly [];
3853
3882
  readonly name: "NotEnoughPaymentAmount";
3854
3883
  readonly type: "error";
3884
+ }, {
3885
+ readonly inputs: readonly [];
3886
+ readonly name: "ReentrancyGuardReentrantCall";
3887
+ readonly type: "error";
3888
+ }, {
3889
+ readonly inputs: readonly [{
3890
+ readonly internalType: "address";
3891
+ readonly name: "token";
3892
+ readonly type: "address";
3893
+ }];
3894
+ readonly name: "SafeERC20FailedOperation";
3895
+ readonly type: "error";
3855
3896
  }, {
3856
3897
  readonly inputs: readonly [{
3857
3898
  readonly internalType: "string";
@@ -3917,6 +3958,11 @@ declare class LendingLiquidation__factory {
3917
3958
  readonly internalType: "bytes32";
3918
3959
  readonly name: "tradeId";
3919
3960
  readonly type: "bytes32";
3961
+ }, {
3962
+ readonly indexed: false;
3963
+ readonly internalType: "address";
3964
+ readonly name: "sender";
3965
+ readonly type: "address";
3920
3966
  }, {
3921
3967
  readonly indexed: false;
3922
3968
  readonly internalType: "bytes32";
@@ -4063,6 +4109,20 @@ declare class LendingLiquidation__factory {
4063
4109
  readonly outputs: readonly [];
4064
4110
  readonly stateMutability: "nonpayable";
4065
4111
  readonly type: "function";
4112
+ }, {
4113
+ readonly inputs: readonly [{
4114
+ readonly internalType: "uint256";
4115
+ readonly name: "repaidAssets";
4116
+ readonly type: "uint256";
4117
+ }, {
4118
+ readonly internalType: "bytes";
4119
+ readonly name: "data";
4120
+ readonly type: "bytes";
4121
+ }];
4122
+ readonly name: "onMorphoRepay";
4123
+ readonly outputs: readonly [];
4124
+ readonly stateMutability: "nonpayable";
4125
+ readonly type: "function";
4066
4126
  }, {
4067
4127
  readonly inputs: readonly [];
4068
4128
  readonly name: "optimexDomain";
@@ -4093,7 +4153,7 @@ declare class LendingLiquidation__factory {
4093
4153
  readonly name: "tradeId";
4094
4154
  readonly type: "bytes32";
4095
4155
  }, {
4096
- readonly internalType: "contract IAccountPositionManager";
4156
+ readonly internalType: "address";
4097
4157
  readonly name: "positionManager";
4098
4158
  readonly type: "address";
4099
4159
  }, {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, AddressLike, BigNumberish, BytesLike, Result, Listener, ContractMethod, Provider, Signer as Signer$1, Wallet, TypedDataDomain } from 'ethers';
2
2
  import { z } from 'zod';
3
3
 
4
- type Environment = 'dev' | 'prelive' | 'production' | 'staging';
4
+ type Environment = 'development' | 'prelive' | 'production' | 'staging';
5
5
  interface EnvironmentConfig {
6
6
  backendUrl: string;
7
7
  rpcUrl: string;
@@ -989,13 +989,14 @@ interface ERC20 extends BaseContract {
989
989
  }
990
990
 
991
991
  interface LendingLiquidationInterface extends Interface {
992
- getFunction(nameOrSignature: "LENDING_MANAGEMENT" | "MORPHO" | "VALIDATOR_FORCE_CLOSE_TYPEHASH" | "eip712Domain" | "onMorphoLiquidate" | "optimexDomain" | "owBtc" | "payment"): FunctionFragment;
992
+ getFunction(nameOrSignature: "LENDING_MANAGEMENT" | "MORPHO" | "VALIDATOR_FORCE_CLOSE_TYPEHASH" | "eip712Domain" | "onMorphoLiquidate" | "onMorphoRepay" | "optimexDomain" | "owBtc" | "payment"): FunctionFragment;
993
993
  getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged" | "ForceClose" | "Liquidate" | "Payment"): EventFragment;
994
994
  encodeFunctionData(functionFragment: "LENDING_MANAGEMENT", values?: undefined): string;
995
995
  encodeFunctionData(functionFragment: "MORPHO", values?: undefined): string;
996
996
  encodeFunctionData(functionFragment: "VALIDATOR_FORCE_CLOSE_TYPEHASH", values?: undefined): string;
997
997
  encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
998
998
  encodeFunctionData(functionFragment: "onMorphoLiquidate", values: [BigNumberish, BytesLike]): string;
999
+ encodeFunctionData(functionFragment: "onMorphoRepay", values: [BigNumberish, BytesLike]): string;
999
1000
  encodeFunctionData(functionFragment: "optimexDomain", values?: undefined): string;
1000
1001
  encodeFunctionData(functionFragment: "owBtc", values?: undefined): string;
1001
1002
  encodeFunctionData(functionFragment: "payment", values: [
@@ -1011,6 +1012,7 @@ interface LendingLiquidationInterface extends Interface {
1011
1012
  decodeFunctionResult(functionFragment: "VALIDATOR_FORCE_CLOSE_TYPEHASH", data: BytesLike): Result;
1012
1013
  decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
1013
1014
  decodeFunctionResult(functionFragment: "onMorphoLiquidate", data: BytesLike): Result;
1015
+ decodeFunctionResult(functionFragment: "onMorphoRepay", data: BytesLike): Result;
1014
1016
  decodeFunctionResult(functionFragment: "optimexDomain", data: BytesLike): Result;
1015
1017
  decodeFunctionResult(functionFragment: "owBtc", data: BytesLike): Result;
1016
1018
  decodeFunctionResult(functionFragment: "payment", data: BytesLike): Result;
@@ -1060,6 +1062,7 @@ declare namespace LiquidateEvent {
1060
1062
  positionManager: AddressLike,
1061
1063
  positionId: BytesLike,
1062
1064
  tradeId: BytesLike,
1065
+ sender: AddressLike,
1063
1066
  marketId: BytesLike,
1064
1067
  seizedCollateral: BigNumberish,
1065
1068
  remainingCollateral: BigNumberish,
@@ -1070,6 +1073,7 @@ declare namespace LiquidateEvent {
1070
1073
  positionManager: string,
1071
1074
  positionId: string,
1072
1075
  tradeId: string,
1076
+ sender: string,
1073
1077
  marketId: string,
1074
1078
  seizedCollateral: bigint,
1075
1079
  remainingCollateral: bigint,
@@ -1080,6 +1084,7 @@ declare namespace LiquidateEvent {
1080
1084
  positionManager: string;
1081
1085
  positionId: string;
1082
1086
  tradeId: string;
1087
+ sender: string;
1083
1088
  marketId: string;
1084
1089
  seizedCollateral: bigint;
1085
1090
  remainingCollateral: bigint;
@@ -1166,6 +1171,12 @@ interface LendingLiquidation extends BaseContract {
1166
1171
  ], [
1167
1172
  void
1168
1173
  ], "nonpayable">;
1174
+ onMorphoRepay: TypedContractMethod<[
1175
+ repaidAssets: BigNumberish,
1176
+ data: BytesLike
1177
+ ], [
1178
+ void
1179
+ ], "nonpayable">;
1169
1180
  optimexDomain: TypedContractMethod<[
1170
1181
  ], [
1171
1182
  [string, string] & {
@@ -1214,6 +1225,12 @@ interface LendingLiquidation extends BaseContract {
1214
1225
  ], [
1215
1226
  void
1216
1227
  ], "nonpayable">;
1228
+ getFunction(nameOrSignature: "onMorphoRepay"): TypedContractMethod<[
1229
+ repaidAssets: BigNumberish,
1230
+ data: BytesLike
1231
+ ], [
1232
+ void
1233
+ ], "nonpayable">;
1217
1234
  getFunction(nameOrSignature: "optimexDomain"): TypedContractMethod<[
1218
1235
  ], [
1219
1236
  [string, string] & {
@@ -1241,7 +1258,7 @@ interface LendingLiquidation extends BaseContract {
1241
1258
  EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent$1.InputTuple, EIP712DomainChangedEvent$1.OutputTuple, EIP712DomainChangedEvent$1.OutputObject>;
1242
1259
  "ForceClose(address,bytes32,bytes32,bytes32,uint256,uint256)": TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
1243
1260
  ForceClose: TypedContractEvent<ForceCloseEvent.InputTuple, ForceCloseEvent.OutputTuple, ForceCloseEvent.OutputObject>;
1244
- "Liquidate(address,bytes32,bytes32,bytes32,uint256,uint256,uint256,uint256)": TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
1261
+ "Liquidate(address,bytes32,bytes32,address,bytes32,uint256,uint256,uint256,uint256)": TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
1245
1262
  Liquidate: TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
1246
1263
  "Payment(address,bytes32,bytes32,address,bytes32,uint256,uint256)": TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
1247
1264
  Payment: TypedContractEvent<PaymentEvent.InputTuple, PaymentEvent.OutputTuple, PaymentEvent.OutputObject>;
@@ -3832,6 +3849,18 @@ declare class LendingLiquidation__factory {
3832
3849
  }];
3833
3850
  readonly name: "ECDSAInvalidSignatureS";
3834
3851
  readonly type: "error";
3852
+ }, {
3853
+ readonly inputs: readonly [{
3854
+ readonly internalType: "address";
3855
+ readonly name: "expected";
3856
+ readonly type: "address";
3857
+ }, {
3858
+ readonly internalType: "address";
3859
+ readonly name: "actual";
3860
+ readonly type: "address";
3861
+ }];
3862
+ readonly name: "InconsistentAsset";
3863
+ readonly type: "error";
3835
3864
  }, {
3836
3865
  readonly inputs: readonly [];
3837
3866
  readonly name: "InvalidMorpho";
@@ -3852,6 +3881,18 @@ declare class LendingLiquidation__factory {
3852
3881
  readonly inputs: readonly [];
3853
3882
  readonly name: "NotEnoughPaymentAmount";
3854
3883
  readonly type: "error";
3884
+ }, {
3885
+ readonly inputs: readonly [];
3886
+ readonly name: "ReentrancyGuardReentrantCall";
3887
+ readonly type: "error";
3888
+ }, {
3889
+ readonly inputs: readonly [{
3890
+ readonly internalType: "address";
3891
+ readonly name: "token";
3892
+ readonly type: "address";
3893
+ }];
3894
+ readonly name: "SafeERC20FailedOperation";
3895
+ readonly type: "error";
3855
3896
  }, {
3856
3897
  readonly inputs: readonly [{
3857
3898
  readonly internalType: "string";
@@ -3917,6 +3958,11 @@ declare class LendingLiquidation__factory {
3917
3958
  readonly internalType: "bytes32";
3918
3959
  readonly name: "tradeId";
3919
3960
  readonly type: "bytes32";
3961
+ }, {
3962
+ readonly indexed: false;
3963
+ readonly internalType: "address";
3964
+ readonly name: "sender";
3965
+ readonly type: "address";
3920
3966
  }, {
3921
3967
  readonly indexed: false;
3922
3968
  readonly internalType: "bytes32";
@@ -4063,6 +4109,20 @@ declare class LendingLiquidation__factory {
4063
4109
  readonly outputs: readonly [];
4064
4110
  readonly stateMutability: "nonpayable";
4065
4111
  readonly type: "function";
4112
+ }, {
4113
+ readonly inputs: readonly [{
4114
+ readonly internalType: "uint256";
4115
+ readonly name: "repaidAssets";
4116
+ readonly type: "uint256";
4117
+ }, {
4118
+ readonly internalType: "bytes";
4119
+ readonly name: "data";
4120
+ readonly type: "bytes";
4121
+ }];
4122
+ readonly name: "onMorphoRepay";
4123
+ readonly outputs: readonly [];
4124
+ readonly stateMutability: "nonpayable";
4125
+ readonly type: "function";
4066
4126
  }, {
4067
4127
  readonly inputs: readonly [];
4068
4128
  readonly name: "optimexDomain";
@@ -4093,7 +4153,7 @@ declare class LendingLiquidation__factory {
4093
4153
  readonly name: "tradeId";
4094
4154
  readonly type: "bytes32";
4095
4155
  }, {
4096
- readonly internalType: "contract IAccountPositionManager";
4156
+ readonly internalType: "address";
4097
4157
  readonly name: "positionManager";
4098
4158
  readonly type: "address";
4099
4159
  }, {
package/dist/index.js CHANGED
@@ -75,7 +75,7 @@ module.exports = __toCommonJS(index_exports);
75
75
 
76
76
  // src/config/config.ts
77
77
  var environments = {
78
- dev: {
78
+ development: {
79
79
  backendUrl: "https://api-dev.bitdex.xyz",
80
80
  rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
81
81
  protocolFetcherProxyAddress: "0x0267Fc04eE866b31907dEe123aBdCdB67d03B297",
@@ -83,7 +83,7 @@ var environments = {
83
83
  ethereum_sepolia: "0x1d8b58438D5Ccc8Fcb4b738C89078f7b4168C9c0"
84
84
  },
85
85
  liquidationAddressMap: {
86
- ethereum_sepolia: "0x63f56c6e602f288821bea31ccdd9b1e189305f38"
86
+ ethereum_sepolia: "0xf9dbdC0C4ADcb2A33a25a5F01893c54533D77B49"
87
87
  }
88
88
  },
89
89
  staging: {
@@ -1666,6 +1666,22 @@ var _abi2 = [
1666
1666
  name: "ECDSAInvalidSignatureS",
1667
1667
  type: "error"
1668
1668
  },
1669
+ {
1670
+ inputs: [
1671
+ {
1672
+ internalType: "address",
1673
+ name: "expected",
1674
+ type: "address"
1675
+ },
1676
+ {
1677
+ internalType: "address",
1678
+ name: "actual",
1679
+ type: "address"
1680
+ }
1681
+ ],
1682
+ name: "InconsistentAsset",
1683
+ type: "error"
1684
+ },
1669
1685
  {
1670
1686
  inputs: [],
1671
1687
  name: "InvalidMorpho",
@@ -1692,6 +1708,22 @@ var _abi2 = [
1692
1708
  name: "NotEnoughPaymentAmount",
1693
1709
  type: "error"
1694
1710
  },
1711
+ {
1712
+ inputs: [],
1713
+ name: "ReentrancyGuardReentrantCall",
1714
+ type: "error"
1715
+ },
1716
+ {
1717
+ inputs: [
1718
+ {
1719
+ internalType: "address",
1720
+ name: "token",
1721
+ type: "address"
1722
+ }
1723
+ ],
1724
+ name: "SafeERC20FailedOperation",
1725
+ type: "error"
1726
+ },
1695
1727
  {
1696
1728
  inputs: [
1697
1729
  {
@@ -1773,6 +1805,12 @@ var _abi2 = [
1773
1805
  name: "tradeId",
1774
1806
  type: "bytes32"
1775
1807
  },
1808
+ {
1809
+ indexed: false,
1810
+ internalType: "address",
1811
+ name: "sender",
1812
+ type: "address"
1813
+ },
1776
1814
  {
1777
1815
  indexed: false,
1778
1816
  internalType: "bytes32",
@@ -1956,6 +1994,24 @@ var _abi2 = [
1956
1994
  stateMutability: "nonpayable",
1957
1995
  type: "function"
1958
1996
  },
1997
+ {
1998
+ inputs: [
1999
+ {
2000
+ internalType: "uint256",
2001
+ name: "repaidAssets",
2002
+ type: "uint256"
2003
+ },
2004
+ {
2005
+ internalType: "bytes",
2006
+ name: "data",
2007
+ type: "bytes"
2008
+ }
2009
+ ],
2010
+ name: "onMorphoRepay",
2011
+ outputs: [],
2012
+ stateMutability: "nonpayable",
2013
+ type: "function"
2014
+ },
1959
2015
  {
1960
2016
  inputs: [],
1961
2017
  name: "optimexDomain",
@@ -1995,7 +2051,7 @@ var _abi2 = [
1995
2051
  type: "bytes32"
1996
2052
  },
1997
2053
  {
1998
- internalType: "contract IAccountPositionManager",
2054
+ internalType: "address",
1999
2055
  name: "positionManager",
2000
2056
  type: "address"
2001
2057
  },
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ var __export = (target, all) => {
6
6
 
7
7
  // src/config/config.ts
8
8
  var environments = {
9
- dev: {
9
+ development: {
10
10
  backendUrl: "https://api-dev.bitdex.xyz",
11
11
  rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
12
12
  protocolFetcherProxyAddress: "0x0267Fc04eE866b31907dEe123aBdCdB67d03B297",
@@ -14,7 +14,7 @@ var environments = {
14
14
  ethereum_sepolia: "0x1d8b58438D5Ccc8Fcb4b738C89078f7b4168C9c0"
15
15
  },
16
16
  liquidationAddressMap: {
17
- ethereum_sepolia: "0x63f56c6e602f288821bea31ccdd9b1e189305f38"
17
+ ethereum_sepolia: "0xf9dbdC0C4ADcb2A33a25a5F01893c54533D77B49"
18
18
  }
19
19
  },
20
20
  staging: {
@@ -1597,6 +1597,22 @@ var _abi2 = [
1597
1597
  name: "ECDSAInvalidSignatureS",
1598
1598
  type: "error"
1599
1599
  },
1600
+ {
1601
+ inputs: [
1602
+ {
1603
+ internalType: "address",
1604
+ name: "expected",
1605
+ type: "address"
1606
+ },
1607
+ {
1608
+ internalType: "address",
1609
+ name: "actual",
1610
+ type: "address"
1611
+ }
1612
+ ],
1613
+ name: "InconsistentAsset",
1614
+ type: "error"
1615
+ },
1600
1616
  {
1601
1617
  inputs: [],
1602
1618
  name: "InvalidMorpho",
@@ -1623,6 +1639,22 @@ var _abi2 = [
1623
1639
  name: "NotEnoughPaymentAmount",
1624
1640
  type: "error"
1625
1641
  },
1642
+ {
1643
+ inputs: [],
1644
+ name: "ReentrancyGuardReentrantCall",
1645
+ type: "error"
1646
+ },
1647
+ {
1648
+ inputs: [
1649
+ {
1650
+ internalType: "address",
1651
+ name: "token",
1652
+ type: "address"
1653
+ }
1654
+ ],
1655
+ name: "SafeERC20FailedOperation",
1656
+ type: "error"
1657
+ },
1626
1658
  {
1627
1659
  inputs: [
1628
1660
  {
@@ -1704,6 +1736,12 @@ var _abi2 = [
1704
1736
  name: "tradeId",
1705
1737
  type: "bytes32"
1706
1738
  },
1739
+ {
1740
+ indexed: false,
1741
+ internalType: "address",
1742
+ name: "sender",
1743
+ type: "address"
1744
+ },
1707
1745
  {
1708
1746
  indexed: false,
1709
1747
  internalType: "bytes32",
@@ -1887,6 +1925,24 @@ var _abi2 = [
1887
1925
  stateMutability: "nonpayable",
1888
1926
  type: "function"
1889
1927
  },
1928
+ {
1929
+ inputs: [
1930
+ {
1931
+ internalType: "uint256",
1932
+ name: "repaidAssets",
1933
+ type: "uint256"
1934
+ },
1935
+ {
1936
+ internalType: "bytes",
1937
+ name: "data",
1938
+ type: "bytes"
1939
+ }
1940
+ ],
1941
+ name: "onMorphoRepay",
1942
+ outputs: [],
1943
+ stateMutability: "nonpayable",
1944
+ type: "function"
1945
+ },
1890
1946
  {
1891
1947
  inputs: [],
1892
1948
  name: "optimexDomain",
@@ -1926,7 +1982,7 @@ var _abi2 = [
1926
1982
  type: "bytes32"
1927
1983
  },
1928
1984
  {
1929
- internalType: "contract IAccountPositionManager",
1985
+ internalType: "address",
1930
1986
  name: "positionManager",
1931
1987
  type: "address"
1932
1988
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimex-xyz/market-maker-sdk",
3
- "version": "0.9.0-dev-b4f27ea",
3
+ "version": "0.9.0-dev-df6089b",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"