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