@gearbox-protocol/sdk 0.0.2

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