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