@optimex-xyz/market-maker-sdk 0.9.0-dev-d18dfd7 → 0.9.0-dev-c75f5f6

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
@@ -987,40 +987,53 @@ interface ERC20 extends BaseContract {
987
987
  }
988
988
 
989
989
  interface MorphoLiquidationGatewayInterface extends Interface {
990
- getFunction(nameOrSignature: "getProtocol" | "optimexDomain" | "payment" | "paymentDetails" | "setProtocol"): FunctionFragment;
991
- getEvent(nameOrSignatureOrTopic: "PaymentExecuted" | "ProtocolUpdated"): EventFragment;
990
+ getFunction(nameOrSignature: "gatewayHelper" | "getProtocol" | "optimexDomain" | "payment" | "paymentDetails" | "setHelper" | "setProtocol"): FunctionFragment;
991
+ getEvent(nameOrSignatureOrTopic: "HelperUpdated" | "PaymentExecuted" | "ProtocolUpdated"): EventFragment;
992
+ encodeFunctionData(functionFragment: "gatewayHelper", values?: undefined): string;
992
993
  encodeFunctionData(functionFragment: "getProtocol", values?: undefined): string;
993
994
  encodeFunctionData(functionFragment: "optimexDomain", values?: undefined): string;
994
995
  encodeFunctionData(functionFragment: "payment", values: [AddressLike, BigNumberish, BytesLike]): string;
995
996
  encodeFunctionData(functionFragment: "paymentDetails", values?: undefined): string;
997
+ encodeFunctionData(functionFragment: "setHelper", values: [AddressLike]): string;
996
998
  encodeFunctionData(functionFragment: "setProtocol", values: [AddressLike]): string;
999
+ decodeFunctionResult(functionFragment: "gatewayHelper", data: BytesLike): Result;
997
1000
  decodeFunctionResult(functionFragment: "getProtocol", data: BytesLike): Result;
998
1001
  decodeFunctionResult(functionFragment: "optimexDomain", data: BytesLike): Result;
999
1002
  decodeFunctionResult(functionFragment: "payment", data: BytesLike): Result;
1000
1003
  decodeFunctionResult(functionFragment: "paymentDetails", data: BytesLike): Result;
1004
+ decodeFunctionResult(functionFragment: "setHelper", data: BytesLike): Result;
1001
1005
  decodeFunctionResult(functionFragment: "setProtocol", data: BytesLike): Result;
1002
1006
  }
1007
+ declare namespace HelperUpdatedEvent {
1008
+ type InputTuple = [operator: AddressLike, newHelper: AddressLike];
1009
+ type OutputTuple = [operator: string, newHelper: string];
1010
+ interface OutputObject {
1011
+ operator: string;
1012
+ newHelper: string;
1013
+ }
1014
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1015
+ type Filter = TypedDeferredTopicFilter<Event>;
1016
+ type Log = TypedEventLog<Event>;
1017
+ type LogDescription = TypedLogDescription<Event>;
1018
+ }
1003
1019
  declare namespace PaymentExecutedEvent {
1004
1020
  type InputTuple = [
1005
1021
  payer: AddressLike,
1006
1022
  liquidator: AddressLike,
1007
1023
  token: AddressLike,
1008
- amount: BigNumberish,
1009
- data: BytesLike
1024
+ amount: BigNumberish
1010
1025
  ];
1011
1026
  type OutputTuple = [
1012
1027
  payer: string,
1013
1028
  liquidator: string,
1014
1029
  token: string,
1015
- amount: bigint,
1016
- data: string
1030
+ amount: bigint
1017
1031
  ];
1018
1032
  interface OutputObject {
1019
1033
  payer: string;
1020
1034
  liquidator: string;
1021
1035
  token: string;
1022
1036
  amount: bigint;
1023
- data: string;
1024
1037
  }
1025
1038
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1026
1039
  type Filter = TypedDeferredTopicFilter<Event>;
@@ -1052,6 +1065,7 @@ interface MorphoLiquidationGateway extends BaseContract {
1052
1065
  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
1053
1066
  listeners(eventName?: string): Promise<Array<Listener>>;
1054
1067
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
1068
+ gatewayHelper: TypedContractMethod<[], [string], "view">;
1055
1069
  getProtocol: TypedContractMethod<[], [string], "view">;
1056
1070
  optimexDomain: TypedContractMethod<[
1057
1071
  ], [
@@ -1079,12 +1093,18 @@ interface MorphoLiquidationGateway extends BaseContract {
1079
1093
  paymentAmount: bigint;
1080
1094
  }
1081
1095
  ], "view">;
1096
+ setHelper: TypedContractMethod<[
1097
+ newHelper: AddressLike
1098
+ ], [
1099
+ void
1100
+ ], "nonpayable">;
1082
1101
  setProtocol: TypedContractMethod<[
1083
1102
  newProtocol: AddressLike
1084
1103
  ], [
1085
1104
  void
1086
1105
  ], "nonpayable">;
1087
1106
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
1107
+ getFunction(nameOrSignature: "gatewayHelper"): TypedContractMethod<[], [string], "view">;
1088
1108
  getFunction(nameOrSignature: "getProtocol"): TypedContractMethod<[], [string], "view">;
1089
1109
  getFunction(nameOrSignature: "optimexDomain"): TypedContractMethod<[
1090
1110
  ], [
@@ -1112,11 +1132,15 @@ interface MorphoLiquidationGateway extends BaseContract {
1112
1132
  paymentAmount: bigint;
1113
1133
  }
1114
1134
  ], "view">;
1135
+ getFunction(nameOrSignature: "setHelper"): TypedContractMethod<[newHelper: AddressLike], [void], "nonpayable">;
1115
1136
  getFunction(nameOrSignature: "setProtocol"): TypedContractMethod<[newProtocol: AddressLike], [void], "nonpayable">;
1137
+ getEvent(key: "HelperUpdated"): TypedContractEvent<HelperUpdatedEvent.InputTuple, HelperUpdatedEvent.OutputTuple, HelperUpdatedEvent.OutputObject>;
1116
1138
  getEvent(key: "PaymentExecuted"): TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
1117
1139
  getEvent(key: "ProtocolUpdated"): TypedContractEvent<ProtocolUpdatedEvent$1.InputTuple, ProtocolUpdatedEvent$1.OutputTuple, ProtocolUpdatedEvent$1.OutputObject>;
1118
1140
  filters: {
1119
- "PaymentExecuted(address,address,address,uint256,bytes)": TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
1141
+ "HelperUpdated(address,address)": TypedContractEvent<HelperUpdatedEvent.InputTuple, HelperUpdatedEvent.OutputTuple, HelperUpdatedEvent.OutputObject>;
1142
+ HelperUpdated: TypedContractEvent<HelperUpdatedEvent.InputTuple, HelperUpdatedEvent.OutputTuple, HelperUpdatedEvent.OutputObject>;
1143
+ "PaymentExecuted(address,address,address,uint256)": TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
1120
1144
  PaymentExecuted: TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
1121
1145
  "ProtocolUpdated(address,address)": TypedContractEvent<ProtocolUpdatedEvent$1.InputTuple, ProtocolUpdatedEvent$1.OutputTuple, ProtocolUpdatedEvent$1.OutputObject>;
1122
1146
  ProtocolUpdated: TypedContractEvent<ProtocolUpdatedEvent$1.InputTuple, ProtocolUpdatedEvent$1.OutputTuple, ProtocolUpdatedEvent$1.OutputObject>;
@@ -3841,7 +3865,15 @@ declare class MorphoLiquidationGateway__factory {
3841
3865
  readonly type: "constructor";
3842
3866
  }, {
3843
3867
  readonly inputs: readonly [];
3844
- readonly name: "InvalidAmount";
3868
+ readonly name: "IncompleteConsumption";
3869
+ readonly type: "error";
3870
+ }, {
3871
+ readonly inputs: readonly [];
3872
+ readonly name: "NoHelper";
3873
+ readonly type: "error";
3874
+ }, {
3875
+ readonly inputs: readonly [];
3876
+ readonly name: "ReentrancyGuardReentrantCall";
3845
3877
  readonly type: "error";
3846
3878
  }, {
3847
3879
  readonly inputs: readonly [{
@@ -3879,6 +3911,25 @@ declare class MorphoLiquidationGateway__factory {
3879
3911
  readonly inputs: readonly [];
3880
3912
  readonly name: "ZeroAddress";
3881
3913
  readonly type: "error";
3914
+ }, {
3915
+ readonly inputs: readonly [];
3916
+ readonly name: "ZeroAmount";
3917
+ readonly type: "error";
3918
+ }, {
3919
+ readonly anonymous: false;
3920
+ readonly inputs: readonly [{
3921
+ readonly indexed: true;
3922
+ readonly internalType: "address";
3923
+ readonly name: "operator";
3924
+ readonly type: "address";
3925
+ }, {
3926
+ readonly indexed: true;
3927
+ readonly internalType: "address";
3928
+ readonly name: "newHelper";
3929
+ readonly type: "address";
3930
+ }];
3931
+ readonly name: "HelperUpdated";
3932
+ readonly type: "event";
3882
3933
  }, {
3883
3934
  readonly anonymous: false;
3884
3935
  readonly inputs: readonly [{
@@ -3901,11 +3952,6 @@ declare class MorphoLiquidationGateway__factory {
3901
3952
  readonly internalType: "uint256";
3902
3953
  readonly name: "amount";
3903
3954
  readonly type: "uint256";
3904
- }, {
3905
- readonly indexed: false;
3906
- readonly internalType: "bytes";
3907
- readonly name: "data";
3908
- readonly type: "bytes";
3909
3955
  }];
3910
3956
  readonly name: "PaymentExecuted";
3911
3957
  readonly type: "event";
@@ -3924,6 +3970,16 @@ declare class MorphoLiquidationGateway__factory {
3924
3970
  }];
3925
3971
  readonly name: "ProtocolUpdated";
3926
3972
  readonly type: "event";
3973
+ }, {
3974
+ readonly inputs: readonly [];
3975
+ readonly name: "gatewayHelper";
3976
+ readonly outputs: readonly [{
3977
+ readonly internalType: "contract IGatewayHelper";
3978
+ readonly name: "";
3979
+ readonly type: "address";
3980
+ }];
3981
+ readonly stateMutability: "view";
3982
+ readonly type: "function";
3927
3983
  }, {
3928
3984
  readonly inputs: readonly [];
3929
3985
  readonly name: "getProtocol";
@@ -3984,6 +4040,16 @@ declare class MorphoLiquidationGateway__factory {
3984
4040
  }];
3985
4041
  readonly stateMutability: "view";
3986
4042
  readonly type: "function";
4043
+ }, {
4044
+ readonly inputs: readonly [{
4045
+ readonly internalType: "address";
4046
+ readonly name: "newHelper";
4047
+ readonly type: "address";
4048
+ }];
4049
+ readonly name: "setHelper";
4050
+ readonly outputs: readonly [];
4051
+ readonly stateMutability: "nonpayable";
4052
+ readonly type: "function";
3987
4053
  }, {
3988
4054
  readonly inputs: readonly [{
3989
4055
  readonly internalType: "address";
package/dist/index.d.ts CHANGED
@@ -987,40 +987,53 @@ interface ERC20 extends BaseContract {
987
987
  }
988
988
 
989
989
  interface MorphoLiquidationGatewayInterface extends Interface {
990
- getFunction(nameOrSignature: "getProtocol" | "optimexDomain" | "payment" | "paymentDetails" | "setProtocol"): FunctionFragment;
991
- getEvent(nameOrSignatureOrTopic: "PaymentExecuted" | "ProtocolUpdated"): EventFragment;
990
+ getFunction(nameOrSignature: "gatewayHelper" | "getProtocol" | "optimexDomain" | "payment" | "paymentDetails" | "setHelper" | "setProtocol"): FunctionFragment;
991
+ getEvent(nameOrSignatureOrTopic: "HelperUpdated" | "PaymentExecuted" | "ProtocolUpdated"): EventFragment;
992
+ encodeFunctionData(functionFragment: "gatewayHelper", values?: undefined): string;
992
993
  encodeFunctionData(functionFragment: "getProtocol", values?: undefined): string;
993
994
  encodeFunctionData(functionFragment: "optimexDomain", values?: undefined): string;
994
995
  encodeFunctionData(functionFragment: "payment", values: [AddressLike, BigNumberish, BytesLike]): string;
995
996
  encodeFunctionData(functionFragment: "paymentDetails", values?: undefined): string;
997
+ encodeFunctionData(functionFragment: "setHelper", values: [AddressLike]): string;
996
998
  encodeFunctionData(functionFragment: "setProtocol", values: [AddressLike]): string;
999
+ decodeFunctionResult(functionFragment: "gatewayHelper", data: BytesLike): Result;
997
1000
  decodeFunctionResult(functionFragment: "getProtocol", data: BytesLike): Result;
998
1001
  decodeFunctionResult(functionFragment: "optimexDomain", data: BytesLike): Result;
999
1002
  decodeFunctionResult(functionFragment: "payment", data: BytesLike): Result;
1000
1003
  decodeFunctionResult(functionFragment: "paymentDetails", data: BytesLike): Result;
1004
+ decodeFunctionResult(functionFragment: "setHelper", data: BytesLike): Result;
1001
1005
  decodeFunctionResult(functionFragment: "setProtocol", data: BytesLike): Result;
1002
1006
  }
1007
+ declare namespace HelperUpdatedEvent {
1008
+ type InputTuple = [operator: AddressLike, newHelper: AddressLike];
1009
+ type OutputTuple = [operator: string, newHelper: string];
1010
+ interface OutputObject {
1011
+ operator: string;
1012
+ newHelper: string;
1013
+ }
1014
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1015
+ type Filter = TypedDeferredTopicFilter<Event>;
1016
+ type Log = TypedEventLog<Event>;
1017
+ type LogDescription = TypedLogDescription<Event>;
1018
+ }
1003
1019
  declare namespace PaymentExecutedEvent {
1004
1020
  type InputTuple = [
1005
1021
  payer: AddressLike,
1006
1022
  liquidator: AddressLike,
1007
1023
  token: AddressLike,
1008
- amount: BigNumberish,
1009
- data: BytesLike
1024
+ amount: BigNumberish
1010
1025
  ];
1011
1026
  type OutputTuple = [
1012
1027
  payer: string,
1013
1028
  liquidator: string,
1014
1029
  token: string,
1015
- amount: bigint,
1016
- data: string
1030
+ amount: bigint
1017
1031
  ];
1018
1032
  interface OutputObject {
1019
1033
  payer: string;
1020
1034
  liquidator: string;
1021
1035
  token: string;
1022
1036
  amount: bigint;
1023
- data: string;
1024
1037
  }
1025
1038
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1026
1039
  type Filter = TypedDeferredTopicFilter<Event>;
@@ -1052,6 +1065,7 @@ interface MorphoLiquidationGateway extends BaseContract {
1052
1065
  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
1053
1066
  listeners(eventName?: string): Promise<Array<Listener>>;
1054
1067
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
1068
+ gatewayHelper: TypedContractMethod<[], [string], "view">;
1055
1069
  getProtocol: TypedContractMethod<[], [string], "view">;
1056
1070
  optimexDomain: TypedContractMethod<[
1057
1071
  ], [
@@ -1079,12 +1093,18 @@ interface MorphoLiquidationGateway extends BaseContract {
1079
1093
  paymentAmount: bigint;
1080
1094
  }
1081
1095
  ], "view">;
1096
+ setHelper: TypedContractMethod<[
1097
+ newHelper: AddressLike
1098
+ ], [
1099
+ void
1100
+ ], "nonpayable">;
1082
1101
  setProtocol: TypedContractMethod<[
1083
1102
  newProtocol: AddressLike
1084
1103
  ], [
1085
1104
  void
1086
1105
  ], "nonpayable">;
1087
1106
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
1107
+ getFunction(nameOrSignature: "gatewayHelper"): TypedContractMethod<[], [string], "view">;
1088
1108
  getFunction(nameOrSignature: "getProtocol"): TypedContractMethod<[], [string], "view">;
1089
1109
  getFunction(nameOrSignature: "optimexDomain"): TypedContractMethod<[
1090
1110
  ], [
@@ -1112,11 +1132,15 @@ interface MorphoLiquidationGateway extends BaseContract {
1112
1132
  paymentAmount: bigint;
1113
1133
  }
1114
1134
  ], "view">;
1135
+ getFunction(nameOrSignature: "setHelper"): TypedContractMethod<[newHelper: AddressLike], [void], "nonpayable">;
1115
1136
  getFunction(nameOrSignature: "setProtocol"): TypedContractMethod<[newProtocol: AddressLike], [void], "nonpayable">;
1137
+ getEvent(key: "HelperUpdated"): TypedContractEvent<HelperUpdatedEvent.InputTuple, HelperUpdatedEvent.OutputTuple, HelperUpdatedEvent.OutputObject>;
1116
1138
  getEvent(key: "PaymentExecuted"): TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
1117
1139
  getEvent(key: "ProtocolUpdated"): TypedContractEvent<ProtocolUpdatedEvent$1.InputTuple, ProtocolUpdatedEvent$1.OutputTuple, ProtocolUpdatedEvent$1.OutputObject>;
1118
1140
  filters: {
1119
- "PaymentExecuted(address,address,address,uint256,bytes)": TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
1141
+ "HelperUpdated(address,address)": TypedContractEvent<HelperUpdatedEvent.InputTuple, HelperUpdatedEvent.OutputTuple, HelperUpdatedEvent.OutputObject>;
1142
+ HelperUpdated: TypedContractEvent<HelperUpdatedEvent.InputTuple, HelperUpdatedEvent.OutputTuple, HelperUpdatedEvent.OutputObject>;
1143
+ "PaymentExecuted(address,address,address,uint256)": TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
1120
1144
  PaymentExecuted: TypedContractEvent<PaymentExecutedEvent.InputTuple, PaymentExecutedEvent.OutputTuple, PaymentExecutedEvent.OutputObject>;
1121
1145
  "ProtocolUpdated(address,address)": TypedContractEvent<ProtocolUpdatedEvent$1.InputTuple, ProtocolUpdatedEvent$1.OutputTuple, ProtocolUpdatedEvent$1.OutputObject>;
1122
1146
  ProtocolUpdated: TypedContractEvent<ProtocolUpdatedEvent$1.InputTuple, ProtocolUpdatedEvent$1.OutputTuple, ProtocolUpdatedEvent$1.OutputObject>;
@@ -3841,7 +3865,15 @@ declare class MorphoLiquidationGateway__factory {
3841
3865
  readonly type: "constructor";
3842
3866
  }, {
3843
3867
  readonly inputs: readonly [];
3844
- readonly name: "InvalidAmount";
3868
+ readonly name: "IncompleteConsumption";
3869
+ readonly type: "error";
3870
+ }, {
3871
+ readonly inputs: readonly [];
3872
+ readonly name: "NoHelper";
3873
+ readonly type: "error";
3874
+ }, {
3875
+ readonly inputs: readonly [];
3876
+ readonly name: "ReentrancyGuardReentrantCall";
3845
3877
  readonly type: "error";
3846
3878
  }, {
3847
3879
  readonly inputs: readonly [{
@@ -3879,6 +3911,25 @@ declare class MorphoLiquidationGateway__factory {
3879
3911
  readonly inputs: readonly [];
3880
3912
  readonly name: "ZeroAddress";
3881
3913
  readonly type: "error";
3914
+ }, {
3915
+ readonly inputs: readonly [];
3916
+ readonly name: "ZeroAmount";
3917
+ readonly type: "error";
3918
+ }, {
3919
+ readonly anonymous: false;
3920
+ readonly inputs: readonly [{
3921
+ readonly indexed: true;
3922
+ readonly internalType: "address";
3923
+ readonly name: "operator";
3924
+ readonly type: "address";
3925
+ }, {
3926
+ readonly indexed: true;
3927
+ readonly internalType: "address";
3928
+ readonly name: "newHelper";
3929
+ readonly type: "address";
3930
+ }];
3931
+ readonly name: "HelperUpdated";
3932
+ readonly type: "event";
3882
3933
  }, {
3883
3934
  readonly anonymous: false;
3884
3935
  readonly inputs: readonly [{
@@ -3901,11 +3952,6 @@ declare class MorphoLiquidationGateway__factory {
3901
3952
  readonly internalType: "uint256";
3902
3953
  readonly name: "amount";
3903
3954
  readonly type: "uint256";
3904
- }, {
3905
- readonly indexed: false;
3906
- readonly internalType: "bytes";
3907
- readonly name: "data";
3908
- readonly type: "bytes";
3909
3955
  }];
3910
3956
  readonly name: "PaymentExecuted";
3911
3957
  readonly type: "event";
@@ -3924,6 +3970,16 @@ declare class MorphoLiquidationGateway__factory {
3924
3970
  }];
3925
3971
  readonly name: "ProtocolUpdated";
3926
3972
  readonly type: "event";
3973
+ }, {
3974
+ readonly inputs: readonly [];
3975
+ readonly name: "gatewayHelper";
3976
+ readonly outputs: readonly [{
3977
+ readonly internalType: "contract IGatewayHelper";
3978
+ readonly name: "";
3979
+ readonly type: "address";
3980
+ }];
3981
+ readonly stateMutability: "view";
3982
+ readonly type: "function";
3927
3983
  }, {
3928
3984
  readonly inputs: readonly [];
3929
3985
  readonly name: "getProtocol";
@@ -3984,6 +4040,16 @@ declare class MorphoLiquidationGateway__factory {
3984
4040
  }];
3985
4041
  readonly stateMutability: "view";
3986
4042
  readonly type: "function";
4043
+ }, {
4044
+ readonly inputs: readonly [{
4045
+ readonly internalType: "address";
4046
+ readonly name: "newHelper";
4047
+ readonly type: "address";
4048
+ }];
4049
+ readonly name: "setHelper";
4050
+ readonly outputs: readonly [];
4051
+ readonly stateMutability: "nonpayable";
4052
+ readonly type: "function";
3987
4053
  }, {
3988
4054
  readonly inputs: readonly [{
3989
4055
  readonly internalType: "address";
package/dist/index.js CHANGED
@@ -1625,7 +1625,17 @@ var _abi2 = [
1625
1625
  },
1626
1626
  {
1627
1627
  inputs: [],
1628
- name: "InvalidAmount",
1628
+ name: "IncompleteConsumption",
1629
+ type: "error"
1630
+ },
1631
+ {
1632
+ inputs: [],
1633
+ name: "NoHelper",
1634
+ type: "error"
1635
+ },
1636
+ {
1637
+ inputs: [],
1638
+ name: "ReentrancyGuardReentrantCall",
1629
1639
  type: "error"
1630
1640
  },
1631
1641
  {
@@ -1676,6 +1686,30 @@ var _abi2 = [
1676
1686
  name: "ZeroAddress",
1677
1687
  type: "error"
1678
1688
  },
1689
+ {
1690
+ inputs: [],
1691
+ name: "ZeroAmount",
1692
+ type: "error"
1693
+ },
1694
+ {
1695
+ anonymous: false,
1696
+ inputs: [
1697
+ {
1698
+ indexed: true,
1699
+ internalType: "address",
1700
+ name: "operator",
1701
+ type: "address"
1702
+ },
1703
+ {
1704
+ indexed: true,
1705
+ internalType: "address",
1706
+ name: "newHelper",
1707
+ type: "address"
1708
+ }
1709
+ ],
1710
+ name: "HelperUpdated",
1711
+ type: "event"
1712
+ },
1679
1713
  {
1680
1714
  anonymous: false,
1681
1715
  inputs: [
@@ -1702,12 +1736,6 @@ var _abi2 = [
1702
1736
  internalType: "uint256",
1703
1737
  name: "amount",
1704
1738
  type: "uint256"
1705
- },
1706
- {
1707
- indexed: false,
1708
- internalType: "bytes",
1709
- name: "data",
1710
- type: "bytes"
1711
1739
  }
1712
1740
  ],
1713
1741
  name: "PaymentExecuted",
@@ -1732,6 +1760,19 @@ var _abi2 = [
1732
1760
  name: "ProtocolUpdated",
1733
1761
  type: "event"
1734
1762
  },
1763
+ {
1764
+ inputs: [],
1765
+ name: "gatewayHelper",
1766
+ outputs: [
1767
+ {
1768
+ internalType: "contract IGatewayHelper",
1769
+ name: "",
1770
+ type: "address"
1771
+ }
1772
+ ],
1773
+ stateMutability: "view",
1774
+ type: "function"
1775
+ },
1735
1776
  {
1736
1777
  inputs: [],
1737
1778
  name: "getProtocol",
@@ -1809,6 +1850,19 @@ var _abi2 = [
1809
1850
  stateMutability: "view",
1810
1851
  type: "function"
1811
1852
  },
1853
+ {
1854
+ inputs: [
1855
+ {
1856
+ internalType: "address",
1857
+ name: "newHelper",
1858
+ type: "address"
1859
+ }
1860
+ ],
1861
+ name: "setHelper",
1862
+ outputs: [],
1863
+ stateMutability: "nonpayable",
1864
+ type: "function"
1865
+ },
1812
1866
  {
1813
1867
  inputs: [
1814
1868
  {
package/dist/index.mjs CHANGED
@@ -1545,7 +1545,17 @@ var _abi2 = [
1545
1545
  },
1546
1546
  {
1547
1547
  inputs: [],
1548
- name: "InvalidAmount",
1548
+ name: "IncompleteConsumption",
1549
+ type: "error"
1550
+ },
1551
+ {
1552
+ inputs: [],
1553
+ name: "NoHelper",
1554
+ type: "error"
1555
+ },
1556
+ {
1557
+ inputs: [],
1558
+ name: "ReentrancyGuardReentrantCall",
1549
1559
  type: "error"
1550
1560
  },
1551
1561
  {
@@ -1596,6 +1606,30 @@ var _abi2 = [
1596
1606
  name: "ZeroAddress",
1597
1607
  type: "error"
1598
1608
  },
1609
+ {
1610
+ inputs: [],
1611
+ name: "ZeroAmount",
1612
+ type: "error"
1613
+ },
1614
+ {
1615
+ anonymous: false,
1616
+ inputs: [
1617
+ {
1618
+ indexed: true,
1619
+ internalType: "address",
1620
+ name: "operator",
1621
+ type: "address"
1622
+ },
1623
+ {
1624
+ indexed: true,
1625
+ internalType: "address",
1626
+ name: "newHelper",
1627
+ type: "address"
1628
+ }
1629
+ ],
1630
+ name: "HelperUpdated",
1631
+ type: "event"
1632
+ },
1599
1633
  {
1600
1634
  anonymous: false,
1601
1635
  inputs: [
@@ -1622,12 +1656,6 @@ var _abi2 = [
1622
1656
  internalType: "uint256",
1623
1657
  name: "amount",
1624
1658
  type: "uint256"
1625
- },
1626
- {
1627
- indexed: false,
1628
- internalType: "bytes",
1629
- name: "data",
1630
- type: "bytes"
1631
1659
  }
1632
1660
  ],
1633
1661
  name: "PaymentExecuted",
@@ -1652,6 +1680,19 @@ var _abi2 = [
1652
1680
  name: "ProtocolUpdated",
1653
1681
  type: "event"
1654
1682
  },
1683
+ {
1684
+ inputs: [],
1685
+ name: "gatewayHelper",
1686
+ outputs: [
1687
+ {
1688
+ internalType: "contract IGatewayHelper",
1689
+ name: "",
1690
+ type: "address"
1691
+ }
1692
+ ],
1693
+ stateMutability: "view",
1694
+ type: "function"
1695
+ },
1655
1696
  {
1656
1697
  inputs: [],
1657
1698
  name: "getProtocol",
@@ -1729,6 +1770,19 @@ var _abi2 = [
1729
1770
  stateMutability: "view",
1730
1771
  type: "function"
1731
1772
  },
1773
+ {
1774
+ inputs: [
1775
+ {
1776
+ internalType: "address",
1777
+ name: "newHelper",
1778
+ type: "address"
1779
+ }
1780
+ ],
1781
+ name: "setHelper",
1782
+ outputs: [],
1783
+ stateMutability: "nonpayable",
1784
+ type: "function"
1785
+ },
1732
1786
  {
1733
1787
  inputs: [
1734
1788
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimex-xyz/market-maker-sdk",
3
- "version": "0.9.0-dev-d18dfd7",
3
+ "version": "0.9.0-dev-c75f5f6",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -40,7 +40,7 @@
40
40
  "lint-staged": "lint-staged",
41
41
  "ctix": "node generate-indexes.js",
42
42
  "generate-types": "node generate-types.js",
43
- "commit": "cz"
43
+ "commit": "git-cz"
44
44
  },
45
45
  "dependencies": {
46
46
  "axios": "^1.9.0",
@@ -64,6 +64,7 @@
64
64
  "eslint": "^9.26.0",
65
65
  "eslint-config-prettier": "^10.1.2",
66
66
  "eslint-plugin-unused-imports": "^4.1.4",
67
+ "git-cz": "^4.9.0",
67
68
  "globals": "^16.0.0",
68
69
  "lint-staged": "^15.5.1",
69
70
  "prettier": "^3.5.3",