@gearbox-protocol/sdk 0.0.60 → 0.0.63

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 (333) hide show
  1. package/lib/core/contracts.js +4 -4
  2. package/lib/index.d.ts +1 -0
  3. package/lib/index.js +3 -1
  4. package/lib/pathfinder/path.js +9 -8
  5. package/lib/pathfinder/priority.d.ts +1 -1
  6. package/lib/pathfinder/priority.js +11 -11
  7. package/lib/tokens/convex.d.ts +2 -1
  8. package/lib/tokens/convex.js +11 -11
  9. package/lib/tokens/curveLP.d.ts +2 -1
  10. package/lib/tokens/curveLP.js +7 -7
  11. package/lib/tokens/gear.d.ts +2 -1
  12. package/lib/tokens/gear.js +6 -6
  13. package/lib/tokens/normal.d.ts +2 -1
  14. package/lib/tokens/normal.js +29 -29
  15. package/lib/tokens/token.d.ts +0 -12
  16. package/lib/tokens/token.js +7 -20
  17. package/lib/tokens/tokenType.d.ts +12 -0
  18. package/lib/tokens/tokenType.js +16 -0
  19. package/lib/tokens/yearn.d.ts +2 -1
  20. package/lib/tokens/yearn.js +7 -7
  21. package/package.json +1 -1
  22. package/src/core/contracts.ts +5 -5
  23. package/src/index.ts +1 -0
  24. package/src/pathfinder/path.ts +3 -2
  25. package/src/pathfinder/priority.ts +1 -1
  26. package/src/tokens/convex.ts +2 -1
  27. package/src/tokens/curveLP.ts +2 -1
  28. package/src/tokens/gear.ts +2 -1
  29. package/src/tokens/normal.ts +2 -1
  30. package/src/tokens/token.ts +6 -19
  31. package/src/tokens/tokenType.ts +12 -0
  32. package/src/tokens/yearn.ts +2 -1
  33. package/lib/core/pathfinder.d.ts +0 -54
  34. package/lib/core/pathfinder.js +0 -612
  35. package/lib/core/token.d.ts +0 -104
  36. package/lib/core/token.js +0 -1359
  37. package/lib/core/tokenData.d.ts +0 -24
  38. package/lib/core/tokenData.js +0 -57
  39. package/lib/pathfinder/connector.d.ts +0 -7
  40. package/lib/pathfinder/connector.js +0 -78
  41. package/lib/pathfinder/connectorPathAsset.d.ts +0 -7
  42. package/lib/pathfinder/connectorPathAsset.js +0 -144
  43. package/lib/pathfinder/convexLPTokenPathAsset.d.ts +0 -5
  44. package/lib/pathfinder/convexLPTokenPathAsset.js +0 -77
  45. package/lib/pathfinder/curveLPPathAsset.d.ts +0 -5
  46. package/lib/pathfinder/curveLPPathAsset.js +0 -72
  47. package/lib/pathfinder/curveMetaLP.d.ts +0 -5
  48. package/lib/pathfinder/curveMetaLP.js +0 -72
  49. package/lib/pathfinder/metaCurveLPPathAsset.d.ts +0 -5
  50. package/lib/pathfinder/metaCurveLPPathAsset.js +0 -72
  51. package/lib/pathfinder/normalToken.d.ts +0 -7
  52. package/lib/pathfinder/normalToken.js +0 -78
  53. package/lib/pathfinder/normalTokenPathAsset.d.ts +0 -5
  54. package/lib/pathfinder/normalTokenPathAsset.js +0 -136
  55. package/lib/pathfinder/notes.d.ts +0 -4
  56. package/lib/pathfinder/notes.js +0 -58
  57. package/lib/pathfinder/pathfinder.d.ts +0 -24
  58. package/lib/pathfinder/pathfinder.js +0 -132
  59. package/lib/pathfinder/yearnVaultOfCurveLPPathAsset.d.ts +0 -5
  60. package/lib/pathfinder/yearnVaultOfCurveLPPathAsset.js +0 -87
  61. package/lib/pathfinder/yearnVaultOfMetaCurveLPPathAsset.d.ts +0 -5
  62. package/lib/pathfinder/yearnVaultOfMetaCurveLPPathAsset.js +0 -87
  63. package/lib/pathfinder/yearnVaultPathAsset.d.ts +0 -5
  64. package/lib/pathfinder/yearnVaultPathAsset.js +0 -87
  65. package/lib/types/ACL.d.ts +0 -491
  66. package/lib/types/ACLTrait.d.ts +0 -148
  67. package/lib/types/ACLTraitTest.d.ts +0 -209
  68. package/lib/types/AccountFactory.d.ts +0 -716
  69. package/lib/types/AccountMining.d.ts +0 -222
  70. package/lib/types/AddressProvider.d.ts +0 -912
  71. package/lib/types/AggregatorV3Interface.d.ts +0 -234
  72. package/lib/types/ChainlinkPriceFeedMock.d.ts +0 -215
  73. package/lib/types/ContractsRegister.d.ts +0 -398
  74. package/lib/types/CreditAccount.d.ts +0 -443
  75. package/lib/types/CreditFilter.d.ts +0 -1609
  76. package/lib/types/CreditFilterMock.d.ts +0 -1687
  77. package/lib/types/CreditManager.d.ts +0 -1285
  78. package/lib/types/CreditManagerMockForFilter.d.ts +0 -605
  79. package/lib/types/CreditManagerMockForPoolTest.d.ts +0 -204
  80. package/lib/types/CurveMock.d.ts +0 -298
  81. package/lib/types/CurveV1Adapter.d.ts +0 -349
  82. package/lib/types/DataCompressor.d.ts +0 -1331
  83. package/lib/types/DieselToken.d.ts +0 -567
  84. package/lib/types/ERC165.d.ts +0 -116
  85. package/lib/types/ERC20.d.ts +0 -411
  86. package/lib/types/ERC20BlockingMock.d.ts +0 -568
  87. package/lib/types/ERC721.d.ts +0 -625
  88. package/lib/types/Errors.d.ts +0 -1854
  89. package/lib/types/ExecutorMock.d.ts +0 -140
  90. package/lib/types/FlashLoanAttacker.d.ts +0 -170
  91. package/lib/types/FuzzHarness.d.ts +0 -124
  92. package/lib/types/GearBeta.d.ts +0 -745
  93. package/lib/types/GearToken.d.ts +0 -888
  94. package/lib/types/IAccountFactory.d.ts +0 -317
  95. package/lib/types/IAccountMiner.d.ts +0 -124
  96. package/lib/types/IAppAddressProvider.d.ts +0 -198
  97. package/lib/types/IAppCreditManager.d.ts +0 -408
  98. package/lib/types/IAppERC20.d.ts +0 -309
  99. package/lib/types/IAppPoolService.d.ts +0 -166
  100. package/lib/types/ICreditAccount.d.ts +0 -430
  101. package/lib/types/ICreditFilter.d.ts +0 -1162
  102. package/lib/types/ICreditManager.d.ts +0 -971
  103. package/lib/types/ICurvePool.d.ts +0 -298
  104. package/lib/types/IDataCompressor.d.ts +0 -1231
  105. package/lib/types/IERC165.d.ts +0 -116
  106. package/lib/types/IERC20.d.ts +0 -294
  107. package/lib/types/IERC721.d.ts +0 -472
  108. package/lib/types/IERC721Enumerable.d.ts +0 -564
  109. package/lib/types/IERC721Metadata.d.ts +0 -523
  110. package/lib/types/IERC721Receiver.d.ts +0 -132
  111. package/lib/types/IGearToken.d.ts +0 -527
  112. package/lib/types/IInterestRateModel.d.ts +0 -121
  113. package/lib/types/IMerkleDistributor.d.ts +0 -190
  114. package/lib/types/IPoolService.d.ts +0 -772
  115. package/lib/types/IPriceOracle.d.ts +0 -211
  116. package/lib/types/IQuoter.d.ts +0 -269
  117. package/lib/types/ISwapRouter.d.ts +0 -404
  118. package/lib/types/IUniswapV2Migrator.d.ts +0 -134
  119. package/lib/types/IUniswapV2Router01.d.ts +0 -1119
  120. package/lib/types/IUniswapV2Router02.d.ts +0 -1432
  121. package/lib/types/IUniswapV3SwapCallback.d.ts +0 -127
  122. package/lib/types/IWETH.d.ts +0 -169
  123. package/lib/types/IWETHGateway.d.ts +0 -335
  124. package/lib/types/IYVault.d.ts +0 -558
  125. package/lib/types/LeveragedActions.d.ts +0 -772
  126. package/lib/types/LinearInterestRateModel.d.ts +0 -279
  127. package/lib/types/MockPoolService.d.ts +0 -1271
  128. package/lib/types/Multicall2.d.ts +0 -449
  129. package/lib/types/Ownable.d.ts +0 -169
  130. package/lib/types/PathFinder.d.ts +0 -379
  131. package/lib/types/Pausable.d.ts +0 -105
  132. package/lib/types/PercentageMathTest.d.ts +0 -154
  133. package/lib/types/PoolService.d.ts +0 -1174
  134. package/lib/types/PriceOracle.d.ts +0 -387
  135. package/lib/types/StepVesting.d.ts +0 -411
  136. package/lib/types/TestPoolService.d.ts +0 -1294
  137. package/lib/types/TokenDistributor.d.ts +0 -640
  138. package/lib/types/TokenFeeMock.d.ts +0 -544
  139. package/lib/types/TokenMock.d.ts +0 -531
  140. package/lib/types/TreasuryMock.d.ts +0 -86
  141. package/lib/types/UniswapRouterMock.d.ts +0 -1520
  142. package/lib/types/UniswapV2Adapter.d.ts +0 -1463
  143. package/lib/types/UniswapV3Adapter.d.ts +0 -455
  144. package/lib/types/WETHGateway.d.ts +0 -376
  145. package/lib/types/WETHMock.d.ts +0 -433
  146. package/lib/types/WadRayMathTest.d.ts +0 -316
  147. package/lib/types/YearnAdapter.d.ts +0 -609
  148. package/lib/types/YearnMock.d.ts +0 -795
  149. package/lib/types/YearnPriceFeed.d.ts +0 -399
  150. package/lib/types/commons.d.ts +0 -16
  151. package/lib/types/commons.js +0 -5
  152. package/lib/types/contracts/support/PathFinder.d.ts +0 -154
  153. package/lib/types/contracts/support/PathFinder.js +0 -2
  154. package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter.d.ts +0 -52
  155. package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter.js +0 -2
  156. package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.d.ts +0 -1
  157. package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.js +0 -2
  158. package/lib/types/factories/ACLTraitTest__factory.d.ts +0 -52
  159. package/lib/types/factories/ACLTraitTest__factory.js +0 -138
  160. package/lib/types/factories/ACLTrait__factory.d.ts +0 -31
  161. package/lib/types/factories/ACLTrait__factory.js +0 -75
  162. package/lib/types/factories/ACL__factory.d.ts +0 -45
  163. package/lib/types/factories/ACL__factory.js +0 -317
  164. package/lib/types/factories/AccountFactory__factory.d.ts +0 -72
  165. package/lib/types/factories/AccountFactory__factory.js +0 -508
  166. package/lib/types/factories/AccountMining__factory.d.ts +0 -56
  167. package/lib/types/factories/AccountMining__factory.js +0 -192
  168. package/lib/types/factories/AddressProvider__factory.d.ts +0 -52
  169. package/lib/types/factories/AddressProvider__factory.js +0 -582
  170. package/lib/types/factories/AggregatorV3Interface__factory.d.ts +0 -22
  171. package/lib/types/factories/AggregatorV3Interface__factory.js +0 -133
  172. package/lib/types/factories/ChainlinkPriceFeedMock__factory.d.ts +0 -42
  173. package/lib/types/factories/ChainlinkPriceFeedMock__factory.js +0 -193
  174. package/lib/types/factories/ContractsRegister__factory.d.ts +0 -56
  175. package/lib/types/factories/ContractsRegister__factory.js +0 -310
  176. package/lib/types/factories/CreditAccount__factory.d.ts +0 -32
  177. package/lib/types/factories/CreditAccount__factory.js +0 -262
  178. package/lib/types/factories/CreditFilterMock__factory.d.ts +0 -56
  179. package/lib/types/factories/CreditFilterMock__factory.js +0 -1083
  180. package/lib/types/factories/CreditFilter__factory.d.ts +0 -56
  181. package/lib/types/factories/CreditFilter__factory.js +0 -1047
  182. package/lib/types/factories/CreditManagerMockForFilter__factory.d.ts +0 -38
  183. package/lib/types/factories/CreditManagerMockForFilter__factory.js +0 -324
  184. package/lib/types/factories/CreditManagerMockForPoolTest__factory.d.ts +0 -48
  185. package/lib/types/factories/CreditManagerMockForPoolTest__factory.js +0 -131
  186. package/lib/types/factories/CreditManager__factory.d.ts +0 -77
  187. package/lib/types/factories/CreditManager__factory.js +0 -1030
  188. package/lib/types/factories/CurveMock__factory.d.ts +0 -42
  189. package/lib/types/factories/CurveMock__factory.js +0 -210
  190. package/lib/types/factories/CurveV1Adapter__factory.d.ts +0 -42
  191. package/lib/types/factories/CurveV1Adapter__factory.js +0 -254
  192. package/lib/types/factories/DataCompressor__factory.d.ts +0 -71
  193. package/lib/types/factories/DataCompressor__factory.js +0 -944
  194. package/lib/types/factories/DieselToken__factory.d.ts +0 -56
  195. package/lib/types/factories/DieselToken__factory.js +0 -432
  196. package/lib/types/factories/ERC165__factory.d.ts +0 -22
  197. package/lib/types/factories/ERC165__factory.js +0 -41
  198. package/lib/types/factories/ERC20BlockingMock__factory.d.ts +0 -56
  199. package/lib/types/factories/ERC20BlockingMock__factory.js +0 -429
  200. package/lib/types/factories/ERC20__factory.d.ts +0 -56
  201. package/lib/types/factories/ERC20__factory.js +0 -339
  202. package/lib/types/factories/ERC721__factory.d.ts +0 -56
  203. package/lib/types/factories/ERC721__factory.js +0 -468
  204. package/lib/types/factories/Errors__factory.d.ts +0 -28
  205. package/lib/types/factories/Errors__factory.js +0 -1015
  206. package/lib/types/factories/ExecutorMock__factory.d.ts +0 -38
  207. package/lib/types/factories/ExecutorMock__factory.js +0 -103
  208. package/lib/types/factories/FlashLoanAttacker__factory.d.ts +0 -48
  209. package/lib/types/factories/FlashLoanAttacker__factory.js +0 -117
  210. package/lib/types/factories/FuzzHarness__factory.d.ts +0 -38
  211. package/lib/types/factories/FuzzHarness__factory.js +0 -92
  212. package/lib/types/factories/GearBeta__factory.d.ts +0 -52
  213. package/lib/types/factories/GearBeta__factory.js +0 -527
  214. package/lib/types/factories/GearToken__factory.d.ts +0 -56
  215. package/lib/types/factories/GearToken__factory.js +0 -708
  216. package/lib/types/factories/IAccountFactory__factory.d.ts +0 -35
  217. package/lib/types/factories/IAccountFactory__factory.js +0 -226
  218. package/lib/types/factories/IAccountMiner__factory.d.ts +0 -28
  219. package/lib/types/factories/IAccountMiner__factory.js +0 -48
  220. package/lib/types/factories/IAppAddressProvider__factory.d.ts +0 -18
  221. package/lib/types/factories/IAppAddressProvider__factory.js +0 -100
  222. package/lib/types/factories/IAppCreditManager__factory.d.ts +0 -42
  223. package/lib/types/factories/IAppCreditManager__factory.js +0 -204
  224. package/lib/types/factories/IAppERC20__factory.d.ts +0 -22
  225. package/lib/types/factories/IAppERC20__factory.js +0 -194
  226. package/lib/types/factories/IAppPoolService__factory.d.ts +0 -22
  227. package/lib/types/factories/IAppPoolService__factory.js +0 -69
  228. package/lib/types/factories/ICreditAccount__factory.d.ts +0 -22
  229. package/lib/types/factories/ICreditAccount__factory.js +0 -218
  230. package/lib/types/factories/ICreditFilter__factory.d.ts +0 -35
  231. package/lib/types/factories/ICreditFilter__factory.js +0 -700
  232. package/lib/types/factories/ICreditManager__factory.d.ts +0 -56
  233. package/lib/types/factories/ICreditManager__factory.js +0 -720
  234. package/lib/types/factories/ICurvePool__factory.d.ts +0 -22
  235. package/lib/types/factories/ICurvePool__factory.js +0 -168
  236. package/lib/types/factories/IDataCompressor__factory.d.ts +0 -51
  237. package/lib/types/factories/IDataCompressor__factory.js +0 -826
  238. package/lib/types/factories/IERC165__factory.d.ts +0 -22
  239. package/lib/types/factories/IERC165__factory.js +0 -41
  240. package/lib/types/factories/IERC20__factory.d.ts +0 -35
  241. package/lib/types/factories/IERC20__factory.js +0 -205
  242. package/lib/types/factories/IERC721Enumerable__factory.d.ts +0 -35
  243. package/lib/types/factories/IERC721Enumerable__factory.js +0 -363
  244. package/lib/types/factories/IERC721Metadata__factory.d.ts +0 -35
  245. package/lib/types/factories/IERC721Metadata__factory.js +0 -352
  246. package/lib/types/factories/IERC721Receiver__factory.d.ts +0 -22
  247. package/lib/types/factories/IERC721Receiver__factory.js +0 -56
  248. package/lib/types/factories/IERC721__factory.d.ts +0 -35
  249. package/lib/types/factories/IERC721__factory.js +0 -307
  250. package/lib/types/factories/IGearToken__factory.d.ts +0 -35
  251. package/lib/types/factories/IGearToken__factory.js +0 -342
  252. package/lib/types/factories/IInterestRateModel__factory.d.ts +0 -22
  253. package/lib/types/factories/IInterestRateModel__factory.js +0 -46
  254. package/lib/types/factories/IMerkleDistributor__factory.d.ts +0 -35
  255. package/lib/types/factories/IMerkleDistributor__factory.js +0 -109
  256. package/lib/types/factories/IPoolService__factory.d.ts +0 -35
  257. package/lib/types/factories/IPoolService__factory.js +0 -580
  258. package/lib/types/factories/IPriceOracle__factory.d.ts +0 -35
  259. package/lib/types/factories/IPriceOracle__factory.js +0 -112
  260. package/lib/types/factories/IQuoter__factory.d.ts +0 -22
  261. package/lib/types/factories/IQuoter__factory.js +0 -148
  262. package/lib/types/factories/ISwapRouter__factory.d.ts +0 -27
  263. package/lib/types/factories/ISwapRouter__factory.js +0 -236
  264. package/lib/types/factories/IUniswapV2Migrator__factory.d.ts +0 -18
  265. package/lib/types/factories/IUniswapV2Migrator__factory.js +0 -55
  266. package/lib/types/factories/IUniswapV2Router01__factory.d.ts +0 -22
  267. package/lib/types/factories/IUniswapV2Router01__factory.js +0 -771
  268. package/lib/types/factories/IUniswapV2Router02__factory.d.ts +0 -22
  269. package/lib/types/factories/IUniswapV2Router02__factory.js +0 -973
  270. package/lib/types/factories/IUniswapV3SwapCallback__factory.d.ts +0 -18
  271. package/lib/types/factories/IUniswapV3SwapCallback__factory.js +0 -45
  272. package/lib/types/factories/IWETHGateway__factory.d.ts +0 -18
  273. package/lib/types/factories/IWETHGateway__factory.js +0 -150
  274. package/lib/types/factories/IWETH__factory.d.ts +0 -22
  275. package/lib/types/factories/IWETH__factory.js +0 -66
  276. package/lib/types/factories/IYVault__factory.d.ts +0 -35
  277. package/lib/types/factories/IYVault__factory.js +0 -411
  278. package/lib/types/factories/LeveragedActions__factory.d.ts +0 -84
  279. package/lib/types/factories/LeveragedActions__factory.js +0 -569
  280. package/lib/types/factories/LinearInterestRateModel__factory.d.ts +0 -42
  281. package/lib/types/factories/LinearInterestRateModel__factory.js +0 -209
  282. package/lib/types/factories/MockPoolService__factory.d.ts +0 -56
  283. package/lib/types/factories/MockPoolService__factory.js +0 -889
  284. package/lib/types/factories/Multicall2__factory.d.ts +0 -52
  285. package/lib/types/factories/Multicall2__factory.js +0 -364
  286. package/lib/types/factories/Ownable__factory.d.ts +0 -42
  287. package/lib/types/factories/Ownable__factory.js +0 -74
  288. package/lib/types/factories/PathFinder__factory.d.ts +0 -61
  289. package/lib/types/factories/PathFinder__factory.js +0 -302
  290. package/lib/types/factories/Pausable__factory.d.ts +0 -31
  291. package/lib/types/factories/Pausable__factory.js +0 -61
  292. package/lib/types/factories/PercentageMathTest__factory.d.ts +0 -32
  293. package/lib/types/factories/PercentageMathTest__factory.js +0 -101
  294. package/lib/types/factories/PoolService__factory.d.ts +0 -56
  295. package/lib/types/factories/PoolService__factory.js +0 -873
  296. package/lib/types/factories/PriceOracle__factory.d.ts +0 -56
  297. package/lib/types/factories/PriceOracle__factory.js +0 -290
  298. package/lib/types/factories/StepVesting__factory.d.ts +0 -52
  299. package/lib/types/factories/StepVesting__factory.js +0 -296
  300. package/lib/types/factories/TestPoolService__factory.d.ts +0 -56
  301. package/lib/types/factories/TestPoolService__factory.js +0 -932
  302. package/lib/types/factories/TokenDistributor__factory.d.ts +0 -82
  303. package/lib/types/factories/TokenDistributor__factory.js +0 -481
  304. package/lib/types/factories/TokenFeeMock__factory.d.ts +0 -56
  305. package/lib/types/factories/TokenFeeMock__factory.js +0 -427
  306. package/lib/types/factories/TokenMock__factory.d.ts +0 -56
  307. package/lib/types/factories/TokenMock__factory.js +0 -409
  308. package/lib/types/factories/TreasuryMock__factory.d.ts +0 -35
  309. package/lib/types/factories/TreasuryMock__factory.js +0 -70
  310. package/lib/types/factories/UniswapRouterMock__factory.d.ts +0 -32
  311. package/lib/types/factories/UniswapRouterMock__factory.js +0 -1046
  312. package/lib/types/factories/UniswapV2Adapter__factory.d.ts +0 -42
  313. package/lib/types/factories/UniswapV2Adapter__factory.js +0 -1059
  314. package/lib/types/factories/UniswapV3Adapter__factory.d.ts +0 -47
  315. package/lib/types/factories/UniswapV3Adapter__factory.js +0 -322
  316. package/lib/types/factories/WETHGateway__factory.d.ts +0 -70
  317. package/lib/types/factories/WETHGateway__factory.js +0 -241
  318. package/lib/types/factories/WETHMock__factory.d.ts +0 -52
  319. package/lib/types/factories/WETHMock__factory.js +0 -355
  320. package/lib/types/factories/WadRayMathTest__factory.d.ts +0 -32
  321. package/lib/types/factories/WadRayMathTest__factory.js +0 -239
  322. package/lib/types/factories/YearnAdapter__factory.d.ts +0 -56
  323. package/lib/types/factories/YearnAdapter__factory.js +0 -497
  324. package/lib/types/factories/YearnMock__factory.d.ts +0 -56
  325. package/lib/types/factories/YearnMock__factory.js +0 -598
  326. package/lib/types/factories/YearnPriceFeed__factory.d.ts +0 -56
  327. package/lib/types/factories/YearnPriceFeed__factory.js +0 -350
  328. package/lib/types/factories/contracts/support/PathFinder__factory.d.ts +0 -63
  329. package/lib/types/factories/contracts/support/PathFinder__factory.js +0 -319
  330. package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter__factory.d.ts +0 -34
  331. package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter__factory.js +0 -124
  332. package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.d.ts +0 -1
  333. package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.js +0 -8
@@ -1,973 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IUniswapV2Router02__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
9
- {
10
- inputs: [],
11
- name: "WETH",
12
- outputs: [
13
- {
14
- internalType: "address",
15
- name: "",
16
- type: "address",
17
- },
18
- ],
19
- stateMutability: "view",
20
- type: "function",
21
- },
22
- {
23
- inputs: [
24
- {
25
- internalType: "address",
26
- name: "tokenA",
27
- type: "address",
28
- },
29
- {
30
- internalType: "address",
31
- name: "tokenB",
32
- type: "address",
33
- },
34
- {
35
- internalType: "uint256",
36
- name: "amountADesired",
37
- type: "uint256",
38
- },
39
- {
40
- internalType: "uint256",
41
- name: "amountBDesired",
42
- type: "uint256",
43
- },
44
- {
45
- internalType: "uint256",
46
- name: "amountAMin",
47
- type: "uint256",
48
- },
49
- {
50
- internalType: "uint256",
51
- name: "amountBMin",
52
- type: "uint256",
53
- },
54
- {
55
- internalType: "address",
56
- name: "to",
57
- type: "address",
58
- },
59
- {
60
- internalType: "uint256",
61
- name: "deadline",
62
- type: "uint256",
63
- },
64
- ],
65
- name: "addLiquidity",
66
- outputs: [
67
- {
68
- internalType: "uint256",
69
- name: "amountA",
70
- type: "uint256",
71
- },
72
- {
73
- internalType: "uint256",
74
- name: "amountB",
75
- type: "uint256",
76
- },
77
- {
78
- internalType: "uint256",
79
- name: "liquidity",
80
- type: "uint256",
81
- },
82
- ],
83
- stateMutability: "nonpayable",
84
- type: "function",
85
- },
86
- {
87
- inputs: [
88
- {
89
- internalType: "address",
90
- name: "token",
91
- type: "address",
92
- },
93
- {
94
- internalType: "uint256",
95
- name: "amountTokenDesired",
96
- type: "uint256",
97
- },
98
- {
99
- internalType: "uint256",
100
- name: "amountTokenMin",
101
- type: "uint256",
102
- },
103
- {
104
- internalType: "uint256",
105
- name: "amountETHMin",
106
- type: "uint256",
107
- },
108
- {
109
- internalType: "address",
110
- name: "to",
111
- type: "address",
112
- },
113
- {
114
- internalType: "uint256",
115
- name: "deadline",
116
- type: "uint256",
117
- },
118
- ],
119
- name: "addLiquidityETH",
120
- outputs: [
121
- {
122
- internalType: "uint256",
123
- name: "amountToken",
124
- type: "uint256",
125
- },
126
- {
127
- internalType: "uint256",
128
- name: "amountETH",
129
- type: "uint256",
130
- },
131
- {
132
- internalType: "uint256",
133
- name: "liquidity",
134
- type: "uint256",
135
- },
136
- ],
137
- stateMutability: "payable",
138
- type: "function",
139
- },
140
- {
141
- inputs: [],
142
- name: "factory",
143
- outputs: [
144
- {
145
- internalType: "address",
146
- name: "",
147
- type: "address",
148
- },
149
- ],
150
- stateMutability: "view",
151
- type: "function",
152
- },
153
- {
154
- inputs: [
155
- {
156
- internalType: "uint256",
157
- name: "amountOut",
158
- type: "uint256",
159
- },
160
- {
161
- internalType: "uint256",
162
- name: "reserveIn",
163
- type: "uint256",
164
- },
165
- {
166
- internalType: "uint256",
167
- name: "reserveOut",
168
- type: "uint256",
169
- },
170
- ],
171
- name: "getAmountIn",
172
- outputs: [
173
- {
174
- internalType: "uint256",
175
- name: "amountIn",
176
- type: "uint256",
177
- },
178
- ],
179
- stateMutability: "view",
180
- type: "function",
181
- },
182
- {
183
- inputs: [
184
- {
185
- internalType: "uint256",
186
- name: "amountIn",
187
- type: "uint256",
188
- },
189
- {
190
- internalType: "uint256",
191
- name: "reserveIn",
192
- type: "uint256",
193
- },
194
- {
195
- internalType: "uint256",
196
- name: "reserveOut",
197
- type: "uint256",
198
- },
199
- ],
200
- name: "getAmountOut",
201
- outputs: [
202
- {
203
- internalType: "uint256",
204
- name: "amountOut",
205
- type: "uint256",
206
- },
207
- ],
208
- stateMutability: "view",
209
- type: "function",
210
- },
211
- {
212
- inputs: [
213
- {
214
- internalType: "uint256",
215
- name: "amountOut",
216
- type: "uint256",
217
- },
218
- {
219
- internalType: "address[]",
220
- name: "path",
221
- type: "address[]",
222
- },
223
- ],
224
- name: "getAmountsIn",
225
- outputs: [
226
- {
227
- internalType: "uint256[]",
228
- name: "amounts",
229
- type: "uint256[]",
230
- },
231
- ],
232
- stateMutability: "view",
233
- type: "function",
234
- },
235
- {
236
- inputs: [
237
- {
238
- internalType: "uint256",
239
- name: "amountIn",
240
- type: "uint256",
241
- },
242
- {
243
- internalType: "address[]",
244
- name: "path",
245
- type: "address[]",
246
- },
247
- ],
248
- name: "getAmountsOut",
249
- outputs: [
250
- {
251
- internalType: "uint256[]",
252
- name: "amounts",
253
- type: "uint256[]",
254
- },
255
- ],
256
- stateMutability: "view",
257
- type: "function",
258
- },
259
- {
260
- inputs: [
261
- {
262
- internalType: "uint256",
263
- name: "amountA",
264
- type: "uint256",
265
- },
266
- {
267
- internalType: "uint256",
268
- name: "reserveA",
269
- type: "uint256",
270
- },
271
- {
272
- internalType: "uint256",
273
- name: "reserveB",
274
- type: "uint256",
275
- },
276
- ],
277
- name: "quote",
278
- outputs: [
279
- {
280
- internalType: "uint256",
281
- name: "amountB",
282
- type: "uint256",
283
- },
284
- ],
285
- stateMutability: "view",
286
- type: "function",
287
- },
288
- {
289
- inputs: [
290
- {
291
- internalType: "address",
292
- name: "tokenA",
293
- type: "address",
294
- },
295
- {
296
- internalType: "address",
297
- name: "tokenB",
298
- type: "address",
299
- },
300
- {
301
- internalType: "uint256",
302
- name: "liquidity",
303
- type: "uint256",
304
- },
305
- {
306
- internalType: "uint256",
307
- name: "amountAMin",
308
- type: "uint256",
309
- },
310
- {
311
- internalType: "uint256",
312
- name: "amountBMin",
313
- type: "uint256",
314
- },
315
- {
316
- internalType: "address",
317
- name: "to",
318
- type: "address",
319
- },
320
- {
321
- internalType: "uint256",
322
- name: "deadline",
323
- type: "uint256",
324
- },
325
- ],
326
- name: "removeLiquidity",
327
- outputs: [
328
- {
329
- internalType: "uint256",
330
- name: "amountA",
331
- type: "uint256",
332
- },
333
- {
334
- internalType: "uint256",
335
- name: "amountB",
336
- type: "uint256",
337
- },
338
- ],
339
- stateMutability: "nonpayable",
340
- type: "function",
341
- },
342
- {
343
- inputs: [
344
- {
345
- internalType: "address",
346
- name: "token",
347
- type: "address",
348
- },
349
- {
350
- internalType: "uint256",
351
- name: "liquidity",
352
- type: "uint256",
353
- },
354
- {
355
- internalType: "uint256",
356
- name: "amountTokenMin",
357
- type: "uint256",
358
- },
359
- {
360
- internalType: "uint256",
361
- name: "amountETHMin",
362
- type: "uint256",
363
- },
364
- {
365
- internalType: "address",
366
- name: "to",
367
- type: "address",
368
- },
369
- {
370
- internalType: "uint256",
371
- name: "deadline",
372
- type: "uint256",
373
- },
374
- ],
375
- name: "removeLiquidityETH",
376
- outputs: [
377
- {
378
- internalType: "uint256",
379
- name: "amountToken",
380
- type: "uint256",
381
- },
382
- {
383
- internalType: "uint256",
384
- name: "amountETH",
385
- type: "uint256",
386
- },
387
- ],
388
- stateMutability: "nonpayable",
389
- type: "function",
390
- },
391
- {
392
- inputs: [
393
- {
394
- internalType: "address",
395
- name: "token",
396
- type: "address",
397
- },
398
- {
399
- internalType: "uint256",
400
- name: "liquidity",
401
- type: "uint256",
402
- },
403
- {
404
- internalType: "uint256",
405
- name: "amountTokenMin",
406
- type: "uint256",
407
- },
408
- {
409
- internalType: "uint256",
410
- name: "amountETHMin",
411
- type: "uint256",
412
- },
413
- {
414
- internalType: "address",
415
- name: "to",
416
- type: "address",
417
- },
418
- {
419
- internalType: "uint256",
420
- name: "deadline",
421
- type: "uint256",
422
- },
423
- ],
424
- name: "removeLiquidityETHSupportingFeeOnTransferTokens",
425
- outputs: [
426
- {
427
- internalType: "uint256",
428
- name: "amountETH",
429
- type: "uint256",
430
- },
431
- ],
432
- stateMutability: "nonpayable",
433
- type: "function",
434
- },
435
- {
436
- inputs: [
437
- {
438
- internalType: "address",
439
- name: "token",
440
- type: "address",
441
- },
442
- {
443
- internalType: "uint256",
444
- name: "liquidity",
445
- type: "uint256",
446
- },
447
- {
448
- internalType: "uint256",
449
- name: "amountTokenMin",
450
- type: "uint256",
451
- },
452
- {
453
- internalType: "uint256",
454
- name: "amountETHMin",
455
- type: "uint256",
456
- },
457
- {
458
- internalType: "address",
459
- name: "to",
460
- type: "address",
461
- },
462
- {
463
- internalType: "uint256",
464
- name: "deadline",
465
- type: "uint256",
466
- },
467
- {
468
- internalType: "bool",
469
- name: "approveMax",
470
- type: "bool",
471
- },
472
- {
473
- internalType: "uint8",
474
- name: "v",
475
- type: "uint8",
476
- },
477
- {
478
- internalType: "bytes32",
479
- name: "r",
480
- type: "bytes32",
481
- },
482
- {
483
- internalType: "bytes32",
484
- name: "s",
485
- type: "bytes32",
486
- },
487
- ],
488
- name: "removeLiquidityETHWithPermit",
489
- outputs: [
490
- {
491
- internalType: "uint256",
492
- name: "amountToken",
493
- type: "uint256",
494
- },
495
- {
496
- internalType: "uint256",
497
- name: "amountETH",
498
- type: "uint256",
499
- },
500
- ],
501
- stateMutability: "nonpayable",
502
- type: "function",
503
- },
504
- {
505
- inputs: [
506
- {
507
- internalType: "address",
508
- name: "token",
509
- type: "address",
510
- },
511
- {
512
- internalType: "uint256",
513
- name: "liquidity",
514
- type: "uint256",
515
- },
516
- {
517
- internalType: "uint256",
518
- name: "amountTokenMin",
519
- type: "uint256",
520
- },
521
- {
522
- internalType: "uint256",
523
- name: "amountETHMin",
524
- type: "uint256",
525
- },
526
- {
527
- internalType: "address",
528
- name: "to",
529
- type: "address",
530
- },
531
- {
532
- internalType: "uint256",
533
- name: "deadline",
534
- type: "uint256",
535
- },
536
- {
537
- internalType: "bool",
538
- name: "approveMax",
539
- type: "bool",
540
- },
541
- {
542
- internalType: "uint8",
543
- name: "v",
544
- type: "uint8",
545
- },
546
- {
547
- internalType: "bytes32",
548
- name: "r",
549
- type: "bytes32",
550
- },
551
- {
552
- internalType: "bytes32",
553
- name: "s",
554
- type: "bytes32",
555
- },
556
- ],
557
- name: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens",
558
- outputs: [
559
- {
560
- internalType: "uint256",
561
- name: "amountETH",
562
- type: "uint256",
563
- },
564
- ],
565
- stateMutability: "nonpayable",
566
- type: "function",
567
- },
568
- {
569
- inputs: [
570
- {
571
- internalType: "address",
572
- name: "tokenA",
573
- type: "address",
574
- },
575
- {
576
- internalType: "address",
577
- name: "tokenB",
578
- type: "address",
579
- },
580
- {
581
- internalType: "uint256",
582
- name: "liquidity",
583
- type: "uint256",
584
- },
585
- {
586
- internalType: "uint256",
587
- name: "amountAMin",
588
- type: "uint256",
589
- },
590
- {
591
- internalType: "uint256",
592
- name: "amountBMin",
593
- type: "uint256",
594
- },
595
- {
596
- internalType: "address",
597
- name: "to",
598
- type: "address",
599
- },
600
- {
601
- internalType: "uint256",
602
- name: "deadline",
603
- type: "uint256",
604
- },
605
- {
606
- internalType: "bool",
607
- name: "approveMax",
608
- type: "bool",
609
- },
610
- {
611
- internalType: "uint8",
612
- name: "v",
613
- type: "uint8",
614
- },
615
- {
616
- internalType: "bytes32",
617
- name: "r",
618
- type: "bytes32",
619
- },
620
- {
621
- internalType: "bytes32",
622
- name: "s",
623
- type: "bytes32",
624
- },
625
- ],
626
- name: "removeLiquidityWithPermit",
627
- outputs: [
628
- {
629
- internalType: "uint256",
630
- name: "amountA",
631
- type: "uint256",
632
- },
633
- {
634
- internalType: "uint256",
635
- name: "amountB",
636
- type: "uint256",
637
- },
638
- ],
639
- stateMutability: "nonpayable",
640
- type: "function",
641
- },
642
- {
643
- inputs: [
644
- {
645
- internalType: "uint256",
646
- name: "amountOut",
647
- type: "uint256",
648
- },
649
- {
650
- internalType: "address[]",
651
- name: "path",
652
- type: "address[]",
653
- },
654
- {
655
- internalType: "address",
656
- name: "to",
657
- type: "address",
658
- },
659
- {
660
- internalType: "uint256",
661
- name: "deadline",
662
- type: "uint256",
663
- },
664
- ],
665
- name: "swapETHForExactTokens",
666
- outputs: [
667
- {
668
- internalType: "uint256[]",
669
- name: "amounts",
670
- type: "uint256[]",
671
- },
672
- ],
673
- stateMutability: "payable",
674
- type: "function",
675
- },
676
- {
677
- inputs: [
678
- {
679
- internalType: "uint256",
680
- name: "amountOutMin",
681
- type: "uint256",
682
- },
683
- {
684
- internalType: "address[]",
685
- name: "path",
686
- type: "address[]",
687
- },
688
- {
689
- internalType: "address",
690
- name: "to",
691
- type: "address",
692
- },
693
- {
694
- internalType: "uint256",
695
- name: "deadline",
696
- type: "uint256",
697
- },
698
- ],
699
- name: "swapExactETHForTokens",
700
- outputs: [
701
- {
702
- internalType: "uint256[]",
703
- name: "amounts",
704
- type: "uint256[]",
705
- },
706
- ],
707
- stateMutability: "payable",
708
- type: "function",
709
- },
710
- {
711
- inputs: [
712
- {
713
- internalType: "uint256",
714
- name: "amountOutMin",
715
- type: "uint256",
716
- },
717
- {
718
- internalType: "address[]",
719
- name: "path",
720
- type: "address[]",
721
- },
722
- {
723
- internalType: "address",
724
- name: "to",
725
- type: "address",
726
- },
727
- {
728
- internalType: "uint256",
729
- name: "deadline",
730
- type: "uint256",
731
- },
732
- ],
733
- name: "swapExactETHForTokensSupportingFeeOnTransferTokens",
734
- outputs: [],
735
- stateMutability: "payable",
736
- type: "function",
737
- },
738
- {
739
- inputs: [
740
- {
741
- internalType: "uint256",
742
- name: "amountIn",
743
- type: "uint256",
744
- },
745
- {
746
- internalType: "uint256",
747
- name: "amountOutMin",
748
- type: "uint256",
749
- },
750
- {
751
- internalType: "address[]",
752
- name: "path",
753
- type: "address[]",
754
- },
755
- {
756
- internalType: "address",
757
- name: "to",
758
- type: "address",
759
- },
760
- {
761
- internalType: "uint256",
762
- name: "deadline",
763
- type: "uint256",
764
- },
765
- ],
766
- name: "swapExactTokensForETH",
767
- outputs: [
768
- {
769
- internalType: "uint256[]",
770
- name: "amounts",
771
- type: "uint256[]",
772
- },
773
- ],
774
- stateMutability: "nonpayable",
775
- type: "function",
776
- },
777
- {
778
- inputs: [
779
- {
780
- internalType: "uint256",
781
- name: "amountIn",
782
- type: "uint256",
783
- },
784
- {
785
- internalType: "uint256",
786
- name: "amountOutMin",
787
- type: "uint256",
788
- },
789
- {
790
- internalType: "address[]",
791
- name: "path",
792
- type: "address[]",
793
- },
794
- {
795
- internalType: "address",
796
- name: "to",
797
- type: "address",
798
- },
799
- {
800
- internalType: "uint256",
801
- name: "deadline",
802
- type: "uint256",
803
- },
804
- ],
805
- name: "swapExactTokensForETHSupportingFeeOnTransferTokens",
806
- outputs: [],
807
- stateMutability: "nonpayable",
808
- type: "function",
809
- },
810
- {
811
- inputs: [
812
- {
813
- internalType: "uint256",
814
- name: "amountIn",
815
- type: "uint256",
816
- },
817
- {
818
- internalType: "uint256",
819
- name: "amountOutMin",
820
- type: "uint256",
821
- },
822
- {
823
- internalType: "address[]",
824
- name: "path",
825
- type: "address[]",
826
- },
827
- {
828
- internalType: "address",
829
- name: "to",
830
- type: "address",
831
- },
832
- {
833
- internalType: "uint256",
834
- name: "deadline",
835
- type: "uint256",
836
- },
837
- ],
838
- name: "swapExactTokensForTokens",
839
- outputs: [
840
- {
841
- internalType: "uint256[]",
842
- name: "amounts",
843
- type: "uint256[]",
844
- },
845
- ],
846
- stateMutability: "nonpayable",
847
- type: "function",
848
- },
849
- {
850
- inputs: [
851
- {
852
- internalType: "uint256",
853
- name: "amountIn",
854
- type: "uint256",
855
- },
856
- {
857
- internalType: "uint256",
858
- name: "amountOutMin",
859
- type: "uint256",
860
- },
861
- {
862
- internalType: "address[]",
863
- name: "path",
864
- type: "address[]",
865
- },
866
- {
867
- internalType: "address",
868
- name: "to",
869
- type: "address",
870
- },
871
- {
872
- internalType: "uint256",
873
- name: "deadline",
874
- type: "uint256",
875
- },
876
- ],
877
- name: "swapExactTokensForTokensSupportingFeeOnTransferTokens",
878
- outputs: [],
879
- stateMutability: "nonpayable",
880
- type: "function",
881
- },
882
- {
883
- inputs: [
884
- {
885
- internalType: "uint256",
886
- name: "amountOut",
887
- type: "uint256",
888
- },
889
- {
890
- internalType: "uint256",
891
- name: "amountInMax",
892
- type: "uint256",
893
- },
894
- {
895
- internalType: "address[]",
896
- name: "path",
897
- type: "address[]",
898
- },
899
- {
900
- internalType: "address",
901
- name: "to",
902
- type: "address",
903
- },
904
- {
905
- internalType: "uint256",
906
- name: "deadline",
907
- type: "uint256",
908
- },
909
- ],
910
- name: "swapTokensForExactETH",
911
- outputs: [
912
- {
913
- internalType: "uint256[]",
914
- name: "amounts",
915
- type: "uint256[]",
916
- },
917
- ],
918
- stateMutability: "nonpayable",
919
- type: "function",
920
- },
921
- {
922
- inputs: [
923
- {
924
- internalType: "uint256",
925
- name: "amountOut",
926
- type: "uint256",
927
- },
928
- {
929
- internalType: "uint256",
930
- name: "amountInMax",
931
- type: "uint256",
932
- },
933
- {
934
- internalType: "address[]",
935
- name: "path",
936
- type: "address[]",
937
- },
938
- {
939
- internalType: "address",
940
- name: "to",
941
- type: "address",
942
- },
943
- {
944
- internalType: "uint256",
945
- name: "deadline",
946
- type: "uint256",
947
- },
948
- ],
949
- name: "swapTokensForExactTokens",
950
- outputs: [
951
- {
952
- internalType: "uint256[]",
953
- name: "amounts",
954
- type: "uint256[]",
955
- },
956
- ],
957
- stateMutability: "nonpayable",
958
- type: "function",
959
- },
960
- ];
961
- var IUniswapV2Router02__factory = /** @class */ (function () {
962
- function IUniswapV2Router02__factory() {
963
- }
964
- IUniswapV2Router02__factory.createInterface = function () {
965
- return new ethers_1.utils.Interface(_abi);
966
- };
967
- IUniswapV2Router02__factory.connect = function (address, signerOrProvider) {
968
- return new ethers_1.Contract(address, _abi, signerOrProvider);
969
- };
970
- IUniswapV2Router02__factory.abi = _abi;
971
- return IUniswapV2Router02__factory;
972
- }());
973
- exports.IUniswapV2Router02__factory = IUniswapV2Router02__factory;