@guru-fund/sdk 0.1.0

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 (413) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +226 -0
  3. package/dist/GuruProtocol.d.ts +44 -0
  4. package/dist/GuruProtocol.js +75 -0
  5. package/dist/addresses.d.ts +40 -0
  6. package/dist/addresses.js +111 -0
  7. package/dist/constants.d.ts +22 -0
  8. package/dist/constants.js +23 -0
  9. package/dist/helpers/FundDataFetcher.d.ts +24 -0
  10. package/dist/helpers/FundDataFetcher.js +66 -0
  11. package/dist/helpers/ReceiptParser.d.ts +23 -0
  12. package/dist/helpers/ReceiptParser.js +59 -0
  13. package/dist/helpers/Token.d.ts +18 -0
  14. package/dist/helpers/Token.js +43 -0
  15. package/dist/helpers/compareAddresses.d.ts +1 -0
  16. package/dist/helpers/compareAddresses.js +15 -0
  17. package/dist/index.d.ts +17 -0
  18. package/dist/index.js +3 -0
  19. package/dist/quotes/quoteDeposit.d.ts +41 -0
  20. package/dist/quotes/quoteDeposit.js +186 -0
  21. package/dist/quotes/quoteHarvest.d.ts +34 -0
  22. package/dist/quotes/quoteHarvest.js +105 -0
  23. package/dist/quotes/quoteRebalance.d.ts +51 -0
  24. package/dist/quotes/quoteRebalance.js +201 -0
  25. package/dist/quotes/quoteTrade.d.ts +18 -0
  26. package/dist/quotes/quoteTrade.js +51 -0
  27. package/dist/quotes/quoteWithdrawal.d.ts +41 -0
  28. package/dist/quotes/quoteWithdrawal.js +113 -0
  29. package/dist/router/constants.d.ts +18 -0
  30. package/dist/router/constants.js +25 -0
  31. package/dist/router/finalizeRoute.d.ts +16 -0
  32. package/dist/router/finalizeRoute.js +29 -0
  33. package/dist/router/getFallbackRoutes.d.ts +10 -0
  34. package/dist/router/getFallbackRoutes.js +91 -0
  35. package/dist/router/getUniswapV4Route.d.ts +42 -0
  36. package/dist/router/getUniswapV4Route.js +324 -0
  37. package/dist/router/getVeloraRoute.d.ts +10 -0
  38. package/dist/router/getVeloraRoute.js +68 -0
  39. package/dist/router/helpers.d.ts +11 -0
  40. package/dist/router/helpers.js +30 -0
  41. package/dist/router/index.d.ts +22 -0
  42. package/dist/router/index.js +135 -0
  43. package/dist/router/pathCache.d.ts +16 -0
  44. package/dist/router/pathCache.js +116 -0
  45. package/dist/router/poolHelper.d.ts +126 -0
  46. package/dist/router/poolHelper.js +807 -0
  47. package/dist/router/quoteWethTrade.d.ts +14 -0
  48. package/dist/router/quoteWethTrade.js +125 -0
  49. package/dist/router/simulation.d.ts +43 -0
  50. package/dist/router/simulation.js +70 -0
  51. package/dist/router/types.d.ts +149 -0
  52. package/dist/router/types.js +1 -0
  53. package/dist/router/v4PoolDiscovery.d.ts +30 -0
  54. package/dist/router/v4PoolDiscovery.js +147 -0
  55. package/dist/router/velora.d.ts +42 -0
  56. package/dist/router/velora.js +279 -0
  57. package/dist/schemas/index.d.ts +6 -0
  58. package/dist/schemas/index.js +6 -0
  59. package/dist/schemas/primitives.d.ts +3 -0
  60. package/dist/schemas/primitives.js +9 -0
  61. package/dist/schemas/quoteDeposit.d.ts +23 -0
  62. package/dist/schemas/quoteDeposit.js +10 -0
  63. package/dist/schemas/quoteHarvest.d.ts +17 -0
  64. package/dist/schemas/quoteHarvest.js +8 -0
  65. package/dist/schemas/quoteRebalance.d.ts +29 -0
  66. package/dist/schemas/quoteRebalance.js +10 -0
  67. package/dist/schemas/quoteTrade.d.ts +20 -0
  68. package/dist/schemas/quoteTrade.js +9 -0
  69. package/dist/schemas/quoteWithdrawal.d.ts +23 -0
  70. package/dist/schemas/quoteWithdrawal.js +10 -0
  71. package/dist/txBuilders/buildDepositTx.d.ts +17 -0
  72. package/dist/txBuilders/buildDepositTx.js +18 -0
  73. package/dist/txBuilders/buildHarvestTx.d.ts +16 -0
  74. package/dist/txBuilders/buildHarvestTx.js +17 -0
  75. package/dist/txBuilders/buildTradeTx.d.ts +9 -0
  76. package/dist/txBuilders/buildTradeTx.js +9 -0
  77. package/dist/txBuilders/buildWithdrawTx.d.ts +16 -0
  78. package/dist/txBuilders/buildWithdrawTx.js +17 -0
  79. package/dist/txBuilders/index.d.ts +8 -0
  80. package/dist/txBuilders/index.js +4 -0
  81. package/dist/typechain/common.d.ts +50 -0
  82. package/dist/typechain/common.js +1 -0
  83. package/dist/typechain/factories/include/IPancakeQuoterV2__factory.d.ts +225 -0
  84. package/dist/typechain/factories/include/IPancakeQuoterV2__factory.js +295 -0
  85. package/dist/typechain/factories/include/ISwapRouter02__factory.d.ts +826 -0
  86. package/dist/typechain/factories/include/ISwapRouter02__factory.js +1073 -0
  87. package/dist/typechain/factories/include/index.d.ts +2 -0
  88. package/dist/typechain/factories/include/index.js +2 -0
  89. package/dist/typechain/factories/index.d.ts +2 -0
  90. package/dist/typechain/factories/index.js +2 -0
  91. package/dist/typechain/factories/out/Adapter__factory.d.ts +31 -0
  92. package/dist/typechain/factories/out/Adapter__factory.js +43 -0
  93. package/dist/typechain/factories/out/AerodromeV2Adapter__factory.d.ts +179 -0
  94. package/dist/typechain/factories/out/AerodromeV2Adapter__factory.js +237 -0
  95. package/dist/typechain/factories/out/AerodromeV3Adapter__factory.d.ts +162 -0
  96. package/dist/typechain/factories/out/AerodromeV3Adapter__factory.js +215 -0
  97. package/dist/typechain/factories/out/AssetManager.sol/LedgerAssetManager__factory.d.ts +1032 -0
  98. package/dist/typechain/factories/out/AssetManager.sol/LedgerAssetManager__factory.js +1357 -0
  99. package/dist/typechain/factories/out/AssetManager.sol/index.d.ts +1 -0
  100. package/dist/typechain/factories/out/AssetManager.sol/index.js +1 -0
  101. package/dist/typechain/factories/out/Bookkeeper.sol/LedgerBookkeeper__factory.d.ts +950 -0
  102. package/dist/typechain/factories/out/Bookkeeper.sol/LedgerBookkeeper__factory.js +1250 -0
  103. package/dist/typechain/factories/out/Bookkeeper.sol/index.d.ts +1 -0
  104. package/dist/typechain/factories/out/Bookkeeper.sol/index.js +1 -0
  105. package/dist/typechain/factories/out/Checkpoint.sol/CheckpointController__factory.d.ts +33 -0
  106. package/dist/typechain/factories/out/Checkpoint.sol/CheckpointController__factory.js +47 -0
  107. package/dist/typechain/factories/out/Checkpoint.sol/index.d.ts +1 -0
  108. package/dist/typechain/factories/out/Checkpoint.sol/index.js +1 -0
  109. package/dist/typechain/factories/out/Closure.sol/ClosureController__factory.d.ts +459 -0
  110. package/dist/typechain/factories/out/Closure.sol/ClosureController__factory.js +603 -0
  111. package/dist/typechain/factories/out/Closure.sol/index.d.ts +1 -0
  112. package/dist/typechain/factories/out/Closure.sol/index.js +1 -0
  113. package/dist/typechain/factories/out/ContextBuilder__factory.d.ts +671 -0
  114. package/dist/typechain/factories/out/ContextBuilder__factory.js +870 -0
  115. package/dist/typechain/factories/out/Control.sol/Controllable__factory.d.ts +107 -0
  116. package/dist/typechain/factories/out/Control.sol/Controllable__factory.js +141 -0
  117. package/dist/typechain/factories/out/Control.sol/Controller__factory.d.ts +21 -0
  118. package/dist/typechain/factories/out/Control.sol/Controller__factory.js +30 -0
  119. package/dist/typechain/factories/out/Control.sol/index.d.ts +2 -0
  120. package/dist/typechain/factories/out/Control.sol/index.js +2 -0
  121. package/dist/typechain/factories/out/Controller.sol/ClosureDelegate__factory.d.ts +57 -0
  122. package/dist/typechain/factories/out/Controller.sol/ClosureDelegate__factory.js +77 -0
  123. package/dist/typechain/factories/out/Controller.sol/CreationDelegate__factory.d.ts +58 -0
  124. package/dist/typechain/factories/out/Controller.sol/CreationDelegate__factory.js +77 -0
  125. package/dist/typechain/factories/out/Controller.sol/DepositDelegate__factory.d.ts +55 -0
  126. package/dist/typechain/factories/out/Controller.sol/DepositDelegate__factory.js +74 -0
  127. package/dist/typechain/factories/out/Controller.sol/FundController__factory.d.ts +703 -0
  128. package/dist/typechain/factories/out/Controller.sol/FundController__factory.js +911 -0
  129. package/dist/typechain/factories/out/Controller.sol/HarvestDelegate__factory.d.ts +234 -0
  130. package/dist/typechain/factories/out/Controller.sol/HarvestDelegate__factory.js +303 -0
  131. package/dist/typechain/factories/out/Controller.sol/TradeDelegate__factory.d.ts +61 -0
  132. package/dist/typechain/factories/out/Controller.sol/TradeDelegate__factory.js +81 -0
  133. package/dist/typechain/factories/out/Controller.sol/TransferDelegate__factory.d.ts +29 -0
  134. package/dist/typechain/factories/out/Controller.sol/TransferDelegate__factory.js +40 -0
  135. package/dist/typechain/factories/out/Controller.sol/WithdrawalDelegate__factory.d.ts +51 -0
  136. package/dist/typechain/factories/out/Controller.sol/WithdrawalDelegate__factory.js +69 -0
  137. package/dist/typechain/factories/out/Controller.sol/index.d.ts +8 -0
  138. package/dist/typechain/factories/out/Controller.sol/index.js +8 -0
  139. package/dist/typechain/factories/out/Cooldown.sol/LedgerCooldown__factory.d.ts +747 -0
  140. package/dist/typechain/factories/out/Cooldown.sol/LedgerCooldown__factory.js +982 -0
  141. package/dist/typechain/factories/out/Cooldown.sol/index.d.ts +1 -0
  142. package/dist/typechain/factories/out/Cooldown.sol/index.js +1 -0
  143. package/dist/typechain/factories/out/Creation.sol/CreationController__factory.d.ts +172 -0
  144. package/dist/typechain/factories/out/Creation.sol/CreationController__factory.js +225 -0
  145. package/dist/typechain/factories/out/Creation.sol/index.d.ts +1 -0
  146. package/dist/typechain/factories/out/Creation.sol/index.js +1 -0
  147. package/dist/typechain/factories/out/Deposit.sol/DepositController__factory.d.ts +162 -0
  148. package/dist/typechain/factories/out/Deposit.sol/DepositController__factory.js +223 -0
  149. package/dist/typechain/factories/out/Deposit.sol/index.d.ts +1 -0
  150. package/dist/typechain/factories/out/Deposit.sol/index.js +1 -0
  151. package/dist/typechain/factories/out/Error__factory.d.ts +318 -0
  152. package/dist/typechain/factories/out/Error__factory.js +423 -0
  153. package/dist/typechain/factories/out/Harvest.sol/HarvestController__factory.d.ts +401 -0
  154. package/dist/typechain/factories/out/Harvest.sol/HarvestController__factory.js +527 -0
  155. package/dist/typechain/factories/out/Harvest.sol/index.d.ts +1 -0
  156. package/dist/typechain/factories/out/Harvest.sol/index.js +1 -0
  157. package/dist/typechain/factories/out/IAerodromeRouter__factory.d.ts +85 -0
  158. package/dist/typechain/factories/out/IAerodromeRouter__factory.js +113 -0
  159. package/dist/typechain/factories/out/IAerodromeSwapRouter__factory.d.ts +89 -0
  160. package/dist/typechain/factories/out/IAerodromeSwapRouter__factory.js +119 -0
  161. package/dist/typechain/factories/out/IUniswapV4.sol/IPermit2__factory.d.ts +29 -0
  162. package/dist/typechain/factories/out/IUniswapV4.sol/IPermit2__factory.js +40 -0
  163. package/dist/typechain/factories/out/IUniswapV4.sol/IUniversalRouter__factory.d.ts +25 -0
  164. package/dist/typechain/factories/out/IUniswapV4.sol/IUniversalRouter__factory.js +35 -0
  165. package/dist/typechain/factories/out/IUniswapV4.sol/index.d.ts +2 -0
  166. package/dist/typechain/factories/out/IUniswapV4.sol/index.js +2 -0
  167. package/dist/typechain/factories/out/IV0Fund__factory.d.ts +129 -0
  168. package/dist/typechain/factories/out/IV0Fund__factory.js +173 -0
  169. package/dist/typechain/factories/out/IV3SwapRouter__factory.d.ts +38 -0
  170. package/dist/typechain/factories/out/IV3SwapRouter__factory.js +53 -0
  171. package/dist/typechain/factories/out/Initializer.sol/LedgerInitializer__factory.d.ts +655 -0
  172. package/dist/typechain/factories/out/Initializer.sol/LedgerInitializer__factory.js +859 -0
  173. package/dist/typechain/factories/out/Initializer.sol/VaultInitializer__factory.d.ts +141 -0
  174. package/dist/typechain/factories/out/Initializer.sol/VaultInitializer__factory.js +185 -0
  175. package/dist/typechain/factories/out/Initializer.sol/index.d.ts +2 -0
  176. package/dist/typechain/factories/out/Initializer.sol/index.js +2 -0
  177. package/dist/typechain/factories/out/Ledger.sol/FundLedger__factory.d.ts +1502 -0
  178. package/dist/typechain/factories/out/Ledger.sol/FundLedger__factory.js +1959 -0
  179. package/dist/typechain/factories/out/Ledger.sol/index.d.ts +1 -0
  180. package/dist/typechain/factories/out/Ledger.sol/index.js +1 -0
  181. package/dist/typechain/factories/out/LotusP2P__factory.d.ts +847 -0
  182. package/dist/typechain/factories/out/LotusP2P__factory.js +1095 -0
  183. package/dist/typechain/factories/out/MulticallStatic__factory.d.ts +29 -0
  184. package/dist/typechain/factories/out/MulticallStatic__factory.js +42 -0
  185. package/dist/typechain/factories/out/Operator.sol/VaultOperator__factory.d.ts +235 -0
  186. package/dist/typechain/factories/out/Operator.sol/VaultOperator__factory.js +308 -0
  187. package/dist/typechain/factories/out/Operator.sol/index.d.ts +1 -0
  188. package/dist/typechain/factories/out/Operator.sol/index.js +1 -0
  189. package/dist/typechain/factories/out/P2PAdapter__factory.d.ts +216 -0
  190. package/dist/typechain/factories/out/P2PAdapter__factory.js +287 -0
  191. package/dist/typechain/factories/out/ProtocolMigrationExtension__factory.d.ts +1084 -0
  192. package/dist/typechain/factories/out/ProtocolMigrationExtension__factory.js +1409 -0
  193. package/dist/typechain/factories/out/ProtocolProvider__factory.d.ts +21 -0
  194. package/dist/typechain/factories/out/ProtocolProvider__factory.js +30 -0
  195. package/dist/typechain/factories/out/Protocol__factory.d.ts +1095 -0
  196. package/dist/typechain/factories/out/Protocol__factory.js +1424 -0
  197. package/dist/typechain/factories/out/Registrar.sol/LedgerRegistrar__factory.d.ts +1375 -0
  198. package/dist/typechain/factories/out/Registrar.sol/LedgerRegistrar__factory.js +1791 -0
  199. package/dist/typechain/factories/out/Registrar.sol/index.d.ts +1 -0
  200. package/dist/typechain/factories/out/Registrar.sol/index.js +1 -0
  201. package/dist/typechain/factories/out/Settings.sol/SettingsController__factory.d.ts +143 -0
  202. package/dist/typechain/factories/out/Settings.sol/SettingsController__factory.js +188 -0
  203. package/dist/typechain/factories/out/Settings.sol/index.d.ts +1 -0
  204. package/dist/typechain/factories/out/Settings.sol/index.js +1 -0
  205. package/dist/typechain/factories/out/Shares.sol/ICheckpointController__factory.d.ts +21 -0
  206. package/dist/typechain/factories/out/Shares.sol/ICheckpointController__factory.js +31 -0
  207. package/dist/typechain/factories/out/Shares.sol/ITransferController__factory.d.ts +25 -0
  208. package/dist/typechain/factories/out/Shares.sol/ITransferController__factory.js +35 -0
  209. package/dist/typechain/factories/out/Shares.sol/LedgerShares__factory.d.ts +829 -0
  210. package/dist/typechain/factories/out/Shares.sol/LedgerShares__factory.js +1089 -0
  211. package/dist/typechain/factories/out/Shares.sol/index.d.ts +3 -0
  212. package/dist/typechain/factories/out/Shares.sol/index.js +3 -0
  213. package/dist/typechain/factories/out/SignatureVerifier__factory.d.ts +171 -0
  214. package/dist/typechain/factories/out/SignatureVerifier__factory.js +224 -0
  215. package/dist/typechain/factories/out/Storage.sol/LedgerStorage__factory.d.ts +527 -0
  216. package/dist/typechain/factories/out/Storage.sol/LedgerStorage__factory.js +695 -0
  217. package/dist/typechain/factories/out/Storage.sol/index.d.ts +1 -0
  218. package/dist/typechain/factories/out/Storage.sol/index.js +1 -0
  219. package/dist/typechain/factories/out/Trade.sol/TradeController__factory.d.ts +200 -0
  220. package/dist/typechain/factories/out/Trade.sol/TradeController__factory.js +262 -0
  221. package/dist/typechain/factories/out/Trade.sol/index.d.ts +1 -0
  222. package/dist/typechain/factories/out/Trade.sol/index.js +1 -0
  223. package/dist/typechain/factories/out/Transfer.sol/TransferController__factory.d.ts +100 -0
  224. package/dist/typechain/factories/out/Transfer.sol/TransferController__factory.js +141 -0
  225. package/dist/typechain/factories/out/Transfer.sol/index.d.ts +1 -0
  226. package/dist/typechain/factories/out/Transfer.sol/index.js +1 -0
  227. package/dist/typechain/factories/out/UniswapV2Adapter__factory.d.ts +162 -0
  228. package/dist/typechain/factories/out/UniswapV2Adapter__factory.js +215 -0
  229. package/dist/typechain/factories/out/UniswapV3Adapter__factory.d.ts +162 -0
  230. package/dist/typechain/factories/out/UniswapV3Adapter__factory.js +215 -0
  231. package/dist/typechain/factories/out/UniswapV3SwapRouter02Adapter__factory.d.ts +162 -0
  232. package/dist/typechain/factories/out/UniswapV3SwapRouter02Adapter__factory.js +215 -0
  233. package/dist/typechain/factories/out/UniswapV4Adapter__factory.d.ts +203 -0
  234. package/dist/typechain/factories/out/UniswapV4Adapter__factory.js +268 -0
  235. package/dist/typechain/factories/out/V0ToLotusMigrator__factory.d.ts +216 -0
  236. package/dist/typechain/factories/out/V0ToLotusMigrator__factory.js +284 -0
  237. package/dist/typechain/factories/out/Vault.sol/FundVault__factory.d.ts +258 -0
  238. package/dist/typechain/factories/out/Vault.sol/FundVault__factory.js +339 -0
  239. package/dist/typechain/factories/out/Vault.sol/index.d.ts +1 -0
  240. package/dist/typechain/factories/out/Vault.sol/index.js +1 -0
  241. package/dist/typechain/factories/out/Withdrawal.sol/WithdrawalController__factory.d.ts +285 -0
  242. package/dist/typechain/factories/out/Withdrawal.sol/WithdrawalController__factory.js +377 -0
  243. package/dist/typechain/factories/out/Withdrawal.sol/index.d.ts +1 -0
  244. package/dist/typechain/factories/out/Withdrawal.sol/index.js +1 -0
  245. package/dist/typechain/factories/out/index.d.ts +43 -0
  246. package/dist/typechain/factories/out/index.js +43 -0
  247. package/dist/typechain/include/IPancakeQuoterV2.d.ts +223 -0
  248. package/dist/typechain/include/IPancakeQuoterV2.js +1 -0
  249. package/dist/typechain/include/ISwapRouter02.d.ts +682 -0
  250. package/dist/typechain/include/ISwapRouter02.js +1 -0
  251. package/dist/typechain/include/index.d.ts +2 -0
  252. package/dist/typechain/include/index.js +1 -0
  253. package/dist/typechain/index.d.ts +119 -0
  254. package/dist/typechain/index.js +58 -0
  255. package/dist/typechain/out/Adapter.d.ts +29 -0
  256. package/dist/typechain/out/Adapter.js +1 -0
  257. package/dist/typechain/out/AerodromeV2Adapter.d.ts +106 -0
  258. package/dist/typechain/out/AerodromeV2Adapter.js +1 -0
  259. package/dist/typechain/out/AerodromeV3Adapter.d.ts +87 -0
  260. package/dist/typechain/out/AerodromeV3Adapter.js +1 -0
  261. package/dist/typechain/out/AssetManager.sol/LedgerAssetManager.d.ts +604 -0
  262. package/dist/typechain/out/AssetManager.sol/LedgerAssetManager.js +1 -0
  263. package/dist/typechain/out/AssetManager.sol/index.d.ts +1 -0
  264. package/dist/typechain/out/AssetManager.sol/index.js +1 -0
  265. package/dist/typechain/out/Bookkeeper.sol/LedgerBookkeeper.d.ts +548 -0
  266. package/dist/typechain/out/Bookkeeper.sol/LedgerBookkeeper.js +1 -0
  267. package/dist/typechain/out/Bookkeeper.sol/index.d.ts +1 -0
  268. package/dist/typechain/out/Bookkeeper.sol/index.js +1 -0
  269. package/dist/typechain/out/Checkpoint.sol/CheckpointController.d.ts +29 -0
  270. package/dist/typechain/out/Checkpoint.sol/CheckpointController.js +1 -0
  271. package/dist/typechain/out/Checkpoint.sol/index.d.ts +1 -0
  272. package/dist/typechain/out/Checkpoint.sol/index.js +1 -0
  273. package/dist/typechain/out/Closure.sol/ClosureController.d.ts +273 -0
  274. package/dist/typechain/out/Closure.sol/ClosureController.js +1 -0
  275. package/dist/typechain/out/Closure.sol/index.d.ts +1 -0
  276. package/dist/typechain/out/Closure.sol/index.js +1 -0
  277. package/dist/typechain/out/ContextBuilder.d.ts +403 -0
  278. package/dist/typechain/out/ContextBuilder.js +1 -0
  279. package/dist/typechain/out/Control.sol/Controllable.d.ts +97 -0
  280. package/dist/typechain/out/Control.sol/Controllable.js +1 -0
  281. package/dist/typechain/out/Control.sol/Controller.d.ts +25 -0
  282. package/dist/typechain/out/Control.sol/Controller.js +1 -0
  283. package/dist/typechain/out/Control.sol/index.d.ts +2 -0
  284. package/dist/typechain/out/Control.sol/index.js +1 -0
  285. package/dist/typechain/out/Controller.sol/ClosureDelegate.d.ts +61 -0
  286. package/dist/typechain/out/Controller.sol/ClosureDelegate.js +1 -0
  287. package/dist/typechain/out/Controller.sol/CreationDelegate.d.ts +61 -0
  288. package/dist/typechain/out/Controller.sol/CreationDelegate.js +1 -0
  289. package/dist/typechain/out/Controller.sol/DepositDelegate.d.ts +56 -0
  290. package/dist/typechain/out/Controller.sol/DepositDelegate.js +1 -0
  291. package/dist/typechain/out/Controller.sol/FundController.d.ts +464 -0
  292. package/dist/typechain/out/Controller.sol/FundController.js +1 -0
  293. package/dist/typechain/out/Controller.sol/HarvestDelegate.d.ts +163 -0
  294. package/dist/typechain/out/Controller.sol/HarvestDelegate.js +1 -0
  295. package/dist/typechain/out/Controller.sol/TradeDelegate.d.ts +67 -0
  296. package/dist/typechain/out/Controller.sol/TradeDelegate.js +1 -0
  297. package/dist/typechain/out/Controller.sol/TransferDelegate.d.ts +37 -0
  298. package/dist/typechain/out/Controller.sol/TransferDelegate.js +1 -0
  299. package/dist/typechain/out/Controller.sol/WithdrawalDelegate.d.ts +53 -0
  300. package/dist/typechain/out/Controller.sol/WithdrawalDelegate.js +1 -0
  301. package/dist/typechain/out/Controller.sol/index.d.ts +8 -0
  302. package/dist/typechain/out/Controller.sol/index.js +1 -0
  303. package/dist/typechain/out/Cooldown.sol/LedgerCooldown.d.ts +446 -0
  304. package/dist/typechain/out/Cooldown.sol/LedgerCooldown.js +1 -0
  305. package/dist/typechain/out/Cooldown.sol/index.d.ts +1 -0
  306. package/dist/typechain/out/Cooldown.sol/index.js +1 -0
  307. package/dist/typechain/out/Creation.sol/CreationController.d.ts +102 -0
  308. package/dist/typechain/out/Creation.sol/CreationController.js +1 -0
  309. package/dist/typechain/out/Creation.sol/index.d.ts +1 -0
  310. package/dist/typechain/out/Creation.sol/index.js +1 -0
  311. package/dist/typechain/out/Deposit.sol/DepositController.d.ts +68 -0
  312. package/dist/typechain/out/Deposit.sol/DepositController.js +1 -0
  313. package/dist/typechain/out/Deposit.sol/index.d.ts +1 -0
  314. package/dist/typechain/out/Deposit.sol/index.js +1 -0
  315. package/dist/typechain/out/Error.d.ts +20 -0
  316. package/dist/typechain/out/Error.js +1 -0
  317. package/dist/typechain/out/Harvest.sol/HarvestController.d.ts +241 -0
  318. package/dist/typechain/out/Harvest.sol/HarvestController.js +1 -0
  319. package/dist/typechain/out/Harvest.sol/index.d.ts +1 -0
  320. package/dist/typechain/out/Harvest.sol/index.js +1 -0
  321. package/dist/typechain/out/IAerodromeRouter.d.ts +80 -0
  322. package/dist/typechain/out/IAerodromeRouter.js +1 -0
  323. package/dist/typechain/out/IAerodromeSwapRouter.d.ts +96 -0
  324. package/dist/typechain/out/IAerodromeSwapRouter.js +1 -0
  325. package/dist/typechain/out/IUniswapV4.sol/IPermit2.d.ts +39 -0
  326. package/dist/typechain/out/IUniswapV4.sol/IPermit2.js +1 -0
  327. package/dist/typechain/out/IUniswapV4.sol/IUniversalRouter.d.ts +37 -0
  328. package/dist/typechain/out/IUniswapV4.sol/IUniversalRouter.js +1 -0
  329. package/dist/typechain/out/IUniswapV4.sol/index.d.ts +2 -0
  330. package/dist/typechain/out/IUniswapV4.sol/index.js +1 -0
  331. package/dist/typechain/out/IV0Fund.d.ts +69 -0
  332. package/dist/typechain/out/IV0Fund.js +1 -0
  333. package/dist/typechain/out/IV3SwapRouter.d.ts +52 -0
  334. package/dist/typechain/out/IV3SwapRouter.js +1 -0
  335. package/dist/typechain/out/Initializer.sol/LedgerInitializer.d.ts +379 -0
  336. package/dist/typechain/out/Initializer.sol/LedgerInitializer.js +1 -0
  337. package/dist/typechain/out/Initializer.sol/VaultInitializer.d.ts +129 -0
  338. package/dist/typechain/out/Initializer.sol/VaultInitializer.js +1 -0
  339. package/dist/typechain/out/Initializer.sol/index.d.ts +2 -0
  340. package/dist/typechain/out/Initializer.sol/index.js +1 -0
  341. package/dist/typechain/out/Ledger.sol/FundLedger.d.ts +926 -0
  342. package/dist/typechain/out/Ledger.sol/FundLedger.js +1 -0
  343. package/dist/typechain/out/Ledger.sol/index.d.ts +1 -0
  344. package/dist/typechain/out/Ledger.sol/index.js +1 -0
  345. package/dist/typechain/out/LotusP2P.d.ts +610 -0
  346. package/dist/typechain/out/LotusP2P.js +1 -0
  347. package/dist/typechain/out/MulticallStatic.d.ts +25 -0
  348. package/dist/typechain/out/MulticallStatic.js +1 -0
  349. package/dist/typechain/out/Operator.sol/VaultOperator.d.ts +197 -0
  350. package/dist/typechain/out/Operator.sol/VaultOperator.js +1 -0
  351. package/dist/typechain/out/Operator.sol/index.d.ts +1 -0
  352. package/dist/typechain/out/Operator.sol/index.js +1 -0
  353. package/dist/typechain/out/P2PAdapter.d.ts +100 -0
  354. package/dist/typechain/out/P2PAdapter.js +1 -0
  355. package/dist/typechain/out/Protocol.d.ts +815 -0
  356. package/dist/typechain/out/Protocol.js +1 -0
  357. package/dist/typechain/out/ProtocolMigrationExtension.d.ts +806 -0
  358. package/dist/typechain/out/ProtocolMigrationExtension.js +1 -0
  359. package/dist/typechain/out/ProtocolProvider.d.ts +25 -0
  360. package/dist/typechain/out/ProtocolProvider.js +1 -0
  361. package/dist/typechain/out/Registrar.sol/LedgerRegistrar.d.ts +866 -0
  362. package/dist/typechain/out/Registrar.sol/LedgerRegistrar.js +1 -0
  363. package/dist/typechain/out/Registrar.sol/index.d.ts +1 -0
  364. package/dist/typechain/out/Registrar.sol/index.js +1 -0
  365. package/dist/typechain/out/Settings.sol/SettingsController.d.ts +97 -0
  366. package/dist/typechain/out/Settings.sol/SettingsController.js +1 -0
  367. package/dist/typechain/out/Settings.sol/index.d.ts +1 -0
  368. package/dist/typechain/out/Settings.sol/index.js +1 -0
  369. package/dist/typechain/out/Shares.sol/ICheckpointController.d.ts +29 -0
  370. package/dist/typechain/out/Shares.sol/ICheckpointController.js +1 -0
  371. package/dist/typechain/out/Shares.sol/ITransferController.d.ts +37 -0
  372. package/dist/typechain/out/Shares.sol/ITransferController.js +1 -0
  373. package/dist/typechain/out/Shares.sol/LedgerShares.d.ts +494 -0
  374. package/dist/typechain/out/Shares.sol/LedgerShares.js +1 -0
  375. package/dist/typechain/out/Shares.sol/index.d.ts +3 -0
  376. package/dist/typechain/out/Shares.sol/index.js +1 -0
  377. package/dist/typechain/out/SignatureVerifier.d.ts +139 -0
  378. package/dist/typechain/out/SignatureVerifier.js +1 -0
  379. package/dist/typechain/out/Storage.sol/LedgerStorage.d.ts +281 -0
  380. package/dist/typechain/out/Storage.sol/LedgerStorage.js +1 -0
  381. package/dist/typechain/out/Storage.sol/index.d.ts +1 -0
  382. package/dist/typechain/out/Storage.sol/index.js +1 -0
  383. package/dist/typechain/out/Trade.sol/TradeController.d.ts +137 -0
  384. package/dist/typechain/out/Trade.sol/TradeController.js +1 -0
  385. package/dist/typechain/out/Trade.sol/index.d.ts +1 -0
  386. package/dist/typechain/out/Trade.sol/index.js +1 -0
  387. package/dist/typechain/out/Transfer.sol/TransferController.d.ts +49 -0
  388. package/dist/typechain/out/Transfer.sol/TransferController.js +1 -0
  389. package/dist/typechain/out/Transfer.sol/index.d.ts +1 -0
  390. package/dist/typechain/out/Transfer.sol/index.js +1 -0
  391. package/dist/typechain/out/UniswapV2Adapter.d.ts +87 -0
  392. package/dist/typechain/out/UniswapV2Adapter.js +1 -0
  393. package/dist/typechain/out/UniswapV3Adapter.d.ts +87 -0
  394. package/dist/typechain/out/UniswapV3Adapter.js +1 -0
  395. package/dist/typechain/out/UniswapV3SwapRouter02Adapter.d.ts +87 -0
  396. package/dist/typechain/out/UniswapV3SwapRouter02Adapter.js +1 -0
  397. package/dist/typechain/out/UniswapV4Adapter.d.ts +110 -0
  398. package/dist/typechain/out/UniswapV4Adapter.js +1 -0
  399. package/dist/typechain/out/V0ToLotusMigrator.d.ts +94 -0
  400. package/dist/typechain/out/V0ToLotusMigrator.js +1 -0
  401. package/dist/typechain/out/Vault.sol/FundVault.d.ts +197 -0
  402. package/dist/typechain/out/Vault.sol/FundVault.js +1 -0
  403. package/dist/typechain/out/Vault.sol/index.d.ts +1 -0
  404. package/dist/typechain/out/Vault.sol/index.js +1 -0
  405. package/dist/typechain/out/Withdrawal.sol/WithdrawalController.d.ts +152 -0
  406. package/dist/typechain/out/Withdrawal.sol/WithdrawalController.js +1 -0
  407. package/dist/typechain/out/Withdrawal.sol/index.d.ts +1 -0
  408. package/dist/typechain/out/Withdrawal.sol/index.js +1 -0
  409. package/dist/typechain/out/index.d.ts +65 -0
  410. package/dist/typechain/out/index.js +1 -0
  411. package/dist/types/Fund.d.ts +27 -0
  412. package/dist/types/Fund.js +1 -0
  413. package/package.json +67 -0
@@ -0,0 +1,1357 @@
1
+ import { Contract, Interface } from "ethers";
2
+ const _abi = [
3
+ {
4
+ type: "function",
5
+ name: "accountFeeBasis",
6
+ inputs: [
7
+ {
8
+ name: "account",
9
+ type: "address",
10
+ internalType: "address",
11
+ },
12
+ ],
13
+ outputs: [
14
+ {
15
+ name: "",
16
+ type: "uint128",
17
+ internalType: "uint128",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ },
22
+ {
23
+ type: "function",
24
+ name: "addAsset",
25
+ inputs: [
26
+ {
27
+ name: "asset",
28
+ type: "address",
29
+ internalType: "contract IERC20",
30
+ },
31
+ ],
32
+ outputs: [],
33
+ stateMutability: "nonpayable",
34
+ },
35
+ {
36
+ type: "function",
37
+ name: "allowance",
38
+ inputs: [
39
+ {
40
+ name: "owner",
41
+ type: "address",
42
+ internalType: "address",
43
+ },
44
+ {
45
+ name: "spender",
46
+ type: "address",
47
+ internalType: "address",
48
+ },
49
+ ],
50
+ outputs: [
51
+ {
52
+ name: "",
53
+ type: "uint256",
54
+ internalType: "uint256",
55
+ },
56
+ ],
57
+ stateMutability: "view",
58
+ },
59
+ {
60
+ type: "function",
61
+ name: "approve",
62
+ inputs: [
63
+ {
64
+ name: "",
65
+ type: "address",
66
+ internalType: "address",
67
+ },
68
+ {
69
+ name: "",
70
+ type: "uint256",
71
+ internalType: "uint256",
72
+ },
73
+ ],
74
+ outputs: [
75
+ {
76
+ name: "",
77
+ type: "bool",
78
+ internalType: "bool",
79
+ },
80
+ ],
81
+ stateMutability: "pure",
82
+ },
83
+ {
84
+ type: "function",
85
+ name: "assetCount",
86
+ inputs: [],
87
+ outputs: [
88
+ {
89
+ name: "",
90
+ type: "uint256",
91
+ internalType: "uint256",
92
+ },
93
+ ],
94
+ stateMutability: "view",
95
+ },
96
+ {
97
+ type: "function",
98
+ name: "assetSlot",
99
+ inputs: [
100
+ {
101
+ name: "asset",
102
+ type: "address",
103
+ internalType: "contract IERC20",
104
+ },
105
+ ],
106
+ outputs: [
107
+ {
108
+ name: "index",
109
+ type: "uint256",
110
+ internalType: "uint256",
111
+ },
112
+ ],
113
+ stateMutability: "view",
114
+ },
115
+ {
116
+ type: "function",
117
+ name: "assets",
118
+ inputs: [
119
+ {
120
+ name: "",
121
+ type: "uint256",
122
+ internalType: "uint256",
123
+ },
124
+ ],
125
+ outputs: [
126
+ {
127
+ name: "",
128
+ type: "address",
129
+ internalType: "contract IERC20",
130
+ },
131
+ ],
132
+ stateMutability: "view",
133
+ },
134
+ {
135
+ type: "function",
136
+ name: "assignedVirtualBuffer",
137
+ inputs: [],
138
+ outputs: [
139
+ {
140
+ name: "",
141
+ type: "uint128",
142
+ internalType: "uint128",
143
+ },
144
+ ],
145
+ stateMutability: "view",
146
+ },
147
+ {
148
+ type: "function",
149
+ name: "availableBalanceOf",
150
+ inputs: [
151
+ {
152
+ name: "_account",
153
+ type: "address",
154
+ internalType: "address",
155
+ },
156
+ ],
157
+ outputs: [
158
+ {
159
+ name: "availableBalance",
160
+ type: "uint256",
161
+ internalType: "uint256",
162
+ },
163
+ ],
164
+ stateMutability: "view",
165
+ },
166
+ {
167
+ type: "function",
168
+ name: "balanceOf",
169
+ inputs: [
170
+ {
171
+ name: "account",
172
+ type: "address",
173
+ internalType: "address",
174
+ },
175
+ ],
176
+ outputs: [
177
+ {
178
+ name: "balance",
179
+ type: "uint256",
180
+ internalType: "uint256",
181
+ },
182
+ ],
183
+ stateMutability: "view",
184
+ },
185
+ {
186
+ type: "function",
187
+ name: "burn",
188
+ inputs: [
189
+ {
190
+ name: "account",
191
+ type: "address",
192
+ internalType: "address",
193
+ },
194
+ {
195
+ name: "amount",
196
+ type: "uint256",
197
+ internalType: "uint256",
198
+ },
199
+ {
200
+ name: "offset",
201
+ type: "uint256",
202
+ internalType: "uint256",
203
+ },
204
+ ],
205
+ outputs: [],
206
+ stateMutability: "nonpayable",
207
+ },
208
+ {
209
+ type: "function",
210
+ name: "controller",
211
+ inputs: [],
212
+ outputs: [
213
+ {
214
+ name: "",
215
+ type: "address",
216
+ internalType: "address",
217
+ },
218
+ ],
219
+ stateMutability: "view",
220
+ },
221
+ {
222
+ type: "function",
223
+ name: "cooldownTime",
224
+ inputs: [],
225
+ outputs: [
226
+ {
227
+ name: "",
228
+ type: "uint32",
229
+ internalType: "uint32",
230
+ },
231
+ ],
232
+ stateMutability: "view",
233
+ },
234
+ {
235
+ type: "function",
236
+ name: "cursors",
237
+ inputs: [
238
+ {
239
+ name: "account",
240
+ type: "address",
241
+ internalType: "address",
242
+ },
243
+ ],
244
+ outputs: [
245
+ {
246
+ name: "",
247
+ type: "tuple",
248
+ internalType: "struct AccountCursor",
249
+ components: [
250
+ {
251
+ name: "principal",
252
+ type: "uint128",
253
+ internalType: "uint128",
254
+ },
255
+ {
256
+ name: "virtualBuffer",
257
+ type: "uint104",
258
+ internalType: "uint104",
259
+ },
260
+ {
261
+ name: "epoch",
262
+ type: "uint16",
263
+ internalType: "uint16",
264
+ },
265
+ ],
266
+ },
267
+ ],
268
+ stateMutability: "view",
269
+ },
270
+ {
271
+ type: "function",
272
+ name: "decimals",
273
+ inputs: [],
274
+ outputs: [
275
+ {
276
+ name: "",
277
+ type: "uint8",
278
+ internalType: "uint8",
279
+ },
280
+ ],
281
+ stateMutability: "view",
282
+ },
283
+ {
284
+ type: "function",
285
+ name: "epochFeeBasis",
286
+ inputs: [],
287
+ outputs: [
288
+ {
289
+ name: "",
290
+ type: "uint128",
291
+ internalType: "uint128",
292
+ },
293
+ ],
294
+ stateMutability: "view",
295
+ },
296
+ {
297
+ type: "function",
298
+ name: "epochFeePerShare",
299
+ inputs: [
300
+ {
301
+ name: "price",
302
+ type: "uint256",
303
+ internalType: "uint256",
304
+ },
305
+ ],
306
+ outputs: [
307
+ {
308
+ name: "",
309
+ type: "uint256",
310
+ internalType: "uint256",
311
+ },
312
+ ],
313
+ stateMutability: "view",
314
+ },
315
+ {
316
+ type: "function",
317
+ name: "epochs",
318
+ inputs: [],
319
+ outputs: [
320
+ {
321
+ name: "",
322
+ type: "tuple[]",
323
+ internalType: "struct Epoch[]",
324
+ components: [
325
+ {
326
+ name: "watermark",
327
+ type: "uint128",
328
+ internalType: "uint128",
329
+ },
330
+ {
331
+ name: "priceBefore",
332
+ type: "uint128",
333
+ internalType: "uint128",
334
+ },
335
+ ],
336
+ },
337
+ ],
338
+ stateMutability: "view",
339
+ },
340
+ {
341
+ type: "function",
342
+ name: "feeEpoch",
343
+ inputs: [],
344
+ outputs: [
345
+ {
346
+ name: "",
347
+ type: "uint128",
348
+ internalType: "uint128",
349
+ },
350
+ ],
351
+ stateMutability: "view",
352
+ },
353
+ {
354
+ type: "function",
355
+ name: "feePerShare",
356
+ inputs: [
357
+ {
358
+ name: "price",
359
+ type: "uint256",
360
+ internalType: "uint256",
361
+ },
362
+ {
363
+ name: "basis",
364
+ type: "uint256",
365
+ internalType: "uint256",
366
+ },
367
+ ],
368
+ outputs: [
369
+ {
370
+ name: "",
371
+ type: "uint256",
372
+ internalType: "uint256",
373
+ },
374
+ ],
375
+ stateMutability: "view",
376
+ },
377
+ {
378
+ type: "function",
379
+ name: "getAssets",
380
+ inputs: [],
381
+ outputs: [
382
+ {
383
+ name: "",
384
+ type: "address[]",
385
+ internalType: "contract IERC20[]",
386
+ },
387
+ ],
388
+ stateMutability: "view",
389
+ },
390
+ {
391
+ type: "function",
392
+ name: "getCooldownByUser",
393
+ inputs: [
394
+ {
395
+ name: "_account",
396
+ type: "address",
397
+ internalType: "address",
398
+ },
399
+ ],
400
+ outputs: [
401
+ {
402
+ name: "",
403
+ type: "tuple",
404
+ internalType: "struct LedgerCooldown.CooldownsByUser",
405
+ components: [
406
+ {
407
+ name: "offset",
408
+ type: "uint256",
409
+ internalType: "uint256",
410
+ },
411
+ {
412
+ name: "cooldowns",
413
+ type: "tuple[]",
414
+ internalType: "struct LedgerCooldown.Cooldown[]",
415
+ components: [
416
+ {
417
+ name: "expiresAt",
418
+ type: "uint256",
419
+ internalType: "uint256",
420
+ },
421
+ {
422
+ name: "amount",
423
+ type: "uint256",
424
+ internalType: "uint256",
425
+ },
426
+ ],
427
+ },
428
+ ],
429
+ },
430
+ ],
431
+ stateMutability: "view",
432
+ },
433
+ {
434
+ type: "function",
435
+ name: "getPendingEpochs",
436
+ inputs: [
437
+ {
438
+ name: "account",
439
+ type: "address",
440
+ internalType: "address",
441
+ },
442
+ ],
443
+ outputs: [
444
+ {
445
+ name: "_pendingEpochs",
446
+ type: "tuple[]",
447
+ internalType: "struct Epoch[]",
448
+ components: [
449
+ {
450
+ name: "watermark",
451
+ type: "uint128",
452
+ internalType: "uint128",
453
+ },
454
+ {
455
+ name: "priceBefore",
456
+ type: "uint128",
457
+ internalType: "uint128",
458
+ },
459
+ ],
460
+ },
461
+ ],
462
+ stateMutability: "view",
463
+ },
464
+ {
465
+ type: "function",
466
+ name: "gracePeriodEnd",
467
+ inputs: [],
468
+ outputs: [
469
+ {
470
+ name: "",
471
+ type: "uint48",
472
+ internalType: "uint48",
473
+ },
474
+ ],
475
+ stateMutability: "view",
476
+ },
477
+ {
478
+ type: "function",
479
+ name: "hasCooldown",
480
+ inputs: [
481
+ {
482
+ name: "_account",
483
+ type: "address",
484
+ internalType: "address",
485
+ },
486
+ ],
487
+ outputs: [
488
+ {
489
+ name: "",
490
+ type: "bool",
491
+ internalType: "bool",
492
+ },
493
+ ],
494
+ stateMutability: "view",
495
+ },
496
+ {
497
+ type: "function",
498
+ name: "initialize",
499
+ inputs: [
500
+ {
501
+ name: "vault",
502
+ type: "address",
503
+ internalType: "contract FundVault",
504
+ },
505
+ {
506
+ name: "coin",
507
+ type: "address",
508
+ internalType: "contract IERC20",
509
+ },
510
+ {
511
+ name: "name",
512
+ type: "string",
513
+ internalType: "string",
514
+ },
515
+ {
516
+ name: "symbol",
517
+ type: "string",
518
+ internalType: "string",
519
+ },
520
+ {
521
+ name: "minDepositUsd",
522
+ type: "uint96",
523
+ internalType: "uint96",
524
+ },
525
+ {
526
+ name: "cooldownTime",
527
+ type: "uint32",
528
+ internalType: "uint32",
529
+ },
530
+ {
531
+ name: "managerProfitFeeBps",
532
+ type: "uint16",
533
+ internalType: "uint16",
534
+ },
535
+ {
536
+ name: "managerManagementFeeBps",
537
+ type: "uint16",
538
+ internalType: "uint16",
539
+ },
540
+ {
541
+ name: "referrer",
542
+ type: "address",
543
+ internalType: "address",
544
+ },
545
+ ],
546
+ outputs: [],
547
+ stateMutability: "nonpayable",
548
+ },
549
+ {
550
+ type: "function",
551
+ name: "isOpen",
552
+ inputs: [],
553
+ outputs: [
554
+ {
555
+ name: "",
556
+ type: "bool",
557
+ internalType: "bool",
558
+ },
559
+ ],
560
+ stateMutability: "view",
561
+ },
562
+ {
563
+ type: "function",
564
+ name: "latestCheckpointTimestamp",
565
+ inputs: [],
566
+ outputs: [
567
+ {
568
+ name: "",
569
+ type: "uint48",
570
+ internalType: "uint48",
571
+ },
572
+ ],
573
+ stateMutability: "view",
574
+ },
575
+ {
576
+ type: "function",
577
+ name: "latestManagementFeeTimestamp",
578
+ inputs: [],
579
+ outputs: [
580
+ {
581
+ name: "",
582
+ type: "uint48",
583
+ internalType: "uint48",
584
+ },
585
+ ],
586
+ stateMutability: "view",
587
+ },
588
+ {
589
+ type: "function",
590
+ name: "managementFeeBps",
591
+ inputs: [],
592
+ outputs: [
593
+ {
594
+ name: "",
595
+ type: "uint256",
596
+ internalType: "uint256",
597
+ },
598
+ ],
599
+ stateMutability: "view",
600
+ },
601
+ {
602
+ type: "function",
603
+ name: "manager",
604
+ inputs: [],
605
+ outputs: [
606
+ {
607
+ name: "",
608
+ type: "address",
609
+ internalType: "address",
610
+ },
611
+ ],
612
+ stateMutability: "view",
613
+ },
614
+ {
615
+ type: "function",
616
+ name: "managerManagementFeeBps",
617
+ inputs: [],
618
+ outputs: [
619
+ {
620
+ name: "",
621
+ type: "uint16",
622
+ internalType: "uint16",
623
+ },
624
+ ],
625
+ stateMutability: "view",
626
+ },
627
+ {
628
+ type: "function",
629
+ name: "managerProfitFeeBps",
630
+ inputs: [],
631
+ outputs: [
632
+ {
633
+ name: "",
634
+ type: "uint16",
635
+ internalType: "uint16",
636
+ },
637
+ ],
638
+ stateMutability: "view",
639
+ },
640
+ {
641
+ type: "function",
642
+ name: "minDepositUsd",
643
+ inputs: [],
644
+ outputs: [
645
+ {
646
+ name: "",
647
+ type: "uint96",
648
+ internalType: "uint96",
649
+ },
650
+ ],
651
+ stateMutability: "view",
652
+ },
653
+ {
654
+ type: "function",
655
+ name: "mint",
656
+ inputs: [
657
+ {
658
+ name: "account",
659
+ type: "address",
660
+ internalType: "address",
661
+ },
662
+ {
663
+ name: "amount",
664
+ type: "uint256",
665
+ internalType: "uint256",
666
+ },
667
+ {
668
+ name: "offset",
669
+ type: "uint256",
670
+ internalType: "uint256",
671
+ },
672
+ ],
673
+ outputs: [],
674
+ stateMutability: "nonpayable",
675
+ },
676
+ {
677
+ type: "function",
678
+ name: "name",
679
+ inputs: [],
680
+ outputs: [
681
+ {
682
+ name: "",
683
+ type: "string",
684
+ internalType: "string",
685
+ },
686
+ ],
687
+ stateMutability: "view",
688
+ },
689
+ {
690
+ type: "function",
691
+ name: "preAdjustedBalanceOf",
692
+ inputs: [
693
+ {
694
+ name: "account",
695
+ type: "address",
696
+ internalType: "address",
697
+ },
698
+ ],
699
+ outputs: [
700
+ {
701
+ name: "",
702
+ type: "uint256",
703
+ internalType: "uint256",
704
+ },
705
+ ],
706
+ stateMutability: "view",
707
+ },
708
+ {
709
+ type: "function",
710
+ name: "profitFeeBps",
711
+ inputs: [],
712
+ outputs: [
713
+ {
714
+ name: "",
715
+ type: "uint256",
716
+ internalType: "uint256",
717
+ },
718
+ ],
719
+ stateMutability: "view",
720
+ },
721
+ {
722
+ type: "function",
723
+ name: "protocol",
724
+ inputs: [],
725
+ outputs: [
726
+ {
727
+ name: "",
728
+ type: "address",
729
+ internalType: "contract Protocol",
730
+ },
731
+ ],
732
+ stateMutability: "view",
733
+ },
734
+ {
735
+ type: "function",
736
+ name: "rawTotalSupply",
737
+ inputs: [],
738
+ outputs: [
739
+ {
740
+ name: "",
741
+ type: "uint256",
742
+ internalType: "uint256",
743
+ },
744
+ ],
745
+ stateMutability: "view",
746
+ },
747
+ {
748
+ type: "function",
749
+ name: "referrer",
750
+ inputs: [],
751
+ outputs: [
752
+ {
753
+ name: "",
754
+ type: "address",
755
+ internalType: "address",
756
+ },
757
+ ],
758
+ stateMutability: "view",
759
+ },
760
+ {
761
+ type: "function",
762
+ name: "referrerManagementFeeBps",
763
+ inputs: [],
764
+ outputs: [
765
+ {
766
+ name: "",
767
+ type: "uint16",
768
+ internalType: "uint16",
769
+ },
770
+ ],
771
+ stateMutability: "view",
772
+ },
773
+ {
774
+ type: "function",
775
+ name: "referrerProfitFeeBps",
776
+ inputs: [],
777
+ outputs: [
778
+ {
779
+ name: "",
780
+ type: "uint16",
781
+ internalType: "uint16",
782
+ },
783
+ ],
784
+ stateMutability: "view",
785
+ },
786
+ {
787
+ type: "function",
788
+ name: "removeAsset",
789
+ inputs: [
790
+ {
791
+ name: "asset",
792
+ type: "address",
793
+ internalType: "contract IERC20",
794
+ },
795
+ ],
796
+ outputs: [],
797
+ stateMutability: "nonpayable",
798
+ },
799
+ {
800
+ type: "function",
801
+ name: "replaceAsset",
802
+ inputs: [
803
+ {
804
+ name: "oldAsset",
805
+ type: "address",
806
+ internalType: "contract IERC20",
807
+ },
808
+ {
809
+ name: "newAsset",
810
+ type: "address",
811
+ internalType: "contract IERC20",
812
+ },
813
+ ],
814
+ outputs: [],
815
+ stateMutability: "nonpayable",
816
+ },
817
+ {
818
+ type: "function",
819
+ name: "symbol",
820
+ inputs: [],
821
+ outputs: [
822
+ {
823
+ name: "",
824
+ type: "string",
825
+ internalType: "string",
826
+ },
827
+ ],
828
+ stateMutability: "view",
829
+ },
830
+ {
831
+ type: "function",
832
+ name: "totalPrincipal",
833
+ inputs: [],
834
+ outputs: [
835
+ {
836
+ name: "",
837
+ type: "uint256",
838
+ internalType: "uint256",
839
+ },
840
+ ],
841
+ stateMutability: "view",
842
+ },
843
+ {
844
+ type: "function",
845
+ name: "totalSupply",
846
+ inputs: [],
847
+ outputs: [
848
+ {
849
+ name: "",
850
+ type: "uint256",
851
+ internalType: "uint256",
852
+ },
853
+ ],
854
+ stateMutability: "view",
855
+ },
856
+ {
857
+ type: "function",
858
+ name: "totalSupplyOffset",
859
+ inputs: [],
860
+ outputs: [
861
+ {
862
+ name: "",
863
+ type: "int256",
864
+ internalType: "int256",
865
+ },
866
+ ],
867
+ stateMutability: "view",
868
+ },
869
+ {
870
+ type: "function",
871
+ name: "totalVirtualBuffer",
872
+ inputs: [],
873
+ outputs: [
874
+ {
875
+ name: "",
876
+ type: "uint256",
877
+ internalType: "uint256",
878
+ },
879
+ ],
880
+ stateMutability: "view",
881
+ },
882
+ {
883
+ type: "function",
884
+ name: "totalVirtualPrincipal",
885
+ inputs: [],
886
+ outputs: [
887
+ {
888
+ name: "",
889
+ type: "uint256",
890
+ internalType: "uint256",
891
+ },
892
+ ],
893
+ stateMutability: "view",
894
+ },
895
+ {
896
+ type: "function",
897
+ name: "transfer",
898
+ inputs: [
899
+ {
900
+ name: "to",
901
+ type: "address",
902
+ internalType: "address",
903
+ },
904
+ {
905
+ name: "amount",
906
+ type: "uint256",
907
+ internalType: "uint256",
908
+ },
909
+ ],
910
+ outputs: [
911
+ {
912
+ name: "",
913
+ type: "bool",
914
+ internalType: "bool",
915
+ },
916
+ ],
917
+ stateMutability: "nonpayable",
918
+ },
919
+ {
920
+ type: "function",
921
+ name: "transferFrom",
922
+ inputs: [
923
+ {
924
+ name: "from",
925
+ type: "address",
926
+ internalType: "address",
927
+ },
928
+ {
929
+ name: "to",
930
+ type: "address",
931
+ internalType: "address",
932
+ },
933
+ {
934
+ name: "amount",
935
+ type: "uint256",
936
+ internalType: "uint256",
937
+ },
938
+ ],
939
+ outputs: [
940
+ {
941
+ name: "",
942
+ type: "bool",
943
+ internalType: "bool",
944
+ },
945
+ ],
946
+ stateMutability: "nonpayable",
947
+ },
948
+ {
949
+ type: "function",
950
+ name: "unassignedVirtualBuffer",
951
+ inputs: [],
952
+ outputs: [
953
+ {
954
+ name: "",
955
+ type: "uint128",
956
+ internalType: "uint128",
957
+ },
958
+ ],
959
+ stateMutability: "view",
960
+ },
961
+ {
962
+ type: "function",
963
+ name: "updateController",
964
+ inputs: [
965
+ {
966
+ name: "newController",
967
+ type: "address",
968
+ internalType: "address",
969
+ },
970
+ ],
971
+ outputs: [],
972
+ stateMutability: "nonpayable",
973
+ },
974
+ {
975
+ type: "function",
976
+ name: "updateCooldownTime",
977
+ inputs: [
978
+ {
979
+ name: "newCooldownTime",
980
+ type: "uint32",
981
+ internalType: "uint32",
982
+ },
983
+ ],
984
+ outputs: [],
985
+ stateMutability: "nonpayable",
986
+ },
987
+ {
988
+ type: "function",
989
+ name: "updateManagerAddress",
990
+ inputs: [
991
+ {
992
+ name: "newManagerAddress",
993
+ type: "address",
994
+ internalType: "address",
995
+ },
996
+ ],
997
+ outputs: [],
998
+ stateMutability: "nonpayable",
999
+ },
1000
+ {
1001
+ type: "function",
1002
+ name: "updateMinDepositValue",
1003
+ inputs: [
1004
+ {
1005
+ name: "newMinDepositUsd",
1006
+ type: "uint96",
1007
+ internalType: "uint96",
1008
+ },
1009
+ ],
1010
+ outputs: [],
1011
+ stateMutability: "nonpayable",
1012
+ },
1013
+ {
1014
+ type: "function",
1015
+ name: "vault",
1016
+ inputs: [],
1017
+ outputs: [
1018
+ {
1019
+ name: "",
1020
+ type: "address",
1021
+ internalType: "contract FundVault",
1022
+ },
1023
+ ],
1024
+ stateMutability: "view",
1025
+ },
1026
+ {
1027
+ type: "function",
1028
+ name: "virtualPrincipalOf",
1029
+ inputs: [
1030
+ {
1031
+ name: "account",
1032
+ type: "address",
1033
+ internalType: "address",
1034
+ },
1035
+ ],
1036
+ outputs: [
1037
+ {
1038
+ name: "",
1039
+ type: "uint256",
1040
+ internalType: "uint256",
1041
+ },
1042
+ ],
1043
+ stateMutability: "view",
1044
+ },
1045
+ {
1046
+ type: "function",
1047
+ name: "watermark",
1048
+ inputs: [],
1049
+ outputs: [
1050
+ {
1051
+ name: "",
1052
+ type: "uint128",
1053
+ internalType: "uint128",
1054
+ },
1055
+ ],
1056
+ stateMutability: "view",
1057
+ },
1058
+ {
1059
+ type: "event",
1060
+ name: "Approval",
1061
+ inputs: [
1062
+ {
1063
+ name: "owner",
1064
+ type: "address",
1065
+ indexed: true,
1066
+ internalType: "address",
1067
+ },
1068
+ {
1069
+ name: "spender",
1070
+ type: "address",
1071
+ indexed: true,
1072
+ internalType: "address",
1073
+ },
1074
+ {
1075
+ name: "value",
1076
+ type: "uint256",
1077
+ indexed: false,
1078
+ internalType: "uint256",
1079
+ },
1080
+ ],
1081
+ anonymous: false,
1082
+ },
1083
+ {
1084
+ type: "event",
1085
+ name: "ControllerUpdated",
1086
+ inputs: [
1087
+ {
1088
+ name: "newController",
1089
+ type: "address",
1090
+ indexed: false,
1091
+ internalType: "address",
1092
+ },
1093
+ ],
1094
+ anonymous: false,
1095
+ },
1096
+ {
1097
+ type: "event",
1098
+ name: "CooldownUpdated",
1099
+ inputs: [
1100
+ {
1101
+ name: "newCooldown",
1102
+ type: "uint32",
1103
+ indexed: false,
1104
+ internalType: "uint32",
1105
+ },
1106
+ ],
1107
+ anonymous: false,
1108
+ },
1109
+ {
1110
+ type: "event",
1111
+ name: "Initialized",
1112
+ inputs: [
1113
+ {
1114
+ name: "version",
1115
+ type: "uint64",
1116
+ indexed: false,
1117
+ internalType: "uint64",
1118
+ },
1119
+ ],
1120
+ anonymous: false,
1121
+ },
1122
+ {
1123
+ type: "event",
1124
+ name: "ManagerAddressUpdated",
1125
+ inputs: [
1126
+ {
1127
+ name: "newManagerAddress",
1128
+ type: "address",
1129
+ indexed: false,
1130
+ internalType: "address",
1131
+ },
1132
+ ],
1133
+ anonymous: false,
1134
+ },
1135
+ {
1136
+ type: "event",
1137
+ name: "MinDepositUpdated",
1138
+ inputs: [
1139
+ {
1140
+ name: "newMinimum",
1141
+ type: "uint96",
1142
+ indexed: false,
1143
+ internalType: "uint96",
1144
+ },
1145
+ ],
1146
+ anonymous: false,
1147
+ },
1148
+ {
1149
+ type: "event",
1150
+ name: "Transfer",
1151
+ inputs: [
1152
+ {
1153
+ name: "from",
1154
+ type: "address",
1155
+ indexed: true,
1156
+ internalType: "address",
1157
+ },
1158
+ {
1159
+ name: "to",
1160
+ type: "address",
1161
+ indexed: true,
1162
+ internalType: "address",
1163
+ },
1164
+ {
1165
+ name: "value",
1166
+ type: "uint256",
1167
+ indexed: false,
1168
+ internalType: "uint256",
1169
+ },
1170
+ ],
1171
+ anonymous: false,
1172
+ },
1173
+ {
1174
+ type: "error",
1175
+ name: "ControllerDisabled",
1176
+ inputs: [],
1177
+ },
1178
+ {
1179
+ type: "error",
1180
+ name: "CooldownNotExpired",
1181
+ inputs: [
1182
+ {
1183
+ name: "availableBalance",
1184
+ type: "uint256",
1185
+ internalType: "uint256",
1186
+ },
1187
+ {
1188
+ name: "transferAmount",
1189
+ type: "uint256",
1190
+ internalType: "uint256",
1191
+ },
1192
+ ],
1193
+ },
1194
+ {
1195
+ type: "error",
1196
+ name: "ERC20InsufficientAllowance",
1197
+ inputs: [
1198
+ {
1199
+ name: "spender",
1200
+ type: "address",
1201
+ internalType: "address",
1202
+ },
1203
+ {
1204
+ name: "allowance",
1205
+ type: "uint256",
1206
+ internalType: "uint256",
1207
+ },
1208
+ {
1209
+ name: "needed",
1210
+ type: "uint256",
1211
+ internalType: "uint256",
1212
+ },
1213
+ ],
1214
+ },
1215
+ {
1216
+ type: "error",
1217
+ name: "ERC20InsufficientBalance",
1218
+ inputs: [
1219
+ {
1220
+ name: "sender",
1221
+ type: "address",
1222
+ internalType: "address",
1223
+ },
1224
+ {
1225
+ name: "balance",
1226
+ type: "uint256",
1227
+ internalType: "uint256",
1228
+ },
1229
+ {
1230
+ name: "needed",
1231
+ type: "uint256",
1232
+ internalType: "uint256",
1233
+ },
1234
+ ],
1235
+ },
1236
+ {
1237
+ type: "error",
1238
+ name: "ERC20InvalidApprover",
1239
+ inputs: [
1240
+ {
1241
+ name: "approver",
1242
+ type: "address",
1243
+ internalType: "address",
1244
+ },
1245
+ ],
1246
+ },
1247
+ {
1248
+ type: "error",
1249
+ name: "ERC20InvalidReceiver",
1250
+ inputs: [
1251
+ {
1252
+ name: "receiver",
1253
+ type: "address",
1254
+ internalType: "address",
1255
+ },
1256
+ ],
1257
+ },
1258
+ {
1259
+ type: "error",
1260
+ name: "ERC20InvalidSender",
1261
+ inputs: [
1262
+ {
1263
+ name: "sender",
1264
+ type: "address",
1265
+ internalType: "address",
1266
+ },
1267
+ ],
1268
+ },
1269
+ {
1270
+ type: "error",
1271
+ name: "ERC20InvalidSpender",
1272
+ inputs: [
1273
+ {
1274
+ name: "spender",
1275
+ type: "address",
1276
+ internalType: "address",
1277
+ },
1278
+ ],
1279
+ },
1280
+ {
1281
+ type: "error",
1282
+ name: "InvalidAddress",
1283
+ inputs: [],
1284
+ },
1285
+ {
1286
+ type: "error",
1287
+ name: "InvalidInitialization",
1288
+ inputs: [],
1289
+ },
1290
+ {
1291
+ type: "error",
1292
+ name: "InvalidVault",
1293
+ inputs: [],
1294
+ },
1295
+ {
1296
+ type: "error",
1297
+ name: "NotImplemented",
1298
+ inputs: [],
1299
+ },
1300
+ {
1301
+ type: "error",
1302
+ name: "NotInitializing",
1303
+ inputs: [],
1304
+ },
1305
+ {
1306
+ type: "error",
1307
+ name: "RedundantAssetAddition",
1308
+ inputs: [
1309
+ {
1310
+ name: "asset",
1311
+ type: "address",
1312
+ internalType: "contract IERC20",
1313
+ },
1314
+ ],
1315
+ },
1316
+ {
1317
+ type: "error",
1318
+ name: "SafeCastOverflowedUintDowncast",
1319
+ inputs: [
1320
+ {
1321
+ name: "bits",
1322
+ type: "uint8",
1323
+ internalType: "uint8",
1324
+ },
1325
+ {
1326
+ name: "value",
1327
+ type: "uint256",
1328
+ internalType: "uint256",
1329
+ },
1330
+ ],
1331
+ },
1332
+ {
1333
+ type: "error",
1334
+ name: "SafeCastOverflowedUintToInt",
1335
+ inputs: [
1336
+ {
1337
+ name: "value",
1338
+ type: "uint256",
1339
+ internalType: "uint256",
1340
+ },
1341
+ ],
1342
+ },
1343
+ {
1344
+ type: "error",
1345
+ name: "Unauthorized",
1346
+ inputs: [],
1347
+ },
1348
+ ];
1349
+ export class LedgerAssetManager__factory {
1350
+ static abi = _abi;
1351
+ static createInterface() {
1352
+ return new Interface(_abi);
1353
+ }
1354
+ static connect(address, runner) {
1355
+ return new Contract(address, _abi, runner);
1356
+ }
1357
+ }