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