@gearbox-protocol/sdk 0.0.59 → 0.0.62

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 (331) hide show
  1. package/lib/index.d.ts +1 -0
  2. package/lib/index.js +3 -1
  3. package/lib/pathfinder/path.js +9 -8
  4. package/lib/pathfinder/priority.d.ts +1 -1
  5. package/lib/pathfinder/priority.js +11 -11
  6. package/lib/tokens/convex.d.ts +2 -1
  7. package/lib/tokens/convex.js +11 -11
  8. package/lib/tokens/curveLP.d.ts +2 -1
  9. package/lib/tokens/curveLP.js +7 -7
  10. package/lib/tokens/gear.d.ts +2 -1
  11. package/lib/tokens/gear.js +6 -6
  12. package/lib/tokens/normal.d.ts +2 -1
  13. package/lib/tokens/normal.js +29 -29
  14. package/lib/tokens/token.d.ts +0 -12
  15. package/lib/tokens/token.js +1 -14
  16. package/lib/tokens/tokenType.d.ts +12 -0
  17. package/lib/tokens/tokenType.js +16 -0
  18. package/lib/tokens/yearn.d.ts +2 -1
  19. package/lib/tokens/yearn.js +7 -7
  20. package/package.json +1 -1
  21. package/src/index.ts +1 -0
  22. package/src/pathfinder/path.ts +3 -2
  23. package/src/pathfinder/priority.ts +1 -1
  24. package/src/tokens/convex.ts +2 -1
  25. package/src/tokens/curveLP.ts +2 -1
  26. package/src/tokens/gear.ts +2 -1
  27. package/src/tokens/normal.ts +2 -1
  28. package/src/tokens/token.ts +0 -13
  29. package/src/tokens/tokenType.ts +12 -0
  30. package/src/tokens/yearn.ts +2 -1
  31. package/lib/core/pathfinder.d.ts +0 -54
  32. package/lib/core/pathfinder.js +0 -612
  33. package/lib/core/token.d.ts +0 -104
  34. package/lib/core/token.js +0 -1359
  35. package/lib/core/tokenData.d.ts +0 -24
  36. package/lib/core/tokenData.js +0 -57
  37. package/lib/pathfinder/connector.d.ts +0 -7
  38. package/lib/pathfinder/connector.js +0 -78
  39. package/lib/pathfinder/connectorPathAsset.d.ts +0 -7
  40. package/lib/pathfinder/connectorPathAsset.js +0 -144
  41. package/lib/pathfinder/convexLPTokenPathAsset.d.ts +0 -5
  42. package/lib/pathfinder/convexLPTokenPathAsset.js +0 -77
  43. package/lib/pathfinder/curveLPPathAsset.d.ts +0 -5
  44. package/lib/pathfinder/curveLPPathAsset.js +0 -72
  45. package/lib/pathfinder/curveMetaLP.d.ts +0 -5
  46. package/lib/pathfinder/curveMetaLP.js +0 -72
  47. package/lib/pathfinder/metaCurveLPPathAsset.d.ts +0 -5
  48. package/lib/pathfinder/metaCurveLPPathAsset.js +0 -72
  49. package/lib/pathfinder/normalToken.d.ts +0 -7
  50. package/lib/pathfinder/normalToken.js +0 -78
  51. package/lib/pathfinder/normalTokenPathAsset.d.ts +0 -5
  52. package/lib/pathfinder/normalTokenPathAsset.js +0 -136
  53. package/lib/pathfinder/notes.d.ts +0 -4
  54. package/lib/pathfinder/notes.js +0 -58
  55. package/lib/pathfinder/pathfinder.d.ts +0 -24
  56. package/lib/pathfinder/pathfinder.js +0 -132
  57. package/lib/pathfinder/yearnVaultOfCurveLPPathAsset.d.ts +0 -5
  58. package/lib/pathfinder/yearnVaultOfCurveLPPathAsset.js +0 -87
  59. package/lib/pathfinder/yearnVaultOfMetaCurveLPPathAsset.d.ts +0 -5
  60. package/lib/pathfinder/yearnVaultOfMetaCurveLPPathAsset.js +0 -87
  61. package/lib/pathfinder/yearnVaultPathAsset.d.ts +0 -5
  62. package/lib/pathfinder/yearnVaultPathAsset.js +0 -87
  63. package/lib/types/ACL.d.ts +0 -491
  64. package/lib/types/ACLTrait.d.ts +0 -148
  65. package/lib/types/ACLTraitTest.d.ts +0 -209
  66. package/lib/types/AccountFactory.d.ts +0 -716
  67. package/lib/types/AccountMining.d.ts +0 -222
  68. package/lib/types/AddressProvider.d.ts +0 -912
  69. package/lib/types/AggregatorV3Interface.d.ts +0 -234
  70. package/lib/types/ChainlinkPriceFeedMock.d.ts +0 -215
  71. package/lib/types/ContractsRegister.d.ts +0 -398
  72. package/lib/types/CreditAccount.d.ts +0 -443
  73. package/lib/types/CreditFilter.d.ts +0 -1609
  74. package/lib/types/CreditFilterMock.d.ts +0 -1687
  75. package/lib/types/CreditManager.d.ts +0 -1285
  76. package/lib/types/CreditManagerMockForFilter.d.ts +0 -605
  77. package/lib/types/CreditManagerMockForPoolTest.d.ts +0 -204
  78. package/lib/types/CurveMock.d.ts +0 -298
  79. package/lib/types/CurveV1Adapter.d.ts +0 -349
  80. package/lib/types/DataCompressor.d.ts +0 -1331
  81. package/lib/types/DieselToken.d.ts +0 -567
  82. package/lib/types/ERC165.d.ts +0 -116
  83. package/lib/types/ERC20.d.ts +0 -411
  84. package/lib/types/ERC20BlockingMock.d.ts +0 -568
  85. package/lib/types/ERC721.d.ts +0 -625
  86. package/lib/types/Errors.d.ts +0 -1854
  87. package/lib/types/ExecutorMock.d.ts +0 -140
  88. package/lib/types/FlashLoanAttacker.d.ts +0 -170
  89. package/lib/types/FuzzHarness.d.ts +0 -124
  90. package/lib/types/GearBeta.d.ts +0 -745
  91. package/lib/types/GearToken.d.ts +0 -888
  92. package/lib/types/IAccountFactory.d.ts +0 -317
  93. package/lib/types/IAccountMiner.d.ts +0 -124
  94. package/lib/types/IAppAddressProvider.d.ts +0 -198
  95. package/lib/types/IAppCreditManager.d.ts +0 -408
  96. package/lib/types/IAppERC20.d.ts +0 -309
  97. package/lib/types/IAppPoolService.d.ts +0 -166
  98. package/lib/types/ICreditAccount.d.ts +0 -430
  99. package/lib/types/ICreditFilter.d.ts +0 -1162
  100. package/lib/types/ICreditManager.d.ts +0 -971
  101. package/lib/types/ICurvePool.d.ts +0 -298
  102. package/lib/types/IDataCompressor.d.ts +0 -1231
  103. package/lib/types/IERC165.d.ts +0 -116
  104. package/lib/types/IERC20.d.ts +0 -294
  105. package/lib/types/IERC721.d.ts +0 -472
  106. package/lib/types/IERC721Enumerable.d.ts +0 -564
  107. package/lib/types/IERC721Metadata.d.ts +0 -523
  108. package/lib/types/IERC721Receiver.d.ts +0 -132
  109. package/lib/types/IGearToken.d.ts +0 -527
  110. package/lib/types/IInterestRateModel.d.ts +0 -121
  111. package/lib/types/IMerkleDistributor.d.ts +0 -190
  112. package/lib/types/IPoolService.d.ts +0 -772
  113. package/lib/types/IPriceOracle.d.ts +0 -211
  114. package/lib/types/IQuoter.d.ts +0 -269
  115. package/lib/types/ISwapRouter.d.ts +0 -404
  116. package/lib/types/IUniswapV2Migrator.d.ts +0 -134
  117. package/lib/types/IUniswapV2Router01.d.ts +0 -1119
  118. package/lib/types/IUniswapV2Router02.d.ts +0 -1432
  119. package/lib/types/IUniswapV3SwapCallback.d.ts +0 -127
  120. package/lib/types/IWETH.d.ts +0 -169
  121. package/lib/types/IWETHGateway.d.ts +0 -335
  122. package/lib/types/IYVault.d.ts +0 -558
  123. package/lib/types/LeveragedActions.d.ts +0 -772
  124. package/lib/types/LinearInterestRateModel.d.ts +0 -279
  125. package/lib/types/MockPoolService.d.ts +0 -1271
  126. package/lib/types/Multicall2.d.ts +0 -449
  127. package/lib/types/Ownable.d.ts +0 -169
  128. package/lib/types/PathFinder.d.ts +0 -379
  129. package/lib/types/Pausable.d.ts +0 -105
  130. package/lib/types/PercentageMathTest.d.ts +0 -154
  131. package/lib/types/PoolService.d.ts +0 -1174
  132. package/lib/types/PriceOracle.d.ts +0 -387
  133. package/lib/types/StepVesting.d.ts +0 -411
  134. package/lib/types/TestPoolService.d.ts +0 -1294
  135. package/lib/types/TokenDistributor.d.ts +0 -640
  136. package/lib/types/TokenFeeMock.d.ts +0 -544
  137. package/lib/types/TokenMock.d.ts +0 -531
  138. package/lib/types/TreasuryMock.d.ts +0 -86
  139. package/lib/types/UniswapRouterMock.d.ts +0 -1520
  140. package/lib/types/UniswapV2Adapter.d.ts +0 -1463
  141. package/lib/types/UniswapV3Adapter.d.ts +0 -455
  142. package/lib/types/WETHGateway.d.ts +0 -376
  143. package/lib/types/WETHMock.d.ts +0 -433
  144. package/lib/types/WadRayMathTest.d.ts +0 -316
  145. package/lib/types/YearnAdapter.d.ts +0 -609
  146. package/lib/types/YearnMock.d.ts +0 -795
  147. package/lib/types/YearnPriceFeed.d.ts +0 -399
  148. package/lib/types/commons.d.ts +0 -16
  149. package/lib/types/commons.js +0 -5
  150. package/lib/types/contracts/support/PathFinder.d.ts +0 -154
  151. package/lib/types/contracts/support/PathFinder.js +0 -2
  152. package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter.d.ts +0 -52
  153. package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter.js +0 -2
  154. package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.d.ts +0 -1
  155. package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.js +0 -2
  156. package/lib/types/factories/ACLTraitTest__factory.d.ts +0 -52
  157. package/lib/types/factories/ACLTraitTest__factory.js +0 -138
  158. package/lib/types/factories/ACLTrait__factory.d.ts +0 -31
  159. package/lib/types/factories/ACLTrait__factory.js +0 -75
  160. package/lib/types/factories/ACL__factory.d.ts +0 -45
  161. package/lib/types/factories/ACL__factory.js +0 -317
  162. package/lib/types/factories/AccountFactory__factory.d.ts +0 -72
  163. package/lib/types/factories/AccountFactory__factory.js +0 -508
  164. package/lib/types/factories/AccountMining__factory.d.ts +0 -56
  165. package/lib/types/factories/AccountMining__factory.js +0 -192
  166. package/lib/types/factories/AddressProvider__factory.d.ts +0 -52
  167. package/lib/types/factories/AddressProvider__factory.js +0 -582
  168. package/lib/types/factories/AggregatorV3Interface__factory.d.ts +0 -22
  169. package/lib/types/factories/AggregatorV3Interface__factory.js +0 -133
  170. package/lib/types/factories/ChainlinkPriceFeedMock__factory.d.ts +0 -42
  171. package/lib/types/factories/ChainlinkPriceFeedMock__factory.js +0 -193
  172. package/lib/types/factories/ContractsRegister__factory.d.ts +0 -56
  173. package/lib/types/factories/ContractsRegister__factory.js +0 -310
  174. package/lib/types/factories/CreditAccount__factory.d.ts +0 -32
  175. package/lib/types/factories/CreditAccount__factory.js +0 -262
  176. package/lib/types/factories/CreditFilterMock__factory.d.ts +0 -56
  177. package/lib/types/factories/CreditFilterMock__factory.js +0 -1083
  178. package/lib/types/factories/CreditFilter__factory.d.ts +0 -56
  179. package/lib/types/factories/CreditFilter__factory.js +0 -1047
  180. package/lib/types/factories/CreditManagerMockForFilter__factory.d.ts +0 -38
  181. package/lib/types/factories/CreditManagerMockForFilter__factory.js +0 -324
  182. package/lib/types/factories/CreditManagerMockForPoolTest__factory.d.ts +0 -48
  183. package/lib/types/factories/CreditManagerMockForPoolTest__factory.js +0 -131
  184. package/lib/types/factories/CreditManager__factory.d.ts +0 -77
  185. package/lib/types/factories/CreditManager__factory.js +0 -1030
  186. package/lib/types/factories/CurveMock__factory.d.ts +0 -42
  187. package/lib/types/factories/CurveMock__factory.js +0 -210
  188. package/lib/types/factories/CurveV1Adapter__factory.d.ts +0 -42
  189. package/lib/types/factories/CurveV1Adapter__factory.js +0 -254
  190. package/lib/types/factories/DataCompressor__factory.d.ts +0 -71
  191. package/lib/types/factories/DataCompressor__factory.js +0 -944
  192. package/lib/types/factories/DieselToken__factory.d.ts +0 -56
  193. package/lib/types/factories/DieselToken__factory.js +0 -432
  194. package/lib/types/factories/ERC165__factory.d.ts +0 -22
  195. package/lib/types/factories/ERC165__factory.js +0 -41
  196. package/lib/types/factories/ERC20BlockingMock__factory.d.ts +0 -56
  197. package/lib/types/factories/ERC20BlockingMock__factory.js +0 -429
  198. package/lib/types/factories/ERC20__factory.d.ts +0 -56
  199. package/lib/types/factories/ERC20__factory.js +0 -339
  200. package/lib/types/factories/ERC721__factory.d.ts +0 -56
  201. package/lib/types/factories/ERC721__factory.js +0 -468
  202. package/lib/types/factories/Errors__factory.d.ts +0 -28
  203. package/lib/types/factories/Errors__factory.js +0 -1015
  204. package/lib/types/factories/ExecutorMock__factory.d.ts +0 -38
  205. package/lib/types/factories/ExecutorMock__factory.js +0 -103
  206. package/lib/types/factories/FlashLoanAttacker__factory.d.ts +0 -48
  207. package/lib/types/factories/FlashLoanAttacker__factory.js +0 -117
  208. package/lib/types/factories/FuzzHarness__factory.d.ts +0 -38
  209. package/lib/types/factories/FuzzHarness__factory.js +0 -92
  210. package/lib/types/factories/GearBeta__factory.d.ts +0 -52
  211. package/lib/types/factories/GearBeta__factory.js +0 -527
  212. package/lib/types/factories/GearToken__factory.d.ts +0 -56
  213. package/lib/types/factories/GearToken__factory.js +0 -708
  214. package/lib/types/factories/IAccountFactory__factory.d.ts +0 -35
  215. package/lib/types/factories/IAccountFactory__factory.js +0 -226
  216. package/lib/types/factories/IAccountMiner__factory.d.ts +0 -28
  217. package/lib/types/factories/IAccountMiner__factory.js +0 -48
  218. package/lib/types/factories/IAppAddressProvider__factory.d.ts +0 -18
  219. package/lib/types/factories/IAppAddressProvider__factory.js +0 -100
  220. package/lib/types/factories/IAppCreditManager__factory.d.ts +0 -42
  221. package/lib/types/factories/IAppCreditManager__factory.js +0 -204
  222. package/lib/types/factories/IAppERC20__factory.d.ts +0 -22
  223. package/lib/types/factories/IAppERC20__factory.js +0 -194
  224. package/lib/types/factories/IAppPoolService__factory.d.ts +0 -22
  225. package/lib/types/factories/IAppPoolService__factory.js +0 -69
  226. package/lib/types/factories/ICreditAccount__factory.d.ts +0 -22
  227. package/lib/types/factories/ICreditAccount__factory.js +0 -218
  228. package/lib/types/factories/ICreditFilter__factory.d.ts +0 -35
  229. package/lib/types/factories/ICreditFilter__factory.js +0 -700
  230. package/lib/types/factories/ICreditManager__factory.d.ts +0 -56
  231. package/lib/types/factories/ICreditManager__factory.js +0 -720
  232. package/lib/types/factories/ICurvePool__factory.d.ts +0 -22
  233. package/lib/types/factories/ICurvePool__factory.js +0 -168
  234. package/lib/types/factories/IDataCompressor__factory.d.ts +0 -51
  235. package/lib/types/factories/IDataCompressor__factory.js +0 -826
  236. package/lib/types/factories/IERC165__factory.d.ts +0 -22
  237. package/lib/types/factories/IERC165__factory.js +0 -41
  238. package/lib/types/factories/IERC20__factory.d.ts +0 -35
  239. package/lib/types/factories/IERC20__factory.js +0 -205
  240. package/lib/types/factories/IERC721Enumerable__factory.d.ts +0 -35
  241. package/lib/types/factories/IERC721Enumerable__factory.js +0 -363
  242. package/lib/types/factories/IERC721Metadata__factory.d.ts +0 -35
  243. package/lib/types/factories/IERC721Metadata__factory.js +0 -352
  244. package/lib/types/factories/IERC721Receiver__factory.d.ts +0 -22
  245. package/lib/types/factories/IERC721Receiver__factory.js +0 -56
  246. package/lib/types/factories/IERC721__factory.d.ts +0 -35
  247. package/lib/types/factories/IERC721__factory.js +0 -307
  248. package/lib/types/factories/IGearToken__factory.d.ts +0 -35
  249. package/lib/types/factories/IGearToken__factory.js +0 -342
  250. package/lib/types/factories/IInterestRateModel__factory.d.ts +0 -22
  251. package/lib/types/factories/IInterestRateModel__factory.js +0 -46
  252. package/lib/types/factories/IMerkleDistributor__factory.d.ts +0 -35
  253. package/lib/types/factories/IMerkleDistributor__factory.js +0 -109
  254. package/lib/types/factories/IPoolService__factory.d.ts +0 -35
  255. package/lib/types/factories/IPoolService__factory.js +0 -580
  256. package/lib/types/factories/IPriceOracle__factory.d.ts +0 -35
  257. package/lib/types/factories/IPriceOracle__factory.js +0 -112
  258. package/lib/types/factories/IQuoter__factory.d.ts +0 -22
  259. package/lib/types/factories/IQuoter__factory.js +0 -148
  260. package/lib/types/factories/ISwapRouter__factory.d.ts +0 -27
  261. package/lib/types/factories/ISwapRouter__factory.js +0 -236
  262. package/lib/types/factories/IUniswapV2Migrator__factory.d.ts +0 -18
  263. package/lib/types/factories/IUniswapV2Migrator__factory.js +0 -55
  264. package/lib/types/factories/IUniswapV2Router01__factory.d.ts +0 -22
  265. package/lib/types/factories/IUniswapV2Router01__factory.js +0 -771
  266. package/lib/types/factories/IUniswapV2Router02__factory.d.ts +0 -22
  267. package/lib/types/factories/IUniswapV2Router02__factory.js +0 -973
  268. package/lib/types/factories/IUniswapV3SwapCallback__factory.d.ts +0 -18
  269. package/lib/types/factories/IUniswapV3SwapCallback__factory.js +0 -45
  270. package/lib/types/factories/IWETHGateway__factory.d.ts +0 -18
  271. package/lib/types/factories/IWETHGateway__factory.js +0 -150
  272. package/lib/types/factories/IWETH__factory.d.ts +0 -22
  273. package/lib/types/factories/IWETH__factory.js +0 -66
  274. package/lib/types/factories/IYVault__factory.d.ts +0 -35
  275. package/lib/types/factories/IYVault__factory.js +0 -411
  276. package/lib/types/factories/LeveragedActions__factory.d.ts +0 -84
  277. package/lib/types/factories/LeveragedActions__factory.js +0 -569
  278. package/lib/types/factories/LinearInterestRateModel__factory.d.ts +0 -42
  279. package/lib/types/factories/LinearInterestRateModel__factory.js +0 -209
  280. package/lib/types/factories/MockPoolService__factory.d.ts +0 -56
  281. package/lib/types/factories/MockPoolService__factory.js +0 -889
  282. package/lib/types/factories/Multicall2__factory.d.ts +0 -52
  283. package/lib/types/factories/Multicall2__factory.js +0 -364
  284. package/lib/types/factories/Ownable__factory.d.ts +0 -42
  285. package/lib/types/factories/Ownable__factory.js +0 -74
  286. package/lib/types/factories/PathFinder__factory.d.ts +0 -61
  287. package/lib/types/factories/PathFinder__factory.js +0 -302
  288. package/lib/types/factories/Pausable__factory.d.ts +0 -31
  289. package/lib/types/factories/Pausable__factory.js +0 -61
  290. package/lib/types/factories/PercentageMathTest__factory.d.ts +0 -32
  291. package/lib/types/factories/PercentageMathTest__factory.js +0 -101
  292. package/lib/types/factories/PoolService__factory.d.ts +0 -56
  293. package/lib/types/factories/PoolService__factory.js +0 -873
  294. package/lib/types/factories/PriceOracle__factory.d.ts +0 -56
  295. package/lib/types/factories/PriceOracle__factory.js +0 -290
  296. package/lib/types/factories/StepVesting__factory.d.ts +0 -52
  297. package/lib/types/factories/StepVesting__factory.js +0 -296
  298. package/lib/types/factories/TestPoolService__factory.d.ts +0 -56
  299. package/lib/types/factories/TestPoolService__factory.js +0 -932
  300. package/lib/types/factories/TokenDistributor__factory.d.ts +0 -82
  301. package/lib/types/factories/TokenDistributor__factory.js +0 -481
  302. package/lib/types/factories/TokenFeeMock__factory.d.ts +0 -56
  303. package/lib/types/factories/TokenFeeMock__factory.js +0 -427
  304. package/lib/types/factories/TokenMock__factory.d.ts +0 -56
  305. package/lib/types/factories/TokenMock__factory.js +0 -409
  306. package/lib/types/factories/TreasuryMock__factory.d.ts +0 -35
  307. package/lib/types/factories/TreasuryMock__factory.js +0 -70
  308. package/lib/types/factories/UniswapRouterMock__factory.d.ts +0 -32
  309. package/lib/types/factories/UniswapRouterMock__factory.js +0 -1046
  310. package/lib/types/factories/UniswapV2Adapter__factory.d.ts +0 -42
  311. package/lib/types/factories/UniswapV2Adapter__factory.js +0 -1059
  312. package/lib/types/factories/UniswapV3Adapter__factory.d.ts +0 -47
  313. package/lib/types/factories/UniswapV3Adapter__factory.js +0 -322
  314. package/lib/types/factories/WETHGateway__factory.d.ts +0 -70
  315. package/lib/types/factories/WETHGateway__factory.js +0 -241
  316. package/lib/types/factories/WETHMock__factory.d.ts +0 -52
  317. package/lib/types/factories/WETHMock__factory.js +0 -355
  318. package/lib/types/factories/WadRayMathTest__factory.d.ts +0 -32
  319. package/lib/types/factories/WadRayMathTest__factory.js +0 -239
  320. package/lib/types/factories/YearnAdapter__factory.d.ts +0 -56
  321. package/lib/types/factories/YearnAdapter__factory.js +0 -497
  322. package/lib/types/factories/YearnMock__factory.d.ts +0 -56
  323. package/lib/types/factories/YearnMock__factory.js +0 -598
  324. package/lib/types/factories/YearnPriceFeed__factory.d.ts +0 -56
  325. package/lib/types/factories/YearnPriceFeed__factory.js +0 -350
  326. package/lib/types/factories/contracts/support/PathFinder__factory.d.ts +0 -63
  327. package/lib/types/factories/contracts/support/PathFinder__factory.js +0 -319
  328. package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter__factory.d.ts +0 -34
  329. package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter__factory.js +0 -124
  330. package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.d.ts +0 -1
  331. package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.js +0 -8
@@ -1,580 +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.IPoolService__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: "sender",
16
- type: "address",
17
- },
18
- {
19
- indexed: true,
20
- internalType: "address",
21
- name: "onBehalfOf",
22
- type: "address",
23
- },
24
- {
25
- indexed: false,
26
- internalType: "uint256",
27
- name: "amount",
28
- type: "uint256",
29
- },
30
- {
31
- indexed: false,
32
- internalType: "uint256",
33
- name: "referralCode",
34
- type: "uint256",
35
- },
36
- ],
37
- name: "AddLiquidity",
38
- type: "event",
39
- },
40
- {
41
- anonymous: false,
42
- inputs: [
43
- {
44
- indexed: true,
45
- internalType: "address",
46
- name: "creditManager",
47
- type: "address",
48
- },
49
- {
50
- indexed: true,
51
- internalType: "address",
52
- name: "creditAccount",
53
- type: "address",
54
- },
55
- {
56
- indexed: false,
57
- internalType: "uint256",
58
- name: "amount",
59
- type: "uint256",
60
- },
61
- ],
62
- name: "Borrow",
63
- type: "event",
64
- },
65
- {
66
- anonymous: false,
67
- inputs: [
68
- {
69
- indexed: true,
70
- internalType: "address",
71
- name: "creditManager",
72
- type: "address",
73
- },
74
- ],
75
- name: "BorrowForbidden",
76
- type: "event",
77
- },
78
- {
79
- anonymous: false,
80
- inputs: [
81
- {
82
- indexed: true,
83
- internalType: "address",
84
- name: "creditManager",
85
- type: "address",
86
- },
87
- ],
88
- name: "NewCreditManagerConnected",
89
- type: "event",
90
- },
91
- {
92
- anonymous: false,
93
- inputs: [
94
- {
95
- indexed: false,
96
- internalType: "uint256",
97
- name: "newLimit",
98
- type: "uint256",
99
- },
100
- ],
101
- name: "NewExpectedLiquidityLimit",
102
- type: "event",
103
- },
104
- {
105
- anonymous: false,
106
- inputs: [
107
- {
108
- indexed: true,
109
- internalType: "address",
110
- name: "newInterestRateModel",
111
- type: "address",
112
- },
113
- ],
114
- name: "NewInterestRateModel",
115
- type: "event",
116
- },
117
- {
118
- anonymous: false,
119
- inputs: [
120
- {
121
- indexed: false,
122
- internalType: "uint256",
123
- name: "fee",
124
- type: "uint256",
125
- },
126
- ],
127
- name: "NewWithdrawFee",
128
- type: "event",
129
- },
130
- {
131
- anonymous: false,
132
- inputs: [
133
- {
134
- indexed: true,
135
- internalType: "address",
136
- name: "sender",
137
- type: "address",
138
- },
139
- {
140
- indexed: true,
141
- internalType: "address",
142
- name: "to",
143
- type: "address",
144
- },
145
- {
146
- indexed: false,
147
- internalType: "uint256",
148
- name: "amount",
149
- type: "uint256",
150
- },
151
- ],
152
- name: "RemoveLiquidity",
153
- type: "event",
154
- },
155
- {
156
- anonymous: false,
157
- inputs: [
158
- {
159
- indexed: true,
160
- internalType: "address",
161
- name: "creditManager",
162
- type: "address",
163
- },
164
- {
165
- indexed: false,
166
- internalType: "uint256",
167
- name: "borrowedAmount",
168
- type: "uint256",
169
- },
170
- {
171
- indexed: false,
172
- internalType: "uint256",
173
- name: "profit",
174
- type: "uint256",
175
- },
176
- {
177
- indexed: false,
178
- internalType: "uint256",
179
- name: "loss",
180
- type: "uint256",
181
- },
182
- ],
183
- name: "Repay",
184
- type: "event",
185
- },
186
- {
187
- anonymous: false,
188
- inputs: [
189
- {
190
- indexed: true,
191
- internalType: "address",
192
- name: "creditManager",
193
- type: "address",
194
- },
195
- {
196
- indexed: false,
197
- internalType: "uint256",
198
- name: "loss",
199
- type: "uint256",
200
- },
201
- ],
202
- name: "UncoveredLoss",
203
- type: "event",
204
- },
205
- {
206
- inputs: [],
207
- name: "_cumulativeIndex_RAY",
208
- outputs: [
209
- {
210
- internalType: "uint256",
211
- name: "",
212
- type: "uint256",
213
- },
214
- ],
215
- stateMutability: "view",
216
- type: "function",
217
- },
218
- {
219
- inputs: [],
220
- name: "_timestampLU",
221
- outputs: [
222
- {
223
- internalType: "uint256",
224
- name: "",
225
- type: "uint256",
226
- },
227
- ],
228
- stateMutability: "view",
229
- type: "function",
230
- },
231
- {
232
- inputs: [
233
- {
234
- internalType: "uint256",
235
- name: "amount",
236
- type: "uint256",
237
- },
238
- {
239
- internalType: "address",
240
- name: "onBehalfOf",
241
- type: "address",
242
- },
243
- {
244
- internalType: "uint256",
245
- name: "referralCode",
246
- type: "uint256",
247
- },
248
- ],
249
- name: "addLiquidity",
250
- outputs: [],
251
- stateMutability: "nonpayable",
252
- type: "function",
253
- },
254
- {
255
- inputs: [],
256
- name: "availableLiquidity",
257
- outputs: [
258
- {
259
- internalType: "uint256",
260
- name: "",
261
- type: "uint256",
262
- },
263
- ],
264
- stateMutability: "view",
265
- type: "function",
266
- },
267
- {
268
- inputs: [],
269
- name: "borrowAPY_RAY",
270
- outputs: [
271
- {
272
- internalType: "uint256",
273
- name: "",
274
- type: "uint256",
275
- },
276
- ],
277
- stateMutability: "view",
278
- type: "function",
279
- },
280
- {
281
- inputs: [
282
- {
283
- internalType: "uint256",
284
- name: "amount",
285
- type: "uint256",
286
- },
287
- {
288
- internalType: "uint256",
289
- name: "dAmount",
290
- type: "uint256",
291
- },
292
- {
293
- internalType: "uint256",
294
- name: "cumulativeIndexAtOpen",
295
- type: "uint256",
296
- },
297
- ],
298
- name: "calcCumulativeIndexAtBorrowMore",
299
- outputs: [
300
- {
301
- internalType: "uint256",
302
- name: "",
303
- type: "uint256",
304
- },
305
- ],
306
- stateMutability: "view",
307
- type: "function",
308
- },
309
- {
310
- inputs: [],
311
- name: "calcLinearCumulative_RAY",
312
- outputs: [
313
- {
314
- internalType: "uint256",
315
- name: "",
316
- type: "uint256",
317
- },
318
- ],
319
- stateMutability: "view",
320
- type: "function",
321
- },
322
- {
323
- inputs: [
324
- {
325
- internalType: "uint256",
326
- name: "id",
327
- type: "uint256",
328
- },
329
- ],
330
- name: "creditManagers",
331
- outputs: [
332
- {
333
- internalType: "address",
334
- name: "",
335
- type: "address",
336
- },
337
- ],
338
- stateMutability: "view",
339
- type: "function",
340
- },
341
- {
342
- inputs: [
343
- {
344
- internalType: "address",
345
- name: "id",
346
- type: "address",
347
- },
348
- ],
349
- name: "creditManagersCanBorrow",
350
- outputs: [
351
- {
352
- internalType: "bool",
353
- name: "",
354
- type: "bool",
355
- },
356
- ],
357
- stateMutability: "view",
358
- type: "function",
359
- },
360
- {
361
- inputs: [],
362
- name: "creditManagersCount",
363
- outputs: [
364
- {
365
- internalType: "uint256",
366
- name: "",
367
- type: "uint256",
368
- },
369
- ],
370
- stateMutability: "view",
371
- type: "function",
372
- },
373
- {
374
- inputs: [],
375
- name: "dieselToken",
376
- outputs: [
377
- {
378
- internalType: "address",
379
- name: "",
380
- type: "address",
381
- },
382
- ],
383
- stateMutability: "view",
384
- type: "function",
385
- },
386
- {
387
- inputs: [],
388
- name: "expectedLiquidity",
389
- outputs: [
390
- {
391
- internalType: "uint256",
392
- name: "",
393
- type: "uint256",
394
- },
395
- ],
396
- stateMutability: "view",
397
- type: "function",
398
- },
399
- {
400
- inputs: [],
401
- name: "expectedLiquidityLimit",
402
- outputs: [
403
- {
404
- internalType: "uint256",
405
- name: "",
406
- type: "uint256",
407
- },
408
- ],
409
- stateMutability: "view",
410
- type: "function",
411
- },
412
- {
413
- inputs: [
414
- {
415
- internalType: "uint256",
416
- name: "amount",
417
- type: "uint256",
418
- },
419
- ],
420
- name: "fromDiesel",
421
- outputs: [
422
- {
423
- internalType: "uint256",
424
- name: "",
425
- type: "uint256",
426
- },
427
- ],
428
- stateMutability: "view",
429
- type: "function",
430
- },
431
- {
432
- inputs: [],
433
- name: "getDieselRate_RAY",
434
- outputs: [
435
- {
436
- internalType: "uint256",
437
- name: "",
438
- type: "uint256",
439
- },
440
- ],
441
- stateMutability: "view",
442
- type: "function",
443
- },
444
- {
445
- inputs: [
446
- {
447
- internalType: "uint256",
448
- name: "borrowedAmount",
449
- type: "uint256",
450
- },
451
- {
452
- internalType: "address",
453
- name: "creditAccount",
454
- type: "address",
455
- },
456
- ],
457
- name: "lendCreditAccount",
458
- outputs: [],
459
- stateMutability: "nonpayable",
460
- type: "function",
461
- },
462
- {
463
- inputs: [
464
- {
465
- internalType: "uint256",
466
- name: "amount",
467
- type: "uint256",
468
- },
469
- {
470
- internalType: "address",
471
- name: "to",
472
- type: "address",
473
- },
474
- ],
475
- name: "removeLiquidity",
476
- outputs: [
477
- {
478
- internalType: "uint256",
479
- name: "",
480
- type: "uint256",
481
- },
482
- ],
483
- stateMutability: "nonpayable",
484
- type: "function",
485
- },
486
- {
487
- inputs: [
488
- {
489
- internalType: "uint256",
490
- name: "borrowedAmount",
491
- type: "uint256",
492
- },
493
- {
494
- internalType: "uint256",
495
- name: "profit",
496
- type: "uint256",
497
- },
498
- {
499
- internalType: "uint256",
500
- name: "loss",
501
- type: "uint256",
502
- },
503
- ],
504
- name: "repayCreditAccount",
505
- outputs: [],
506
- stateMutability: "nonpayable",
507
- type: "function",
508
- },
509
- {
510
- inputs: [
511
- {
512
- internalType: "uint256",
513
- name: "amount",
514
- type: "uint256",
515
- },
516
- ],
517
- name: "toDiesel",
518
- outputs: [
519
- {
520
- internalType: "uint256",
521
- name: "",
522
- type: "uint256",
523
- },
524
- ],
525
- stateMutability: "view",
526
- type: "function",
527
- },
528
- {
529
- inputs: [],
530
- name: "totalBorrowed",
531
- outputs: [
532
- {
533
- internalType: "uint256",
534
- name: "",
535
- type: "uint256",
536
- },
537
- ],
538
- stateMutability: "view",
539
- type: "function",
540
- },
541
- {
542
- inputs: [],
543
- name: "underlyingToken",
544
- outputs: [
545
- {
546
- internalType: "address",
547
- name: "",
548
- type: "address",
549
- },
550
- ],
551
- stateMutability: "view",
552
- type: "function",
553
- },
554
- {
555
- inputs: [],
556
- name: "withdrawFee",
557
- outputs: [
558
- {
559
- internalType: "uint256",
560
- name: "",
561
- type: "uint256",
562
- },
563
- ],
564
- stateMutability: "view",
565
- type: "function",
566
- },
567
- ];
568
- var IPoolService__factory = /** @class */ (function () {
569
- function IPoolService__factory() {
570
- }
571
- IPoolService__factory.createInterface = function () {
572
- return new ethers_1.utils.Interface(_abi);
573
- };
574
- IPoolService__factory.connect = function (address, signerOrProvider) {
575
- return new ethers_1.Contract(address, _abi, signerOrProvider);
576
- };
577
- IPoolService__factory.abi = _abi;
578
- return IPoolService__factory;
579
- }());
580
- exports.IPoolService__factory = IPoolService__factory;
@@ -1,35 +0,0 @@
1
- import { Signer } from "ethers";
2
- import { Provider } from "@ethersproject/providers";
3
- import type { IPriceOracle, IPriceOracleInterface } from "../IPriceOracle";
4
- export declare class IPriceOracle__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(): IPriceOracleInterface;
34
- static connect(address: string, signerOrProvider: Signer | Provider): IPriceOracle;
35
- }
@@ -1,112 +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.IPriceOracle__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: "token",
16
- type: "address",
17
- },
18
- {
19
- indexed: true,
20
- internalType: "address",
21
- name: "priceFeed",
22
- type: "address",
23
- },
24
- ],
25
- name: "NewPriceFeed",
26
- type: "event",
27
- },
28
- {
29
- inputs: [
30
- {
31
- internalType: "address",
32
- name: "token",
33
- type: "address",
34
- },
35
- {
36
- internalType: "address",
37
- name: "priceFeedToken",
38
- type: "address",
39
- },
40
- ],
41
- name: "addPriceFeed",
42
- outputs: [],
43
- stateMutability: "nonpayable",
44
- type: "function",
45
- },
46
- {
47
- inputs: [
48
- {
49
- internalType: "uint256",
50
- name: "amount",
51
- type: "uint256",
52
- },
53
- {
54
- internalType: "address",
55
- name: "tokenFrom",
56
- type: "address",
57
- },
58
- {
59
- internalType: "address",
60
- name: "tokenTo",
61
- type: "address",
62
- },
63
- ],
64
- name: "convert",
65
- outputs: [
66
- {
67
- internalType: "uint256",
68
- name: "",
69
- type: "uint256",
70
- },
71
- ],
72
- stateMutability: "view",
73
- type: "function",
74
- },
75
- {
76
- inputs: [
77
- {
78
- internalType: "address",
79
- name: "tokenFrom",
80
- type: "address",
81
- },
82
- {
83
- internalType: "address",
84
- name: "tokenTo",
85
- type: "address",
86
- },
87
- ],
88
- name: "getLastPrice",
89
- outputs: [
90
- {
91
- internalType: "uint256",
92
- name: "",
93
- type: "uint256",
94
- },
95
- ],
96
- stateMutability: "view",
97
- type: "function",
98
- },
99
- ];
100
- var IPriceOracle__factory = /** @class */ (function () {
101
- function IPriceOracle__factory() {
102
- }
103
- IPriceOracle__factory.createInterface = function () {
104
- return new ethers_1.utils.Interface(_abi);
105
- };
106
- IPriceOracle__factory.connect = function (address, signerOrProvider) {
107
- return new ethers_1.Contract(address, _abi, signerOrProvider);
108
- };
109
- IPriceOracle__factory.abi = _abi;
110
- return IPriceOracle__factory;
111
- }());
112
- exports.IPriceOracle__factory = IPriceOracle__factory;