@pendle/core-v2 5.8.1 → 5.8.2-paraswap-2

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 (128) hide show
  1. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  2. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  3. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  4. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  6. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  9. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  17. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  18. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
  19. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  20. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  21. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  22. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
  23. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  24. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  25. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  26. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  27. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  28. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  29. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  30. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  31. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  32. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  33. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  34. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  35. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  36. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  37. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  38. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  39. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  40. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  41. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  42. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  43. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +3 -28
  44. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  45. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  46. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  47. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  48. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  49. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  50. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  51. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  52. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  53. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  54. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  55. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  56. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  57. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  58. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  59. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  60. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  61. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  62. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  63. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  64. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  65. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  66. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  67. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  69. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  70. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  71. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  73. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  74. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  75. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  76. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +4 -0
  77. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.json +607 -0
  78. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +4 -0
  79. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.json +10 -0
  80. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  81. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  82. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  83. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  84. package/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol +3 -8
  85. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +1 -1
  86. package/contracts/router/swap-aggregator/ParaswapScaleHelper.sol +247 -0
  87. package/contracts/router/swap-aggregator/PendleSwap.sol +4 -4
  88. package/deployments/1-core.json +3 -3
  89. package/deployments/10-core.json +2 -2
  90. package/deployments/146-core.json +2 -2
  91. package/deployments/42161-core.json +3 -3
  92. package/deployments/5000-core.json +2 -2
  93. package/deployments/56-core.json +2 -2
  94. package/deployments/80094-core.json +2 -2
  95. package/deployments/8453-core.json +2 -2
  96. package/package.json +1 -1
  97. package/typechain-types/IAugustusV6.ts +692 -0
  98. package/typechain-types/PendleSparkLinearDiscountOracleFactory.ts +3 -25
  99. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  100. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  101. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  102. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  103. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  104. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  105. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  106. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  107. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  108. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  109. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  110. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  111. package/typechain-types/factories/IAugustusV6__factory.ts +619 -0
  112. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
  113. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
  114. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  115. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  116. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  117. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +2 -27
  118. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  119. package/typechain-types/factories/Reflector__factory.ts +1 -1
  120. package/typechain-types/hardhat.d.ts +4 -4
  121. package/typechain-types/index.ts +2 -2
  122. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchAggregationRouterV6.dbg.json +0 -4
  123. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchAggregationRouterV6.json +0 -214
  124. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchCommonType.dbg.json +0 -4
  125. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchCommonType.json +0 -10
  126. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/OneInchScaleHelper.dbg.json +0 -4
  127. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/OneInchScaleHelper.json +0 -10
  128. package/contracts/router/swap-aggregator/OneInchScaleHelper.sol +0 -120
@@ -0,0 +1,692 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PayableOverrides,
13
+ PopulatedTransaction,
14
+ Signer,
15
+ utils,
16
+ } from "ethers";
17
+ import { FunctionFragment, Result } from "@ethersproject/abi";
18
+ import { Listener, Provider } from "@ethersproject/providers";
19
+ import type {
20
+ TypedEventFilter,
21
+ TypedEvent,
22
+ TypedListener,
23
+ OnEvent,
24
+ } from "./common";
25
+
26
+ export declare namespace IAugustusV6 {
27
+ export type GenericDataStruct = {
28
+ srcToken: string;
29
+ destToken: string;
30
+ fromAmount: BigNumberish;
31
+ toAmount: BigNumberish;
32
+ quotedAmount: BigNumberish;
33
+ metadata: BytesLike;
34
+ beneficiary: string;
35
+ };
36
+
37
+ export type GenericDataStructOutput = [
38
+ string,
39
+ string,
40
+ BigNumber,
41
+ BigNumber,
42
+ BigNumber,
43
+ string,
44
+ string
45
+ ] & {
46
+ srcToken: string;
47
+ destToken: string;
48
+ fromAmount: BigNumber;
49
+ toAmount: BigNumber;
50
+ quotedAmount: BigNumber;
51
+ metadata: string;
52
+ beneficiary: string;
53
+ };
54
+
55
+ export type BalancerV2DataStruct = {
56
+ fromAmount: BigNumberish;
57
+ toAmount: BigNumberish;
58
+ quotedAmount: BigNumberish;
59
+ metadata: BytesLike;
60
+ beneficiaryAndApproveFlag: BigNumberish;
61
+ };
62
+
63
+ export type BalancerV2DataStructOutput = [
64
+ BigNumber,
65
+ BigNumber,
66
+ BigNumber,
67
+ string,
68
+ BigNumber
69
+ ] & {
70
+ fromAmount: BigNumber;
71
+ toAmount: BigNumber;
72
+ quotedAmount: BigNumber;
73
+ metadata: string;
74
+ beneficiaryAndApproveFlag: BigNumber;
75
+ };
76
+
77
+ export type CurveV1DataStruct = {
78
+ curveData: BigNumberish;
79
+ curveAssets: BigNumberish;
80
+ srcToken: string;
81
+ destToken: string;
82
+ fromAmount: BigNumberish;
83
+ toAmount: BigNumberish;
84
+ quotedAmount: BigNumberish;
85
+ metadata: BytesLike;
86
+ beneficiary: string;
87
+ };
88
+
89
+ export type CurveV1DataStructOutput = [
90
+ BigNumber,
91
+ BigNumber,
92
+ string,
93
+ string,
94
+ BigNumber,
95
+ BigNumber,
96
+ BigNumber,
97
+ string,
98
+ string
99
+ ] & {
100
+ curveData: BigNumber;
101
+ curveAssets: BigNumber;
102
+ srcToken: string;
103
+ destToken: string;
104
+ fromAmount: BigNumber;
105
+ toAmount: BigNumber;
106
+ quotedAmount: BigNumber;
107
+ metadata: string;
108
+ beneficiary: string;
109
+ };
110
+
111
+ export type CurveV2DataStruct = {
112
+ curveData: BigNumberish;
113
+ i: BigNumberish;
114
+ j: BigNumberish;
115
+ poolAddress: string;
116
+ srcToken: string;
117
+ destToken: string;
118
+ fromAmount: BigNumberish;
119
+ toAmount: BigNumberish;
120
+ quotedAmount: BigNumberish;
121
+ metadata: BytesLike;
122
+ beneficiary: string;
123
+ };
124
+
125
+ export type CurveV2DataStructOutput = [
126
+ BigNumber,
127
+ BigNumber,
128
+ BigNumber,
129
+ string,
130
+ string,
131
+ string,
132
+ BigNumber,
133
+ BigNumber,
134
+ BigNumber,
135
+ string,
136
+ string
137
+ ] & {
138
+ curveData: BigNumber;
139
+ i: BigNumber;
140
+ j: BigNumber;
141
+ poolAddress: string;
142
+ srcToken: string;
143
+ destToken: string;
144
+ fromAmount: BigNumber;
145
+ toAmount: BigNumber;
146
+ quotedAmount: BigNumber;
147
+ metadata: string;
148
+ beneficiary: string;
149
+ };
150
+
151
+ export type UniswapV2DataStruct = {
152
+ srcToken: string;
153
+ destToken: string;
154
+ fromAmount: BigNumberish;
155
+ toAmount: BigNumberish;
156
+ quotedAmount: BigNumberish;
157
+ metadata: BytesLike;
158
+ beneficiary: string;
159
+ pools: BytesLike;
160
+ };
161
+
162
+ export type UniswapV2DataStructOutput = [
163
+ string,
164
+ string,
165
+ BigNumber,
166
+ BigNumber,
167
+ BigNumber,
168
+ string,
169
+ string,
170
+ string
171
+ ] & {
172
+ srcToken: string;
173
+ destToken: string;
174
+ fromAmount: BigNumber;
175
+ toAmount: BigNumber;
176
+ quotedAmount: BigNumber;
177
+ metadata: string;
178
+ beneficiary: string;
179
+ pools: string;
180
+ };
181
+
182
+ export type UniswapV3DataStruct = {
183
+ srcToken: string;
184
+ destToken: string;
185
+ fromAmount: BigNumberish;
186
+ toAmount: BigNumberish;
187
+ quotedAmount: BigNumberish;
188
+ metadata: BytesLike;
189
+ beneficiary: string;
190
+ pools: BytesLike;
191
+ };
192
+
193
+ export type UniswapV3DataStructOutput = [
194
+ string,
195
+ string,
196
+ BigNumber,
197
+ BigNumber,
198
+ BigNumber,
199
+ string,
200
+ string,
201
+ string
202
+ ] & {
203
+ srcToken: string;
204
+ destToken: string;
205
+ fromAmount: BigNumber;
206
+ toAmount: BigNumber;
207
+ quotedAmount: BigNumber;
208
+ metadata: string;
209
+ beneficiary: string;
210
+ pools: string;
211
+ };
212
+
213
+ export type MakerPSMDataStruct = {
214
+ srcToken: string;
215
+ destToken: string;
216
+ fromAmount: BigNumberish;
217
+ toAmount: BigNumberish;
218
+ toll: BigNumberish;
219
+ to18ConversionFactor: BigNumberish;
220
+ exchange: string;
221
+ gemJoinAddress: string;
222
+ metadata: BytesLike;
223
+ beneficiaryDirectionApproveFlag: BigNumberish;
224
+ };
225
+
226
+ export type MakerPSMDataStructOutput = [
227
+ string,
228
+ string,
229
+ BigNumber,
230
+ BigNumber,
231
+ BigNumber,
232
+ BigNumber,
233
+ string,
234
+ string,
235
+ string,
236
+ BigNumber
237
+ ] & {
238
+ srcToken: string;
239
+ destToken: string;
240
+ fromAmount: BigNumber;
241
+ toAmount: BigNumber;
242
+ toll: BigNumber;
243
+ to18ConversionFactor: BigNumber;
244
+ exchange: string;
245
+ gemJoinAddress: string;
246
+ metadata: string;
247
+ beneficiaryDirectionApproveFlag: BigNumber;
248
+ };
249
+ }
250
+
251
+ export interface IAugustusV6Interface extends utils.Interface {
252
+ contractName: "IAugustusV6";
253
+ functions: {
254
+ "swapExactAmountIn(address,(address,address,uint256,uint256,uint256,bytes32,address),uint256,bytes,bytes)": FunctionFragment;
255
+ "swapExactAmountInOnBalancerV2(address,(uint256,uint256,uint256,bytes32,uint256),uint256,bytes,bytes)": FunctionFragment;
256
+ "swapExactAmountInOnCurveV1(address,(uint256,uint256,address,address,uint256,uint256,uint256,bytes32,address),uint256,bytes)": FunctionFragment;
257
+ "swapExactAmountInOnCurveV2(address,(uint256,uint256,uint256,address,address,address,uint256,uint256,uint256,bytes32,address),uint256,bytes)": FunctionFragment;
258
+ "swapExactAmountInOnUniswapV2(address,(address,address,uint256,uint256,uint256,bytes32,address,bytes),uint256,bytes)": FunctionFragment;
259
+ "swapExactAmountInOnUniswapV3(address,(address,address,uint256,uint256,uint256,bytes32,address,bytes),uint256,bytes)": FunctionFragment;
260
+ "swapExactAmountInOutOnMakerPSM(address,(address,address,uint256,uint256,uint256,uint256,address,address,bytes32,uint256),bytes)": FunctionFragment;
261
+ };
262
+
263
+ encodeFunctionData(
264
+ functionFragment: "swapExactAmountIn",
265
+ values: [
266
+ string,
267
+ IAugustusV6.GenericDataStruct,
268
+ BigNumberish,
269
+ BytesLike,
270
+ BytesLike
271
+ ]
272
+ ): string;
273
+ encodeFunctionData(
274
+ functionFragment: "swapExactAmountInOnBalancerV2",
275
+ values: [
276
+ string,
277
+ IAugustusV6.BalancerV2DataStruct,
278
+ BigNumberish,
279
+ BytesLike,
280
+ BytesLike
281
+ ]
282
+ ): string;
283
+ encodeFunctionData(
284
+ functionFragment: "swapExactAmountInOnCurveV1",
285
+ values: [string, IAugustusV6.CurveV1DataStruct, BigNumberish, BytesLike]
286
+ ): string;
287
+ encodeFunctionData(
288
+ functionFragment: "swapExactAmountInOnCurveV2",
289
+ values: [string, IAugustusV6.CurveV2DataStruct, BigNumberish, BytesLike]
290
+ ): string;
291
+ encodeFunctionData(
292
+ functionFragment: "swapExactAmountInOnUniswapV2",
293
+ values: [string, IAugustusV6.UniswapV2DataStruct, BigNumberish, BytesLike]
294
+ ): string;
295
+ encodeFunctionData(
296
+ functionFragment: "swapExactAmountInOnUniswapV3",
297
+ values: [string, IAugustusV6.UniswapV3DataStruct, BigNumberish, BytesLike]
298
+ ): string;
299
+ encodeFunctionData(
300
+ functionFragment: "swapExactAmountInOutOnMakerPSM",
301
+ values: [string, IAugustusV6.MakerPSMDataStruct, BytesLike]
302
+ ): string;
303
+
304
+ decodeFunctionResult(
305
+ functionFragment: "swapExactAmountIn",
306
+ data: BytesLike
307
+ ): Result;
308
+ decodeFunctionResult(
309
+ functionFragment: "swapExactAmountInOnBalancerV2",
310
+ data: BytesLike
311
+ ): Result;
312
+ decodeFunctionResult(
313
+ functionFragment: "swapExactAmountInOnCurveV1",
314
+ data: BytesLike
315
+ ): Result;
316
+ decodeFunctionResult(
317
+ functionFragment: "swapExactAmountInOnCurveV2",
318
+ data: BytesLike
319
+ ): Result;
320
+ decodeFunctionResult(
321
+ functionFragment: "swapExactAmountInOnUniswapV2",
322
+ data: BytesLike
323
+ ): Result;
324
+ decodeFunctionResult(
325
+ functionFragment: "swapExactAmountInOnUniswapV3",
326
+ data: BytesLike
327
+ ): Result;
328
+ decodeFunctionResult(
329
+ functionFragment: "swapExactAmountInOutOnMakerPSM",
330
+ data: BytesLike
331
+ ): Result;
332
+
333
+ events: {};
334
+ }
335
+
336
+ export interface IAugustusV6 extends BaseContract {
337
+ contractName: "IAugustusV6";
338
+ connect(signerOrProvider: Signer | Provider | string): this;
339
+ attach(addressOrName: string): this;
340
+ deployed(): Promise<this>;
341
+
342
+ interface: IAugustusV6Interface;
343
+
344
+ queryFilter<TEvent extends TypedEvent>(
345
+ event: TypedEventFilter<TEvent>,
346
+ fromBlockOrBlockhash?: string | number | undefined,
347
+ toBlock?: string | number | undefined
348
+ ): Promise<Array<TEvent>>;
349
+
350
+ listeners<TEvent extends TypedEvent>(
351
+ eventFilter?: TypedEventFilter<TEvent>
352
+ ): Array<TypedListener<TEvent>>;
353
+ listeners(eventName?: string): Array<Listener>;
354
+ removeAllListeners<TEvent extends TypedEvent>(
355
+ eventFilter: TypedEventFilter<TEvent>
356
+ ): this;
357
+ removeAllListeners(eventName?: string): this;
358
+ off: OnEvent<this>;
359
+ on: OnEvent<this>;
360
+ once: OnEvent<this>;
361
+ removeListener: OnEvent<this>;
362
+
363
+ functions: {
364
+ swapExactAmountIn(
365
+ executor: string,
366
+ swapData: IAugustusV6.GenericDataStruct,
367
+ partnerAndFee: BigNumberish,
368
+ permit: BytesLike,
369
+ executorData: BytesLike,
370
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
371
+ ): Promise<ContractTransaction>;
372
+
373
+ swapExactAmountInOnBalancerV2(
374
+ executor: string,
375
+ balancerData: IAugustusV6.BalancerV2DataStruct,
376
+ partnerAndFee: BigNumberish,
377
+ permit: BytesLike,
378
+ data: BytesLike,
379
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
380
+ ): Promise<ContractTransaction>;
381
+
382
+ swapExactAmountInOnCurveV1(
383
+ executor: string,
384
+ curveV1Data: IAugustusV6.CurveV1DataStruct,
385
+ partnerAndFee: BigNumberish,
386
+ permit: BytesLike,
387
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
388
+ ): Promise<ContractTransaction>;
389
+
390
+ swapExactAmountInOnCurveV2(
391
+ executor: string,
392
+ curveV2Data: IAugustusV6.CurveV2DataStruct,
393
+ partnerAndFee: BigNumberish,
394
+ permit: BytesLike,
395
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
396
+ ): Promise<ContractTransaction>;
397
+
398
+ swapExactAmountInOnUniswapV2(
399
+ executor: string,
400
+ uniData: IAugustusV6.UniswapV2DataStruct,
401
+ partnerAndFee: BigNumberish,
402
+ permit: BytesLike,
403
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
404
+ ): Promise<ContractTransaction>;
405
+
406
+ swapExactAmountInOnUniswapV3(
407
+ executor: string,
408
+ uniData: IAugustusV6.UniswapV3DataStruct,
409
+ partnerAndFee: BigNumberish,
410
+ permit: BytesLike,
411
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
412
+ ): Promise<ContractTransaction>;
413
+
414
+ swapExactAmountInOutOnMakerPSM(
415
+ executor: string,
416
+ makerPSMData: IAugustusV6.MakerPSMDataStruct,
417
+ permit: BytesLike,
418
+ overrides?: Overrides & { from?: string | Promise<string> }
419
+ ): Promise<ContractTransaction>;
420
+ };
421
+
422
+ swapExactAmountIn(
423
+ executor: string,
424
+ swapData: IAugustusV6.GenericDataStruct,
425
+ partnerAndFee: BigNumberish,
426
+ permit: BytesLike,
427
+ executorData: BytesLike,
428
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
429
+ ): Promise<ContractTransaction>;
430
+
431
+ swapExactAmountInOnBalancerV2(
432
+ executor: string,
433
+ balancerData: IAugustusV6.BalancerV2DataStruct,
434
+ partnerAndFee: BigNumberish,
435
+ permit: BytesLike,
436
+ data: BytesLike,
437
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
438
+ ): Promise<ContractTransaction>;
439
+
440
+ swapExactAmountInOnCurveV1(
441
+ executor: string,
442
+ curveV1Data: IAugustusV6.CurveV1DataStruct,
443
+ partnerAndFee: BigNumberish,
444
+ permit: BytesLike,
445
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
446
+ ): Promise<ContractTransaction>;
447
+
448
+ swapExactAmountInOnCurveV2(
449
+ executor: string,
450
+ curveV2Data: IAugustusV6.CurveV2DataStruct,
451
+ partnerAndFee: BigNumberish,
452
+ permit: BytesLike,
453
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
454
+ ): Promise<ContractTransaction>;
455
+
456
+ swapExactAmountInOnUniswapV2(
457
+ executor: string,
458
+ uniData: IAugustusV6.UniswapV2DataStruct,
459
+ partnerAndFee: BigNumberish,
460
+ permit: BytesLike,
461
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
462
+ ): Promise<ContractTransaction>;
463
+
464
+ swapExactAmountInOnUniswapV3(
465
+ executor: string,
466
+ uniData: IAugustusV6.UniswapV3DataStruct,
467
+ partnerAndFee: BigNumberish,
468
+ permit: BytesLike,
469
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
470
+ ): Promise<ContractTransaction>;
471
+
472
+ swapExactAmountInOutOnMakerPSM(
473
+ executor: string,
474
+ makerPSMData: IAugustusV6.MakerPSMDataStruct,
475
+ permit: BytesLike,
476
+ overrides?: Overrides & { from?: string | Promise<string> }
477
+ ): Promise<ContractTransaction>;
478
+
479
+ callStatic: {
480
+ swapExactAmountIn(
481
+ executor: string,
482
+ swapData: IAugustusV6.GenericDataStruct,
483
+ partnerAndFee: BigNumberish,
484
+ permit: BytesLike,
485
+ executorData: BytesLike,
486
+ overrides?: CallOverrides
487
+ ): Promise<void>;
488
+
489
+ swapExactAmountInOnBalancerV2(
490
+ executor: string,
491
+ balancerData: IAugustusV6.BalancerV2DataStruct,
492
+ partnerAndFee: BigNumberish,
493
+ permit: BytesLike,
494
+ data: BytesLike,
495
+ overrides?: CallOverrides
496
+ ): Promise<
497
+ [BigNumber, BigNumber, BigNumber] & {
498
+ receivedAmount: BigNumber;
499
+ paraswapShare: BigNumber;
500
+ partnerShare: BigNumber;
501
+ }
502
+ >;
503
+
504
+ swapExactAmountInOnCurveV1(
505
+ executor: string,
506
+ curveV1Data: IAugustusV6.CurveV1DataStruct,
507
+ partnerAndFee: BigNumberish,
508
+ permit: BytesLike,
509
+ overrides?: CallOverrides
510
+ ): Promise<
511
+ [BigNumber, BigNumber, BigNumber] & {
512
+ receivedAmount: BigNumber;
513
+ paraswapShare: BigNumber;
514
+ partnerShare: BigNumber;
515
+ }
516
+ >;
517
+
518
+ swapExactAmountInOnCurveV2(
519
+ executor: string,
520
+ curveV2Data: IAugustusV6.CurveV2DataStruct,
521
+ partnerAndFee: BigNumberish,
522
+ permit: BytesLike,
523
+ overrides?: CallOverrides
524
+ ): Promise<
525
+ [BigNumber, BigNumber, BigNumber] & {
526
+ receivedAmount: BigNumber;
527
+ paraswapShare: BigNumber;
528
+ partnerShare: BigNumber;
529
+ }
530
+ >;
531
+
532
+ swapExactAmountInOnUniswapV2(
533
+ executor: string,
534
+ uniData: IAugustusV6.UniswapV2DataStruct,
535
+ partnerAndFee: BigNumberish,
536
+ permit: BytesLike,
537
+ overrides?: CallOverrides
538
+ ): Promise<
539
+ [BigNumber, BigNumber, BigNumber] & {
540
+ receivedAmount: BigNumber;
541
+ paraswapShare: BigNumber;
542
+ partnerShare: BigNumber;
543
+ }
544
+ >;
545
+
546
+ swapExactAmountInOnUniswapV3(
547
+ executor: string,
548
+ uniData: IAugustusV6.UniswapV3DataStruct,
549
+ partnerAndFee: BigNumberish,
550
+ permit: BytesLike,
551
+ overrides?: CallOverrides
552
+ ): Promise<
553
+ [BigNumber, BigNumber, BigNumber] & {
554
+ receivedAmount: BigNumber;
555
+ paraswapShare: BigNumber;
556
+ partnerShare: BigNumber;
557
+ }
558
+ >;
559
+
560
+ swapExactAmountInOutOnMakerPSM(
561
+ executor: string,
562
+ makerPSMData: IAugustusV6.MakerPSMDataStruct,
563
+ permit: BytesLike,
564
+ overrides?: CallOverrides
565
+ ): Promise<
566
+ [BigNumber, BigNumber] & {
567
+ spentAmount: BigNumber;
568
+ receivedAmount: BigNumber;
569
+ }
570
+ >;
571
+ };
572
+
573
+ filters: {};
574
+
575
+ estimateGas: {
576
+ swapExactAmountIn(
577
+ executor: string,
578
+ swapData: IAugustusV6.GenericDataStruct,
579
+ partnerAndFee: BigNumberish,
580
+ permit: BytesLike,
581
+ executorData: BytesLike,
582
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
583
+ ): Promise<BigNumber>;
584
+
585
+ swapExactAmountInOnBalancerV2(
586
+ executor: string,
587
+ balancerData: IAugustusV6.BalancerV2DataStruct,
588
+ partnerAndFee: BigNumberish,
589
+ permit: BytesLike,
590
+ data: BytesLike,
591
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
592
+ ): Promise<BigNumber>;
593
+
594
+ swapExactAmountInOnCurveV1(
595
+ executor: string,
596
+ curveV1Data: IAugustusV6.CurveV1DataStruct,
597
+ partnerAndFee: BigNumberish,
598
+ permit: BytesLike,
599
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
600
+ ): Promise<BigNumber>;
601
+
602
+ swapExactAmountInOnCurveV2(
603
+ executor: string,
604
+ curveV2Data: IAugustusV6.CurveV2DataStruct,
605
+ partnerAndFee: BigNumberish,
606
+ permit: BytesLike,
607
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
608
+ ): Promise<BigNumber>;
609
+
610
+ swapExactAmountInOnUniswapV2(
611
+ executor: string,
612
+ uniData: IAugustusV6.UniswapV2DataStruct,
613
+ partnerAndFee: BigNumberish,
614
+ permit: BytesLike,
615
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
616
+ ): Promise<BigNumber>;
617
+
618
+ swapExactAmountInOnUniswapV3(
619
+ executor: string,
620
+ uniData: IAugustusV6.UniswapV3DataStruct,
621
+ partnerAndFee: BigNumberish,
622
+ permit: BytesLike,
623
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
624
+ ): Promise<BigNumber>;
625
+
626
+ swapExactAmountInOutOnMakerPSM(
627
+ executor: string,
628
+ makerPSMData: IAugustusV6.MakerPSMDataStruct,
629
+ permit: BytesLike,
630
+ overrides?: Overrides & { from?: string | Promise<string> }
631
+ ): Promise<BigNumber>;
632
+ };
633
+
634
+ populateTransaction: {
635
+ swapExactAmountIn(
636
+ executor: string,
637
+ swapData: IAugustusV6.GenericDataStruct,
638
+ partnerAndFee: BigNumberish,
639
+ permit: BytesLike,
640
+ executorData: BytesLike,
641
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
642
+ ): Promise<PopulatedTransaction>;
643
+
644
+ swapExactAmountInOnBalancerV2(
645
+ executor: string,
646
+ balancerData: IAugustusV6.BalancerV2DataStruct,
647
+ partnerAndFee: BigNumberish,
648
+ permit: BytesLike,
649
+ data: BytesLike,
650
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
651
+ ): Promise<PopulatedTransaction>;
652
+
653
+ swapExactAmountInOnCurveV1(
654
+ executor: string,
655
+ curveV1Data: IAugustusV6.CurveV1DataStruct,
656
+ partnerAndFee: BigNumberish,
657
+ permit: BytesLike,
658
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
659
+ ): Promise<PopulatedTransaction>;
660
+
661
+ swapExactAmountInOnCurveV2(
662
+ executor: string,
663
+ curveV2Data: IAugustusV6.CurveV2DataStruct,
664
+ partnerAndFee: BigNumberish,
665
+ permit: BytesLike,
666
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
667
+ ): Promise<PopulatedTransaction>;
668
+
669
+ swapExactAmountInOnUniswapV2(
670
+ executor: string,
671
+ uniData: IAugustusV6.UniswapV2DataStruct,
672
+ partnerAndFee: BigNumberish,
673
+ permit: BytesLike,
674
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
675
+ ): Promise<PopulatedTransaction>;
676
+
677
+ swapExactAmountInOnUniswapV3(
678
+ executor: string,
679
+ uniData: IAugustusV6.UniswapV3DataStruct,
680
+ partnerAndFee: BigNumberish,
681
+ permit: BytesLike,
682
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
683
+ ): Promise<PopulatedTransaction>;
684
+
685
+ swapExactAmountInOutOnMakerPSM(
686
+ executor: string,
687
+ makerPSMData: IAugustusV6.MakerPSMDataStruct,
688
+ permit: BytesLike,
689
+ overrides?: Overrides & { from?: string | Promise<string> }
690
+ ): Promise<PopulatedTransaction>;
691
+ };
692
+ }