@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,1046 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- var __extends = (this && this.__extends) || (function () {
6
- var extendStatics = function (d, b) {
7
- extendStatics = Object.setPrototypeOf ||
8
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
- return extendStatics(d, b);
11
- };
12
- return function (d, b) {
13
- if (typeof b !== "function" && b !== null)
14
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
- extendStatics(d, b);
16
- function __() { this.constructor = d; }
17
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
- };
19
- })();
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.UniswapRouterMock__factory = void 0;
22
- var ethers_1 = require("ethers");
23
- var _abi = [
24
- {
25
- inputs: [],
26
- name: "WETH",
27
- outputs: [
28
- {
29
- internalType: "address",
30
- name: "",
31
- type: "address",
32
- },
33
- ],
34
- stateMutability: "pure",
35
- type: "function",
36
- },
37
- {
38
- inputs: [
39
- {
40
- internalType: "address",
41
- name: "",
42
- type: "address",
43
- },
44
- {
45
- internalType: "address",
46
- name: "",
47
- type: "address",
48
- },
49
- {
50
- internalType: "uint256",
51
- name: "",
52
- type: "uint256",
53
- },
54
- {
55
- internalType: "uint256",
56
- name: "",
57
- type: "uint256",
58
- },
59
- {
60
- internalType: "uint256",
61
- name: "",
62
- type: "uint256",
63
- },
64
- {
65
- internalType: "uint256",
66
- name: "",
67
- type: "uint256",
68
- },
69
- {
70
- internalType: "address",
71
- name: "",
72
- type: "address",
73
- },
74
- {
75
- internalType: "uint256",
76
- name: "",
77
- type: "uint256",
78
- },
79
- ],
80
- name: "addLiquidity",
81
- outputs: [
82
- {
83
- internalType: "uint256",
84
- name: "amountA",
85
- type: "uint256",
86
- },
87
- {
88
- internalType: "uint256",
89
- name: "amountB",
90
- type: "uint256",
91
- },
92
- {
93
- internalType: "uint256",
94
- name: "liquidity",
95
- type: "uint256",
96
- },
97
- ],
98
- stateMutability: "pure",
99
- type: "function",
100
- },
101
- {
102
- inputs: [
103
- {
104
- internalType: "address",
105
- name: "",
106
- type: "address",
107
- },
108
- {
109
- internalType: "uint256",
110
- name: "",
111
- type: "uint256",
112
- },
113
- {
114
- internalType: "uint256",
115
- name: "",
116
- type: "uint256",
117
- },
118
- {
119
- internalType: "uint256",
120
- name: "",
121
- type: "uint256",
122
- },
123
- {
124
- internalType: "address",
125
- name: "",
126
- type: "address",
127
- },
128
- {
129
- internalType: "uint256",
130
- name: "",
131
- type: "uint256",
132
- },
133
- ],
134
- name: "addLiquidityETH",
135
- outputs: [
136
- {
137
- internalType: "uint256",
138
- name: "amountToken",
139
- type: "uint256",
140
- },
141
- {
142
- internalType: "uint256",
143
- name: "amountETH",
144
- type: "uint256",
145
- },
146
- {
147
- internalType: "uint256",
148
- name: "liquidity",
149
- type: "uint256",
150
- },
151
- ],
152
- stateMutability: "payable",
153
- type: "function",
154
- },
155
- {
156
- inputs: [],
157
- name: "factory",
158
- outputs: [
159
- {
160
- internalType: "address",
161
- name: "",
162
- type: "address",
163
- },
164
- ],
165
- stateMutability: "pure",
166
- type: "function",
167
- },
168
- {
169
- inputs: [
170
- {
171
- internalType: "uint256",
172
- name: "",
173
- type: "uint256",
174
- },
175
- {
176
- internalType: "uint256",
177
- name: "",
178
- type: "uint256",
179
- },
180
- {
181
- internalType: "uint256",
182
- name: "",
183
- type: "uint256",
184
- },
185
- ],
186
- name: "getAmountIn",
187
- outputs: [
188
- {
189
- internalType: "uint256",
190
- name: "amountIn",
191
- type: "uint256",
192
- },
193
- ],
194
- stateMutability: "pure",
195
- type: "function",
196
- },
197
- {
198
- inputs: [
199
- {
200
- internalType: "uint256",
201
- name: "",
202
- type: "uint256",
203
- },
204
- {
205
- internalType: "uint256",
206
- name: "",
207
- type: "uint256",
208
- },
209
- {
210
- internalType: "uint256",
211
- name: "",
212
- type: "uint256",
213
- },
214
- ],
215
- name: "getAmountOut",
216
- outputs: [
217
- {
218
- internalType: "uint256",
219
- name: "amountOut",
220
- type: "uint256",
221
- },
222
- ],
223
- stateMutability: "pure",
224
- type: "function",
225
- },
226
- {
227
- inputs: [
228
- {
229
- internalType: "uint256",
230
- name: "",
231
- type: "uint256",
232
- },
233
- {
234
- internalType: "address[]",
235
- name: "",
236
- type: "address[]",
237
- },
238
- ],
239
- name: "getAmountsIn",
240
- outputs: [
241
- {
242
- internalType: "uint256[]",
243
- name: "",
244
- type: "uint256[]",
245
- },
246
- ],
247
- stateMutability: "pure",
248
- type: "function",
249
- },
250
- {
251
- inputs: [
252
- {
253
- internalType: "uint256",
254
- name: "amountIn",
255
- type: "uint256",
256
- },
257
- {
258
- internalType: "address[]",
259
- name: "path",
260
- type: "address[]",
261
- },
262
- ],
263
- name: "getAmountsOut",
264
- outputs: [
265
- {
266
- internalType: "uint256[]",
267
- name: "",
268
- type: "uint256[]",
269
- },
270
- ],
271
- stateMutability: "view",
272
- type: "function",
273
- },
274
- {
275
- inputs: [
276
- {
277
- internalType: "address[]",
278
- name: "path",
279
- type: "address[]",
280
- },
281
- ],
282
- name: "getRate",
283
- outputs: [
284
- {
285
- internalType: "uint256",
286
- name: "rate",
287
- type: "uint256",
288
- },
289
- ],
290
- stateMutability: "view",
291
- type: "function",
292
- },
293
- {
294
- inputs: [
295
- {
296
- internalType: "uint256",
297
- name: "",
298
- type: "uint256",
299
- },
300
- {
301
- internalType: "uint256",
302
- name: "",
303
- type: "uint256",
304
- },
305
- {
306
- internalType: "uint256",
307
- name: "",
308
- type: "uint256",
309
- },
310
- ],
311
- name: "quote",
312
- outputs: [
313
- {
314
- internalType: "uint256",
315
- name: "amountB",
316
- type: "uint256",
317
- },
318
- ],
319
- stateMutability: "pure",
320
- type: "function",
321
- },
322
- {
323
- inputs: [
324
- {
325
- internalType: "address",
326
- name: "",
327
- type: "address",
328
- },
329
- {
330
- internalType: "address",
331
- name: "",
332
- type: "address",
333
- },
334
- {
335
- internalType: "uint256",
336
- name: "",
337
- type: "uint256",
338
- },
339
- {
340
- internalType: "uint256",
341
- name: "",
342
- type: "uint256",
343
- },
344
- {
345
- internalType: "uint256",
346
- name: "",
347
- type: "uint256",
348
- },
349
- {
350
- internalType: "address",
351
- name: "",
352
- type: "address",
353
- },
354
- {
355
- internalType: "uint256",
356
- name: "",
357
- type: "uint256",
358
- },
359
- ],
360
- name: "removeLiquidity",
361
- outputs: [
362
- {
363
- internalType: "uint256",
364
- name: "amountA",
365
- type: "uint256",
366
- },
367
- {
368
- internalType: "uint256",
369
- name: "amountB",
370
- type: "uint256",
371
- },
372
- ],
373
- stateMutability: "pure",
374
- type: "function",
375
- },
376
- {
377
- inputs: [
378
- {
379
- internalType: "address",
380
- name: "",
381
- type: "address",
382
- },
383
- {
384
- internalType: "uint256",
385
- name: "",
386
- type: "uint256",
387
- },
388
- {
389
- internalType: "uint256",
390
- name: "",
391
- type: "uint256",
392
- },
393
- {
394
- internalType: "uint256",
395
- name: "",
396
- type: "uint256",
397
- },
398
- {
399
- internalType: "address",
400
- name: "",
401
- type: "address",
402
- },
403
- {
404
- internalType: "uint256",
405
- name: "",
406
- type: "uint256",
407
- },
408
- ],
409
- name: "removeLiquidityETH",
410
- outputs: [
411
- {
412
- internalType: "uint256",
413
- name: "amountToken",
414
- type: "uint256",
415
- },
416
- {
417
- internalType: "uint256",
418
- name: "amountETH",
419
- type: "uint256",
420
- },
421
- ],
422
- stateMutability: "pure",
423
- type: "function",
424
- },
425
- {
426
- inputs: [
427
- {
428
- internalType: "address",
429
- name: "",
430
- type: "address",
431
- },
432
- {
433
- internalType: "uint256",
434
- name: "",
435
- type: "uint256",
436
- },
437
- {
438
- internalType: "uint256",
439
- name: "",
440
- type: "uint256",
441
- },
442
- {
443
- internalType: "uint256",
444
- name: "",
445
- type: "uint256",
446
- },
447
- {
448
- internalType: "address",
449
- name: "",
450
- type: "address",
451
- },
452
- {
453
- internalType: "uint256",
454
- name: "",
455
- type: "uint256",
456
- },
457
- ],
458
- name: "removeLiquidityETHSupportingFeeOnTransferTokens",
459
- outputs: [
460
- {
461
- internalType: "uint256",
462
- name: "amountETH",
463
- type: "uint256",
464
- },
465
- ],
466
- stateMutability: "pure",
467
- type: "function",
468
- },
469
- {
470
- inputs: [
471
- {
472
- internalType: "address",
473
- name: "",
474
- type: "address",
475
- },
476
- {
477
- internalType: "uint256",
478
- name: "",
479
- type: "uint256",
480
- },
481
- {
482
- internalType: "uint256",
483
- name: "",
484
- type: "uint256",
485
- },
486
- {
487
- internalType: "uint256",
488
- name: "",
489
- type: "uint256",
490
- },
491
- {
492
- internalType: "address",
493
- name: "",
494
- type: "address",
495
- },
496
- {
497
- internalType: "uint256",
498
- name: "",
499
- type: "uint256",
500
- },
501
- {
502
- internalType: "bool",
503
- name: "",
504
- type: "bool",
505
- },
506
- {
507
- internalType: "uint8",
508
- name: "",
509
- type: "uint8",
510
- },
511
- {
512
- internalType: "bytes32",
513
- name: "",
514
- type: "bytes32",
515
- },
516
- {
517
- internalType: "bytes32",
518
- name: "",
519
- type: "bytes32",
520
- },
521
- ],
522
- name: "removeLiquidityETHWithPermit",
523
- outputs: [
524
- {
525
- internalType: "uint256",
526
- name: "amountToken",
527
- type: "uint256",
528
- },
529
- {
530
- internalType: "uint256",
531
- name: "amountETH",
532
- type: "uint256",
533
- },
534
- ],
535
- stateMutability: "pure",
536
- type: "function",
537
- },
538
- {
539
- inputs: [
540
- {
541
- internalType: "address",
542
- name: "",
543
- type: "address",
544
- },
545
- {
546
- internalType: "uint256",
547
- name: "",
548
- type: "uint256",
549
- },
550
- {
551
- internalType: "uint256",
552
- name: "",
553
- type: "uint256",
554
- },
555
- {
556
- internalType: "uint256",
557
- name: "",
558
- type: "uint256",
559
- },
560
- {
561
- internalType: "address",
562
- name: "",
563
- type: "address",
564
- },
565
- {
566
- internalType: "uint256",
567
- name: "",
568
- type: "uint256",
569
- },
570
- {
571
- internalType: "bool",
572
- name: "",
573
- type: "bool",
574
- },
575
- {
576
- internalType: "uint8",
577
- name: "",
578
- type: "uint8",
579
- },
580
- {
581
- internalType: "bytes32",
582
- name: "",
583
- type: "bytes32",
584
- },
585
- {
586
- internalType: "bytes32",
587
- name: "",
588
- type: "bytes32",
589
- },
590
- ],
591
- name: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens",
592
- outputs: [
593
- {
594
- internalType: "uint256",
595
- name: "amountETH",
596
- type: "uint256",
597
- },
598
- ],
599
- stateMutability: "pure",
600
- type: "function",
601
- },
602
- {
603
- inputs: [
604
- {
605
- internalType: "address",
606
- name: "",
607
- type: "address",
608
- },
609
- {
610
- internalType: "address",
611
- name: "",
612
- type: "address",
613
- },
614
- {
615
- internalType: "uint256",
616
- name: "",
617
- type: "uint256",
618
- },
619
- {
620
- internalType: "uint256",
621
- name: "",
622
- type: "uint256",
623
- },
624
- {
625
- internalType: "uint256",
626
- name: "",
627
- type: "uint256",
628
- },
629
- {
630
- internalType: "address",
631
- name: "",
632
- type: "address",
633
- },
634
- {
635
- internalType: "uint256",
636
- name: "",
637
- type: "uint256",
638
- },
639
- {
640
- internalType: "bool",
641
- name: "",
642
- type: "bool",
643
- },
644
- {
645
- internalType: "uint8",
646
- name: "",
647
- type: "uint8",
648
- },
649
- {
650
- internalType: "bytes32",
651
- name: "",
652
- type: "bytes32",
653
- },
654
- {
655
- internalType: "bytes32",
656
- name: "",
657
- type: "bytes32",
658
- },
659
- ],
660
- name: "removeLiquidityWithPermit",
661
- outputs: [
662
- {
663
- internalType: "uint256",
664
- name: "amountA",
665
- type: "uint256",
666
- },
667
- {
668
- internalType: "uint256",
669
- name: "amountB",
670
- type: "uint256",
671
- },
672
- ],
673
- stateMutability: "pure",
674
- type: "function",
675
- },
676
- {
677
- inputs: [
678
- {
679
- internalType: "address",
680
- name: "tokenFrom",
681
- type: "address",
682
- },
683
- {
684
- internalType: "address",
685
- name: "tokenTo",
686
- type: "address",
687
- },
688
- {
689
- internalType: "uint256",
690
- name: "rate_RAY",
691
- type: "uint256",
692
- },
693
- ],
694
- name: "setRate",
695
- outputs: [],
696
- stateMutability: "nonpayable",
697
- type: "function",
698
- },
699
- {
700
- inputs: [
701
- {
702
- internalType: "uint256",
703
- name: "",
704
- type: "uint256",
705
- },
706
- {
707
- internalType: "address[]",
708
- name: "",
709
- type: "address[]",
710
- },
711
- {
712
- internalType: "address",
713
- name: "",
714
- type: "address",
715
- },
716
- {
717
- internalType: "uint256",
718
- name: "",
719
- type: "uint256",
720
- },
721
- ],
722
- name: "swapETHForExactTokens",
723
- outputs: [
724
- {
725
- internalType: "uint256[]",
726
- name: "",
727
- type: "uint256[]",
728
- },
729
- ],
730
- stateMutability: "payable",
731
- type: "function",
732
- },
733
- {
734
- inputs: [
735
- {
736
- internalType: "uint256",
737
- name: "",
738
- type: "uint256",
739
- },
740
- {
741
- internalType: "address[]",
742
- name: "",
743
- type: "address[]",
744
- },
745
- {
746
- internalType: "address",
747
- name: "",
748
- type: "address",
749
- },
750
- {
751
- internalType: "uint256",
752
- name: "",
753
- type: "uint256",
754
- },
755
- ],
756
- name: "swapExactETHForTokens",
757
- outputs: [
758
- {
759
- internalType: "uint256[]",
760
- name: "",
761
- type: "uint256[]",
762
- },
763
- ],
764
- stateMutability: "payable",
765
- type: "function",
766
- },
767
- {
768
- inputs: [
769
- {
770
- internalType: "uint256",
771
- name: "",
772
- type: "uint256",
773
- },
774
- {
775
- internalType: "address[]",
776
- name: "",
777
- type: "address[]",
778
- },
779
- {
780
- internalType: "address",
781
- name: "",
782
- type: "address",
783
- },
784
- {
785
- internalType: "uint256",
786
- name: "",
787
- type: "uint256",
788
- },
789
- ],
790
- name: "swapExactETHForTokensSupportingFeeOnTransferTokens",
791
- outputs: [],
792
- stateMutability: "payable",
793
- type: "function",
794
- },
795
- {
796
- inputs: [
797
- {
798
- internalType: "uint256",
799
- name: "",
800
- type: "uint256",
801
- },
802
- {
803
- internalType: "uint256",
804
- name: "",
805
- type: "uint256",
806
- },
807
- {
808
- internalType: "address[]",
809
- name: "",
810
- type: "address[]",
811
- },
812
- {
813
- internalType: "address",
814
- name: "",
815
- type: "address",
816
- },
817
- {
818
- internalType: "uint256",
819
- name: "",
820
- type: "uint256",
821
- },
822
- ],
823
- name: "swapExactTokensForETH",
824
- outputs: [
825
- {
826
- internalType: "uint256[]",
827
- name: "",
828
- type: "uint256[]",
829
- },
830
- ],
831
- stateMutability: "pure",
832
- type: "function",
833
- },
834
- {
835
- inputs: [
836
- {
837
- internalType: "uint256",
838
- name: "",
839
- type: "uint256",
840
- },
841
- {
842
- internalType: "uint256",
843
- name: "",
844
- type: "uint256",
845
- },
846
- {
847
- internalType: "address[]",
848
- name: "",
849
- type: "address[]",
850
- },
851
- {
852
- internalType: "address",
853
- name: "",
854
- type: "address",
855
- },
856
- {
857
- internalType: "uint256",
858
- name: "",
859
- type: "uint256",
860
- },
861
- ],
862
- name: "swapExactTokensForETHSupportingFeeOnTransferTokens",
863
- outputs: [],
864
- stateMutability: "pure",
865
- type: "function",
866
- },
867
- {
868
- inputs: [
869
- {
870
- internalType: "uint256",
871
- name: "amountIn",
872
- type: "uint256",
873
- },
874
- {
875
- internalType: "uint256",
876
- name: "amountOutMin",
877
- type: "uint256",
878
- },
879
- {
880
- internalType: "address[]",
881
- name: "path",
882
- type: "address[]",
883
- },
884
- {
885
- internalType: "address",
886
- name: "to",
887
- type: "address",
888
- },
889
- {
890
- internalType: "uint256",
891
- name: "deadline",
892
- type: "uint256",
893
- },
894
- ],
895
- name: "swapExactTokensForTokens",
896
- outputs: [
897
- {
898
- internalType: "uint256[]",
899
- name: "",
900
- type: "uint256[]",
901
- },
902
- ],
903
- stateMutability: "nonpayable",
904
- type: "function",
905
- },
906
- {
907
- inputs: [
908
- {
909
- internalType: "uint256",
910
- name: "",
911
- type: "uint256",
912
- },
913
- {
914
- internalType: "uint256",
915
- name: "",
916
- type: "uint256",
917
- },
918
- {
919
- internalType: "address[]",
920
- name: "",
921
- type: "address[]",
922
- },
923
- {
924
- internalType: "address",
925
- name: "",
926
- type: "address",
927
- },
928
- {
929
- internalType: "uint256",
930
- name: "",
931
- type: "uint256",
932
- },
933
- ],
934
- name: "swapExactTokensForTokensSupportingFeeOnTransferTokens",
935
- outputs: [],
936
- stateMutability: "pure",
937
- type: "function",
938
- },
939
- {
940
- inputs: [
941
- {
942
- internalType: "uint256",
943
- name: "",
944
- type: "uint256",
945
- },
946
- {
947
- internalType: "uint256",
948
- name: "",
949
- type: "uint256",
950
- },
951
- {
952
- internalType: "address[]",
953
- name: "",
954
- type: "address[]",
955
- },
956
- {
957
- internalType: "address",
958
- name: "",
959
- type: "address",
960
- },
961
- {
962
- internalType: "uint256",
963
- name: "",
964
- type: "uint256",
965
- },
966
- ],
967
- name: "swapTokensForExactETH",
968
- outputs: [
969
- {
970
- internalType: "uint256[]",
971
- name: "",
972
- type: "uint256[]",
973
- },
974
- ],
975
- stateMutability: "pure",
976
- type: "function",
977
- },
978
- {
979
- inputs: [
980
- {
981
- internalType: "uint256",
982
- name: "amountOut",
983
- type: "uint256",
984
- },
985
- {
986
- internalType: "uint256",
987
- name: "amountInMax",
988
- type: "uint256",
989
- },
990
- {
991
- internalType: "address[]",
992
- name: "path",
993
- type: "address[]",
994
- },
995
- {
996
- internalType: "address",
997
- name: "to",
998
- type: "address",
999
- },
1000
- {
1001
- internalType: "uint256",
1002
- name: "deadline",
1003
- type: "uint256",
1004
- },
1005
- ],
1006
- name: "swapTokensForExactTokens",
1007
- outputs: [
1008
- {
1009
- internalType: "uint256[]",
1010
- name: "",
1011
- type: "uint256[]",
1012
- },
1013
- ],
1014
- stateMutability: "nonpayable",
1015
- type: "function",
1016
- },
1017
- ];
1018
- var _bytecode = "0x608060405234801561001057600080fd5b50612af0806100206000396000f3fe6080604052600436106101815760003560e01c80638803dbee116100d1578063baa2abde1161008a578063ded9382a11610064578063ded9382a146111bd578063e8e337001461129f578063f305d71914611385578063fb3bdb411461143357610181565b8063baa2abde14610fc3578063c45a015514611097578063d06ca61f146110d857610181565b80638803dbee14610c1257806397edd4fa14610d2b578063ad5c464814610dc5578063ad615dec14610e06578063af2979eb14610e69578063b6f9de9514610f1657610181565b80634a25d94a1161013e5780635c11d795116101185780635c11d79514610925578063791ac947146109e95780637ff36ab514610aad57806385f8c25914610baf57610181565b80634a25d94a146106b65780635911fb9a146107cf5780635b0d59841461084a57610181565b806302751cec14610186578063054d50d41461023a57806318cbafe51461029d5780631f00ca74146103b65780632195995c1461049b57806338ed17391461059d575b600080fd5b34801561019257600080fd5b5061021d600480360360c08110156101a957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611535565b604051808381526020018281526020019250505060405180910390f35b34801561024657600080fd5b506102876004803603606081101561025d57600080fd5b8101908080359060200190929190803590602001909291908035906020019092919050505061154a565b6040518082815260200191505060405180910390f35b3480156102a957600080fd5b5061035f600480360360a08110156102c057600080fd5b810190808035906020019092919080359060200190929190803590602001906401000000008111156102f157600080fd5b82018360208201111561030357600080fd5b8035906020019184602083028401116401000000008311171561032557600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611553565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156103a2578082015181840152602081019050610387565b505050509050019250505060405180910390f35b3480156103c257600080fd5b50610444600480360360408110156103d957600080fd5b81019080803590602001909291908035906020019064010000000081111561040057600080fd5b82018360208201111561041257600080fd5b8035906020019184602083028401116401000000008311171561043457600080fd5b90919293919293905050506115af565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561048757808201518184015260208101905061046c565b505050509050019250505060405180910390f35b3480156104a757600080fd5b5061058060048036036101608110156104bf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803515159060200190929190803560ff1690602001909291908035906020019092919080359060200190929190505050611608565b604051808381526020018281526020019250505060405180910390f35b3480156105a957600080fd5b5061065f600480360360a08110156105c057600080fd5b810190808035906020019092919080359060200190929190803590602001906401000000008111156105f157600080fd5b82018360208201111561060357600080fd5b8035906020019184602083028401116401000000008311171561062557600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611622565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156106a2578082015181840152602081019050610687565b505050509050019250505060405180910390f35b3480156106c257600080fd5b50610778600480360360a08110156106d957600080fd5b8101908080359060200190929190803590602001909291908035906020019064010000000081111561070a57600080fd5b82018360208201111561071c57600080fd5b8035906020019184602083028401116401000000008311171561073e57600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611856565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156107bb5780820151818401526020810190506107a0565b505050509050019250505060405180910390f35b3480156107db57600080fd5b50610848600480360360608110156107f257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506118b2565b005b34801561085657600080fd5b5061090f600480360361014081101561086e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803515159060200190929190803560ff16906020019092919080359060200190929190803590602001909291905050506119d0565b6040518082815260200191505060405180910390f35b34801561093157600080fd5b506109e7600480360360a081101561094857600080fd5b8101908080359060200190929190803590602001909291908035906020019064010000000081111561097957600080fd5b82018360208201111561098b57600080fd5b803590602001918460208302840111640100000000831117156109ad57600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506119e0565b005b3480156109f557600080fd5b50610aab600480360360a0811015610a0c57600080fd5b81019080803590602001909291908035906020019092919080359060200190640100000000811115610a3d57600080fd5b820183602082011115610a4f57600080fd5b80359060200191846020830284011164010000000083111715610a7157600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506119e8565b005b610b5860048036036080811015610ac357600080fd5b810190808035906020019092919080359060200190640100000000811115610aea57600080fd5b820183602082011115610afc57600080fd5b80359060200191846020830284011164010000000083111715610b1e57600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506119f0565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610b9b578082015181840152602081019050610b80565b505050509050019250505060405180910390f35b348015610bbb57600080fd5b50610bfc60048036036060811015610bd257600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050611a4b565b6040518082815260200191505060405180910390f35b348015610c1e57600080fd5b50610cd4600480360360a0811015610c3557600080fd5b81019080803590602001909291908035906020019092919080359060200190640100000000811115610c6657600080fd5b820183602082011115610c7857600080fd5b80359060200191846020830284011164010000000083111715610c9a57600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611a54565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610d17578082015181840152602081019050610cfc565b505050509050019250505060405180910390f35b348015610d3757600080fd5b50610daf60048036036020811015610d4e57600080fd5b8101908080359060200190640100000000811115610d6b57600080fd5b820183602082011115610d7d57600080fd5b80359060200191846020830284011164010000000083111715610d9f57600080fd5b9091929391929390505050611d25565b6040518082815260200191505060405180910390f35b348015610dd157600080fd5b50610dda611e08565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610e1257600080fd5b50610e5360048036036060811015610e2957600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050611e0d565b6040518082815260200191505060405180910390f35b348015610e7557600080fd5b50610f00600480360360c0811015610e8c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611e16565b6040518082815260200191505060405180910390f35b610fc160048036036080811015610f2c57600080fd5b810190808035906020019092919080359060200190640100000000811115610f5357600080fd5b820183602082011115610f6557600080fd5b80359060200191846020830284011164010000000083111715610f8757600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611e22565b005b348015610fcf57600080fd5b5061107a600480360360e0811015610fe657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611e29565b604051808381526020018281526020019250505060405180910390f35b3480156110a357600080fd5b506110ac611e3f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156110e457600080fd5b50611166600480360360408110156110fb57600080fd5b81019080803590602001909291908035906020019064010000000081111561112257600080fd5b82018360208201111561113457600080fd5b8035906020019184602083028401116401000000008311171561115657600080fd5b9091929391929390505050611e44565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156111a957808201518184015260208101905061118e565b505050509050019250505060405180910390f35b3480156111c957600080fd5b5061128260048036036101408110156111e157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803515159060200190929190803560ff1690602001909291908035906020019092919080359060200190929190505050611f91565b604051808381526020018281526020019250505060405180910390f35b3480156112ab57600080fd5b5061136160048036036101008110156112c357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611faa565b60405180848152602001838152602001828152602001935050505060405180910390f35b61140f600480360360c081101561139b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611fc7565b60405180848152602001838152602001828152602001935050505060405180910390f35b6114de6004803603608081101561144957600080fd5b81019080803590602001909291908035906020019064010000000081111561147057600080fd5b82018360208201111561148257600080fd5b803590602001918460208302840111640100000000831117156114a457600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611fe2565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015611521578082015181840152602081019050611506565b505050509050019250505060405180910390f35b60008060008091509150965096945050505050565b60009392505050565b60606000600167ffffffffffffffff8111801561156f57600080fd5b5060405190808252806020026020018201604052801561159e5781602001602082028036833780820191505090505b509050809150509695505050505050565b60606000600167ffffffffffffffff811180156115cb57600080fd5b506040519080825280602002602001820160405280156115fa5781602001602082028036833780820191505090505b509050809150509392505050565b600080600080915091509b509b9950505050505050505050565b6060814281101561169b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f556e69737761705632526f757465723a2045585049524544000000000000000081525060200191505060405180910390fd5b60006116a8898888611e44565b60018888905003815181106116b957fe5b602002602001015190508781101561171c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180612a66602b913960400191505060405180910390fd5b61177233308b8a8a600081811061172f57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661203d909392919063ffffffff16565b6117c685828989600181811061178457fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120fe9092919063ffffffff16565b6000600267ffffffffffffffff811180156117e057600080fd5b5060405190808252806020026020018201604052801561180f5781602001602082028036833780820191505090505b509050898160008151811061182057fe5b602002602001018181525050818160018151811061183a57fe5b6020026020010181815250508093505050509695505050505050565b60606000600167ffffffffffffffff8111801561187257600080fd5b506040519080825280602002602001820160405280156118a15781602001602082028036833780820191505090505b509050809150509695505050505050565b806000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061194c8161193e6121a0565b6121b490919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b60009a9950505050505050505050565b505050505050565b505050505050565b60606000600167ffffffffffffffff81118015611a0c57600080fd5b50604051908082528060200260200182016040528015611a3b5781602001602082028036833780820191505090505b5090508091505095945050505050565b60009392505050565b60608142811015611acd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f556e69737761705632526f757465723a2045585049524544000000000000000081525060200191505060405180910390fd5b6000611ad98787611d25565b90506000811415611b52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f556e69737761704d6f636b3a2052617465206973206e6f74207365747570000081525060200191505060405180910390fd5b6000611b8f6103e5611b8184611b736103e88f6123e190919063ffffffff16565b61246790919063ffffffff16565b6125e090919063ffffffff16565b905088811115611bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180612a3f6027913960400191505060405180910390fd5b611c403330838b8b6000818110611bfd57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661203d909392919063ffffffff16565b611c94868b8a8a6001818110611c5257fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120fe9092919063ffffffff16565b6000600267ffffffffffffffff81118015611cae57600080fd5b50604051908082528060200260200182016040528015611cdd5781602001602082028036833780820191505090505b5090508181600081518110611cee57fe5b6020026020010181815250508a81600181518110611d0857fe5b602002602001018181525050809450505050509695505050505050565b60008083836000818110611d3557fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff169050600084846001818110611d6357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1690506000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549250505092915050565b600090565b60009392505050565b60009695505050505050565b5050505050565b6000806000809150915097509795505050505050565b600090565b60606000611e528484611d25565b90506000811415611ecb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f556e69737761704d6f636b3a2052617465206973206e6f74207365747570000081525060200191505060405180910390fd5b6000600267ffffffffffffffff81118015611ee557600080fd5b50604051908082528060200260200182016040528015611f145781602001602082028036833780820191505090505b5090508581600081518110611f2557fe5b602002602001018181525050611f6c6103e8611f5e6103e5611f50868b61246790919063ffffffff16565b6123e190919063ffffffff16565b6125e090919063ffffffff16565b81600181518110611f7957fe5b60200260200101818152505080925050509392505050565b600080600080915091509a509a98505050505050505050565b600080600080600080925092509250985098509895505050505050565b60008060008060008092509250925096509650969350505050565b60606000600167ffffffffffffffff81118015611ffe57600080fd5b5060405190808252806020026020018201604052801561202d5781602001602082028036833780820191505090505b5090508091505095945050505050565b6120f8846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612669565b50505050565b61219b8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612669565b505050565b60006b033b2e3c9fd0803ce8000000905090565b6000808214156040518060400160405280600281526020017f4d3300000000000000000000000000000000000000000000000000000000000081525090612296576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561225b578082015181840152602081019050612240565b50505050905090810190601f1680156122885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000600283816122a357fe5b0490506b033b2e3c9fd0803ce8000000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03816122dd57fe5b048411156040518060400160405280600281526020017f4d31000000000000000000000000000000000000000000000000000000000000815250906123bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612382578082015181840152602081019050612367565b50505050905090810190601f1680156123af5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082816b033b2e3c9fd0803ce8000000860201816123d757fe5b0491505092915050565b6000808314156123f45760009050612461565b600082840290508284828161240557fe5b041461245c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612a1e6021913960400191505060405180910390fd5b809150505b92915050565b6000808314806124775750600082145b1561248557600090506125da565b8160026b033b2e3c9fd0803ce80000008161249c57fe5b047fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03816124c657fe5b048311156040518060400160405280600281526020017f4d31000000000000000000000000000000000000000000000000000000000000815250906125a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561256b578082015181840152602081019050612550565b50505050905090810190601f1680156125985780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506b033b2e3c9fd0803ce800000060026b033b2e3c9fd0803ce8000000816125ca57fe5b0483850201816125d657fe5b0490505b92915050565b6000808211612657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161266057fe5b04905092915050565b60006126cb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166127589092919063ffffffff16565b9050600081511115612753578080602001905160208110156126ec57600080fd5b8101908080519060200190929190505050612752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612a91602a913960400191505060405180910390fd5b5b505050565b60606127678484600085612770565b90509392505050565b6060824710156127cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806129f86026913960400191505060405180910390fd5b6127d485612918565b612846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106128955780518252602082019150602081019050602083039250612872565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146128f7576040519150601f19603f3d011682016040523d82523d6000602084013e6128fc565b606091505b509150915061290c82828661292b565b92505050949350505050565b600080823b905060008111915050919050565b6060831561293b578290506129f0565b60008351111561294e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156129b557808201518184015260208101905061299a565b50505050905090810190601f1680156129e25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77556e69737761705632526f757465723a204558434553534956455f494e5055545f414d4f554e54556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220b5fa1e40c48e21be5ff29bdb7ad3fae05e6e65c12d5dbe199ce195dc7dc3bf6064736f6c63430007060033";
1019
- var UniswapRouterMock__factory = /** @class */ (function (_super) {
1020
- __extends(UniswapRouterMock__factory, _super);
1021
- function UniswapRouterMock__factory(signer) {
1022
- return _super.call(this, _abi, _bytecode, signer) || this;
1023
- }
1024
- UniswapRouterMock__factory.prototype.deploy = function (overrides) {
1025
- return _super.prototype.deploy.call(this, overrides || {});
1026
- };
1027
- UniswapRouterMock__factory.prototype.getDeployTransaction = function (overrides) {
1028
- return _super.prototype.getDeployTransaction.call(this, overrides || {});
1029
- };
1030
- UniswapRouterMock__factory.prototype.attach = function (address) {
1031
- return _super.prototype.attach.call(this, address);
1032
- };
1033
- UniswapRouterMock__factory.prototype.connect = function (signer) {
1034
- return _super.prototype.connect.call(this, signer);
1035
- };
1036
- UniswapRouterMock__factory.createInterface = function () {
1037
- return new ethers_1.utils.Interface(_abi);
1038
- };
1039
- UniswapRouterMock__factory.connect = function (address, signerOrProvider) {
1040
- return new ethers_1.Contract(address, _abi, signerOrProvider);
1041
- };
1042
- UniswapRouterMock__factory.bytecode = _bytecode;
1043
- UniswapRouterMock__factory.abi = _abi;
1044
- return UniswapRouterMock__factory;
1045
- }(ethers_1.ContractFactory));
1046
- exports.UniswapRouterMock__factory = UniswapRouterMock__factory;