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