@gearbox-protocol/sdk 3.0.0-vfourabi.1 → 3.0.0-vfourabi.3

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 (275) hide show
  1. package/.eslintignore +3 -0
  2. package/.github/workflows/lint_pr.yml +18 -0
  3. package/.github/workflows/pr.yml +39 -0
  4. package/.github/workflows/release.yml +47 -0
  5. package/.gitignore +19 -0
  6. package/.husky/commit-msg +1 -0
  7. package/.husky/pre-commit +1 -0
  8. package/.nvmrc +1 -0
  9. package/.releaserc.json +34 -0
  10. package/.vscode/extensions.json +7 -0
  11. package/.vscode/settings.json +16 -0
  12. package/.yarn/install-state.gz +0 -0
  13. package/.yarnrc.yml +1 -0
  14. package/ContributionAgreement +72 -0
  15. package/dist/cjs/abi/iZapper.cjs +85 -0
  16. package/dist/cjs/abi/iZapper.d.ts +123 -0
  17. package/dist/cjs/sdk/index.cjs +19830 -19764
  18. package/dist/cjs/sdk/index.d.ts +3746 -3061
  19. package/dist/esm/abi/iZapper.d.mts +123 -0
  20. package/dist/esm/abi/iZapper.mjs +83 -0
  21. package/dist/esm/sdk/index.d.mts +3746 -3061
  22. package/dist/esm/sdk/index.mjs +19807 -19765
  23. package/jest.config.js +7 -0
  24. package/package.json +32 -2
  25. package/scripts/example.ts +30 -0
  26. package/src/abi/compressors.ts +3962 -0
  27. package/src/abi/errors.ts +196 -0
  28. package/src/abi/iERC20.ts +122 -0
  29. package/src/abi/iPausable.ts +35 -0
  30. package/src/abi/iPriceFeedStore.ts +227 -0
  31. package/src/abi/iUpdatablePriceFeed.ts +16 -0
  32. package/src/abi/iVersion.ts +28 -0
  33. package/src/abi/iZapper.ts +84 -0
  34. package/src/abi/routerV300.ts +378 -0
  35. package/src/abi/v300.ts +4151 -0
  36. package/src/abi/v310.ts +5179 -0
  37. package/src/adapters/AbstractAdapter.ts +28 -0
  38. package/src/adapters/BalancerV2VaultAdapterContract.ts +19 -0
  39. package/src/adapters/BalancerV3RouterAdapterContract.ts +19 -0
  40. package/src/adapters/CamelotV3AdapterContract.ts +20 -0
  41. package/src/adapters/ConvexV1BaseRewardPoolAdapterContract.ts +20 -0
  42. package/src/adapters/ConvexV1BoosterAdapterContract.ts +20 -0
  43. package/src/adapters/Curve2AssetsAdapterContract.ts +20 -0
  44. package/src/adapters/Curve3AssetsAdapterContract.ts +20 -0
  45. package/src/adapters/Curve4AssetsAdapterContract.ts +20 -0
  46. package/src/adapters/CurveV1AdapterStETHContract.ts +20 -0
  47. package/src/adapters/CurveV1StableNGAdapterContract.ts +20 -0
  48. package/src/adapters/DaiUsdsAdapterContract.ts +21 -0
  49. package/src/adapters/ERC4626AdapterContract.ts +20 -0
  50. package/src/adapters/MellowERC4626VaultAdapterContract.ts +20 -0
  51. package/src/adapters/MellowVaultAdapterContract.ts +20 -0
  52. package/src/adapters/PendleRouterAdapterContract.ts +21 -0
  53. package/src/adapters/StakingRewardsAdapterContract.ts +21 -0
  54. package/src/adapters/UniswapV2AdapterContract.ts +20 -0
  55. package/src/adapters/UniswapV3AdapterContract.ts +170 -0
  56. package/src/adapters/VelodromeV2AdapterContract.ts +20 -0
  57. package/src/adapters/WstETHV1AdapterContract.ts +20 -0
  58. package/src/adapters/YearnV2AdapterContract.ts +20 -0
  59. package/src/adapters/abi/adapters.ts +4325 -0
  60. package/src/adapters/abi/iBalancerV3RouterAdapter.ts +126 -0
  61. package/src/adapters/abi/index.ts +2 -0
  62. package/src/adapters/index.ts +2 -0
  63. package/src/adapters/plugin.ts +90 -0
  64. package/src/adapters/types.ts +62 -0
  65. package/src/dev/AccountOpener.ts +611 -0
  66. package/src/dev/PriceFeedStore.ts +95 -0
  67. package/src/dev/SDKExample.ts +167 -0
  68. package/src/dev/abi.ts +14 -0
  69. package/src/dev/calcLiquidatableLTs.ts +77 -0
  70. package/src/dev/createAnvilClient.ts +155 -0
  71. package/src/dev/index.ts +7 -0
  72. package/src/dev/setLTZero.ts +127 -0
  73. package/src/dev/setLTs.ts +68 -0
  74. package/src/sdk/GearboxSDK.ts +488 -0
  75. package/src/sdk/abi/index.ts +1 -0
  76. package/src/sdk/abi/oracles.ts +4614 -0
  77. package/src/sdk/accounts/CreditAccountsService.ts +1123 -0
  78. package/src/sdk/accounts/index.ts +1 -0
  79. package/src/sdk/base/AddressLabeller.ts +35 -0
  80. package/src/sdk/base/BaseContract.ts +237 -0
  81. package/src/sdk/base/IAddressLabeller.ts +13 -0
  82. package/src/sdk/base/PlaceholderContract.ts +12 -0
  83. package/src/sdk/base/SDKConstruct.ts +35 -0
  84. package/src/sdk/base/TokensMeta.ts +45 -0
  85. package/src/sdk/base/index.ts +6 -0
  86. package/src/sdk/base/types.ts +102 -0
  87. package/src/sdk/bots/BotsService.ts +92 -0
  88. package/src/sdk/bots/index.ts +2 -0
  89. package/src/sdk/bots/utils.ts +19 -0
  90. package/src/sdk/chain/Provider.ts +99 -0
  91. package/src/sdk/chain/chains.ts +41 -0
  92. package/src/sdk/chain/detectChain.ts +21 -0
  93. package/src/sdk/chain/index.ts +3 -0
  94. package/src/sdk/constants/address-provider.ts +47 -0
  95. package/src/sdk/constants/addresses.ts +82 -0
  96. package/src/sdk/constants/bot-permissions.ts +36 -0
  97. package/src/sdk/constants/index.ts +6 -0
  98. package/src/sdk/constants/math.ts +23 -0
  99. package/src/sdk/constants/networks.ts +38 -0
  100. package/src/sdk/constants/periphery.ts +7 -0
  101. package/src/sdk/core/BotListV3Contract.ts +103 -0
  102. package/src/sdk/core/GearStakingV3Contract.ts +84 -0
  103. package/src/sdk/core/address-provider/AbstractAddressProviderContract.ts +101 -0
  104. package/src/sdk/core/address-provider/AddressProviderV3Contract.ts +105 -0
  105. package/src/sdk/core/address-provider/AddressProviderV3_1Contract.ts +92 -0
  106. package/src/sdk/core/address-provider/getAddressProvider.ts +45 -0
  107. package/src/sdk/core/address-provider/index.ts +4 -0
  108. package/src/sdk/core/address-provider/types.ts +17 -0
  109. package/src/sdk/core/index.ts +3 -0
  110. package/src/sdk/gauges/GaugeStakingService.ts +100 -0
  111. package/src/sdk/gauges/index.ts +2 -0
  112. package/src/sdk/gauges/utils.ts +25 -0
  113. package/src/sdk/index.ts +17 -0
  114. package/src/sdk/market/MarketConfiguratorContract.ts +78 -0
  115. package/src/sdk/market/MarketRegister.ts +330 -0
  116. package/src/sdk/market/MarketSuite.ts +83 -0
  117. package/src/sdk/market/adapters/PlaceholderAdapterContracts.ts +18 -0
  118. package/src/sdk/market/adapters/factory.ts +34 -0
  119. package/src/sdk/market/adapters/index.ts +3 -0
  120. package/src/sdk/market/adapters/types.ts +7 -0
  121. package/src/sdk/market/credit/CreditConfiguratorV300Contract.ts +164 -0
  122. package/src/sdk/market/credit/CreditConfiguratorV310Contract.ts +139 -0
  123. package/src/sdk/market/credit/CreditFacadeV300Contract.ts +206 -0
  124. package/src/sdk/market/credit/CreditFacadeV310Contract.ts +190 -0
  125. package/src/sdk/market/credit/CreditManagerV300Contract.ts +122 -0
  126. package/src/sdk/market/credit/CreditManagerV310Contract.ts +122 -0
  127. package/src/sdk/market/credit/CreditSuite.ts +65 -0
  128. package/src/sdk/market/credit/createCreditConfigurator.ts +18 -0
  129. package/src/sdk/market/credit/createCreditFacade.ts +18 -0
  130. package/src/sdk/market/credit/createCreditManager.ts +18 -0
  131. package/src/sdk/market/credit/index.ts +8 -0
  132. package/src/sdk/market/credit/types.ts +42 -0
  133. package/src/sdk/market/index.ts +7 -0
  134. package/src/sdk/market/oracle/PriceOracleBaseContract.ts +376 -0
  135. package/src/sdk/market/oracle/PriceOracleV300Contract.ts +71 -0
  136. package/src/sdk/market/oracle/PriceOracleV310Contract.ts +43 -0
  137. package/src/sdk/market/oracle/createPriceOracle.ts +22 -0
  138. package/src/sdk/market/oracle/index.ts +4 -0
  139. package/src/sdk/market/oracle/types.ts +48 -0
  140. package/src/sdk/market/pool/GaugeContract.ts +120 -0
  141. package/src/sdk/market/pool/LinearInterestRateModelContract.ts +75 -0
  142. package/src/sdk/market/pool/PoolQuotaKeeperV300Contract.ts +89 -0
  143. package/src/sdk/market/pool/PoolQuotaKeeperV310Contract.ts +89 -0
  144. package/src/sdk/market/pool/PoolSuite.ts +76 -0
  145. package/src/sdk/market/pool/PoolV300Contract.ts +144 -0
  146. package/src/sdk/market/pool/PoolV310Contract.ts +144 -0
  147. package/src/sdk/market/pool/TumblerContract.ts +73 -0
  148. package/src/sdk/market/pool/createInterestRateModel.ts +33 -0
  149. package/src/sdk/market/pool/createPool.ts +19 -0
  150. package/src/sdk/market/pool/createPoolQuotaKeeper.ts +20 -0
  151. package/src/sdk/market/pool/createRateKeeper.ts +25 -0
  152. package/src/sdk/market/pool/index.ts +6 -0
  153. package/src/sdk/market/pool/types.ts +28 -0
  154. package/src/sdk/market/pricefeeds/AbstractLPPriceFeed.ts +71 -0
  155. package/src/sdk/market/pricefeeds/AbstractPriceFeed.ts +137 -0
  156. package/src/sdk/market/pricefeeds/BalancerStablePriceFeed.ts +24 -0
  157. package/src/sdk/market/pricefeeds/BalancerWeightedPriceFeed.ts +70 -0
  158. package/src/sdk/market/pricefeeds/BoundedPriceFeed.ts +34 -0
  159. package/src/sdk/market/pricefeeds/ChainlinkPriceFeed.ts +16 -0
  160. package/src/sdk/market/pricefeeds/CompositePriceFeed.ts +25 -0
  161. package/src/sdk/market/pricefeeds/CurveCryptoPriceFeed.ts +24 -0
  162. package/src/sdk/market/pricefeeds/CurveStablePriceFeed.ts +24 -0
  163. package/src/sdk/market/pricefeeds/CurveUSDPriceFeed.ts +24 -0
  164. package/src/sdk/market/pricefeeds/Erc4626PriceFeed.ts +36 -0
  165. package/src/sdk/market/pricefeeds/MellowLRTPriceFeed.ts +26 -0
  166. package/src/sdk/market/pricefeeds/PendleTWAPPTPriceFeed.ts +44 -0
  167. package/src/sdk/market/pricefeeds/PriceFeedRef.ts +34 -0
  168. package/src/sdk/market/pricefeeds/PriceFeedsRegister.ts +293 -0
  169. package/src/sdk/market/pricefeeds/RedstonePriceFeed.ts +65 -0
  170. package/src/sdk/market/pricefeeds/RedstoneUpdater.ts +304 -0
  171. package/src/sdk/market/pricefeeds/WstETHPriceFeed.ts +24 -0
  172. package/src/sdk/market/pricefeeds/YearnPriceFeed.ts +24 -0
  173. package/src/sdk/market/pricefeeds/ZeroPriceFeed.ts +17 -0
  174. package/src/sdk/market/pricefeeds/index.ts +20 -0
  175. package/src/sdk/market/pricefeeds/types.ts +82 -0
  176. package/src/sdk/market/pricefeeds/utils.ts +24 -0
  177. package/src/sdk/plugins/index.ts +10 -0
  178. package/src/sdk/router/PathOptionFactory.ts +147 -0
  179. package/src/sdk/router/RouterV3Contract.ts +558 -0
  180. package/src/sdk/router/index.ts +2 -0
  181. package/src/sdk/router/types.ts +48 -0
  182. package/src/sdk/sdk-gov-legacy/contracts/adapters.ts +39 -0
  183. package/src/sdk/sdk-gov-legacy/contracts/contracts.ts +647 -0
  184. package/src/sdk/sdk-gov-legacy/contracts/index.ts +2 -0
  185. package/src/sdk/sdk-gov-legacy/core/constants.ts +11 -0
  186. package/src/sdk/sdk-gov-legacy/index.ts +4 -0
  187. package/src/sdk/sdk-gov-legacy/oracles/PriceFeedType.ts +24 -0
  188. package/src/sdk/sdk-gov-legacy/oracles/index.ts +1 -0
  189. package/src/sdk/sdk-gov-legacy/tokens/aave.ts +101 -0
  190. package/src/sdk/sdk-gov-legacy/tokens/aura.ts +284 -0
  191. package/src/sdk/sdk-gov-legacy/tokens/balancer.ts +421 -0
  192. package/src/sdk/sdk-gov-legacy/tokens/compound.ts +79 -0
  193. package/src/sdk/sdk-gov-legacy/tokens/convex.ts +561 -0
  194. package/src/sdk/sdk-gov-legacy/tokens/curveLP.ts +480 -0
  195. package/src/sdk/sdk-gov-legacy/tokens/decimals.ts +301 -0
  196. package/src/sdk/sdk-gov-legacy/tokens/erc4626.ts +75 -0
  197. package/src/sdk/sdk-gov-legacy/tokens/gear.ts +273 -0
  198. package/src/sdk/sdk-gov-legacy/tokens/index.ts +18 -0
  199. package/src/sdk/sdk-gov-legacy/tokens/normal.ts +613 -0
  200. package/src/sdk/sdk-gov-legacy/tokens/quoted.ts +10 -0
  201. package/src/sdk/sdk-gov-legacy/tokens/stakingRewards.ts +41 -0
  202. package/src/sdk/sdk-gov-legacy/tokens/token.ts +2354 -0
  203. package/src/sdk/sdk-gov-legacy/tokens/tokenData.ts +44 -0
  204. package/src/sdk/sdk-gov-legacy/tokens/tokenType.ts +33 -0
  205. package/src/sdk/sdk-gov-legacy/tokens/wrapped.ts +28 -0
  206. package/src/sdk/sdk-gov-legacy/tokens/yearn.ts +122 -0
  207. package/src/sdk/sdk-gov-legacy/tokens/zircuit.ts +44 -0
  208. package/src/sdk/sdk-legacy/apy/index.ts +149 -0
  209. package/src/sdk/sdk-legacy/core/assets.ts +200 -0
  210. package/src/sdk/sdk-legacy/core/creditAccount.spec.ts +1966 -0
  211. package/src/sdk/sdk-legacy/core/creditAccount.ts +816 -0
  212. package/src/sdk/sdk-legacy/core/creditManager.ts +316 -0
  213. package/src/sdk/sdk-legacy/core/creditSession.ts +352 -0
  214. package/src/sdk/sdk-legacy/core/endpoint.ts +131 -0
  215. package/src/sdk/sdk-legacy/core/eventOrTx.ts +101 -0
  216. package/src/sdk/sdk-legacy/core/pool.ts +439 -0
  217. package/src/sdk/sdk-legacy/core/strategy.ts +82 -0
  218. package/src/sdk/sdk-legacy/core/transactions.ts +865 -0
  219. package/src/sdk/sdk-legacy/gearboxRewards/api.ts +704 -0
  220. package/src/sdk/sdk-legacy/gearboxRewards/apy.ts +267 -0
  221. package/src/sdk/sdk-legacy/gearboxRewards/extraAPY.ts +165 -0
  222. package/src/sdk/sdk-legacy/gearboxRewards/index.ts +3 -0
  223. package/src/sdk/sdk-legacy/gearboxRewards/merklAPI.ts +151 -0
  224. package/src/sdk/sdk-legacy/index.ts +21 -0
  225. package/src/sdk/sdk-legacy/pathfinder/core.ts +18 -0
  226. package/src/sdk/sdk-legacy/pathfinder/index.ts +1 -0
  227. package/src/sdk/sdk-legacy/payload/creditAccount.ts +48 -0
  228. package/src/sdk/sdk-legacy/payload/creditManager.ts +133 -0
  229. package/src/sdk/sdk-legacy/payload/creditSession.ts +143 -0
  230. package/src/sdk/sdk-legacy/payload/graphPayload.ts +10 -0
  231. package/src/sdk/sdk-legacy/payload/pool.ts +198 -0
  232. package/src/sdk/sdk-legacy/payload/token.ts +13 -0
  233. package/src/sdk/sdk-legacy/tokens/tokenData.ts +57 -0
  234. package/src/sdk/sdk-legacy/types/IAirdropDistributor.ts +103 -0
  235. package/src/sdk/sdk-legacy/types/IBaseRewardPool.ts +249 -0
  236. package/src/sdk/sdk-legacy/types/IDataCompressorV3.ts +957 -0
  237. package/src/sdk/sdk-legacy/types/IDegenDistributor.ts +70 -0
  238. package/src/sdk/sdk-legacy/types/IERC20Permit.ts +35 -0
  239. package/src/sdk/sdk-legacy/types/IERC20ZapperDeposits.ts +99 -0
  240. package/src/sdk/sdk-legacy/types/IETHZapperDeposits.ts +27 -0
  241. package/src/sdk/sdk-legacy/types/IFarmingPool.ts +229 -0
  242. package/src/sdk/sdk-legacy/types/IInterestRateModel.ts +23 -0
  243. package/src/sdk/sdk-legacy/types/IMulticall3.ts +242 -0
  244. package/src/sdk/sdk-legacy/types/IOffchainOracle.ts +31 -0
  245. package/src/sdk/sdk-legacy/types/index.ts +11 -0
  246. package/src/sdk/sdk-legacy/utils/formatter.ts +46 -0
  247. package/src/sdk/sdk-legacy/utils/index.ts +3 -0
  248. package/src/sdk/sdk-legacy/utils/math.ts +6 -0
  249. package/src/sdk/sdk-legacy/utils/price.ts +27 -0
  250. package/src/sdk/types/index.ts +5 -0
  251. package/src/sdk/types/logger.ts +13 -0
  252. package/src/sdk/types/state-human.ts +224 -0
  253. package/src/sdk/types/state.ts +8 -0
  254. package/src/sdk/types/transactions.ts +22 -0
  255. package/src/sdk/types/tvl.ts +4 -0
  256. package/src/sdk/utils/AddressMap.ts +111 -0
  257. package/src/sdk/utils/bytes32ToString.ts +6 -0
  258. package/src/sdk/utils/childLogger.ts +8 -0
  259. package/src/sdk/utils/createRawTx.ts +86 -0
  260. package/src/sdk/utils/etherscan.ts +42 -0
  261. package/src/sdk/utils/filterDust.ts +20 -0
  262. package/src/sdk/utils/formatter.ts +124 -0
  263. package/src/sdk/utils/index.ts +10 -0
  264. package/src/sdk/utils/internal/Hooks.ts +51 -0
  265. package/src/sdk/utils/internal/index.ts +1 -0
  266. package/src/sdk/utils/json.ts +27 -0
  267. package/src/sdk/utils/mappers.ts +38 -0
  268. package/src/sdk/utils/retry.ts +24 -0
  269. package/src/sdk/utils/viem/detectNetwork.ts +27 -0
  270. package/src/sdk/utils/viem/index.ts +3 -0
  271. package/src/sdk/utils/viem/sendRawTx.ts +36 -0
  272. package/src/sdk/utils/viem/simulateMulticall.ts +262 -0
  273. package/tsconfig.build.json +4 -0
  274. package/tsconfig.json +16 -0
  275. package/tsup.config.ts +77 -0
@@ -0,0 +1,4325 @@
1
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2
+ // IBalancerV2VaultAdapter
3
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
+
5
+ export const iBalancerV2VaultAdapterAbi = [
6
+ {
7
+ type: "function",
8
+ inputs: [
9
+ { name: "kind", internalType: "enum SwapKind", type: "uint8" },
10
+ {
11
+ name: "swaps",
12
+ internalType: "struct BatchSwapStep[]",
13
+ type: "tuple[]",
14
+ components: [
15
+ { name: "poolId", internalType: "bytes32", type: "bytes32" },
16
+ { name: "assetInIndex", internalType: "uint256", type: "uint256" },
17
+ { name: "assetOutIndex", internalType: "uint256", type: "uint256" },
18
+ { name: "amount", internalType: "uint256", type: "uint256" },
19
+ { name: "userData", internalType: "bytes", type: "bytes" },
20
+ ],
21
+ },
22
+ { name: "assets", internalType: "contract IAsset[]", type: "address[]" },
23
+ {
24
+ name: "",
25
+ internalType: "struct FundManagement",
26
+ type: "tuple",
27
+ components: [
28
+ { name: "sender", internalType: "address", type: "address" },
29
+ { name: "fromInternalBalance", internalType: "bool", type: "bool" },
30
+ {
31
+ name: "recipient",
32
+ internalType: "address payable",
33
+ type: "address",
34
+ },
35
+ { name: "toInternalBalance", internalType: "bool", type: "bool" },
36
+ ],
37
+ },
38
+ { name: "limits", internalType: "int256[]", type: "int256[]" },
39
+ { name: "deadline", internalType: "uint256", type: "uint256" },
40
+ ],
41
+ name: "batchSwap",
42
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
43
+ stateMutability: "nonpayable",
44
+ },
45
+ {
46
+ type: "function",
47
+ inputs: [],
48
+ name: "contractType",
49
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
50
+ stateMutability: "view",
51
+ },
52
+ {
53
+ type: "function",
54
+ inputs: [],
55
+ name: "creditManager",
56
+ outputs: [{ name: "", internalType: "address", type: "address" }],
57
+ stateMutability: "view",
58
+ },
59
+ {
60
+ type: "function",
61
+ inputs: [
62
+ { name: "poolId", internalType: "bytes32", type: "bytes32" },
63
+ { name: "", internalType: "address", type: "address" },
64
+ { name: "", internalType: "address payable", type: "address" },
65
+ {
66
+ name: "request",
67
+ internalType: "struct ExitPoolRequest",
68
+ type: "tuple",
69
+ components: [
70
+ {
71
+ name: "assets",
72
+ internalType: "contract IAsset[]",
73
+ type: "address[]",
74
+ },
75
+ {
76
+ name: "minAmountsOut",
77
+ internalType: "uint256[]",
78
+ type: "uint256[]",
79
+ },
80
+ { name: "userData", internalType: "bytes", type: "bytes" },
81
+ { name: "toInternalBalance", internalType: "bool", type: "bool" },
82
+ ],
83
+ },
84
+ ],
85
+ name: "exitPool",
86
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
87
+ stateMutability: "nonpayable",
88
+ },
89
+ {
90
+ type: "function",
91
+ inputs: [
92
+ { name: "poolId", internalType: "bytes32", type: "bytes32" },
93
+ { name: "assetOut", internalType: "contract IAsset", type: "address" },
94
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
95
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" },
96
+ ],
97
+ name: "exitPoolSingleAsset",
98
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
99
+ stateMutability: "nonpayable",
100
+ },
101
+ {
102
+ type: "function",
103
+ inputs: [
104
+ { name: "poolId", internalType: "bytes32", type: "bytes32" },
105
+ { name: "assetOut", internalType: "contract IAsset", type: "address" },
106
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
107
+ { name: "minRateRAY", internalType: "uint256", type: "uint256" },
108
+ ],
109
+ name: "exitPoolSingleAssetDiff",
110
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
111
+ stateMutability: "nonpayable",
112
+ },
113
+ {
114
+ type: "function",
115
+ inputs: [
116
+ { name: "poolId", internalType: "bytes32", type: "bytes32" },
117
+ { name: "", internalType: "address", type: "address" },
118
+ { name: "", internalType: "address", type: "address" },
119
+ {
120
+ name: "request",
121
+ internalType: "struct JoinPoolRequest",
122
+ type: "tuple",
123
+ components: [
124
+ {
125
+ name: "assets",
126
+ internalType: "contract IAsset[]",
127
+ type: "address[]",
128
+ },
129
+ {
130
+ name: "maxAmountsIn",
131
+ internalType: "uint256[]",
132
+ type: "uint256[]",
133
+ },
134
+ { name: "userData", internalType: "bytes", type: "bytes" },
135
+ { name: "fromInternalBalance", internalType: "bool", type: "bool" },
136
+ ],
137
+ },
138
+ ],
139
+ name: "joinPool",
140
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
141
+ stateMutability: "nonpayable",
142
+ },
143
+ {
144
+ type: "function",
145
+ inputs: [
146
+ { name: "poolId", internalType: "bytes32", type: "bytes32" },
147
+ { name: "assetIn", internalType: "contract IAsset", type: "address" },
148
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
149
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" },
150
+ ],
151
+ name: "joinPoolSingleAsset",
152
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
153
+ stateMutability: "nonpayable",
154
+ },
155
+ {
156
+ type: "function",
157
+ inputs: [
158
+ { name: "poolId", internalType: "bytes32", type: "bytes32" },
159
+ { name: "assetIn", internalType: "contract IAsset", type: "address" },
160
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
161
+ { name: "minRateRAY", internalType: "uint256", type: "uint256" },
162
+ ],
163
+ name: "joinPoolSingleAssetDiff",
164
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
165
+ stateMutability: "nonpayable",
166
+ },
167
+ {
168
+ type: "function",
169
+ inputs: [{ name: "poolId", internalType: "bytes32", type: "bytes32" }],
170
+ name: "poolStatus",
171
+ outputs: [{ name: "", internalType: "enum PoolStatus", type: "uint8" }],
172
+ stateMutability: "view",
173
+ },
174
+ {
175
+ type: "function",
176
+ inputs: [],
177
+ name: "serialize",
178
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
179
+ stateMutability: "view",
180
+ },
181
+ {
182
+ type: "function",
183
+ inputs: [
184
+ { name: "poolId", internalType: "bytes32", type: "bytes32" },
185
+ { name: "newStatus", internalType: "enum PoolStatus", type: "uint8" },
186
+ ],
187
+ name: "setPoolStatus",
188
+ outputs: [],
189
+ stateMutability: "nonpayable",
190
+ },
191
+ {
192
+ type: "function",
193
+ inputs: [
194
+ {
195
+ name: "singleSwap",
196
+ internalType: "struct SingleSwap",
197
+ type: "tuple",
198
+ components: [
199
+ { name: "poolId", internalType: "bytes32", type: "bytes32" },
200
+ { name: "kind", internalType: "enum SwapKind", type: "uint8" },
201
+ { name: "assetIn", internalType: "contract IAsset", type: "address" },
202
+ {
203
+ name: "assetOut",
204
+ internalType: "contract IAsset",
205
+ type: "address",
206
+ },
207
+ { name: "amount", internalType: "uint256", type: "uint256" },
208
+ { name: "userData", internalType: "bytes", type: "bytes" },
209
+ ],
210
+ },
211
+ {
212
+ name: "",
213
+ internalType: "struct FundManagement",
214
+ type: "tuple",
215
+ components: [
216
+ { name: "sender", internalType: "address", type: "address" },
217
+ { name: "fromInternalBalance", internalType: "bool", type: "bool" },
218
+ {
219
+ name: "recipient",
220
+ internalType: "address payable",
221
+ type: "address",
222
+ },
223
+ { name: "toInternalBalance", internalType: "bool", type: "bool" },
224
+ ],
225
+ },
226
+ { name: "limit", internalType: "uint256", type: "uint256" },
227
+ { name: "deadline", internalType: "uint256", type: "uint256" },
228
+ ],
229
+ name: "swap",
230
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
231
+ stateMutability: "nonpayable",
232
+ },
233
+ {
234
+ type: "function",
235
+ inputs: [
236
+ {
237
+ name: "singleSwapDiff",
238
+ internalType: "struct SingleSwapDiff",
239
+ type: "tuple",
240
+ components: [
241
+ { name: "poolId", internalType: "bytes32", type: "bytes32" },
242
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
243
+ { name: "assetIn", internalType: "contract IAsset", type: "address" },
244
+ {
245
+ name: "assetOut",
246
+ internalType: "contract IAsset",
247
+ type: "address",
248
+ },
249
+ { name: "userData", internalType: "bytes", type: "bytes" },
250
+ ],
251
+ },
252
+ { name: "limitRateRAY", internalType: "uint256", type: "uint256" },
253
+ { name: "deadline", internalType: "uint256", type: "uint256" },
254
+ ],
255
+ name: "swapDiff",
256
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
257
+ stateMutability: "nonpayable",
258
+ },
259
+ {
260
+ type: "function",
261
+ inputs: [],
262
+ name: "targetContract",
263
+ outputs: [{ name: "", internalType: "address", type: "address" }],
264
+ stateMutability: "view",
265
+ },
266
+ {
267
+ type: "function",
268
+ inputs: [],
269
+ name: "version",
270
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
271
+ stateMutability: "view",
272
+ },
273
+ {
274
+ type: "event",
275
+ anonymous: false,
276
+ inputs: [
277
+ {
278
+ name: "poolId",
279
+ internalType: "bytes32",
280
+ type: "bytes32",
281
+ indexed: true,
282
+ },
283
+ {
284
+ name: "newStatus",
285
+ internalType: "enum PoolStatus",
286
+ type: "uint8",
287
+ indexed: false,
288
+ },
289
+ ],
290
+ name: "SetPoolStatus",
291
+ },
292
+ { type: "error", inputs: [], name: "PoolNotSupportedException" },
293
+ ] as const;
294
+
295
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
296
+ // ICamelotV3Adapter
297
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
298
+
299
+ export const iCamelotV3AdapterAbi = [
300
+ {
301
+ type: "function",
302
+ inputs: [],
303
+ name: "contractType",
304
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
305
+ stateMutability: "view",
306
+ },
307
+ {
308
+ type: "function",
309
+ inputs: [],
310
+ name: "creditManager",
311
+ outputs: [{ name: "", internalType: "address", type: "address" }],
312
+ stateMutability: "view",
313
+ },
314
+ {
315
+ type: "function",
316
+ inputs: [
317
+ {
318
+ name: "params",
319
+ internalType: "struct ICamelotV3AdapterTypes.ExactDiffInputParams",
320
+ type: "tuple",
321
+ components: [
322
+ { name: "path", internalType: "bytes", type: "bytes" },
323
+ { name: "deadline", internalType: "uint256", type: "uint256" },
324
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
325
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
326
+ ],
327
+ },
328
+ ],
329
+ name: "exactDiffInput",
330
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
331
+ stateMutability: "nonpayable",
332
+ },
333
+ {
334
+ type: "function",
335
+ inputs: [
336
+ {
337
+ name: "params",
338
+ internalType:
339
+ "struct ICamelotV3AdapterTypes.ExactDiffInputSingleParams",
340
+ type: "tuple",
341
+ components: [
342
+ { name: "tokenIn", internalType: "address", type: "address" },
343
+ { name: "tokenOut", internalType: "address", type: "address" },
344
+ { name: "deadline", internalType: "uint256", type: "uint256" },
345
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
346
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
347
+ { name: "limitSqrtPrice", internalType: "uint160", type: "uint160" },
348
+ ],
349
+ },
350
+ ],
351
+ name: "exactDiffInputSingle",
352
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
353
+ stateMutability: "nonpayable",
354
+ },
355
+ {
356
+ type: "function",
357
+ inputs: [
358
+ {
359
+ name: "params",
360
+ internalType:
361
+ "struct ICamelotV3AdapterTypes.ExactDiffInputSingleParams",
362
+ type: "tuple",
363
+ components: [
364
+ { name: "tokenIn", internalType: "address", type: "address" },
365
+ { name: "tokenOut", internalType: "address", type: "address" },
366
+ { name: "deadline", internalType: "uint256", type: "uint256" },
367
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
368
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
369
+ { name: "limitSqrtPrice", internalType: "uint160", type: "uint160" },
370
+ ],
371
+ },
372
+ ],
373
+ name: "exactDiffInputSingleSupportingFeeOnTransferTokens",
374
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
375
+ stateMutability: "nonpayable",
376
+ },
377
+ {
378
+ type: "function",
379
+ inputs: [
380
+ {
381
+ name: "params",
382
+ internalType: "struct ICamelotV3Router.ExactInputParams",
383
+ type: "tuple",
384
+ components: [
385
+ { name: "path", internalType: "bytes", type: "bytes" },
386
+ { name: "recipient", internalType: "address", type: "address" },
387
+ { name: "deadline", internalType: "uint256", type: "uint256" },
388
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
389
+ {
390
+ name: "amountOutMinimum",
391
+ internalType: "uint256",
392
+ type: "uint256",
393
+ },
394
+ ],
395
+ },
396
+ ],
397
+ name: "exactInput",
398
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
399
+ stateMutability: "nonpayable",
400
+ },
401
+ {
402
+ type: "function",
403
+ inputs: [
404
+ {
405
+ name: "params",
406
+ internalType: "struct ICamelotV3Router.ExactInputSingleParams",
407
+ type: "tuple",
408
+ components: [
409
+ { name: "tokenIn", internalType: "address", type: "address" },
410
+ { name: "tokenOut", internalType: "address", type: "address" },
411
+ { name: "recipient", internalType: "address", type: "address" },
412
+ { name: "deadline", internalType: "uint256", type: "uint256" },
413
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
414
+ {
415
+ name: "amountOutMinimum",
416
+ internalType: "uint256",
417
+ type: "uint256",
418
+ },
419
+ { name: "limitSqrtPrice", internalType: "uint160", type: "uint160" },
420
+ ],
421
+ },
422
+ ],
423
+ name: "exactInputSingle",
424
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
425
+ stateMutability: "nonpayable",
426
+ },
427
+ {
428
+ type: "function",
429
+ inputs: [
430
+ {
431
+ name: "params",
432
+ internalType: "struct ICamelotV3Router.ExactInputSingleParams",
433
+ type: "tuple",
434
+ components: [
435
+ { name: "tokenIn", internalType: "address", type: "address" },
436
+ { name: "tokenOut", internalType: "address", type: "address" },
437
+ { name: "recipient", internalType: "address", type: "address" },
438
+ { name: "deadline", internalType: "uint256", type: "uint256" },
439
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
440
+ {
441
+ name: "amountOutMinimum",
442
+ internalType: "uint256",
443
+ type: "uint256",
444
+ },
445
+ { name: "limitSqrtPrice", internalType: "uint160", type: "uint160" },
446
+ ],
447
+ },
448
+ ],
449
+ name: "exactInputSingleSupportingFeeOnTransferTokens",
450
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
451
+ stateMutability: "nonpayable",
452
+ },
453
+ {
454
+ type: "function",
455
+ inputs: [
456
+ {
457
+ name: "params",
458
+ internalType: "struct ICamelotV3Router.ExactOutputParams",
459
+ type: "tuple",
460
+ components: [
461
+ { name: "path", internalType: "bytes", type: "bytes" },
462
+ { name: "recipient", internalType: "address", type: "address" },
463
+ { name: "deadline", internalType: "uint256", type: "uint256" },
464
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
465
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
466
+ ],
467
+ },
468
+ ],
469
+ name: "exactOutput",
470
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
471
+ stateMutability: "nonpayable",
472
+ },
473
+ {
474
+ type: "function",
475
+ inputs: [
476
+ {
477
+ name: "params",
478
+ internalType: "struct ICamelotV3Router.ExactOutputSingleParams",
479
+ type: "tuple",
480
+ components: [
481
+ { name: "tokenIn", internalType: "address", type: "address" },
482
+ { name: "tokenOut", internalType: "address", type: "address" },
483
+ { name: "fee", internalType: "uint24", type: "uint24" },
484
+ { name: "recipient", internalType: "address", type: "address" },
485
+ { name: "deadline", internalType: "uint256", type: "uint256" },
486
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
487
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
488
+ { name: "limitSqrtPrice", internalType: "uint160", type: "uint160" },
489
+ ],
490
+ },
491
+ ],
492
+ name: "exactOutputSingle",
493
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
494
+ stateMutability: "nonpayable",
495
+ },
496
+ {
497
+ type: "function",
498
+ inputs: [
499
+ { name: "token0", internalType: "address", type: "address" },
500
+ { name: "token1", internalType: "address", type: "address" },
501
+ ],
502
+ name: "isPoolAllowed",
503
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
504
+ stateMutability: "view",
505
+ },
506
+ {
507
+ type: "function",
508
+ inputs: [],
509
+ name: "serialize",
510
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
511
+ stateMutability: "view",
512
+ },
513
+ {
514
+ type: "function",
515
+ inputs: [
516
+ {
517
+ name: "pools",
518
+ internalType: "struct CamelotV3PoolStatus[]",
519
+ type: "tuple[]",
520
+ components: [
521
+ { name: "token0", internalType: "address", type: "address" },
522
+ { name: "token1", internalType: "address", type: "address" },
523
+ { name: "allowed", internalType: "bool", type: "bool" },
524
+ ],
525
+ },
526
+ ],
527
+ name: "setPoolStatusBatch",
528
+ outputs: [],
529
+ stateMutability: "nonpayable",
530
+ },
531
+ {
532
+ type: "function",
533
+ inputs: [],
534
+ name: "targetContract",
535
+ outputs: [{ name: "", internalType: "address", type: "address" }],
536
+ stateMutability: "view",
537
+ },
538
+ {
539
+ type: "function",
540
+ inputs: [],
541
+ name: "version",
542
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
543
+ stateMutability: "view",
544
+ },
545
+ {
546
+ type: "event",
547
+ anonymous: false,
548
+ inputs: [
549
+ {
550
+ name: "token0",
551
+ internalType: "address",
552
+ type: "address",
553
+ indexed: true,
554
+ },
555
+ {
556
+ name: "token1",
557
+ internalType: "address",
558
+ type: "address",
559
+ indexed: true,
560
+ },
561
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
562
+ ],
563
+ name: "SetPoolStatus",
564
+ },
565
+ { type: "error", inputs: [], name: "InvalidPathException" },
566
+ ] as const;
567
+
568
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
569
+ // IConvexV1BaseRewardPoolAdapter
570
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
571
+
572
+ export const iConvexV1BaseRewardPoolAdapterAbi = [
573
+ {
574
+ type: "function",
575
+ inputs: [],
576
+ name: "contractType",
577
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
578
+ stateMutability: "view",
579
+ },
580
+ {
581
+ type: "function",
582
+ inputs: [],
583
+ name: "creditManager",
584
+ outputs: [{ name: "", internalType: "address", type: "address" }],
585
+ stateMutability: "view",
586
+ },
587
+ {
588
+ type: "function",
589
+ inputs: [],
590
+ name: "curveLPtoken",
591
+ outputs: [{ name: "", internalType: "address", type: "address" }],
592
+ stateMutability: "view",
593
+ },
594
+ {
595
+ type: "function",
596
+ inputs: [],
597
+ name: "extraReward1",
598
+ outputs: [{ name: "", internalType: "address", type: "address" }],
599
+ stateMutability: "view",
600
+ },
601
+ {
602
+ type: "function",
603
+ inputs: [],
604
+ name: "extraReward2",
605
+ outputs: [{ name: "", internalType: "address", type: "address" }],
606
+ stateMutability: "view",
607
+ },
608
+ {
609
+ type: "function",
610
+ inputs: [],
611
+ name: "extraReward3",
612
+ outputs: [{ name: "", internalType: "address", type: "address" }],
613
+ stateMutability: "view",
614
+ },
615
+ {
616
+ type: "function",
617
+ inputs: [],
618
+ name: "extraReward4",
619
+ outputs: [{ name: "", internalType: "address", type: "address" }],
620
+ stateMutability: "view",
621
+ },
622
+ {
623
+ type: "function",
624
+ inputs: [],
625
+ name: "getReward",
626
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
627
+ stateMutability: "nonpayable",
628
+ },
629
+ {
630
+ type: "function",
631
+ inputs: [],
632
+ name: "serialize",
633
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
634
+ stateMutability: "view",
635
+ },
636
+ {
637
+ type: "function",
638
+ inputs: [{ name: "", internalType: "uint256", type: "uint256" }],
639
+ name: "stake",
640
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
641
+ stateMutability: "nonpayable",
642
+ },
643
+ {
644
+ type: "function",
645
+ inputs: [
646
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
647
+ ],
648
+ name: "stakeDiff",
649
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
650
+ stateMutability: "nonpayable",
651
+ },
652
+ {
653
+ type: "function",
654
+ inputs: [],
655
+ name: "stakedPhantomToken",
656
+ outputs: [{ name: "", internalType: "address", type: "address" }],
657
+ stateMutability: "view",
658
+ },
659
+ {
660
+ type: "function",
661
+ inputs: [],
662
+ name: "stakingToken",
663
+ outputs: [{ name: "", internalType: "address", type: "address" }],
664
+ stateMutability: "view",
665
+ },
666
+ {
667
+ type: "function",
668
+ inputs: [],
669
+ name: "targetContract",
670
+ outputs: [{ name: "", internalType: "address", type: "address" }],
671
+ stateMutability: "view",
672
+ },
673
+ {
674
+ type: "function",
675
+ inputs: [],
676
+ name: "version",
677
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
678
+ stateMutability: "view",
679
+ },
680
+ {
681
+ type: "function",
682
+ inputs: [
683
+ { name: "", internalType: "uint256", type: "uint256" },
684
+ { name: "claim", internalType: "bool", type: "bool" },
685
+ ],
686
+ name: "withdraw",
687
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
688
+ stateMutability: "nonpayable",
689
+ },
690
+ {
691
+ type: "function",
692
+ inputs: [
693
+ { name: "", internalType: "uint256", type: "uint256" },
694
+ { name: "claim", internalType: "bool", type: "bool" },
695
+ ],
696
+ name: "withdrawAndUnwrap",
697
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
698
+ stateMutability: "nonpayable",
699
+ },
700
+ {
701
+ type: "function",
702
+ inputs: [
703
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
704
+ { name: "claim", internalType: "bool", type: "bool" },
705
+ ],
706
+ name: "withdrawDiff",
707
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
708
+ stateMutability: "nonpayable",
709
+ },
710
+ {
711
+ type: "function",
712
+ inputs: [
713
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
714
+ { name: "claim", internalType: "bool", type: "bool" },
715
+ ],
716
+ name: "withdrawDiffAndUnwrap",
717
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
718
+ stateMutability: "nonpayable",
719
+ },
720
+ {
721
+ type: "function",
722
+ inputs: [
723
+ { name: "token", internalType: "address", type: "address" },
724
+ { name: "amount", internalType: "uint256", type: "uint256" },
725
+ ],
726
+ name: "withdrawPhantomToken",
727
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
728
+ stateMutability: "nonpayable",
729
+ },
730
+ ] as const;
731
+
732
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
733
+ // IConvexV1BoosterAdapter
734
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
735
+
736
+ export const iConvexV1BoosterAdapterAbi = [
737
+ {
738
+ type: "function",
739
+ inputs: [],
740
+ name: "contractType",
741
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
742
+ stateMutability: "view",
743
+ },
744
+ {
745
+ type: "function",
746
+ inputs: [],
747
+ name: "creditManager",
748
+ outputs: [{ name: "", internalType: "address", type: "address" }],
749
+ stateMutability: "view",
750
+ },
751
+ {
752
+ type: "function",
753
+ inputs: [
754
+ { name: "_pid", internalType: "uint256", type: "uint256" },
755
+ { name: "", internalType: "uint256", type: "uint256" },
756
+ { name: "_stake", internalType: "bool", type: "bool" },
757
+ ],
758
+ name: "deposit",
759
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
760
+ stateMutability: "nonpayable",
761
+ },
762
+ {
763
+ type: "function",
764
+ inputs: [
765
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
766
+ { name: "_pid", internalType: "uint256", type: "uint256" },
767
+ { name: "_stake", internalType: "bool", type: "bool" },
768
+ ],
769
+ name: "depositDiff",
770
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
771
+ stateMutability: "nonpayable",
772
+ },
773
+ {
774
+ type: "function",
775
+ inputs: [{ name: "", internalType: "uint256", type: "uint256" }],
776
+ name: "pidToConvexToken",
777
+ outputs: [{ name: "", internalType: "address", type: "address" }],
778
+ stateMutability: "view",
779
+ },
780
+ {
781
+ type: "function",
782
+ inputs: [{ name: "", internalType: "uint256", type: "uint256" }],
783
+ name: "pidToCurveToken",
784
+ outputs: [{ name: "", internalType: "address", type: "address" }],
785
+ stateMutability: "view",
786
+ },
787
+ {
788
+ type: "function",
789
+ inputs: [{ name: "", internalType: "uint256", type: "uint256" }],
790
+ name: "pidToPhantomToken",
791
+ outputs: [{ name: "", internalType: "address", type: "address" }],
792
+ stateMutability: "view",
793
+ },
794
+ {
795
+ type: "function",
796
+ inputs: [],
797
+ name: "serialize",
798
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
799
+ stateMutability: "view",
800
+ },
801
+ {
802
+ type: "function",
803
+ inputs: [],
804
+ name: "targetContract",
805
+ outputs: [{ name: "", internalType: "address", type: "address" }],
806
+ stateMutability: "view",
807
+ },
808
+ {
809
+ type: "function",
810
+ inputs: [],
811
+ name: "updateSupportedPids",
812
+ outputs: [],
813
+ stateMutability: "nonpayable",
814
+ },
815
+ {
816
+ type: "function",
817
+ inputs: [],
818
+ name: "version",
819
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
820
+ stateMutability: "view",
821
+ },
822
+ {
823
+ type: "function",
824
+ inputs: [
825
+ { name: "_pid", internalType: "uint256", type: "uint256" },
826
+ { name: "", internalType: "uint256", type: "uint256" },
827
+ ],
828
+ name: "withdraw",
829
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
830
+ stateMutability: "nonpayable",
831
+ },
832
+ {
833
+ type: "function",
834
+ inputs: [
835
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
836
+ { name: "_pid", internalType: "uint256", type: "uint256" },
837
+ ],
838
+ name: "withdrawDiff",
839
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
840
+ stateMutability: "nonpayable",
841
+ },
842
+ {
843
+ type: "event",
844
+ anonymous: false,
845
+ inputs: [
846
+ { name: "pid", internalType: "uint256", type: "uint256", indexed: true },
847
+ ],
848
+ name: "AddSupportedPid",
849
+ },
850
+ { type: "error", inputs: [], name: "UnsupportedPidException" },
851
+ ] as const;
852
+
853
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
854
+ // ICurveV1Adapter
855
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
856
+
857
+ export const iCurveV1AdapterAbi = [
858
+ {
859
+ type: "function",
860
+ inputs: [
861
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
862
+ { name: "i", internalType: "uint256", type: "uint256" },
863
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
864
+ ],
865
+ name: "add_diff_liquidity_one_coin",
866
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
867
+ stateMutability: "nonpayable",
868
+ },
869
+ {
870
+ type: "function",
871
+ inputs: [
872
+ { name: "amount", internalType: "uint256", type: "uint256" },
873
+ { name: "i", internalType: "uint256", type: "uint256" },
874
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
875
+ ],
876
+ name: "add_liquidity_one_coin",
877
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
878
+ stateMutability: "nonpayable",
879
+ },
880
+ {
881
+ type: "function",
882
+ inputs: [
883
+ { name: "amount", internalType: "uint256", type: "uint256" },
884
+ { name: "i", internalType: "uint256", type: "uint256" },
885
+ ],
886
+ name: "calc_add_one_coin",
887
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
888
+ stateMutability: "view",
889
+ },
890
+ {
891
+ type: "function",
892
+ inputs: [],
893
+ name: "contractType",
894
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
895
+ stateMutability: "view",
896
+ },
897
+ {
898
+ type: "function",
899
+ inputs: [],
900
+ name: "creditManager",
901
+ outputs: [{ name: "", internalType: "address", type: "address" }],
902
+ stateMutability: "view",
903
+ },
904
+ {
905
+ type: "function",
906
+ inputs: [
907
+ { name: "i", internalType: "int128", type: "int128" },
908
+ { name: "j", internalType: "int128", type: "int128" },
909
+ { name: "dx", internalType: "uint256", type: "uint256" },
910
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
911
+ ],
912
+ name: "exchange",
913
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
914
+ stateMutability: "nonpayable",
915
+ },
916
+ {
917
+ type: "function",
918
+ inputs: [
919
+ { name: "i", internalType: "uint256", type: "uint256" },
920
+ { name: "j", internalType: "uint256", type: "uint256" },
921
+ { name: "dx", internalType: "uint256", type: "uint256" },
922
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
923
+ ],
924
+ name: "exchange",
925
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
926
+ stateMutability: "nonpayable",
927
+ },
928
+ {
929
+ type: "function",
930
+ inputs: [
931
+ { name: "i", internalType: "uint256", type: "uint256" },
932
+ { name: "j", internalType: "uint256", type: "uint256" },
933
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
934
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
935
+ ],
936
+ name: "exchange_diff",
937
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
938
+ stateMutability: "nonpayable",
939
+ },
940
+ {
941
+ type: "function",
942
+ inputs: [
943
+ { name: "i", internalType: "uint256", type: "uint256" },
944
+ { name: "j", internalType: "uint256", type: "uint256" },
945
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
946
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
947
+ ],
948
+ name: "exchange_diff_underlying",
949
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
950
+ stateMutability: "nonpayable",
951
+ },
952
+ {
953
+ type: "function",
954
+ inputs: [
955
+ { name: "i", internalType: "uint256", type: "uint256" },
956
+ { name: "j", internalType: "uint256", type: "uint256" },
957
+ { name: "dx", internalType: "uint256", type: "uint256" },
958
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
959
+ ],
960
+ name: "exchange_underlying",
961
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
962
+ stateMutability: "nonpayable",
963
+ },
964
+ {
965
+ type: "function",
966
+ inputs: [
967
+ { name: "i", internalType: "int128", type: "int128" },
968
+ { name: "j", internalType: "int128", type: "int128" },
969
+ { name: "dx", internalType: "uint256", type: "uint256" },
970
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
971
+ ],
972
+ name: "exchange_underlying",
973
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
974
+ stateMutability: "nonpayable",
975
+ },
976
+ {
977
+ type: "function",
978
+ inputs: [],
979
+ name: "lp_token",
980
+ outputs: [{ name: "", internalType: "address", type: "address" }],
981
+ stateMutability: "view",
982
+ },
983
+ {
984
+ type: "function",
985
+ inputs: [],
986
+ name: "metapoolBase",
987
+ outputs: [{ name: "", internalType: "address", type: "address" }],
988
+ stateMutability: "view",
989
+ },
990
+ {
991
+ type: "function",
992
+ inputs: [],
993
+ name: "nCoins",
994
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
995
+ stateMutability: "view",
996
+ },
997
+ {
998
+ type: "function",
999
+ inputs: [
1000
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1001
+ { name: "i", internalType: "uint256", type: "uint256" },
1002
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1003
+ ],
1004
+ name: "remove_diff_liquidity_one_coin",
1005
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1006
+ stateMutability: "nonpayable",
1007
+ },
1008
+ {
1009
+ type: "function",
1010
+ inputs: [
1011
+ { name: "amount", internalType: "uint256", type: "uint256" },
1012
+ { name: "i", internalType: "int128", type: "int128" },
1013
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1014
+ ],
1015
+ name: "remove_liquidity_one_coin",
1016
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1017
+ stateMutability: "nonpayable",
1018
+ },
1019
+ {
1020
+ type: "function",
1021
+ inputs: [
1022
+ { name: "amount", internalType: "uint256", type: "uint256" },
1023
+ { name: "i", internalType: "uint256", type: "uint256" },
1024
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1025
+ ],
1026
+ name: "remove_liquidity_one_coin",
1027
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1028
+ stateMutability: "nonpayable",
1029
+ },
1030
+ {
1031
+ type: "function",
1032
+ inputs: [],
1033
+ name: "serialize",
1034
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
1035
+ stateMutability: "view",
1036
+ },
1037
+ {
1038
+ type: "function",
1039
+ inputs: [],
1040
+ name: "targetContract",
1041
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1042
+ stateMutability: "view",
1043
+ },
1044
+ {
1045
+ type: "function",
1046
+ inputs: [],
1047
+ name: "token",
1048
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1049
+ stateMutability: "view",
1050
+ },
1051
+ {
1052
+ type: "function",
1053
+ inputs: [],
1054
+ name: "token0",
1055
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1056
+ stateMutability: "view",
1057
+ },
1058
+ {
1059
+ type: "function",
1060
+ inputs: [],
1061
+ name: "token1",
1062
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1063
+ stateMutability: "view",
1064
+ },
1065
+ {
1066
+ type: "function",
1067
+ inputs: [],
1068
+ name: "token2",
1069
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1070
+ stateMutability: "view",
1071
+ },
1072
+ {
1073
+ type: "function",
1074
+ inputs: [],
1075
+ name: "token3",
1076
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1077
+ stateMutability: "view",
1078
+ },
1079
+ {
1080
+ type: "function",
1081
+ inputs: [],
1082
+ name: "underlying0",
1083
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1084
+ stateMutability: "view",
1085
+ },
1086
+ {
1087
+ type: "function",
1088
+ inputs: [],
1089
+ name: "underlying1",
1090
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1091
+ stateMutability: "view",
1092
+ },
1093
+ {
1094
+ type: "function",
1095
+ inputs: [],
1096
+ name: "underlying2",
1097
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1098
+ stateMutability: "view",
1099
+ },
1100
+ {
1101
+ type: "function",
1102
+ inputs: [],
1103
+ name: "underlying3",
1104
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1105
+ stateMutability: "view",
1106
+ },
1107
+ {
1108
+ type: "function",
1109
+ inputs: [],
1110
+ name: "use256",
1111
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1112
+ stateMutability: "view",
1113
+ },
1114
+ {
1115
+ type: "function",
1116
+ inputs: [],
1117
+ name: "version",
1118
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1119
+ stateMutability: "view",
1120
+ },
1121
+ ] as const;
1122
+
1123
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1124
+ // ICurveV1_2AssetsAdapter
1125
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1126
+
1127
+ export const iCurveV1_2AssetsAdapterAbi = [
1128
+ {
1129
+ type: "function",
1130
+ inputs: [
1131
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1132
+ { name: "i", internalType: "uint256", type: "uint256" },
1133
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1134
+ ],
1135
+ name: "add_diff_liquidity_one_coin",
1136
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1137
+ stateMutability: "nonpayable",
1138
+ },
1139
+ {
1140
+ type: "function",
1141
+ inputs: [
1142
+ { name: "amounts", internalType: "uint256[2]", type: "uint256[2]" },
1143
+ { name: "", internalType: "uint256", type: "uint256" },
1144
+ ],
1145
+ name: "add_liquidity",
1146
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1147
+ stateMutability: "nonpayable",
1148
+ },
1149
+ {
1150
+ type: "function",
1151
+ inputs: [
1152
+ { name: "amount", internalType: "uint256", type: "uint256" },
1153
+ { name: "i", internalType: "uint256", type: "uint256" },
1154
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1155
+ ],
1156
+ name: "add_liquidity_one_coin",
1157
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1158
+ stateMutability: "nonpayable",
1159
+ },
1160
+ {
1161
+ type: "function",
1162
+ inputs: [
1163
+ { name: "amount", internalType: "uint256", type: "uint256" },
1164
+ { name: "i", internalType: "uint256", type: "uint256" },
1165
+ ],
1166
+ name: "calc_add_one_coin",
1167
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1168
+ stateMutability: "view",
1169
+ },
1170
+ {
1171
+ type: "function",
1172
+ inputs: [],
1173
+ name: "contractType",
1174
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
1175
+ stateMutability: "view",
1176
+ },
1177
+ {
1178
+ type: "function",
1179
+ inputs: [],
1180
+ name: "creditManager",
1181
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1182
+ stateMutability: "view",
1183
+ },
1184
+ {
1185
+ type: "function",
1186
+ inputs: [
1187
+ { name: "i", internalType: "int128", type: "int128" },
1188
+ { name: "j", internalType: "int128", type: "int128" },
1189
+ { name: "dx", internalType: "uint256", type: "uint256" },
1190
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1191
+ ],
1192
+ name: "exchange",
1193
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1194
+ stateMutability: "nonpayable",
1195
+ },
1196
+ {
1197
+ type: "function",
1198
+ inputs: [
1199
+ { name: "i", internalType: "uint256", type: "uint256" },
1200
+ { name: "j", internalType: "uint256", type: "uint256" },
1201
+ { name: "dx", internalType: "uint256", type: "uint256" },
1202
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1203
+ ],
1204
+ name: "exchange",
1205
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1206
+ stateMutability: "nonpayable",
1207
+ },
1208
+ {
1209
+ type: "function",
1210
+ inputs: [
1211
+ { name: "i", internalType: "uint256", type: "uint256" },
1212
+ { name: "j", internalType: "uint256", type: "uint256" },
1213
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1214
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1215
+ ],
1216
+ name: "exchange_diff",
1217
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1218
+ stateMutability: "nonpayable",
1219
+ },
1220
+ {
1221
+ type: "function",
1222
+ inputs: [
1223
+ { name: "i", internalType: "uint256", type: "uint256" },
1224
+ { name: "j", internalType: "uint256", type: "uint256" },
1225
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1226
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1227
+ ],
1228
+ name: "exchange_diff_underlying",
1229
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1230
+ stateMutability: "nonpayable",
1231
+ },
1232
+ {
1233
+ type: "function",
1234
+ inputs: [
1235
+ { name: "i", internalType: "uint256", type: "uint256" },
1236
+ { name: "j", internalType: "uint256", type: "uint256" },
1237
+ { name: "dx", internalType: "uint256", type: "uint256" },
1238
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1239
+ ],
1240
+ name: "exchange_underlying",
1241
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1242
+ stateMutability: "nonpayable",
1243
+ },
1244
+ {
1245
+ type: "function",
1246
+ inputs: [
1247
+ { name: "i", internalType: "int128", type: "int128" },
1248
+ { name: "j", internalType: "int128", type: "int128" },
1249
+ { name: "dx", internalType: "uint256", type: "uint256" },
1250
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1251
+ ],
1252
+ name: "exchange_underlying",
1253
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1254
+ stateMutability: "nonpayable",
1255
+ },
1256
+ {
1257
+ type: "function",
1258
+ inputs: [],
1259
+ name: "lp_token",
1260
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1261
+ stateMutability: "view",
1262
+ },
1263
+ {
1264
+ type: "function",
1265
+ inputs: [],
1266
+ name: "metapoolBase",
1267
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1268
+ stateMutability: "view",
1269
+ },
1270
+ {
1271
+ type: "function",
1272
+ inputs: [],
1273
+ name: "nCoins",
1274
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1275
+ stateMutability: "view",
1276
+ },
1277
+ {
1278
+ type: "function",
1279
+ inputs: [
1280
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1281
+ { name: "i", internalType: "uint256", type: "uint256" },
1282
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1283
+ ],
1284
+ name: "remove_diff_liquidity_one_coin",
1285
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1286
+ stateMutability: "nonpayable",
1287
+ },
1288
+ {
1289
+ type: "function",
1290
+ inputs: [
1291
+ { name: "", internalType: "uint256", type: "uint256" },
1292
+ { name: "", internalType: "uint256[2]", type: "uint256[2]" },
1293
+ ],
1294
+ name: "remove_liquidity",
1295
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1296
+ stateMutability: "nonpayable",
1297
+ },
1298
+ {
1299
+ type: "function",
1300
+ inputs: [
1301
+ { name: "amounts", internalType: "uint256[2]", type: "uint256[2]" },
1302
+ { name: "", internalType: "uint256", type: "uint256" },
1303
+ ],
1304
+ name: "remove_liquidity_imbalance",
1305
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1306
+ stateMutability: "nonpayable",
1307
+ },
1308
+ {
1309
+ type: "function",
1310
+ inputs: [
1311
+ { name: "amount", internalType: "uint256", type: "uint256" },
1312
+ { name: "i", internalType: "int128", type: "int128" },
1313
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1314
+ ],
1315
+ name: "remove_liquidity_one_coin",
1316
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1317
+ stateMutability: "nonpayable",
1318
+ },
1319
+ {
1320
+ type: "function",
1321
+ inputs: [
1322
+ { name: "amount", internalType: "uint256", type: "uint256" },
1323
+ { name: "i", internalType: "uint256", type: "uint256" },
1324
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1325
+ ],
1326
+ name: "remove_liquidity_one_coin",
1327
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1328
+ stateMutability: "nonpayable",
1329
+ },
1330
+ {
1331
+ type: "function",
1332
+ inputs: [],
1333
+ name: "serialize",
1334
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
1335
+ stateMutability: "view",
1336
+ },
1337
+ {
1338
+ type: "function",
1339
+ inputs: [],
1340
+ name: "targetContract",
1341
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1342
+ stateMutability: "view",
1343
+ },
1344
+ {
1345
+ type: "function",
1346
+ inputs: [],
1347
+ name: "token",
1348
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1349
+ stateMutability: "view",
1350
+ },
1351
+ {
1352
+ type: "function",
1353
+ inputs: [],
1354
+ name: "token0",
1355
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1356
+ stateMutability: "view",
1357
+ },
1358
+ {
1359
+ type: "function",
1360
+ inputs: [],
1361
+ name: "token1",
1362
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1363
+ stateMutability: "view",
1364
+ },
1365
+ {
1366
+ type: "function",
1367
+ inputs: [],
1368
+ name: "token2",
1369
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1370
+ stateMutability: "view",
1371
+ },
1372
+ {
1373
+ type: "function",
1374
+ inputs: [],
1375
+ name: "token3",
1376
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1377
+ stateMutability: "view",
1378
+ },
1379
+ {
1380
+ type: "function",
1381
+ inputs: [],
1382
+ name: "underlying0",
1383
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1384
+ stateMutability: "view",
1385
+ },
1386
+ {
1387
+ type: "function",
1388
+ inputs: [],
1389
+ name: "underlying1",
1390
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1391
+ stateMutability: "view",
1392
+ },
1393
+ {
1394
+ type: "function",
1395
+ inputs: [],
1396
+ name: "underlying2",
1397
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1398
+ stateMutability: "view",
1399
+ },
1400
+ {
1401
+ type: "function",
1402
+ inputs: [],
1403
+ name: "underlying3",
1404
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1405
+ stateMutability: "view",
1406
+ },
1407
+ {
1408
+ type: "function",
1409
+ inputs: [],
1410
+ name: "use256",
1411
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1412
+ stateMutability: "view",
1413
+ },
1414
+ {
1415
+ type: "function",
1416
+ inputs: [],
1417
+ name: "version",
1418
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1419
+ stateMutability: "view",
1420
+ },
1421
+ ] as const;
1422
+
1423
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1424
+ // ICurveV1_3AssetsAdapter
1425
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1426
+
1427
+ export const iCurveV1_3AssetsAdapterAbi = [
1428
+ {
1429
+ type: "function",
1430
+ inputs: [
1431
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1432
+ { name: "i", internalType: "uint256", type: "uint256" },
1433
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1434
+ ],
1435
+ name: "add_diff_liquidity_one_coin",
1436
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1437
+ stateMutability: "nonpayable",
1438
+ },
1439
+ {
1440
+ type: "function",
1441
+ inputs: [
1442
+ { name: "amounts", internalType: "uint256[3]", type: "uint256[3]" },
1443
+ { name: "", internalType: "uint256", type: "uint256" },
1444
+ ],
1445
+ name: "add_liquidity",
1446
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1447
+ stateMutability: "nonpayable",
1448
+ },
1449
+ {
1450
+ type: "function",
1451
+ inputs: [
1452
+ { name: "amount", internalType: "uint256", type: "uint256" },
1453
+ { name: "i", internalType: "uint256", type: "uint256" },
1454
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1455
+ ],
1456
+ name: "add_liquidity_one_coin",
1457
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1458
+ stateMutability: "nonpayable",
1459
+ },
1460
+ {
1461
+ type: "function",
1462
+ inputs: [
1463
+ { name: "amount", internalType: "uint256", type: "uint256" },
1464
+ { name: "i", internalType: "uint256", type: "uint256" },
1465
+ ],
1466
+ name: "calc_add_one_coin",
1467
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1468
+ stateMutability: "view",
1469
+ },
1470
+ {
1471
+ type: "function",
1472
+ inputs: [],
1473
+ name: "contractType",
1474
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
1475
+ stateMutability: "view",
1476
+ },
1477
+ {
1478
+ type: "function",
1479
+ inputs: [],
1480
+ name: "creditManager",
1481
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1482
+ stateMutability: "view",
1483
+ },
1484
+ {
1485
+ type: "function",
1486
+ inputs: [
1487
+ { name: "i", internalType: "int128", type: "int128" },
1488
+ { name: "j", internalType: "int128", type: "int128" },
1489
+ { name: "dx", internalType: "uint256", type: "uint256" },
1490
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1491
+ ],
1492
+ name: "exchange",
1493
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1494
+ stateMutability: "nonpayable",
1495
+ },
1496
+ {
1497
+ type: "function",
1498
+ inputs: [
1499
+ { name: "i", internalType: "uint256", type: "uint256" },
1500
+ { name: "j", internalType: "uint256", type: "uint256" },
1501
+ { name: "dx", internalType: "uint256", type: "uint256" },
1502
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1503
+ ],
1504
+ name: "exchange",
1505
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1506
+ stateMutability: "nonpayable",
1507
+ },
1508
+ {
1509
+ type: "function",
1510
+ inputs: [
1511
+ { name: "i", internalType: "uint256", type: "uint256" },
1512
+ { name: "j", internalType: "uint256", type: "uint256" },
1513
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1514
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1515
+ ],
1516
+ name: "exchange_diff",
1517
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1518
+ stateMutability: "nonpayable",
1519
+ },
1520
+ {
1521
+ type: "function",
1522
+ inputs: [
1523
+ { name: "i", internalType: "uint256", type: "uint256" },
1524
+ { name: "j", internalType: "uint256", type: "uint256" },
1525
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1526
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1527
+ ],
1528
+ name: "exchange_diff_underlying",
1529
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1530
+ stateMutability: "nonpayable",
1531
+ },
1532
+ {
1533
+ type: "function",
1534
+ inputs: [
1535
+ { name: "i", internalType: "uint256", type: "uint256" },
1536
+ { name: "j", internalType: "uint256", type: "uint256" },
1537
+ { name: "dx", internalType: "uint256", type: "uint256" },
1538
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1539
+ ],
1540
+ name: "exchange_underlying",
1541
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1542
+ stateMutability: "nonpayable",
1543
+ },
1544
+ {
1545
+ type: "function",
1546
+ inputs: [
1547
+ { name: "i", internalType: "int128", type: "int128" },
1548
+ { name: "j", internalType: "int128", type: "int128" },
1549
+ { name: "dx", internalType: "uint256", type: "uint256" },
1550
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1551
+ ],
1552
+ name: "exchange_underlying",
1553
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1554
+ stateMutability: "nonpayable",
1555
+ },
1556
+ {
1557
+ type: "function",
1558
+ inputs: [],
1559
+ name: "lp_token",
1560
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1561
+ stateMutability: "view",
1562
+ },
1563
+ {
1564
+ type: "function",
1565
+ inputs: [],
1566
+ name: "metapoolBase",
1567
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1568
+ stateMutability: "view",
1569
+ },
1570
+ {
1571
+ type: "function",
1572
+ inputs: [],
1573
+ name: "nCoins",
1574
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1575
+ stateMutability: "view",
1576
+ },
1577
+ {
1578
+ type: "function",
1579
+ inputs: [
1580
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1581
+ { name: "i", internalType: "uint256", type: "uint256" },
1582
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1583
+ ],
1584
+ name: "remove_diff_liquidity_one_coin",
1585
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1586
+ stateMutability: "nonpayable",
1587
+ },
1588
+ {
1589
+ type: "function",
1590
+ inputs: [
1591
+ { name: "", internalType: "uint256", type: "uint256" },
1592
+ { name: "", internalType: "uint256[3]", type: "uint256[3]" },
1593
+ ],
1594
+ name: "remove_liquidity",
1595
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1596
+ stateMutability: "nonpayable",
1597
+ },
1598
+ {
1599
+ type: "function",
1600
+ inputs: [
1601
+ { name: "amounts", internalType: "uint256[3]", type: "uint256[3]" },
1602
+ { name: "", internalType: "uint256", type: "uint256" },
1603
+ ],
1604
+ name: "remove_liquidity_imbalance",
1605
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1606
+ stateMutability: "nonpayable",
1607
+ },
1608
+ {
1609
+ type: "function",
1610
+ inputs: [
1611
+ { name: "amount", internalType: "uint256", type: "uint256" },
1612
+ { name: "i", internalType: "int128", type: "int128" },
1613
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1614
+ ],
1615
+ name: "remove_liquidity_one_coin",
1616
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1617
+ stateMutability: "nonpayable",
1618
+ },
1619
+ {
1620
+ type: "function",
1621
+ inputs: [
1622
+ { name: "amount", internalType: "uint256", type: "uint256" },
1623
+ { name: "i", internalType: "uint256", type: "uint256" },
1624
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1625
+ ],
1626
+ name: "remove_liquidity_one_coin",
1627
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1628
+ stateMutability: "nonpayable",
1629
+ },
1630
+ {
1631
+ type: "function",
1632
+ inputs: [],
1633
+ name: "serialize",
1634
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
1635
+ stateMutability: "view",
1636
+ },
1637
+ {
1638
+ type: "function",
1639
+ inputs: [],
1640
+ name: "targetContract",
1641
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1642
+ stateMutability: "view",
1643
+ },
1644
+ {
1645
+ type: "function",
1646
+ inputs: [],
1647
+ name: "token",
1648
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1649
+ stateMutability: "view",
1650
+ },
1651
+ {
1652
+ type: "function",
1653
+ inputs: [],
1654
+ name: "token0",
1655
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1656
+ stateMutability: "view",
1657
+ },
1658
+ {
1659
+ type: "function",
1660
+ inputs: [],
1661
+ name: "token1",
1662
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1663
+ stateMutability: "view",
1664
+ },
1665
+ {
1666
+ type: "function",
1667
+ inputs: [],
1668
+ name: "token2",
1669
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1670
+ stateMutability: "view",
1671
+ },
1672
+ {
1673
+ type: "function",
1674
+ inputs: [],
1675
+ name: "token3",
1676
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1677
+ stateMutability: "view",
1678
+ },
1679
+ {
1680
+ type: "function",
1681
+ inputs: [],
1682
+ name: "underlying0",
1683
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1684
+ stateMutability: "view",
1685
+ },
1686
+ {
1687
+ type: "function",
1688
+ inputs: [],
1689
+ name: "underlying1",
1690
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1691
+ stateMutability: "view",
1692
+ },
1693
+ {
1694
+ type: "function",
1695
+ inputs: [],
1696
+ name: "underlying2",
1697
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1698
+ stateMutability: "view",
1699
+ },
1700
+ {
1701
+ type: "function",
1702
+ inputs: [],
1703
+ name: "underlying3",
1704
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1705
+ stateMutability: "view",
1706
+ },
1707
+ {
1708
+ type: "function",
1709
+ inputs: [],
1710
+ name: "use256",
1711
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1712
+ stateMutability: "view",
1713
+ },
1714
+ {
1715
+ type: "function",
1716
+ inputs: [],
1717
+ name: "version",
1718
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1719
+ stateMutability: "view",
1720
+ },
1721
+ ] as const;
1722
+
1723
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1724
+ // ICurveV1_4AssetsAdapter
1725
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1726
+
1727
+ export const iCurveV1_4AssetsAdapterAbi = [
1728
+ {
1729
+ type: "function",
1730
+ inputs: [
1731
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1732
+ { name: "i", internalType: "uint256", type: "uint256" },
1733
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1734
+ ],
1735
+ name: "add_diff_liquidity_one_coin",
1736
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1737
+ stateMutability: "nonpayable",
1738
+ },
1739
+ {
1740
+ type: "function",
1741
+ inputs: [
1742
+ { name: "amounts", internalType: "uint256[4]", type: "uint256[4]" },
1743
+ { name: "", internalType: "uint256", type: "uint256" },
1744
+ ],
1745
+ name: "add_liquidity",
1746
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1747
+ stateMutability: "nonpayable",
1748
+ },
1749
+ {
1750
+ type: "function",
1751
+ inputs: [
1752
+ { name: "amount", internalType: "uint256", type: "uint256" },
1753
+ { name: "i", internalType: "uint256", type: "uint256" },
1754
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1755
+ ],
1756
+ name: "add_liquidity_one_coin",
1757
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1758
+ stateMutability: "nonpayable",
1759
+ },
1760
+ {
1761
+ type: "function",
1762
+ inputs: [
1763
+ { name: "amount", internalType: "uint256", type: "uint256" },
1764
+ { name: "i", internalType: "uint256", type: "uint256" },
1765
+ ],
1766
+ name: "calc_add_one_coin",
1767
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1768
+ stateMutability: "view",
1769
+ },
1770
+ {
1771
+ type: "function",
1772
+ inputs: [],
1773
+ name: "contractType",
1774
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
1775
+ stateMutability: "view",
1776
+ },
1777
+ {
1778
+ type: "function",
1779
+ inputs: [],
1780
+ name: "creditManager",
1781
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1782
+ stateMutability: "view",
1783
+ },
1784
+ {
1785
+ type: "function",
1786
+ inputs: [
1787
+ { name: "i", internalType: "int128", type: "int128" },
1788
+ { name: "j", internalType: "int128", type: "int128" },
1789
+ { name: "dx", internalType: "uint256", type: "uint256" },
1790
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1791
+ ],
1792
+ name: "exchange",
1793
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1794
+ stateMutability: "nonpayable",
1795
+ },
1796
+ {
1797
+ type: "function",
1798
+ inputs: [
1799
+ { name: "i", internalType: "uint256", type: "uint256" },
1800
+ { name: "j", internalType: "uint256", type: "uint256" },
1801
+ { name: "dx", internalType: "uint256", type: "uint256" },
1802
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1803
+ ],
1804
+ name: "exchange",
1805
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1806
+ stateMutability: "nonpayable",
1807
+ },
1808
+ {
1809
+ type: "function",
1810
+ inputs: [
1811
+ { name: "i", internalType: "uint256", type: "uint256" },
1812
+ { name: "j", internalType: "uint256", type: "uint256" },
1813
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1814
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1815
+ ],
1816
+ name: "exchange_diff",
1817
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1818
+ stateMutability: "nonpayable",
1819
+ },
1820
+ {
1821
+ type: "function",
1822
+ inputs: [
1823
+ { name: "i", internalType: "uint256", type: "uint256" },
1824
+ { name: "j", internalType: "uint256", type: "uint256" },
1825
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1826
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1827
+ ],
1828
+ name: "exchange_diff_underlying",
1829
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1830
+ stateMutability: "nonpayable",
1831
+ },
1832
+ {
1833
+ type: "function",
1834
+ inputs: [
1835
+ { name: "i", internalType: "uint256", type: "uint256" },
1836
+ { name: "j", internalType: "uint256", type: "uint256" },
1837
+ { name: "dx", internalType: "uint256", type: "uint256" },
1838
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1839
+ ],
1840
+ name: "exchange_underlying",
1841
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1842
+ stateMutability: "nonpayable",
1843
+ },
1844
+ {
1845
+ type: "function",
1846
+ inputs: [
1847
+ { name: "i", internalType: "int128", type: "int128" },
1848
+ { name: "j", internalType: "int128", type: "int128" },
1849
+ { name: "dx", internalType: "uint256", type: "uint256" },
1850
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
1851
+ ],
1852
+ name: "exchange_underlying",
1853
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1854
+ stateMutability: "nonpayable",
1855
+ },
1856
+ {
1857
+ type: "function",
1858
+ inputs: [],
1859
+ name: "lp_token",
1860
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1861
+ stateMutability: "view",
1862
+ },
1863
+ {
1864
+ type: "function",
1865
+ inputs: [],
1866
+ name: "metapoolBase",
1867
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1868
+ stateMutability: "view",
1869
+ },
1870
+ {
1871
+ type: "function",
1872
+ inputs: [],
1873
+ name: "nCoins",
1874
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1875
+ stateMutability: "view",
1876
+ },
1877
+ {
1878
+ type: "function",
1879
+ inputs: [
1880
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
1881
+ { name: "i", internalType: "uint256", type: "uint256" },
1882
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
1883
+ ],
1884
+ name: "remove_diff_liquidity_one_coin",
1885
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1886
+ stateMutability: "nonpayable",
1887
+ },
1888
+ {
1889
+ type: "function",
1890
+ inputs: [
1891
+ { name: "", internalType: "uint256", type: "uint256" },
1892
+ { name: "", internalType: "uint256[4]", type: "uint256[4]" },
1893
+ ],
1894
+ name: "remove_liquidity",
1895
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1896
+ stateMutability: "nonpayable",
1897
+ },
1898
+ {
1899
+ type: "function",
1900
+ inputs: [
1901
+ { name: "amounts", internalType: "uint256[4]", type: "uint256[4]" },
1902
+ { name: "", internalType: "uint256", type: "uint256" },
1903
+ ],
1904
+ name: "remove_liquidity_imbalance",
1905
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1906
+ stateMutability: "nonpayable",
1907
+ },
1908
+ {
1909
+ type: "function",
1910
+ inputs: [
1911
+ { name: "amount", internalType: "uint256", type: "uint256" },
1912
+ { name: "i", internalType: "int128", type: "int128" },
1913
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1914
+ ],
1915
+ name: "remove_liquidity_one_coin",
1916
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1917
+ stateMutability: "nonpayable",
1918
+ },
1919
+ {
1920
+ type: "function",
1921
+ inputs: [
1922
+ { name: "amount", internalType: "uint256", type: "uint256" },
1923
+ { name: "i", internalType: "uint256", type: "uint256" },
1924
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
1925
+ ],
1926
+ name: "remove_liquidity_one_coin",
1927
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
1928
+ stateMutability: "nonpayable",
1929
+ },
1930
+ {
1931
+ type: "function",
1932
+ inputs: [],
1933
+ name: "serialize",
1934
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
1935
+ stateMutability: "view",
1936
+ },
1937
+ {
1938
+ type: "function",
1939
+ inputs: [],
1940
+ name: "targetContract",
1941
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1942
+ stateMutability: "view",
1943
+ },
1944
+ {
1945
+ type: "function",
1946
+ inputs: [],
1947
+ name: "token",
1948
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1949
+ stateMutability: "view",
1950
+ },
1951
+ {
1952
+ type: "function",
1953
+ inputs: [],
1954
+ name: "token0",
1955
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1956
+ stateMutability: "view",
1957
+ },
1958
+ {
1959
+ type: "function",
1960
+ inputs: [],
1961
+ name: "token1",
1962
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1963
+ stateMutability: "view",
1964
+ },
1965
+ {
1966
+ type: "function",
1967
+ inputs: [],
1968
+ name: "token2",
1969
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1970
+ stateMutability: "view",
1971
+ },
1972
+ {
1973
+ type: "function",
1974
+ inputs: [],
1975
+ name: "token3",
1976
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1977
+ stateMutability: "view",
1978
+ },
1979
+ {
1980
+ type: "function",
1981
+ inputs: [],
1982
+ name: "underlying0",
1983
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1984
+ stateMutability: "view",
1985
+ },
1986
+ {
1987
+ type: "function",
1988
+ inputs: [],
1989
+ name: "underlying1",
1990
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1991
+ stateMutability: "view",
1992
+ },
1993
+ {
1994
+ type: "function",
1995
+ inputs: [],
1996
+ name: "underlying2",
1997
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1998
+ stateMutability: "view",
1999
+ },
2000
+ {
2001
+ type: "function",
2002
+ inputs: [],
2003
+ name: "underlying3",
2004
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2005
+ stateMutability: "view",
2006
+ },
2007
+ {
2008
+ type: "function",
2009
+ inputs: [],
2010
+ name: "use256",
2011
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2012
+ stateMutability: "view",
2013
+ },
2014
+ {
2015
+ type: "function",
2016
+ inputs: [],
2017
+ name: "version",
2018
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2019
+ stateMutability: "view",
2020
+ },
2021
+ ] as const;
2022
+
2023
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2024
+ // ICurveV1_StableNGAdapter
2025
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2026
+
2027
+ export const iCurveV1StableNgAdapterAbi = [
2028
+ {
2029
+ type: "function",
2030
+ inputs: [
2031
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
2032
+ { name: "i", internalType: "uint256", type: "uint256" },
2033
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
2034
+ ],
2035
+ name: "add_diff_liquidity_one_coin",
2036
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2037
+ stateMutability: "nonpayable",
2038
+ },
2039
+ {
2040
+ type: "function",
2041
+ inputs: [
2042
+ { name: "amounts", internalType: "uint256[]", type: "uint256[]" },
2043
+ { name: "", internalType: "uint256", type: "uint256" },
2044
+ ],
2045
+ name: "add_liquidity",
2046
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2047
+ stateMutability: "nonpayable",
2048
+ },
2049
+ {
2050
+ type: "function",
2051
+ inputs: [
2052
+ { name: "amount", internalType: "uint256", type: "uint256" },
2053
+ { name: "i", internalType: "uint256", type: "uint256" },
2054
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
2055
+ ],
2056
+ name: "add_liquidity_one_coin",
2057
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2058
+ stateMutability: "nonpayable",
2059
+ },
2060
+ {
2061
+ type: "function",
2062
+ inputs: [
2063
+ { name: "amount", internalType: "uint256", type: "uint256" },
2064
+ { name: "i", internalType: "uint256", type: "uint256" },
2065
+ ],
2066
+ name: "calc_add_one_coin",
2067
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2068
+ stateMutability: "view",
2069
+ },
2070
+ {
2071
+ type: "function",
2072
+ inputs: [],
2073
+ name: "contractType",
2074
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2075
+ stateMutability: "view",
2076
+ },
2077
+ {
2078
+ type: "function",
2079
+ inputs: [],
2080
+ name: "creditManager",
2081
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2082
+ stateMutability: "view",
2083
+ },
2084
+ {
2085
+ type: "function",
2086
+ inputs: [
2087
+ { name: "i", internalType: "int128", type: "int128" },
2088
+ { name: "j", internalType: "int128", type: "int128" },
2089
+ { name: "dx", internalType: "uint256", type: "uint256" },
2090
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
2091
+ ],
2092
+ name: "exchange",
2093
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2094
+ stateMutability: "nonpayable",
2095
+ },
2096
+ {
2097
+ type: "function",
2098
+ inputs: [
2099
+ { name: "i", internalType: "uint256", type: "uint256" },
2100
+ { name: "j", internalType: "uint256", type: "uint256" },
2101
+ { name: "dx", internalType: "uint256", type: "uint256" },
2102
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
2103
+ ],
2104
+ name: "exchange",
2105
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2106
+ stateMutability: "nonpayable",
2107
+ },
2108
+ {
2109
+ type: "function",
2110
+ inputs: [
2111
+ { name: "i", internalType: "uint256", type: "uint256" },
2112
+ { name: "j", internalType: "uint256", type: "uint256" },
2113
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
2114
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
2115
+ ],
2116
+ name: "exchange_diff",
2117
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2118
+ stateMutability: "nonpayable",
2119
+ },
2120
+ {
2121
+ type: "function",
2122
+ inputs: [
2123
+ { name: "i", internalType: "uint256", type: "uint256" },
2124
+ { name: "j", internalType: "uint256", type: "uint256" },
2125
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
2126
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
2127
+ ],
2128
+ name: "exchange_diff_underlying",
2129
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2130
+ stateMutability: "nonpayable",
2131
+ },
2132
+ {
2133
+ type: "function",
2134
+ inputs: [
2135
+ { name: "i", internalType: "uint256", type: "uint256" },
2136
+ { name: "j", internalType: "uint256", type: "uint256" },
2137
+ { name: "dx", internalType: "uint256", type: "uint256" },
2138
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
2139
+ ],
2140
+ name: "exchange_underlying",
2141
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2142
+ stateMutability: "nonpayable",
2143
+ },
2144
+ {
2145
+ type: "function",
2146
+ inputs: [
2147
+ { name: "i", internalType: "int128", type: "int128" },
2148
+ { name: "j", internalType: "int128", type: "int128" },
2149
+ { name: "dx", internalType: "uint256", type: "uint256" },
2150
+ { name: "min_dy", internalType: "uint256", type: "uint256" },
2151
+ ],
2152
+ name: "exchange_underlying",
2153
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2154
+ stateMutability: "nonpayable",
2155
+ },
2156
+ {
2157
+ type: "function",
2158
+ inputs: [],
2159
+ name: "lp_token",
2160
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2161
+ stateMutability: "view",
2162
+ },
2163
+ {
2164
+ type: "function",
2165
+ inputs: [],
2166
+ name: "metapoolBase",
2167
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2168
+ stateMutability: "view",
2169
+ },
2170
+ {
2171
+ type: "function",
2172
+ inputs: [],
2173
+ name: "nCoins",
2174
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2175
+ stateMutability: "view",
2176
+ },
2177
+ {
2178
+ type: "function",
2179
+ inputs: [
2180
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
2181
+ { name: "i", internalType: "uint256", type: "uint256" },
2182
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
2183
+ ],
2184
+ name: "remove_diff_liquidity_one_coin",
2185
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2186
+ stateMutability: "nonpayable",
2187
+ },
2188
+ {
2189
+ type: "function",
2190
+ inputs: [
2191
+ { name: "", internalType: "uint256", type: "uint256" },
2192
+ { name: "", internalType: "uint256[]", type: "uint256[]" },
2193
+ ],
2194
+ name: "remove_liquidity",
2195
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2196
+ stateMutability: "nonpayable",
2197
+ },
2198
+ {
2199
+ type: "function",
2200
+ inputs: [
2201
+ { name: "amounts", internalType: "uint256[]", type: "uint256[]" },
2202
+ { name: "", internalType: "uint256", type: "uint256" },
2203
+ ],
2204
+ name: "remove_liquidity_imbalance",
2205
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2206
+ stateMutability: "nonpayable",
2207
+ },
2208
+ {
2209
+ type: "function",
2210
+ inputs: [
2211
+ { name: "amount", internalType: "uint256", type: "uint256" },
2212
+ { name: "i", internalType: "int128", type: "int128" },
2213
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
2214
+ ],
2215
+ name: "remove_liquidity_one_coin",
2216
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2217
+ stateMutability: "nonpayable",
2218
+ },
2219
+ {
2220
+ type: "function",
2221
+ inputs: [
2222
+ { name: "amount", internalType: "uint256", type: "uint256" },
2223
+ { name: "i", internalType: "uint256", type: "uint256" },
2224
+ { name: "minAmount", internalType: "uint256", type: "uint256" },
2225
+ ],
2226
+ name: "remove_liquidity_one_coin",
2227
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2228
+ stateMutability: "nonpayable",
2229
+ },
2230
+ {
2231
+ type: "function",
2232
+ inputs: [],
2233
+ name: "serialize",
2234
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
2235
+ stateMutability: "view",
2236
+ },
2237
+ {
2238
+ type: "function",
2239
+ inputs: [],
2240
+ name: "targetContract",
2241
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2242
+ stateMutability: "view",
2243
+ },
2244
+ {
2245
+ type: "function",
2246
+ inputs: [],
2247
+ name: "token",
2248
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2249
+ stateMutability: "view",
2250
+ },
2251
+ {
2252
+ type: "function",
2253
+ inputs: [],
2254
+ name: "token0",
2255
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2256
+ stateMutability: "view",
2257
+ },
2258
+ {
2259
+ type: "function",
2260
+ inputs: [],
2261
+ name: "token1",
2262
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2263
+ stateMutability: "view",
2264
+ },
2265
+ {
2266
+ type: "function",
2267
+ inputs: [],
2268
+ name: "token2",
2269
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2270
+ stateMutability: "view",
2271
+ },
2272
+ {
2273
+ type: "function",
2274
+ inputs: [],
2275
+ name: "token3",
2276
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2277
+ stateMutability: "view",
2278
+ },
2279
+ {
2280
+ type: "function",
2281
+ inputs: [],
2282
+ name: "underlying0",
2283
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2284
+ stateMutability: "view",
2285
+ },
2286
+ {
2287
+ type: "function",
2288
+ inputs: [],
2289
+ name: "underlying1",
2290
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2291
+ stateMutability: "view",
2292
+ },
2293
+ {
2294
+ type: "function",
2295
+ inputs: [],
2296
+ name: "underlying2",
2297
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2298
+ stateMutability: "view",
2299
+ },
2300
+ {
2301
+ type: "function",
2302
+ inputs: [],
2303
+ name: "underlying3",
2304
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2305
+ stateMutability: "view",
2306
+ },
2307
+ {
2308
+ type: "function",
2309
+ inputs: [],
2310
+ name: "use256",
2311
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2312
+ stateMutability: "view",
2313
+ },
2314
+ {
2315
+ type: "function",
2316
+ inputs: [],
2317
+ name: "version",
2318
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2319
+ stateMutability: "view",
2320
+ },
2321
+ ] as const;
2322
+
2323
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2324
+ // IDaiUsdsAdapter
2325
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2326
+
2327
+ export const iDaiUsdsAdapterAbi = [
2328
+ {
2329
+ type: "function",
2330
+ inputs: [],
2331
+ name: "contractType",
2332
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2333
+ stateMutability: "view",
2334
+ },
2335
+ {
2336
+ type: "function",
2337
+ inputs: [],
2338
+ name: "creditManager",
2339
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2340
+ stateMutability: "view",
2341
+ },
2342
+ {
2343
+ type: "function",
2344
+ inputs: [],
2345
+ name: "dai",
2346
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2347
+ stateMutability: "view",
2348
+ },
2349
+ {
2350
+ type: "function",
2351
+ inputs: [
2352
+ { name: "", internalType: "address", type: "address" },
2353
+ { name: "", internalType: "uint256", type: "uint256" },
2354
+ ],
2355
+ name: "daiToUsds",
2356
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2357
+ stateMutability: "nonpayable",
2358
+ },
2359
+ {
2360
+ type: "function",
2361
+ inputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2362
+ name: "daiToUsdsDiff",
2363
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2364
+ stateMutability: "nonpayable",
2365
+ },
2366
+ {
2367
+ type: "function",
2368
+ inputs: [],
2369
+ name: "serialize",
2370
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
2371
+ stateMutability: "view",
2372
+ },
2373
+ {
2374
+ type: "function",
2375
+ inputs: [],
2376
+ name: "targetContract",
2377
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2378
+ stateMutability: "view",
2379
+ },
2380
+ {
2381
+ type: "function",
2382
+ inputs: [],
2383
+ name: "usds",
2384
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2385
+ stateMutability: "view",
2386
+ },
2387
+ {
2388
+ type: "function",
2389
+ inputs: [
2390
+ { name: "", internalType: "address", type: "address" },
2391
+ { name: "", internalType: "uint256", type: "uint256" },
2392
+ ],
2393
+ name: "usdsToDai",
2394
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2395
+ stateMutability: "nonpayable",
2396
+ },
2397
+ {
2398
+ type: "function",
2399
+ inputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2400
+ name: "usdsToDaiDiff",
2401
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2402
+ stateMutability: "nonpayable",
2403
+ },
2404
+ {
2405
+ type: "function",
2406
+ inputs: [],
2407
+ name: "version",
2408
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2409
+ stateMutability: "view",
2410
+ },
2411
+ ] as const;
2412
+
2413
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2414
+ // IERC4626Adapter
2415
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2416
+
2417
+ export const ierc4626AdapterAbi = [
2418
+ {
2419
+ type: "function",
2420
+ inputs: [],
2421
+ name: "asset",
2422
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2423
+ stateMutability: "view",
2424
+ },
2425
+ {
2426
+ type: "function",
2427
+ inputs: [],
2428
+ name: "contractType",
2429
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2430
+ stateMutability: "view",
2431
+ },
2432
+ {
2433
+ type: "function",
2434
+ inputs: [],
2435
+ name: "creditManager",
2436
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2437
+ stateMutability: "view",
2438
+ },
2439
+ {
2440
+ type: "function",
2441
+ inputs: [
2442
+ { name: "assets", internalType: "uint256", type: "uint256" },
2443
+ { name: "", internalType: "address", type: "address" },
2444
+ ],
2445
+ name: "deposit",
2446
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2447
+ stateMutability: "nonpayable",
2448
+ },
2449
+ {
2450
+ type: "function",
2451
+ inputs: [
2452
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
2453
+ ],
2454
+ name: "depositDiff",
2455
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2456
+ stateMutability: "nonpayable",
2457
+ },
2458
+ {
2459
+ type: "function",
2460
+ inputs: [
2461
+ { name: "shares", internalType: "uint256", type: "uint256" },
2462
+ { name: "", internalType: "address", type: "address" },
2463
+ ],
2464
+ name: "mint",
2465
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2466
+ stateMutability: "nonpayable",
2467
+ },
2468
+ {
2469
+ type: "function",
2470
+ inputs: [
2471
+ { name: "shares", internalType: "uint256", type: "uint256" },
2472
+ { name: "", internalType: "address", type: "address" },
2473
+ { name: "", internalType: "address", type: "address" },
2474
+ ],
2475
+ name: "redeem",
2476
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2477
+ stateMutability: "nonpayable",
2478
+ },
2479
+ {
2480
+ type: "function",
2481
+ inputs: [
2482
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
2483
+ ],
2484
+ name: "redeemDiff",
2485
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2486
+ stateMutability: "nonpayable",
2487
+ },
2488
+ {
2489
+ type: "function",
2490
+ inputs: [],
2491
+ name: "serialize",
2492
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
2493
+ stateMutability: "view",
2494
+ },
2495
+ {
2496
+ type: "function",
2497
+ inputs: [],
2498
+ name: "targetContract",
2499
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2500
+ stateMutability: "view",
2501
+ },
2502
+ {
2503
+ type: "function",
2504
+ inputs: [],
2505
+ name: "version",
2506
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2507
+ stateMutability: "view",
2508
+ },
2509
+ {
2510
+ type: "function",
2511
+ inputs: [
2512
+ { name: "assets", internalType: "uint256", type: "uint256" },
2513
+ { name: "", internalType: "address", type: "address" },
2514
+ { name: "", internalType: "address", type: "address" },
2515
+ ],
2516
+ name: "withdraw",
2517
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2518
+ stateMutability: "nonpayable",
2519
+ },
2520
+ ] as const;
2521
+
2522
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2523
+ // IEqualizerRouterAdapter
2524
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2525
+
2526
+ export const iEqualizerRouterAdapterAbi = [
2527
+ {
2528
+ type: "function",
2529
+ inputs: [],
2530
+ name: "contractType",
2531
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2532
+ stateMutability: "view",
2533
+ },
2534
+ {
2535
+ type: "function",
2536
+ inputs: [],
2537
+ name: "creditManager",
2538
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2539
+ stateMutability: "view",
2540
+ },
2541
+ {
2542
+ type: "function",
2543
+ inputs: [
2544
+ { name: "token0", internalType: "address", type: "address" },
2545
+ { name: "token1", internalType: "address", type: "address" },
2546
+ { name: "stable", internalType: "bool", type: "bool" },
2547
+ ],
2548
+ name: "isPoolAllowed",
2549
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2550
+ stateMutability: "view",
2551
+ },
2552
+ {
2553
+ type: "function",
2554
+ inputs: [],
2555
+ name: "serialize",
2556
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
2557
+ stateMutability: "view",
2558
+ },
2559
+ {
2560
+ type: "function",
2561
+ inputs: [
2562
+ {
2563
+ name: "pools",
2564
+ internalType: "struct EqualizerPoolStatus[]",
2565
+ type: "tuple[]",
2566
+ components: [
2567
+ { name: "token0", internalType: "address", type: "address" },
2568
+ { name: "token1", internalType: "address", type: "address" },
2569
+ { name: "stable", internalType: "bool", type: "bool" },
2570
+ { name: "allowed", internalType: "bool", type: "bool" },
2571
+ ],
2572
+ },
2573
+ ],
2574
+ name: "setPoolStatusBatch",
2575
+ outputs: [],
2576
+ stateMutability: "nonpayable",
2577
+ },
2578
+ {
2579
+ type: "function",
2580
+ inputs: [
2581
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
2582
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
2583
+ {
2584
+ name: "routes",
2585
+ internalType: "struct Route[]",
2586
+ type: "tuple[]",
2587
+ components: [
2588
+ { name: "from", internalType: "address", type: "address" },
2589
+ { name: "to", internalType: "address", type: "address" },
2590
+ { name: "stable", internalType: "bool", type: "bool" },
2591
+ ],
2592
+ },
2593
+ { name: "deadline", internalType: "uint256", type: "uint256" },
2594
+ ],
2595
+ name: "swapDiffTokensForTokens",
2596
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2597
+ stateMutability: "nonpayable",
2598
+ },
2599
+ {
2600
+ type: "function",
2601
+ inputs: [
2602
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
2603
+ { name: "amountOutMin", internalType: "uint256", type: "uint256" },
2604
+ {
2605
+ name: "routes",
2606
+ internalType: "struct Route[]",
2607
+ type: "tuple[]",
2608
+ components: [
2609
+ { name: "from", internalType: "address", type: "address" },
2610
+ { name: "to", internalType: "address", type: "address" },
2611
+ { name: "stable", internalType: "bool", type: "bool" },
2612
+ ],
2613
+ },
2614
+ { name: "", internalType: "address", type: "address" },
2615
+ { name: "deadline", internalType: "uint256", type: "uint256" },
2616
+ ],
2617
+ name: "swapExactTokensForTokens",
2618
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2619
+ stateMutability: "nonpayable",
2620
+ },
2621
+ {
2622
+ type: "function",
2623
+ inputs: [],
2624
+ name: "targetContract",
2625
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2626
+ stateMutability: "view",
2627
+ },
2628
+ {
2629
+ type: "function",
2630
+ inputs: [],
2631
+ name: "version",
2632
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2633
+ stateMutability: "view",
2634
+ },
2635
+ {
2636
+ type: "event",
2637
+ anonymous: false,
2638
+ inputs: [
2639
+ {
2640
+ name: "token0",
2641
+ internalType: "address",
2642
+ type: "address",
2643
+ indexed: true,
2644
+ },
2645
+ {
2646
+ name: "token1",
2647
+ internalType: "address",
2648
+ type: "address",
2649
+ indexed: true,
2650
+ },
2651
+ { name: "stable", internalType: "bool", type: "bool", indexed: false },
2652
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
2653
+ ],
2654
+ name: "SetPoolStatus",
2655
+ },
2656
+ { type: "error", inputs: [], name: "InvalidPathException" },
2657
+ ] as const;
2658
+
2659
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2660
+ // ILidoV1Adapter
2661
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2662
+
2663
+ export const iLidoV1AdapterAbi = [
2664
+ {
2665
+ type: "function",
2666
+ inputs: [],
2667
+ name: "contractType",
2668
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2669
+ stateMutability: "view",
2670
+ },
2671
+ {
2672
+ type: "function",
2673
+ inputs: [],
2674
+ name: "creditManager",
2675
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2676
+ stateMutability: "view",
2677
+ },
2678
+ {
2679
+ type: "function",
2680
+ inputs: [],
2681
+ name: "serialize",
2682
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
2683
+ stateMutability: "view",
2684
+ },
2685
+ {
2686
+ type: "function",
2687
+ inputs: [],
2688
+ name: "stETH",
2689
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2690
+ stateMutability: "view",
2691
+ },
2692
+ {
2693
+ type: "function",
2694
+ inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
2695
+ name: "submit",
2696
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2697
+ stateMutability: "nonpayable",
2698
+ },
2699
+ {
2700
+ type: "function",
2701
+ inputs: [
2702
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
2703
+ ],
2704
+ name: "submitDiff",
2705
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2706
+ stateMutability: "nonpayable",
2707
+ },
2708
+ {
2709
+ type: "function",
2710
+ inputs: [],
2711
+ name: "targetContract",
2712
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2713
+ stateMutability: "view",
2714
+ },
2715
+ {
2716
+ type: "function",
2717
+ inputs: [],
2718
+ name: "treasury",
2719
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2720
+ stateMutability: "view",
2721
+ },
2722
+ {
2723
+ type: "function",
2724
+ inputs: [],
2725
+ name: "version",
2726
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2727
+ stateMutability: "view",
2728
+ },
2729
+ {
2730
+ type: "function",
2731
+ inputs: [],
2732
+ name: "weth",
2733
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2734
+ stateMutability: "view",
2735
+ },
2736
+ ] as const;
2737
+
2738
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2739
+ // IMellowVaultAdapter
2740
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2741
+
2742
+ export const iMellowVaultAdapterAbi = [
2743
+ {
2744
+ type: "function",
2745
+ inputs: [],
2746
+ name: "allowedUnderlyings",
2747
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
2748
+ stateMutability: "view",
2749
+ },
2750
+ {
2751
+ type: "function",
2752
+ inputs: [],
2753
+ name: "contractType",
2754
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2755
+ stateMutability: "view",
2756
+ },
2757
+ {
2758
+ type: "function",
2759
+ inputs: [],
2760
+ name: "creditManager",
2761
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2762
+ stateMutability: "view",
2763
+ },
2764
+ {
2765
+ type: "function",
2766
+ inputs: [
2767
+ { name: "", internalType: "address", type: "address" },
2768
+ { name: "amounts", internalType: "uint256[]", type: "uint256[]" },
2769
+ { name: "minLpAmount", internalType: "uint256", type: "uint256" },
2770
+ { name: "deadline", internalType: "uint256", type: "uint256" },
2771
+ ],
2772
+ name: "deposit",
2773
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2774
+ stateMutability: "nonpayable",
2775
+ },
2776
+ {
2777
+ type: "function",
2778
+ inputs: [
2779
+ { name: "asset", internalType: "address", type: "address" },
2780
+ { name: "amount", internalType: "uint256", type: "uint256" },
2781
+ { name: "minLpAmount", internalType: "uint256", type: "uint256" },
2782
+ { name: "deadline", internalType: "uint256", type: "uint256" },
2783
+ ],
2784
+ name: "depositOneAsset",
2785
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2786
+ stateMutability: "nonpayable",
2787
+ },
2788
+ {
2789
+ type: "function",
2790
+ inputs: [
2791
+ { name: "asset", internalType: "address", type: "address" },
2792
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
2793
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
2794
+ { name: "deadline", internalType: "uint256", type: "uint256" },
2795
+ ],
2796
+ name: "depositOneAssetDiff",
2797
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2798
+ stateMutability: "nonpayable",
2799
+ },
2800
+ {
2801
+ type: "function",
2802
+ inputs: [],
2803
+ name: "serialize",
2804
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
2805
+ stateMutability: "view",
2806
+ },
2807
+ {
2808
+ type: "function",
2809
+ inputs: [
2810
+ {
2811
+ name: "underlyings",
2812
+ internalType: "struct MellowUnderlyingStatus[]",
2813
+ type: "tuple[]",
2814
+ components: [
2815
+ { name: "underlying", internalType: "address", type: "address" },
2816
+ { name: "allowed", internalType: "bool", type: "bool" },
2817
+ ],
2818
+ },
2819
+ ],
2820
+ name: "setUnderlyingStatusBatch",
2821
+ outputs: [],
2822
+ stateMutability: "nonpayable",
2823
+ },
2824
+ {
2825
+ type: "function",
2826
+ inputs: [],
2827
+ name: "targetContract",
2828
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2829
+ stateMutability: "view",
2830
+ },
2831
+ {
2832
+ type: "function",
2833
+ inputs: [],
2834
+ name: "version",
2835
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2836
+ stateMutability: "view",
2837
+ },
2838
+ {
2839
+ type: "event",
2840
+ anonymous: false,
2841
+ inputs: [
2842
+ {
2843
+ name: "token",
2844
+ internalType: "address",
2845
+ type: "address",
2846
+ indexed: true,
2847
+ },
2848
+ { name: "newStatus", internalType: "bool", type: "bool", indexed: false },
2849
+ ],
2850
+ name: "SetUnderlyingStatus",
2851
+ },
2852
+ { type: "error", inputs: [], name: "IncorrectArrayLengthException" },
2853
+ {
2854
+ type: "error",
2855
+ inputs: [{ name: "asset", internalType: "address", type: "address" }],
2856
+ name: "UnderlyingNotAllowedException",
2857
+ },
2858
+ {
2859
+ type: "error",
2860
+ inputs: [{ name: "asset", internalType: "address", type: "address" }],
2861
+ name: "UnderlyingNotFoundException",
2862
+ },
2863
+ ] as const;
2864
+
2865
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2866
+ // IMellowVaultAdapterEvents
2867
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2868
+
2869
+ export const iMellowVaultAdapterEventsAbi = [
2870
+ {
2871
+ type: "event",
2872
+ anonymous: false,
2873
+ inputs: [
2874
+ {
2875
+ name: "token",
2876
+ internalType: "address",
2877
+ type: "address",
2878
+ indexed: true,
2879
+ },
2880
+ { name: "newStatus", internalType: "bool", type: "bool", indexed: false },
2881
+ ],
2882
+ name: "SetUnderlyingStatus",
2883
+ },
2884
+ ] as const;
2885
+
2886
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2887
+ // IMellowVaultAdapterExceptions
2888
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2889
+
2890
+ export const iMellowVaultAdapterExceptionsAbi = [
2891
+ { type: "error", inputs: [], name: "IncorrectArrayLengthException" },
2892
+ {
2893
+ type: "error",
2894
+ inputs: [{ name: "asset", internalType: "address", type: "address" }],
2895
+ name: "UnderlyingNotAllowedException",
2896
+ },
2897
+ {
2898
+ type: "error",
2899
+ inputs: [{ name: "asset", internalType: "address", type: "address" }],
2900
+ name: "UnderlyingNotFoundException",
2901
+ },
2902
+ ] as const;
2903
+
2904
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2905
+ // IPendleRouterAdapter
2906
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2907
+
2908
+ export const iPendleRouterAdapterAbi = [
2909
+ {
2910
+ type: "function",
2911
+ inputs: [],
2912
+ name: "contractType",
2913
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2914
+ stateMutability: "view",
2915
+ },
2916
+ {
2917
+ type: "function",
2918
+ inputs: [],
2919
+ name: "creditManager",
2920
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2921
+ stateMutability: "view",
2922
+ },
2923
+ {
2924
+ type: "function",
2925
+ inputs: [],
2926
+ name: "getAllowedPairs",
2927
+ outputs: [
2928
+ {
2929
+ name: "pairs",
2930
+ internalType: "struct PendlePairStatus[]",
2931
+ type: "tuple[]",
2932
+ components: [
2933
+ { name: "market", internalType: "address", type: "address" },
2934
+ { name: "inputToken", internalType: "address", type: "address" },
2935
+ { name: "pendleToken", internalType: "address", type: "address" },
2936
+ { name: "status", internalType: "enum PendleStatus", type: "uint8" },
2937
+ ],
2938
+ },
2939
+ ],
2940
+ stateMutability: "view",
2941
+ },
2942
+ {
2943
+ type: "function",
2944
+ inputs: [
2945
+ { name: "market", internalType: "address", type: "address" },
2946
+ { name: "inputToken", internalType: "address", type: "address" },
2947
+ { name: "pendleToken", internalType: "address", type: "address" },
2948
+ ],
2949
+ name: "isPairAllowed",
2950
+ outputs: [
2951
+ { name: "status", internalType: "enum PendleStatus", type: "uint8" },
2952
+ ],
2953
+ stateMutability: "view",
2954
+ },
2955
+ {
2956
+ type: "function",
2957
+ inputs: [{ name: "pt", internalType: "address", type: "address" }],
2958
+ name: "ptToMarket",
2959
+ outputs: [{ name: "market", internalType: "address", type: "address" }],
2960
+ stateMutability: "view",
2961
+ },
2962
+ {
2963
+ type: "function",
2964
+ inputs: [
2965
+ { name: "yt", internalType: "address", type: "address" },
2966
+ { name: "leftoverPt", internalType: "uint256", type: "uint256" },
2967
+ {
2968
+ name: "output",
2969
+ internalType: "struct TokenDiffOutput",
2970
+ type: "tuple",
2971
+ components: [
2972
+ { name: "tokenOut", internalType: "address", type: "address" },
2973
+ { name: "minRateRAY", internalType: "uint256", type: "uint256" },
2974
+ ],
2975
+ },
2976
+ ],
2977
+ name: "redeemDiffPyToToken",
2978
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
2979
+ stateMutability: "nonpayable",
2980
+ },
2981
+ {
2982
+ type: "function",
2983
+ inputs: [
2984
+ { name: "receiver", internalType: "address", type: "address" },
2985
+ { name: "yt", internalType: "address", type: "address" },
2986
+ { name: "netPyIn", internalType: "uint256", type: "uint256" },
2987
+ {
2988
+ name: "output",
2989
+ internalType: "struct TokenOutput",
2990
+ type: "tuple",
2991
+ components: [
2992
+ { name: "tokenOut", internalType: "address", type: "address" },
2993
+ { name: "minTokenOut", internalType: "uint256", type: "uint256" },
2994
+ { name: "tokenRedeemSy", internalType: "address", type: "address" },
2995
+ { name: "pendleSwap", internalType: "address", type: "address" },
2996
+ {
2997
+ name: "swapData",
2998
+ internalType: "struct SwapData",
2999
+ type: "tuple",
3000
+ components: [
3001
+ {
3002
+ name: "swapType",
3003
+ internalType: "enum SwapType",
3004
+ type: "uint8",
3005
+ },
3006
+ { name: "extRouter", internalType: "address", type: "address" },
3007
+ { name: "extCalldata", internalType: "bytes", type: "bytes" },
3008
+ { name: "needScale", internalType: "bool", type: "bool" },
3009
+ ],
3010
+ },
3011
+ ],
3012
+ },
3013
+ ],
3014
+ name: "redeemPyToToken",
3015
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3016
+ stateMutability: "nonpayable",
3017
+ },
3018
+ {
3019
+ type: "function",
3020
+ inputs: [],
3021
+ name: "serialize",
3022
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
3023
+ stateMutability: "view",
3024
+ },
3025
+ {
3026
+ type: "function",
3027
+ inputs: [
3028
+ {
3029
+ name: "pairs",
3030
+ internalType: "struct PendlePairStatus[]",
3031
+ type: "tuple[]",
3032
+ components: [
3033
+ { name: "market", internalType: "address", type: "address" },
3034
+ { name: "inputToken", internalType: "address", type: "address" },
3035
+ { name: "pendleToken", internalType: "address", type: "address" },
3036
+ { name: "status", internalType: "enum PendleStatus", type: "uint8" },
3037
+ ],
3038
+ },
3039
+ ],
3040
+ name: "setPairStatusBatch",
3041
+ outputs: [],
3042
+ stateMutability: "nonpayable",
3043
+ },
3044
+ {
3045
+ type: "function",
3046
+ inputs: [
3047
+ { name: "market", internalType: "address", type: "address" },
3048
+ { name: "leftoverPt", internalType: "uint256", type: "uint256" },
3049
+ {
3050
+ name: "diffOutput",
3051
+ internalType: "struct TokenDiffOutput",
3052
+ type: "tuple",
3053
+ components: [
3054
+ { name: "tokenOut", internalType: "address", type: "address" },
3055
+ { name: "minRateRAY", internalType: "uint256", type: "uint256" },
3056
+ ],
3057
+ },
3058
+ ],
3059
+ name: "swapDiffPtForToken",
3060
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3061
+ stateMutability: "nonpayable",
3062
+ },
3063
+ {
3064
+ type: "function",
3065
+ inputs: [
3066
+ { name: "market", internalType: "address", type: "address" },
3067
+ { name: "minRateRAY", internalType: "uint256", type: "uint256" },
3068
+ {
3069
+ name: "guessPtOut",
3070
+ internalType: "struct ApproxParams",
3071
+ type: "tuple",
3072
+ components: [
3073
+ { name: "guessMin", internalType: "uint256", type: "uint256" },
3074
+ { name: "guessMax", internalType: "uint256", type: "uint256" },
3075
+ { name: "guessOffchain", internalType: "uint256", type: "uint256" },
3076
+ { name: "maxIteration", internalType: "uint256", type: "uint256" },
3077
+ { name: "eps", internalType: "uint256", type: "uint256" },
3078
+ ],
3079
+ },
3080
+ {
3081
+ name: "diffInput",
3082
+ internalType: "struct TokenDiffInput",
3083
+ type: "tuple",
3084
+ components: [
3085
+ { name: "tokenIn", internalType: "address", type: "address" },
3086
+ { name: "leftoverTokenIn", internalType: "uint256", type: "uint256" },
3087
+ ],
3088
+ },
3089
+ ],
3090
+ name: "swapDiffTokenForPt",
3091
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3092
+ stateMutability: "nonpayable",
3093
+ },
3094
+ {
3095
+ type: "function",
3096
+ inputs: [
3097
+ { name: "receiver", internalType: "address", type: "address" },
3098
+ { name: "market", internalType: "address", type: "address" },
3099
+ { name: "exactPtIn", internalType: "uint256", type: "uint256" },
3100
+ {
3101
+ name: "output",
3102
+ internalType: "struct TokenOutput",
3103
+ type: "tuple",
3104
+ components: [
3105
+ { name: "tokenOut", internalType: "address", type: "address" },
3106
+ { name: "minTokenOut", internalType: "uint256", type: "uint256" },
3107
+ { name: "tokenRedeemSy", internalType: "address", type: "address" },
3108
+ { name: "pendleSwap", internalType: "address", type: "address" },
3109
+ {
3110
+ name: "swapData",
3111
+ internalType: "struct SwapData",
3112
+ type: "tuple",
3113
+ components: [
3114
+ {
3115
+ name: "swapType",
3116
+ internalType: "enum SwapType",
3117
+ type: "uint8",
3118
+ },
3119
+ { name: "extRouter", internalType: "address", type: "address" },
3120
+ { name: "extCalldata", internalType: "bytes", type: "bytes" },
3121
+ { name: "needScale", internalType: "bool", type: "bool" },
3122
+ ],
3123
+ },
3124
+ ],
3125
+ },
3126
+ {
3127
+ name: "limit",
3128
+ internalType: "struct LimitOrderData",
3129
+ type: "tuple",
3130
+ components: [
3131
+ { name: "limitRouter", internalType: "address", type: "address" },
3132
+ { name: "epsSkipMarket", internalType: "uint256", type: "uint256" },
3133
+ {
3134
+ name: "normalFills",
3135
+ internalType: "struct FillOrderParams[]",
3136
+ type: "tuple[]",
3137
+ components: [
3138
+ {
3139
+ name: "order",
3140
+ internalType: "struct Order",
3141
+ type: "tuple",
3142
+ components: [
3143
+ { name: "salt", internalType: "uint256", type: "uint256" },
3144
+ { name: "expiry", internalType: "uint256", type: "uint256" },
3145
+ { name: "nonce", internalType: "uint256", type: "uint256" },
3146
+ {
3147
+ name: "orderType",
3148
+ internalType: "enum OrderType",
3149
+ type: "uint8",
3150
+ },
3151
+ { name: "token", internalType: "address", type: "address" },
3152
+ { name: "YT", internalType: "address", type: "address" },
3153
+ { name: "maker", internalType: "address", type: "address" },
3154
+ {
3155
+ name: "receiver",
3156
+ internalType: "address",
3157
+ type: "address",
3158
+ },
3159
+ {
3160
+ name: "makingAmount",
3161
+ internalType: "uint256",
3162
+ type: "uint256",
3163
+ },
3164
+ {
3165
+ name: "lnImpliedRate",
3166
+ internalType: "uint256",
3167
+ type: "uint256",
3168
+ },
3169
+ {
3170
+ name: "failSafeRate",
3171
+ internalType: "uint256",
3172
+ type: "uint256",
3173
+ },
3174
+ { name: "permit", internalType: "bytes", type: "bytes" },
3175
+ ],
3176
+ },
3177
+ { name: "signature", internalType: "bytes", type: "bytes" },
3178
+ {
3179
+ name: "makingAmount",
3180
+ internalType: "uint256",
3181
+ type: "uint256",
3182
+ },
3183
+ ],
3184
+ },
3185
+ {
3186
+ name: "flashFills",
3187
+ internalType: "struct FillOrderParams[]",
3188
+ type: "tuple[]",
3189
+ components: [
3190
+ {
3191
+ name: "order",
3192
+ internalType: "struct Order",
3193
+ type: "tuple",
3194
+ components: [
3195
+ { name: "salt", internalType: "uint256", type: "uint256" },
3196
+ { name: "expiry", internalType: "uint256", type: "uint256" },
3197
+ { name: "nonce", internalType: "uint256", type: "uint256" },
3198
+ {
3199
+ name: "orderType",
3200
+ internalType: "enum OrderType",
3201
+ type: "uint8",
3202
+ },
3203
+ { name: "token", internalType: "address", type: "address" },
3204
+ { name: "YT", internalType: "address", type: "address" },
3205
+ { name: "maker", internalType: "address", type: "address" },
3206
+ {
3207
+ name: "receiver",
3208
+ internalType: "address",
3209
+ type: "address",
3210
+ },
3211
+ {
3212
+ name: "makingAmount",
3213
+ internalType: "uint256",
3214
+ type: "uint256",
3215
+ },
3216
+ {
3217
+ name: "lnImpliedRate",
3218
+ internalType: "uint256",
3219
+ type: "uint256",
3220
+ },
3221
+ {
3222
+ name: "failSafeRate",
3223
+ internalType: "uint256",
3224
+ type: "uint256",
3225
+ },
3226
+ { name: "permit", internalType: "bytes", type: "bytes" },
3227
+ ],
3228
+ },
3229
+ { name: "signature", internalType: "bytes", type: "bytes" },
3230
+ {
3231
+ name: "makingAmount",
3232
+ internalType: "uint256",
3233
+ type: "uint256",
3234
+ },
3235
+ ],
3236
+ },
3237
+ { name: "optData", internalType: "bytes", type: "bytes" },
3238
+ ],
3239
+ },
3240
+ ],
3241
+ name: "swapExactPtForToken",
3242
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3243
+ stateMutability: "nonpayable",
3244
+ },
3245
+ {
3246
+ type: "function",
3247
+ inputs: [
3248
+ { name: "receiver", internalType: "address", type: "address" },
3249
+ { name: "market", internalType: "address", type: "address" },
3250
+ { name: "minPtOut", internalType: "uint256", type: "uint256" },
3251
+ {
3252
+ name: "guessPtOut",
3253
+ internalType: "struct ApproxParams",
3254
+ type: "tuple",
3255
+ components: [
3256
+ { name: "guessMin", internalType: "uint256", type: "uint256" },
3257
+ { name: "guessMax", internalType: "uint256", type: "uint256" },
3258
+ { name: "guessOffchain", internalType: "uint256", type: "uint256" },
3259
+ { name: "maxIteration", internalType: "uint256", type: "uint256" },
3260
+ { name: "eps", internalType: "uint256", type: "uint256" },
3261
+ ],
3262
+ },
3263
+ {
3264
+ name: "input",
3265
+ internalType: "struct TokenInput",
3266
+ type: "tuple",
3267
+ components: [
3268
+ { name: "tokenIn", internalType: "address", type: "address" },
3269
+ { name: "netTokenIn", internalType: "uint256", type: "uint256" },
3270
+ { name: "tokenMintSy", internalType: "address", type: "address" },
3271
+ { name: "pendleSwap", internalType: "address", type: "address" },
3272
+ {
3273
+ name: "swapData",
3274
+ internalType: "struct SwapData",
3275
+ type: "tuple",
3276
+ components: [
3277
+ {
3278
+ name: "swapType",
3279
+ internalType: "enum SwapType",
3280
+ type: "uint8",
3281
+ },
3282
+ { name: "extRouter", internalType: "address", type: "address" },
3283
+ { name: "extCalldata", internalType: "bytes", type: "bytes" },
3284
+ { name: "needScale", internalType: "bool", type: "bool" },
3285
+ ],
3286
+ },
3287
+ ],
3288
+ },
3289
+ {
3290
+ name: "limit",
3291
+ internalType: "struct LimitOrderData",
3292
+ type: "tuple",
3293
+ components: [
3294
+ { name: "limitRouter", internalType: "address", type: "address" },
3295
+ { name: "epsSkipMarket", internalType: "uint256", type: "uint256" },
3296
+ {
3297
+ name: "normalFills",
3298
+ internalType: "struct FillOrderParams[]",
3299
+ type: "tuple[]",
3300
+ components: [
3301
+ {
3302
+ name: "order",
3303
+ internalType: "struct Order",
3304
+ type: "tuple",
3305
+ components: [
3306
+ { name: "salt", internalType: "uint256", type: "uint256" },
3307
+ { name: "expiry", internalType: "uint256", type: "uint256" },
3308
+ { name: "nonce", internalType: "uint256", type: "uint256" },
3309
+ {
3310
+ name: "orderType",
3311
+ internalType: "enum OrderType",
3312
+ type: "uint8",
3313
+ },
3314
+ { name: "token", internalType: "address", type: "address" },
3315
+ { name: "YT", internalType: "address", type: "address" },
3316
+ { name: "maker", internalType: "address", type: "address" },
3317
+ {
3318
+ name: "receiver",
3319
+ internalType: "address",
3320
+ type: "address",
3321
+ },
3322
+ {
3323
+ name: "makingAmount",
3324
+ internalType: "uint256",
3325
+ type: "uint256",
3326
+ },
3327
+ {
3328
+ name: "lnImpliedRate",
3329
+ internalType: "uint256",
3330
+ type: "uint256",
3331
+ },
3332
+ {
3333
+ name: "failSafeRate",
3334
+ internalType: "uint256",
3335
+ type: "uint256",
3336
+ },
3337
+ { name: "permit", internalType: "bytes", type: "bytes" },
3338
+ ],
3339
+ },
3340
+ { name: "signature", internalType: "bytes", type: "bytes" },
3341
+ {
3342
+ name: "makingAmount",
3343
+ internalType: "uint256",
3344
+ type: "uint256",
3345
+ },
3346
+ ],
3347
+ },
3348
+ {
3349
+ name: "flashFills",
3350
+ internalType: "struct FillOrderParams[]",
3351
+ type: "tuple[]",
3352
+ components: [
3353
+ {
3354
+ name: "order",
3355
+ internalType: "struct Order",
3356
+ type: "tuple",
3357
+ components: [
3358
+ { name: "salt", internalType: "uint256", type: "uint256" },
3359
+ { name: "expiry", internalType: "uint256", type: "uint256" },
3360
+ { name: "nonce", internalType: "uint256", type: "uint256" },
3361
+ {
3362
+ name: "orderType",
3363
+ internalType: "enum OrderType",
3364
+ type: "uint8",
3365
+ },
3366
+ { name: "token", internalType: "address", type: "address" },
3367
+ { name: "YT", internalType: "address", type: "address" },
3368
+ { name: "maker", internalType: "address", type: "address" },
3369
+ {
3370
+ name: "receiver",
3371
+ internalType: "address",
3372
+ type: "address",
3373
+ },
3374
+ {
3375
+ name: "makingAmount",
3376
+ internalType: "uint256",
3377
+ type: "uint256",
3378
+ },
3379
+ {
3380
+ name: "lnImpliedRate",
3381
+ internalType: "uint256",
3382
+ type: "uint256",
3383
+ },
3384
+ {
3385
+ name: "failSafeRate",
3386
+ internalType: "uint256",
3387
+ type: "uint256",
3388
+ },
3389
+ { name: "permit", internalType: "bytes", type: "bytes" },
3390
+ ],
3391
+ },
3392
+ { name: "signature", internalType: "bytes", type: "bytes" },
3393
+ {
3394
+ name: "makingAmount",
3395
+ internalType: "uint256",
3396
+ type: "uint256",
3397
+ },
3398
+ ],
3399
+ },
3400
+ { name: "optData", internalType: "bytes", type: "bytes" },
3401
+ ],
3402
+ },
3403
+ ],
3404
+ name: "swapExactTokenForPt",
3405
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3406
+ stateMutability: "nonpayable",
3407
+ },
3408
+ {
3409
+ type: "function",
3410
+ inputs: [],
3411
+ name: "targetContract",
3412
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3413
+ stateMutability: "view",
3414
+ },
3415
+ {
3416
+ type: "function",
3417
+ inputs: [],
3418
+ name: "version",
3419
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3420
+ stateMutability: "view",
3421
+ },
3422
+ {
3423
+ type: "event",
3424
+ anonymous: false,
3425
+ inputs: [
3426
+ {
3427
+ name: "market",
3428
+ internalType: "address",
3429
+ type: "address",
3430
+ indexed: true,
3431
+ },
3432
+ {
3433
+ name: "inputToken",
3434
+ internalType: "address",
3435
+ type: "address",
3436
+ indexed: true,
3437
+ },
3438
+ {
3439
+ name: "pendleToken",
3440
+ internalType: "address",
3441
+ type: "address",
3442
+ indexed: true,
3443
+ },
3444
+ {
3445
+ name: "allowed",
3446
+ internalType: "enum PendleStatus",
3447
+ type: "uint8",
3448
+ indexed: false,
3449
+ },
3450
+ ],
3451
+ name: "SetPairStatus",
3452
+ },
3453
+ { type: "error", inputs: [], name: "PairNotAllowedException" },
3454
+ { type: "error", inputs: [], name: "RedemptionNotAllowedException" },
3455
+ ] as const;
3456
+
3457
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3458
+ // IPendleRouterAdapterEvents
3459
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3460
+
3461
+ export const iPendleRouterAdapterEventsAbi = [
3462
+ {
3463
+ type: "event",
3464
+ anonymous: false,
3465
+ inputs: [
3466
+ {
3467
+ name: "market",
3468
+ internalType: "address",
3469
+ type: "address",
3470
+ indexed: true,
3471
+ },
3472
+ {
3473
+ name: "inputToken",
3474
+ internalType: "address",
3475
+ type: "address",
3476
+ indexed: true,
3477
+ },
3478
+ {
3479
+ name: "pendleToken",
3480
+ internalType: "address",
3481
+ type: "address",
3482
+ indexed: true,
3483
+ },
3484
+ {
3485
+ name: "allowed",
3486
+ internalType: "enum PendleStatus",
3487
+ type: "uint8",
3488
+ indexed: false,
3489
+ },
3490
+ ],
3491
+ name: "SetPairStatus",
3492
+ },
3493
+ ] as const;
3494
+
3495
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3496
+ // IPendleRouterAdapterExceptions
3497
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3498
+
3499
+ export const iPendleRouterAdapterExceptionsAbi = [
3500
+ { type: "error", inputs: [], name: "PairNotAllowedException" },
3501
+ { type: "error", inputs: [], name: "RedemptionNotAllowedException" },
3502
+ ] as const;
3503
+
3504
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3505
+ // IStakingRewardsAdapter
3506
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3507
+
3508
+ export const iStakingRewardsAdapterAbi = [
3509
+ {
3510
+ type: "function",
3511
+ inputs: [],
3512
+ name: "contractType",
3513
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3514
+ stateMutability: "view",
3515
+ },
3516
+ {
3517
+ type: "function",
3518
+ inputs: [],
3519
+ name: "creditManager",
3520
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3521
+ stateMutability: "view",
3522
+ },
3523
+ {
3524
+ type: "function",
3525
+ inputs: [],
3526
+ name: "getReward",
3527
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3528
+ stateMutability: "nonpayable",
3529
+ },
3530
+ {
3531
+ type: "function",
3532
+ inputs: [],
3533
+ name: "rewardsToken",
3534
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3535
+ stateMutability: "view",
3536
+ },
3537
+ {
3538
+ type: "function",
3539
+ inputs: [],
3540
+ name: "serialize",
3541
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
3542
+ stateMutability: "view",
3543
+ },
3544
+ {
3545
+ type: "function",
3546
+ inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
3547
+ name: "stake",
3548
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3549
+ stateMutability: "nonpayable",
3550
+ },
3551
+ {
3552
+ type: "function",
3553
+ inputs: [
3554
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
3555
+ ],
3556
+ name: "stakeDiff",
3557
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3558
+ stateMutability: "nonpayable",
3559
+ },
3560
+ {
3561
+ type: "function",
3562
+ inputs: [],
3563
+ name: "stakedPhantomToken",
3564
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3565
+ stateMutability: "view",
3566
+ },
3567
+ {
3568
+ type: "function",
3569
+ inputs: [],
3570
+ name: "stakingToken",
3571
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3572
+ stateMutability: "view",
3573
+ },
3574
+ {
3575
+ type: "function",
3576
+ inputs: [],
3577
+ name: "targetContract",
3578
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3579
+ stateMutability: "view",
3580
+ },
3581
+ {
3582
+ type: "function",
3583
+ inputs: [],
3584
+ name: "version",
3585
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3586
+ stateMutability: "view",
3587
+ },
3588
+ {
3589
+ type: "function",
3590
+ inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
3591
+ name: "withdraw",
3592
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3593
+ stateMutability: "nonpayable",
3594
+ },
3595
+ {
3596
+ type: "function",
3597
+ inputs: [
3598
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
3599
+ ],
3600
+ name: "withdrawDiff",
3601
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3602
+ stateMutability: "nonpayable",
3603
+ },
3604
+ {
3605
+ type: "function",
3606
+ inputs: [
3607
+ { name: "token", internalType: "address", type: "address" },
3608
+ { name: "amount", internalType: "uint256", type: "uint256" },
3609
+ ],
3610
+ name: "withdrawPhantomToken",
3611
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3612
+ stateMutability: "nonpayable",
3613
+ },
3614
+ ] as const;
3615
+
3616
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3617
+ // IUniswapV2Adapter
3618
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3619
+
3620
+ export const iUniswapV2AdapterAbi = [
3621
+ {
3622
+ type: "function",
3623
+ inputs: [],
3624
+ name: "contractType",
3625
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3626
+ stateMutability: "view",
3627
+ },
3628
+ {
3629
+ type: "function",
3630
+ inputs: [],
3631
+ name: "creditManager",
3632
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3633
+ stateMutability: "view",
3634
+ },
3635
+ {
3636
+ type: "function",
3637
+ inputs: [
3638
+ { name: "token0", internalType: "address", type: "address" },
3639
+ { name: "token1", internalType: "address", type: "address" },
3640
+ ],
3641
+ name: "isPairAllowed",
3642
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3643
+ stateMutability: "view",
3644
+ },
3645
+ {
3646
+ type: "function",
3647
+ inputs: [],
3648
+ name: "serialize",
3649
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
3650
+ stateMutability: "view",
3651
+ },
3652
+ {
3653
+ type: "function",
3654
+ inputs: [
3655
+ {
3656
+ name: "pairs",
3657
+ internalType: "struct UniswapV2PairStatus[]",
3658
+ type: "tuple[]",
3659
+ components: [
3660
+ { name: "token0", internalType: "address", type: "address" },
3661
+ { name: "token1", internalType: "address", type: "address" },
3662
+ { name: "allowed", internalType: "bool", type: "bool" },
3663
+ ],
3664
+ },
3665
+ ],
3666
+ name: "setPairStatusBatch",
3667
+ outputs: [],
3668
+ stateMutability: "nonpayable",
3669
+ },
3670
+ {
3671
+ type: "function",
3672
+ inputs: [
3673
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
3674
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
3675
+ { name: "path", internalType: "address[]", type: "address[]" },
3676
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3677
+ ],
3678
+ name: "swapDiffTokensForTokens",
3679
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3680
+ stateMutability: "nonpayable",
3681
+ },
3682
+ {
3683
+ type: "function",
3684
+ inputs: [
3685
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
3686
+ { name: "amountOutMin", internalType: "uint256", type: "uint256" },
3687
+ { name: "path", internalType: "address[]", type: "address[]" },
3688
+ { name: "", internalType: "address", type: "address" },
3689
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3690
+ ],
3691
+ name: "swapExactTokensForTokens",
3692
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3693
+ stateMutability: "nonpayable",
3694
+ },
3695
+ {
3696
+ type: "function",
3697
+ inputs: [
3698
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
3699
+ { name: "amountInMax", internalType: "uint256", type: "uint256" },
3700
+ { name: "path", internalType: "address[]", type: "address[]" },
3701
+ { name: "", internalType: "address", type: "address" },
3702
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3703
+ ],
3704
+ name: "swapTokensForExactTokens",
3705
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3706
+ stateMutability: "nonpayable",
3707
+ },
3708
+ {
3709
+ type: "function",
3710
+ inputs: [],
3711
+ name: "targetContract",
3712
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3713
+ stateMutability: "view",
3714
+ },
3715
+ {
3716
+ type: "function",
3717
+ inputs: [],
3718
+ name: "version",
3719
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3720
+ stateMutability: "view",
3721
+ },
3722
+ {
3723
+ type: "event",
3724
+ anonymous: false,
3725
+ inputs: [
3726
+ {
3727
+ name: "token0",
3728
+ internalType: "address",
3729
+ type: "address",
3730
+ indexed: true,
3731
+ },
3732
+ {
3733
+ name: "token1",
3734
+ internalType: "address",
3735
+ type: "address",
3736
+ indexed: true,
3737
+ },
3738
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
3739
+ ],
3740
+ name: "SetPairStatus",
3741
+ },
3742
+ { type: "error", inputs: [], name: "InvalidPathException" },
3743
+ ] as const;
3744
+
3745
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3746
+ // IUniswapV3Adapter
3747
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3748
+
3749
+ export const iUniswapV3AdapterAbi = [
3750
+ {
3751
+ type: "function",
3752
+ inputs: [],
3753
+ name: "contractType",
3754
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3755
+ stateMutability: "view",
3756
+ },
3757
+ {
3758
+ type: "function",
3759
+ inputs: [],
3760
+ name: "creditManager",
3761
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3762
+ stateMutability: "view",
3763
+ },
3764
+ {
3765
+ type: "function",
3766
+ inputs: [
3767
+ {
3768
+ name: "params",
3769
+ internalType: "struct IUniswapV3AdapterTypes.ExactDiffInputParams",
3770
+ type: "tuple",
3771
+ components: [
3772
+ { name: "path", internalType: "bytes", type: "bytes" },
3773
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3774
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
3775
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
3776
+ ],
3777
+ },
3778
+ ],
3779
+ name: "exactDiffInput",
3780
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3781
+ stateMutability: "nonpayable",
3782
+ },
3783
+ {
3784
+ type: "function",
3785
+ inputs: [
3786
+ {
3787
+ name: "params",
3788
+ internalType:
3789
+ "struct IUniswapV3AdapterTypes.ExactDiffInputSingleParams",
3790
+ type: "tuple",
3791
+ components: [
3792
+ { name: "tokenIn", internalType: "address", type: "address" },
3793
+ { name: "tokenOut", internalType: "address", type: "address" },
3794
+ { name: "fee", internalType: "uint24", type: "uint24" },
3795
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3796
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
3797
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
3798
+ {
3799
+ name: "sqrtPriceLimitX96",
3800
+ internalType: "uint160",
3801
+ type: "uint160",
3802
+ },
3803
+ ],
3804
+ },
3805
+ ],
3806
+ name: "exactDiffInputSingle",
3807
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3808
+ stateMutability: "nonpayable",
3809
+ },
3810
+ {
3811
+ type: "function",
3812
+ inputs: [
3813
+ {
3814
+ name: "params",
3815
+ internalType: "struct ISwapRouter.ExactInputParams",
3816
+ type: "tuple",
3817
+ components: [
3818
+ { name: "path", internalType: "bytes", type: "bytes" },
3819
+ { name: "recipient", internalType: "address", type: "address" },
3820
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3821
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
3822
+ {
3823
+ name: "amountOutMinimum",
3824
+ internalType: "uint256",
3825
+ type: "uint256",
3826
+ },
3827
+ ],
3828
+ },
3829
+ ],
3830
+ name: "exactInput",
3831
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3832
+ stateMutability: "nonpayable",
3833
+ },
3834
+ {
3835
+ type: "function",
3836
+ inputs: [
3837
+ {
3838
+ name: "params",
3839
+ internalType: "struct ISwapRouter.ExactInputSingleParams",
3840
+ type: "tuple",
3841
+ components: [
3842
+ { name: "tokenIn", internalType: "address", type: "address" },
3843
+ { name: "tokenOut", internalType: "address", type: "address" },
3844
+ { name: "fee", internalType: "uint24", type: "uint24" },
3845
+ { name: "recipient", internalType: "address", type: "address" },
3846
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3847
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
3848
+ {
3849
+ name: "amountOutMinimum",
3850
+ internalType: "uint256",
3851
+ type: "uint256",
3852
+ },
3853
+ {
3854
+ name: "sqrtPriceLimitX96",
3855
+ internalType: "uint160",
3856
+ type: "uint160",
3857
+ },
3858
+ ],
3859
+ },
3860
+ ],
3861
+ name: "exactInputSingle",
3862
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3863
+ stateMutability: "nonpayable",
3864
+ },
3865
+ {
3866
+ type: "function",
3867
+ inputs: [
3868
+ {
3869
+ name: "params",
3870
+ internalType: "struct ISwapRouter.ExactOutputParams",
3871
+ type: "tuple",
3872
+ components: [
3873
+ { name: "path", internalType: "bytes", type: "bytes" },
3874
+ { name: "recipient", internalType: "address", type: "address" },
3875
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3876
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
3877
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
3878
+ ],
3879
+ },
3880
+ ],
3881
+ name: "exactOutput",
3882
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3883
+ stateMutability: "nonpayable",
3884
+ },
3885
+ {
3886
+ type: "function",
3887
+ inputs: [
3888
+ {
3889
+ name: "params",
3890
+ internalType: "struct ISwapRouter.ExactOutputSingleParams",
3891
+ type: "tuple",
3892
+ components: [
3893
+ { name: "tokenIn", internalType: "address", type: "address" },
3894
+ { name: "tokenOut", internalType: "address", type: "address" },
3895
+ { name: "fee", internalType: "uint24", type: "uint24" },
3896
+ { name: "recipient", internalType: "address", type: "address" },
3897
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3898
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
3899
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
3900
+ {
3901
+ name: "sqrtPriceLimitX96",
3902
+ internalType: "uint160",
3903
+ type: "uint160",
3904
+ },
3905
+ ],
3906
+ },
3907
+ ],
3908
+ name: "exactOutputSingle",
3909
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
3910
+ stateMutability: "nonpayable",
3911
+ },
3912
+ {
3913
+ type: "function",
3914
+ inputs: [
3915
+ { name: "token0", internalType: "address", type: "address" },
3916
+ { name: "token1", internalType: "address", type: "address" },
3917
+ { name: "fee", internalType: "uint24", type: "uint24" },
3918
+ ],
3919
+ name: "isPoolAllowed",
3920
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3921
+ stateMutability: "view",
3922
+ },
3923
+ {
3924
+ type: "function",
3925
+ inputs: [],
3926
+ name: "serialize",
3927
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
3928
+ stateMutability: "view",
3929
+ },
3930
+ {
3931
+ type: "function",
3932
+ inputs: [
3933
+ {
3934
+ name: "pools",
3935
+ internalType: "struct UniswapV3PoolStatus[]",
3936
+ type: "tuple[]",
3937
+ components: [
3938
+ { name: "token0", internalType: "address", type: "address" },
3939
+ { name: "token1", internalType: "address", type: "address" },
3940
+ { name: "fee", internalType: "uint24", type: "uint24" },
3941
+ { name: "allowed", internalType: "bool", type: "bool" },
3942
+ ],
3943
+ },
3944
+ ],
3945
+ name: "setPoolStatusBatch",
3946
+ outputs: [],
3947
+ stateMutability: "nonpayable",
3948
+ },
3949
+ {
3950
+ type: "function",
3951
+ inputs: [],
3952
+ name: "targetContract",
3953
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3954
+ stateMutability: "view",
3955
+ },
3956
+ {
3957
+ type: "function",
3958
+ inputs: [],
3959
+ name: "version",
3960
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3961
+ stateMutability: "view",
3962
+ },
3963
+ {
3964
+ type: "event",
3965
+ anonymous: false,
3966
+ inputs: [
3967
+ {
3968
+ name: "token0",
3969
+ internalType: "address",
3970
+ type: "address",
3971
+ indexed: true,
3972
+ },
3973
+ {
3974
+ name: "token1",
3975
+ internalType: "address",
3976
+ type: "address",
3977
+ indexed: true,
3978
+ },
3979
+ { name: "fee", internalType: "uint24", type: "uint24", indexed: true },
3980
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
3981
+ ],
3982
+ name: "SetPoolStatus",
3983
+ },
3984
+ { type: "error", inputs: [], name: "InvalidPathException" },
3985
+ ] as const;
3986
+
3987
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3988
+ // IVelodromeV2RouterAdapter
3989
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3990
+
3991
+ export const iVelodromeV2RouterAdapterAbi = [
3992
+ {
3993
+ type: "function",
3994
+ inputs: [],
3995
+ name: "contractType",
3996
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3997
+ stateMutability: "view",
3998
+ },
3999
+ {
4000
+ type: "function",
4001
+ inputs: [],
4002
+ name: "creditManager",
4003
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4004
+ stateMutability: "view",
4005
+ },
4006
+ {
4007
+ type: "function",
4008
+ inputs: [
4009
+ { name: "token0", internalType: "address", type: "address" },
4010
+ { name: "token1", internalType: "address", type: "address" },
4011
+ { name: "stable", internalType: "bool", type: "bool" },
4012
+ { name: "factory", internalType: "address", type: "address" },
4013
+ ],
4014
+ name: "isPoolAllowed",
4015
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
4016
+ stateMutability: "view",
4017
+ },
4018
+ {
4019
+ type: "function",
4020
+ inputs: [],
4021
+ name: "serialize",
4022
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
4023
+ stateMutability: "view",
4024
+ },
4025
+ {
4026
+ type: "function",
4027
+ inputs: [
4028
+ {
4029
+ name: "pools",
4030
+ internalType: "struct VelodromeV2PoolStatus[]",
4031
+ type: "tuple[]",
4032
+ components: [
4033
+ { name: "token0", internalType: "address", type: "address" },
4034
+ { name: "token1", internalType: "address", type: "address" },
4035
+ { name: "stable", internalType: "bool", type: "bool" },
4036
+ { name: "factory", internalType: "address", type: "address" },
4037
+ { name: "allowed", internalType: "bool", type: "bool" },
4038
+ ],
4039
+ },
4040
+ ],
4041
+ name: "setPoolStatusBatch",
4042
+ outputs: [],
4043
+ stateMutability: "nonpayable",
4044
+ },
4045
+ {
4046
+ type: "function",
4047
+ inputs: [
4048
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
4049
+ { name: "rateMinRAY", internalType: "uint256", type: "uint256" },
4050
+ {
4051
+ name: "routes",
4052
+ internalType: "struct Route[]",
4053
+ type: "tuple[]",
4054
+ components: [
4055
+ { name: "from", internalType: "address", type: "address" },
4056
+ { name: "to", internalType: "address", type: "address" },
4057
+ { name: "stable", internalType: "bool", type: "bool" },
4058
+ { name: "factory", internalType: "address", type: "address" },
4059
+ ],
4060
+ },
4061
+ { name: "deadline", internalType: "uint256", type: "uint256" },
4062
+ ],
4063
+ name: "swapDiffTokensForTokens",
4064
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4065
+ stateMutability: "nonpayable",
4066
+ },
4067
+ {
4068
+ type: "function",
4069
+ inputs: [
4070
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
4071
+ { name: "amountOutMin", internalType: "uint256", type: "uint256" },
4072
+ {
4073
+ name: "routes",
4074
+ internalType: "struct Route[]",
4075
+ type: "tuple[]",
4076
+ components: [
4077
+ { name: "from", internalType: "address", type: "address" },
4078
+ { name: "to", internalType: "address", type: "address" },
4079
+ { name: "stable", internalType: "bool", type: "bool" },
4080
+ { name: "factory", internalType: "address", type: "address" },
4081
+ ],
4082
+ },
4083
+ { name: "", internalType: "address", type: "address" },
4084
+ { name: "deadline", internalType: "uint256", type: "uint256" },
4085
+ ],
4086
+ name: "swapExactTokensForTokens",
4087
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4088
+ stateMutability: "nonpayable",
4089
+ },
4090
+ {
4091
+ type: "function",
4092
+ inputs: [],
4093
+ name: "targetContract",
4094
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4095
+ stateMutability: "view",
4096
+ },
4097
+ {
4098
+ type: "function",
4099
+ inputs: [],
4100
+ name: "version",
4101
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4102
+ stateMutability: "view",
4103
+ },
4104
+ {
4105
+ type: "event",
4106
+ anonymous: false,
4107
+ inputs: [
4108
+ {
4109
+ name: "token0",
4110
+ internalType: "address",
4111
+ type: "address",
4112
+ indexed: true,
4113
+ },
4114
+ {
4115
+ name: "token1",
4116
+ internalType: "address",
4117
+ type: "address",
4118
+ indexed: true,
4119
+ },
4120
+ { name: "stable", internalType: "bool", type: "bool", indexed: false },
4121
+ {
4122
+ name: "factory",
4123
+ internalType: "address",
4124
+ type: "address",
4125
+ indexed: false,
4126
+ },
4127
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
4128
+ ],
4129
+ name: "SetPoolStatus",
4130
+ },
4131
+ { type: "error", inputs: [], name: "InvalidPathException" },
4132
+ ] as const;
4133
+
4134
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4135
+ // IYearnV2Adapter
4136
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4137
+
4138
+ export const iYearnV2AdapterAbi = [
4139
+ {
4140
+ type: "function",
4141
+ inputs: [],
4142
+ name: "contractType",
4143
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
4144
+ stateMutability: "view",
4145
+ },
4146
+ {
4147
+ type: "function",
4148
+ inputs: [],
4149
+ name: "creditManager",
4150
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4151
+ stateMutability: "view",
4152
+ },
4153
+ {
4154
+ type: "function",
4155
+ inputs: [
4156
+ { name: "amount", internalType: "uint256", type: "uint256" },
4157
+ { name: "", internalType: "address", type: "address" },
4158
+ ],
4159
+ name: "deposit",
4160
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4161
+ stateMutability: "nonpayable",
4162
+ },
4163
+ {
4164
+ type: "function",
4165
+ inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
4166
+ name: "deposit",
4167
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4168
+ stateMutability: "nonpayable",
4169
+ },
4170
+ {
4171
+ type: "function",
4172
+ inputs: [
4173
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
4174
+ ],
4175
+ name: "depositDiff",
4176
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4177
+ stateMutability: "nonpayable",
4178
+ },
4179
+ {
4180
+ type: "function",
4181
+ inputs: [],
4182
+ name: "serialize",
4183
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
4184
+ stateMutability: "view",
4185
+ },
4186
+ {
4187
+ type: "function",
4188
+ inputs: [],
4189
+ name: "targetContract",
4190
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4191
+ stateMutability: "view",
4192
+ },
4193
+ {
4194
+ type: "function",
4195
+ inputs: [],
4196
+ name: "token",
4197
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4198
+ stateMutability: "view",
4199
+ },
4200
+ {
4201
+ type: "function",
4202
+ inputs: [],
4203
+ name: "version",
4204
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4205
+ stateMutability: "view",
4206
+ },
4207
+ {
4208
+ type: "function",
4209
+ inputs: [
4210
+ { name: "maxShares", internalType: "uint256", type: "uint256" },
4211
+ { name: "", internalType: "address", type: "address" },
4212
+ ],
4213
+ name: "withdraw",
4214
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4215
+ stateMutability: "nonpayable",
4216
+ },
4217
+ {
4218
+ type: "function",
4219
+ inputs: [{ name: "maxShares", internalType: "uint256", type: "uint256" }],
4220
+ name: "withdraw",
4221
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4222
+ stateMutability: "nonpayable",
4223
+ },
4224
+ {
4225
+ type: "function",
4226
+ inputs: [
4227
+ { name: "maxShares", internalType: "uint256", type: "uint256" },
4228
+ { name: "", internalType: "address", type: "address" },
4229
+ { name: "maxLoss", internalType: "uint256", type: "uint256" },
4230
+ ],
4231
+ name: "withdraw",
4232
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4233
+ stateMutability: "nonpayable",
4234
+ },
4235
+ {
4236
+ type: "function",
4237
+ inputs: [
4238
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
4239
+ ],
4240
+ name: "withdrawDiff",
4241
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4242
+ stateMutability: "nonpayable",
4243
+ },
4244
+ ] as const;
4245
+
4246
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4247
+ // IwstETHV1Adapter
4248
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4249
+
4250
+ export const iwstEthv1AdapterAbi = [
4251
+ {
4252
+ type: "function",
4253
+ inputs: [],
4254
+ name: "contractType",
4255
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
4256
+ stateMutability: "view",
4257
+ },
4258
+ {
4259
+ type: "function",
4260
+ inputs: [],
4261
+ name: "creditManager",
4262
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4263
+ stateMutability: "view",
4264
+ },
4265
+ {
4266
+ type: "function",
4267
+ inputs: [],
4268
+ name: "serialize",
4269
+ outputs: [{ name: "serializedData", internalType: "bytes", type: "bytes" }],
4270
+ stateMutability: "view",
4271
+ },
4272
+ {
4273
+ type: "function",
4274
+ inputs: [],
4275
+ name: "stETH",
4276
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4277
+ stateMutability: "view",
4278
+ },
4279
+ {
4280
+ type: "function",
4281
+ inputs: [],
4282
+ name: "targetContract",
4283
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4284
+ stateMutability: "view",
4285
+ },
4286
+ {
4287
+ type: "function",
4288
+ inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
4289
+ name: "unwrap",
4290
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4291
+ stateMutability: "nonpayable",
4292
+ },
4293
+ {
4294
+ type: "function",
4295
+ inputs: [
4296
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
4297
+ ],
4298
+ name: "unwrapDiff",
4299
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4300
+ stateMutability: "nonpayable",
4301
+ },
4302
+ {
4303
+ type: "function",
4304
+ inputs: [],
4305
+ name: "version",
4306
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4307
+ stateMutability: "view",
4308
+ },
4309
+ {
4310
+ type: "function",
4311
+ inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
4312
+ name: "wrap",
4313
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4314
+ stateMutability: "nonpayable",
4315
+ },
4316
+ {
4317
+ type: "function",
4318
+ inputs: [
4319
+ { name: "leftoverAmount", internalType: "uint256", type: "uint256" },
4320
+ ],
4321
+ name: "wrapDiff",
4322
+ outputs: [{ name: "useSafePrices", internalType: "bool", type: "bool" }],
4323
+ stateMutability: "nonpayable",
4324
+ },
4325
+ ] as const;