@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,35 +0,0 @@
1
- import { Signer } from "ethers";
2
- import { Provider } from "@ethersproject/providers";
3
- import type { IAccountFactory, IAccountFactoryInterface } from "../IAccountFactory";
4
- export declare class IAccountFactory__factory {
5
- static readonly abi: ({
6
- anonymous: boolean;
7
- inputs: {
8
- indexed: boolean;
9
- internalType: string;
10
- name: string;
11
- type: string;
12
- }[];
13
- name: string;
14
- type: string;
15
- outputs?: undefined;
16
- stateMutability?: undefined;
17
- } | {
18
- inputs: {
19
- internalType: string;
20
- name: string;
21
- type: string;
22
- }[];
23
- name: string;
24
- outputs: {
25
- internalType: string;
26
- name: string;
27
- type: string;
28
- }[];
29
- stateMutability: string;
30
- type: string;
31
- anonymous?: undefined;
32
- })[];
33
- static createInterface(): IAccountFactoryInterface;
34
- static connect(address: string, signerOrProvider: Signer | Provider): IAccountFactory;
35
- }
@@ -1,226 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IAccountFactory__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
9
- {
10
- anonymous: false,
11
- inputs: [
12
- {
13
- indexed: true,
14
- internalType: "address",
15
- name: "miner",
16
- type: "address",
17
- },
18
- ],
19
- name: "AccountMinerChanged",
20
- type: "event",
21
- },
22
- {
23
- anonymous: false,
24
- inputs: [
25
- {
26
- indexed: true,
27
- internalType: "address",
28
- name: "account",
29
- type: "address",
30
- },
31
- {
32
- indexed: true,
33
- internalType: "address",
34
- name: "creditManager",
35
- type: "address",
36
- },
37
- ],
38
- name: "InitializeCreditAccount",
39
- type: "event",
40
- },
41
- {
42
- anonymous: false,
43
- inputs: [
44
- {
45
- indexed: true,
46
- internalType: "address",
47
- name: "account",
48
- type: "address",
49
- },
50
- ],
51
- name: "NewCreditAccount",
52
- type: "event",
53
- },
54
- {
55
- anonymous: false,
56
- inputs: [
57
- {
58
- indexed: true,
59
- internalType: "address",
60
- name: "account",
61
- type: "address",
62
- },
63
- ],
64
- name: "ReturnCreditAccount",
65
- type: "event",
66
- },
67
- {
68
- anonymous: false,
69
- inputs: [
70
- {
71
- indexed: true,
72
- internalType: "address",
73
- name: "creditAccount",
74
- type: "address",
75
- },
76
- {
77
- indexed: true,
78
- internalType: "address",
79
- name: "to",
80
- type: "address",
81
- },
82
- ],
83
- name: "TakeForever",
84
- type: "event",
85
- },
86
- {
87
- inputs: [],
88
- name: "countCreditAccounts",
89
- outputs: [
90
- {
91
- internalType: "uint256",
92
- name: "",
93
- type: "uint256",
94
- },
95
- ],
96
- stateMutability: "view",
97
- type: "function",
98
- },
99
- {
100
- inputs: [],
101
- name: "countCreditAccountsInStock",
102
- outputs: [
103
- {
104
- internalType: "uint256",
105
- name: "",
106
- type: "uint256",
107
- },
108
- ],
109
- stateMutability: "view",
110
- type: "function",
111
- },
112
- {
113
- inputs: [
114
- {
115
- internalType: "uint256",
116
- name: "id",
117
- type: "uint256",
118
- },
119
- ],
120
- name: "creditAccounts",
121
- outputs: [
122
- {
123
- internalType: "address",
124
- name: "",
125
- type: "address",
126
- },
127
- ],
128
- stateMutability: "view",
129
- type: "function",
130
- },
131
- {
132
- inputs: [
133
- {
134
- internalType: "address",
135
- name: "creditAccount",
136
- type: "address",
137
- },
138
- ],
139
- name: "getNext",
140
- outputs: [
141
- {
142
- internalType: "address",
143
- name: "",
144
- type: "address",
145
- },
146
- ],
147
- stateMutability: "view",
148
- type: "function",
149
- },
150
- {
151
- inputs: [],
152
- name: "head",
153
- outputs: [
154
- {
155
- internalType: "address",
156
- name: "",
157
- type: "address",
158
- },
159
- ],
160
- stateMutability: "view",
161
- type: "function",
162
- },
163
- {
164
- inputs: [
165
- {
166
- internalType: "address",
167
- name: "usedAccount",
168
- type: "address",
169
- },
170
- ],
171
- name: "returnCreditAccount",
172
- outputs: [],
173
- stateMutability: "nonpayable",
174
- type: "function",
175
- },
176
- {
177
- inputs: [],
178
- name: "tail",
179
- outputs: [
180
- {
181
- internalType: "address",
182
- name: "",
183
- type: "address",
184
- },
185
- ],
186
- stateMutability: "view",
187
- type: "function",
188
- },
189
- {
190
- inputs: [
191
- {
192
- internalType: "uint256",
193
- name: "_borrowedAmount",
194
- type: "uint256",
195
- },
196
- {
197
- internalType: "uint256",
198
- name: "_cumulativeIndexAtOpen",
199
- type: "uint256",
200
- },
201
- ],
202
- name: "takeCreditAccount",
203
- outputs: [
204
- {
205
- internalType: "address",
206
- name: "",
207
- type: "address",
208
- },
209
- ],
210
- stateMutability: "nonpayable",
211
- type: "function",
212
- },
213
- ];
214
- var IAccountFactory__factory = /** @class */ (function () {
215
- function IAccountFactory__factory() {
216
- }
217
- IAccountFactory__factory.createInterface = function () {
218
- return new ethers_1.utils.Interface(_abi);
219
- };
220
- IAccountFactory__factory.connect = function (address, signerOrProvider) {
221
- return new ethers_1.Contract(address, _abi, signerOrProvider);
222
- };
223
- IAccountFactory__factory.abi = _abi;
224
- return IAccountFactory__factory;
225
- }());
226
- exports.IAccountFactory__factory = IAccountFactory__factory;
@@ -1,28 +0,0 @@
1
- import { Signer } from "ethers";
2
- import { Provider } from "@ethersproject/providers";
3
- import type { IAccountMiner, IAccountMinerInterface } from "../IAccountMiner";
4
- export declare class IAccountMiner__factory {
5
- static readonly abi: ({
6
- inputs: never[];
7
- name: string;
8
- outputs: {
9
- internalType: string;
10
- name: string;
11
- type: string;
12
- }[];
13
- stateMutability: string;
14
- type: string;
15
- } | {
16
- inputs: {
17
- internalType: string;
18
- name: string;
19
- type: string;
20
- }[];
21
- name: string;
22
- outputs: never[];
23
- stateMutability: string;
24
- type: string;
25
- })[];
26
- static createInterface(): IAccountMinerInterface;
27
- static connect(address: string, signerOrProvider: Signer | Provider): IAccountMiner;
28
- }
@@ -1,48 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IAccountMiner__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
9
- {
10
- inputs: [],
11
- name: "kind",
12
- outputs: [
13
- {
14
- internalType: "bytes32",
15
- name: "",
16
- type: "bytes32",
17
- },
18
- ],
19
- stateMutability: "pure",
20
- type: "function",
21
- },
22
- {
23
- inputs: [
24
- {
25
- internalType: "address payable",
26
- name: "user",
27
- type: "address",
28
- },
29
- ],
30
- name: "mineAccount",
31
- outputs: [],
32
- stateMutability: "nonpayable",
33
- type: "function",
34
- },
35
- ];
36
- var IAccountMiner__factory = /** @class */ (function () {
37
- function IAccountMiner__factory() {
38
- }
39
- IAccountMiner__factory.createInterface = function () {
40
- return new ethers_1.utils.Interface(_abi);
41
- };
42
- IAccountMiner__factory.connect = function (address, signerOrProvider) {
43
- return new ethers_1.Contract(address, _abi, signerOrProvider);
44
- };
45
- IAccountMiner__factory.abi = _abi;
46
- return IAccountMiner__factory;
47
- }());
48
- exports.IAccountMiner__factory = IAccountMiner__factory;
@@ -1,18 +0,0 @@
1
- import { Signer } from "ethers";
2
- import { Provider } from "@ethersproject/providers";
3
- import type { IAppAddressProvider, IAppAddressProviderInterface } from "../IAppAddressProvider";
4
- export declare class IAppAddressProvider__factory {
5
- static readonly abi: {
6
- inputs: never[];
7
- name: string;
8
- outputs: {
9
- internalType: string;
10
- name: string;
11
- type: string;
12
- }[];
13
- stateMutability: string;
14
- type: string;
15
- }[];
16
- static createInterface(): IAppAddressProviderInterface;
17
- static connect(address: string, signerOrProvider: Signer | Provider): IAppAddressProvider;
18
- }
@@ -1,100 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IAppAddressProvider__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
9
- {
10
- inputs: [],
11
- name: "getDataCompressor",
12
- outputs: [
13
- {
14
- internalType: "address",
15
- name: "",
16
- type: "address",
17
- },
18
- ],
19
- stateMutability: "view",
20
- type: "function",
21
- },
22
- {
23
- inputs: [],
24
- name: "getGearToken",
25
- outputs: [
26
- {
27
- internalType: "address",
28
- name: "",
29
- type: "address",
30
- },
31
- ],
32
- stateMutability: "view",
33
- type: "function",
34
- },
35
- {
36
- inputs: [],
37
- name: "getLeveragedActions",
38
- outputs: [
39
- {
40
- internalType: "address",
41
- name: "",
42
- type: "address",
43
- },
44
- ],
45
- stateMutability: "view",
46
- type: "function",
47
- },
48
- {
49
- inputs: [],
50
- name: "getPriceOracle",
51
- outputs: [
52
- {
53
- internalType: "address",
54
- name: "",
55
- type: "address",
56
- },
57
- ],
58
- stateMutability: "view",
59
- type: "function",
60
- },
61
- {
62
- inputs: [],
63
- name: "getWETHGateway",
64
- outputs: [
65
- {
66
- internalType: "address",
67
- name: "",
68
- type: "address",
69
- },
70
- ],
71
- stateMutability: "view",
72
- type: "function",
73
- },
74
- {
75
- inputs: [],
76
- name: "getWethToken",
77
- outputs: [
78
- {
79
- internalType: "address",
80
- name: "",
81
- type: "address",
82
- },
83
- ],
84
- stateMutability: "view",
85
- type: "function",
86
- },
87
- ];
88
- var IAppAddressProvider__factory = /** @class */ (function () {
89
- function IAppAddressProvider__factory() {
90
- }
91
- IAppAddressProvider__factory.createInterface = function () {
92
- return new ethers_1.utils.Interface(_abi);
93
- };
94
- IAppAddressProvider__factory.connect = function (address, signerOrProvider) {
95
- return new ethers_1.Contract(address, _abi, signerOrProvider);
96
- };
97
- IAppAddressProvider__factory.abi = _abi;
98
- return IAppAddressProvider__factory;
99
- }());
100
- exports.IAppAddressProvider__factory = IAppAddressProvider__factory;
@@ -1,42 +0,0 @@
1
- import { Signer } from "ethers";
2
- import { Provider } from "@ethersproject/providers";
3
- import type { IAppCreditManager, IAppCreditManagerInterface } from "../IAppCreditManager";
4
- export declare class IAppCreditManager__factory {
5
- static readonly abi: ({
6
- inputs: {
7
- internalType: string;
8
- name: string;
9
- type: string;
10
- }[];
11
- name: string;
12
- outputs: {
13
- internalType: string;
14
- name: string;
15
- type: string;
16
- }[];
17
- stateMutability: string;
18
- type: string;
19
- } | {
20
- inputs: ({
21
- internalType: string;
22
- name: string;
23
- type: string;
24
- components?: undefined;
25
- } | {
26
- components: {
27
- internalType: string;
28
- name: string;
29
- type: string;
30
- }[];
31
- internalType: string;
32
- name: string;
33
- type: string;
34
- })[];
35
- name: string;
36
- outputs: never[];
37
- stateMutability: string;
38
- type: string;
39
- })[];
40
- static createInterface(): IAppCreditManagerInterface;
41
- static connect(address: string, signerOrProvider: Signer | Provider): IAppCreditManager;
42
- }
@@ -1,204 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IAppCreditManager__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
9
- {
10
- inputs: [
11
- {
12
- internalType: "address",
13
- name: "onBehalfOf",
14
- type: "address",
15
- },
16
- {
17
- internalType: "address",
18
- name: "token",
19
- type: "address",
20
- },
21
- {
22
- internalType: "uint256",
23
- name: "amount",
24
- type: "uint256",
25
- },
26
- ],
27
- name: "addCollateral",
28
- outputs: [],
29
- stateMutability: "nonpayable",
30
- type: "function",
31
- },
32
- {
33
- inputs: [
34
- {
35
- internalType: "address",
36
- name: "borrower",
37
- type: "address",
38
- },
39
- {
40
- internalType: "bool",
41
- name: "isLiquidated",
42
- type: "bool",
43
- },
44
- ],
45
- name: "calcRepayAmount",
46
- outputs: [
47
- {
48
- internalType: "uint256",
49
- name: "",
50
- type: "uint256",
51
- },
52
- ],
53
- stateMutability: "view",
54
- type: "function",
55
- },
56
- {
57
- inputs: [
58
- {
59
- internalType: "address",
60
- name: "to",
61
- type: "address",
62
- },
63
- {
64
- components: [
65
- {
66
- internalType: "address[]",
67
- name: "path",
68
- type: "address[]",
69
- },
70
- {
71
- internalType: "uint256",
72
- name: "amountOutMin",
73
- type: "uint256",
74
- },
75
- ],
76
- internalType: "struct DataTypes.Exchange[]",
77
- name: "paths",
78
- type: "tuple[]",
79
- },
80
- ],
81
- name: "closeCreditAccount",
82
- outputs: [],
83
- stateMutability: "nonpayable",
84
- type: "function",
85
- },
86
- {
87
- inputs: [],
88
- name: "defaultSwapContract",
89
- outputs: [
90
- {
91
- internalType: "address",
92
- name: "",
93
- type: "address",
94
- },
95
- ],
96
- stateMutability: "view",
97
- type: "function",
98
- },
99
- {
100
- inputs: [
101
- {
102
- internalType: "address",
103
- name: "borrower",
104
- type: "address",
105
- },
106
- ],
107
- name: "getCreditAccountOrRevert",
108
- outputs: [
109
- {
110
- internalType: "address",
111
- name: "",
112
- type: "address",
113
- },
114
- ],
115
- stateMutability: "view",
116
- type: "function",
117
- },
118
- {
119
- inputs: [
120
- {
121
- internalType: "address",
122
- name: "borrower",
123
- type: "address",
124
- },
125
- ],
126
- name: "hasOpenedCreditAccount",
127
- outputs: [
128
- {
129
- internalType: "bool",
130
- name: "",
131
- type: "bool",
132
- },
133
- ],
134
- stateMutability: "view",
135
- type: "function",
136
- },
137
- {
138
- inputs: [
139
- {
140
- internalType: "uint256",
141
- name: "amount",
142
- type: "uint256",
143
- },
144
- ],
145
- name: "increaseBorrowedAmount",
146
- outputs: [],
147
- stateMutability: "nonpayable",
148
- type: "function",
149
- },
150
- {
151
- inputs: [
152
- {
153
- internalType: "uint256",
154
- name: "amount",
155
- type: "uint256",
156
- },
157
- {
158
- internalType: "address",
159
- name: "onBehalfOf",
160
- type: "address",
161
- },
162
- {
163
- internalType: "uint256",
164
- name: "leverageFactor",
165
- type: "uint256",
166
- },
167
- {
168
- internalType: "uint256",
169
- name: "referralCode",
170
- type: "uint256",
171
- },
172
- ],
173
- name: "openCreditAccount",
174
- outputs: [],
175
- stateMutability: "nonpayable",
176
- type: "function",
177
- },
178
- {
179
- inputs: [
180
- {
181
- internalType: "address",
182
- name: "to",
183
- type: "address",
184
- },
185
- ],
186
- name: "repayCreditAccount",
187
- outputs: [],
188
- stateMutability: "nonpayable",
189
- type: "function",
190
- },
191
- ];
192
- var IAppCreditManager__factory = /** @class */ (function () {
193
- function IAppCreditManager__factory() {
194
- }
195
- IAppCreditManager__factory.createInterface = function () {
196
- return new ethers_1.utils.Interface(_abi);
197
- };
198
- IAppCreditManager__factory.connect = function (address, signerOrProvider) {
199
- return new ethers_1.Contract(address, _abi, signerOrProvider);
200
- };
201
- IAppCreditManager__factory.abi = _abi;
202
- return IAppCreditManager__factory;
203
- }());
204
- exports.IAppCreditManager__factory = IAppCreditManager__factory;