@pendle/core-v2 5.4.4 → 5.6.0

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.
Files changed (174) hide show
  1. package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.json +2 -2
  3. package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.json +2 -2
  5. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  6. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  9. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  18. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  19. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  20. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  21. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  22. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.json +77 -0
  23. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  24. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  25. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +32 -0
  26. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  27. package/build/artifacts/contracts/interfaces/IPMarketFactoryV3.sol/IPMarketFactoryV3.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/IPMarketFactoryV3.sol/IPMarketFactoryV3.json +23 -0
  29. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  30. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  31. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
  32. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  33. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +32 -0
  34. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  35. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +34 -2
  36. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.dbg.json +1 -1
  37. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.json +2 -2
  38. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  39. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +98 -3
  40. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  41. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  42. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  43. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  44. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  45. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  46. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  47. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  48. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  49. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  50. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  51. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  52. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  53. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  54. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  55. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  56. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  57. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  58. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  59. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  60. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  61. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  62. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  63. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  64. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  65. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  66. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  67. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  69. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  70. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  71. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  73. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  74. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  75. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  76. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  77. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  78. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  79. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  80. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  81. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  82. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  83. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  84. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  85. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  86. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  87. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  88. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  89. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  90. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  91. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  92. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  93. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +0 -40
  94. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +4 -0
  95. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.json +407 -0
  96. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +4 -0
  97. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.json +10 -0
  98. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchAggregationRouterV6.dbg.json +4 -0
  99. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchAggregationRouterV6.json +214 -0
  100. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchCommonType.dbg.json +4 -0
  101. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchCommonType.json +10 -0
  102. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/OneInchScaleHelper.dbg.json +4 -0
  103. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/OneInchScaleHelper.json +10 -0
  104. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  105. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  106. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  107. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -55
  108. package/contracts/interfaces/IPGovernanceProxy.sol +10 -0
  109. package/contracts/interfaces/IPLimitRouter.sol +5 -0
  110. package/contracts/interfaces/IPMarketFactoryV3.sol +2 -0
  111. package/contracts/limit/LimitRouterBase.sol +6 -10
  112. package/contracts/offchain-helpers/PendleGovernanceProxy.sol +41 -10
  113. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +0 -2
  114. package/contracts/router/swap-aggregator/OKXScaleHelper.sol +215 -0
  115. package/contracts/router/swap-aggregator/OneInchScaleHelper.sol +120 -0
  116. package/contracts/router/swap-aggregator/PendleSwap.sol +24 -7
  117. package/deployments/1-core.json +3 -2
  118. package/deployments/10-core.json +3 -2
  119. package/deployments/42161-core.json +3 -2
  120. package/deployments/5000-core.json +3 -2
  121. package/deployments/56-core.json +3 -2
  122. package/deployments/8453-core.json +3 -2
  123. package/deployments/merkle-distribution/2024-12-26.json +25555 -0
  124. package/deployments/merkle-distribution/2024-12-31-snapshot.json +65767 -0
  125. package/deployments/merkle-distribution/2025-01-30.json +28060 -0
  126. package/package.json +1 -1
  127. package/typechain-types/ActionCallbackV3.ts +164 -0
  128. package/typechain-types/I1inchAggregationRouterV6.ts +337 -0
  129. package/typechain-types/IPActionCallbackV3.ts +164 -0
  130. package/typechain-types/IPGovernanceProxy.ts +236 -0
  131. package/typechain-types/IPLimitRouter.ts +633 -0
  132. package/typechain-types/IPLimitRouterCallback.ts +120 -0
  133. package/typechain-types/IPMarketFactoryV3.ts +321 -0
  134. package/typechain-types/IPSwapAggregator.ts +0 -39
  135. package/typechain-types/LimitBackendHelper.ts +287 -0
  136. package/typechain-types/LimitRouterBase.ts +1138 -0
  137. package/typechain-types/PendleGovernanceProxy.ts +128 -0
  138. package/typechain-types/PendleLimitRouter.ts +1138 -0
  139. package/typechain-types/PendleMarketFactoryV3.ts +719 -0
  140. package/typechain-types/PendleMarketV3.ts +1195 -0
  141. package/typechain-types/PendleSwap.ts +0 -60
  142. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  143. package/typechain-types/factories/ActionCallbackV3__factory.ts +121 -0
  144. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  145. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  146. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  147. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  148. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  149. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  150. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  151. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  152. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  153. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  154. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  155. package/typechain-types/factories/I1inchAggregationRouterV6__factory.ts +233 -0
  156. package/typechain-types/factories/IPActionCallbackV3__factory.ts +83 -0
  157. package/typechain-types/factories/IPGovernanceProxy__factory.ts +152 -0
  158. package/typechain-types/factories/IPLimitRouterCallback__factory.ts +64 -0
  159. package/typechain-types/factories/IPLimitRouter__factory.ts +748 -0
  160. package/typechain-types/factories/IPMarketFactoryV3__factory.ts +217 -0
  161. package/typechain-types/factories/IPSwapAggregator__factory.ts +0 -40
  162. package/typechain-types/factories/LimitBackendHelper__factory.ts +232 -0
  163. package/typechain-types/factories/LimitRouterBase__factory.ts +1069 -0
  164. package/typechain-types/factories/PendleGovernanceProxy__factory.ts +97 -2
  165. package/typechain-types/factories/PendleLimitRouter__factory.ts +1139 -0
  166. package/typechain-types/factories/PendleMarketFactoryV3__factory.ts +714 -0
  167. package/typechain-types/factories/PendleMarketV3__factory.ts +1211 -0
  168. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  169. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  170. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  171. package/typechain-types/factories/PendleSwap__factory.ts +1 -54
  172. package/typechain-types/factories/Reflector__factory.ts +1 -1
  173. package/typechain-types/hardhat.d.ts +18 -0
  174. package/typechain-types/index.ts +4 -0
@@ -0,0 +1,217 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IPMarketFactoryV3,
9
+ IPMarketFactoryV3Interface,
10
+ } from "../IPMarketFactoryV3";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "market",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "PT",
26
+ type: "address",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "int256",
31
+ name: "scalarRoot",
32
+ type: "int256",
33
+ },
34
+ {
35
+ indexed: false,
36
+ internalType: "int256",
37
+ name: "initialAnchor",
38
+ type: "int256",
39
+ },
40
+ {
41
+ indexed: false,
42
+ internalType: "uint256",
43
+ name: "lnFeeRateRoot",
44
+ type: "uint256",
45
+ },
46
+ ],
47
+ name: "CreateNewMarket",
48
+ type: "event",
49
+ },
50
+ {
51
+ anonymous: false,
52
+ inputs: [
53
+ {
54
+ indexed: true,
55
+ internalType: "address",
56
+ name: "treasury",
57
+ type: "address",
58
+ },
59
+ {
60
+ indexed: false,
61
+ internalType: "uint8",
62
+ name: "reserveFeePercent",
63
+ type: "uint8",
64
+ },
65
+ ],
66
+ name: "NewTreasuryAndFeeReserve",
67
+ type: "event",
68
+ },
69
+ {
70
+ anonymous: false,
71
+ inputs: [
72
+ {
73
+ indexed: true,
74
+ internalType: "address",
75
+ name: "router",
76
+ type: "address",
77
+ },
78
+ {
79
+ indexed: true,
80
+ internalType: "address",
81
+ name: "market",
82
+ type: "address",
83
+ },
84
+ {
85
+ indexed: false,
86
+ internalType: "uint80",
87
+ name: "lnFeeRateRoot",
88
+ type: "uint80",
89
+ },
90
+ ],
91
+ name: "SetOverriddenFee",
92
+ type: "event",
93
+ },
94
+ {
95
+ inputs: [
96
+ {
97
+ internalType: "address",
98
+ name: "PT",
99
+ type: "address",
100
+ },
101
+ {
102
+ internalType: "int256",
103
+ name: "scalarRoot",
104
+ type: "int256",
105
+ },
106
+ {
107
+ internalType: "int256",
108
+ name: "initialAnchor",
109
+ type: "int256",
110
+ },
111
+ {
112
+ internalType: "uint80",
113
+ name: "lnFeeRateRoot",
114
+ type: "uint80",
115
+ },
116
+ ],
117
+ name: "createNewMarket",
118
+ outputs: [
119
+ {
120
+ internalType: "address",
121
+ name: "market",
122
+ type: "address",
123
+ },
124
+ ],
125
+ stateMutability: "nonpayable",
126
+ type: "function",
127
+ },
128
+ {
129
+ inputs: [
130
+ {
131
+ internalType: "address",
132
+ name: "market",
133
+ type: "address",
134
+ },
135
+ {
136
+ internalType: "address",
137
+ name: "router",
138
+ type: "address",
139
+ },
140
+ ],
141
+ name: "getMarketConfig",
142
+ outputs: [
143
+ {
144
+ internalType: "address",
145
+ name: "treasury",
146
+ type: "address",
147
+ },
148
+ {
149
+ internalType: "uint80",
150
+ name: "overriddenFee",
151
+ type: "uint80",
152
+ },
153
+ {
154
+ internalType: "uint8",
155
+ name: "reserveFeePercent",
156
+ type: "uint8",
157
+ },
158
+ ],
159
+ stateMutability: "view",
160
+ type: "function",
161
+ },
162
+ {
163
+ inputs: [
164
+ {
165
+ internalType: "address",
166
+ name: "market",
167
+ type: "address",
168
+ },
169
+ ],
170
+ name: "isValidMarket",
171
+ outputs: [
172
+ {
173
+ internalType: "bool",
174
+ name: "",
175
+ type: "bool",
176
+ },
177
+ ],
178
+ stateMutability: "view",
179
+ type: "function",
180
+ },
181
+ {
182
+ inputs: [
183
+ {
184
+ internalType: "address",
185
+ name: "router",
186
+ type: "address",
187
+ },
188
+ {
189
+ internalType: "address",
190
+ name: "market",
191
+ type: "address",
192
+ },
193
+ {
194
+ internalType: "uint80",
195
+ name: "newFee",
196
+ type: "uint80",
197
+ },
198
+ ],
199
+ name: "setOverriddenFee",
200
+ outputs: [],
201
+ stateMutability: "nonpayable",
202
+ type: "function",
203
+ },
204
+ ];
205
+
206
+ export class IPMarketFactoryV3__factory {
207
+ static readonly abi = _abi;
208
+ static createInterface(): IPMarketFactoryV3Interface {
209
+ return new utils.Interface(_abi) as IPMarketFactoryV3Interface;
210
+ }
211
+ static connect(
212
+ address: string,
213
+ signerOrProvider: Signer | Provider
214
+ ): IPMarketFactoryV3 {
215
+ return new Contract(address, _abi, signerOrProvider) as IPMarketFactoryV3;
216
+ }
217
+ }
@@ -80,46 +80,6 @@ const _abi = [
80
80
  stateMutability: "payable",
81
81
  type: "function",
82
82
  },
83
- {
84
- inputs: [
85
- {
86
- internalType: "address[]",
87
- name: "tokensIn",
88
- type: "address[]",
89
- },
90
- {
91
- components: [
92
- {
93
- internalType: "enum SwapType",
94
- name: "swapType",
95
- type: "uint8",
96
- },
97
- {
98
- internalType: "address",
99
- name: "extRouter",
100
- type: "address",
101
- },
102
- {
103
- internalType: "bytes",
104
- name: "extCalldata",
105
- type: "bytes",
106
- },
107
- {
108
- internalType: "bool",
109
- name: "needScale",
110
- type: "bool",
111
- },
112
- ],
113
- internalType: "struct SwapData",
114
- name: "swapData",
115
- type: "tuple",
116
- },
117
- ],
118
- name: "swapMultiOdos",
119
- outputs: [],
120
- stateMutability: "payable",
121
- type: "function",
122
- },
123
83
  ];
124
84
 
125
85
  export class IPSwapAggregator__factory {
@@ -0,0 +1,232 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ LimitBackendHelper,
8
+ LimitBackendHelperInterface,
9
+ } from "../LimitBackendHelper";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_WNATIVE",
17
+ type: "address",
18
+ },
19
+ ],
20
+ stateMutability: "nonpayable",
21
+ type: "constructor",
22
+ },
23
+ {
24
+ inputs: [
25
+ {
26
+ internalType: "bool",
27
+ name: "success",
28
+ type: "bool",
29
+ },
30
+ {
31
+ internalType: "bytes",
32
+ name: "res",
33
+ type: "bytes",
34
+ },
35
+ ],
36
+ name: "SimulationResults",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [
41
+ {
42
+ internalType: "address",
43
+ name: "maker",
44
+ type: "address",
45
+ },
46
+ {
47
+ internalType: "address",
48
+ name: "SY",
49
+ type: "address",
50
+ },
51
+ {
52
+ internalType: "address",
53
+ name: "token",
54
+ type: "address",
55
+ },
56
+ {
57
+ internalType: "uint256",
58
+ name: "makingAmount",
59
+ type: "uint256",
60
+ },
61
+ ],
62
+ name: "mintSyFromTokenRevert",
63
+ outputs: [
64
+ {
65
+ internalType: "uint256",
66
+ name: "",
67
+ type: "uint256",
68
+ },
69
+ ],
70
+ stateMutability: "nonpayable",
71
+ type: "function",
72
+ },
73
+ {
74
+ inputs: [
75
+ {
76
+ internalType: "address",
77
+ name: "YT",
78
+ type: "address",
79
+ },
80
+ {
81
+ internalType: "address[]",
82
+ name: "makers",
83
+ type: "address[]",
84
+ },
85
+ {
86
+ internalType: "address[]",
87
+ name: "tokens",
88
+ type: "address[]",
89
+ },
90
+ {
91
+ internalType: "uint256[]",
92
+ name: "amounts",
93
+ type: "uint256[]",
94
+ },
95
+ ],
96
+ name: "mintSyFromTokens",
97
+ outputs: [
98
+ {
99
+ internalType: "uint256[]",
100
+ name: "minted",
101
+ type: "uint256[]",
102
+ },
103
+ ],
104
+ stateMutability: "nonpayable",
105
+ type: "function",
106
+ },
107
+ {
108
+ inputs: [
109
+ {
110
+ internalType: "address[]",
111
+ name: "tokens",
112
+ type: "address[]",
113
+ },
114
+ {
115
+ internalType: "address[]",
116
+ name: "owners",
117
+ type: "address[]",
118
+ },
119
+ {
120
+ internalType: "address",
121
+ name: "spender",
122
+ type: "address",
123
+ },
124
+ ],
125
+ name: "readMultiTokens",
126
+ outputs: [
127
+ {
128
+ internalType: "uint256[]",
129
+ name: "balances",
130
+ type: "uint256[]",
131
+ },
132
+ {
133
+ internalType: "uint256[]",
134
+ name: "allowances",
135
+ type: "uint256[]",
136
+ },
137
+ ],
138
+ stateMutability: "view",
139
+ type: "function",
140
+ },
141
+ {
142
+ inputs: [
143
+ {
144
+ internalType: "address",
145
+ name: "token",
146
+ type: "address",
147
+ },
148
+ {
149
+ internalType: "address[]",
150
+ name: "owners",
151
+ type: "address[]",
152
+ },
153
+ {
154
+ internalType: "address",
155
+ name: "spender",
156
+ type: "address",
157
+ },
158
+ ],
159
+ name: "readSingleToken",
160
+ outputs: [
161
+ {
162
+ internalType: "uint256[]",
163
+ name: "balances",
164
+ type: "uint256[]",
165
+ },
166
+ {
167
+ internalType: "uint256[]",
168
+ name: "allowances",
169
+ type: "uint256[]",
170
+ },
171
+ ],
172
+ stateMutability: "view",
173
+ type: "function",
174
+ },
175
+ ];
176
+
177
+ const _bytecode =
178
+ "0x60c060405234801561001057600080fd5b506040516117a13803806117a183398101604081905261002f91610044565b6001600160a01b03166080523060a052610074565b60006020828403121561005657600080fd5b81516001600160a01b038116811461006d57600080fd5b9392505050565b60805160a0516116fb6100a6600039600061083301526000818160da0152818161013801526101ad01526116fb6000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063083c1fce14610051578063152c3db7146100775780632d36a6d314610098578063cd62578b146100ab575b600080fd5b61006461005f36600461112b565b6100cb565b6040519081526020015b60405180910390f35b61008a6100853660046111c7565b6102cc565b60405161006e929190611286565b61008a6100a63660046112b4565b610565565b6100be6100b936600461131b565b610770565b60405161006e91906113c7565b60006100d88386846109a7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161480156101a35750604051637d2d278360e11b81526001600160a01b0385169063fa5a4f0690610160907f0000000000000000000000000000000000000000000000000000000000000000906004016113e1565b602060405180830381865afa15801561017d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a1919061140a565b155b156101d9576101d47f0000000000000000000000000000000000000000000000000000000000000000600084610a13565b600092505b6101e38385610ad9565b60006001600160a01b03808616906320e8c56590861615610205576000610207565b845b6040516001600160e01b031960e084901b1681523060048201526001600160a01b0388166024820152604481018790526000606482015260840160206040518083038185885af115801561025f573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906102849190611425565b905060018160405160200161029b91815260200190565b60408051601f198184030181529082905263032695f960e31b82526102c3929160040161148e565b60405180910390fd5b6060808584146103105760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b60448201526064016102c3565b836001600160401b03811115610328576103286114a9565b604051908082528060200260200182016040528015610351578160200160208202803683370190505b509150836001600160401b0381111561036c5761036c6114a9565b604051908082528060200260200182016040528015610395578160200160208202803683370190505b50905060005b8481101561055a578787828181106103b5576103b56114bf565b90506020020160208101906103ca91906114d5565b6001600160a01b03166370a082318787848181106103ea576103ea6114bf565b90506020020160208101906103ff91906114d5565b6040518263ffffffff1660e01b815260040161041b91906113e1565b602060405180830381865afa158015610438573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045c9190611425565b83828151811061046e5761046e6114bf565b60200260200101818152505087878281811061048c5761048c6114bf565b90506020020160208101906104a191906114d5565b6001600160a01b031663dd62ed3e8787848181106104c1576104c16114bf565b90506020020160208101906104d691906114d5565b866040518363ffffffff1660e01b81526004016104f49291906114f2565b602060405180830381865afa158015610511573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105359190611425565b828281518110610547576105476114bf565b602090810291909101015260010161039b565b509550959350505050565b606080836001600160401b03811115610580576105806114a9565b6040519080825280602002602001820160405280156105a9578160200160208202803683370190505b509150836001600160401b038111156105c4576105c46114a9565b6040519080825280602002602001820160405280156105ed578160200160208202803683370190505b50905060005b8481101561076657866001600160a01b03166370a0823187878481811061061c5761061c6114bf565b905060200201602081019061063191906114d5565b6040518263ffffffff1660e01b815260040161064d91906113e1565b602060405180830381865afa15801561066a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068e9190611425565b8382815181106106a0576106a06114bf565b602002602001018181525050866001600160a01b031663dd62ed3e8787848181106106cd576106cd6114bf565b90506020020160208101906106e291906114d5565b866040518363ffffffff1660e01b81526004016107009291906114f2565b602060405180830381865afa15801561071d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107419190611425565b828281518110610753576107536114bf565b60209081029190910101526001016105f3565b5094509492505050565b606060008787905090506000896001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107de919061150c565b9050816001600160401b038111156107f8576107f86114a9565b604051908082528060200260200182016040528015610821578160200160208202803683370190505b50925060005b828110156109995760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168b8b8481811061086d5761086d6114bf565b905060200201602081019061088291906114d5565b848b8b86818110610895576108956114bf565b90506020020160208101906108aa91906114d5565b8a8a878181106108bc576108bc6114bf565b6040516001600160a01b039687166024820152948616604486015292909416606484015260209091020135608482015260a401905060408051601f198184030181529181526020820180516001600160e01b031663041e0fe760e11b179052516109269190611529565b600060405180830381855af49150503d8060008114610961576040519150601f19603f3d011682016040523d82523d6000602084013e610966565b606091505b5091505061097381610b98565b858381518110610985576109856114bf565b602090810291909101015250600101610827565b505050979650505050505050565b6001600160a01b0383166109f8578034146109f35760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064016102c3565b505050565b80156109f3576109f36001600160a01b038416833084610c37565b6001600160a01b038316610a7a57816001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610a5c57600080fd5b505af1158015610a70573d6000803e3d6000fd5b5050505050505050565b604051632e1a7d4d60e01b8152600481018290526001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b158015610abc57600080fd5b505af1158015610ad0573d6000803e3d6000fd5b50505050505050565b6001600160a01b038216610aeb575050565b610afd60026001600160601b0361155b565b6001600160601b0316826001600160a01b031663dd62ed3e30846040518363ffffffff1660e01b8152600401610b349291906114f2565b602060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b759190611425565b1015610b9457610b8782826000610c97565b610b948282600019610c97565b5050565b6000600482511015610bad5750600019919050565b6000610bbc8360006004610da1565b610bc59061158f565b9050631cd96a0760e31b6001600160e01b0319821601610c2b576000610bf9846004808751610bf491906115c6565b610da1565b806020019051810190610c0c91906115df565b91505080806020019051810190610c239190611425565b925050610c31565b60001991505b50919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c91908590610eae565b50505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b1790529151600092839290871691610cf39190611529565b6000604051808303816000865af19150503d8060008114610d30576040519150601f19603f3d011682016040523d82523d6000602084013e610d35565b606091505b5091509150818015610d5f575080511580610d5f575080806020019051810190610d5f919061140a565b610d9a5760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b60448201526064016102c3565b5050505050565b606081610daf81601f61169f565b1015610dee5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016102c3565b610df8828461169f565b84511015610e3c5760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016102c3565b606082158015610e5b5760405191506000825260208201604052610ea5565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015610e94578051835260209283019201610e7c565b5050858452601f01601f1916604052505b50949350505050565b6000610f03826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f839092919063ffffffff16565b9050805160001480610f24575080806020019051810190610f24919061140a565b6109f35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102c3565b6060610f928484600085610f9a565b949350505050565b606082471015610ffb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102c3565b600080866001600160a01b031685876040516110179190611529565b60006040518083038185875af1925050503d8060008114611054576040519150601f19603f3d011682016040523d82523d6000602084013e611059565b606091505b509150915061106a87838387611075565b979650505050505050565b606083156110e45782516000036110dd576001600160a01b0385163b6110dd5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102c3565b5081610f92565b610f9283838151156110f95781518083602001fd5b8060405162461bcd60e51b81526004016102c391906116b2565b6001600160a01b038116811461112857600080fd5b50565b6000806000806080858703121561114157600080fd5b843561114c81611113565b9350602085013561115c81611113565b9250604085013561116c81611113565b9396929550929360600135925050565b60008083601f84011261118e57600080fd5b5081356001600160401b038111156111a557600080fd5b6020830191508360208260051b85010111156111c057600080fd5b9250929050565b6000806000806000606086880312156111df57600080fd5b85356001600160401b03808211156111f657600080fd5b61120289838a0161117c565b9097509550602088013591508082111561121b57600080fd5b506112288882890161117c565b909450925050604086013561123c81611113565b809150509295509295909350565b60008151808452602080850194506020840160005b8381101561127b5781518752958201959082019060010161125f565b509495945050505050565b604081526000611299604083018561124a565b82810360208401526112ab818561124a565b95945050505050565b600080600080606085870312156112ca57600080fd5b84356112d581611113565b935060208501356001600160401b038111156112f057600080fd5b6112fc8782880161117c565b909450925050604085013561131081611113565b939692955090935050565b60008060008060008060006080888a03121561133657600080fd5b873561134181611113565b965060208801356001600160401b038082111561135d57600080fd5b6113698b838c0161117c565b909850965060408a013591508082111561138257600080fd5b61138e8b838c0161117c565b909650945060608a01359150808211156113a757600080fd5b506113b48a828b0161117c565b989b979a50959850939692959293505050565b6020815260006113da602083018461124a565b9392505050565b6001600160a01b0391909116815260200190565b8051801515811461140557600080fd5b919050565b60006020828403121561141c57600080fd5b6113da826113f5565b60006020828403121561143757600080fd5b5051919050565b60005b83811015611459578181015183820152602001611441565b50506000910152565b6000815180845261147a81602086016020860161143e565b601f01601f19169290920160200192915050565b8215158152604060208201526000610f926040830184611462565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000602082840312156114e757600080fd5b81356113da81611113565b6001600160a01b0392831681529116602082015260400190565b60006020828403121561151e57600080fd5b81516113da81611113565b6000825161153b81846020870161143e565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b60006001600160601b038381168061158357634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b805160208201516001600160e01b031980821692919060048310156115be5780818460040360031b1b83161693505b505050919050565b818103818111156115d9576115d9611545565b92915050565b600080604083850312156115f257600080fd5b6115fb836113f5565b60208401519092506001600160401b038082111561161857600080fd5b818501915085601f83011261162c57600080fd5b81518181111561163e5761163e6114a9565b604051601f8201601f19908116603f01168101908382118183101715611666576116666114a9565b8160405282815288602084870101111561167f57600080fd5b61169083602083016020880161143e565b80955050505050509250929050565b808201808211156115d9576115d9611545565b6020815260006113da602083018461146256fea264697066735822122098639568d820fbb23b5f13025da748d40f31f4137834a6978c5006de266766c364736f6c63430008170033";
179
+
180
+ type LimitBackendHelperConstructorParams =
181
+ | [signer?: Signer]
182
+ | ConstructorParameters<typeof ContractFactory>;
183
+
184
+ const isSuperArgs = (
185
+ xs: LimitBackendHelperConstructorParams
186
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
187
+
188
+ export class LimitBackendHelper__factory extends ContractFactory {
189
+ constructor(...args: LimitBackendHelperConstructorParams) {
190
+ if (isSuperArgs(args)) {
191
+ super(...args);
192
+ } else {
193
+ super(_abi, _bytecode, args[0]);
194
+ }
195
+ this.contractName = "LimitBackendHelper";
196
+ }
197
+
198
+ deploy(
199
+ _WNATIVE: string,
200
+ overrides?: Overrides & { from?: string | Promise<string> }
201
+ ): Promise<LimitBackendHelper> {
202
+ return super.deploy(
203
+ _WNATIVE,
204
+ overrides || {}
205
+ ) as Promise<LimitBackendHelper>;
206
+ }
207
+ getDeployTransaction(
208
+ _WNATIVE: string,
209
+ overrides?: Overrides & { from?: string | Promise<string> }
210
+ ): TransactionRequest {
211
+ return super.getDeployTransaction(_WNATIVE, overrides || {});
212
+ }
213
+ attach(address: string): LimitBackendHelper {
214
+ return super.attach(address) as LimitBackendHelper;
215
+ }
216
+ connect(signer: Signer): LimitBackendHelper__factory {
217
+ return super.connect(signer) as LimitBackendHelper__factory;
218
+ }
219
+ static readonly contractName: "LimitBackendHelper";
220
+ public readonly contractName: "LimitBackendHelper";
221
+ static readonly bytecode = _bytecode;
222
+ static readonly abi = _abi;
223
+ static createInterface(): LimitBackendHelperInterface {
224
+ return new utils.Interface(_abi) as LimitBackendHelperInterface;
225
+ }
226
+ static connect(
227
+ address: string,
228
+ signerOrProvider: Signer | Provider
229
+ ): LimitBackendHelper {
230
+ return new Contract(address, _abi, signerOrProvider) as LimitBackendHelper;
231
+ }
232
+ }