@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,107 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { Controllable, ControllableInterface } from "../../../out/Control.sol/Controllable";
3
+ export declare class Controllable__factory {
4
+ static readonly abi: readonly [{
5
+ readonly type: "function";
6
+ readonly name: "controller";
7
+ readonly inputs: readonly [];
8
+ readonly outputs: readonly [{
9
+ readonly name: "";
10
+ readonly type: "address";
11
+ readonly internalType: "address";
12
+ }];
13
+ readonly stateMutability: "view";
14
+ }, {
15
+ readonly type: "function";
16
+ readonly name: "manager";
17
+ readonly inputs: readonly [];
18
+ readonly outputs: readonly [{
19
+ readonly name: "";
20
+ readonly type: "address";
21
+ readonly internalType: "address";
22
+ }];
23
+ readonly stateMutability: "view";
24
+ }, {
25
+ readonly type: "function";
26
+ readonly name: "protocol";
27
+ readonly inputs: readonly [];
28
+ readonly outputs: readonly [{
29
+ readonly name: "";
30
+ readonly type: "address";
31
+ readonly internalType: "contract Protocol";
32
+ }];
33
+ readonly stateMutability: "view";
34
+ }, {
35
+ readonly type: "function";
36
+ readonly name: "updateController";
37
+ readonly inputs: readonly [{
38
+ readonly name: "newController";
39
+ readonly type: "address";
40
+ readonly internalType: "address";
41
+ }];
42
+ readonly outputs: readonly [];
43
+ readonly stateMutability: "nonpayable";
44
+ }, {
45
+ readonly type: "function";
46
+ readonly name: "updateManagerAddress";
47
+ readonly inputs: readonly [{
48
+ readonly name: "newManagerAddress";
49
+ readonly type: "address";
50
+ readonly internalType: "address";
51
+ }];
52
+ readonly outputs: readonly [];
53
+ readonly stateMutability: "nonpayable";
54
+ }, {
55
+ readonly type: "event";
56
+ readonly name: "ControllerUpdated";
57
+ readonly inputs: readonly [{
58
+ readonly name: "newController";
59
+ readonly type: "address";
60
+ readonly indexed: false;
61
+ readonly internalType: "address";
62
+ }];
63
+ readonly anonymous: false;
64
+ }, {
65
+ readonly type: "event";
66
+ readonly name: "Initialized";
67
+ readonly inputs: readonly [{
68
+ readonly name: "version";
69
+ readonly type: "uint64";
70
+ readonly indexed: false;
71
+ readonly internalType: "uint64";
72
+ }];
73
+ readonly anonymous: false;
74
+ }, {
75
+ readonly type: "event";
76
+ readonly name: "ManagerAddressUpdated";
77
+ readonly inputs: readonly [{
78
+ readonly name: "newManagerAddress";
79
+ readonly type: "address";
80
+ readonly indexed: false;
81
+ readonly internalType: "address";
82
+ }];
83
+ readonly anonymous: false;
84
+ }, {
85
+ readonly type: "error";
86
+ readonly name: "ControllerDisabled";
87
+ readonly inputs: readonly [];
88
+ }, {
89
+ readonly type: "error";
90
+ readonly name: "InvalidAddress";
91
+ readonly inputs: readonly [];
92
+ }, {
93
+ readonly type: "error";
94
+ readonly name: "InvalidInitialization";
95
+ readonly inputs: readonly [];
96
+ }, {
97
+ readonly type: "error";
98
+ readonly name: "NotInitializing";
99
+ readonly inputs: readonly [];
100
+ }, {
101
+ readonly type: "error";
102
+ readonly name: "Unauthorized";
103
+ readonly inputs: readonly [];
104
+ }];
105
+ static createInterface(): ControllableInterface;
106
+ static connect(address: string, runner?: ContractRunner | null): Controllable;
107
+ }
@@ -0,0 +1,141 @@
1
+ import { Contract, Interface } from "ethers";
2
+ const _abi = [
3
+ {
4
+ type: "function",
5
+ name: "controller",
6
+ inputs: [],
7
+ outputs: [
8
+ {
9
+ name: "",
10
+ type: "address",
11
+ internalType: "address",
12
+ },
13
+ ],
14
+ stateMutability: "view",
15
+ },
16
+ {
17
+ type: "function",
18
+ name: "manager",
19
+ inputs: [],
20
+ outputs: [
21
+ {
22
+ name: "",
23
+ type: "address",
24
+ internalType: "address",
25
+ },
26
+ ],
27
+ stateMutability: "view",
28
+ },
29
+ {
30
+ type: "function",
31
+ name: "protocol",
32
+ inputs: [],
33
+ outputs: [
34
+ {
35
+ name: "",
36
+ type: "address",
37
+ internalType: "contract Protocol",
38
+ },
39
+ ],
40
+ stateMutability: "view",
41
+ },
42
+ {
43
+ type: "function",
44
+ name: "updateController",
45
+ inputs: [
46
+ {
47
+ name: "newController",
48
+ type: "address",
49
+ internalType: "address",
50
+ },
51
+ ],
52
+ outputs: [],
53
+ stateMutability: "nonpayable",
54
+ },
55
+ {
56
+ type: "function",
57
+ name: "updateManagerAddress",
58
+ inputs: [
59
+ {
60
+ name: "newManagerAddress",
61
+ type: "address",
62
+ internalType: "address",
63
+ },
64
+ ],
65
+ outputs: [],
66
+ stateMutability: "nonpayable",
67
+ },
68
+ {
69
+ type: "event",
70
+ name: "ControllerUpdated",
71
+ inputs: [
72
+ {
73
+ name: "newController",
74
+ type: "address",
75
+ indexed: false,
76
+ internalType: "address",
77
+ },
78
+ ],
79
+ anonymous: false,
80
+ },
81
+ {
82
+ type: "event",
83
+ name: "Initialized",
84
+ inputs: [
85
+ {
86
+ name: "version",
87
+ type: "uint64",
88
+ indexed: false,
89
+ internalType: "uint64",
90
+ },
91
+ ],
92
+ anonymous: false,
93
+ },
94
+ {
95
+ type: "event",
96
+ name: "ManagerAddressUpdated",
97
+ inputs: [
98
+ {
99
+ name: "newManagerAddress",
100
+ type: "address",
101
+ indexed: false,
102
+ internalType: "address",
103
+ },
104
+ ],
105
+ anonymous: false,
106
+ },
107
+ {
108
+ type: "error",
109
+ name: "ControllerDisabled",
110
+ inputs: [],
111
+ },
112
+ {
113
+ type: "error",
114
+ name: "InvalidAddress",
115
+ inputs: [],
116
+ },
117
+ {
118
+ type: "error",
119
+ name: "InvalidInitialization",
120
+ inputs: [],
121
+ },
122
+ {
123
+ type: "error",
124
+ name: "NotInitializing",
125
+ inputs: [],
126
+ },
127
+ {
128
+ type: "error",
129
+ name: "Unauthorized",
130
+ inputs: [],
131
+ },
132
+ ];
133
+ export class Controllable__factory {
134
+ static abi = _abi;
135
+ static createInterface() {
136
+ return new Interface(_abi);
137
+ }
138
+ static connect(address, runner) {
139
+ return new Contract(address, _abi, runner);
140
+ }
141
+ }
@@ -0,0 +1,21 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { Controller, ControllerInterface } from "../../../out/Control.sol/Controller";
3
+ export declare class Controller__factory {
4
+ static readonly abi: readonly [{
5
+ readonly type: "function";
6
+ readonly name: "protocol";
7
+ readonly inputs: readonly [];
8
+ readonly outputs: readonly [{
9
+ readonly name: "";
10
+ readonly type: "address";
11
+ readonly internalType: "contract Protocol";
12
+ }];
13
+ readonly stateMutability: "view";
14
+ }, {
15
+ readonly type: "error";
16
+ readonly name: "InvalidAddress";
17
+ readonly inputs: readonly [];
18
+ }];
19
+ static createInterface(): ControllerInterface;
20
+ static connect(address: string, runner?: ContractRunner | null): Controller;
21
+ }
@@ -0,0 +1,30 @@
1
+ import { Contract, Interface } from "ethers";
2
+ const _abi = [
3
+ {
4
+ type: "function",
5
+ name: "protocol",
6
+ inputs: [],
7
+ outputs: [
8
+ {
9
+ name: "",
10
+ type: "address",
11
+ internalType: "contract Protocol",
12
+ },
13
+ ],
14
+ stateMutability: "view",
15
+ },
16
+ {
17
+ type: "error",
18
+ name: "InvalidAddress",
19
+ inputs: [],
20
+ },
21
+ ];
22
+ export class Controller__factory {
23
+ static abi = _abi;
24
+ static createInterface() {
25
+ return new Interface(_abi);
26
+ }
27
+ static connect(address, runner) {
28
+ return new Contract(address, _abi, runner);
29
+ }
30
+ }
@@ -0,0 +1,2 @@
1
+ export { Controllable__factory } from "./Controllable__factory";
2
+ export { Controller__factory } from "./Controller__factory";
@@ -0,0 +1,2 @@
1
+ export { Controllable__factory } from "./Controllable__factory.js";
2
+ export { Controller__factory } from "./Controller__factory.js";
@@ -0,0 +1,57 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { ClosureDelegate, ClosureDelegateInterface } from "../../../out/Controller.sol/ClosureDelegate";
3
+ export declare class ClosureDelegate__factory {
4
+ static readonly abi: readonly [{
5
+ readonly type: "function";
6
+ readonly name: "closeFund";
7
+ readonly inputs: readonly [{
8
+ readonly name: "";
9
+ readonly type: "tuple";
10
+ readonly internalType: "struct Closing";
11
+ readonly components: readonly [{
12
+ readonly name: "ledger";
13
+ readonly type: "address";
14
+ readonly internalType: "contract FundLedger";
15
+ }, {
16
+ readonly name: "coin";
17
+ readonly type: "address";
18
+ readonly internalType: "contract IERC20";
19
+ }, {
20
+ readonly name: "extCalls";
21
+ readonly type: "tuple[]";
22
+ readonly internalType: "struct ExternalCall[]";
23
+ readonly components: readonly [{
24
+ readonly name: "adapter";
25
+ readonly type: "address";
26
+ readonly internalType: "address";
27
+ }, {
28
+ readonly name: "callData";
29
+ readonly type: "bytes";
30
+ readonly internalType: "bytes";
31
+ }];
32
+ }];
33
+ }];
34
+ readonly outputs: readonly [];
35
+ readonly stateMutability: "nonpayable";
36
+ }, {
37
+ readonly type: "function";
38
+ readonly name: "collectRelinquishedCoins";
39
+ readonly inputs: readonly [{
40
+ readonly name: "";
41
+ readonly type: "address";
42
+ readonly internalType: "contract FundLedger";
43
+ }, {
44
+ readonly name: "";
45
+ readonly type: "address";
46
+ readonly internalType: "contract IERC20";
47
+ }];
48
+ readonly outputs: readonly [];
49
+ readonly stateMutability: "nonpayable";
50
+ }, {
51
+ readonly type: "error";
52
+ readonly name: "InvalidAddress";
53
+ readonly inputs: readonly [];
54
+ }];
55
+ static createInterface(): ClosureDelegateInterface;
56
+ static connect(address: string, runner?: ContractRunner | null): ClosureDelegate;
57
+ }
@@ -0,0 +1,77 @@
1
+ import { Contract, Interface } from "ethers";
2
+ const _abi = [
3
+ {
4
+ type: "function",
5
+ name: "closeFund",
6
+ inputs: [
7
+ {
8
+ name: "",
9
+ type: "tuple",
10
+ internalType: "struct Closing",
11
+ components: [
12
+ {
13
+ name: "ledger",
14
+ type: "address",
15
+ internalType: "contract FundLedger",
16
+ },
17
+ {
18
+ name: "coin",
19
+ type: "address",
20
+ internalType: "contract IERC20",
21
+ },
22
+ {
23
+ name: "extCalls",
24
+ type: "tuple[]",
25
+ internalType: "struct ExternalCall[]",
26
+ components: [
27
+ {
28
+ name: "adapter",
29
+ type: "address",
30
+ internalType: "address",
31
+ },
32
+ {
33
+ name: "callData",
34
+ type: "bytes",
35
+ internalType: "bytes",
36
+ },
37
+ ],
38
+ },
39
+ ],
40
+ },
41
+ ],
42
+ outputs: [],
43
+ stateMutability: "nonpayable",
44
+ },
45
+ {
46
+ type: "function",
47
+ name: "collectRelinquishedCoins",
48
+ inputs: [
49
+ {
50
+ name: "",
51
+ type: "address",
52
+ internalType: "contract FundLedger",
53
+ },
54
+ {
55
+ name: "",
56
+ type: "address",
57
+ internalType: "contract IERC20",
58
+ },
59
+ ],
60
+ outputs: [],
61
+ stateMutability: "nonpayable",
62
+ },
63
+ {
64
+ type: "error",
65
+ name: "InvalidAddress",
66
+ inputs: [],
67
+ },
68
+ ];
69
+ export class ClosureDelegate__factory {
70
+ static abi = _abi;
71
+ static createInterface() {
72
+ return new Interface(_abi);
73
+ }
74
+ static connect(address, runner) {
75
+ return new Contract(address, _abi, runner);
76
+ }
77
+ }
@@ -0,0 +1,58 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { CreationDelegate, CreationDelegateInterface } from "../../../out/Controller.sol/CreationDelegate";
3
+ export declare class CreationDelegate__factory {
4
+ static readonly abi: readonly [{
5
+ readonly type: "function";
6
+ readonly name: "createFund";
7
+ readonly inputs: readonly [{
8
+ readonly name: "";
9
+ readonly type: "tuple";
10
+ readonly internalType: "struct FundCreation";
11
+ readonly components: readonly [{
12
+ readonly name: "referrer";
13
+ readonly type: "address";
14
+ readonly internalType: "address";
15
+ }, {
16
+ readonly name: "name";
17
+ readonly type: "string";
18
+ readonly internalType: "string";
19
+ }, {
20
+ readonly name: "symbol";
21
+ readonly type: "string";
22
+ readonly internalType: "string";
23
+ }, {
24
+ readonly name: "coin";
25
+ readonly type: "address";
26
+ readonly internalType: "contract IERC20";
27
+ }, {
28
+ readonly name: "initialDepositAmount";
29
+ readonly type: "uint256";
30
+ readonly internalType: "uint256";
31
+ }, {
32
+ readonly name: "minDepositUsd";
33
+ readonly type: "uint96";
34
+ readonly internalType: "uint96";
35
+ }, {
36
+ readonly name: "cooldownTime";
37
+ readonly type: "uint32";
38
+ readonly internalType: "uint32";
39
+ }, {
40
+ readonly name: "managerProfitFeeBps";
41
+ readonly type: "uint16";
42
+ readonly internalType: "uint16";
43
+ }, {
44
+ readonly name: "managerManagementFeeBps";
45
+ readonly type: "uint16";
46
+ readonly internalType: "uint16";
47
+ }];
48
+ }];
49
+ readonly outputs: readonly [];
50
+ readonly stateMutability: "nonpayable";
51
+ }, {
52
+ readonly type: "error";
53
+ readonly name: "InvalidAddress";
54
+ readonly inputs: readonly [];
55
+ }];
56
+ static createInterface(): CreationDelegateInterface;
57
+ static connect(address: string, runner?: ContractRunner | null): CreationDelegate;
58
+ }
@@ -0,0 +1,77 @@
1
+ import { Contract, Interface } from "ethers";
2
+ const _abi = [
3
+ {
4
+ type: "function",
5
+ name: "createFund",
6
+ inputs: [
7
+ {
8
+ name: "",
9
+ type: "tuple",
10
+ internalType: "struct FundCreation",
11
+ components: [
12
+ {
13
+ name: "referrer",
14
+ type: "address",
15
+ internalType: "address",
16
+ },
17
+ {
18
+ name: "name",
19
+ type: "string",
20
+ internalType: "string",
21
+ },
22
+ {
23
+ name: "symbol",
24
+ type: "string",
25
+ internalType: "string",
26
+ },
27
+ {
28
+ name: "coin",
29
+ type: "address",
30
+ internalType: "contract IERC20",
31
+ },
32
+ {
33
+ name: "initialDepositAmount",
34
+ type: "uint256",
35
+ internalType: "uint256",
36
+ },
37
+ {
38
+ name: "minDepositUsd",
39
+ type: "uint96",
40
+ internalType: "uint96",
41
+ },
42
+ {
43
+ name: "cooldownTime",
44
+ type: "uint32",
45
+ internalType: "uint32",
46
+ },
47
+ {
48
+ name: "managerProfitFeeBps",
49
+ type: "uint16",
50
+ internalType: "uint16",
51
+ },
52
+ {
53
+ name: "managerManagementFeeBps",
54
+ type: "uint16",
55
+ internalType: "uint16",
56
+ },
57
+ ],
58
+ },
59
+ ],
60
+ outputs: [],
61
+ stateMutability: "nonpayable",
62
+ },
63
+ {
64
+ type: "error",
65
+ name: "InvalidAddress",
66
+ inputs: [],
67
+ },
68
+ ];
69
+ export class CreationDelegate__factory {
70
+ static abi = _abi;
71
+ static createInterface() {
72
+ return new Interface(_abi);
73
+ }
74
+ static connect(address, runner) {
75
+ return new Contract(address, _abi, runner);
76
+ }
77
+ }
@@ -0,0 +1,55 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { DepositDelegate, DepositDelegateInterface } from "../../../out/Controller.sol/DepositDelegate";
3
+ export declare class DepositDelegate__factory {
4
+ static readonly abi: readonly [{
5
+ readonly type: "function";
6
+ readonly name: "deposit";
7
+ readonly inputs: readonly [{
8
+ readonly name: "";
9
+ readonly type: "tuple";
10
+ readonly internalType: "struct Deposit";
11
+ readonly components: readonly [{
12
+ readonly name: "ledger";
13
+ readonly type: "address";
14
+ readonly internalType: "contract FundLedger";
15
+ }, {
16
+ readonly name: "coin";
17
+ readonly type: "address";
18
+ readonly internalType: "contract IERC20";
19
+ }, {
20
+ readonly name: "amount";
21
+ readonly type: "uint256";
22
+ readonly internalType: "uint256";
23
+ }, {
24
+ readonly name: "extCalls";
25
+ readonly type: "tuple[]";
26
+ readonly internalType: "struct ExternalCall[]";
27
+ readonly components: readonly [{
28
+ readonly name: "adapter";
29
+ readonly type: "address";
30
+ readonly internalType: "address";
31
+ }, {
32
+ readonly name: "callData";
33
+ readonly type: "bytes";
34
+ readonly internalType: "bytes";
35
+ }];
36
+ }, {
37
+ readonly name: "sharesOutMin";
38
+ readonly type: "uint256";
39
+ readonly internalType: "uint256";
40
+ }, {
41
+ readonly name: "referrerFeeBps";
42
+ readonly type: "uint16";
43
+ readonly internalType: "uint16";
44
+ }];
45
+ }];
46
+ readonly outputs: readonly [];
47
+ readonly stateMutability: "nonpayable";
48
+ }, {
49
+ readonly type: "error";
50
+ readonly name: "InvalidAddress";
51
+ readonly inputs: readonly [];
52
+ }];
53
+ static createInterface(): DepositDelegateInterface;
54
+ static connect(address: string, runner?: ContractRunner | null): DepositDelegate;
55
+ }