@gearbox-protocol/sdk 12.8.0 → 12.9.0-txparser.1

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/dist/cjs/history/ContractRegister.js +69 -0
  2. package/dist/cjs/history/assembleOperations.js +110 -0
  3. package/dist/cjs/history/classifyMulticallOperations.js +157 -0
  4. package/dist/cjs/history/enrichTokens.js +80 -0
  5. package/dist/cjs/history/errors.js +91 -0
  6. package/dist/cjs/history/extractProtocolCalls.js +53 -0
  7. package/dist/cjs/history/extractTransfers.js +166 -0
  8. package/dist/cjs/history/findFacadeCalls.js +84 -0
  9. package/dist/cjs/history/index.js +38 -0
  10. package/dist/cjs/history/inner-operations.js +16 -0
  11. package/dist/cjs/history/internal-types.js +16 -0
  12. package/dist/cjs/history/package.json +1 -0
  13. package/dist/cjs/history/parseCreditAccountTransaction.js +83 -0
  14. package/dist/cjs/history/toLegacyOperation.js +120 -0
  15. package/dist/cjs/{plugins/adapters/contracts/YearnV2AdapterContract.js → history/trace-utils.js} +36 -21
  16. package/dist/cjs/history/types.js +16 -0
  17. package/dist/cjs/plugins/adapters/AdaptersPlugin.js +13 -106
  18. package/dist/cjs/plugins/adapters/abi/index.js +2 -0
  19. package/dist/cjs/plugins/adapters/abi/targetContractAbi.js +5168 -0
  20. package/dist/cjs/plugins/adapters/contracts/AbstractAdapter.js +102 -3
  21. package/dist/cjs/plugins/adapters/contracts/AccountMigratorAdapterContract.js +8 -1
  22. package/dist/cjs/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +40 -30
  23. package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +21 -11
  24. package/dist/cjs/plugins/adapters/contracts/CamelotV3AdapterContract.js +31 -21
  25. package/dist/cjs/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +91 -25
  26. package/dist/cjs/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +63 -25
  27. package/dist/cjs/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +68 -31
  28. package/dist/cjs/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +68 -31
  29. package/dist/cjs/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +73 -31
  30. package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterDeposit.js +80 -33
  31. package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +62 -26
  32. package/dist/cjs/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +80 -34
  33. package/dist/cjs/plugins/adapters/contracts/DaiUsdsAdapterContract.js +39 -14
  34. package/dist/cjs/plugins/adapters/contracts/ERC4626AdapterContract.js +55 -27
  35. package/dist/cjs/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +39 -14
  36. package/dist/cjs/plugins/adapters/contracts/FluidDexAdapterContract.js +27 -14
  37. package/dist/cjs/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +45 -23
  38. package/dist/cjs/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +23 -14
  39. package/dist/cjs/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +22 -12
  40. package/dist/cjs/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +26 -16
  41. package/dist/cjs/plugins/adapters/contracts/LidoV1AdapterContract.js +39 -17
  42. package/dist/cjs/plugins/adapters/contracts/MellowClaimerAdapterContract.js +21 -11
  43. package/dist/cjs/plugins/adapters/contracts/MellowDVVAdapterContract.js +38 -14
  44. package/dist/cjs/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +71 -42
  45. package/dist/cjs/plugins/adapters/contracts/MellowWrapperAdapterContract.js +21 -11
  46. package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +36 -17
  47. package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +38 -21
  48. package/dist/cjs/plugins/adapters/contracts/PendleRouterAdapterContract.js +63 -53
  49. package/dist/cjs/plugins/adapters/contracts/StakingRewardsAdapterContract.js +62 -37
  50. package/dist/cjs/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +35 -25
  51. package/dist/cjs/plugins/adapters/contracts/UniswapV2AdapterContract.js +35 -21
  52. package/dist/cjs/plugins/adapters/contracts/UniswapV3AdapterContract.js +32 -23
  53. package/dist/cjs/plugins/adapters/contracts/UniswapV4AdapterContract.js +41 -27
  54. package/dist/cjs/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +34 -17
  55. package/dist/cjs/plugins/adapters/contracts/VelodromeV2AdapterContract.js +35 -25
  56. package/dist/cjs/plugins/adapters/contracts/WstETHV1AdapterContract.js +31 -11
  57. package/dist/cjs/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.js +585 -0
  58. package/dist/cjs/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.js +262 -0
  59. package/dist/cjs/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.js +296 -0
  60. package/dist/cjs/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.js +415 -0
  61. package/dist/cjs/plugins/adapters/contracts/deprecated/MellowDepositQueueAdapterContract.js +74 -0
  62. package/dist/cjs/plugins/adapters/contracts/{MellowRedeemQueueAdapterContract.js → deprecated/MellowRedeemQueueAdapterContract.js} +33 -14
  63. package/dist/cjs/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.js +233 -0
  64. package/dist/cjs/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.js +359 -0
  65. package/dist/cjs/plugins/adapters/contracts/deprecated/index.js +36 -0
  66. package/dist/cjs/plugins/adapters/contracts/index.js +3 -17
  67. package/dist/cjs/plugins/adapters/contracts/types.js +0 -9
  68. package/dist/cjs/plugins/adapters/createAdapter.js +140 -0
  69. package/dist/cjs/plugins/adapters/index.js +6 -0
  70. package/dist/cjs/plugins/adapters/legacyAdapterOperations.js +16 -0
  71. package/dist/cjs/plugins/adapters/transferHelpers.js +127 -0
  72. package/dist/cjs/sdk/base/BaseContract.js +51 -0
  73. package/dist/cjs/sdk/base/ChainContractsRegister.js +33 -0
  74. package/dist/cjs/sdk/base/PlaceholderContract.js +2 -2
  75. package/dist/cjs/sdk/base/TokensMeta.js +1 -2
  76. package/dist/cjs/sdk/base/errors.js +35 -0
  77. package/dist/cjs/sdk/base/index.js +2 -0
  78. package/dist/cjs/sdk/market/adapters/PlaceholderAdapterContracts.js +10 -4
  79. package/dist/cjs/sdk/market/adapters/{factory.js → createAdapter.js} +3 -3
  80. package/dist/cjs/sdk/market/adapters/index.js +2 -2
  81. package/dist/cjs/sdk/market/credit/CreditFacadeV310BaseContract.js +108 -0
  82. package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +3 -40
  83. package/dist/cjs/sdk/market/credit/index.js +2 -0
  84. package/dist/cjs/sdk/utils/abi-decode.js +43 -2
  85. package/dist/esm/history/ContractRegister.js +50 -0
  86. package/dist/esm/history/assembleOperations.js +86 -0
  87. package/dist/esm/history/classifyMulticallOperations.js +137 -0
  88. package/dist/esm/history/enrichTokens.js +56 -0
  89. package/dist/esm/history/errors.js +62 -0
  90. package/dist/esm/history/extractProtocolCalls.js +32 -0
  91. package/dist/esm/history/extractTransfers.js +146 -0
  92. package/dist/esm/history/findFacadeCalls.js +63 -0
  93. package/dist/esm/history/index.js +9 -0
  94. package/dist/esm/history/inner-operations.js +0 -0
  95. package/dist/esm/history/internal-types.js +0 -0
  96. package/dist/esm/history/package.json +1 -0
  97. package/dist/esm/history/parseCreditAccountTransaction.js +59 -0
  98. package/dist/esm/history/toLegacyOperation.js +96 -0
  99. package/dist/esm/history/trace-utils.js +36 -0
  100. package/dist/esm/history/types.js +0 -0
  101. package/dist/esm/plugins/adapters/AdaptersPlugin.js +14 -148
  102. package/dist/esm/plugins/adapters/abi/index.js +1 -0
  103. package/dist/esm/plugins/adapters/abi/targetContractAbi.js +5113 -0
  104. package/dist/esm/plugins/adapters/contracts/AbstractAdapter.js +111 -4
  105. package/dist/esm/plugins/adapters/contracts/AccountMigratorAdapterContract.js +8 -1
  106. package/dist/esm/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +40 -30
  107. package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +21 -11
  108. package/dist/esm/plugins/adapters/contracts/CamelotV3AdapterContract.js +31 -21
  109. package/dist/esm/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +100 -26
  110. package/dist/esm/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +65 -25
  111. package/dist/esm/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +70 -31
  112. package/dist/esm/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +70 -31
  113. package/dist/esm/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +75 -31
  114. package/dist/esm/plugins/adapters/contracts/CurveV1AdapterDeposit.js +82 -33
  115. package/dist/esm/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +64 -26
  116. package/dist/esm/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +85 -34
  117. package/dist/esm/plugins/adapters/contracts/DaiUsdsAdapterContract.js +41 -14
  118. package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +57 -27
  119. package/dist/esm/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +41 -14
  120. package/dist/esm/plugins/adapters/contracts/FluidDexAdapterContract.js +29 -14
  121. package/dist/esm/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +47 -23
  122. package/dist/esm/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +29 -15
  123. package/dist/esm/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +27 -12
  124. package/dist/esm/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +31 -16
  125. package/dist/esm/plugins/adapters/contracts/LidoV1AdapterContract.js +41 -17
  126. package/dist/esm/plugins/adapters/contracts/MellowClaimerAdapterContract.js +23 -11
  127. package/dist/esm/plugins/adapters/contracts/MellowDVVAdapterContract.js +40 -14
  128. package/dist/esm/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +74 -43
  129. package/dist/esm/plugins/adapters/contracts/MellowWrapperAdapterContract.js +23 -11
  130. package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +38 -17
  131. package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +44 -22
  132. package/dist/esm/plugins/adapters/contracts/PendleRouterAdapterContract.js +65 -53
  133. package/dist/esm/plugins/adapters/contracts/StakingRewardsAdapterContract.js +64 -37
  134. package/dist/esm/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +35 -25
  135. package/dist/esm/plugins/adapters/contracts/UniswapV2AdapterContract.js +36 -22
  136. package/dist/esm/plugins/adapters/contracts/UniswapV3AdapterContract.js +33 -24
  137. package/dist/esm/plugins/adapters/contracts/UniswapV4AdapterContract.js +45 -28
  138. package/dist/esm/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +40 -18
  139. package/dist/esm/plugins/adapters/contracts/VelodromeV2AdapterContract.js +35 -25
  140. package/dist/esm/plugins/adapters/contracts/WstETHV1AdapterContract.js +33 -11
  141. package/dist/esm/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.js +559 -0
  142. package/dist/esm/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.js +236 -0
  143. package/dist/esm/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.js +272 -0
  144. package/dist/esm/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.js +390 -0
  145. package/dist/esm/plugins/adapters/contracts/deprecated/MellowDepositQueueAdapterContract.js +52 -0
  146. package/dist/esm/plugins/adapters/contracts/deprecated/MellowRedeemQueueAdapterContract.js +45 -0
  147. package/dist/esm/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.js +209 -0
  148. package/dist/esm/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.js +336 -0
  149. package/dist/esm/plugins/adapters/contracts/deprecated/index.js +8 -0
  150. package/dist/esm/plugins/adapters/contracts/index.js +1 -8
  151. package/dist/esm/plugins/adapters/contracts/types.js +0 -8
  152. package/dist/esm/plugins/adapters/createAdapter.js +158 -0
  153. package/dist/esm/plugins/adapters/index.js +3 -0
  154. package/dist/esm/plugins/adapters/legacyAdapterOperations.js +0 -0
  155. package/dist/esm/plugins/adapters/transferHelpers.js +95 -0
  156. package/dist/esm/sdk/base/BaseContract.js +53 -0
  157. package/dist/esm/sdk/base/ChainContractsRegister.js +33 -0
  158. package/dist/esm/sdk/base/PlaceholderContract.js +2 -2
  159. package/dist/esm/sdk/base/TokensMeta.js +6 -2
  160. package/dist/esm/sdk/base/errors.js +11 -0
  161. package/dist/esm/sdk/base/index.js +1 -0
  162. package/dist/esm/sdk/market/adapters/PlaceholderAdapterContracts.js +14 -5
  163. package/dist/esm/sdk/market/adapters/index.js +1 -1
  164. package/dist/esm/sdk/market/credit/CreditFacadeV310BaseContract.js +86 -0
  165. package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +3 -43
  166. package/dist/esm/sdk/market/credit/index.js +1 -0
  167. package/dist/esm/sdk/utils/abi-decode.js +43 -2
  168. package/dist/types/history/ContractRegister.d.ts +11 -0
  169. package/dist/types/history/assembleOperations.d.ts +24 -0
  170. package/dist/types/history/classifyMulticallOperations.d.ts +35 -0
  171. package/dist/types/history/enrichTokens.d.ts +5 -0
  172. package/dist/types/history/errors.d.ts +30 -0
  173. package/dist/types/history/extractProtocolCalls.d.ts +8 -0
  174. package/dist/types/history/extractTransfers.d.ts +22 -0
  175. package/dist/types/history/findFacadeCalls.d.ts +9 -0
  176. package/dist/types/history/index.d.ts +6 -0
  177. package/dist/types/history/inner-operations.d.ts +57 -0
  178. package/dist/types/history/internal-types.d.ts +47 -0
  179. package/dist/types/history/parseCreditAccountTransaction.d.ts +29 -0
  180. package/dist/types/history/toLegacyOperation.d.ts +35 -0
  181. package/dist/types/history/trace-utils.d.ts +12 -0
  182. package/dist/types/history/types.d.ts +65 -0
  183. package/dist/types/plugins/adapters/abi/index.d.ts +1 -0
  184. package/dist/types/plugins/adapters/abi/targetContractAbi.d.ts +8262 -0
  185. package/dist/types/plugins/adapters/contracts/AbstractAdapter.d.ts +50 -8
  186. package/dist/types/plugins/adapters/contracts/AccountMigratorAdapterContract.d.ts +238 -4
  187. package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +113 -4
  188. package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +37 -4
  189. package/dist/types/plugins/adapters/contracts/CamelotV3AdapterContract.d.ts +210 -4
  190. package/dist/types/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +407 -8
  191. package/dist/types/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +208 -5
  192. package/dist/types/plugins/adapters/contracts/Curve2AssetsAdapterContract.d.ts +1244 -10
  193. package/dist/types/plugins/adapters/contracts/Curve3AssetsAdapterContract.d.ts +1244 -10
  194. package/dist/types/plugins/adapters/contracts/Curve4AssetsAdapterContract.d.ts +1244 -10
  195. package/dist/types/plugins/adapters/contracts/CurveV1AdapterDeposit.d.ts +575 -11
  196. package/dist/types/plugins/adapters/contracts/CurveV1AdapterStETHContract.d.ts +1244 -10
  197. package/dist/types/plugins/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +1213 -11
  198. package/dist/types/plugins/adapters/contracts/DaiUsdsAdapterContract.d.ts +60 -6
  199. package/dist/types/plugins/adapters/contracts/ERC4626AdapterContract.d.ts +483 -6
  200. package/dist/types/plugins/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +58 -6
  201. package/dist/types/plugins/adapters/contracts/FluidDexAdapterContract.d.ts +123 -6
  202. package/dist/types/plugins/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +133 -8
  203. package/dist/types/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +155 -5
  204. package/dist/types/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +240 -6
  205. package/dist/types/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +356 -6
  206. package/dist/types/plugins/adapters/contracts/LidoV1AdapterContract.d.ts +94 -7
  207. package/dist/types/plugins/adapters/contracts/MellowClaimerAdapterContract.d.ts +38 -5
  208. package/dist/types/plugins/adapters/contracts/MellowDVVAdapterContract.d.ts +479 -6
  209. package/dist/types/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +483 -7
  210. package/dist/types/plugins/adapters/contracts/MellowWrapperAdapterContract.d.ts +48 -5
  211. package/dist/types/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +42 -7
  212. package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +186 -7
  213. package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +1010 -5
  214. package/dist/types/plugins/adapters/contracts/StakingRewardsAdapterContract.d.ts +71 -8
  215. package/dist/types/plugins/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +123 -4
  216. package/dist/types/plugins/adapters/contracts/UniswapV2AdapterContract.d.ts +747 -5
  217. package/dist/types/plugins/adapters/contracts/UniswapV3AdapterContract.d.ts +171 -4
  218. package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +96 -5
  219. package/dist/types/plugins/adapters/contracts/UpshiftVaultAdapterContract.d.ts +74 -7
  220. package/dist/types/plugins/adapters/contracts/VelodromeV2AdapterContract.d.ts +109 -4
  221. package/dist/types/plugins/adapters/contracts/WstETHV1AdapterContract.d.ts +267 -5
  222. package/dist/types/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.d.ts +1664 -0
  223. package/dist/types/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.d.ts +611 -0
  224. package/dist/types/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.d.ts +686 -0
  225. package/dist/types/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.d.ts +1270 -0
  226. package/dist/types/plugins/adapters/contracts/deprecated/MellowDepositQueueAdapterContract.d.ts +19 -0
  227. package/dist/types/plugins/adapters/contracts/deprecated/MellowRedeemQueueAdapterContract.d.ts +18 -0
  228. package/dist/types/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.d.ts +531 -0
  229. package/dist/types/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.d.ts +662 -0
  230. package/dist/types/plugins/adapters/contracts/deprecated/index.d.ts +8 -0
  231. package/dist/types/plugins/adapters/contracts/index.d.ts +1 -8
  232. package/dist/types/plugins/adapters/contracts/types.d.ts +0 -6
  233. package/dist/types/plugins/adapters/createAdapter.d.ts +7 -0
  234. package/dist/types/plugins/adapters/index.d.ts +3 -0
  235. package/dist/types/plugins/adapters/legacyAdapterOperations.d.ts +200 -0
  236. package/dist/types/plugins/adapters/transferHelpers.d.ts +60 -0
  237. package/dist/types/plugins/adapters/types.d.ts +64 -1
  238. package/dist/types/sdk/base/BaseContract.d.ts +14 -1
  239. package/dist/types/sdk/base/ChainContractsRegister.d.ts +11 -1
  240. package/dist/types/sdk/base/PlaceholderContract.d.ts +2 -2
  241. package/dist/types/sdk/base/TokensMeta.d.ts +1 -1
  242. package/dist/types/sdk/base/errors.d.ts +3 -0
  243. package/dist/types/sdk/base/index.d.ts +1 -0
  244. package/dist/types/sdk/base/types.d.ts +24 -1
  245. package/dist/types/sdk/market/adapters/PlaceholderAdapterContracts.d.ts +9 -4
  246. package/dist/types/sdk/market/adapters/index.d.ts +1 -1
  247. package/dist/types/sdk/market/credit/CreditFacadeV310BaseContract.d.ts +856 -0
  248. package/dist/types/sdk/market/credit/CreditFacadeV310Contract.d.ts +6 -848
  249. package/dist/types/sdk/market/credit/index.d.ts +1 -0
  250. package/dist/types/sdk/utils/abi-decode.d.ts +14 -1
  251. package/package.json +7 -2
  252. package/dist/cjs/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +0 -51
  253. package/dist/cjs/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +0 -58
  254. package/dist/cjs/plugins/adapters/contracts/InfraredVaultAdapterContract.js +0 -49
  255. package/dist/cjs/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +0 -56
  256. package/dist/cjs/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +0 -51
  257. package/dist/cjs/plugins/adapters/contracts/MellowVaultAdapterContract.js +0 -46
  258. package/dist/esm/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +0 -27
  259. package/dist/esm/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +0 -34
  260. package/dist/esm/plugins/adapters/contracts/InfraredVaultAdapterContract.js +0 -25
  261. package/dist/esm/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +0 -32
  262. package/dist/esm/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +0 -27
  263. package/dist/esm/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +0 -24
  264. package/dist/esm/plugins/adapters/contracts/MellowVaultAdapterContract.js +0 -22
  265. package/dist/esm/plugins/adapters/contracts/YearnV2AdapterContract.js +0 -22
  266. package/dist/types/plugins/adapters/contracts/BalancerV2VaultAdapterContract.d.ts +0 -482
  267. package/dist/types/plugins/adapters/contracts/EqualizerRouterAdapterContract.d.ts +0 -225
  268. package/dist/types/plugins/adapters/contracts/InfraredVaultAdapterContract.d.ts +0 -198
  269. package/dist/types/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.d.ts +0 -396
  270. package/dist/types/plugins/adapters/contracts/MellowDepositQueueAdapterContract.d.ts +0 -13
  271. package/dist/types/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.d.ts +0 -12
  272. package/dist/types/plugins/adapters/contracts/MellowVaultAdapterContract.d.ts +0 -203
  273. package/dist/types/plugins/adapters/contracts/YearnV2AdapterContract.d.ts +0 -185
  274. /package/dist/esm/sdk/market/adapters/{factory.js → createAdapter.js} +0 -0
  275. /package/dist/types/sdk/market/adapters/{factory.d.ts → createAdapter.d.ts} +0 -0
@@ -1,6 +1,7 @@
1
1
  import { type Address, type DecodeFunctionDataReturnType } from "viem";
2
- import type { ConstructOptions } from "../../../sdk/index.js";
3
- import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
2
+ import type { ConstructOptions, ParsedCallV2 } from "../../../sdk/index.js";
3
+ import type { LegacyAdapterOperation, Transfers } from "../legacyAdapterOperations.js";
4
+ import type { ConcreteAdapterContractOptions } from "./AbstractAdapter.js";
4
5
  import { AbstractAdapterContract } from "./AbstractAdapter.js";
5
6
  declare const abi: readonly [{
6
7
  readonly type: "function";
@@ -205,12 +206,753 @@ declare const abi: readonly [{
205
206
  readonly name: "InvalidPathException";
206
207
  }];
207
208
  type abi = typeof abi;
208
- export declare class UniswapV2AdapterContract extends AbstractAdapterContract<abi> {
209
- readonly supportedPairs: {
209
+ declare const protocolAbi: readonly [{
210
+ readonly type: "function";
211
+ readonly name: "WETH";
212
+ readonly inputs: readonly [];
213
+ readonly outputs: readonly [{
214
+ readonly name: "";
215
+ readonly type: "address";
216
+ readonly internalType: "address";
217
+ }];
218
+ readonly stateMutability: "view";
219
+ }, {
220
+ readonly type: "function";
221
+ readonly name: "addLiquidity";
222
+ readonly inputs: readonly [{
223
+ readonly name: "tokenA";
224
+ readonly type: "address";
225
+ readonly internalType: "address";
226
+ }, {
227
+ readonly name: "tokenB";
228
+ readonly type: "address";
229
+ readonly internalType: "address";
230
+ }, {
231
+ readonly name: "amountADesired";
232
+ readonly type: "uint256";
233
+ readonly internalType: "uint256";
234
+ }, {
235
+ readonly name: "amountBDesired";
236
+ readonly type: "uint256";
237
+ readonly internalType: "uint256";
238
+ }, {
239
+ readonly name: "amountAMin";
240
+ readonly type: "uint256";
241
+ readonly internalType: "uint256";
242
+ }, {
243
+ readonly name: "amountBMin";
244
+ readonly type: "uint256";
245
+ readonly internalType: "uint256";
246
+ }, {
247
+ readonly name: "to";
248
+ readonly type: "address";
249
+ readonly internalType: "address";
250
+ }, {
251
+ readonly name: "deadline";
252
+ readonly type: "uint256";
253
+ readonly internalType: "uint256";
254
+ }];
255
+ readonly outputs: readonly [{
256
+ readonly name: "amountA";
257
+ readonly type: "uint256";
258
+ readonly internalType: "uint256";
259
+ }, {
260
+ readonly name: "amountB";
261
+ readonly type: "uint256";
262
+ readonly internalType: "uint256";
263
+ }, {
264
+ readonly name: "liquidity";
265
+ readonly type: "uint256";
266
+ readonly internalType: "uint256";
267
+ }];
268
+ readonly stateMutability: "nonpayable";
269
+ }, {
270
+ readonly type: "function";
271
+ readonly name: "addLiquidityETH";
272
+ readonly inputs: readonly [{
273
+ readonly name: "token";
274
+ readonly type: "address";
275
+ readonly internalType: "address";
276
+ }, {
277
+ readonly name: "amountTokenDesired";
278
+ readonly type: "uint256";
279
+ readonly internalType: "uint256";
280
+ }, {
281
+ readonly name: "amountTokenMin";
282
+ readonly type: "uint256";
283
+ readonly internalType: "uint256";
284
+ }, {
285
+ readonly name: "amountETHMin";
286
+ readonly type: "uint256";
287
+ readonly internalType: "uint256";
288
+ }, {
289
+ readonly name: "to";
290
+ readonly type: "address";
291
+ readonly internalType: "address";
292
+ }, {
293
+ readonly name: "deadline";
294
+ readonly type: "uint256";
295
+ readonly internalType: "uint256";
296
+ }];
297
+ readonly outputs: readonly [{
298
+ readonly name: "amountToken";
299
+ readonly type: "uint256";
300
+ readonly internalType: "uint256";
301
+ }, {
302
+ readonly name: "amountETH";
303
+ readonly type: "uint256";
304
+ readonly internalType: "uint256";
305
+ }, {
306
+ readonly name: "liquidity";
307
+ readonly type: "uint256";
308
+ readonly internalType: "uint256";
309
+ }];
310
+ readonly stateMutability: "payable";
311
+ }, {
312
+ readonly type: "function";
313
+ readonly name: "factory";
314
+ readonly inputs: readonly [];
315
+ readonly outputs: readonly [{
316
+ readonly name: "";
317
+ readonly type: "address";
318
+ readonly internalType: "address";
319
+ }];
320
+ readonly stateMutability: "view";
321
+ }, {
322
+ readonly type: "function";
323
+ readonly name: "getAmountIn";
324
+ readonly inputs: readonly [{
325
+ readonly name: "amountOut";
326
+ readonly type: "uint256";
327
+ readonly internalType: "uint256";
328
+ }, {
329
+ readonly name: "reserveIn";
330
+ readonly type: "uint256";
331
+ readonly internalType: "uint256";
332
+ }, {
333
+ readonly name: "reserveOut";
334
+ readonly type: "uint256";
335
+ readonly internalType: "uint256";
336
+ }];
337
+ readonly outputs: readonly [{
338
+ readonly name: "amountIn";
339
+ readonly type: "uint256";
340
+ readonly internalType: "uint256";
341
+ }];
342
+ readonly stateMutability: "view";
343
+ }, {
344
+ readonly type: "function";
345
+ readonly name: "getAmountOut";
346
+ readonly inputs: readonly [{
347
+ readonly name: "amountIn";
348
+ readonly type: "uint256";
349
+ readonly internalType: "uint256";
350
+ }, {
351
+ readonly name: "reserveIn";
352
+ readonly type: "uint256";
353
+ readonly internalType: "uint256";
354
+ }, {
355
+ readonly name: "reserveOut";
356
+ readonly type: "uint256";
357
+ readonly internalType: "uint256";
358
+ }];
359
+ readonly outputs: readonly [{
360
+ readonly name: "amountOut";
361
+ readonly type: "uint256";
362
+ readonly internalType: "uint256";
363
+ }];
364
+ readonly stateMutability: "view";
365
+ }, {
366
+ readonly type: "function";
367
+ readonly name: "getAmountsIn";
368
+ readonly inputs: readonly [{
369
+ readonly name: "amountOut";
370
+ readonly type: "uint256";
371
+ readonly internalType: "uint256";
372
+ }, {
373
+ readonly name: "path";
374
+ readonly type: "address[]";
375
+ readonly internalType: "address[]";
376
+ }];
377
+ readonly outputs: readonly [{
378
+ readonly name: "amounts";
379
+ readonly type: "uint256[]";
380
+ readonly internalType: "uint256[]";
381
+ }];
382
+ readonly stateMutability: "view";
383
+ }, {
384
+ readonly type: "function";
385
+ readonly name: "getAmountsOut";
386
+ readonly inputs: readonly [{
387
+ readonly name: "amountIn";
388
+ readonly type: "uint256";
389
+ readonly internalType: "uint256";
390
+ }, {
391
+ readonly name: "path";
392
+ readonly type: "address[]";
393
+ readonly internalType: "address[]";
394
+ }];
395
+ readonly outputs: readonly [{
396
+ readonly name: "amounts";
397
+ readonly type: "uint256[]";
398
+ readonly internalType: "uint256[]";
399
+ }];
400
+ readonly stateMutability: "view";
401
+ }, {
402
+ readonly type: "function";
403
+ readonly name: "quote";
404
+ readonly inputs: readonly [{
405
+ readonly name: "amountA";
406
+ readonly type: "uint256";
407
+ readonly internalType: "uint256";
408
+ }, {
409
+ readonly name: "reserveA";
410
+ readonly type: "uint256";
411
+ readonly internalType: "uint256";
412
+ }, {
413
+ readonly name: "reserveB";
414
+ readonly type: "uint256";
415
+ readonly internalType: "uint256";
416
+ }];
417
+ readonly outputs: readonly [{
418
+ readonly name: "amountB";
419
+ readonly type: "uint256";
420
+ readonly internalType: "uint256";
421
+ }];
422
+ readonly stateMutability: "view";
423
+ }, {
424
+ readonly type: "function";
425
+ readonly name: "removeLiquidity";
426
+ readonly inputs: readonly [{
427
+ readonly name: "tokenA";
428
+ readonly type: "address";
429
+ readonly internalType: "address";
430
+ }, {
431
+ readonly name: "tokenB";
432
+ readonly type: "address";
433
+ readonly internalType: "address";
434
+ }, {
435
+ readonly name: "liquidity";
436
+ readonly type: "uint256";
437
+ readonly internalType: "uint256";
438
+ }, {
439
+ readonly name: "amountAMin";
440
+ readonly type: "uint256";
441
+ readonly internalType: "uint256";
442
+ }, {
443
+ readonly name: "amountBMin";
444
+ readonly type: "uint256";
445
+ readonly internalType: "uint256";
446
+ }, {
447
+ readonly name: "to";
448
+ readonly type: "address";
449
+ readonly internalType: "address";
450
+ }, {
451
+ readonly name: "deadline";
452
+ readonly type: "uint256";
453
+ readonly internalType: "uint256";
454
+ }];
455
+ readonly outputs: readonly [{
456
+ readonly name: "amountA";
457
+ readonly type: "uint256";
458
+ readonly internalType: "uint256";
459
+ }, {
460
+ readonly name: "amountB";
461
+ readonly type: "uint256";
462
+ readonly internalType: "uint256";
463
+ }];
464
+ readonly stateMutability: "nonpayable";
465
+ }, {
466
+ readonly type: "function";
467
+ readonly name: "removeLiquidityETH";
468
+ readonly inputs: readonly [{
469
+ readonly name: "token";
470
+ readonly type: "address";
471
+ readonly internalType: "address";
472
+ }, {
473
+ readonly name: "liquidity";
474
+ readonly type: "uint256";
475
+ readonly internalType: "uint256";
476
+ }, {
477
+ readonly name: "amountTokenMin";
478
+ readonly type: "uint256";
479
+ readonly internalType: "uint256";
480
+ }, {
481
+ readonly name: "amountETHMin";
482
+ readonly type: "uint256";
483
+ readonly internalType: "uint256";
484
+ }, {
485
+ readonly name: "to";
486
+ readonly type: "address";
487
+ readonly internalType: "address";
488
+ }, {
489
+ readonly name: "deadline";
490
+ readonly type: "uint256";
491
+ readonly internalType: "uint256";
492
+ }];
493
+ readonly outputs: readonly [{
494
+ readonly name: "amountToken";
495
+ readonly type: "uint256";
496
+ readonly internalType: "uint256";
497
+ }, {
498
+ readonly name: "amountETH";
499
+ readonly type: "uint256";
500
+ readonly internalType: "uint256";
501
+ }];
502
+ readonly stateMutability: "nonpayable";
503
+ }, {
504
+ readonly type: "function";
505
+ readonly name: "removeLiquidityETHSupportingFeeOnTransferTokens";
506
+ readonly inputs: readonly [{
507
+ readonly name: "token";
508
+ readonly type: "address";
509
+ readonly internalType: "address";
510
+ }, {
511
+ readonly name: "liquidity";
512
+ readonly type: "uint256";
513
+ readonly internalType: "uint256";
514
+ }, {
515
+ readonly name: "amountTokenMin";
516
+ readonly type: "uint256";
517
+ readonly internalType: "uint256";
518
+ }, {
519
+ readonly name: "amountETHMin";
520
+ readonly type: "uint256";
521
+ readonly internalType: "uint256";
522
+ }, {
523
+ readonly name: "to";
524
+ readonly type: "address";
525
+ readonly internalType: "address";
526
+ }, {
527
+ readonly name: "deadline";
528
+ readonly type: "uint256";
529
+ readonly internalType: "uint256";
530
+ }];
531
+ readonly outputs: readonly [{
532
+ readonly name: "amountETH";
533
+ readonly type: "uint256";
534
+ readonly internalType: "uint256";
535
+ }];
536
+ readonly stateMutability: "nonpayable";
537
+ }, {
538
+ readonly type: "function";
539
+ readonly name: "removeLiquidityETHWithPermit";
540
+ readonly inputs: readonly [{
541
+ readonly name: "token";
542
+ readonly type: "address";
543
+ readonly internalType: "address";
544
+ }, {
545
+ readonly name: "liquidity";
546
+ readonly type: "uint256";
547
+ readonly internalType: "uint256";
548
+ }, {
549
+ readonly name: "amountTokenMin";
550
+ readonly type: "uint256";
551
+ readonly internalType: "uint256";
552
+ }, {
553
+ readonly name: "amountETHMin";
554
+ readonly type: "uint256";
555
+ readonly internalType: "uint256";
556
+ }, {
557
+ readonly name: "to";
558
+ readonly type: "address";
559
+ readonly internalType: "address";
560
+ }, {
561
+ readonly name: "deadline";
562
+ readonly type: "uint256";
563
+ readonly internalType: "uint256";
564
+ }, {
565
+ readonly name: "approveMax";
566
+ readonly type: "bool";
567
+ readonly internalType: "bool";
568
+ }, {
569
+ readonly name: "v";
570
+ readonly type: "uint8";
571
+ readonly internalType: "uint8";
572
+ }, {
573
+ readonly name: "r";
574
+ readonly type: "bytes32";
575
+ readonly internalType: "bytes32";
576
+ }, {
577
+ readonly name: "s";
578
+ readonly type: "bytes32";
579
+ readonly internalType: "bytes32";
580
+ }];
581
+ readonly outputs: readonly [{
582
+ readonly name: "amountToken";
583
+ readonly type: "uint256";
584
+ readonly internalType: "uint256";
585
+ }, {
586
+ readonly name: "amountETH";
587
+ readonly type: "uint256";
588
+ readonly internalType: "uint256";
589
+ }];
590
+ readonly stateMutability: "nonpayable";
591
+ }, {
592
+ readonly type: "function";
593
+ readonly name: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens";
594
+ readonly inputs: readonly [{
595
+ readonly name: "token";
596
+ readonly type: "address";
597
+ readonly internalType: "address";
598
+ }, {
599
+ readonly name: "liquidity";
600
+ readonly type: "uint256";
601
+ readonly internalType: "uint256";
602
+ }, {
603
+ readonly name: "amountTokenMin";
604
+ readonly type: "uint256";
605
+ readonly internalType: "uint256";
606
+ }, {
607
+ readonly name: "amountETHMin";
608
+ readonly type: "uint256";
609
+ readonly internalType: "uint256";
610
+ }, {
611
+ readonly name: "to";
612
+ readonly type: "address";
613
+ readonly internalType: "address";
614
+ }, {
615
+ readonly name: "deadline";
616
+ readonly type: "uint256";
617
+ readonly internalType: "uint256";
618
+ }, {
619
+ readonly name: "approveMax";
620
+ readonly type: "bool";
621
+ readonly internalType: "bool";
622
+ }, {
623
+ readonly name: "v";
624
+ readonly type: "uint8";
625
+ readonly internalType: "uint8";
626
+ }, {
627
+ readonly name: "r";
628
+ readonly type: "bytes32";
629
+ readonly internalType: "bytes32";
630
+ }, {
631
+ readonly name: "s";
632
+ readonly type: "bytes32";
633
+ readonly internalType: "bytes32";
634
+ }];
635
+ readonly outputs: readonly [{
636
+ readonly name: "amountETH";
637
+ readonly type: "uint256";
638
+ readonly internalType: "uint256";
639
+ }];
640
+ readonly stateMutability: "nonpayable";
641
+ }, {
642
+ readonly type: "function";
643
+ readonly name: "removeLiquidityWithPermit";
644
+ readonly inputs: readonly [{
645
+ readonly name: "tokenA";
646
+ readonly type: "address";
647
+ readonly internalType: "address";
648
+ }, {
649
+ readonly name: "tokenB";
650
+ readonly type: "address";
651
+ readonly internalType: "address";
652
+ }, {
653
+ readonly name: "liquidity";
654
+ readonly type: "uint256";
655
+ readonly internalType: "uint256";
656
+ }, {
657
+ readonly name: "amountAMin";
658
+ readonly type: "uint256";
659
+ readonly internalType: "uint256";
660
+ }, {
661
+ readonly name: "amountBMin";
662
+ readonly type: "uint256";
663
+ readonly internalType: "uint256";
664
+ }, {
665
+ readonly name: "to";
666
+ readonly type: "address";
667
+ readonly internalType: "address";
668
+ }, {
669
+ readonly name: "deadline";
670
+ readonly type: "uint256";
671
+ readonly internalType: "uint256";
672
+ }, {
673
+ readonly name: "approveMax";
674
+ readonly type: "bool";
675
+ readonly internalType: "bool";
676
+ }, {
677
+ readonly name: "v";
678
+ readonly type: "uint8";
679
+ readonly internalType: "uint8";
680
+ }, {
681
+ readonly name: "r";
682
+ readonly type: "bytes32";
683
+ readonly internalType: "bytes32";
684
+ }, {
685
+ readonly name: "s";
686
+ readonly type: "bytes32";
687
+ readonly internalType: "bytes32";
688
+ }];
689
+ readonly outputs: readonly [{
690
+ readonly name: "amountA";
691
+ readonly type: "uint256";
692
+ readonly internalType: "uint256";
693
+ }, {
694
+ readonly name: "amountB";
695
+ readonly type: "uint256";
696
+ readonly internalType: "uint256";
697
+ }];
698
+ readonly stateMutability: "nonpayable";
699
+ }, {
700
+ readonly type: "function";
701
+ readonly name: "swapETHForExactTokens";
702
+ readonly inputs: readonly [{
703
+ readonly name: "amountOut";
704
+ readonly type: "uint256";
705
+ readonly internalType: "uint256";
706
+ }, {
707
+ readonly name: "path";
708
+ readonly type: "address[]";
709
+ readonly internalType: "address[]";
710
+ }, {
711
+ readonly name: "to";
712
+ readonly type: "address";
713
+ readonly internalType: "address";
714
+ }, {
715
+ readonly name: "deadline";
716
+ readonly type: "uint256";
717
+ readonly internalType: "uint256";
718
+ }];
719
+ readonly outputs: readonly [{
720
+ readonly name: "amounts";
721
+ readonly type: "uint256[]";
722
+ readonly internalType: "uint256[]";
723
+ }];
724
+ readonly stateMutability: "payable";
725
+ }, {
726
+ readonly type: "function";
727
+ readonly name: "swapExactETHForTokens";
728
+ readonly inputs: readonly [{
729
+ readonly name: "amountOutMin";
730
+ readonly type: "uint256";
731
+ readonly internalType: "uint256";
732
+ }, {
733
+ readonly name: "path";
734
+ readonly type: "address[]";
735
+ readonly internalType: "address[]";
736
+ }, {
737
+ readonly name: "to";
738
+ readonly type: "address";
739
+ readonly internalType: "address";
740
+ }, {
741
+ readonly name: "deadline";
742
+ readonly type: "uint256";
743
+ readonly internalType: "uint256";
744
+ }];
745
+ readonly outputs: readonly [{
746
+ readonly name: "amounts";
747
+ readonly type: "uint256[]";
748
+ readonly internalType: "uint256[]";
749
+ }];
750
+ readonly stateMutability: "payable";
751
+ }, {
752
+ readonly type: "function";
753
+ readonly name: "swapExactETHForTokensSupportingFeeOnTransferTokens";
754
+ readonly inputs: readonly [{
755
+ readonly name: "amountOutMin";
756
+ readonly type: "uint256";
757
+ readonly internalType: "uint256";
758
+ }, {
759
+ readonly name: "path";
760
+ readonly type: "address[]";
761
+ readonly internalType: "address[]";
762
+ }, {
763
+ readonly name: "to";
764
+ readonly type: "address";
765
+ readonly internalType: "address";
766
+ }, {
767
+ readonly name: "deadline";
768
+ readonly type: "uint256";
769
+ readonly internalType: "uint256";
770
+ }];
771
+ readonly outputs: readonly [];
772
+ readonly stateMutability: "payable";
773
+ }, {
774
+ readonly type: "function";
775
+ readonly name: "swapExactTokensForETH";
776
+ readonly inputs: readonly [{
777
+ readonly name: "amountIn";
778
+ readonly type: "uint256";
779
+ readonly internalType: "uint256";
780
+ }, {
781
+ readonly name: "amountOutMin";
782
+ readonly type: "uint256";
783
+ readonly internalType: "uint256";
784
+ }, {
785
+ readonly name: "path";
786
+ readonly type: "address[]";
787
+ readonly internalType: "address[]";
788
+ }, {
789
+ readonly name: "to";
790
+ readonly type: "address";
791
+ readonly internalType: "address";
792
+ }, {
793
+ readonly name: "deadline";
794
+ readonly type: "uint256";
795
+ readonly internalType: "uint256";
796
+ }];
797
+ readonly outputs: readonly [{
798
+ readonly name: "amounts";
799
+ readonly type: "uint256[]";
800
+ readonly internalType: "uint256[]";
801
+ }];
802
+ readonly stateMutability: "nonpayable";
803
+ }, {
804
+ readonly type: "function";
805
+ readonly name: "swapExactTokensForETHSupportingFeeOnTransferTokens";
806
+ readonly inputs: readonly [{
807
+ readonly name: "amountIn";
808
+ readonly type: "uint256";
809
+ readonly internalType: "uint256";
810
+ }, {
811
+ readonly name: "amountOutMin";
812
+ readonly type: "uint256";
813
+ readonly internalType: "uint256";
814
+ }, {
815
+ readonly name: "path";
816
+ readonly type: "address[]";
817
+ readonly internalType: "address[]";
818
+ }, {
819
+ readonly name: "to";
820
+ readonly type: "address";
821
+ readonly internalType: "address";
822
+ }, {
823
+ readonly name: "deadline";
824
+ readonly type: "uint256";
825
+ readonly internalType: "uint256";
826
+ }];
827
+ readonly outputs: readonly [];
828
+ readonly stateMutability: "nonpayable";
829
+ }, {
830
+ readonly type: "function";
831
+ readonly name: "swapExactTokensForTokens";
832
+ readonly inputs: readonly [{
833
+ readonly name: "amountIn";
834
+ readonly type: "uint256";
835
+ readonly internalType: "uint256";
836
+ }, {
837
+ readonly name: "amountOutMin";
838
+ readonly type: "uint256";
839
+ readonly internalType: "uint256";
840
+ }, {
841
+ readonly name: "path";
842
+ readonly type: "address[]";
843
+ readonly internalType: "address[]";
844
+ }, {
845
+ readonly name: "to";
846
+ readonly type: "address";
847
+ readonly internalType: "address";
848
+ }, {
849
+ readonly name: "deadline";
850
+ readonly type: "uint256";
851
+ readonly internalType: "uint256";
852
+ }];
853
+ readonly outputs: readonly [{
854
+ readonly name: "amounts";
855
+ readonly type: "uint256[]";
856
+ readonly internalType: "uint256[]";
857
+ }];
858
+ readonly stateMutability: "nonpayable";
859
+ }, {
860
+ readonly type: "function";
861
+ readonly name: "swapExactTokensForTokensSupportingFeeOnTransferTokens";
862
+ readonly inputs: readonly [{
863
+ readonly name: "amountIn";
864
+ readonly type: "uint256";
865
+ readonly internalType: "uint256";
866
+ }, {
867
+ readonly name: "amountOutMin";
868
+ readonly type: "uint256";
869
+ readonly internalType: "uint256";
870
+ }, {
871
+ readonly name: "path";
872
+ readonly type: "address[]";
873
+ readonly internalType: "address[]";
874
+ }, {
875
+ readonly name: "to";
876
+ readonly type: "address";
877
+ readonly internalType: "address";
878
+ }, {
879
+ readonly name: "deadline";
880
+ readonly type: "uint256";
881
+ readonly internalType: "uint256";
882
+ }];
883
+ readonly outputs: readonly [];
884
+ readonly stateMutability: "nonpayable";
885
+ }, {
886
+ readonly type: "function";
887
+ readonly name: "swapTokensForExactETH";
888
+ readonly inputs: readonly [{
889
+ readonly name: "amountOut";
890
+ readonly type: "uint256";
891
+ readonly internalType: "uint256";
892
+ }, {
893
+ readonly name: "amountInMax";
894
+ readonly type: "uint256";
895
+ readonly internalType: "uint256";
896
+ }, {
897
+ readonly name: "path";
898
+ readonly type: "address[]";
899
+ readonly internalType: "address[]";
900
+ }, {
901
+ readonly name: "to";
902
+ readonly type: "address";
903
+ readonly internalType: "address";
904
+ }, {
905
+ readonly name: "deadline";
906
+ readonly type: "uint256";
907
+ readonly internalType: "uint256";
908
+ }];
909
+ readonly outputs: readonly [{
910
+ readonly name: "amounts";
911
+ readonly type: "uint256[]";
912
+ readonly internalType: "uint256[]";
913
+ }];
914
+ readonly stateMutability: "nonpayable";
915
+ }, {
916
+ readonly type: "function";
917
+ readonly name: "swapTokensForExactTokens";
918
+ readonly inputs: readonly [{
919
+ readonly name: "amountOut";
920
+ readonly type: "uint256";
921
+ readonly internalType: "uint256";
922
+ }, {
923
+ readonly name: "amountInMax";
924
+ readonly type: "uint256";
925
+ readonly internalType: "uint256";
926
+ }, {
927
+ readonly name: "path";
928
+ readonly type: "address[]";
929
+ readonly internalType: "address[]";
930
+ }, {
931
+ readonly name: "to";
932
+ readonly type: "address";
933
+ readonly internalType: "address";
934
+ }, {
935
+ readonly name: "deadline";
936
+ readonly type: "uint256";
937
+ readonly internalType: "uint256";
938
+ }];
939
+ readonly outputs: readonly [{
940
+ readonly name: "amounts";
941
+ readonly type: "uint256[]";
942
+ readonly internalType: "uint256[]";
943
+ }];
944
+ readonly stateMutability: "nonpayable";
945
+ }];
946
+ type protocolAbi = typeof protocolAbi;
947
+ export declare class UniswapV2AdapterContract extends AbstractAdapterContract<abi, protocolAbi> {
948
+ #private;
949
+ constructor(options: ConstructOptions, args: ConcreteAdapterContractOptions);
950
+ get supportedPairs(): {
210
951
  token0: Address;
211
952
  token1: Address;
212
953
  }[];
213
- constructor(options: ConstructOptions, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
214
954
  protected stringifyFunctionParams(params: DecodeFunctionDataReturnType<abi>): string[];
955
+ /** @see https://github.com/Gearbox-protocol/charts_server/blob/master/core/operation_type.go#L81-L91 */
956
+ protected classifyLegacyOperation(_parsed: ParsedCallV2, transfers: Transfers): LegacyAdapterOperation;
215
957
  }
216
958
  export {};