@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,1791 @@
1
+ import { Contract, Interface } from "ethers";
2
+ const _abi = [
3
+ {
4
+ type: "function",
5
+ name: "accountFeeBasis",
6
+ inputs: [
7
+ {
8
+ name: "account",
9
+ type: "address",
10
+ internalType: "address",
11
+ },
12
+ ],
13
+ outputs: [
14
+ {
15
+ name: "",
16
+ type: "uint128",
17
+ internalType: "uint128",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ },
22
+ {
23
+ type: "function",
24
+ name: "accrueManagementFee",
25
+ inputs: [],
26
+ outputs: [],
27
+ stateMutability: "nonpayable",
28
+ },
29
+ {
30
+ type: "function",
31
+ name: "allowance",
32
+ inputs: [
33
+ {
34
+ name: "owner",
35
+ type: "address",
36
+ internalType: "address",
37
+ },
38
+ {
39
+ name: "spender",
40
+ type: "address",
41
+ internalType: "address",
42
+ },
43
+ ],
44
+ outputs: [
45
+ {
46
+ name: "",
47
+ type: "uint256",
48
+ internalType: "uint256",
49
+ },
50
+ ],
51
+ stateMutability: "view",
52
+ },
53
+ {
54
+ type: "function",
55
+ name: "approve",
56
+ inputs: [
57
+ {
58
+ name: "",
59
+ type: "address",
60
+ internalType: "address",
61
+ },
62
+ {
63
+ name: "",
64
+ type: "uint256",
65
+ internalType: "uint256",
66
+ },
67
+ ],
68
+ outputs: [
69
+ {
70
+ name: "",
71
+ type: "bool",
72
+ internalType: "bool",
73
+ },
74
+ ],
75
+ stateMutability: "pure",
76
+ },
77
+ {
78
+ type: "function",
79
+ name: "assetSlot",
80
+ inputs: [
81
+ {
82
+ name: "asset",
83
+ type: "address",
84
+ internalType: "contract IERC20",
85
+ },
86
+ ],
87
+ outputs: [
88
+ {
89
+ name: "index",
90
+ type: "uint256",
91
+ internalType: "uint256",
92
+ },
93
+ ],
94
+ stateMutability: "view",
95
+ },
96
+ {
97
+ type: "function",
98
+ name: "assets",
99
+ inputs: [
100
+ {
101
+ name: "",
102
+ type: "uint256",
103
+ internalType: "uint256",
104
+ },
105
+ ],
106
+ outputs: [
107
+ {
108
+ name: "",
109
+ type: "address",
110
+ internalType: "contract IERC20",
111
+ },
112
+ ],
113
+ stateMutability: "view",
114
+ },
115
+ {
116
+ type: "function",
117
+ name: "assignedVirtualBuffer",
118
+ inputs: [],
119
+ outputs: [
120
+ {
121
+ name: "",
122
+ type: "uint128",
123
+ internalType: "uint128",
124
+ },
125
+ ],
126
+ stateMutability: "view",
127
+ },
128
+ {
129
+ type: "function",
130
+ name: "availableBalanceOf",
131
+ inputs: [
132
+ {
133
+ name: "_account",
134
+ type: "address",
135
+ internalType: "address",
136
+ },
137
+ ],
138
+ outputs: [
139
+ {
140
+ name: "availableBalance",
141
+ type: "uint256",
142
+ internalType: "uint256",
143
+ },
144
+ ],
145
+ stateMutability: "view",
146
+ },
147
+ {
148
+ type: "function",
149
+ name: "balanceOf",
150
+ inputs: [
151
+ {
152
+ name: "account",
153
+ type: "address",
154
+ internalType: "address",
155
+ },
156
+ ],
157
+ outputs: [
158
+ {
159
+ name: "balance",
160
+ type: "uint256",
161
+ internalType: "uint256",
162
+ },
163
+ ],
164
+ stateMutability: "view",
165
+ },
166
+ {
167
+ type: "function",
168
+ name: "burn",
169
+ inputs: [
170
+ {
171
+ name: "account",
172
+ type: "address",
173
+ internalType: "address",
174
+ },
175
+ {
176
+ name: "amount",
177
+ type: "uint256",
178
+ internalType: "uint256",
179
+ },
180
+ {
181
+ name: "offset",
182
+ type: "uint256",
183
+ internalType: "uint256",
184
+ },
185
+ ],
186
+ outputs: [],
187
+ stateMutability: "nonpayable",
188
+ },
189
+ {
190
+ type: "function",
191
+ name: "controller",
192
+ inputs: [],
193
+ outputs: [
194
+ {
195
+ name: "",
196
+ type: "address",
197
+ internalType: "address",
198
+ },
199
+ ],
200
+ stateMutability: "view",
201
+ },
202
+ {
203
+ type: "function",
204
+ name: "cooldownTime",
205
+ inputs: [],
206
+ outputs: [
207
+ {
208
+ name: "",
209
+ type: "uint32",
210
+ internalType: "uint32",
211
+ },
212
+ ],
213
+ stateMutability: "view",
214
+ },
215
+ {
216
+ type: "function",
217
+ name: "cursors",
218
+ inputs: [
219
+ {
220
+ name: "account",
221
+ type: "address",
222
+ internalType: "address",
223
+ },
224
+ ],
225
+ outputs: [
226
+ {
227
+ name: "",
228
+ type: "tuple",
229
+ internalType: "struct AccountCursor",
230
+ components: [
231
+ {
232
+ name: "principal",
233
+ type: "uint128",
234
+ internalType: "uint128",
235
+ },
236
+ {
237
+ name: "virtualBuffer",
238
+ type: "uint104",
239
+ internalType: "uint104",
240
+ },
241
+ {
242
+ name: "epoch",
243
+ type: "uint16",
244
+ internalType: "uint16",
245
+ },
246
+ ],
247
+ },
248
+ ],
249
+ stateMutability: "view",
250
+ },
251
+ {
252
+ type: "function",
253
+ name: "decimals",
254
+ inputs: [],
255
+ outputs: [
256
+ {
257
+ name: "",
258
+ type: "uint8",
259
+ internalType: "uint8",
260
+ },
261
+ ],
262
+ stateMutability: "view",
263
+ },
264
+ {
265
+ type: "function",
266
+ name: "epochFeeBasis",
267
+ inputs: [],
268
+ outputs: [
269
+ {
270
+ name: "",
271
+ type: "uint128",
272
+ internalType: "uint128",
273
+ },
274
+ ],
275
+ stateMutability: "view",
276
+ },
277
+ {
278
+ type: "function",
279
+ name: "epochFeePerShare",
280
+ inputs: [
281
+ {
282
+ name: "price",
283
+ type: "uint256",
284
+ internalType: "uint256",
285
+ },
286
+ ],
287
+ outputs: [
288
+ {
289
+ name: "",
290
+ type: "uint256",
291
+ internalType: "uint256",
292
+ },
293
+ ],
294
+ stateMutability: "view",
295
+ },
296
+ {
297
+ type: "function",
298
+ name: "epochs",
299
+ inputs: [],
300
+ outputs: [
301
+ {
302
+ name: "",
303
+ type: "tuple[]",
304
+ internalType: "struct Epoch[]",
305
+ components: [
306
+ {
307
+ name: "watermark",
308
+ type: "uint128",
309
+ internalType: "uint128",
310
+ },
311
+ {
312
+ name: "priceBefore",
313
+ type: "uint128",
314
+ internalType: "uint128",
315
+ },
316
+ ],
317
+ },
318
+ ],
319
+ stateMutability: "view",
320
+ },
321
+ {
322
+ type: "function",
323
+ name: "feeEpoch",
324
+ inputs: [],
325
+ outputs: [
326
+ {
327
+ name: "",
328
+ type: "uint128",
329
+ internalType: "uint128",
330
+ },
331
+ ],
332
+ stateMutability: "view",
333
+ },
334
+ {
335
+ type: "function",
336
+ name: "feePerShare",
337
+ inputs: [
338
+ {
339
+ name: "price",
340
+ type: "uint256",
341
+ internalType: "uint256",
342
+ },
343
+ {
344
+ name: "basis",
345
+ type: "uint256",
346
+ internalType: "uint256",
347
+ },
348
+ ],
349
+ outputs: [
350
+ {
351
+ name: "",
352
+ type: "uint256",
353
+ internalType: "uint256",
354
+ },
355
+ ],
356
+ stateMutability: "view",
357
+ },
358
+ {
359
+ type: "function",
360
+ name: "getCooldownByUser",
361
+ inputs: [
362
+ {
363
+ name: "_account",
364
+ type: "address",
365
+ internalType: "address",
366
+ },
367
+ ],
368
+ outputs: [
369
+ {
370
+ name: "",
371
+ type: "tuple",
372
+ internalType: "struct LedgerCooldown.CooldownsByUser",
373
+ components: [
374
+ {
375
+ name: "offset",
376
+ type: "uint256",
377
+ internalType: "uint256",
378
+ },
379
+ {
380
+ name: "cooldowns",
381
+ type: "tuple[]",
382
+ internalType: "struct LedgerCooldown.Cooldown[]",
383
+ components: [
384
+ {
385
+ name: "expiresAt",
386
+ type: "uint256",
387
+ internalType: "uint256",
388
+ },
389
+ {
390
+ name: "amount",
391
+ type: "uint256",
392
+ internalType: "uint256",
393
+ },
394
+ ],
395
+ },
396
+ ],
397
+ },
398
+ ],
399
+ stateMutability: "view",
400
+ },
401
+ {
402
+ type: "function",
403
+ name: "getPendingEpochs",
404
+ inputs: [
405
+ {
406
+ name: "account",
407
+ type: "address",
408
+ internalType: "address",
409
+ },
410
+ ],
411
+ outputs: [
412
+ {
413
+ name: "_pendingEpochs",
414
+ type: "tuple[]",
415
+ internalType: "struct Epoch[]",
416
+ components: [
417
+ {
418
+ name: "watermark",
419
+ type: "uint128",
420
+ internalType: "uint128",
421
+ },
422
+ {
423
+ name: "priceBefore",
424
+ type: "uint128",
425
+ internalType: "uint128",
426
+ },
427
+ ],
428
+ },
429
+ ],
430
+ stateMutability: "view",
431
+ },
432
+ {
433
+ type: "function",
434
+ name: "gracePeriodEnd",
435
+ inputs: [],
436
+ outputs: [
437
+ {
438
+ name: "",
439
+ type: "uint48",
440
+ internalType: "uint48",
441
+ },
442
+ ],
443
+ stateMutability: "view",
444
+ },
445
+ {
446
+ type: "function",
447
+ name: "hasCooldown",
448
+ inputs: [
449
+ {
450
+ name: "_account",
451
+ type: "address",
452
+ internalType: "address",
453
+ },
454
+ ],
455
+ outputs: [
456
+ {
457
+ name: "",
458
+ type: "bool",
459
+ internalType: "bool",
460
+ },
461
+ ],
462
+ stateMutability: "view",
463
+ },
464
+ {
465
+ type: "function",
466
+ name: "initialize",
467
+ inputs: [
468
+ {
469
+ name: "vault",
470
+ type: "address",
471
+ internalType: "contract FundVault",
472
+ },
473
+ {
474
+ name: "coin",
475
+ type: "address",
476
+ internalType: "contract IERC20",
477
+ },
478
+ {
479
+ name: "name",
480
+ type: "string",
481
+ internalType: "string",
482
+ },
483
+ {
484
+ name: "symbol",
485
+ type: "string",
486
+ internalType: "string",
487
+ },
488
+ {
489
+ name: "minDepositUsd",
490
+ type: "uint96",
491
+ internalType: "uint96",
492
+ },
493
+ {
494
+ name: "cooldownTime",
495
+ type: "uint32",
496
+ internalType: "uint32",
497
+ },
498
+ {
499
+ name: "managerProfitFeeBps",
500
+ type: "uint16",
501
+ internalType: "uint16",
502
+ },
503
+ {
504
+ name: "managerManagementFeeBps",
505
+ type: "uint16",
506
+ internalType: "uint16",
507
+ },
508
+ {
509
+ name: "referrer",
510
+ type: "address",
511
+ internalType: "address",
512
+ },
513
+ ],
514
+ outputs: [],
515
+ stateMutability: "nonpayable",
516
+ },
517
+ {
518
+ type: "function",
519
+ name: "isOpen",
520
+ inputs: [],
521
+ outputs: [
522
+ {
523
+ name: "",
524
+ type: "bool",
525
+ internalType: "bool",
526
+ },
527
+ ],
528
+ stateMutability: "view",
529
+ },
530
+ {
531
+ type: "function",
532
+ name: "latestCheckpointTimestamp",
533
+ inputs: [],
534
+ outputs: [
535
+ {
536
+ name: "",
537
+ type: "uint48",
538
+ internalType: "uint48",
539
+ },
540
+ ],
541
+ stateMutability: "view",
542
+ },
543
+ {
544
+ type: "function",
545
+ name: "latestManagementFeeTimestamp",
546
+ inputs: [],
547
+ outputs: [
548
+ {
549
+ name: "",
550
+ type: "uint48",
551
+ internalType: "uint48",
552
+ },
553
+ ],
554
+ stateMutability: "view",
555
+ },
556
+ {
557
+ type: "function",
558
+ name: "managementFeeBps",
559
+ inputs: [],
560
+ outputs: [
561
+ {
562
+ name: "",
563
+ type: "uint256",
564
+ internalType: "uint256",
565
+ },
566
+ ],
567
+ stateMutability: "view",
568
+ },
569
+ {
570
+ type: "function",
571
+ name: "manager",
572
+ inputs: [],
573
+ outputs: [
574
+ {
575
+ name: "",
576
+ type: "address",
577
+ internalType: "address",
578
+ },
579
+ ],
580
+ stateMutability: "view",
581
+ },
582
+ {
583
+ type: "function",
584
+ name: "managerManagementFeeBps",
585
+ inputs: [],
586
+ outputs: [
587
+ {
588
+ name: "",
589
+ type: "uint16",
590
+ internalType: "uint16",
591
+ },
592
+ ],
593
+ stateMutability: "view",
594
+ },
595
+ {
596
+ type: "function",
597
+ name: "managerProfitFeeBps",
598
+ inputs: [],
599
+ outputs: [
600
+ {
601
+ name: "",
602
+ type: "uint16",
603
+ internalType: "uint16",
604
+ },
605
+ ],
606
+ stateMutability: "view",
607
+ },
608
+ {
609
+ type: "function",
610
+ name: "minDepositUsd",
611
+ inputs: [],
612
+ outputs: [
613
+ {
614
+ name: "",
615
+ type: "uint96",
616
+ internalType: "uint96",
617
+ },
618
+ ],
619
+ stateMutability: "view",
620
+ },
621
+ {
622
+ type: "function",
623
+ name: "mint",
624
+ inputs: [
625
+ {
626
+ name: "account",
627
+ type: "address",
628
+ internalType: "address",
629
+ },
630
+ {
631
+ name: "amount",
632
+ type: "uint256",
633
+ internalType: "uint256",
634
+ },
635
+ {
636
+ name: "offset",
637
+ type: "uint256",
638
+ internalType: "uint256",
639
+ },
640
+ ],
641
+ outputs: [],
642
+ stateMutability: "nonpayable",
643
+ },
644
+ {
645
+ type: "function",
646
+ name: "name",
647
+ inputs: [],
648
+ outputs: [
649
+ {
650
+ name: "",
651
+ type: "string",
652
+ internalType: "string",
653
+ },
654
+ ],
655
+ stateMutability: "view",
656
+ },
657
+ {
658
+ type: "function",
659
+ name: "preAdjustedBalanceOf",
660
+ inputs: [
661
+ {
662
+ name: "account",
663
+ type: "address",
664
+ internalType: "address",
665
+ },
666
+ ],
667
+ outputs: [
668
+ {
669
+ name: "",
670
+ type: "uint256",
671
+ internalType: "uint256",
672
+ },
673
+ ],
674
+ stateMutability: "view",
675
+ },
676
+ {
677
+ type: "function",
678
+ name: "profitFeeBps",
679
+ inputs: [],
680
+ outputs: [
681
+ {
682
+ name: "",
683
+ type: "uint256",
684
+ internalType: "uint256",
685
+ },
686
+ ],
687
+ stateMutability: "view",
688
+ },
689
+ {
690
+ type: "function",
691
+ name: "protocol",
692
+ inputs: [],
693
+ outputs: [
694
+ {
695
+ name: "",
696
+ type: "address",
697
+ internalType: "contract Protocol",
698
+ },
699
+ ],
700
+ stateMutability: "view",
701
+ },
702
+ {
703
+ type: "function",
704
+ name: "rawTotalSupply",
705
+ inputs: [],
706
+ outputs: [
707
+ {
708
+ name: "",
709
+ type: "uint256",
710
+ internalType: "uint256",
711
+ },
712
+ ],
713
+ stateMutability: "view",
714
+ },
715
+ {
716
+ type: "function",
717
+ name: "referrer",
718
+ inputs: [],
719
+ outputs: [
720
+ {
721
+ name: "",
722
+ type: "address",
723
+ internalType: "address",
724
+ },
725
+ ],
726
+ stateMutability: "view",
727
+ },
728
+ {
729
+ type: "function",
730
+ name: "referrerManagementFeeBps",
731
+ inputs: [],
732
+ outputs: [
733
+ {
734
+ name: "",
735
+ type: "uint16",
736
+ internalType: "uint16",
737
+ },
738
+ ],
739
+ stateMutability: "view",
740
+ },
741
+ {
742
+ type: "function",
743
+ name: "referrerProfitFeeBps",
744
+ inputs: [],
745
+ outputs: [
746
+ {
747
+ name: "",
748
+ type: "uint16",
749
+ internalType: "uint16",
750
+ },
751
+ ],
752
+ stateMutability: "view",
753
+ },
754
+ {
755
+ type: "function",
756
+ name: "registerClosure",
757
+ inputs: [
758
+ {
759
+ name: "coin",
760
+ type: "address",
761
+ internalType: "contract IERC20",
762
+ },
763
+ ],
764
+ outputs: [],
765
+ stateMutability: "nonpayable",
766
+ },
767
+ {
768
+ type: "function",
769
+ name: "registerCursor",
770
+ inputs: [
771
+ {
772
+ name: "account",
773
+ type: "address",
774
+ internalType: "address",
775
+ },
776
+ {
777
+ name: "cursorBefore",
778
+ type: "tuple",
779
+ internalType: "struct AccountCursor",
780
+ components: [
781
+ {
782
+ name: "principal",
783
+ type: "uint128",
784
+ internalType: "uint128",
785
+ },
786
+ {
787
+ name: "virtualBuffer",
788
+ type: "uint104",
789
+ internalType: "uint104",
790
+ },
791
+ {
792
+ name: "epoch",
793
+ type: "uint16",
794
+ internalType: "uint16",
795
+ },
796
+ ],
797
+ },
798
+ {
799
+ name: "cursorAfter",
800
+ type: "tuple",
801
+ internalType: "struct AccountCursor",
802
+ components: [
803
+ {
804
+ name: "principal",
805
+ type: "uint128",
806
+ internalType: "uint128",
807
+ },
808
+ {
809
+ name: "virtualBuffer",
810
+ type: "uint104",
811
+ internalType: "uint104",
812
+ },
813
+ {
814
+ name: "epoch",
815
+ type: "uint16",
816
+ internalType: "uint16",
817
+ },
818
+ ],
819
+ },
820
+ {
821
+ name: "newUnassignedVirtBuf",
822
+ type: "uint128",
823
+ internalType: "uint128",
824
+ },
825
+ {
826
+ name: "newAssignedVirtBuf",
827
+ type: "uint128",
828
+ internalType: "uint128",
829
+ },
830
+ ],
831
+ outputs: [],
832
+ stateMutability: "nonpayable",
833
+ },
834
+ {
835
+ type: "function",
836
+ name: "registerDeposit",
837
+ inputs: [
838
+ {
839
+ name: "account",
840
+ type: "address",
841
+ internalType: "address",
842
+ },
843
+ {
844
+ name: "coin",
845
+ type: "address",
846
+ internalType: "contract IERC20",
847
+ },
848
+ {
849
+ name: "sharesAmount",
850
+ type: "uint256",
851
+ internalType: "uint256",
852
+ },
853
+ {
854
+ name: "principalAmountIn",
855
+ type: "uint256",
856
+ internalType: "uint256",
857
+ },
858
+ {
859
+ name: "fee",
860
+ type: "uint256",
861
+ internalType: "uint256",
862
+ },
863
+ ],
864
+ outputs: [],
865
+ stateMutability: "nonpayable",
866
+ },
867
+ {
868
+ type: "function",
869
+ name: "registerEpoch",
870
+ inputs: [
871
+ {
872
+ name: "newEpoch",
873
+ type: "tuple",
874
+ internalType: "struct Epoch",
875
+ components: [
876
+ {
877
+ name: "watermark",
878
+ type: "uint128",
879
+ internalType: "uint128",
880
+ },
881
+ {
882
+ name: "priceBefore",
883
+ type: "uint128",
884
+ internalType: "uint128",
885
+ },
886
+ ],
887
+ },
888
+ {
889
+ name: "epochBufferDelta",
890
+ type: "uint128",
891
+ internalType: "uint128",
892
+ },
893
+ ],
894
+ outputs: [],
895
+ stateMutability: "nonpayable",
896
+ },
897
+ {
898
+ type: "function",
899
+ name: "registerManagementFeeClaim",
900
+ inputs: [
901
+ {
902
+ name: "timestamp",
903
+ type: "uint48",
904
+ internalType: "uint48",
905
+ },
906
+ ],
907
+ outputs: [],
908
+ stateMutability: "nonpayable",
909
+ },
910
+ {
911
+ type: "function",
912
+ name: "registerTransfer",
913
+ inputs: [
914
+ {
915
+ name: "ctx",
916
+ type: "tuple",
917
+ internalType: "struct TransferContext",
918
+ components: [
919
+ {
920
+ name: "from",
921
+ type: "address",
922
+ internalType: "address",
923
+ },
924
+ {
925
+ name: "to",
926
+ type: "address",
927
+ internalType: "address",
928
+ },
929
+ {
930
+ name: "fromCursor",
931
+ type: "tuple",
932
+ internalType: "struct AccountCursor",
933
+ components: [
934
+ {
935
+ name: "principal",
936
+ type: "uint128",
937
+ internalType: "uint128",
938
+ },
939
+ {
940
+ name: "virtualBuffer",
941
+ type: "uint104",
942
+ internalType: "uint104",
943
+ },
944
+ {
945
+ name: "epoch",
946
+ type: "uint16",
947
+ internalType: "uint16",
948
+ },
949
+ ],
950
+ },
951
+ {
952
+ name: "toCursor",
953
+ type: "tuple",
954
+ internalType: "struct AccountCursor",
955
+ components: [
956
+ {
957
+ name: "principal",
958
+ type: "uint128",
959
+ internalType: "uint128",
960
+ },
961
+ {
962
+ name: "virtualBuffer",
963
+ type: "uint104",
964
+ internalType: "uint104",
965
+ },
966
+ {
967
+ name: "epoch",
968
+ type: "uint16",
969
+ internalType: "uint16",
970
+ },
971
+ ],
972
+ },
973
+ {
974
+ name: "fromBalance",
975
+ type: "uint256",
976
+ internalType: "uint256",
977
+ },
978
+ {
979
+ name: "amount",
980
+ type: "uint256",
981
+ internalType: "uint256",
982
+ },
983
+ ],
984
+ },
985
+ ],
986
+ outputs: [],
987
+ stateMutability: "nonpayable",
988
+ },
989
+ {
990
+ type: "function",
991
+ name: "registerWithdrawal",
992
+ inputs: [
993
+ {
994
+ name: "account",
995
+ type: "address",
996
+ internalType: "address",
997
+ },
998
+ {
999
+ name: "coin",
1000
+ type: "address",
1001
+ internalType: "contract IERC20",
1002
+ },
1003
+ {
1004
+ name: "sharesAmount",
1005
+ type: "uint256",
1006
+ internalType: "uint256",
1007
+ },
1008
+ {
1009
+ name: "principalAmountOut",
1010
+ type: "uint128",
1011
+ internalType: "uint128",
1012
+ },
1013
+ {
1014
+ name: "bufferAmountOut",
1015
+ type: "uint104",
1016
+ internalType: "uint104",
1017
+ },
1018
+ {
1019
+ name: "netAmountOut",
1020
+ type: "uint256",
1021
+ internalType: "uint256",
1022
+ },
1023
+ {
1024
+ name: "managerFee",
1025
+ type: "uint256",
1026
+ internalType: "uint256",
1027
+ },
1028
+ {
1029
+ name: "referrerFee",
1030
+ type: "uint256",
1031
+ internalType: "uint256",
1032
+ },
1033
+ ],
1034
+ outputs: [],
1035
+ stateMutability: "nonpayable",
1036
+ },
1037
+ {
1038
+ type: "function",
1039
+ name: "symbol",
1040
+ inputs: [],
1041
+ outputs: [
1042
+ {
1043
+ name: "",
1044
+ type: "string",
1045
+ internalType: "string",
1046
+ },
1047
+ ],
1048
+ stateMutability: "view",
1049
+ },
1050
+ {
1051
+ type: "function",
1052
+ name: "totalPrincipal",
1053
+ inputs: [],
1054
+ outputs: [
1055
+ {
1056
+ name: "",
1057
+ type: "uint256",
1058
+ internalType: "uint256",
1059
+ },
1060
+ ],
1061
+ stateMutability: "view",
1062
+ },
1063
+ {
1064
+ type: "function",
1065
+ name: "totalSupply",
1066
+ inputs: [],
1067
+ outputs: [
1068
+ {
1069
+ name: "",
1070
+ type: "uint256",
1071
+ internalType: "uint256",
1072
+ },
1073
+ ],
1074
+ stateMutability: "view",
1075
+ },
1076
+ {
1077
+ type: "function",
1078
+ name: "totalSupplyOffset",
1079
+ inputs: [],
1080
+ outputs: [
1081
+ {
1082
+ name: "",
1083
+ type: "int256",
1084
+ internalType: "int256",
1085
+ },
1086
+ ],
1087
+ stateMutability: "view",
1088
+ },
1089
+ {
1090
+ type: "function",
1091
+ name: "totalVirtualBuffer",
1092
+ inputs: [],
1093
+ outputs: [
1094
+ {
1095
+ name: "",
1096
+ type: "uint256",
1097
+ internalType: "uint256",
1098
+ },
1099
+ ],
1100
+ stateMutability: "view",
1101
+ },
1102
+ {
1103
+ type: "function",
1104
+ name: "totalVirtualPrincipal",
1105
+ inputs: [],
1106
+ outputs: [
1107
+ {
1108
+ name: "",
1109
+ type: "uint256",
1110
+ internalType: "uint256",
1111
+ },
1112
+ ],
1113
+ stateMutability: "view",
1114
+ },
1115
+ {
1116
+ type: "function",
1117
+ name: "transfer",
1118
+ inputs: [
1119
+ {
1120
+ name: "to",
1121
+ type: "address",
1122
+ internalType: "address",
1123
+ },
1124
+ {
1125
+ name: "amount",
1126
+ type: "uint256",
1127
+ internalType: "uint256",
1128
+ },
1129
+ ],
1130
+ outputs: [
1131
+ {
1132
+ name: "",
1133
+ type: "bool",
1134
+ internalType: "bool",
1135
+ },
1136
+ ],
1137
+ stateMutability: "nonpayable",
1138
+ },
1139
+ {
1140
+ type: "function",
1141
+ name: "transferFrom",
1142
+ inputs: [
1143
+ {
1144
+ name: "from",
1145
+ type: "address",
1146
+ internalType: "address",
1147
+ },
1148
+ {
1149
+ name: "to",
1150
+ type: "address",
1151
+ internalType: "address",
1152
+ },
1153
+ {
1154
+ name: "amount",
1155
+ type: "uint256",
1156
+ internalType: "uint256",
1157
+ },
1158
+ ],
1159
+ outputs: [
1160
+ {
1161
+ name: "",
1162
+ type: "bool",
1163
+ internalType: "bool",
1164
+ },
1165
+ ],
1166
+ stateMutability: "nonpayable",
1167
+ },
1168
+ {
1169
+ type: "function",
1170
+ name: "unassignedVirtualBuffer",
1171
+ inputs: [],
1172
+ outputs: [
1173
+ {
1174
+ name: "",
1175
+ type: "uint128",
1176
+ internalType: "uint128",
1177
+ },
1178
+ ],
1179
+ stateMutability: "view",
1180
+ },
1181
+ {
1182
+ type: "function",
1183
+ name: "updateController",
1184
+ inputs: [
1185
+ {
1186
+ name: "newController",
1187
+ type: "address",
1188
+ internalType: "address",
1189
+ },
1190
+ ],
1191
+ outputs: [],
1192
+ stateMutability: "nonpayable",
1193
+ },
1194
+ {
1195
+ type: "function",
1196
+ name: "updateCooldownTime",
1197
+ inputs: [
1198
+ {
1199
+ name: "newCooldownTime",
1200
+ type: "uint32",
1201
+ internalType: "uint32",
1202
+ },
1203
+ ],
1204
+ outputs: [],
1205
+ stateMutability: "nonpayable",
1206
+ },
1207
+ {
1208
+ type: "function",
1209
+ name: "updateFees",
1210
+ inputs: [
1211
+ {
1212
+ name: "newManagerProfitFeeBps",
1213
+ type: "uint16",
1214
+ internalType: "uint16",
1215
+ },
1216
+ {
1217
+ name: "newManagerManagementFeeBps",
1218
+ type: "uint16",
1219
+ internalType: "uint16",
1220
+ },
1221
+ ],
1222
+ outputs: [],
1223
+ stateMutability: "nonpayable",
1224
+ },
1225
+ {
1226
+ type: "function",
1227
+ name: "updateManagerAddress",
1228
+ inputs: [
1229
+ {
1230
+ name: "newManagerAddress",
1231
+ type: "address",
1232
+ internalType: "address",
1233
+ },
1234
+ ],
1235
+ outputs: [],
1236
+ stateMutability: "nonpayable",
1237
+ },
1238
+ {
1239
+ type: "function",
1240
+ name: "vault",
1241
+ inputs: [],
1242
+ outputs: [
1243
+ {
1244
+ name: "",
1245
+ type: "address",
1246
+ internalType: "contract FundVault",
1247
+ },
1248
+ ],
1249
+ stateMutability: "view",
1250
+ },
1251
+ {
1252
+ type: "function",
1253
+ name: "virtualPrincipalOf",
1254
+ inputs: [
1255
+ {
1256
+ name: "account",
1257
+ type: "address",
1258
+ internalType: "address",
1259
+ },
1260
+ ],
1261
+ outputs: [
1262
+ {
1263
+ name: "",
1264
+ type: "uint256",
1265
+ internalType: "uint256",
1266
+ },
1267
+ ],
1268
+ stateMutability: "view",
1269
+ },
1270
+ {
1271
+ type: "function",
1272
+ name: "watermark",
1273
+ inputs: [],
1274
+ outputs: [
1275
+ {
1276
+ name: "",
1277
+ type: "uint128",
1278
+ internalType: "uint128",
1279
+ },
1280
+ ],
1281
+ stateMutability: "view",
1282
+ },
1283
+ {
1284
+ type: "event",
1285
+ name: "Approval",
1286
+ inputs: [
1287
+ {
1288
+ name: "owner",
1289
+ type: "address",
1290
+ indexed: true,
1291
+ internalType: "address",
1292
+ },
1293
+ {
1294
+ name: "spender",
1295
+ type: "address",
1296
+ indexed: true,
1297
+ internalType: "address",
1298
+ },
1299
+ {
1300
+ name: "value",
1301
+ type: "uint256",
1302
+ indexed: false,
1303
+ internalType: "uint256",
1304
+ },
1305
+ ],
1306
+ anonymous: false,
1307
+ },
1308
+ {
1309
+ type: "event",
1310
+ name: "ControllerUpdated",
1311
+ inputs: [
1312
+ {
1313
+ name: "newController",
1314
+ type: "address",
1315
+ indexed: false,
1316
+ internalType: "address",
1317
+ },
1318
+ ],
1319
+ anonymous: false,
1320
+ },
1321
+ {
1322
+ type: "event",
1323
+ name: "CooldownUpdated",
1324
+ inputs: [
1325
+ {
1326
+ name: "newCooldown",
1327
+ type: "uint32",
1328
+ indexed: false,
1329
+ internalType: "uint32",
1330
+ },
1331
+ ],
1332
+ anonymous: false,
1333
+ },
1334
+ {
1335
+ type: "event",
1336
+ name: "CursorUpdated",
1337
+ inputs: [
1338
+ {
1339
+ name: "account",
1340
+ type: "address",
1341
+ indexed: true,
1342
+ internalType: "address",
1343
+ },
1344
+ {
1345
+ name: "epoch",
1346
+ type: "uint256",
1347
+ indexed: true,
1348
+ internalType: "uint256",
1349
+ },
1350
+ {
1351
+ name: "cursorBefore",
1352
+ type: "tuple",
1353
+ indexed: false,
1354
+ internalType: "struct AccountCursor",
1355
+ components: [
1356
+ {
1357
+ name: "principal",
1358
+ type: "uint128",
1359
+ internalType: "uint128",
1360
+ },
1361
+ {
1362
+ name: "virtualBuffer",
1363
+ type: "uint104",
1364
+ internalType: "uint104",
1365
+ },
1366
+ {
1367
+ name: "epoch",
1368
+ type: "uint16",
1369
+ internalType: "uint16",
1370
+ },
1371
+ ],
1372
+ },
1373
+ {
1374
+ name: "cursorAfter",
1375
+ type: "tuple",
1376
+ indexed: false,
1377
+ internalType: "struct AccountCursor",
1378
+ components: [
1379
+ {
1380
+ name: "principal",
1381
+ type: "uint128",
1382
+ internalType: "uint128",
1383
+ },
1384
+ {
1385
+ name: "virtualBuffer",
1386
+ type: "uint104",
1387
+ internalType: "uint104",
1388
+ },
1389
+ {
1390
+ name: "epoch",
1391
+ type: "uint16",
1392
+ internalType: "uint16",
1393
+ },
1394
+ ],
1395
+ },
1396
+ {
1397
+ name: "newUnassignedVirtBuf",
1398
+ type: "uint128",
1399
+ indexed: false,
1400
+ internalType: "uint128",
1401
+ },
1402
+ {
1403
+ name: "newAssignedVirtBuf",
1404
+ type: "uint128",
1405
+ indexed: false,
1406
+ internalType: "uint128",
1407
+ },
1408
+ ],
1409
+ anonymous: false,
1410
+ },
1411
+ {
1412
+ type: "event",
1413
+ name: "Deposited",
1414
+ inputs: [
1415
+ {
1416
+ name: "account",
1417
+ type: "address",
1418
+ indexed: true,
1419
+ internalType: "address",
1420
+ },
1421
+ {
1422
+ name: "coin",
1423
+ type: "address",
1424
+ indexed: false,
1425
+ internalType: "contract IERC20",
1426
+ },
1427
+ {
1428
+ name: "shares",
1429
+ type: "uint256",
1430
+ indexed: false,
1431
+ internalType: "uint256",
1432
+ },
1433
+ {
1434
+ name: "principalAmountIn",
1435
+ type: "uint256",
1436
+ indexed: false,
1437
+ internalType: "uint256",
1438
+ },
1439
+ {
1440
+ name: "fee",
1441
+ type: "uint256",
1442
+ indexed: false,
1443
+ internalType: "uint256",
1444
+ },
1445
+ ],
1446
+ anonymous: false,
1447
+ },
1448
+ {
1449
+ type: "event",
1450
+ name: "EpochAdvanced",
1451
+ inputs: [
1452
+ {
1453
+ name: "epoch",
1454
+ type: "tuple",
1455
+ indexed: false,
1456
+ internalType: "struct Epoch",
1457
+ components: [
1458
+ {
1459
+ name: "watermark",
1460
+ type: "uint128",
1461
+ internalType: "uint128",
1462
+ },
1463
+ {
1464
+ name: "priceBefore",
1465
+ type: "uint128",
1466
+ internalType: "uint128",
1467
+ },
1468
+ ],
1469
+ },
1470
+ ],
1471
+ anonymous: false,
1472
+ },
1473
+ {
1474
+ type: "event",
1475
+ name: "FundClosed",
1476
+ inputs: [
1477
+ {
1478
+ name: "gracePeriodEnd",
1479
+ type: "uint48",
1480
+ indexed: false,
1481
+ internalType: "uint48",
1482
+ },
1483
+ ],
1484
+ anonymous: false,
1485
+ },
1486
+ {
1487
+ type: "event",
1488
+ name: "Initialized",
1489
+ inputs: [
1490
+ {
1491
+ name: "version",
1492
+ type: "uint64",
1493
+ indexed: false,
1494
+ internalType: "uint64",
1495
+ },
1496
+ ],
1497
+ anonymous: false,
1498
+ },
1499
+ {
1500
+ type: "event",
1501
+ name: "ManagementFeeClaimed",
1502
+ inputs: [
1503
+ {
1504
+ name: "timestamp",
1505
+ type: "uint48",
1506
+ indexed: false,
1507
+ internalType: "uint48",
1508
+ },
1509
+ ],
1510
+ anonymous: false,
1511
+ },
1512
+ {
1513
+ type: "event",
1514
+ name: "ManagerAddressUpdated",
1515
+ inputs: [
1516
+ {
1517
+ name: "newManagerAddress",
1518
+ type: "address",
1519
+ indexed: false,
1520
+ internalType: "address",
1521
+ },
1522
+ ],
1523
+ anonymous: false,
1524
+ },
1525
+ {
1526
+ type: "event",
1527
+ name: "ManagerProfitFeeUpdated",
1528
+ inputs: [
1529
+ {
1530
+ name: "newManagerProfitFeeBps",
1531
+ type: "uint16",
1532
+ indexed: false,
1533
+ internalType: "uint16",
1534
+ },
1535
+ ],
1536
+ anonymous: false,
1537
+ },
1538
+ {
1539
+ type: "event",
1540
+ name: "Transfer",
1541
+ inputs: [
1542
+ {
1543
+ name: "from",
1544
+ type: "address",
1545
+ indexed: true,
1546
+ internalType: "address",
1547
+ },
1548
+ {
1549
+ name: "to",
1550
+ type: "address",
1551
+ indexed: true,
1552
+ internalType: "address",
1553
+ },
1554
+ {
1555
+ name: "value",
1556
+ type: "uint256",
1557
+ indexed: false,
1558
+ internalType: "uint256",
1559
+ },
1560
+ ],
1561
+ anonymous: false,
1562
+ },
1563
+ {
1564
+ type: "event",
1565
+ name: "Withdrawn",
1566
+ inputs: [
1567
+ {
1568
+ name: "account",
1569
+ type: "address",
1570
+ indexed: true,
1571
+ internalType: "address",
1572
+ },
1573
+ {
1574
+ name: "coin",
1575
+ type: "address",
1576
+ indexed: false,
1577
+ internalType: "contract IERC20",
1578
+ },
1579
+ {
1580
+ name: "shares",
1581
+ type: "uint256",
1582
+ indexed: false,
1583
+ internalType: "uint256",
1584
+ },
1585
+ {
1586
+ name: "principalAmountOut",
1587
+ type: "uint256",
1588
+ indexed: false,
1589
+ internalType: "uint256",
1590
+ },
1591
+ {
1592
+ name: "bufferAmountOut",
1593
+ type: "uint256",
1594
+ indexed: false,
1595
+ internalType: "uint256",
1596
+ },
1597
+ {
1598
+ name: "netAmountOut",
1599
+ type: "uint256",
1600
+ indexed: false,
1601
+ internalType: "uint256",
1602
+ },
1603
+ {
1604
+ name: "managerFee",
1605
+ type: "uint256",
1606
+ indexed: false,
1607
+ internalType: "uint256",
1608
+ },
1609
+ {
1610
+ name: "referrerFee",
1611
+ type: "uint256",
1612
+ indexed: false,
1613
+ internalType: "uint256",
1614
+ },
1615
+ ],
1616
+ anonymous: false,
1617
+ },
1618
+ {
1619
+ type: "error",
1620
+ name: "ControllerDisabled",
1621
+ inputs: [],
1622
+ },
1623
+ {
1624
+ type: "error",
1625
+ name: "CooldownNotExpired",
1626
+ inputs: [
1627
+ {
1628
+ name: "availableBalance",
1629
+ type: "uint256",
1630
+ internalType: "uint256",
1631
+ },
1632
+ {
1633
+ name: "transferAmount",
1634
+ type: "uint256",
1635
+ internalType: "uint256",
1636
+ },
1637
+ ],
1638
+ },
1639
+ {
1640
+ type: "error",
1641
+ name: "ERC20InsufficientAllowance",
1642
+ inputs: [
1643
+ {
1644
+ name: "spender",
1645
+ type: "address",
1646
+ internalType: "address",
1647
+ },
1648
+ {
1649
+ name: "allowance",
1650
+ type: "uint256",
1651
+ internalType: "uint256",
1652
+ },
1653
+ {
1654
+ name: "needed",
1655
+ type: "uint256",
1656
+ internalType: "uint256",
1657
+ },
1658
+ ],
1659
+ },
1660
+ {
1661
+ type: "error",
1662
+ name: "ERC20InsufficientBalance",
1663
+ inputs: [
1664
+ {
1665
+ name: "sender",
1666
+ type: "address",
1667
+ internalType: "address",
1668
+ },
1669
+ {
1670
+ name: "balance",
1671
+ type: "uint256",
1672
+ internalType: "uint256",
1673
+ },
1674
+ {
1675
+ name: "needed",
1676
+ type: "uint256",
1677
+ internalType: "uint256",
1678
+ },
1679
+ ],
1680
+ },
1681
+ {
1682
+ type: "error",
1683
+ name: "ERC20InvalidApprover",
1684
+ inputs: [
1685
+ {
1686
+ name: "approver",
1687
+ type: "address",
1688
+ internalType: "address",
1689
+ },
1690
+ ],
1691
+ },
1692
+ {
1693
+ type: "error",
1694
+ name: "ERC20InvalidReceiver",
1695
+ inputs: [
1696
+ {
1697
+ name: "receiver",
1698
+ type: "address",
1699
+ internalType: "address",
1700
+ },
1701
+ ],
1702
+ },
1703
+ {
1704
+ type: "error",
1705
+ name: "ERC20InvalidSender",
1706
+ inputs: [
1707
+ {
1708
+ name: "sender",
1709
+ type: "address",
1710
+ internalType: "address",
1711
+ },
1712
+ ],
1713
+ },
1714
+ {
1715
+ type: "error",
1716
+ name: "ERC20InvalidSpender",
1717
+ inputs: [
1718
+ {
1719
+ name: "spender",
1720
+ type: "address",
1721
+ internalType: "address",
1722
+ },
1723
+ ],
1724
+ },
1725
+ {
1726
+ type: "error",
1727
+ name: "InvalidAddress",
1728
+ inputs: [],
1729
+ },
1730
+ {
1731
+ type: "error",
1732
+ name: "InvalidInitialization",
1733
+ inputs: [],
1734
+ },
1735
+ {
1736
+ type: "error",
1737
+ name: "InvalidVault",
1738
+ inputs: [],
1739
+ },
1740
+ {
1741
+ type: "error",
1742
+ name: "NotImplemented",
1743
+ inputs: [],
1744
+ },
1745
+ {
1746
+ type: "error",
1747
+ name: "NotInitializing",
1748
+ inputs: [],
1749
+ },
1750
+ {
1751
+ type: "error",
1752
+ name: "SafeCastOverflowedUintDowncast",
1753
+ inputs: [
1754
+ {
1755
+ name: "bits",
1756
+ type: "uint8",
1757
+ internalType: "uint8",
1758
+ },
1759
+ {
1760
+ name: "value",
1761
+ type: "uint256",
1762
+ internalType: "uint256",
1763
+ },
1764
+ ],
1765
+ },
1766
+ {
1767
+ type: "error",
1768
+ name: "SafeCastOverflowedUintToInt",
1769
+ inputs: [
1770
+ {
1771
+ name: "value",
1772
+ type: "uint256",
1773
+ internalType: "uint256",
1774
+ },
1775
+ ],
1776
+ },
1777
+ {
1778
+ type: "error",
1779
+ name: "Unauthorized",
1780
+ inputs: [],
1781
+ },
1782
+ ];
1783
+ export class LedgerRegistrar__factory {
1784
+ static abi = _abi;
1785
+ static createInterface() {
1786
+ return new Interface(_abi);
1787
+ }
1788
+ static connect(address, runner) {
1789
+ return new Contract(address, _abi, runner);
1790
+ }
1791
+ }