@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
@@ -0,0 +1,1270 @@
1
+ import { type Address } from "viem";
2
+ import { type ConstructOptions, type ParsedCallV2 } from "../../../../sdk/index.js";
3
+ import type { LegacyAdapterOperation, Transfers } from "../../legacyAdapterOperations.js";
4
+ import type { ConcreteAdapterContractOptions } from "../AbstractAdapter.js";
5
+ import { AbstractAdapterContract } from "../AbstractAdapter.js";
6
+ export declare const iKodiakIslandGatewayAdapterAbi: readonly [{
7
+ readonly type: "function";
8
+ readonly name: "addLiquidityImbalanced";
9
+ readonly inputs: readonly [{
10
+ readonly name: "island";
11
+ readonly type: "address";
12
+ readonly internalType: "address";
13
+ }, {
14
+ readonly name: "amount0";
15
+ readonly type: "uint256";
16
+ readonly internalType: "uint256";
17
+ }, {
18
+ readonly name: "amount1";
19
+ readonly type: "uint256";
20
+ readonly internalType: "uint256";
21
+ }, {
22
+ readonly name: "minLPAmount";
23
+ readonly type: "uint256";
24
+ readonly internalType: "uint256";
25
+ }, {
26
+ readonly name: "receiver";
27
+ readonly type: "address";
28
+ readonly internalType: "address";
29
+ }];
30
+ readonly outputs: readonly [{
31
+ readonly name: "";
32
+ readonly type: "bool";
33
+ readonly internalType: "bool";
34
+ }];
35
+ readonly stateMutability: "nonpayable";
36
+ }, {
37
+ readonly type: "function";
38
+ readonly name: "addLiquidityImbalancedAssisted";
39
+ readonly inputs: readonly [{
40
+ readonly name: "island";
41
+ readonly type: "address";
42
+ readonly internalType: "address";
43
+ }, {
44
+ readonly name: "amount0";
45
+ readonly type: "uint256";
46
+ readonly internalType: "uint256";
47
+ }, {
48
+ readonly name: "amount1";
49
+ readonly type: "uint256";
50
+ readonly internalType: "uint256";
51
+ }, {
52
+ readonly name: "minLPAmount";
53
+ readonly type: "uint256";
54
+ readonly internalType: "uint256";
55
+ }, {
56
+ readonly name: "receiver";
57
+ readonly type: "address";
58
+ readonly internalType: "address";
59
+ }, {
60
+ readonly name: "ratios";
61
+ readonly type: "tuple";
62
+ readonly internalType: "struct Ratios";
63
+ readonly components: readonly [{
64
+ readonly name: "priceRatio";
65
+ readonly type: "uint256";
66
+ readonly internalType: "uint256";
67
+ }, {
68
+ readonly name: "balance0";
69
+ readonly type: "uint256";
70
+ readonly internalType: "uint256";
71
+ }, {
72
+ readonly name: "balance1";
73
+ readonly type: "uint256";
74
+ readonly internalType: "uint256";
75
+ }, {
76
+ readonly name: "swapAll";
77
+ readonly type: "bool";
78
+ readonly internalType: "bool";
79
+ }, {
80
+ readonly name: "is0to1";
81
+ readonly type: "bool";
82
+ readonly internalType: "bool";
83
+ }];
84
+ }];
85
+ readonly outputs: readonly [{
86
+ readonly name: "";
87
+ readonly type: "bool";
88
+ readonly internalType: "bool";
89
+ }];
90
+ readonly stateMutability: "nonpayable";
91
+ }, {
92
+ readonly type: "function";
93
+ readonly name: "addLiquidityImbalancedDiff";
94
+ readonly inputs: readonly [{
95
+ readonly name: "island";
96
+ readonly type: "address";
97
+ readonly internalType: "address";
98
+ }, {
99
+ readonly name: "leftoverAmount0";
100
+ readonly type: "uint256";
101
+ readonly internalType: "uint256";
102
+ }, {
103
+ readonly name: "leftoverAmount1";
104
+ readonly type: "uint256";
105
+ readonly internalType: "uint256";
106
+ }, {
107
+ readonly name: "minRatesRAY";
108
+ readonly type: "uint256[2]";
109
+ readonly internalType: "uint256[2]";
110
+ }];
111
+ readonly outputs: readonly [{
112
+ readonly name: "";
113
+ readonly type: "bool";
114
+ readonly internalType: "bool";
115
+ }];
116
+ readonly stateMutability: "nonpayable";
117
+ }, {
118
+ readonly type: "function";
119
+ readonly name: "addLiquidityImbalancedDiffAssisted";
120
+ readonly inputs: readonly [{
121
+ readonly name: "island";
122
+ readonly type: "address";
123
+ readonly internalType: "address";
124
+ }, {
125
+ readonly name: "leftoverAmount0";
126
+ readonly type: "uint256";
127
+ readonly internalType: "uint256";
128
+ }, {
129
+ readonly name: "leftoverAmount1";
130
+ readonly type: "uint256";
131
+ readonly internalType: "uint256";
132
+ }, {
133
+ readonly name: "minRatesRAY";
134
+ readonly type: "uint256[2]";
135
+ readonly internalType: "uint256[2]";
136
+ }, {
137
+ readonly name: "ratios";
138
+ readonly type: "tuple";
139
+ readonly internalType: "struct Ratios";
140
+ readonly components: readonly [{
141
+ readonly name: "priceRatio";
142
+ readonly type: "uint256";
143
+ readonly internalType: "uint256";
144
+ }, {
145
+ readonly name: "balance0";
146
+ readonly type: "uint256";
147
+ readonly internalType: "uint256";
148
+ }, {
149
+ readonly name: "balance1";
150
+ readonly type: "uint256";
151
+ readonly internalType: "uint256";
152
+ }, {
153
+ readonly name: "swapAll";
154
+ readonly type: "bool";
155
+ readonly internalType: "bool";
156
+ }, {
157
+ readonly name: "is0to1";
158
+ readonly type: "bool";
159
+ readonly internalType: "bool";
160
+ }];
161
+ }];
162
+ readonly outputs: readonly [{
163
+ readonly name: "";
164
+ readonly type: "bool";
165
+ readonly internalType: "bool";
166
+ }];
167
+ readonly stateMutability: "nonpayable";
168
+ }, {
169
+ readonly type: "function";
170
+ readonly name: "allowedIslands";
171
+ readonly inputs: readonly [];
172
+ readonly outputs: readonly [{
173
+ readonly name: "";
174
+ readonly type: "tuple[]";
175
+ readonly internalType: "struct KodiakIslandStatus[]";
176
+ readonly components: readonly [{
177
+ readonly name: "island";
178
+ readonly type: "address";
179
+ readonly internalType: "address";
180
+ }, {
181
+ readonly name: "status";
182
+ readonly type: "uint8";
183
+ readonly internalType: "enum IslandStatus";
184
+ }];
185
+ }];
186
+ readonly stateMutability: "view";
187
+ }, {
188
+ readonly type: "function";
189
+ readonly name: "contractType";
190
+ readonly inputs: readonly [];
191
+ readonly outputs: readonly [{
192
+ readonly name: "";
193
+ readonly type: "bytes32";
194
+ readonly internalType: "bytes32";
195
+ }];
196
+ readonly stateMutability: "view";
197
+ }, {
198
+ readonly type: "function";
199
+ readonly name: "creditManager";
200
+ readonly inputs: readonly [];
201
+ readonly outputs: readonly [{
202
+ readonly name: "";
203
+ readonly type: "address";
204
+ readonly internalType: "address";
205
+ }];
206
+ readonly stateMutability: "view";
207
+ }, {
208
+ readonly type: "function";
209
+ readonly name: "removeLiquiditySingle";
210
+ readonly inputs: readonly [{
211
+ readonly name: "island";
212
+ readonly type: "address";
213
+ readonly internalType: "address";
214
+ }, {
215
+ readonly name: "lpAmount";
216
+ readonly type: "uint256";
217
+ readonly internalType: "uint256";
218
+ }, {
219
+ readonly name: "tokenOut";
220
+ readonly type: "address";
221
+ readonly internalType: "address";
222
+ }, {
223
+ readonly name: "minAmountOut";
224
+ readonly type: "uint256";
225
+ readonly internalType: "uint256";
226
+ }, {
227
+ readonly name: "receiver";
228
+ readonly type: "address";
229
+ readonly internalType: "address";
230
+ }];
231
+ readonly outputs: readonly [{
232
+ readonly name: "";
233
+ readonly type: "bool";
234
+ readonly internalType: "bool";
235
+ }];
236
+ readonly stateMutability: "nonpayable";
237
+ }, {
238
+ readonly type: "function";
239
+ readonly name: "removeLiquiditySingleDiff";
240
+ readonly inputs: readonly [{
241
+ readonly name: "island";
242
+ readonly type: "address";
243
+ readonly internalType: "address";
244
+ }, {
245
+ readonly name: "leftoverAmount";
246
+ readonly type: "uint256";
247
+ readonly internalType: "uint256";
248
+ }, {
249
+ readonly name: "tokenOut";
250
+ readonly type: "address";
251
+ readonly internalType: "address";
252
+ }, {
253
+ readonly name: "minRateRAY";
254
+ readonly type: "uint256";
255
+ readonly internalType: "uint256";
256
+ }];
257
+ readonly outputs: readonly [{
258
+ readonly name: "";
259
+ readonly type: "bool";
260
+ readonly internalType: "bool";
261
+ }];
262
+ readonly stateMutability: "nonpayable";
263
+ }, {
264
+ readonly type: "function";
265
+ readonly name: "serialize";
266
+ readonly inputs: readonly [];
267
+ readonly outputs: readonly [{
268
+ readonly name: "serializedData";
269
+ readonly type: "bytes";
270
+ readonly internalType: "bytes";
271
+ }];
272
+ readonly stateMutability: "view";
273
+ }, {
274
+ readonly type: "function";
275
+ readonly name: "setIslandStatusBatch";
276
+ readonly inputs: readonly [{
277
+ readonly name: "islands";
278
+ readonly type: "tuple[]";
279
+ readonly internalType: "struct KodiakIslandStatus[]";
280
+ readonly components: readonly [{
281
+ readonly name: "island";
282
+ readonly type: "address";
283
+ readonly internalType: "address";
284
+ }, {
285
+ readonly name: "status";
286
+ readonly type: "uint8";
287
+ readonly internalType: "enum IslandStatus";
288
+ }];
289
+ }];
290
+ readonly outputs: readonly [];
291
+ readonly stateMutability: "nonpayable";
292
+ }, {
293
+ readonly type: "function";
294
+ readonly name: "swap";
295
+ readonly inputs: readonly [{
296
+ readonly name: "island";
297
+ readonly type: "address";
298
+ readonly internalType: "address";
299
+ }, {
300
+ readonly name: "tokenIn";
301
+ readonly type: "address";
302
+ readonly internalType: "address";
303
+ }, {
304
+ readonly name: "amountIn";
305
+ readonly type: "uint256";
306
+ readonly internalType: "uint256";
307
+ }, {
308
+ readonly name: "amountOutMin";
309
+ readonly type: "uint256";
310
+ readonly internalType: "uint256";
311
+ }];
312
+ readonly outputs: readonly [{
313
+ readonly name: "";
314
+ readonly type: "bool";
315
+ readonly internalType: "bool";
316
+ }];
317
+ readonly stateMutability: "nonpayable";
318
+ }, {
319
+ readonly type: "function";
320
+ readonly name: "swapDiff";
321
+ readonly inputs: readonly [{
322
+ readonly name: "island";
323
+ readonly type: "address";
324
+ readonly internalType: "address";
325
+ }, {
326
+ readonly name: "tokenIn";
327
+ readonly type: "address";
328
+ readonly internalType: "address";
329
+ }, {
330
+ readonly name: "leftoverAmount";
331
+ readonly type: "uint256";
332
+ readonly internalType: "uint256";
333
+ }, {
334
+ readonly name: "minRateRAY";
335
+ readonly type: "uint256";
336
+ readonly internalType: "uint256";
337
+ }];
338
+ readonly outputs: readonly [{
339
+ readonly name: "";
340
+ readonly type: "bool";
341
+ readonly internalType: "bool";
342
+ }];
343
+ readonly stateMutability: "nonpayable";
344
+ }, {
345
+ readonly type: "function";
346
+ readonly name: "targetContract";
347
+ readonly inputs: readonly [];
348
+ readonly outputs: readonly [{
349
+ readonly name: "";
350
+ readonly type: "address";
351
+ readonly internalType: "address";
352
+ }];
353
+ readonly stateMutability: "view";
354
+ }, {
355
+ readonly type: "function";
356
+ readonly name: "version";
357
+ readonly inputs: readonly [];
358
+ readonly outputs: readonly [{
359
+ readonly name: "";
360
+ readonly type: "uint256";
361
+ readonly internalType: "uint256";
362
+ }];
363
+ readonly stateMutability: "view";
364
+ }, {
365
+ readonly type: "event";
366
+ readonly name: "SetIslandStatus";
367
+ readonly inputs: readonly [{
368
+ readonly name: "island";
369
+ readonly type: "address";
370
+ readonly indexed: true;
371
+ readonly internalType: "address";
372
+ }, {
373
+ readonly name: "status";
374
+ readonly type: "uint8";
375
+ readonly indexed: false;
376
+ readonly internalType: "enum IslandStatus";
377
+ }];
378
+ readonly anonymous: false;
379
+ }, {
380
+ readonly type: "error";
381
+ readonly name: "IslandNotAllowedException";
382
+ readonly inputs: readonly [{
383
+ readonly name: "island";
384
+ readonly type: "address";
385
+ readonly internalType: "address";
386
+ }];
387
+ }];
388
+ export declare const iKodiakIslandGatewayAbi: readonly [{
389
+ readonly type: "function";
390
+ readonly name: "addLiquidityImbalanced";
391
+ readonly inputs: readonly [{
392
+ readonly name: "island";
393
+ readonly type: "address";
394
+ readonly internalType: "address";
395
+ }, {
396
+ readonly name: "amount0";
397
+ readonly type: "uint256";
398
+ readonly internalType: "uint256";
399
+ }, {
400
+ readonly name: "amount1";
401
+ readonly type: "uint256";
402
+ readonly internalType: "uint256";
403
+ }, {
404
+ readonly name: "minLPAmount";
405
+ readonly type: "uint256";
406
+ readonly internalType: "uint256";
407
+ }, {
408
+ readonly name: "receiver";
409
+ readonly type: "address";
410
+ readonly internalType: "address";
411
+ }];
412
+ readonly outputs: readonly [{
413
+ readonly name: "lpAmount";
414
+ readonly type: "uint256";
415
+ readonly internalType: "uint256";
416
+ }];
417
+ readonly stateMutability: "nonpayable";
418
+ }, {
419
+ readonly type: "function";
420
+ readonly name: "addLiquidityImbalancedAssisted";
421
+ readonly inputs: readonly [{
422
+ readonly name: "island";
423
+ readonly type: "address";
424
+ readonly internalType: "address";
425
+ }, {
426
+ readonly name: "amount0";
427
+ readonly type: "uint256";
428
+ readonly internalType: "uint256";
429
+ }, {
430
+ readonly name: "amount1";
431
+ readonly type: "uint256";
432
+ readonly internalType: "uint256";
433
+ }, {
434
+ readonly name: "minLPAmount";
435
+ readonly type: "uint256";
436
+ readonly internalType: "uint256";
437
+ }, {
438
+ readonly name: "receiver";
439
+ readonly type: "address";
440
+ readonly internalType: "address";
441
+ }, {
442
+ readonly name: "ratios";
443
+ readonly type: "tuple";
444
+ readonly internalType: "struct Ratios";
445
+ readonly components: readonly [{
446
+ readonly name: "priceRatio";
447
+ readonly type: "uint256";
448
+ readonly internalType: "uint256";
449
+ }, {
450
+ readonly name: "balance0";
451
+ readonly type: "uint256";
452
+ readonly internalType: "uint256";
453
+ }, {
454
+ readonly name: "balance1";
455
+ readonly type: "uint256";
456
+ readonly internalType: "uint256";
457
+ }, {
458
+ readonly name: "swapAll";
459
+ readonly type: "bool";
460
+ readonly internalType: "bool";
461
+ }, {
462
+ readonly name: "is0to1";
463
+ readonly type: "bool";
464
+ readonly internalType: "bool";
465
+ }];
466
+ }];
467
+ readonly outputs: readonly [{
468
+ readonly name: "lpAmount";
469
+ readonly type: "uint256";
470
+ readonly internalType: "uint256";
471
+ }];
472
+ readonly stateMutability: "nonpayable";
473
+ }, {
474
+ readonly type: "function";
475
+ readonly name: "estimateAddLiquidityImbalanced";
476
+ readonly inputs: readonly [{
477
+ readonly name: "island";
478
+ readonly type: "address";
479
+ readonly internalType: "address";
480
+ }, {
481
+ readonly name: "amount0";
482
+ readonly type: "uint256";
483
+ readonly internalType: "uint256";
484
+ }, {
485
+ readonly name: "amount1";
486
+ readonly type: "uint256";
487
+ readonly internalType: "uint256";
488
+ }];
489
+ readonly outputs: readonly [{
490
+ readonly name: "lpAmount";
491
+ readonly type: "uint256";
492
+ readonly internalType: "uint256";
493
+ }, {
494
+ readonly name: "ratios";
495
+ readonly type: "tuple";
496
+ readonly internalType: "struct Ratios";
497
+ readonly components: readonly [{
498
+ readonly name: "priceRatio";
499
+ readonly type: "uint256";
500
+ readonly internalType: "uint256";
501
+ }, {
502
+ readonly name: "balance0";
503
+ readonly type: "uint256";
504
+ readonly internalType: "uint256";
505
+ }, {
506
+ readonly name: "balance1";
507
+ readonly type: "uint256";
508
+ readonly internalType: "uint256";
509
+ }, {
510
+ readonly name: "swapAll";
511
+ readonly type: "bool";
512
+ readonly internalType: "bool";
513
+ }, {
514
+ readonly name: "is0to1";
515
+ readonly type: "bool";
516
+ readonly internalType: "bool";
517
+ }];
518
+ }];
519
+ readonly stateMutability: "nonpayable";
520
+ }, {
521
+ readonly type: "function";
522
+ readonly name: "estimateRemoveLiquiditySingle";
523
+ readonly inputs: readonly [{
524
+ readonly name: "island";
525
+ readonly type: "address";
526
+ readonly internalType: "address";
527
+ }, {
528
+ readonly name: "lpAmount";
529
+ readonly type: "uint256";
530
+ readonly internalType: "uint256";
531
+ }, {
532
+ readonly name: "tokenOut";
533
+ readonly type: "address";
534
+ readonly internalType: "address";
535
+ }];
536
+ readonly outputs: readonly [{
537
+ readonly name: "amountOut";
538
+ readonly type: "uint256";
539
+ readonly internalType: "uint256";
540
+ }];
541
+ readonly stateMutability: "nonpayable";
542
+ }, {
543
+ readonly type: "function";
544
+ readonly name: "estimateSwap";
545
+ readonly inputs: readonly [{
546
+ readonly name: "island";
547
+ readonly type: "address";
548
+ readonly internalType: "address";
549
+ }, {
550
+ readonly name: "tokenIn";
551
+ readonly type: "address";
552
+ readonly internalType: "address";
553
+ }, {
554
+ readonly name: "amountIn";
555
+ readonly type: "uint256";
556
+ readonly internalType: "uint256";
557
+ }];
558
+ readonly outputs: readonly [{
559
+ readonly name: "amountOut";
560
+ readonly type: "uint256";
561
+ readonly internalType: "uint256";
562
+ }];
563
+ readonly stateMutability: "nonpayable";
564
+ }, {
565
+ readonly type: "function";
566
+ readonly name: "removeLiquiditySingle";
567
+ readonly inputs: readonly [{
568
+ readonly name: "island";
569
+ readonly type: "address";
570
+ readonly internalType: "address";
571
+ }, {
572
+ readonly name: "lpAmount";
573
+ readonly type: "uint256";
574
+ readonly internalType: "uint256";
575
+ }, {
576
+ readonly name: "tokenOut";
577
+ readonly type: "address";
578
+ readonly internalType: "address";
579
+ }, {
580
+ readonly name: "minAmountOut";
581
+ readonly type: "uint256";
582
+ readonly internalType: "uint256";
583
+ }, {
584
+ readonly name: "receiver";
585
+ readonly type: "address";
586
+ readonly internalType: "address";
587
+ }];
588
+ readonly outputs: readonly [{
589
+ readonly name: "amountOut";
590
+ readonly type: "uint256";
591
+ readonly internalType: "uint256";
592
+ }];
593
+ readonly stateMutability: "nonpayable";
594
+ }, {
595
+ readonly type: "function";
596
+ readonly name: "swap";
597
+ readonly inputs: readonly [{
598
+ readonly name: "island";
599
+ readonly type: "address";
600
+ readonly internalType: "address";
601
+ }, {
602
+ readonly name: "tokenIn";
603
+ readonly type: "address";
604
+ readonly internalType: "address";
605
+ }, {
606
+ readonly name: "amountIn";
607
+ readonly type: "uint256";
608
+ readonly internalType: "uint256";
609
+ }, {
610
+ readonly name: "amountOutMin";
611
+ readonly type: "uint256";
612
+ readonly internalType: "uint256";
613
+ }];
614
+ readonly outputs: readonly [{
615
+ readonly name: "amountOut";
616
+ readonly type: "uint256";
617
+ readonly internalType: "uint256";
618
+ }];
619
+ readonly stateMutability: "nonpayable";
620
+ }, {
621
+ readonly type: "error";
622
+ readonly name: "InsufficientAmountOutException";
623
+ readonly inputs: readonly [];
624
+ }, {
625
+ readonly type: "error";
626
+ readonly name: "InvalidTokenInException";
627
+ readonly inputs: readonly [];
628
+ }];
629
+ declare const abi: readonly [{
630
+ readonly type: "function";
631
+ readonly name: "addLiquidityImbalanced";
632
+ readonly inputs: readonly [{
633
+ readonly name: "island";
634
+ readonly type: "address";
635
+ readonly internalType: "address";
636
+ }, {
637
+ readonly name: "amount0";
638
+ readonly type: "uint256";
639
+ readonly internalType: "uint256";
640
+ }, {
641
+ readonly name: "amount1";
642
+ readonly type: "uint256";
643
+ readonly internalType: "uint256";
644
+ }, {
645
+ readonly name: "minLPAmount";
646
+ readonly type: "uint256";
647
+ readonly internalType: "uint256";
648
+ }, {
649
+ readonly name: "receiver";
650
+ readonly type: "address";
651
+ readonly internalType: "address";
652
+ }];
653
+ readonly outputs: readonly [{
654
+ readonly name: "";
655
+ readonly type: "bool";
656
+ readonly internalType: "bool";
657
+ }];
658
+ readonly stateMutability: "nonpayable";
659
+ }, {
660
+ readonly type: "function";
661
+ readonly name: "addLiquidityImbalancedAssisted";
662
+ readonly inputs: readonly [{
663
+ readonly name: "island";
664
+ readonly type: "address";
665
+ readonly internalType: "address";
666
+ }, {
667
+ readonly name: "amount0";
668
+ readonly type: "uint256";
669
+ readonly internalType: "uint256";
670
+ }, {
671
+ readonly name: "amount1";
672
+ readonly type: "uint256";
673
+ readonly internalType: "uint256";
674
+ }, {
675
+ readonly name: "minLPAmount";
676
+ readonly type: "uint256";
677
+ readonly internalType: "uint256";
678
+ }, {
679
+ readonly name: "receiver";
680
+ readonly type: "address";
681
+ readonly internalType: "address";
682
+ }, {
683
+ readonly name: "ratios";
684
+ readonly type: "tuple";
685
+ readonly internalType: "struct Ratios";
686
+ readonly components: readonly [{
687
+ readonly name: "priceRatio";
688
+ readonly type: "uint256";
689
+ readonly internalType: "uint256";
690
+ }, {
691
+ readonly name: "balance0";
692
+ readonly type: "uint256";
693
+ readonly internalType: "uint256";
694
+ }, {
695
+ readonly name: "balance1";
696
+ readonly type: "uint256";
697
+ readonly internalType: "uint256";
698
+ }, {
699
+ readonly name: "swapAll";
700
+ readonly type: "bool";
701
+ readonly internalType: "bool";
702
+ }, {
703
+ readonly name: "is0to1";
704
+ readonly type: "bool";
705
+ readonly internalType: "bool";
706
+ }];
707
+ }];
708
+ readonly outputs: readonly [{
709
+ readonly name: "";
710
+ readonly type: "bool";
711
+ readonly internalType: "bool";
712
+ }];
713
+ readonly stateMutability: "nonpayable";
714
+ }, {
715
+ readonly type: "function";
716
+ readonly name: "addLiquidityImbalancedDiff";
717
+ readonly inputs: readonly [{
718
+ readonly name: "island";
719
+ readonly type: "address";
720
+ readonly internalType: "address";
721
+ }, {
722
+ readonly name: "leftoverAmount0";
723
+ readonly type: "uint256";
724
+ readonly internalType: "uint256";
725
+ }, {
726
+ readonly name: "leftoverAmount1";
727
+ readonly type: "uint256";
728
+ readonly internalType: "uint256";
729
+ }, {
730
+ readonly name: "minRatesRAY";
731
+ readonly type: "uint256[2]";
732
+ readonly internalType: "uint256[2]";
733
+ }];
734
+ readonly outputs: readonly [{
735
+ readonly name: "";
736
+ readonly type: "bool";
737
+ readonly internalType: "bool";
738
+ }];
739
+ readonly stateMutability: "nonpayable";
740
+ }, {
741
+ readonly type: "function";
742
+ readonly name: "addLiquidityImbalancedDiffAssisted";
743
+ readonly inputs: readonly [{
744
+ readonly name: "island";
745
+ readonly type: "address";
746
+ readonly internalType: "address";
747
+ }, {
748
+ readonly name: "leftoverAmount0";
749
+ readonly type: "uint256";
750
+ readonly internalType: "uint256";
751
+ }, {
752
+ readonly name: "leftoverAmount1";
753
+ readonly type: "uint256";
754
+ readonly internalType: "uint256";
755
+ }, {
756
+ readonly name: "minRatesRAY";
757
+ readonly type: "uint256[2]";
758
+ readonly internalType: "uint256[2]";
759
+ }, {
760
+ readonly name: "ratios";
761
+ readonly type: "tuple";
762
+ readonly internalType: "struct Ratios";
763
+ readonly components: readonly [{
764
+ readonly name: "priceRatio";
765
+ readonly type: "uint256";
766
+ readonly internalType: "uint256";
767
+ }, {
768
+ readonly name: "balance0";
769
+ readonly type: "uint256";
770
+ readonly internalType: "uint256";
771
+ }, {
772
+ readonly name: "balance1";
773
+ readonly type: "uint256";
774
+ readonly internalType: "uint256";
775
+ }, {
776
+ readonly name: "swapAll";
777
+ readonly type: "bool";
778
+ readonly internalType: "bool";
779
+ }, {
780
+ readonly name: "is0to1";
781
+ readonly type: "bool";
782
+ readonly internalType: "bool";
783
+ }];
784
+ }];
785
+ readonly outputs: readonly [{
786
+ readonly name: "";
787
+ readonly type: "bool";
788
+ readonly internalType: "bool";
789
+ }];
790
+ readonly stateMutability: "nonpayable";
791
+ }, {
792
+ readonly type: "function";
793
+ readonly name: "allowedIslands";
794
+ readonly inputs: readonly [];
795
+ readonly outputs: readonly [{
796
+ readonly name: "";
797
+ readonly type: "tuple[]";
798
+ readonly internalType: "struct KodiakIslandStatus[]";
799
+ readonly components: readonly [{
800
+ readonly name: "island";
801
+ readonly type: "address";
802
+ readonly internalType: "address";
803
+ }, {
804
+ readonly name: "status";
805
+ readonly type: "uint8";
806
+ readonly internalType: "enum IslandStatus";
807
+ }];
808
+ }];
809
+ readonly stateMutability: "view";
810
+ }, {
811
+ readonly type: "function";
812
+ readonly name: "contractType";
813
+ readonly inputs: readonly [];
814
+ readonly outputs: readonly [{
815
+ readonly name: "";
816
+ readonly type: "bytes32";
817
+ readonly internalType: "bytes32";
818
+ }];
819
+ readonly stateMutability: "view";
820
+ }, {
821
+ readonly type: "function";
822
+ readonly name: "creditManager";
823
+ readonly inputs: readonly [];
824
+ readonly outputs: readonly [{
825
+ readonly name: "";
826
+ readonly type: "address";
827
+ readonly internalType: "address";
828
+ }];
829
+ readonly stateMutability: "view";
830
+ }, {
831
+ readonly type: "function";
832
+ readonly name: "removeLiquiditySingle";
833
+ readonly inputs: readonly [{
834
+ readonly name: "island";
835
+ readonly type: "address";
836
+ readonly internalType: "address";
837
+ }, {
838
+ readonly name: "lpAmount";
839
+ readonly type: "uint256";
840
+ readonly internalType: "uint256";
841
+ }, {
842
+ readonly name: "tokenOut";
843
+ readonly type: "address";
844
+ readonly internalType: "address";
845
+ }, {
846
+ readonly name: "minAmountOut";
847
+ readonly type: "uint256";
848
+ readonly internalType: "uint256";
849
+ }, {
850
+ readonly name: "receiver";
851
+ readonly type: "address";
852
+ readonly internalType: "address";
853
+ }];
854
+ readonly outputs: readonly [{
855
+ readonly name: "";
856
+ readonly type: "bool";
857
+ readonly internalType: "bool";
858
+ }];
859
+ readonly stateMutability: "nonpayable";
860
+ }, {
861
+ readonly type: "function";
862
+ readonly name: "removeLiquiditySingleDiff";
863
+ readonly inputs: readonly [{
864
+ readonly name: "island";
865
+ readonly type: "address";
866
+ readonly internalType: "address";
867
+ }, {
868
+ readonly name: "leftoverAmount";
869
+ readonly type: "uint256";
870
+ readonly internalType: "uint256";
871
+ }, {
872
+ readonly name: "tokenOut";
873
+ readonly type: "address";
874
+ readonly internalType: "address";
875
+ }, {
876
+ readonly name: "minRateRAY";
877
+ readonly type: "uint256";
878
+ readonly internalType: "uint256";
879
+ }];
880
+ readonly outputs: readonly [{
881
+ readonly name: "";
882
+ readonly type: "bool";
883
+ readonly internalType: "bool";
884
+ }];
885
+ readonly stateMutability: "nonpayable";
886
+ }, {
887
+ readonly type: "function";
888
+ readonly name: "serialize";
889
+ readonly inputs: readonly [];
890
+ readonly outputs: readonly [{
891
+ readonly name: "serializedData";
892
+ readonly type: "bytes";
893
+ readonly internalType: "bytes";
894
+ }];
895
+ readonly stateMutability: "view";
896
+ }, {
897
+ readonly type: "function";
898
+ readonly name: "setIslandStatusBatch";
899
+ readonly inputs: readonly [{
900
+ readonly name: "islands";
901
+ readonly type: "tuple[]";
902
+ readonly internalType: "struct KodiakIslandStatus[]";
903
+ readonly components: readonly [{
904
+ readonly name: "island";
905
+ readonly type: "address";
906
+ readonly internalType: "address";
907
+ }, {
908
+ readonly name: "status";
909
+ readonly type: "uint8";
910
+ readonly internalType: "enum IslandStatus";
911
+ }];
912
+ }];
913
+ readonly outputs: readonly [];
914
+ readonly stateMutability: "nonpayable";
915
+ }, {
916
+ readonly type: "function";
917
+ readonly name: "swap";
918
+ readonly inputs: readonly [{
919
+ readonly name: "island";
920
+ readonly type: "address";
921
+ readonly internalType: "address";
922
+ }, {
923
+ readonly name: "tokenIn";
924
+ readonly type: "address";
925
+ readonly internalType: "address";
926
+ }, {
927
+ readonly name: "amountIn";
928
+ readonly type: "uint256";
929
+ readonly internalType: "uint256";
930
+ }, {
931
+ readonly name: "amountOutMin";
932
+ readonly type: "uint256";
933
+ readonly internalType: "uint256";
934
+ }];
935
+ readonly outputs: readonly [{
936
+ readonly name: "";
937
+ readonly type: "bool";
938
+ readonly internalType: "bool";
939
+ }];
940
+ readonly stateMutability: "nonpayable";
941
+ }, {
942
+ readonly type: "function";
943
+ readonly name: "swapDiff";
944
+ readonly inputs: readonly [{
945
+ readonly name: "island";
946
+ readonly type: "address";
947
+ readonly internalType: "address";
948
+ }, {
949
+ readonly name: "tokenIn";
950
+ readonly type: "address";
951
+ readonly internalType: "address";
952
+ }, {
953
+ readonly name: "leftoverAmount";
954
+ readonly type: "uint256";
955
+ readonly internalType: "uint256";
956
+ }, {
957
+ readonly name: "minRateRAY";
958
+ readonly type: "uint256";
959
+ readonly internalType: "uint256";
960
+ }];
961
+ readonly outputs: readonly [{
962
+ readonly name: "";
963
+ readonly type: "bool";
964
+ readonly internalType: "bool";
965
+ }];
966
+ readonly stateMutability: "nonpayable";
967
+ }, {
968
+ readonly type: "function";
969
+ readonly name: "targetContract";
970
+ readonly inputs: readonly [];
971
+ readonly outputs: readonly [{
972
+ readonly name: "";
973
+ readonly type: "address";
974
+ readonly internalType: "address";
975
+ }];
976
+ readonly stateMutability: "view";
977
+ }, {
978
+ readonly type: "function";
979
+ readonly name: "version";
980
+ readonly inputs: readonly [];
981
+ readonly outputs: readonly [{
982
+ readonly name: "";
983
+ readonly type: "uint256";
984
+ readonly internalType: "uint256";
985
+ }];
986
+ readonly stateMutability: "view";
987
+ }, {
988
+ readonly type: "event";
989
+ readonly name: "SetIslandStatus";
990
+ readonly inputs: readonly [{
991
+ readonly name: "island";
992
+ readonly type: "address";
993
+ readonly indexed: true;
994
+ readonly internalType: "address";
995
+ }, {
996
+ readonly name: "status";
997
+ readonly type: "uint8";
998
+ readonly indexed: false;
999
+ readonly internalType: "enum IslandStatus";
1000
+ }];
1001
+ readonly anonymous: false;
1002
+ }, {
1003
+ readonly type: "error";
1004
+ readonly name: "IslandNotAllowedException";
1005
+ readonly inputs: readonly [{
1006
+ readonly name: "island";
1007
+ readonly type: "address";
1008
+ readonly internalType: "address";
1009
+ }];
1010
+ }];
1011
+ type abi = typeof abi;
1012
+ declare const protocolAbi: readonly [{
1013
+ readonly type: "function";
1014
+ readonly name: "addLiquidityImbalanced";
1015
+ readonly inputs: readonly [{
1016
+ readonly name: "island";
1017
+ readonly type: "address";
1018
+ readonly internalType: "address";
1019
+ }, {
1020
+ readonly name: "amount0";
1021
+ readonly type: "uint256";
1022
+ readonly internalType: "uint256";
1023
+ }, {
1024
+ readonly name: "amount1";
1025
+ readonly type: "uint256";
1026
+ readonly internalType: "uint256";
1027
+ }, {
1028
+ readonly name: "minLPAmount";
1029
+ readonly type: "uint256";
1030
+ readonly internalType: "uint256";
1031
+ }, {
1032
+ readonly name: "receiver";
1033
+ readonly type: "address";
1034
+ readonly internalType: "address";
1035
+ }];
1036
+ readonly outputs: readonly [{
1037
+ readonly name: "lpAmount";
1038
+ readonly type: "uint256";
1039
+ readonly internalType: "uint256";
1040
+ }];
1041
+ readonly stateMutability: "nonpayable";
1042
+ }, {
1043
+ readonly type: "function";
1044
+ readonly name: "addLiquidityImbalancedAssisted";
1045
+ readonly inputs: readonly [{
1046
+ readonly name: "island";
1047
+ readonly type: "address";
1048
+ readonly internalType: "address";
1049
+ }, {
1050
+ readonly name: "amount0";
1051
+ readonly type: "uint256";
1052
+ readonly internalType: "uint256";
1053
+ }, {
1054
+ readonly name: "amount1";
1055
+ readonly type: "uint256";
1056
+ readonly internalType: "uint256";
1057
+ }, {
1058
+ readonly name: "minLPAmount";
1059
+ readonly type: "uint256";
1060
+ readonly internalType: "uint256";
1061
+ }, {
1062
+ readonly name: "receiver";
1063
+ readonly type: "address";
1064
+ readonly internalType: "address";
1065
+ }, {
1066
+ readonly name: "ratios";
1067
+ readonly type: "tuple";
1068
+ readonly internalType: "struct Ratios";
1069
+ readonly components: readonly [{
1070
+ readonly name: "priceRatio";
1071
+ readonly type: "uint256";
1072
+ readonly internalType: "uint256";
1073
+ }, {
1074
+ readonly name: "balance0";
1075
+ readonly type: "uint256";
1076
+ readonly internalType: "uint256";
1077
+ }, {
1078
+ readonly name: "balance1";
1079
+ readonly type: "uint256";
1080
+ readonly internalType: "uint256";
1081
+ }, {
1082
+ readonly name: "swapAll";
1083
+ readonly type: "bool";
1084
+ readonly internalType: "bool";
1085
+ }, {
1086
+ readonly name: "is0to1";
1087
+ readonly type: "bool";
1088
+ readonly internalType: "bool";
1089
+ }];
1090
+ }];
1091
+ readonly outputs: readonly [{
1092
+ readonly name: "lpAmount";
1093
+ readonly type: "uint256";
1094
+ readonly internalType: "uint256";
1095
+ }];
1096
+ readonly stateMutability: "nonpayable";
1097
+ }, {
1098
+ readonly type: "function";
1099
+ readonly name: "estimateAddLiquidityImbalanced";
1100
+ readonly inputs: readonly [{
1101
+ readonly name: "island";
1102
+ readonly type: "address";
1103
+ readonly internalType: "address";
1104
+ }, {
1105
+ readonly name: "amount0";
1106
+ readonly type: "uint256";
1107
+ readonly internalType: "uint256";
1108
+ }, {
1109
+ readonly name: "amount1";
1110
+ readonly type: "uint256";
1111
+ readonly internalType: "uint256";
1112
+ }];
1113
+ readonly outputs: readonly [{
1114
+ readonly name: "lpAmount";
1115
+ readonly type: "uint256";
1116
+ readonly internalType: "uint256";
1117
+ }, {
1118
+ readonly name: "ratios";
1119
+ readonly type: "tuple";
1120
+ readonly internalType: "struct Ratios";
1121
+ readonly components: readonly [{
1122
+ readonly name: "priceRatio";
1123
+ readonly type: "uint256";
1124
+ readonly internalType: "uint256";
1125
+ }, {
1126
+ readonly name: "balance0";
1127
+ readonly type: "uint256";
1128
+ readonly internalType: "uint256";
1129
+ }, {
1130
+ readonly name: "balance1";
1131
+ readonly type: "uint256";
1132
+ readonly internalType: "uint256";
1133
+ }, {
1134
+ readonly name: "swapAll";
1135
+ readonly type: "bool";
1136
+ readonly internalType: "bool";
1137
+ }, {
1138
+ readonly name: "is0to1";
1139
+ readonly type: "bool";
1140
+ readonly internalType: "bool";
1141
+ }];
1142
+ }];
1143
+ readonly stateMutability: "nonpayable";
1144
+ }, {
1145
+ readonly type: "function";
1146
+ readonly name: "estimateRemoveLiquiditySingle";
1147
+ readonly inputs: readonly [{
1148
+ readonly name: "island";
1149
+ readonly type: "address";
1150
+ readonly internalType: "address";
1151
+ }, {
1152
+ readonly name: "lpAmount";
1153
+ readonly type: "uint256";
1154
+ readonly internalType: "uint256";
1155
+ }, {
1156
+ readonly name: "tokenOut";
1157
+ readonly type: "address";
1158
+ readonly internalType: "address";
1159
+ }];
1160
+ readonly outputs: readonly [{
1161
+ readonly name: "amountOut";
1162
+ readonly type: "uint256";
1163
+ readonly internalType: "uint256";
1164
+ }];
1165
+ readonly stateMutability: "nonpayable";
1166
+ }, {
1167
+ readonly type: "function";
1168
+ readonly name: "estimateSwap";
1169
+ readonly inputs: readonly [{
1170
+ readonly name: "island";
1171
+ readonly type: "address";
1172
+ readonly internalType: "address";
1173
+ }, {
1174
+ readonly name: "tokenIn";
1175
+ readonly type: "address";
1176
+ readonly internalType: "address";
1177
+ }, {
1178
+ readonly name: "amountIn";
1179
+ readonly type: "uint256";
1180
+ readonly internalType: "uint256";
1181
+ }];
1182
+ readonly outputs: readonly [{
1183
+ readonly name: "amountOut";
1184
+ readonly type: "uint256";
1185
+ readonly internalType: "uint256";
1186
+ }];
1187
+ readonly stateMutability: "nonpayable";
1188
+ }, {
1189
+ readonly type: "function";
1190
+ readonly name: "removeLiquiditySingle";
1191
+ readonly inputs: readonly [{
1192
+ readonly name: "island";
1193
+ readonly type: "address";
1194
+ readonly internalType: "address";
1195
+ }, {
1196
+ readonly name: "lpAmount";
1197
+ readonly type: "uint256";
1198
+ readonly internalType: "uint256";
1199
+ }, {
1200
+ readonly name: "tokenOut";
1201
+ readonly type: "address";
1202
+ readonly internalType: "address";
1203
+ }, {
1204
+ readonly name: "minAmountOut";
1205
+ readonly type: "uint256";
1206
+ readonly internalType: "uint256";
1207
+ }, {
1208
+ readonly name: "receiver";
1209
+ readonly type: "address";
1210
+ readonly internalType: "address";
1211
+ }];
1212
+ readonly outputs: readonly [{
1213
+ readonly name: "amountOut";
1214
+ readonly type: "uint256";
1215
+ readonly internalType: "uint256";
1216
+ }];
1217
+ readonly stateMutability: "nonpayable";
1218
+ }, {
1219
+ readonly type: "function";
1220
+ readonly name: "swap";
1221
+ readonly inputs: readonly [{
1222
+ readonly name: "island";
1223
+ readonly type: "address";
1224
+ readonly internalType: "address";
1225
+ }, {
1226
+ readonly name: "tokenIn";
1227
+ readonly type: "address";
1228
+ readonly internalType: "address";
1229
+ }, {
1230
+ readonly name: "amountIn";
1231
+ readonly type: "uint256";
1232
+ readonly internalType: "uint256";
1233
+ }, {
1234
+ readonly name: "amountOutMin";
1235
+ readonly type: "uint256";
1236
+ readonly internalType: "uint256";
1237
+ }];
1238
+ readonly outputs: readonly [{
1239
+ readonly name: "amountOut";
1240
+ readonly type: "uint256";
1241
+ readonly internalType: "uint256";
1242
+ }];
1243
+ readonly stateMutability: "nonpayable";
1244
+ }, {
1245
+ readonly type: "error";
1246
+ readonly name: "InsufficientAmountOutException";
1247
+ readonly inputs: readonly [];
1248
+ }, {
1249
+ readonly type: "error";
1250
+ readonly name: "InvalidTokenInException";
1251
+ readonly inputs: readonly [];
1252
+ }];
1253
+ type protocolAbi = typeof protocolAbi;
1254
+ export declare enum KodiakIslandStatus {
1255
+ NOT_ALLOWED = 0,
1256
+ ALLOWED = 1,
1257
+ SWAP_AND_EXIT_ONLY = 2,
1258
+ EXIT_ONLY = 3
1259
+ }
1260
+ export declare class KodiakIslandGatewayAdapterContract extends AbstractAdapterContract<abi, protocolAbi> {
1261
+ #private;
1262
+ constructor(options: ConstructOptions, args: ConcreteAdapterContractOptions);
1263
+ get allowedIslands(): {
1264
+ island: Address;
1265
+ status: KodiakIslandStatus;
1266
+ }[];
1267
+ /** Legacy adapter not present in integrations-v3. */
1268
+ protected classifyLegacyOperation(_parsed: ParsedCallV2, _transfers: Transfers): LegacyAdapterOperation;
1269
+ }
1270
+ export {};