@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.
- package/LICENSE +21 -0
- package/README.md +226 -0
- package/dist/GuruProtocol.d.ts +44 -0
- package/dist/GuruProtocol.js +75 -0
- package/dist/addresses.d.ts +40 -0
- package/dist/addresses.js +111 -0
- package/dist/constants.d.ts +22 -0
- package/dist/constants.js +23 -0
- package/dist/helpers/FundDataFetcher.d.ts +24 -0
- package/dist/helpers/FundDataFetcher.js +66 -0
- package/dist/helpers/ReceiptParser.d.ts +23 -0
- package/dist/helpers/ReceiptParser.js +59 -0
- package/dist/helpers/Token.d.ts +18 -0
- package/dist/helpers/Token.js +43 -0
- package/dist/helpers/compareAddresses.d.ts +1 -0
- package/dist/helpers/compareAddresses.js +15 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +3 -0
- package/dist/quotes/quoteDeposit.d.ts +41 -0
- package/dist/quotes/quoteDeposit.js +186 -0
- package/dist/quotes/quoteHarvest.d.ts +34 -0
- package/dist/quotes/quoteHarvest.js +105 -0
- package/dist/quotes/quoteRebalance.d.ts +51 -0
- package/dist/quotes/quoteRebalance.js +201 -0
- package/dist/quotes/quoteTrade.d.ts +18 -0
- package/dist/quotes/quoteTrade.js +51 -0
- package/dist/quotes/quoteWithdrawal.d.ts +41 -0
- package/dist/quotes/quoteWithdrawal.js +113 -0
- package/dist/router/constants.d.ts +18 -0
- package/dist/router/constants.js +25 -0
- package/dist/router/finalizeRoute.d.ts +16 -0
- package/dist/router/finalizeRoute.js +29 -0
- package/dist/router/getFallbackRoutes.d.ts +10 -0
- package/dist/router/getFallbackRoutes.js +91 -0
- package/dist/router/getUniswapV4Route.d.ts +42 -0
- package/dist/router/getUniswapV4Route.js +324 -0
- package/dist/router/getVeloraRoute.d.ts +10 -0
- package/dist/router/getVeloraRoute.js +68 -0
- package/dist/router/helpers.d.ts +11 -0
- package/dist/router/helpers.js +30 -0
- package/dist/router/index.d.ts +22 -0
- package/dist/router/index.js +135 -0
- package/dist/router/pathCache.d.ts +16 -0
- package/dist/router/pathCache.js +116 -0
- package/dist/router/poolHelper.d.ts +126 -0
- package/dist/router/poolHelper.js +807 -0
- package/dist/router/quoteWethTrade.d.ts +14 -0
- package/dist/router/quoteWethTrade.js +125 -0
- package/dist/router/simulation.d.ts +43 -0
- package/dist/router/simulation.js +70 -0
- package/dist/router/types.d.ts +149 -0
- package/dist/router/types.js +1 -0
- package/dist/router/v4PoolDiscovery.d.ts +30 -0
- package/dist/router/v4PoolDiscovery.js +147 -0
- package/dist/router/velora.d.ts +42 -0
- package/dist/router/velora.js +279 -0
- package/dist/schemas/index.d.ts +6 -0
- package/dist/schemas/index.js +6 -0
- package/dist/schemas/primitives.d.ts +3 -0
- package/dist/schemas/primitives.js +9 -0
- package/dist/schemas/quoteDeposit.d.ts +23 -0
- package/dist/schemas/quoteDeposit.js +10 -0
- package/dist/schemas/quoteHarvest.d.ts +17 -0
- package/dist/schemas/quoteHarvest.js +8 -0
- package/dist/schemas/quoteRebalance.d.ts +29 -0
- package/dist/schemas/quoteRebalance.js +10 -0
- package/dist/schemas/quoteTrade.d.ts +20 -0
- package/dist/schemas/quoteTrade.js +9 -0
- package/dist/schemas/quoteWithdrawal.d.ts +23 -0
- package/dist/schemas/quoteWithdrawal.js +10 -0
- package/dist/txBuilders/buildDepositTx.d.ts +17 -0
- package/dist/txBuilders/buildDepositTx.js +18 -0
- package/dist/txBuilders/buildHarvestTx.d.ts +16 -0
- package/dist/txBuilders/buildHarvestTx.js +17 -0
- package/dist/txBuilders/buildTradeTx.d.ts +9 -0
- package/dist/txBuilders/buildTradeTx.js +9 -0
- package/dist/txBuilders/buildWithdrawTx.d.ts +16 -0
- package/dist/txBuilders/buildWithdrawTx.js +17 -0
- package/dist/txBuilders/index.d.ts +8 -0
- package/dist/txBuilders/index.js +4 -0
- package/dist/typechain/common.d.ts +50 -0
- package/dist/typechain/common.js +1 -0
- package/dist/typechain/factories/include/IPancakeQuoterV2__factory.d.ts +225 -0
- package/dist/typechain/factories/include/IPancakeQuoterV2__factory.js +295 -0
- package/dist/typechain/factories/include/ISwapRouter02__factory.d.ts +826 -0
- package/dist/typechain/factories/include/ISwapRouter02__factory.js +1073 -0
- package/dist/typechain/factories/include/index.d.ts +2 -0
- package/dist/typechain/factories/include/index.js +2 -0
- package/dist/typechain/factories/index.d.ts +2 -0
- package/dist/typechain/factories/index.js +2 -0
- package/dist/typechain/factories/out/Adapter__factory.d.ts +31 -0
- package/dist/typechain/factories/out/Adapter__factory.js +43 -0
- package/dist/typechain/factories/out/AerodromeV2Adapter__factory.d.ts +179 -0
- package/dist/typechain/factories/out/AerodromeV2Adapter__factory.js +237 -0
- package/dist/typechain/factories/out/AerodromeV3Adapter__factory.d.ts +162 -0
- package/dist/typechain/factories/out/AerodromeV3Adapter__factory.js +215 -0
- package/dist/typechain/factories/out/AssetManager.sol/LedgerAssetManager__factory.d.ts +1032 -0
- package/dist/typechain/factories/out/AssetManager.sol/LedgerAssetManager__factory.js +1357 -0
- package/dist/typechain/factories/out/AssetManager.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/AssetManager.sol/index.js +1 -0
- package/dist/typechain/factories/out/Bookkeeper.sol/LedgerBookkeeper__factory.d.ts +950 -0
- package/dist/typechain/factories/out/Bookkeeper.sol/LedgerBookkeeper__factory.js +1250 -0
- package/dist/typechain/factories/out/Bookkeeper.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Bookkeeper.sol/index.js +1 -0
- package/dist/typechain/factories/out/Checkpoint.sol/CheckpointController__factory.d.ts +33 -0
- package/dist/typechain/factories/out/Checkpoint.sol/CheckpointController__factory.js +47 -0
- package/dist/typechain/factories/out/Checkpoint.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Checkpoint.sol/index.js +1 -0
- package/dist/typechain/factories/out/Closure.sol/ClosureController__factory.d.ts +459 -0
- package/dist/typechain/factories/out/Closure.sol/ClosureController__factory.js +603 -0
- package/dist/typechain/factories/out/Closure.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Closure.sol/index.js +1 -0
- package/dist/typechain/factories/out/ContextBuilder__factory.d.ts +671 -0
- package/dist/typechain/factories/out/ContextBuilder__factory.js +870 -0
- package/dist/typechain/factories/out/Control.sol/Controllable__factory.d.ts +107 -0
- package/dist/typechain/factories/out/Control.sol/Controllable__factory.js +141 -0
- package/dist/typechain/factories/out/Control.sol/Controller__factory.d.ts +21 -0
- package/dist/typechain/factories/out/Control.sol/Controller__factory.js +30 -0
- package/dist/typechain/factories/out/Control.sol/index.d.ts +2 -0
- package/dist/typechain/factories/out/Control.sol/index.js +2 -0
- package/dist/typechain/factories/out/Controller.sol/ClosureDelegate__factory.d.ts +57 -0
- package/dist/typechain/factories/out/Controller.sol/ClosureDelegate__factory.js +77 -0
- package/dist/typechain/factories/out/Controller.sol/CreationDelegate__factory.d.ts +58 -0
- package/dist/typechain/factories/out/Controller.sol/CreationDelegate__factory.js +77 -0
- package/dist/typechain/factories/out/Controller.sol/DepositDelegate__factory.d.ts +55 -0
- package/dist/typechain/factories/out/Controller.sol/DepositDelegate__factory.js +74 -0
- package/dist/typechain/factories/out/Controller.sol/FundController__factory.d.ts +703 -0
- package/dist/typechain/factories/out/Controller.sol/FundController__factory.js +911 -0
- package/dist/typechain/factories/out/Controller.sol/HarvestDelegate__factory.d.ts +234 -0
- package/dist/typechain/factories/out/Controller.sol/HarvestDelegate__factory.js +303 -0
- package/dist/typechain/factories/out/Controller.sol/TradeDelegate__factory.d.ts +61 -0
- package/dist/typechain/factories/out/Controller.sol/TradeDelegate__factory.js +81 -0
- package/dist/typechain/factories/out/Controller.sol/TransferDelegate__factory.d.ts +29 -0
- package/dist/typechain/factories/out/Controller.sol/TransferDelegate__factory.js +40 -0
- package/dist/typechain/factories/out/Controller.sol/WithdrawalDelegate__factory.d.ts +51 -0
- package/dist/typechain/factories/out/Controller.sol/WithdrawalDelegate__factory.js +69 -0
- package/dist/typechain/factories/out/Controller.sol/index.d.ts +8 -0
- package/dist/typechain/factories/out/Controller.sol/index.js +8 -0
- package/dist/typechain/factories/out/Cooldown.sol/LedgerCooldown__factory.d.ts +747 -0
- package/dist/typechain/factories/out/Cooldown.sol/LedgerCooldown__factory.js +982 -0
- package/dist/typechain/factories/out/Cooldown.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Cooldown.sol/index.js +1 -0
- package/dist/typechain/factories/out/Creation.sol/CreationController__factory.d.ts +172 -0
- package/dist/typechain/factories/out/Creation.sol/CreationController__factory.js +225 -0
- package/dist/typechain/factories/out/Creation.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Creation.sol/index.js +1 -0
- package/dist/typechain/factories/out/Deposit.sol/DepositController__factory.d.ts +162 -0
- package/dist/typechain/factories/out/Deposit.sol/DepositController__factory.js +223 -0
- package/dist/typechain/factories/out/Deposit.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Deposit.sol/index.js +1 -0
- package/dist/typechain/factories/out/Error__factory.d.ts +318 -0
- package/dist/typechain/factories/out/Error__factory.js +423 -0
- package/dist/typechain/factories/out/Harvest.sol/HarvestController__factory.d.ts +401 -0
- package/dist/typechain/factories/out/Harvest.sol/HarvestController__factory.js +527 -0
- package/dist/typechain/factories/out/Harvest.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Harvest.sol/index.js +1 -0
- package/dist/typechain/factories/out/IAerodromeRouter__factory.d.ts +85 -0
- package/dist/typechain/factories/out/IAerodromeRouter__factory.js +113 -0
- package/dist/typechain/factories/out/IAerodromeSwapRouter__factory.d.ts +89 -0
- package/dist/typechain/factories/out/IAerodromeSwapRouter__factory.js +119 -0
- package/dist/typechain/factories/out/IUniswapV4.sol/IPermit2__factory.d.ts +29 -0
- package/dist/typechain/factories/out/IUniswapV4.sol/IPermit2__factory.js +40 -0
- package/dist/typechain/factories/out/IUniswapV4.sol/IUniversalRouter__factory.d.ts +25 -0
- package/dist/typechain/factories/out/IUniswapV4.sol/IUniversalRouter__factory.js +35 -0
- package/dist/typechain/factories/out/IUniswapV4.sol/index.d.ts +2 -0
- package/dist/typechain/factories/out/IUniswapV4.sol/index.js +2 -0
- package/dist/typechain/factories/out/IV0Fund__factory.d.ts +129 -0
- package/dist/typechain/factories/out/IV0Fund__factory.js +173 -0
- package/dist/typechain/factories/out/IV3SwapRouter__factory.d.ts +38 -0
- package/dist/typechain/factories/out/IV3SwapRouter__factory.js +53 -0
- package/dist/typechain/factories/out/Initializer.sol/LedgerInitializer__factory.d.ts +655 -0
- package/dist/typechain/factories/out/Initializer.sol/LedgerInitializer__factory.js +859 -0
- package/dist/typechain/factories/out/Initializer.sol/VaultInitializer__factory.d.ts +141 -0
- package/dist/typechain/factories/out/Initializer.sol/VaultInitializer__factory.js +185 -0
- package/dist/typechain/factories/out/Initializer.sol/index.d.ts +2 -0
- package/dist/typechain/factories/out/Initializer.sol/index.js +2 -0
- package/dist/typechain/factories/out/Ledger.sol/FundLedger__factory.d.ts +1502 -0
- package/dist/typechain/factories/out/Ledger.sol/FundLedger__factory.js +1959 -0
- package/dist/typechain/factories/out/Ledger.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Ledger.sol/index.js +1 -0
- package/dist/typechain/factories/out/LotusP2P__factory.d.ts +847 -0
- package/dist/typechain/factories/out/LotusP2P__factory.js +1095 -0
- package/dist/typechain/factories/out/MulticallStatic__factory.d.ts +29 -0
- package/dist/typechain/factories/out/MulticallStatic__factory.js +42 -0
- package/dist/typechain/factories/out/Operator.sol/VaultOperator__factory.d.ts +235 -0
- package/dist/typechain/factories/out/Operator.sol/VaultOperator__factory.js +308 -0
- package/dist/typechain/factories/out/Operator.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Operator.sol/index.js +1 -0
- package/dist/typechain/factories/out/P2PAdapter__factory.d.ts +216 -0
- package/dist/typechain/factories/out/P2PAdapter__factory.js +287 -0
- package/dist/typechain/factories/out/ProtocolMigrationExtension__factory.d.ts +1084 -0
- package/dist/typechain/factories/out/ProtocolMigrationExtension__factory.js +1409 -0
- package/dist/typechain/factories/out/ProtocolProvider__factory.d.ts +21 -0
- package/dist/typechain/factories/out/ProtocolProvider__factory.js +30 -0
- package/dist/typechain/factories/out/Protocol__factory.d.ts +1095 -0
- package/dist/typechain/factories/out/Protocol__factory.js +1424 -0
- package/dist/typechain/factories/out/Registrar.sol/LedgerRegistrar__factory.d.ts +1375 -0
- package/dist/typechain/factories/out/Registrar.sol/LedgerRegistrar__factory.js +1791 -0
- package/dist/typechain/factories/out/Registrar.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Registrar.sol/index.js +1 -0
- package/dist/typechain/factories/out/Settings.sol/SettingsController__factory.d.ts +143 -0
- package/dist/typechain/factories/out/Settings.sol/SettingsController__factory.js +188 -0
- package/dist/typechain/factories/out/Settings.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Settings.sol/index.js +1 -0
- package/dist/typechain/factories/out/Shares.sol/ICheckpointController__factory.d.ts +21 -0
- package/dist/typechain/factories/out/Shares.sol/ICheckpointController__factory.js +31 -0
- package/dist/typechain/factories/out/Shares.sol/ITransferController__factory.d.ts +25 -0
- package/dist/typechain/factories/out/Shares.sol/ITransferController__factory.js +35 -0
- package/dist/typechain/factories/out/Shares.sol/LedgerShares__factory.d.ts +829 -0
- package/dist/typechain/factories/out/Shares.sol/LedgerShares__factory.js +1089 -0
- package/dist/typechain/factories/out/Shares.sol/index.d.ts +3 -0
- package/dist/typechain/factories/out/Shares.sol/index.js +3 -0
- package/dist/typechain/factories/out/SignatureVerifier__factory.d.ts +171 -0
- package/dist/typechain/factories/out/SignatureVerifier__factory.js +224 -0
- package/dist/typechain/factories/out/Storage.sol/LedgerStorage__factory.d.ts +527 -0
- package/dist/typechain/factories/out/Storage.sol/LedgerStorage__factory.js +695 -0
- package/dist/typechain/factories/out/Storage.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Storage.sol/index.js +1 -0
- package/dist/typechain/factories/out/Trade.sol/TradeController__factory.d.ts +200 -0
- package/dist/typechain/factories/out/Trade.sol/TradeController__factory.js +262 -0
- package/dist/typechain/factories/out/Trade.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Trade.sol/index.js +1 -0
- package/dist/typechain/factories/out/Transfer.sol/TransferController__factory.d.ts +100 -0
- package/dist/typechain/factories/out/Transfer.sol/TransferController__factory.js +141 -0
- package/dist/typechain/factories/out/Transfer.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Transfer.sol/index.js +1 -0
- package/dist/typechain/factories/out/UniswapV2Adapter__factory.d.ts +162 -0
- package/dist/typechain/factories/out/UniswapV2Adapter__factory.js +215 -0
- package/dist/typechain/factories/out/UniswapV3Adapter__factory.d.ts +162 -0
- package/dist/typechain/factories/out/UniswapV3Adapter__factory.js +215 -0
- package/dist/typechain/factories/out/UniswapV3SwapRouter02Adapter__factory.d.ts +162 -0
- package/dist/typechain/factories/out/UniswapV3SwapRouter02Adapter__factory.js +215 -0
- package/dist/typechain/factories/out/UniswapV4Adapter__factory.d.ts +203 -0
- package/dist/typechain/factories/out/UniswapV4Adapter__factory.js +268 -0
- package/dist/typechain/factories/out/V0ToLotusMigrator__factory.d.ts +216 -0
- package/dist/typechain/factories/out/V0ToLotusMigrator__factory.js +284 -0
- package/dist/typechain/factories/out/Vault.sol/FundVault__factory.d.ts +258 -0
- package/dist/typechain/factories/out/Vault.sol/FundVault__factory.js +339 -0
- package/dist/typechain/factories/out/Vault.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Vault.sol/index.js +1 -0
- package/dist/typechain/factories/out/Withdrawal.sol/WithdrawalController__factory.d.ts +285 -0
- package/dist/typechain/factories/out/Withdrawal.sol/WithdrawalController__factory.js +377 -0
- package/dist/typechain/factories/out/Withdrawal.sol/index.d.ts +1 -0
- package/dist/typechain/factories/out/Withdrawal.sol/index.js +1 -0
- package/dist/typechain/factories/out/index.d.ts +43 -0
- package/dist/typechain/factories/out/index.js +43 -0
- package/dist/typechain/include/IPancakeQuoterV2.d.ts +223 -0
- package/dist/typechain/include/IPancakeQuoterV2.js +1 -0
- package/dist/typechain/include/ISwapRouter02.d.ts +682 -0
- package/dist/typechain/include/ISwapRouter02.js +1 -0
- package/dist/typechain/include/index.d.ts +2 -0
- package/dist/typechain/include/index.js +1 -0
- package/dist/typechain/index.d.ts +119 -0
- package/dist/typechain/index.js +58 -0
- package/dist/typechain/out/Adapter.d.ts +29 -0
- package/dist/typechain/out/Adapter.js +1 -0
- package/dist/typechain/out/AerodromeV2Adapter.d.ts +106 -0
- package/dist/typechain/out/AerodromeV2Adapter.js +1 -0
- package/dist/typechain/out/AerodromeV3Adapter.d.ts +87 -0
- package/dist/typechain/out/AerodromeV3Adapter.js +1 -0
- package/dist/typechain/out/AssetManager.sol/LedgerAssetManager.d.ts +604 -0
- package/dist/typechain/out/AssetManager.sol/LedgerAssetManager.js +1 -0
- package/dist/typechain/out/AssetManager.sol/index.d.ts +1 -0
- package/dist/typechain/out/AssetManager.sol/index.js +1 -0
- package/dist/typechain/out/Bookkeeper.sol/LedgerBookkeeper.d.ts +548 -0
- package/dist/typechain/out/Bookkeeper.sol/LedgerBookkeeper.js +1 -0
- package/dist/typechain/out/Bookkeeper.sol/index.d.ts +1 -0
- package/dist/typechain/out/Bookkeeper.sol/index.js +1 -0
- package/dist/typechain/out/Checkpoint.sol/CheckpointController.d.ts +29 -0
- package/dist/typechain/out/Checkpoint.sol/CheckpointController.js +1 -0
- package/dist/typechain/out/Checkpoint.sol/index.d.ts +1 -0
- package/dist/typechain/out/Checkpoint.sol/index.js +1 -0
- package/dist/typechain/out/Closure.sol/ClosureController.d.ts +273 -0
- package/dist/typechain/out/Closure.sol/ClosureController.js +1 -0
- package/dist/typechain/out/Closure.sol/index.d.ts +1 -0
- package/dist/typechain/out/Closure.sol/index.js +1 -0
- package/dist/typechain/out/ContextBuilder.d.ts +403 -0
- package/dist/typechain/out/ContextBuilder.js +1 -0
- package/dist/typechain/out/Control.sol/Controllable.d.ts +97 -0
- package/dist/typechain/out/Control.sol/Controllable.js +1 -0
- package/dist/typechain/out/Control.sol/Controller.d.ts +25 -0
- package/dist/typechain/out/Control.sol/Controller.js +1 -0
- package/dist/typechain/out/Control.sol/index.d.ts +2 -0
- package/dist/typechain/out/Control.sol/index.js +1 -0
- package/dist/typechain/out/Controller.sol/ClosureDelegate.d.ts +61 -0
- package/dist/typechain/out/Controller.sol/ClosureDelegate.js +1 -0
- package/dist/typechain/out/Controller.sol/CreationDelegate.d.ts +61 -0
- package/dist/typechain/out/Controller.sol/CreationDelegate.js +1 -0
- package/dist/typechain/out/Controller.sol/DepositDelegate.d.ts +56 -0
- package/dist/typechain/out/Controller.sol/DepositDelegate.js +1 -0
- package/dist/typechain/out/Controller.sol/FundController.d.ts +464 -0
- package/dist/typechain/out/Controller.sol/FundController.js +1 -0
- package/dist/typechain/out/Controller.sol/HarvestDelegate.d.ts +163 -0
- package/dist/typechain/out/Controller.sol/HarvestDelegate.js +1 -0
- package/dist/typechain/out/Controller.sol/TradeDelegate.d.ts +67 -0
- package/dist/typechain/out/Controller.sol/TradeDelegate.js +1 -0
- package/dist/typechain/out/Controller.sol/TransferDelegate.d.ts +37 -0
- package/dist/typechain/out/Controller.sol/TransferDelegate.js +1 -0
- package/dist/typechain/out/Controller.sol/WithdrawalDelegate.d.ts +53 -0
- package/dist/typechain/out/Controller.sol/WithdrawalDelegate.js +1 -0
- package/dist/typechain/out/Controller.sol/index.d.ts +8 -0
- package/dist/typechain/out/Controller.sol/index.js +1 -0
- package/dist/typechain/out/Cooldown.sol/LedgerCooldown.d.ts +446 -0
- package/dist/typechain/out/Cooldown.sol/LedgerCooldown.js +1 -0
- package/dist/typechain/out/Cooldown.sol/index.d.ts +1 -0
- package/dist/typechain/out/Cooldown.sol/index.js +1 -0
- package/dist/typechain/out/Creation.sol/CreationController.d.ts +102 -0
- package/dist/typechain/out/Creation.sol/CreationController.js +1 -0
- package/dist/typechain/out/Creation.sol/index.d.ts +1 -0
- package/dist/typechain/out/Creation.sol/index.js +1 -0
- package/dist/typechain/out/Deposit.sol/DepositController.d.ts +68 -0
- package/dist/typechain/out/Deposit.sol/DepositController.js +1 -0
- package/dist/typechain/out/Deposit.sol/index.d.ts +1 -0
- package/dist/typechain/out/Deposit.sol/index.js +1 -0
- package/dist/typechain/out/Error.d.ts +20 -0
- package/dist/typechain/out/Error.js +1 -0
- package/dist/typechain/out/Harvest.sol/HarvestController.d.ts +241 -0
- package/dist/typechain/out/Harvest.sol/HarvestController.js +1 -0
- package/dist/typechain/out/Harvest.sol/index.d.ts +1 -0
- package/dist/typechain/out/Harvest.sol/index.js +1 -0
- package/dist/typechain/out/IAerodromeRouter.d.ts +80 -0
- package/dist/typechain/out/IAerodromeRouter.js +1 -0
- package/dist/typechain/out/IAerodromeSwapRouter.d.ts +96 -0
- package/dist/typechain/out/IAerodromeSwapRouter.js +1 -0
- package/dist/typechain/out/IUniswapV4.sol/IPermit2.d.ts +39 -0
- package/dist/typechain/out/IUniswapV4.sol/IPermit2.js +1 -0
- package/dist/typechain/out/IUniswapV4.sol/IUniversalRouter.d.ts +37 -0
- package/dist/typechain/out/IUniswapV4.sol/IUniversalRouter.js +1 -0
- package/dist/typechain/out/IUniswapV4.sol/index.d.ts +2 -0
- package/dist/typechain/out/IUniswapV4.sol/index.js +1 -0
- package/dist/typechain/out/IV0Fund.d.ts +69 -0
- package/dist/typechain/out/IV0Fund.js +1 -0
- package/dist/typechain/out/IV3SwapRouter.d.ts +52 -0
- package/dist/typechain/out/IV3SwapRouter.js +1 -0
- package/dist/typechain/out/Initializer.sol/LedgerInitializer.d.ts +379 -0
- package/dist/typechain/out/Initializer.sol/LedgerInitializer.js +1 -0
- package/dist/typechain/out/Initializer.sol/VaultInitializer.d.ts +129 -0
- package/dist/typechain/out/Initializer.sol/VaultInitializer.js +1 -0
- package/dist/typechain/out/Initializer.sol/index.d.ts +2 -0
- package/dist/typechain/out/Initializer.sol/index.js +1 -0
- package/dist/typechain/out/Ledger.sol/FundLedger.d.ts +926 -0
- package/dist/typechain/out/Ledger.sol/FundLedger.js +1 -0
- package/dist/typechain/out/Ledger.sol/index.d.ts +1 -0
- package/dist/typechain/out/Ledger.sol/index.js +1 -0
- package/dist/typechain/out/LotusP2P.d.ts +610 -0
- package/dist/typechain/out/LotusP2P.js +1 -0
- package/dist/typechain/out/MulticallStatic.d.ts +25 -0
- package/dist/typechain/out/MulticallStatic.js +1 -0
- package/dist/typechain/out/Operator.sol/VaultOperator.d.ts +197 -0
- package/dist/typechain/out/Operator.sol/VaultOperator.js +1 -0
- package/dist/typechain/out/Operator.sol/index.d.ts +1 -0
- package/dist/typechain/out/Operator.sol/index.js +1 -0
- package/dist/typechain/out/P2PAdapter.d.ts +100 -0
- package/dist/typechain/out/P2PAdapter.js +1 -0
- package/dist/typechain/out/Protocol.d.ts +815 -0
- package/dist/typechain/out/Protocol.js +1 -0
- package/dist/typechain/out/ProtocolMigrationExtension.d.ts +806 -0
- package/dist/typechain/out/ProtocolMigrationExtension.js +1 -0
- package/dist/typechain/out/ProtocolProvider.d.ts +25 -0
- package/dist/typechain/out/ProtocolProvider.js +1 -0
- package/dist/typechain/out/Registrar.sol/LedgerRegistrar.d.ts +866 -0
- package/dist/typechain/out/Registrar.sol/LedgerRegistrar.js +1 -0
- package/dist/typechain/out/Registrar.sol/index.d.ts +1 -0
- package/dist/typechain/out/Registrar.sol/index.js +1 -0
- package/dist/typechain/out/Settings.sol/SettingsController.d.ts +97 -0
- package/dist/typechain/out/Settings.sol/SettingsController.js +1 -0
- package/dist/typechain/out/Settings.sol/index.d.ts +1 -0
- package/dist/typechain/out/Settings.sol/index.js +1 -0
- package/dist/typechain/out/Shares.sol/ICheckpointController.d.ts +29 -0
- package/dist/typechain/out/Shares.sol/ICheckpointController.js +1 -0
- package/dist/typechain/out/Shares.sol/ITransferController.d.ts +37 -0
- package/dist/typechain/out/Shares.sol/ITransferController.js +1 -0
- package/dist/typechain/out/Shares.sol/LedgerShares.d.ts +494 -0
- package/dist/typechain/out/Shares.sol/LedgerShares.js +1 -0
- package/dist/typechain/out/Shares.sol/index.d.ts +3 -0
- package/dist/typechain/out/Shares.sol/index.js +1 -0
- package/dist/typechain/out/SignatureVerifier.d.ts +139 -0
- package/dist/typechain/out/SignatureVerifier.js +1 -0
- package/dist/typechain/out/Storage.sol/LedgerStorage.d.ts +281 -0
- package/dist/typechain/out/Storage.sol/LedgerStorage.js +1 -0
- package/dist/typechain/out/Storage.sol/index.d.ts +1 -0
- package/dist/typechain/out/Storage.sol/index.js +1 -0
- package/dist/typechain/out/Trade.sol/TradeController.d.ts +137 -0
- package/dist/typechain/out/Trade.sol/TradeController.js +1 -0
- package/dist/typechain/out/Trade.sol/index.d.ts +1 -0
- package/dist/typechain/out/Trade.sol/index.js +1 -0
- package/dist/typechain/out/Transfer.sol/TransferController.d.ts +49 -0
- package/dist/typechain/out/Transfer.sol/TransferController.js +1 -0
- package/dist/typechain/out/Transfer.sol/index.d.ts +1 -0
- package/dist/typechain/out/Transfer.sol/index.js +1 -0
- package/dist/typechain/out/UniswapV2Adapter.d.ts +87 -0
- package/dist/typechain/out/UniswapV2Adapter.js +1 -0
- package/dist/typechain/out/UniswapV3Adapter.d.ts +87 -0
- package/dist/typechain/out/UniswapV3Adapter.js +1 -0
- package/dist/typechain/out/UniswapV3SwapRouter02Adapter.d.ts +87 -0
- package/dist/typechain/out/UniswapV3SwapRouter02Adapter.js +1 -0
- package/dist/typechain/out/UniswapV4Adapter.d.ts +110 -0
- package/dist/typechain/out/UniswapV4Adapter.js +1 -0
- package/dist/typechain/out/V0ToLotusMigrator.d.ts +94 -0
- package/dist/typechain/out/V0ToLotusMigrator.js +1 -0
- package/dist/typechain/out/Vault.sol/FundVault.d.ts +197 -0
- package/dist/typechain/out/Vault.sol/FundVault.js +1 -0
- package/dist/typechain/out/Vault.sol/index.d.ts +1 -0
- package/dist/typechain/out/Vault.sol/index.js +1 -0
- package/dist/typechain/out/Withdrawal.sol/WithdrawalController.d.ts +152 -0
- package/dist/typechain/out/Withdrawal.sol/WithdrawalController.js +1 -0
- package/dist/typechain/out/Withdrawal.sol/index.d.ts +1 -0
- package/dist/typechain/out/Withdrawal.sol/index.js +1 -0
- package/dist/typechain/out/index.d.ts +65 -0
- package/dist/typechain/out/index.js +1 -0
- package/dist/types/Fund.d.ts +27 -0
- package/dist/types/Fund.js +1 -0
- package/package.json +67 -0
|
@@ -0,0 +1,1502 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../../common";
|
|
4
|
+
import type { FundLedger, FundLedgerInterface } from "../../../out/Ledger.sol/FundLedger";
|
|
5
|
+
type FundLedgerConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class FundLedger__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: FundLedgerConstructorParams);
|
|
8
|
+
getDeployTransaction(protocolAddress: AddressLike, overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(protocolAddress: AddressLike, overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<FundLedger & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): FundLedger__factory;
|
|
17
|
+
static readonly bytecode = "0x60a060405234801561000f575f5ffd5b50604051613f26380380613f2683398101604081905261002e91610124565b80806001600160a01b0381166100575760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b03166080525061006c610072565b50610151565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100c25760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101215780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b5f60208284031215610134575f5ffd5b81516001600160a01b038116811461014a575f5ffd5b9392505050565b608051613da16101855f395f818161076d01528181610b7f015281816122ac01528181612ae60152612d680152613da15ff3fe608060405234801561000f575f5ffd5b506004361061040c575f3560e01c80636cd470a111610221578063c7810cf51161012a578063ea32acb4116100b4578063f3d2350e11610084578063f3d2350e14610a3a578063f5298aca14610a4d578063f77c479114610a60578063fbfa77cf14610a71578063fe6967ed14610a83575f5ffd5b8063ea32acb414610a0f578063eafe7a7414610a22578063f13dc2e214610a2a578063f34fd6c614610a32575f5ffd5b8063d6a130b2116100fa578063d6a130b2146108e9578063d8ed051c14610974578063dae2a76c14610987578063dd62ed3e1461099f578063e164f9b8146109f6575f5ffd5b8063c7810cf51461089d578063c8c63c69146108b0578063ce408be3146108c3578063cf35bdd0146108d6575f5ffd5b8063a592d9ec116101ab578063b5adcc541161017b578063b5adcc5414610843578063b7d17b2314610863578063bab04d1b14610878578063bc94064c14610880578063c261f48114610895575f5ffd5b8063a592d9ec146107dd578063a9059cbb146107e5578063ac9650d8146107f8578063b319c6b714610818575f5ffd5b8063900c0435116101f1578063900c04351461079157806395d89b41146107a45780639df11ab7146107ac5780639f97e3c0146107bf578063a05cafa4146107ca575f5ffd5b80636cd470a11461073d57806370a082311461075057806373d9f6c7146107635780638ce744261461076b575f5ffd5b80632f206068116103235780634a5e42b1116102ad57806358152d071161027d57806358152d07146106d85780635f30ba24146106ed57806364e8ae6d1461070257806367e4ac2c1461071557806368447c931461072a575f5ffd5b80634a5e42b11461068f5780634b1533b2146106a25780634ea479ea146106ab57806351e9b20f146106c5575f5ffd5b8063420ccec1116102f3578063420ccec11461062f578063467d15891461064257806347230a941461065557806347535d7b1461065d578063481c6a751461066a575f5ffd5b80632f206068146105d8578063313ce5671461060557806336b6f71c146106145780633813c35a14610627575f5ffd5b806314100994116103a457806323b872dd1161037457806323b872dd1461056b57806325d998bb1461057e578063298410e5146105915780632a43526f146105a45780632df96d57146105ad575f5ffd5b8063141009941461050b578063156e29f61461051e57806318160ddd146105315780631a6e658614610539575f5ffd5b806306cb5b66116103df57806306cb5b66146104a157806306fdde03146104b4578063095ea7b3146104c957806310d07204146104ec575f5ffd5b806301322e7114610410578063045d0c1b146104255780630475a9e21461044b57806305c9961914610473575b5f5ffd5b61042361041e36600461305d565b610a96565b005b61043861043336600461307f565b610b15565b6040519081526020015b60405180910390f35b60035461046090600160581b900461ffff1681565b60405161ffff9091168152602001610442565b60035461048a90610100900465ffffffffffff1681565b60405165ffffffffffff9091168152602001610442565b6104236104af36600461305d565b610b36565b6104bc610c53565b60405161044291906130c4565b6104dc6104d73660046130d6565b610d13565b6040519015158152602001610442565b6104386104fa36600461305d565b60026020525f908152604090205481565b610423610519366004613152565b610d2d565b61042361052c3660046131ca565b610e1f565b610438610e77565b60045461055390600160a01b90046001600160601b031681565b6040516001600160601b039091168152602001610442565b6104dc6105793660046131fc565b610e98565b61043861058c36600461305d565b610ed9565b61042361059f36600461305d565b610f2d565b61043860085481565b6105c06105bb36600461305d565b610ffb565b6040516001600160801b039091168152602001610442565b6104dc6105e636600461305d565b6001600160a01b03165f908152600c6020526040902060010154151590565b60405160128152602001610442565b610423610622366004613306565b61108a565b610438611201565b61042361063d36600461305d565b61122d565b6104236106503660046133dc565b61132d565b61043861137d565b6003546104dc9060ff1681565b600b546001600160a01b03165b6040516001600160a01b039091168152602001610442565b61042361069d36600461305d565b6113b4565b61043860065481565b6007546105c090600160801b90046001600160801b031681565b6104236106d3366004613429565b611468565b6106e06116d4565b60405161044291906134a1565b60035461046090600160481b900461ffff1681565b610438610710366004613504565b611748565b61071d61177f565b6040516104429190613524565b600454610677906001600160a01b031681565b61042361074b366004613564565b6117df565b61043861075e36600461305d565b611875565b610438611951565b7f0000000000000000000000000000000000000000000000000000000000000000610677565b61043861079f36600461305d565b611974565b6104bc61197e565b6104236107ba3660046135d8565b6119bc565b6009545f19016105c0565b6007546105c0906001600160801b031681565b610438611aa9565b6104dc6107f33660046130d6565b611ad2565b61080b61080636600461363f565b611b42565b60405161044291906136ae565b5f5461082e90600160d01b900463ffffffff1681565b60405163ffffffff9091168152602001610442565b61085661085136600461305d565b611c66565b6040516104429190613711565b60035461046090600160381b900461ffff1681565b610438611d15565b60035461046090600160681b900461ffff1681565b6105c0611d44565b6104236108ab366004613778565b611d6b565b6104236108be366004613811565b611e62565b6104236108d136600461385e565b611f67565b6106776108e436600461307f565b611fe7565b6109676108f736600461305d565b60408051606080820183525f80835260208084018290529284018190526001600160a01b03949094168452600582529282902082519384018352546001600160801b0381168452600160801b81046001600160681b031691840191909152600160e81b900461ffff169082015290565b60405161044291906138a6565b6106e061098236600461305d565b61200f565b5f5461048a90600160a01b900465ffffffffffff1681565b6104386109ad3660046133dc565b6001600160a01b039182165f9081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b60035461048a90600160781b900465ffffffffffff1681565b610438610a1d36600461305d565b612152565b600154610438565b6105c061219c565b6104236121cf565b610423610a483660046138b4565b61221e565b610423610a5b3660046131ca565b612390565b600a546001600160a01b0316610677565b5f54610677906001600160a01b031681565b610423610a913660046138e0565b6123de565b600a546001600160a01b03163314610ac0576040516282b42960e81b815260040160405180910390fd5b600b80546001600160a01b0319166001600160a01b0383169081179091556040519081527f1207be401d51e379598f93d2de21878d0a8225208d271069604ce9f9d81c37b0906020015b60405180910390a150565b5f610b3082610b22611d44565b6001600160801b0316611748565b92915050565b600a546001600160a01b03163314610b60576040516282b42960e81b815260040160405180910390fd5b604051630d68c03760e01b81526001600160a01b0382811660048301527f00000000000000000000000000000000000000000000000000000000000000001690630d68c03790602401602060405180830381865afa158015610bc4573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610be89190613908565b610c05576040516359cf0f3760e11b815260040160405180910390fd5b600a80546001600160a01b0319166001600160a01b0383169081179091556040519081527f1304018cfe79741dcf02ba6b61d39cc4757d59395d03224d9925c7aa8300214690602001610b0a565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0380546060915f516020613d4c5f395f51905f5291610c9190613921565b80601f0160208091040260200160405190810160405280929190818152602001828054610cbd90613921565b8015610d085780601f10610cdf57610100808354040283529160200191610d08565b820191905f5260205f20905b815481529060010190602001808311610ceb57829003601f168201915b505050505091505090565b5f60405163d623472560e01b815260040160405180910390fd5b600a546001600160a01b03163314610d57576040516282b42960e81b815260040160405180910390fd5b600980546001810182555f918252835160208501516001600160801b03908116600160801b02918116919091177f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af909201919091556007805484939192610dc09185911661396d565b92506101000a8154816001600160801b0302191690836001600160801b031602179055507fe2249cd287947ea9ff0703431518853077d1d3f3cf08fd66541664a0862fa58482604051610e13919061398c565b60405180910390a15050565b600a546001600160a01b03163314610e49576040516282b42960e81b815260040160405180910390fd5b610e545f848461245b565b610e5d81612594565b60085f828254610e6d91906139b0565b9091555050505050565b5f5f5f610e826125c4565b9092509050610e9181836139cf565b9250505090565b600a545f906001600160a01b03163314610ec4576040516282b42960e81b815260040160405180910390fd5b610ecf848484612674565b5060019392505050565b5f610ee382611875565b9050610f08826001600160a01b03165f908152600c6020526040902060010154151590565b15610f28575f610f1783612843565b509050610f2481836139e2565b9150505b919050565b600a546001600160a01b03163314610f57576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381165f90815260026020526040902054819015610fa057604051637f6d950d60e11b81526001600160a01b0390911660048201526024015b60405180910390fd5b506001805480820182557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b039093166001600160a01b031990931683179055545f9182526002602052604090912055565b5f5f61100683611875565b9050805f0361101757505f92915050565b6001600160a01b0383165f90815260056020526040812054611052906001600160681b03600160801b820416906001600160801b031661396d565b6001600160801b0316905061108282611073670de0b6b3a7640000846139f5565b61107d9190613a20565b6128fe565b949350505050565b5f611093612931565b805490915060ff600160401b82041615906001600160401b03165f811580156110b95750825b90505f826001600160401b031660011480156110d45750303b155b9050811580156110e2575080155b156111005760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561112a57845460ff60401b1916600160401b1785555b6111398e8e8c8c8c8c8c612959565b6111438c8c612cf5565b6111ab8e6001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa158015611182573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111a69190613a33565b612d4b565b83156111f157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050505050505050565b6003545f906112249061ffff600160381b8204811691600160481b900416613a4e565b61ffff16905090565b600a546001600160a01b03163314611257576040516282b42960e81b815260040160405180910390fd5b61126260015f612fd7565b6001805480820182557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b03841690811790915590545f91825260026020526040909120556003805460ff191690556112d162ed4e00426139cf565b5f805465ffffffffffff60a01b1916600160a01b65ffffffffffff93841681029190911791829055604051910490911681527fff33565ba997fa6e0079a3e18ee80afecd3317f29fdf66bd9c9d06e2aa0c1e2d90602001610b0a565b600a546001600160a01b03163314611357576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0382165f908152600260205260409020546113799082612e26565b5050565b6007546006545f916001600160801b03600160801b82048116926113a59291909116906139cf565b6113af91906139cf565b905090565b600a546001600160a01b031633146113de576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381165f908152600260205260409020546001805461143492919061140b9082906139e2565b8154811061141b5761141b613a68565b5f918252602090912001546001600160a01b0316612e26565b600180548061144557611445613a7c565b5f8281526020902081015f1990810180546001600160a01b031916905501905550565b600a546001600160a01b03163314611492576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0388165f90815260056020908152604091829020825160608101845290546001600160801b03808216808452600160801b83046001600160681b031694840194909452600160e81b90910461ffff1693820193909352916114fd91908816906139e2565b6001600160801b031681526020810151611523906001600160681b0380881691166139e2565b6001600160681b0390811660208084019182526001600160a01b038c165f908152600590915260408082208551815494519287015161ffff16600160e81b0261ffff60e81b1993909616600160801b026001600160e81b03199095166001600160801b0391821617949094179190911693909317909255600680549189169290916115af9084906139e2565b9091555050600780546001600160681b03871691906010906115e2908490600160801b90046001600160801b0316613a90565b92506101000a8154816001600160801b0302191690836001600160801b031602179055506008545f1461164557611617611aa9565b876008546116259190613aaf565b61162f9190613ade565b60085f82825461163f91906139b0565b90915550505b61164f8988612eed565b604080516001600160a01b038a81168252602082018a90526001600160801b038916828401526001600160681b03881660608301526080820187905260a0820186905260c082018590529151918b16917fec4d7fc8319e44dfa849ab87f565622b9cf848ce9959568c3066615ce9e2ef149181900360e00190a2505050505050505050565b60606009805480602002602001604051908101604052809291908181526020015f905b8282101561173f575f84815260209081902060408051808201909152908401546001600160801b038082168352600160801b90910416818301528252600190920191016116f7565b50505050905090565b5f5f6117548484612f21565b61175e90856139e2565b905061271061176b611951565b61177590836139f5565b6110829190613a20565b606060018054806020026020016040519081016040528092919081815260200182805480156117d557602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116117b7575b5050505050905090565b600a546001600160a01b03163314611809576040516282b42960e81b815260040160405180910390fd5b6003805465ffffffffffff60781b1916600160781b65ffffffffffff84160217905561183d3061183881611875565b612eed565b60405165ffffffffffff821681527ffca4e8f38a30da6307fc7a7bf18d7752c0cffc2634a3e11263cee303d047575b90602001610b0a565b6009545f90611886906001906139e2565b6001600160a01b0383165f90815260056020526040902054600160e81b900461ffff161461191f57600a546040516328eaa86960e11b81526001600160a01b038481166004830152909116906351d550d290602401602060405180830381865afa1580156118f6573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061191a9190613b0a565b611928565b61192882612f30565b9050306001600160a01b03831603610f28575f6119436125c4565b9150610f24905081836139cf565b6003545f906112249061ffff600160581b8204811691600160681b900416613a4e565b5f610b3082612f30565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0480546060915f516020613d4c5f395f51905f5291610c9190613921565b600a546001600160a01b031633146119e6576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0385165f818152600560209081526040918290208651815492880151888501516001600160801b039283166001600160e81b031990951694909417600160801b6001600160681b0390921682021761ffff60e81b1916600160e81b61ffff909516948502179092558681169086169091021760075590519091907f829e79e759d98b9c6e1f6ecf17794ea0d4ecfa5e77dab1038c91472d3f90051890611a9a908890889088908890613b21565b60405180910390a35050505050565b5f6113af7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace025490565b600a546040516317d5759960e31b81523360048201526001600160a01b038481166024830152604482018490525f92169063beabacc8906064015f604051808303815f87803b158015611b23575f5ffd5b505af1158015611b35573d5f5f3e3d5ffd5b5060019695505050505050565b6060816001600160401b03811115611b5c57611b5c613100565b604051908082528060200260200182016040528015611b8f57816020015b6060815260200190600190039081611b7a5790505b5090505f5b82811015611c5f575f8030868685818110611bb157611bb1613a68565b9050602002810190611bc39190613b64565b604051611bd1929190613bad565b5f60405180830381855afa9150503d805f8114611c09576040519150601f19603f3d011682016040523d82523d5f602084013e611c0e565b606091505b5091509150818390611c365760405163750ebb7d60e01b8152600401610f9791815260200190565b5080848481518110611c4a57611c4a613a68565b60209081029190910101525050600101611b94565b5092915050565b604080518082019091525f8152606060208201526001600160a01b0382165f908152600c6020908152604080832081518083018352815481526001820180548451818702810187019095528085529195929486810194939192919084015b82821015611d07578382905f5260205f2090600202016040518060400160405290815f820154815260200160018201548152505081526020019060010190611cc4565b505050915250909392505050565b6007545f90611d36906001600160801b03600160801b82048116911661396d565b6001600160801b0316905090565b5f6113af611d50610e77565b670de0b6b3a7640000611d6161137d565b61107391906139f5565b600a546001600160a01b03163314611d95576040516282b42960e81b815260040160405180910390fd5b60408082015182516001600160a01b039081165f9081526005602090815284822084518154838701519688015161ffff908116600160e81b90810261ffff60e81b196001600160681b039a8b16600160801b9081026001600160e81b03199687166001600160801b03988916171782169290921790965560608c0151878d018051909a168952978b902088518154988a015199909c0151909316909102969098169097029316961695909517179093169290921790558151905160a0830151611e5f929190612674565b50565b600a546001600160a01b03163314611e8c576040516282b42960e81b815260040160405180910390fd5b611e95826128fe565b6001600160a01b0386165f9081526005602052604081208054909190611ec59084906001600160801b031661396d565b92506101000a8154816001600160801b0302191690836001600160801b031602179055508160065f828254611efa91906139cf565b90915550611f0a90508584612f56565b604080516001600160a01b0386811682526020820186905291810184905260608101839052908616907f8bab6aed5a508937051a144e61d6e61336834a66aaee250a00613ae6f744c4229060800160405180910390a25050505050565b600a546001600160a01b03163314611f91576040516282b42960e81b815260040160405180910390fd5b600480546001600160a01b0316600160a01b6001600160601b038416908102919091179091556040519081527f26462afeab04e43bad99da0e8bfb0445715e350b421524b6c07e7e1840d1883790602001610b0a565b60018181548110611ff6575f80fd5b5f918252602090912001546001600160a01b0316905081565b6001600160a01b0381165f90815260056020526040902054600954606091600160e81b900461ffff16905f19016001600160801b031661204f82826139e2565b6001600160401b0381111561206657612066613100565b6040519080825280602002602001820160405280156120aa57816020015b604080518082019091525f80825260208201528152602001906001900390816120845790505b50925060015b6120ba83836139e2565b811161214a5760096120cc84836139cf565b815481106120dc576120dc613a68565b5f918252602091829020604080518082019091529101546001600160801b038082168352600160801b90910416918101919091528461211c6001846139e2565b8151811061212c5761212c613a68565b6020026020010181905250808061214290613bbc565b9150506120b0565b505050919050565b6001600160a01b0381165f9081526005602052604081205461218d906001600160681b03600160801b820416906001600160801b031661396d565b6001600160801b031692915050565b600980545f91905f1981019081106121b6576121b6613a68565b5f918252602090912001546001600160801b0316919050565b600354610100900465ffffffffffff1642111561221c575f6121ef6125c4565b9150506121fc3082612f56565b506003805466ffffffffffff0019166101004265ffffffffffff16021790555b565b600a546001600160a01b03163314612248576040516282b42960e81b815260040160405180910390fd5b6003805461ffff838116600160381b0261ffff60381b19918616600160581b02919091166cffff0000ffff000000000000001990921691909117179055600480546040516318dcc3ab60e01b81526001600160a01b03918216928101929092525f917f0000000000000000000000000000000000000000000000000000000000000000909116906318dcc3ab90602401606060405180830381865afa1580156122f3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123179190613bd4565b60208181015160038054845165ffff0000ffff60481b19909116600160481b61ffff9485160261ffff60681b191617600160681b9184169190910217905560405190861681529192507f2437b4c438fb39a9340ac2b3b8d1610845463d8f09731b4512a34a2193a02b38910160405180910390a1505050565b600a546001600160a01b031633146123ba576040516282b42960e81b815260040160405180910390fd5b6123c5835f8461245b565b6123ce81612594565b60085f828254610e6d9190613c26565b600a546001600160a01b03163314612408576040516282b42960e81b815260040160405180910390fd5b5f805463ffffffff60d01b1916600160d01b63ffffffff8416908102919091179091556040519081527fcf0ad841e8fa3140506c6291bc33a92598803c4dd5d031a808c8db1278905d7090602001610b0a565b5f516020613d4c5f395f51905f526001600160a01b0384166124955781816002015f82825461248a91906139cf565b909155506125059050565b6001600160a01b0384165f90815260208290526040902054828110156124e75760405163391434e360e21b81526001600160a01b03861660048201526024810182905260448101849052606401610f97565b6001600160a01b0385165f9081526020839052604090209083900390555b6001600160a01b038316612523576002810180548390039055612541565b6001600160a01b0383165f9081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161258691815260200190565b60405180910390a350505050565b5f6001600160ff1b038211156125c05760405163123baf0360e11b815260048101839052602401610f97565b5090565b5f5f6125ce611aa9565b91505f600854126125f5576125e4600854612f8a565b6125ee90836139cf565b915061260d565b612600600854612f8a565b61260a90836139e2565b91505b60035460ff1615612670576003545f9061263490610100900465ffffffffffff16426139e2565b90506126466127106301e133806139f5565b61264e611201565b61265883866139f5565b61266291906139f5565b61266c9190613a20565b9150505b9091565b61267f83838361245b565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02545f036126ac575f6008555b60035460ff166126bb57505050565b6001600160a01b03831661274c576001600160a01b0382163014612747576001600160a01b0382165f908152600c602052604080822081518083019092529154600190920191819061271a90600160d01b900463ffffffff16426139cf565b815260209081018490528254600181810185555f9485529382902083516002909202019081559101519101555b505050565b6001600160a01b0383165f908152600c602052604090206001015415612747575f5f61277785612843565b915091508161278586611875565b1015828461279288611875565b61279c91906139cf565b6127a691906139e2565b8490916127cf5760405163b388f18d60e01b815260048101929092526024820152604401610f97565b50506001600160a01b0385165f908152600c60205260409020600101548103612821576001600160a01b0385165f908152600c602052604081208181559061281a6001830182612ff2565b505061283c565b6001600160a01b0385165f908152600c602052604090208190555b5050505050565b6001600160a01b0381165f908152600c6020526040812060018101549054905b818111156128f8576001600160a01b0384165f908152600c6020526040812060019081019061289290846139e2565b815481106128a2576128a2613a68565b905f5260205f2090600202016040518060400160405290815f82015481526020016001820154815250509050805f01514210156128ee57602081015193909301925f19909101906128f2565b8192505b50612863565b50915091565b5f6001600160801b038211156125c0576040516306dfcc6560e41b81526080600482015260248101839052604401610f97565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610b30565b612961612f99565b336001600160a01b0316876001600160a01b031663f77c47916040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129a7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129cb9190613a33565b6001600160a01b0316148015612a515750306001600160a01b0316876001600160a01b03166356397c356040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a22573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a469190613a33565b6001600160a01b0316145b612a6e57604051630681d31960e51b815260040160405180910390fd5b5f80546001600160a01b03808a166001600160a01b03199283161783556003805460048054878516951694909417845561ffff878116600160381b0261ffff60381b19918a16600160581b026cffff00000000000000000000ff1990931692909217600117161790556040516318dcc3ab60e01b81527f0000000000000000000000000000000000000000000000000000000000000000909116916318dcc3ab91612b2a918691016001600160a01b0391909116815260200190565b606060405180830381865afa158015612b45573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b699190613bd4565b602080820151600380549351600480546001600160601b03909c16600160a01b026001600160a01b039c8d161790555f805463ffffffff909b16600160d01b0263ffffffff60d01b19909b169a909a178a5565ffffffffffff4216610100810266ffffffffffff0019600160781b929092029190911674ffffffffffff0000000000000000ffffffffffff001961ffff938416600160681b0261ffff60681b1994909616600160481b029390931665ffff0000ffff60481b199097169690961793909317169390931717909155604080518082018252670de0b6b3a76400008082528184019081526009805460018181018355918b52925191516001600160801b03908116600160801b029216919091177f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af90920191909155805480820182557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180549a9099166001600160a01b03199a909a168a1790985597865260029052505050929020555050565b612cfd612f99565b5f516020613d4c5f395f51905f527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03612d368482613c91565b5060048101612d458382613c91565b50505050565b612d53612f99565b604051630d68c03760e01b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690630d68c03790602401602060405180830381865afa158015612db5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dd99190613908565b612df6576040516359cf0f3760e11b815260040160405180910390fd5b600a8054336001600160a01b031991821617909155600b80549091166001600160a01b0392909216919091179055565b8115801590612e3d57506001600160a01b03811615155b612e5a5760405163e6c4247b60e01b815260040160405180910390fd5b5f6001612e6781856139e2565b81548110612e7757612e77613a68565b5f918252602090912001546001600160a01b03169050816001612e9a81866139e2565b81548110612eaa57612eaa613a68565b5f91825260208083209190910180546001600160a01b0319166001600160a01b039485161790559382168152600290935260408084209490945516815290812055565b6001600160a01b038216612f1657604051634b637e8f60e11b81525f6004820152602401610f97565b611379825f83612674565b8181811115610b305750919050565b6001600160a01b03165f9081525f516020613d4c5f395f51905f52602052604090205490565b6001600160a01b038216612f7f5760405163ec442f0560e01b81525f6004820152602401610f97565b6113795f8383612674565b805f811215610f2857505f0390565b612fa1612fbe565b61221c57604051631afcd79f60e31b815260040160405180910390fd5b5f612fc7612931565b54600160401b900460ff16919050565b5080545f8255905f5260205f2090810190611e5f9190613010565b5080545f8255600202905f5260205f2090810190611e5f9190613024565b5b808211156125c0575f8155600101613011565b5b808211156125c0575f8082556001820155600201613025565b6001600160a01b0381168114611e5f575f5ffd5b8035610f288161303e565b5f6020828403121561306d575f5ffd5b81356130788161303e565b9392505050565b5f6020828403121561308f575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6130786020830184613096565b5f5f604083850312156130e7575f5ffd5b82356130f28161303e565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b604051606081016001600160401b038111828210171561313657613136613100565b60405290565b80356001600160801b0381168114610f28575f5ffd5b5f5f8284036060811215613164575f5ffd5b6040811215613171575f5ffd5b50604080519081016001600160401b038111828210171561319457613194613100565b6040526131a08461313c565b81526131ae6020850161313c565b602082015291506131c16040840161313c565b90509250929050565b5f5f5f606084860312156131dc575f5ffd5b83356131e78161303e565b95602085013595506040909401359392505050565b5f5f5f6060848603121561320e575f5ffd5b83356132198161303e565b925060208401356132298161303e565b929592945050506040919091013590565b5f82601f830112613249575f5ffd5b81356001600160401b0381111561326257613262613100565b604051601f8201601f19908116603f011681016001600160401b038111828210171561329057613290613100565b6040528181528382016020018510156132a7575f5ffd5b816020850160208301375f918101602001919091529392505050565b80356001600160601b0381168114610f28575f5ffd5b803563ffffffff81168114610f28575f5ffd5b61ffff81168114611e5f575f5ffd5b8035610f28816132ec565b5f5f5f5f5f5f5f5f5f6101208a8c03121561331f575f5ffd5b893561332a8161303e565b985061333860208b01613052565b975060408a01356001600160401b03811115613352575f5ffd5b61335e8c828d0161323a565b97505060608a01356001600160401b03811115613379575f5ffd5b6133858c828d0161323a565b96505061339460808b016132c3565b94506133a260a08b016132d9565b93506133b060c08b016132fb565b92506133be60e08b016132fb565b91506133cd6101008b01613052565b90509295985092959850929598565b5f5f604083850312156133ed575f5ffd5b82356133f88161303e565b915060208301356134088161303e565b809150509250929050565b80356001600160681b0381168114610f28575f5ffd5b5f5f5f5f5f5f5f5f610100898b031215613441575f5ffd5b883561344c8161303e565b9750602089013561345c8161303e565b96506040890135955061347160608a0161313c565b945061347f60808a01613413565b979a969950949793969560a0850135955060c08501359460e001359350915050565b602080825282518282018190525f918401906040840190835b818110156134f9576134e383855180516001600160801b03908116835260209182015116910152565b60209390930192604092909201916001016134ba565b509095945050505050565b5f5f60408385031215613515575f5ffd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b818110156134f95783516001600160a01b031683526020938401939092019160010161353d565b5f60208284031215613574575f5ffd5b813565ffffffffffff81168114613078575f5ffd5b5f60608284031215613599575f5ffd5b6135a1613114565b90506135ac8261313c565b81526135ba60208301613413565b602082015260408201356135cd816132ec565b604082015292915050565b5f5f5f5f5f61012086880312156135ed575f5ffd5b85356135f88161303e565b94506136078760208801613589565b93506136168760808801613589565b925061362460e0870161313c565b9150613633610100870161313c565b90509295509295909350565b5f5f60208385031215613650575f5ffd5b82356001600160401b03811115613665575f5ffd5b8301601f81018513613675575f5ffd5b80356001600160401b0381111561368a575f5ffd5b8560208260051b840101111561369e575f5ffd5b6020919091019590945092505050565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b8281101561370557603f198786030184526136f0858351613096565b945060209384019391909101906001016136d4565b50929695505050505050565b6020808252825182820152828101516040808401528051606084018190525f929190910190829060808501905b8083101561376e57835180518352602081015160208401525060408201915060208401935060018301925061373e565b5095945050505050565b5f61014082840312801561378a575f5ffd5b5060405160c081016001600160401b03811182821017156137ad576137ad613100565b60405282356137bb8161303e565b815260208301356137cb8161303e565b60208201526137dd8460408501613589565b60408201526137ef8460a08501613589565b606082015261010083013560808201526101209092013560a083015250919050565b5f5f5f5f5f60a08688031215613825575f5ffd5b85356138308161303e565b945060208601356138408161303e565b94979496505050506040830135926060810135926080909101359150565b5f6020828403121561386e575f5ffd5b613078826132c3565b80516001600160801b031682526020808201516001600160681b03169083015260409081015161ffff16910152565b60608101610b308284613877565b5f5f604083850312156138c5575f5ffd5b82356138d0816132ec565b91506020830135613408816132ec565b5f602082840312156138f0575f5ffd5b613078826132d9565b80518015158114610f28575f5ffd5b5f60208284031215613918575f5ffd5b613078826138f9565b600181811c9082168061393557607f821691505b60208210810361395357634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b6001600160801b038181168382160190811115610b3057610b30613959565b60408101610b30828480516001600160801b03908116835260209182015116910152565b8181035f831280158383131683831282161715611c5f57611c5f613959565b80820180821115610b3057610b30613959565b81810381811115610b3057610b30613959565b8082028115828204841417610b3057610b30613959565b634e487b7160e01b5f52601260045260245ffd5b5f82613a2e57613a2e613a0c565b500490565b5f60208284031215613a43575f5ffd5b81516130788161303e565b61ffff8181168382160190811115610b3057610b30613959565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b6001600160801b038281168282160390811115610b3057610b30613959565b8082025f8212600160ff1b84141615613aca57613aca613959565b8181058314821517610b3057610b30613959565b5f82613aec57613aec613a0c565b600160ff1b82145f1984141615613b0557613b05613959565b500590565b5f60208284031215613b1a575f5ffd5b5051919050565b6101008101613b308287613877565b613b3d6060830186613877565b6001600160801b03841660c08301526001600160801b03831660e083015295945050505050565b5f5f8335601e19843603018112613b79575f5ffd5b8301803591506001600160401b03821115613b92575f5ffd5b602001915036819003821315613ba6575f5ffd5b9250929050565b818382375f9101908152919050565b5f60018201613bcd57613bcd613959565b5060010190565b5f6060828403128015613be5575f5ffd5b50613bee613114565b8251613bf9816132ec565b81526020830151613c09816132ec565b6020820152613c1a604084016138f9565b60408201529392505050565b8082018281125f831280158216821582161715613c4557613c45613959565b505092915050565b601f82111561274757805f5260205f20601f840160051c81016020851015613c725750805b601f840160051c820191505b8181101561283c575f8155600101613c7e565b81516001600160401b03811115613caa57613caa613100565b613cbe81613cb88454613921565b84613c4d565b6020601f821160018114613cf0575f8315613cd95750848201515b5f19600385901b1c1916600184901b17845561283c565b5f84815260208120601f198516915b82811015613d1f5787850151825560209485019460019092019101613cff565b5084821015613d3c57868401515f19600387901b60f8161c191681555b50505050600190811b0190555056fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00a2646970667358221220803014d921e63bd065735c762b5a49194b8910c4c56d8ae942947bedeaad013064736f6c634300081e0033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly type: "constructor";
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly name: "protocolAddress";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
readonly internalType: "address payable";
|
|
24
|
+
}];
|
|
25
|
+
readonly stateMutability: "nonpayable";
|
|
26
|
+
}, {
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
readonly name: "accountFeeBasis";
|
|
29
|
+
readonly inputs: readonly [{
|
|
30
|
+
readonly name: "account";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
readonly internalType: "address";
|
|
33
|
+
}];
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly name: "";
|
|
36
|
+
readonly type: "uint128";
|
|
37
|
+
readonly internalType: "uint128";
|
|
38
|
+
}];
|
|
39
|
+
readonly stateMutability: "view";
|
|
40
|
+
}, {
|
|
41
|
+
readonly type: "function";
|
|
42
|
+
readonly name: "accrueManagementFee";
|
|
43
|
+
readonly inputs: readonly [];
|
|
44
|
+
readonly outputs: readonly [];
|
|
45
|
+
readonly stateMutability: "nonpayable";
|
|
46
|
+
}, {
|
|
47
|
+
readonly type: "function";
|
|
48
|
+
readonly name: "addAsset";
|
|
49
|
+
readonly inputs: readonly [{
|
|
50
|
+
readonly name: "asset";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
readonly internalType: "contract IERC20";
|
|
53
|
+
}];
|
|
54
|
+
readonly outputs: readonly [];
|
|
55
|
+
readonly stateMutability: "nonpayable";
|
|
56
|
+
}, {
|
|
57
|
+
readonly type: "function";
|
|
58
|
+
readonly name: "allowance";
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly name: "owner";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
readonly internalType: "address";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "spender";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
readonly internalType: "address";
|
|
67
|
+
}];
|
|
68
|
+
readonly outputs: readonly [{
|
|
69
|
+
readonly name: "";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
readonly internalType: "uint256";
|
|
72
|
+
}];
|
|
73
|
+
readonly stateMutability: "view";
|
|
74
|
+
}, {
|
|
75
|
+
readonly type: "function";
|
|
76
|
+
readonly name: "approve";
|
|
77
|
+
readonly inputs: readonly [{
|
|
78
|
+
readonly name: "";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "";
|
|
83
|
+
readonly type: "uint256";
|
|
84
|
+
readonly internalType: "uint256";
|
|
85
|
+
}];
|
|
86
|
+
readonly outputs: readonly [{
|
|
87
|
+
readonly name: "";
|
|
88
|
+
readonly type: "bool";
|
|
89
|
+
readonly internalType: "bool";
|
|
90
|
+
}];
|
|
91
|
+
readonly stateMutability: "pure";
|
|
92
|
+
}, {
|
|
93
|
+
readonly type: "function";
|
|
94
|
+
readonly name: "assetCount";
|
|
95
|
+
readonly inputs: readonly [];
|
|
96
|
+
readonly outputs: readonly [{
|
|
97
|
+
readonly name: "";
|
|
98
|
+
readonly type: "uint256";
|
|
99
|
+
readonly internalType: "uint256";
|
|
100
|
+
}];
|
|
101
|
+
readonly stateMutability: "view";
|
|
102
|
+
}, {
|
|
103
|
+
readonly type: "function";
|
|
104
|
+
readonly name: "assetSlot";
|
|
105
|
+
readonly inputs: readonly [{
|
|
106
|
+
readonly name: "asset";
|
|
107
|
+
readonly type: "address";
|
|
108
|
+
readonly internalType: "contract IERC20";
|
|
109
|
+
}];
|
|
110
|
+
readonly outputs: readonly [{
|
|
111
|
+
readonly name: "index";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
}];
|
|
115
|
+
readonly stateMutability: "view";
|
|
116
|
+
}, {
|
|
117
|
+
readonly type: "function";
|
|
118
|
+
readonly name: "assets";
|
|
119
|
+
readonly inputs: readonly [{
|
|
120
|
+
readonly name: "";
|
|
121
|
+
readonly type: "uint256";
|
|
122
|
+
readonly internalType: "uint256";
|
|
123
|
+
}];
|
|
124
|
+
readonly outputs: readonly [{
|
|
125
|
+
readonly name: "";
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
readonly internalType: "contract IERC20";
|
|
128
|
+
}];
|
|
129
|
+
readonly stateMutability: "view";
|
|
130
|
+
}, {
|
|
131
|
+
readonly type: "function";
|
|
132
|
+
readonly name: "assignedVirtualBuffer";
|
|
133
|
+
readonly inputs: readonly [];
|
|
134
|
+
readonly outputs: readonly [{
|
|
135
|
+
readonly name: "";
|
|
136
|
+
readonly type: "uint128";
|
|
137
|
+
readonly internalType: "uint128";
|
|
138
|
+
}];
|
|
139
|
+
readonly stateMutability: "view";
|
|
140
|
+
}, {
|
|
141
|
+
readonly type: "function";
|
|
142
|
+
readonly name: "availableBalanceOf";
|
|
143
|
+
readonly inputs: readonly [{
|
|
144
|
+
readonly name: "_account";
|
|
145
|
+
readonly type: "address";
|
|
146
|
+
readonly internalType: "address";
|
|
147
|
+
}];
|
|
148
|
+
readonly outputs: readonly [{
|
|
149
|
+
readonly name: "availableBalance";
|
|
150
|
+
readonly type: "uint256";
|
|
151
|
+
readonly internalType: "uint256";
|
|
152
|
+
}];
|
|
153
|
+
readonly stateMutability: "view";
|
|
154
|
+
}, {
|
|
155
|
+
readonly type: "function";
|
|
156
|
+
readonly name: "balanceOf";
|
|
157
|
+
readonly inputs: readonly [{
|
|
158
|
+
readonly name: "account";
|
|
159
|
+
readonly type: "address";
|
|
160
|
+
readonly internalType: "address";
|
|
161
|
+
}];
|
|
162
|
+
readonly outputs: readonly [{
|
|
163
|
+
readonly name: "balance";
|
|
164
|
+
readonly type: "uint256";
|
|
165
|
+
readonly internalType: "uint256";
|
|
166
|
+
}];
|
|
167
|
+
readonly stateMutability: "view";
|
|
168
|
+
}, {
|
|
169
|
+
readonly type: "function";
|
|
170
|
+
readonly name: "burn";
|
|
171
|
+
readonly inputs: readonly [{
|
|
172
|
+
readonly name: "account";
|
|
173
|
+
readonly type: "address";
|
|
174
|
+
readonly internalType: "address";
|
|
175
|
+
}, {
|
|
176
|
+
readonly name: "amount";
|
|
177
|
+
readonly type: "uint256";
|
|
178
|
+
readonly internalType: "uint256";
|
|
179
|
+
}, {
|
|
180
|
+
readonly name: "offset";
|
|
181
|
+
readonly type: "uint256";
|
|
182
|
+
readonly internalType: "uint256";
|
|
183
|
+
}];
|
|
184
|
+
readonly outputs: readonly [];
|
|
185
|
+
readonly stateMutability: "nonpayable";
|
|
186
|
+
}, {
|
|
187
|
+
readonly type: "function";
|
|
188
|
+
readonly name: "controller";
|
|
189
|
+
readonly inputs: readonly [];
|
|
190
|
+
readonly outputs: readonly [{
|
|
191
|
+
readonly name: "";
|
|
192
|
+
readonly type: "address";
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
}];
|
|
195
|
+
readonly stateMutability: "view";
|
|
196
|
+
}, {
|
|
197
|
+
readonly type: "function";
|
|
198
|
+
readonly name: "cooldownTime";
|
|
199
|
+
readonly inputs: readonly [];
|
|
200
|
+
readonly outputs: readonly [{
|
|
201
|
+
readonly name: "";
|
|
202
|
+
readonly type: "uint32";
|
|
203
|
+
readonly internalType: "uint32";
|
|
204
|
+
}];
|
|
205
|
+
readonly stateMutability: "view";
|
|
206
|
+
}, {
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
readonly name: "cursors";
|
|
209
|
+
readonly inputs: readonly [{
|
|
210
|
+
readonly name: "account";
|
|
211
|
+
readonly type: "address";
|
|
212
|
+
readonly internalType: "address";
|
|
213
|
+
}];
|
|
214
|
+
readonly outputs: readonly [{
|
|
215
|
+
readonly name: "";
|
|
216
|
+
readonly type: "tuple";
|
|
217
|
+
readonly internalType: "struct AccountCursor";
|
|
218
|
+
readonly components: readonly [{
|
|
219
|
+
readonly name: "principal";
|
|
220
|
+
readonly type: "uint128";
|
|
221
|
+
readonly internalType: "uint128";
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "virtualBuffer";
|
|
224
|
+
readonly type: "uint104";
|
|
225
|
+
readonly internalType: "uint104";
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "epoch";
|
|
228
|
+
readonly type: "uint16";
|
|
229
|
+
readonly internalType: "uint16";
|
|
230
|
+
}];
|
|
231
|
+
}];
|
|
232
|
+
readonly stateMutability: "view";
|
|
233
|
+
}, {
|
|
234
|
+
readonly type: "function";
|
|
235
|
+
readonly name: "decimals";
|
|
236
|
+
readonly inputs: readonly [];
|
|
237
|
+
readonly outputs: readonly [{
|
|
238
|
+
readonly name: "";
|
|
239
|
+
readonly type: "uint8";
|
|
240
|
+
readonly internalType: "uint8";
|
|
241
|
+
}];
|
|
242
|
+
readonly stateMutability: "view";
|
|
243
|
+
}, {
|
|
244
|
+
readonly type: "function";
|
|
245
|
+
readonly name: "epochFeeBasis";
|
|
246
|
+
readonly inputs: readonly [];
|
|
247
|
+
readonly outputs: readonly [{
|
|
248
|
+
readonly name: "";
|
|
249
|
+
readonly type: "uint128";
|
|
250
|
+
readonly internalType: "uint128";
|
|
251
|
+
}];
|
|
252
|
+
readonly stateMutability: "view";
|
|
253
|
+
}, {
|
|
254
|
+
readonly type: "function";
|
|
255
|
+
readonly name: "epochFeePerShare";
|
|
256
|
+
readonly inputs: readonly [{
|
|
257
|
+
readonly name: "price";
|
|
258
|
+
readonly type: "uint256";
|
|
259
|
+
readonly internalType: "uint256";
|
|
260
|
+
}];
|
|
261
|
+
readonly outputs: readonly [{
|
|
262
|
+
readonly name: "";
|
|
263
|
+
readonly type: "uint256";
|
|
264
|
+
readonly internalType: "uint256";
|
|
265
|
+
}];
|
|
266
|
+
readonly stateMutability: "view";
|
|
267
|
+
}, {
|
|
268
|
+
readonly type: "function";
|
|
269
|
+
readonly name: "epochs";
|
|
270
|
+
readonly inputs: readonly [];
|
|
271
|
+
readonly outputs: readonly [{
|
|
272
|
+
readonly name: "";
|
|
273
|
+
readonly type: "tuple[]";
|
|
274
|
+
readonly internalType: "struct Epoch[]";
|
|
275
|
+
readonly components: readonly [{
|
|
276
|
+
readonly name: "watermark";
|
|
277
|
+
readonly type: "uint128";
|
|
278
|
+
readonly internalType: "uint128";
|
|
279
|
+
}, {
|
|
280
|
+
readonly name: "priceBefore";
|
|
281
|
+
readonly type: "uint128";
|
|
282
|
+
readonly internalType: "uint128";
|
|
283
|
+
}];
|
|
284
|
+
}];
|
|
285
|
+
readonly stateMutability: "view";
|
|
286
|
+
}, {
|
|
287
|
+
readonly type: "function";
|
|
288
|
+
readonly name: "feeEpoch";
|
|
289
|
+
readonly inputs: readonly [];
|
|
290
|
+
readonly outputs: readonly [{
|
|
291
|
+
readonly name: "";
|
|
292
|
+
readonly type: "uint128";
|
|
293
|
+
readonly internalType: "uint128";
|
|
294
|
+
}];
|
|
295
|
+
readonly stateMutability: "view";
|
|
296
|
+
}, {
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
readonly name: "feePerShare";
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly name: "price";
|
|
301
|
+
readonly type: "uint256";
|
|
302
|
+
readonly internalType: "uint256";
|
|
303
|
+
}, {
|
|
304
|
+
readonly name: "basis";
|
|
305
|
+
readonly type: "uint256";
|
|
306
|
+
readonly internalType: "uint256";
|
|
307
|
+
}];
|
|
308
|
+
readonly outputs: readonly [{
|
|
309
|
+
readonly name: "";
|
|
310
|
+
readonly type: "uint256";
|
|
311
|
+
readonly internalType: "uint256";
|
|
312
|
+
}];
|
|
313
|
+
readonly stateMutability: "view";
|
|
314
|
+
}, {
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
readonly name: "getAssets";
|
|
317
|
+
readonly inputs: readonly [];
|
|
318
|
+
readonly outputs: readonly [{
|
|
319
|
+
readonly name: "";
|
|
320
|
+
readonly type: "address[]";
|
|
321
|
+
readonly internalType: "contract IERC20[]";
|
|
322
|
+
}];
|
|
323
|
+
readonly stateMutability: "view";
|
|
324
|
+
}, {
|
|
325
|
+
readonly type: "function";
|
|
326
|
+
readonly name: "getCooldownByUser";
|
|
327
|
+
readonly inputs: readonly [{
|
|
328
|
+
readonly name: "_account";
|
|
329
|
+
readonly type: "address";
|
|
330
|
+
readonly internalType: "address";
|
|
331
|
+
}];
|
|
332
|
+
readonly outputs: readonly [{
|
|
333
|
+
readonly name: "";
|
|
334
|
+
readonly type: "tuple";
|
|
335
|
+
readonly internalType: "struct LedgerCooldown.CooldownsByUser";
|
|
336
|
+
readonly components: readonly [{
|
|
337
|
+
readonly name: "offset";
|
|
338
|
+
readonly type: "uint256";
|
|
339
|
+
readonly internalType: "uint256";
|
|
340
|
+
}, {
|
|
341
|
+
readonly name: "cooldowns";
|
|
342
|
+
readonly type: "tuple[]";
|
|
343
|
+
readonly internalType: "struct LedgerCooldown.Cooldown[]";
|
|
344
|
+
readonly components: readonly [{
|
|
345
|
+
readonly name: "expiresAt";
|
|
346
|
+
readonly type: "uint256";
|
|
347
|
+
readonly internalType: "uint256";
|
|
348
|
+
}, {
|
|
349
|
+
readonly name: "amount";
|
|
350
|
+
readonly type: "uint256";
|
|
351
|
+
readonly internalType: "uint256";
|
|
352
|
+
}];
|
|
353
|
+
}];
|
|
354
|
+
}];
|
|
355
|
+
readonly stateMutability: "view";
|
|
356
|
+
}, {
|
|
357
|
+
readonly type: "function";
|
|
358
|
+
readonly name: "getPendingEpochs";
|
|
359
|
+
readonly inputs: readonly [{
|
|
360
|
+
readonly name: "account";
|
|
361
|
+
readonly type: "address";
|
|
362
|
+
readonly internalType: "address";
|
|
363
|
+
}];
|
|
364
|
+
readonly outputs: readonly [{
|
|
365
|
+
readonly name: "_pendingEpochs";
|
|
366
|
+
readonly type: "tuple[]";
|
|
367
|
+
readonly internalType: "struct Epoch[]";
|
|
368
|
+
readonly components: readonly [{
|
|
369
|
+
readonly name: "watermark";
|
|
370
|
+
readonly type: "uint128";
|
|
371
|
+
readonly internalType: "uint128";
|
|
372
|
+
}, {
|
|
373
|
+
readonly name: "priceBefore";
|
|
374
|
+
readonly type: "uint128";
|
|
375
|
+
readonly internalType: "uint128";
|
|
376
|
+
}];
|
|
377
|
+
}];
|
|
378
|
+
readonly stateMutability: "view";
|
|
379
|
+
}, {
|
|
380
|
+
readonly type: "function";
|
|
381
|
+
readonly name: "gracePeriodEnd";
|
|
382
|
+
readonly inputs: readonly [];
|
|
383
|
+
readonly outputs: readonly [{
|
|
384
|
+
readonly name: "";
|
|
385
|
+
readonly type: "uint48";
|
|
386
|
+
readonly internalType: "uint48";
|
|
387
|
+
}];
|
|
388
|
+
readonly stateMutability: "view";
|
|
389
|
+
}, {
|
|
390
|
+
readonly type: "function";
|
|
391
|
+
readonly name: "hasCooldown";
|
|
392
|
+
readonly inputs: readonly [{
|
|
393
|
+
readonly name: "_account";
|
|
394
|
+
readonly type: "address";
|
|
395
|
+
readonly internalType: "address";
|
|
396
|
+
}];
|
|
397
|
+
readonly outputs: readonly [{
|
|
398
|
+
readonly name: "";
|
|
399
|
+
readonly type: "bool";
|
|
400
|
+
readonly internalType: "bool";
|
|
401
|
+
}];
|
|
402
|
+
readonly stateMutability: "view";
|
|
403
|
+
}, {
|
|
404
|
+
readonly type: "function";
|
|
405
|
+
readonly name: "initialize";
|
|
406
|
+
readonly inputs: readonly [{
|
|
407
|
+
readonly name: "vault";
|
|
408
|
+
readonly type: "address";
|
|
409
|
+
readonly internalType: "contract FundVault";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "coin";
|
|
412
|
+
readonly type: "address";
|
|
413
|
+
readonly internalType: "contract IERC20";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "name";
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
readonly internalType: "string";
|
|
418
|
+
}, {
|
|
419
|
+
readonly name: "symbol";
|
|
420
|
+
readonly type: "string";
|
|
421
|
+
readonly internalType: "string";
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "minDepositUsd";
|
|
424
|
+
readonly type: "uint96";
|
|
425
|
+
readonly internalType: "uint96";
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "cooldownTime";
|
|
428
|
+
readonly type: "uint32";
|
|
429
|
+
readonly internalType: "uint32";
|
|
430
|
+
}, {
|
|
431
|
+
readonly name: "managerProfitFeeBps";
|
|
432
|
+
readonly type: "uint16";
|
|
433
|
+
readonly internalType: "uint16";
|
|
434
|
+
}, {
|
|
435
|
+
readonly name: "managerManagementFeeBps";
|
|
436
|
+
readonly type: "uint16";
|
|
437
|
+
readonly internalType: "uint16";
|
|
438
|
+
}, {
|
|
439
|
+
readonly name: "referrer";
|
|
440
|
+
readonly type: "address";
|
|
441
|
+
readonly internalType: "address";
|
|
442
|
+
}];
|
|
443
|
+
readonly outputs: readonly [];
|
|
444
|
+
readonly stateMutability: "nonpayable";
|
|
445
|
+
}, {
|
|
446
|
+
readonly type: "function";
|
|
447
|
+
readonly name: "isOpen";
|
|
448
|
+
readonly inputs: readonly [];
|
|
449
|
+
readonly outputs: readonly [{
|
|
450
|
+
readonly name: "";
|
|
451
|
+
readonly type: "bool";
|
|
452
|
+
readonly internalType: "bool";
|
|
453
|
+
}];
|
|
454
|
+
readonly stateMutability: "view";
|
|
455
|
+
}, {
|
|
456
|
+
readonly type: "function";
|
|
457
|
+
readonly name: "latestCheckpointTimestamp";
|
|
458
|
+
readonly inputs: readonly [];
|
|
459
|
+
readonly outputs: readonly [{
|
|
460
|
+
readonly name: "";
|
|
461
|
+
readonly type: "uint48";
|
|
462
|
+
readonly internalType: "uint48";
|
|
463
|
+
}];
|
|
464
|
+
readonly stateMutability: "view";
|
|
465
|
+
}, {
|
|
466
|
+
readonly type: "function";
|
|
467
|
+
readonly name: "latestManagementFeeTimestamp";
|
|
468
|
+
readonly inputs: readonly [];
|
|
469
|
+
readonly outputs: readonly [{
|
|
470
|
+
readonly name: "";
|
|
471
|
+
readonly type: "uint48";
|
|
472
|
+
readonly internalType: "uint48";
|
|
473
|
+
}];
|
|
474
|
+
readonly stateMutability: "view";
|
|
475
|
+
}, {
|
|
476
|
+
readonly type: "function";
|
|
477
|
+
readonly name: "managementFeeBps";
|
|
478
|
+
readonly inputs: readonly [];
|
|
479
|
+
readonly outputs: readonly [{
|
|
480
|
+
readonly name: "";
|
|
481
|
+
readonly type: "uint256";
|
|
482
|
+
readonly internalType: "uint256";
|
|
483
|
+
}];
|
|
484
|
+
readonly stateMutability: "view";
|
|
485
|
+
}, {
|
|
486
|
+
readonly type: "function";
|
|
487
|
+
readonly name: "manager";
|
|
488
|
+
readonly inputs: readonly [];
|
|
489
|
+
readonly outputs: readonly [{
|
|
490
|
+
readonly name: "";
|
|
491
|
+
readonly type: "address";
|
|
492
|
+
readonly internalType: "address";
|
|
493
|
+
}];
|
|
494
|
+
readonly stateMutability: "view";
|
|
495
|
+
}, {
|
|
496
|
+
readonly type: "function";
|
|
497
|
+
readonly name: "managerManagementFeeBps";
|
|
498
|
+
readonly inputs: readonly [];
|
|
499
|
+
readonly outputs: readonly [{
|
|
500
|
+
readonly name: "";
|
|
501
|
+
readonly type: "uint16";
|
|
502
|
+
readonly internalType: "uint16";
|
|
503
|
+
}];
|
|
504
|
+
readonly stateMutability: "view";
|
|
505
|
+
}, {
|
|
506
|
+
readonly type: "function";
|
|
507
|
+
readonly name: "managerProfitFeeBps";
|
|
508
|
+
readonly inputs: readonly [];
|
|
509
|
+
readonly outputs: readonly [{
|
|
510
|
+
readonly name: "";
|
|
511
|
+
readonly type: "uint16";
|
|
512
|
+
readonly internalType: "uint16";
|
|
513
|
+
}];
|
|
514
|
+
readonly stateMutability: "view";
|
|
515
|
+
}, {
|
|
516
|
+
readonly type: "function";
|
|
517
|
+
readonly name: "minDepositUsd";
|
|
518
|
+
readonly inputs: readonly [];
|
|
519
|
+
readonly outputs: readonly [{
|
|
520
|
+
readonly name: "";
|
|
521
|
+
readonly type: "uint96";
|
|
522
|
+
readonly internalType: "uint96";
|
|
523
|
+
}];
|
|
524
|
+
readonly stateMutability: "view";
|
|
525
|
+
}, {
|
|
526
|
+
readonly type: "function";
|
|
527
|
+
readonly name: "mint";
|
|
528
|
+
readonly inputs: readonly [{
|
|
529
|
+
readonly name: "account";
|
|
530
|
+
readonly type: "address";
|
|
531
|
+
readonly internalType: "address";
|
|
532
|
+
}, {
|
|
533
|
+
readonly name: "amount";
|
|
534
|
+
readonly type: "uint256";
|
|
535
|
+
readonly internalType: "uint256";
|
|
536
|
+
}, {
|
|
537
|
+
readonly name: "offset";
|
|
538
|
+
readonly type: "uint256";
|
|
539
|
+
readonly internalType: "uint256";
|
|
540
|
+
}];
|
|
541
|
+
readonly outputs: readonly [];
|
|
542
|
+
readonly stateMutability: "nonpayable";
|
|
543
|
+
}, {
|
|
544
|
+
readonly type: "function";
|
|
545
|
+
readonly name: "multicall";
|
|
546
|
+
readonly inputs: readonly [{
|
|
547
|
+
readonly name: "data";
|
|
548
|
+
readonly type: "bytes[]";
|
|
549
|
+
readonly internalType: "bytes[]";
|
|
550
|
+
}];
|
|
551
|
+
readonly outputs: readonly [{
|
|
552
|
+
readonly name: "results";
|
|
553
|
+
readonly type: "bytes[]";
|
|
554
|
+
readonly internalType: "bytes[]";
|
|
555
|
+
}];
|
|
556
|
+
readonly stateMutability: "view";
|
|
557
|
+
}, {
|
|
558
|
+
readonly type: "function";
|
|
559
|
+
readonly name: "name";
|
|
560
|
+
readonly inputs: readonly [];
|
|
561
|
+
readonly outputs: readonly [{
|
|
562
|
+
readonly name: "";
|
|
563
|
+
readonly type: "string";
|
|
564
|
+
readonly internalType: "string";
|
|
565
|
+
}];
|
|
566
|
+
readonly stateMutability: "view";
|
|
567
|
+
}, {
|
|
568
|
+
readonly type: "function";
|
|
569
|
+
readonly name: "preAdjustedBalanceOf";
|
|
570
|
+
readonly inputs: readonly [{
|
|
571
|
+
readonly name: "account";
|
|
572
|
+
readonly type: "address";
|
|
573
|
+
readonly internalType: "address";
|
|
574
|
+
}];
|
|
575
|
+
readonly outputs: readonly [{
|
|
576
|
+
readonly name: "";
|
|
577
|
+
readonly type: "uint256";
|
|
578
|
+
readonly internalType: "uint256";
|
|
579
|
+
}];
|
|
580
|
+
readonly stateMutability: "view";
|
|
581
|
+
}, {
|
|
582
|
+
readonly type: "function";
|
|
583
|
+
readonly name: "profitFeeBps";
|
|
584
|
+
readonly inputs: readonly [];
|
|
585
|
+
readonly outputs: readonly [{
|
|
586
|
+
readonly name: "";
|
|
587
|
+
readonly type: "uint256";
|
|
588
|
+
readonly internalType: "uint256";
|
|
589
|
+
}];
|
|
590
|
+
readonly stateMutability: "view";
|
|
591
|
+
}, {
|
|
592
|
+
readonly type: "function";
|
|
593
|
+
readonly name: "protocol";
|
|
594
|
+
readonly inputs: readonly [];
|
|
595
|
+
readonly outputs: readonly [{
|
|
596
|
+
readonly name: "";
|
|
597
|
+
readonly type: "address";
|
|
598
|
+
readonly internalType: "contract Protocol";
|
|
599
|
+
}];
|
|
600
|
+
readonly stateMutability: "view";
|
|
601
|
+
}, {
|
|
602
|
+
readonly type: "function";
|
|
603
|
+
readonly name: "rawTotalSupply";
|
|
604
|
+
readonly inputs: readonly [];
|
|
605
|
+
readonly outputs: readonly [{
|
|
606
|
+
readonly name: "";
|
|
607
|
+
readonly type: "uint256";
|
|
608
|
+
readonly internalType: "uint256";
|
|
609
|
+
}];
|
|
610
|
+
readonly stateMutability: "view";
|
|
611
|
+
}, {
|
|
612
|
+
readonly type: "function";
|
|
613
|
+
readonly name: "referrer";
|
|
614
|
+
readonly inputs: readonly [];
|
|
615
|
+
readonly outputs: readonly [{
|
|
616
|
+
readonly name: "";
|
|
617
|
+
readonly type: "address";
|
|
618
|
+
readonly internalType: "address";
|
|
619
|
+
}];
|
|
620
|
+
readonly stateMutability: "view";
|
|
621
|
+
}, {
|
|
622
|
+
readonly type: "function";
|
|
623
|
+
readonly name: "referrerManagementFeeBps";
|
|
624
|
+
readonly inputs: readonly [];
|
|
625
|
+
readonly outputs: readonly [{
|
|
626
|
+
readonly name: "";
|
|
627
|
+
readonly type: "uint16";
|
|
628
|
+
readonly internalType: "uint16";
|
|
629
|
+
}];
|
|
630
|
+
readonly stateMutability: "view";
|
|
631
|
+
}, {
|
|
632
|
+
readonly type: "function";
|
|
633
|
+
readonly name: "referrerProfitFeeBps";
|
|
634
|
+
readonly inputs: readonly [];
|
|
635
|
+
readonly outputs: readonly [{
|
|
636
|
+
readonly name: "";
|
|
637
|
+
readonly type: "uint16";
|
|
638
|
+
readonly internalType: "uint16";
|
|
639
|
+
}];
|
|
640
|
+
readonly stateMutability: "view";
|
|
641
|
+
}, {
|
|
642
|
+
readonly type: "function";
|
|
643
|
+
readonly name: "registerClosure";
|
|
644
|
+
readonly inputs: readonly [{
|
|
645
|
+
readonly name: "coin";
|
|
646
|
+
readonly type: "address";
|
|
647
|
+
readonly internalType: "contract IERC20";
|
|
648
|
+
}];
|
|
649
|
+
readonly outputs: readonly [];
|
|
650
|
+
readonly stateMutability: "nonpayable";
|
|
651
|
+
}, {
|
|
652
|
+
readonly type: "function";
|
|
653
|
+
readonly name: "registerCursor";
|
|
654
|
+
readonly inputs: readonly [{
|
|
655
|
+
readonly name: "account";
|
|
656
|
+
readonly type: "address";
|
|
657
|
+
readonly internalType: "address";
|
|
658
|
+
}, {
|
|
659
|
+
readonly name: "cursorBefore";
|
|
660
|
+
readonly type: "tuple";
|
|
661
|
+
readonly internalType: "struct AccountCursor";
|
|
662
|
+
readonly components: readonly [{
|
|
663
|
+
readonly name: "principal";
|
|
664
|
+
readonly type: "uint128";
|
|
665
|
+
readonly internalType: "uint128";
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "virtualBuffer";
|
|
668
|
+
readonly type: "uint104";
|
|
669
|
+
readonly internalType: "uint104";
|
|
670
|
+
}, {
|
|
671
|
+
readonly name: "epoch";
|
|
672
|
+
readonly type: "uint16";
|
|
673
|
+
readonly internalType: "uint16";
|
|
674
|
+
}];
|
|
675
|
+
}, {
|
|
676
|
+
readonly name: "cursorAfter";
|
|
677
|
+
readonly type: "tuple";
|
|
678
|
+
readonly internalType: "struct AccountCursor";
|
|
679
|
+
readonly components: readonly [{
|
|
680
|
+
readonly name: "principal";
|
|
681
|
+
readonly type: "uint128";
|
|
682
|
+
readonly internalType: "uint128";
|
|
683
|
+
}, {
|
|
684
|
+
readonly name: "virtualBuffer";
|
|
685
|
+
readonly type: "uint104";
|
|
686
|
+
readonly internalType: "uint104";
|
|
687
|
+
}, {
|
|
688
|
+
readonly name: "epoch";
|
|
689
|
+
readonly type: "uint16";
|
|
690
|
+
readonly internalType: "uint16";
|
|
691
|
+
}];
|
|
692
|
+
}, {
|
|
693
|
+
readonly name: "newUnassignedVirtBuf";
|
|
694
|
+
readonly type: "uint128";
|
|
695
|
+
readonly internalType: "uint128";
|
|
696
|
+
}, {
|
|
697
|
+
readonly name: "newAssignedVirtBuf";
|
|
698
|
+
readonly type: "uint128";
|
|
699
|
+
readonly internalType: "uint128";
|
|
700
|
+
}];
|
|
701
|
+
readonly outputs: readonly [];
|
|
702
|
+
readonly stateMutability: "nonpayable";
|
|
703
|
+
}, {
|
|
704
|
+
readonly type: "function";
|
|
705
|
+
readonly name: "registerDeposit";
|
|
706
|
+
readonly inputs: readonly [{
|
|
707
|
+
readonly name: "account";
|
|
708
|
+
readonly type: "address";
|
|
709
|
+
readonly internalType: "address";
|
|
710
|
+
}, {
|
|
711
|
+
readonly name: "coin";
|
|
712
|
+
readonly type: "address";
|
|
713
|
+
readonly internalType: "contract IERC20";
|
|
714
|
+
}, {
|
|
715
|
+
readonly name: "sharesAmount";
|
|
716
|
+
readonly type: "uint256";
|
|
717
|
+
readonly internalType: "uint256";
|
|
718
|
+
}, {
|
|
719
|
+
readonly name: "principalAmountIn";
|
|
720
|
+
readonly type: "uint256";
|
|
721
|
+
readonly internalType: "uint256";
|
|
722
|
+
}, {
|
|
723
|
+
readonly name: "fee";
|
|
724
|
+
readonly type: "uint256";
|
|
725
|
+
readonly internalType: "uint256";
|
|
726
|
+
}];
|
|
727
|
+
readonly outputs: readonly [];
|
|
728
|
+
readonly stateMutability: "nonpayable";
|
|
729
|
+
}, {
|
|
730
|
+
readonly type: "function";
|
|
731
|
+
readonly name: "registerEpoch";
|
|
732
|
+
readonly inputs: readonly [{
|
|
733
|
+
readonly name: "newEpoch";
|
|
734
|
+
readonly type: "tuple";
|
|
735
|
+
readonly internalType: "struct Epoch";
|
|
736
|
+
readonly components: readonly [{
|
|
737
|
+
readonly name: "watermark";
|
|
738
|
+
readonly type: "uint128";
|
|
739
|
+
readonly internalType: "uint128";
|
|
740
|
+
}, {
|
|
741
|
+
readonly name: "priceBefore";
|
|
742
|
+
readonly type: "uint128";
|
|
743
|
+
readonly internalType: "uint128";
|
|
744
|
+
}];
|
|
745
|
+
}, {
|
|
746
|
+
readonly name: "epochBufferDelta";
|
|
747
|
+
readonly type: "uint128";
|
|
748
|
+
readonly internalType: "uint128";
|
|
749
|
+
}];
|
|
750
|
+
readonly outputs: readonly [];
|
|
751
|
+
readonly stateMutability: "nonpayable";
|
|
752
|
+
}, {
|
|
753
|
+
readonly type: "function";
|
|
754
|
+
readonly name: "registerManagementFeeClaim";
|
|
755
|
+
readonly inputs: readonly [{
|
|
756
|
+
readonly name: "timestamp";
|
|
757
|
+
readonly type: "uint48";
|
|
758
|
+
readonly internalType: "uint48";
|
|
759
|
+
}];
|
|
760
|
+
readonly outputs: readonly [];
|
|
761
|
+
readonly stateMutability: "nonpayable";
|
|
762
|
+
}, {
|
|
763
|
+
readonly type: "function";
|
|
764
|
+
readonly name: "registerTransfer";
|
|
765
|
+
readonly inputs: readonly [{
|
|
766
|
+
readonly name: "ctx";
|
|
767
|
+
readonly type: "tuple";
|
|
768
|
+
readonly internalType: "struct TransferContext";
|
|
769
|
+
readonly components: readonly [{
|
|
770
|
+
readonly name: "from";
|
|
771
|
+
readonly type: "address";
|
|
772
|
+
readonly internalType: "address";
|
|
773
|
+
}, {
|
|
774
|
+
readonly name: "to";
|
|
775
|
+
readonly type: "address";
|
|
776
|
+
readonly internalType: "address";
|
|
777
|
+
}, {
|
|
778
|
+
readonly name: "fromCursor";
|
|
779
|
+
readonly type: "tuple";
|
|
780
|
+
readonly internalType: "struct AccountCursor";
|
|
781
|
+
readonly components: readonly [{
|
|
782
|
+
readonly name: "principal";
|
|
783
|
+
readonly type: "uint128";
|
|
784
|
+
readonly internalType: "uint128";
|
|
785
|
+
}, {
|
|
786
|
+
readonly name: "virtualBuffer";
|
|
787
|
+
readonly type: "uint104";
|
|
788
|
+
readonly internalType: "uint104";
|
|
789
|
+
}, {
|
|
790
|
+
readonly name: "epoch";
|
|
791
|
+
readonly type: "uint16";
|
|
792
|
+
readonly internalType: "uint16";
|
|
793
|
+
}];
|
|
794
|
+
}, {
|
|
795
|
+
readonly name: "toCursor";
|
|
796
|
+
readonly type: "tuple";
|
|
797
|
+
readonly internalType: "struct AccountCursor";
|
|
798
|
+
readonly components: readonly [{
|
|
799
|
+
readonly name: "principal";
|
|
800
|
+
readonly type: "uint128";
|
|
801
|
+
readonly internalType: "uint128";
|
|
802
|
+
}, {
|
|
803
|
+
readonly name: "virtualBuffer";
|
|
804
|
+
readonly type: "uint104";
|
|
805
|
+
readonly internalType: "uint104";
|
|
806
|
+
}, {
|
|
807
|
+
readonly name: "epoch";
|
|
808
|
+
readonly type: "uint16";
|
|
809
|
+
readonly internalType: "uint16";
|
|
810
|
+
}];
|
|
811
|
+
}, {
|
|
812
|
+
readonly name: "fromBalance";
|
|
813
|
+
readonly type: "uint256";
|
|
814
|
+
readonly internalType: "uint256";
|
|
815
|
+
}, {
|
|
816
|
+
readonly name: "amount";
|
|
817
|
+
readonly type: "uint256";
|
|
818
|
+
readonly internalType: "uint256";
|
|
819
|
+
}];
|
|
820
|
+
}];
|
|
821
|
+
readonly outputs: readonly [];
|
|
822
|
+
readonly stateMutability: "nonpayable";
|
|
823
|
+
}, {
|
|
824
|
+
readonly type: "function";
|
|
825
|
+
readonly name: "registerWithdrawal";
|
|
826
|
+
readonly inputs: readonly [{
|
|
827
|
+
readonly name: "account";
|
|
828
|
+
readonly type: "address";
|
|
829
|
+
readonly internalType: "address";
|
|
830
|
+
}, {
|
|
831
|
+
readonly name: "coin";
|
|
832
|
+
readonly type: "address";
|
|
833
|
+
readonly internalType: "contract IERC20";
|
|
834
|
+
}, {
|
|
835
|
+
readonly name: "sharesAmount";
|
|
836
|
+
readonly type: "uint256";
|
|
837
|
+
readonly internalType: "uint256";
|
|
838
|
+
}, {
|
|
839
|
+
readonly name: "principalAmountOut";
|
|
840
|
+
readonly type: "uint128";
|
|
841
|
+
readonly internalType: "uint128";
|
|
842
|
+
}, {
|
|
843
|
+
readonly name: "bufferAmountOut";
|
|
844
|
+
readonly type: "uint104";
|
|
845
|
+
readonly internalType: "uint104";
|
|
846
|
+
}, {
|
|
847
|
+
readonly name: "netAmountOut";
|
|
848
|
+
readonly type: "uint256";
|
|
849
|
+
readonly internalType: "uint256";
|
|
850
|
+
}, {
|
|
851
|
+
readonly name: "managerFee";
|
|
852
|
+
readonly type: "uint256";
|
|
853
|
+
readonly internalType: "uint256";
|
|
854
|
+
}, {
|
|
855
|
+
readonly name: "referrerFee";
|
|
856
|
+
readonly type: "uint256";
|
|
857
|
+
readonly internalType: "uint256";
|
|
858
|
+
}];
|
|
859
|
+
readonly outputs: readonly [];
|
|
860
|
+
readonly stateMutability: "nonpayable";
|
|
861
|
+
}, {
|
|
862
|
+
readonly type: "function";
|
|
863
|
+
readonly name: "removeAsset";
|
|
864
|
+
readonly inputs: readonly [{
|
|
865
|
+
readonly name: "asset";
|
|
866
|
+
readonly type: "address";
|
|
867
|
+
readonly internalType: "contract IERC20";
|
|
868
|
+
}];
|
|
869
|
+
readonly outputs: readonly [];
|
|
870
|
+
readonly stateMutability: "nonpayable";
|
|
871
|
+
}, {
|
|
872
|
+
readonly type: "function";
|
|
873
|
+
readonly name: "replaceAsset";
|
|
874
|
+
readonly inputs: readonly [{
|
|
875
|
+
readonly name: "oldAsset";
|
|
876
|
+
readonly type: "address";
|
|
877
|
+
readonly internalType: "contract IERC20";
|
|
878
|
+
}, {
|
|
879
|
+
readonly name: "newAsset";
|
|
880
|
+
readonly type: "address";
|
|
881
|
+
readonly internalType: "contract IERC20";
|
|
882
|
+
}];
|
|
883
|
+
readonly outputs: readonly [];
|
|
884
|
+
readonly stateMutability: "nonpayable";
|
|
885
|
+
}, {
|
|
886
|
+
readonly type: "function";
|
|
887
|
+
readonly name: "symbol";
|
|
888
|
+
readonly inputs: readonly [];
|
|
889
|
+
readonly outputs: readonly [{
|
|
890
|
+
readonly name: "";
|
|
891
|
+
readonly type: "string";
|
|
892
|
+
readonly internalType: "string";
|
|
893
|
+
}];
|
|
894
|
+
readonly stateMutability: "view";
|
|
895
|
+
}, {
|
|
896
|
+
readonly type: "function";
|
|
897
|
+
readonly name: "totalPrincipal";
|
|
898
|
+
readonly inputs: readonly [];
|
|
899
|
+
readonly outputs: readonly [{
|
|
900
|
+
readonly name: "";
|
|
901
|
+
readonly type: "uint256";
|
|
902
|
+
readonly internalType: "uint256";
|
|
903
|
+
}];
|
|
904
|
+
readonly stateMutability: "view";
|
|
905
|
+
}, {
|
|
906
|
+
readonly type: "function";
|
|
907
|
+
readonly name: "totalSupply";
|
|
908
|
+
readonly inputs: readonly [];
|
|
909
|
+
readonly outputs: readonly [{
|
|
910
|
+
readonly name: "";
|
|
911
|
+
readonly type: "uint256";
|
|
912
|
+
readonly internalType: "uint256";
|
|
913
|
+
}];
|
|
914
|
+
readonly stateMutability: "view";
|
|
915
|
+
}, {
|
|
916
|
+
readonly type: "function";
|
|
917
|
+
readonly name: "totalSupplyOffset";
|
|
918
|
+
readonly inputs: readonly [];
|
|
919
|
+
readonly outputs: readonly [{
|
|
920
|
+
readonly name: "";
|
|
921
|
+
readonly type: "int256";
|
|
922
|
+
readonly internalType: "int256";
|
|
923
|
+
}];
|
|
924
|
+
readonly stateMutability: "view";
|
|
925
|
+
}, {
|
|
926
|
+
readonly type: "function";
|
|
927
|
+
readonly name: "totalVirtualBuffer";
|
|
928
|
+
readonly inputs: readonly [];
|
|
929
|
+
readonly outputs: readonly [{
|
|
930
|
+
readonly name: "";
|
|
931
|
+
readonly type: "uint256";
|
|
932
|
+
readonly internalType: "uint256";
|
|
933
|
+
}];
|
|
934
|
+
readonly stateMutability: "view";
|
|
935
|
+
}, {
|
|
936
|
+
readonly type: "function";
|
|
937
|
+
readonly name: "totalVirtualPrincipal";
|
|
938
|
+
readonly inputs: readonly [];
|
|
939
|
+
readonly outputs: readonly [{
|
|
940
|
+
readonly name: "";
|
|
941
|
+
readonly type: "uint256";
|
|
942
|
+
readonly internalType: "uint256";
|
|
943
|
+
}];
|
|
944
|
+
readonly stateMutability: "view";
|
|
945
|
+
}, {
|
|
946
|
+
readonly type: "function";
|
|
947
|
+
readonly name: "transfer";
|
|
948
|
+
readonly inputs: readonly [{
|
|
949
|
+
readonly name: "to";
|
|
950
|
+
readonly type: "address";
|
|
951
|
+
readonly internalType: "address";
|
|
952
|
+
}, {
|
|
953
|
+
readonly name: "amount";
|
|
954
|
+
readonly type: "uint256";
|
|
955
|
+
readonly internalType: "uint256";
|
|
956
|
+
}];
|
|
957
|
+
readonly outputs: readonly [{
|
|
958
|
+
readonly name: "";
|
|
959
|
+
readonly type: "bool";
|
|
960
|
+
readonly internalType: "bool";
|
|
961
|
+
}];
|
|
962
|
+
readonly stateMutability: "nonpayable";
|
|
963
|
+
}, {
|
|
964
|
+
readonly type: "function";
|
|
965
|
+
readonly name: "transferFrom";
|
|
966
|
+
readonly inputs: readonly [{
|
|
967
|
+
readonly name: "from";
|
|
968
|
+
readonly type: "address";
|
|
969
|
+
readonly internalType: "address";
|
|
970
|
+
}, {
|
|
971
|
+
readonly name: "to";
|
|
972
|
+
readonly type: "address";
|
|
973
|
+
readonly internalType: "address";
|
|
974
|
+
}, {
|
|
975
|
+
readonly name: "amount";
|
|
976
|
+
readonly type: "uint256";
|
|
977
|
+
readonly internalType: "uint256";
|
|
978
|
+
}];
|
|
979
|
+
readonly outputs: readonly [{
|
|
980
|
+
readonly name: "";
|
|
981
|
+
readonly type: "bool";
|
|
982
|
+
readonly internalType: "bool";
|
|
983
|
+
}];
|
|
984
|
+
readonly stateMutability: "nonpayable";
|
|
985
|
+
}, {
|
|
986
|
+
readonly type: "function";
|
|
987
|
+
readonly name: "unassignedVirtualBuffer";
|
|
988
|
+
readonly inputs: readonly [];
|
|
989
|
+
readonly outputs: readonly [{
|
|
990
|
+
readonly name: "";
|
|
991
|
+
readonly type: "uint128";
|
|
992
|
+
readonly internalType: "uint128";
|
|
993
|
+
}];
|
|
994
|
+
readonly stateMutability: "view";
|
|
995
|
+
}, {
|
|
996
|
+
readonly type: "function";
|
|
997
|
+
readonly name: "updateController";
|
|
998
|
+
readonly inputs: readonly [{
|
|
999
|
+
readonly name: "newController";
|
|
1000
|
+
readonly type: "address";
|
|
1001
|
+
readonly internalType: "address";
|
|
1002
|
+
}];
|
|
1003
|
+
readonly outputs: readonly [];
|
|
1004
|
+
readonly stateMutability: "nonpayable";
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly type: "function";
|
|
1007
|
+
readonly name: "updateCooldownTime";
|
|
1008
|
+
readonly inputs: readonly [{
|
|
1009
|
+
readonly name: "newCooldownTime";
|
|
1010
|
+
readonly type: "uint32";
|
|
1011
|
+
readonly internalType: "uint32";
|
|
1012
|
+
}];
|
|
1013
|
+
readonly outputs: readonly [];
|
|
1014
|
+
readonly stateMutability: "nonpayable";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly type: "function";
|
|
1017
|
+
readonly name: "updateFees";
|
|
1018
|
+
readonly inputs: readonly [{
|
|
1019
|
+
readonly name: "newManagerProfitFeeBps";
|
|
1020
|
+
readonly type: "uint16";
|
|
1021
|
+
readonly internalType: "uint16";
|
|
1022
|
+
}, {
|
|
1023
|
+
readonly name: "newManagerManagementFeeBps";
|
|
1024
|
+
readonly type: "uint16";
|
|
1025
|
+
readonly internalType: "uint16";
|
|
1026
|
+
}];
|
|
1027
|
+
readonly outputs: readonly [];
|
|
1028
|
+
readonly stateMutability: "nonpayable";
|
|
1029
|
+
}, {
|
|
1030
|
+
readonly type: "function";
|
|
1031
|
+
readonly name: "updateManagerAddress";
|
|
1032
|
+
readonly inputs: readonly [{
|
|
1033
|
+
readonly name: "newManagerAddress";
|
|
1034
|
+
readonly type: "address";
|
|
1035
|
+
readonly internalType: "address";
|
|
1036
|
+
}];
|
|
1037
|
+
readonly outputs: readonly [];
|
|
1038
|
+
readonly stateMutability: "nonpayable";
|
|
1039
|
+
}, {
|
|
1040
|
+
readonly type: "function";
|
|
1041
|
+
readonly name: "updateMinDepositValue";
|
|
1042
|
+
readonly inputs: readonly [{
|
|
1043
|
+
readonly name: "newMinDepositUsd";
|
|
1044
|
+
readonly type: "uint96";
|
|
1045
|
+
readonly internalType: "uint96";
|
|
1046
|
+
}];
|
|
1047
|
+
readonly outputs: readonly [];
|
|
1048
|
+
readonly stateMutability: "nonpayable";
|
|
1049
|
+
}, {
|
|
1050
|
+
readonly type: "function";
|
|
1051
|
+
readonly name: "vault";
|
|
1052
|
+
readonly inputs: readonly [];
|
|
1053
|
+
readonly outputs: readonly [{
|
|
1054
|
+
readonly name: "";
|
|
1055
|
+
readonly type: "address";
|
|
1056
|
+
readonly internalType: "contract FundVault";
|
|
1057
|
+
}];
|
|
1058
|
+
readonly stateMutability: "view";
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly type: "function";
|
|
1061
|
+
readonly name: "virtualPrincipalOf";
|
|
1062
|
+
readonly inputs: readonly [{
|
|
1063
|
+
readonly name: "account";
|
|
1064
|
+
readonly type: "address";
|
|
1065
|
+
readonly internalType: "address";
|
|
1066
|
+
}];
|
|
1067
|
+
readonly outputs: readonly [{
|
|
1068
|
+
readonly name: "";
|
|
1069
|
+
readonly type: "uint256";
|
|
1070
|
+
readonly internalType: "uint256";
|
|
1071
|
+
}];
|
|
1072
|
+
readonly stateMutability: "view";
|
|
1073
|
+
}, {
|
|
1074
|
+
readonly type: "function";
|
|
1075
|
+
readonly name: "watermark";
|
|
1076
|
+
readonly inputs: readonly [];
|
|
1077
|
+
readonly outputs: readonly [{
|
|
1078
|
+
readonly name: "";
|
|
1079
|
+
readonly type: "uint128";
|
|
1080
|
+
readonly internalType: "uint128";
|
|
1081
|
+
}];
|
|
1082
|
+
readonly stateMutability: "view";
|
|
1083
|
+
}, {
|
|
1084
|
+
readonly type: "event";
|
|
1085
|
+
readonly name: "Approval";
|
|
1086
|
+
readonly inputs: readonly [{
|
|
1087
|
+
readonly name: "owner";
|
|
1088
|
+
readonly type: "address";
|
|
1089
|
+
readonly indexed: true;
|
|
1090
|
+
readonly internalType: "address";
|
|
1091
|
+
}, {
|
|
1092
|
+
readonly name: "spender";
|
|
1093
|
+
readonly type: "address";
|
|
1094
|
+
readonly indexed: true;
|
|
1095
|
+
readonly internalType: "address";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly name: "value";
|
|
1098
|
+
readonly type: "uint256";
|
|
1099
|
+
readonly indexed: false;
|
|
1100
|
+
readonly internalType: "uint256";
|
|
1101
|
+
}];
|
|
1102
|
+
readonly anonymous: false;
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly type: "event";
|
|
1105
|
+
readonly name: "ControllerUpdated";
|
|
1106
|
+
readonly inputs: readonly [{
|
|
1107
|
+
readonly name: "newController";
|
|
1108
|
+
readonly type: "address";
|
|
1109
|
+
readonly indexed: false;
|
|
1110
|
+
readonly internalType: "address";
|
|
1111
|
+
}];
|
|
1112
|
+
readonly anonymous: false;
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly type: "event";
|
|
1115
|
+
readonly name: "CooldownUpdated";
|
|
1116
|
+
readonly inputs: readonly [{
|
|
1117
|
+
readonly name: "newCooldown";
|
|
1118
|
+
readonly type: "uint32";
|
|
1119
|
+
readonly indexed: false;
|
|
1120
|
+
readonly internalType: "uint32";
|
|
1121
|
+
}];
|
|
1122
|
+
readonly anonymous: false;
|
|
1123
|
+
}, {
|
|
1124
|
+
readonly type: "event";
|
|
1125
|
+
readonly name: "CursorUpdated";
|
|
1126
|
+
readonly inputs: readonly [{
|
|
1127
|
+
readonly name: "account";
|
|
1128
|
+
readonly type: "address";
|
|
1129
|
+
readonly indexed: true;
|
|
1130
|
+
readonly internalType: "address";
|
|
1131
|
+
}, {
|
|
1132
|
+
readonly name: "epoch";
|
|
1133
|
+
readonly type: "uint256";
|
|
1134
|
+
readonly indexed: true;
|
|
1135
|
+
readonly internalType: "uint256";
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly name: "cursorBefore";
|
|
1138
|
+
readonly type: "tuple";
|
|
1139
|
+
readonly indexed: false;
|
|
1140
|
+
readonly internalType: "struct AccountCursor";
|
|
1141
|
+
readonly components: readonly [{
|
|
1142
|
+
readonly name: "principal";
|
|
1143
|
+
readonly type: "uint128";
|
|
1144
|
+
readonly internalType: "uint128";
|
|
1145
|
+
}, {
|
|
1146
|
+
readonly name: "virtualBuffer";
|
|
1147
|
+
readonly type: "uint104";
|
|
1148
|
+
readonly internalType: "uint104";
|
|
1149
|
+
}, {
|
|
1150
|
+
readonly name: "epoch";
|
|
1151
|
+
readonly type: "uint16";
|
|
1152
|
+
readonly internalType: "uint16";
|
|
1153
|
+
}];
|
|
1154
|
+
}, {
|
|
1155
|
+
readonly name: "cursorAfter";
|
|
1156
|
+
readonly type: "tuple";
|
|
1157
|
+
readonly indexed: false;
|
|
1158
|
+
readonly internalType: "struct AccountCursor";
|
|
1159
|
+
readonly components: readonly [{
|
|
1160
|
+
readonly name: "principal";
|
|
1161
|
+
readonly type: "uint128";
|
|
1162
|
+
readonly internalType: "uint128";
|
|
1163
|
+
}, {
|
|
1164
|
+
readonly name: "virtualBuffer";
|
|
1165
|
+
readonly type: "uint104";
|
|
1166
|
+
readonly internalType: "uint104";
|
|
1167
|
+
}, {
|
|
1168
|
+
readonly name: "epoch";
|
|
1169
|
+
readonly type: "uint16";
|
|
1170
|
+
readonly internalType: "uint16";
|
|
1171
|
+
}];
|
|
1172
|
+
}, {
|
|
1173
|
+
readonly name: "newUnassignedVirtBuf";
|
|
1174
|
+
readonly type: "uint128";
|
|
1175
|
+
readonly indexed: false;
|
|
1176
|
+
readonly internalType: "uint128";
|
|
1177
|
+
}, {
|
|
1178
|
+
readonly name: "newAssignedVirtBuf";
|
|
1179
|
+
readonly type: "uint128";
|
|
1180
|
+
readonly indexed: false;
|
|
1181
|
+
readonly internalType: "uint128";
|
|
1182
|
+
}];
|
|
1183
|
+
readonly anonymous: false;
|
|
1184
|
+
}, {
|
|
1185
|
+
readonly type: "event";
|
|
1186
|
+
readonly name: "Deposited";
|
|
1187
|
+
readonly inputs: readonly [{
|
|
1188
|
+
readonly name: "account";
|
|
1189
|
+
readonly type: "address";
|
|
1190
|
+
readonly indexed: true;
|
|
1191
|
+
readonly internalType: "address";
|
|
1192
|
+
}, {
|
|
1193
|
+
readonly name: "coin";
|
|
1194
|
+
readonly type: "address";
|
|
1195
|
+
readonly indexed: false;
|
|
1196
|
+
readonly internalType: "contract IERC20";
|
|
1197
|
+
}, {
|
|
1198
|
+
readonly name: "shares";
|
|
1199
|
+
readonly type: "uint256";
|
|
1200
|
+
readonly indexed: false;
|
|
1201
|
+
readonly internalType: "uint256";
|
|
1202
|
+
}, {
|
|
1203
|
+
readonly name: "principalAmountIn";
|
|
1204
|
+
readonly type: "uint256";
|
|
1205
|
+
readonly indexed: false;
|
|
1206
|
+
readonly internalType: "uint256";
|
|
1207
|
+
}, {
|
|
1208
|
+
readonly name: "fee";
|
|
1209
|
+
readonly type: "uint256";
|
|
1210
|
+
readonly indexed: false;
|
|
1211
|
+
readonly internalType: "uint256";
|
|
1212
|
+
}];
|
|
1213
|
+
readonly anonymous: false;
|
|
1214
|
+
}, {
|
|
1215
|
+
readonly type: "event";
|
|
1216
|
+
readonly name: "EpochAdvanced";
|
|
1217
|
+
readonly inputs: readonly [{
|
|
1218
|
+
readonly name: "epoch";
|
|
1219
|
+
readonly type: "tuple";
|
|
1220
|
+
readonly indexed: false;
|
|
1221
|
+
readonly internalType: "struct Epoch";
|
|
1222
|
+
readonly components: readonly [{
|
|
1223
|
+
readonly name: "watermark";
|
|
1224
|
+
readonly type: "uint128";
|
|
1225
|
+
readonly internalType: "uint128";
|
|
1226
|
+
}, {
|
|
1227
|
+
readonly name: "priceBefore";
|
|
1228
|
+
readonly type: "uint128";
|
|
1229
|
+
readonly internalType: "uint128";
|
|
1230
|
+
}];
|
|
1231
|
+
}];
|
|
1232
|
+
readonly anonymous: false;
|
|
1233
|
+
}, {
|
|
1234
|
+
readonly type: "event";
|
|
1235
|
+
readonly name: "FundClosed";
|
|
1236
|
+
readonly inputs: readonly [{
|
|
1237
|
+
readonly name: "gracePeriodEnd";
|
|
1238
|
+
readonly type: "uint48";
|
|
1239
|
+
readonly indexed: false;
|
|
1240
|
+
readonly internalType: "uint48";
|
|
1241
|
+
}];
|
|
1242
|
+
readonly anonymous: false;
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly type: "event";
|
|
1245
|
+
readonly name: "Initialized";
|
|
1246
|
+
readonly inputs: readonly [{
|
|
1247
|
+
readonly name: "version";
|
|
1248
|
+
readonly type: "uint64";
|
|
1249
|
+
readonly indexed: false;
|
|
1250
|
+
readonly internalType: "uint64";
|
|
1251
|
+
}];
|
|
1252
|
+
readonly anonymous: false;
|
|
1253
|
+
}, {
|
|
1254
|
+
readonly type: "event";
|
|
1255
|
+
readonly name: "ManagementFeeClaimed";
|
|
1256
|
+
readonly inputs: readonly [{
|
|
1257
|
+
readonly name: "timestamp";
|
|
1258
|
+
readonly type: "uint48";
|
|
1259
|
+
readonly indexed: false;
|
|
1260
|
+
readonly internalType: "uint48";
|
|
1261
|
+
}];
|
|
1262
|
+
readonly anonymous: false;
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly type: "event";
|
|
1265
|
+
readonly name: "ManagerAddressUpdated";
|
|
1266
|
+
readonly inputs: readonly [{
|
|
1267
|
+
readonly name: "newManagerAddress";
|
|
1268
|
+
readonly type: "address";
|
|
1269
|
+
readonly indexed: false;
|
|
1270
|
+
readonly internalType: "address";
|
|
1271
|
+
}];
|
|
1272
|
+
readonly anonymous: false;
|
|
1273
|
+
}, {
|
|
1274
|
+
readonly type: "event";
|
|
1275
|
+
readonly name: "ManagerProfitFeeUpdated";
|
|
1276
|
+
readonly inputs: readonly [{
|
|
1277
|
+
readonly name: "newManagerProfitFeeBps";
|
|
1278
|
+
readonly type: "uint16";
|
|
1279
|
+
readonly indexed: false;
|
|
1280
|
+
readonly internalType: "uint16";
|
|
1281
|
+
}];
|
|
1282
|
+
readonly anonymous: false;
|
|
1283
|
+
}, {
|
|
1284
|
+
readonly type: "event";
|
|
1285
|
+
readonly name: "MinDepositUpdated";
|
|
1286
|
+
readonly inputs: readonly [{
|
|
1287
|
+
readonly name: "newMinimum";
|
|
1288
|
+
readonly type: "uint96";
|
|
1289
|
+
readonly indexed: false;
|
|
1290
|
+
readonly internalType: "uint96";
|
|
1291
|
+
}];
|
|
1292
|
+
readonly anonymous: false;
|
|
1293
|
+
}, {
|
|
1294
|
+
readonly type: "event";
|
|
1295
|
+
readonly name: "Transfer";
|
|
1296
|
+
readonly inputs: readonly [{
|
|
1297
|
+
readonly name: "from";
|
|
1298
|
+
readonly type: "address";
|
|
1299
|
+
readonly indexed: true;
|
|
1300
|
+
readonly internalType: "address";
|
|
1301
|
+
}, {
|
|
1302
|
+
readonly name: "to";
|
|
1303
|
+
readonly type: "address";
|
|
1304
|
+
readonly indexed: true;
|
|
1305
|
+
readonly internalType: "address";
|
|
1306
|
+
}, {
|
|
1307
|
+
readonly name: "value";
|
|
1308
|
+
readonly type: "uint256";
|
|
1309
|
+
readonly indexed: false;
|
|
1310
|
+
readonly internalType: "uint256";
|
|
1311
|
+
}];
|
|
1312
|
+
readonly anonymous: false;
|
|
1313
|
+
}, {
|
|
1314
|
+
readonly type: "event";
|
|
1315
|
+
readonly name: "Withdrawn";
|
|
1316
|
+
readonly inputs: readonly [{
|
|
1317
|
+
readonly name: "account";
|
|
1318
|
+
readonly type: "address";
|
|
1319
|
+
readonly indexed: true;
|
|
1320
|
+
readonly internalType: "address";
|
|
1321
|
+
}, {
|
|
1322
|
+
readonly name: "coin";
|
|
1323
|
+
readonly type: "address";
|
|
1324
|
+
readonly indexed: false;
|
|
1325
|
+
readonly internalType: "contract IERC20";
|
|
1326
|
+
}, {
|
|
1327
|
+
readonly name: "shares";
|
|
1328
|
+
readonly type: "uint256";
|
|
1329
|
+
readonly indexed: false;
|
|
1330
|
+
readonly internalType: "uint256";
|
|
1331
|
+
}, {
|
|
1332
|
+
readonly name: "principalAmountOut";
|
|
1333
|
+
readonly type: "uint256";
|
|
1334
|
+
readonly indexed: false;
|
|
1335
|
+
readonly internalType: "uint256";
|
|
1336
|
+
}, {
|
|
1337
|
+
readonly name: "bufferAmountOut";
|
|
1338
|
+
readonly type: "uint256";
|
|
1339
|
+
readonly indexed: false;
|
|
1340
|
+
readonly internalType: "uint256";
|
|
1341
|
+
}, {
|
|
1342
|
+
readonly name: "netAmountOut";
|
|
1343
|
+
readonly type: "uint256";
|
|
1344
|
+
readonly indexed: false;
|
|
1345
|
+
readonly internalType: "uint256";
|
|
1346
|
+
}, {
|
|
1347
|
+
readonly name: "managerFee";
|
|
1348
|
+
readonly type: "uint256";
|
|
1349
|
+
readonly indexed: false;
|
|
1350
|
+
readonly internalType: "uint256";
|
|
1351
|
+
}, {
|
|
1352
|
+
readonly name: "referrerFee";
|
|
1353
|
+
readonly type: "uint256";
|
|
1354
|
+
readonly indexed: false;
|
|
1355
|
+
readonly internalType: "uint256";
|
|
1356
|
+
}];
|
|
1357
|
+
readonly anonymous: false;
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly type: "error";
|
|
1360
|
+
readonly name: "ControllerDisabled";
|
|
1361
|
+
readonly inputs: readonly [];
|
|
1362
|
+
}, {
|
|
1363
|
+
readonly type: "error";
|
|
1364
|
+
readonly name: "CooldownNotExpired";
|
|
1365
|
+
readonly inputs: readonly [{
|
|
1366
|
+
readonly name: "availableBalance";
|
|
1367
|
+
readonly type: "uint256";
|
|
1368
|
+
readonly internalType: "uint256";
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly name: "transferAmount";
|
|
1371
|
+
readonly type: "uint256";
|
|
1372
|
+
readonly internalType: "uint256";
|
|
1373
|
+
}];
|
|
1374
|
+
}, {
|
|
1375
|
+
readonly type: "error";
|
|
1376
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
1377
|
+
readonly inputs: readonly [{
|
|
1378
|
+
readonly name: "spender";
|
|
1379
|
+
readonly type: "address";
|
|
1380
|
+
readonly internalType: "address";
|
|
1381
|
+
}, {
|
|
1382
|
+
readonly name: "allowance";
|
|
1383
|
+
readonly type: "uint256";
|
|
1384
|
+
readonly internalType: "uint256";
|
|
1385
|
+
}, {
|
|
1386
|
+
readonly name: "needed";
|
|
1387
|
+
readonly type: "uint256";
|
|
1388
|
+
readonly internalType: "uint256";
|
|
1389
|
+
}];
|
|
1390
|
+
}, {
|
|
1391
|
+
readonly type: "error";
|
|
1392
|
+
readonly name: "ERC20InsufficientBalance";
|
|
1393
|
+
readonly inputs: readonly [{
|
|
1394
|
+
readonly name: "sender";
|
|
1395
|
+
readonly type: "address";
|
|
1396
|
+
readonly internalType: "address";
|
|
1397
|
+
}, {
|
|
1398
|
+
readonly name: "balance";
|
|
1399
|
+
readonly type: "uint256";
|
|
1400
|
+
readonly internalType: "uint256";
|
|
1401
|
+
}, {
|
|
1402
|
+
readonly name: "needed";
|
|
1403
|
+
readonly type: "uint256";
|
|
1404
|
+
readonly internalType: "uint256";
|
|
1405
|
+
}];
|
|
1406
|
+
}, {
|
|
1407
|
+
readonly type: "error";
|
|
1408
|
+
readonly name: "ERC20InvalidApprover";
|
|
1409
|
+
readonly inputs: readonly [{
|
|
1410
|
+
readonly name: "approver";
|
|
1411
|
+
readonly type: "address";
|
|
1412
|
+
readonly internalType: "address";
|
|
1413
|
+
}];
|
|
1414
|
+
}, {
|
|
1415
|
+
readonly type: "error";
|
|
1416
|
+
readonly name: "ERC20InvalidReceiver";
|
|
1417
|
+
readonly inputs: readonly [{
|
|
1418
|
+
readonly name: "receiver";
|
|
1419
|
+
readonly type: "address";
|
|
1420
|
+
readonly internalType: "address";
|
|
1421
|
+
}];
|
|
1422
|
+
}, {
|
|
1423
|
+
readonly type: "error";
|
|
1424
|
+
readonly name: "ERC20InvalidSender";
|
|
1425
|
+
readonly inputs: readonly [{
|
|
1426
|
+
readonly name: "sender";
|
|
1427
|
+
readonly type: "address";
|
|
1428
|
+
readonly internalType: "address";
|
|
1429
|
+
}];
|
|
1430
|
+
}, {
|
|
1431
|
+
readonly type: "error";
|
|
1432
|
+
readonly name: "ERC20InvalidSpender";
|
|
1433
|
+
readonly inputs: readonly [{
|
|
1434
|
+
readonly name: "spender";
|
|
1435
|
+
readonly type: "address";
|
|
1436
|
+
readonly internalType: "address";
|
|
1437
|
+
}];
|
|
1438
|
+
}, {
|
|
1439
|
+
readonly type: "error";
|
|
1440
|
+
readonly name: "InvalidAddress";
|
|
1441
|
+
readonly inputs: readonly [];
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly type: "error";
|
|
1444
|
+
readonly name: "InvalidInitialization";
|
|
1445
|
+
readonly inputs: readonly [];
|
|
1446
|
+
}, {
|
|
1447
|
+
readonly type: "error";
|
|
1448
|
+
readonly name: "InvalidVault";
|
|
1449
|
+
readonly inputs: readonly [];
|
|
1450
|
+
}, {
|
|
1451
|
+
readonly type: "error";
|
|
1452
|
+
readonly name: "MulticallFailed";
|
|
1453
|
+
readonly inputs: readonly [{
|
|
1454
|
+
readonly name: "index";
|
|
1455
|
+
readonly type: "uint256";
|
|
1456
|
+
readonly internalType: "uint256";
|
|
1457
|
+
}];
|
|
1458
|
+
}, {
|
|
1459
|
+
readonly type: "error";
|
|
1460
|
+
readonly name: "NotImplemented";
|
|
1461
|
+
readonly inputs: readonly [];
|
|
1462
|
+
}, {
|
|
1463
|
+
readonly type: "error";
|
|
1464
|
+
readonly name: "NotInitializing";
|
|
1465
|
+
readonly inputs: readonly [];
|
|
1466
|
+
}, {
|
|
1467
|
+
readonly type: "error";
|
|
1468
|
+
readonly name: "RedundantAssetAddition";
|
|
1469
|
+
readonly inputs: readonly [{
|
|
1470
|
+
readonly name: "asset";
|
|
1471
|
+
readonly type: "address";
|
|
1472
|
+
readonly internalType: "contract IERC20";
|
|
1473
|
+
}];
|
|
1474
|
+
}, {
|
|
1475
|
+
readonly type: "error";
|
|
1476
|
+
readonly name: "SafeCastOverflowedUintDowncast";
|
|
1477
|
+
readonly inputs: readonly [{
|
|
1478
|
+
readonly name: "bits";
|
|
1479
|
+
readonly type: "uint8";
|
|
1480
|
+
readonly internalType: "uint8";
|
|
1481
|
+
}, {
|
|
1482
|
+
readonly name: "value";
|
|
1483
|
+
readonly type: "uint256";
|
|
1484
|
+
readonly internalType: "uint256";
|
|
1485
|
+
}];
|
|
1486
|
+
}, {
|
|
1487
|
+
readonly type: "error";
|
|
1488
|
+
readonly name: "SafeCastOverflowedUintToInt";
|
|
1489
|
+
readonly inputs: readonly [{
|
|
1490
|
+
readonly name: "value";
|
|
1491
|
+
readonly type: "uint256";
|
|
1492
|
+
readonly internalType: "uint256";
|
|
1493
|
+
}];
|
|
1494
|
+
}, {
|
|
1495
|
+
readonly type: "error";
|
|
1496
|
+
readonly name: "Unauthorized";
|
|
1497
|
+
readonly inputs: readonly [];
|
|
1498
|
+
}];
|
|
1499
|
+
static createInterface(): FundLedgerInterface;
|
|
1500
|
+
static connect(address: string, runner?: ContractRunner | null): FundLedger;
|
|
1501
|
+
}
|
|
1502
|
+
export {};
|