@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,223 @@
|
|
|
1
|
+
import { Contract, ContractFactory, Interface, } from "ethers";
|
|
2
|
+
const _abi = [
|
|
3
|
+
{
|
|
4
|
+
type: "constructor",
|
|
5
|
+
inputs: [
|
|
6
|
+
{
|
|
7
|
+
name: "protocolAddress",
|
|
8
|
+
type: "address",
|
|
9
|
+
internalType: "address payable",
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
stateMutability: "nonpayable",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: "function",
|
|
16
|
+
name: "deposit",
|
|
17
|
+
inputs: [
|
|
18
|
+
{
|
|
19
|
+
name: "d",
|
|
20
|
+
type: "tuple",
|
|
21
|
+
internalType: "struct Deposit",
|
|
22
|
+
components: [
|
|
23
|
+
{
|
|
24
|
+
name: "ledger",
|
|
25
|
+
type: "address",
|
|
26
|
+
internalType: "contract FundLedger",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "coin",
|
|
30
|
+
type: "address",
|
|
31
|
+
internalType: "contract IERC20",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "amount",
|
|
35
|
+
type: "uint256",
|
|
36
|
+
internalType: "uint256",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "extCalls",
|
|
40
|
+
type: "tuple[]",
|
|
41
|
+
internalType: "struct ExternalCall[]",
|
|
42
|
+
components: [
|
|
43
|
+
{
|
|
44
|
+
name: "adapter",
|
|
45
|
+
type: "address",
|
|
46
|
+
internalType: "address",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "callData",
|
|
50
|
+
type: "bytes",
|
|
51
|
+
internalType: "bytes",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "sharesOutMin",
|
|
57
|
+
type: "uint256",
|
|
58
|
+
internalType: "uint256",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "referrerFeeBps",
|
|
62
|
+
type: "uint16",
|
|
63
|
+
internalType: "uint16",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
outputs: [],
|
|
69
|
+
stateMutability: "nonpayable",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: "function",
|
|
73
|
+
name: "getPendingBalance",
|
|
74
|
+
inputs: [
|
|
75
|
+
{
|
|
76
|
+
name: "account",
|
|
77
|
+
type: "address",
|
|
78
|
+
internalType: "address",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
outputs: [
|
|
82
|
+
{
|
|
83
|
+
name: "",
|
|
84
|
+
type: "uint256",
|
|
85
|
+
internalType: "uint256",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
stateMutability: "view",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: "function",
|
|
92
|
+
name: "protocol",
|
|
93
|
+
inputs: [],
|
|
94
|
+
outputs: [
|
|
95
|
+
{
|
|
96
|
+
name: "",
|
|
97
|
+
type: "address",
|
|
98
|
+
internalType: "contract Protocol",
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
stateMutability: "view",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
type: "error",
|
|
105
|
+
name: "InsufficientAssetAmountIn",
|
|
106
|
+
inputs: [
|
|
107
|
+
{
|
|
108
|
+
name: "asset",
|
|
109
|
+
type: "address",
|
|
110
|
+
internalType: "contract IERC20",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "expected",
|
|
114
|
+
type: "uint256",
|
|
115
|
+
internalType: "uint256",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "actual",
|
|
119
|
+
type: "uint256",
|
|
120
|
+
internalType: "uint256",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: "error",
|
|
126
|
+
name: "InvalidAddress",
|
|
127
|
+
inputs: [],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: "error",
|
|
131
|
+
name: "InvalidLedger",
|
|
132
|
+
inputs: [],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: "error",
|
|
136
|
+
name: "ProtocolPaused",
|
|
137
|
+
inputs: [],
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
type: "error",
|
|
141
|
+
name: "ReentrancyGuardReentrantCall",
|
|
142
|
+
inputs: [],
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: "error",
|
|
146
|
+
name: "SafeCastOverflowedUintDowncast",
|
|
147
|
+
inputs: [
|
|
148
|
+
{
|
|
149
|
+
name: "bits",
|
|
150
|
+
type: "uint8",
|
|
151
|
+
internalType: "uint8",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "value",
|
|
155
|
+
type: "uint256",
|
|
156
|
+
internalType: "uint256",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
type: "error",
|
|
162
|
+
name: "SafeERC20FailedOperation",
|
|
163
|
+
inputs: [
|
|
164
|
+
{
|
|
165
|
+
name: "token",
|
|
166
|
+
type: "address",
|
|
167
|
+
internalType: "address",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
type: "error",
|
|
173
|
+
name: "UnsupportedTarget",
|
|
174
|
+
inputs: [
|
|
175
|
+
{
|
|
176
|
+
name: "target",
|
|
177
|
+
type: "address",
|
|
178
|
+
internalType: "address",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
},
|
|
182
|
+
];
|
|
183
|
+
const _bytecode = "0x60a060405234801561000f575f5ffd5b506040516123c63803806123c683398101604081905261002e91610068565b806001600160a01b0381166100565760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b031660805250610095565b5f60208284031215610078575f5ffd5b81516001600160a01b038116811461008e575f5ffd5b9392505050565b6080516123066100c05f395f8181608b0152818160b70152818161018701526112a801526123065ff3fe608060405234801561000f575f5ffd5b506004361061003f575f3560e01c80630dced77b1461004357806351d550d2146100585780638ce744261461007e575b5f5ffd5b6100566100513660046116d8565b6100b5565b005b61006b610066366004611729565b6102e8565b6040519081526020015b60405180910390f35b6040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152602001610075565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c975abb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610111573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101359190611758565b1561015357604051634427925560e01b815260040160405180910390fd5b61015b610309565b6101686020820182611729565b6040516384145e3960e01b81526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906384145e3990602401602060405180830381865afa1580156101cc573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101f09190611758565b61020d576040516328bb3bf960e21b815260040160405180910390fd5b5f61021b6020840184611729565b60405163f68b93af60e01b815273__$0e3f7ebf69dd613ebc736beec31cc9b50e$__9163f68b93af9161025e916001600160a01b0316903390889060040161186e565b5f60405180830381865af4158015610278573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261029f9190810190611cc0565b90506102b76102b16020850185611729565b33610340565b6102c0816103d0565b6102c98161049d565b6102d281610581565b6102db81610859565b50506102e56108ff565b50565b5f806102f43384610929565b90506102ff81610e63565b60c0015192915050565b610311610ece565b61033e60017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005b90610f0e565b565b816001600160a01b031663f34fd6c66040518163ffffffff1660e01b81526004015f604051808303815f87803b158015610378575f5ffd5b505af115801561038a573d5f5f3e3d5ffd5b505f92506103a49150506001600160a01b03841683610929565b90506103af81610f15565b156103b957505050565b6103c281610e63565b6103cb81610fd9565b505050565b806101000151610475575f6103f6826020015160a0015161ffff16606461ffff16611210565b90506127108183602001516040015161040f9190611e40565b6104199190611e57565b60e0830181905215610473576104553383604001518460e001518560200151602001516001600160a01b0316611222909392919063ffffffff16565b8160e00151826020015160400181815161046f9190611e76565b9052505b505b805160208083015160408101519101516102e5926001600160a01b0390911691339190611222565b5f5b8160200151606001515181101561057d57815f01516001600160a01b0316631cff79cd6104ef84602001516060015184815181106104df576104df611e89565b60200260200101515f015161125e565b846020015160600151848151811061050957610509611e89565b6020026020010151602001516040518363ffffffff1660e01b8152600401610532929190611ecb565b5f604051808303815f875af115801561054d573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526105749190810190611ef6565b5060010161049f565b5050565b5f5b8161012001515181101561074a575f82610120015182815181106105a9576105a9611e89565b602090810291909101015183516040516370a0823160e01b81526001600160a01b0391821660048201529116906370a0823190602401602060405180830381865afa1580156105fa573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061061e9190611f27565b90505f836101800151838151811061063857610638611e89565b60200260200101518261064b9190611e76565b9050836101a00151838151811061066457610664611e89565b6020026020010151811015846101200151848151811061068657610686611e89565b6020026020010151856101a0015185815181106106a5576106a5611e89565b6020026020010151839091926106ec5760405163040b542960e21b81526001600160a01b039093166004840152602483019190915260448201526064015b60405180910390fd5b50505061073a846101600151856101800151858151811061070f5761070f611e89565b6020026020010151670de0b6b3a76400008461072b9190611e40565b6107359190611e57565b611210565b6101608501525050600101610583565b5080608001515f036102e557602081810151015181516040516370a0823160e01b81526001600160a01b0391821660048201525f9291909116906370a0823190602401602060405180830381865afa1580156107a8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107cc9190611f27565b90508082602001516040018181516107e49190611e76565b90525081516020808401510151604051631cb1df1560e31b81526001600160a01b0391821660048201523360248201526044810184905291169063e58ef8a8906064015b5f604051808303815f87803b15801561083f575f5ffd5b505af1158015610851573d5f5f3e3d5ffd5b505050505050565b670de0b6b3a76400008161016001518261014001516108789190611e40565b6108829190611e57565b60c082015260a08101516020820151604001515f916108a091611e40565b602083810151805191015160c085015160e086015160405163c8c63c6960e01b81523360048201526001600160a01b0393841660248201526044810192909252606482018590526084820152929350169063c8c63c699060a401610828565b61033e5f7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00610338565b610931611615565b60408051600880825261012082019092525f91816020015b6060815260200190600190039081610949579050506040805160048152602481019091526020810180516001600160e01b031663027e5f8f60e61b17905281519192509082905f9061099d5761099d611e89565b602090810291909101810191909152604080516001600160a01b03861660248083019190915282518083039091018152604490910190915290810180516001600160e01b0316636b50985960e11b179052815182906001908110610a0357610a03611e89565b602090810291909101810191909152604080516001600160a01b03861660248083019190915282518083039091018152604490910190915290810180516001600160e01b031663900c043560e01b179052815182906002908110610a6957610a69611e89565b60209081029190910181019190915260408051600481526024810190915290810180516001600160e01b03166318160ddd60e01b179052815182906003908110610ab557610ab5611e89565b6020908102919091018101919091526040805160048082526024820190925291820180516001600160e01b03166373d9f6c760e01b17905282518391908110610b0057610b00611e89565b602090810291909101810191909152604080516001600160a01b03861660248083019190915282518083039091018152604490910190915290810180516001600160e01b031663363b414760e21b179052815182906005908110610b6657610b66611e89565b60209081029190910181019190915260408051600481526024810190915290810180516001600160e01b03166328172be960e21b179052815182906006908110610bb257610bb2611e89565b60209081029190910181019190915260408051600481526024810190915290810180516001600160e01b03166327523cf560e11b179052815182906007908110610bfe57610bfe611e89565b60200260200101819052505f846001600160a01b031663ac9650d8836040518263ffffffff1660e01b8152600401610c369190611f3e565b5f60405180830381865afa158015610c50573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c779190810190611fa1565b6001600160a01b03808716855285166040850152805190915081905f90610ca057610ca0611e89565b6020026020010151806020019051810190610cbb9190612066565b6001600160801b03166020840152805181906001908110610cde57610cde611e89565b6020026020010151806020019051810190610cf9919061207f565b608084018190526060840152805181906002908110610d1a57610d1a611e89565b6020026020010151806020019051810190610d359190611f27565b60a0840152805181906003908110610d4f57610d4f611e89565b6020026020010151806020019051810190610d6a9190611f27565b610100840152805181906004908110610d8557610d85611e89565b6020026020010151806020019051810190610da09190611f27565b610180840152805181906005908110610dbb57610dbb611e89565b6020026020010151806020019051810190610dd691906120f9565b610160840152805181906006908110610df157610df1611e89565b6020026020010151806020019051810190610e0c9190612066565b6001600160801b0316610120840152805181906007908110610e3057610e30611e89565b6020026020010151806020019051810190610e4b9190612066565b6001600160801b031661014084015250909392505050565b610eb88160a001518260600151602001516001600160681b031683606001515f0151610e8f91906121be565b6001600160801b03168361012001516001600160801b031684610180015185610160015161134b565b6001600160681b031660e083015260c090910152565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c1561033e57604051633ee5aeb560e01b815260040160405180910390fd5b80825d5050565b5f8160a001515f03610fbd57610f2e8260200151611543565b60808301805161ffff909216604092830152835182850151606086015192516101208701516101408801519551639df11ab760e01b81526001600160a01b0390941695639df11ab795610f889590939291906004016121dd565b5f604051808303815f87803b158015610f9f575f5ffd5b505af1158015610fb1573d5f5f3e3d5ffd5b50600195945050505050565b816101600151515f03610fd257506001919050565b505f919050565b8060a001518160c001511115611071575f8160a001518260c00151610ffe9190611e76565b82516040808501519051630ab714fb60e11b81526001600160a01b0391821660048201526024810184905260448101849052929350169063156e29f6906064015f604051808303815f87803b158015611055575f5ffd5b505af1158015611067573d5f5f3e3d5ffd5b50505050506110f5565b5f8160c001518260a001516110869190611e76565b82516040808501519051637a94c56560e11b81526001600160a01b0391821660048201526024810184905260448101849052929350169063f5298aca906064015f604051808303815f87803b1580156110dd575f5ffd5b505af11580156110ef573d5f5f3e3d5ffd5b50505050505b6111028160200151611543565b60808201805161ffff90921660409092019190915260e08201519051602001805161112e90839061227f565b6001600160681b0390811690915260e0830151610140840180519190921692506111599083906121be565b6001600160801b031690525060e0810151610120820180516001600160681b039092169161118890839061229e565b6001600160801b03169052508051604080830151606084015160808501516101208601516101408701519451639df11ab760e01b81526001600160a01b0390961695639df11ab7956111e095949392916004016121dd565b5f604051808303815f87803b1580156111f7575f5ffd5b505af1158015611209573d5f5f3e3d5ffd5b5050505050565b818181111561121c5750805b92915050565b611230848484846001611575565b61125857604051635274afe760e01b81526001600160a01b03851660048201526024016106e3565b50505050565b5f7ffd6a22fca1b8aab27e58b7109329acb92b4151a8d03eb41f5fbf011dd22e17008201805c8061134357604051634b5d45dd60e11b81526001600160a01b0385811660048301527f000000000000000000000000000000000000000000000000000000000000000016906396ba8bba90602401602060405180830381865afa1580156112ed573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113119190611758565b9050838161133e5760405163fd9d0fa360e01b81526001600160a01b0390911660048201526024016106e3565b5080825d5b509192915050565b5f5f865f0361135e57505f905080611539565b82515f0361137057508590505f611539565b8691505f5b8351811015611537575f84828151811061139157611391611e89565b602002602001015190505f836001600160681b0316896113b191906122bd565b90505f856113c7670de0b6b3a764000084611e40565b6113d19190611e57565b90505f6127106113ee8386602001516001600160801b0316611210565b85602001516001600160801b03166114069190611e76565b611410908b611e40565b61141a9190611e57565b90505f8185602001516001600160801b03166114369190611e76565b85519091506001600160801b031661144e828a611e40565b6114589190611e57565b9750875f0361146b575050505050611537565b84516001600160801b03168310801561148357505f8b115b15611529575f670de0b6b3a76400006001670de0b6b3a7640000885f01516001600160801b03168c6114b59190611e40565b6114bf91906122bd565b6114c99190611e76565b6114d39190611e57565b90508481116114e75750505050505061152f565b5f6115036114fe6114f88885611e76565b8f611210565b6115e2565b905061150f818a61227f565b98506115246001600160681b0382168e611e76565b9c5050505b50505050505b600101611375565b505b9550959350505050565b5f61ffff821115611571576040516306dfcc6560e41b815260106004820152602481018390526044016106e3565b5090565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f511483166115d15783831516156115c5573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b5f6001600160681b03821115611571576040516306dfcc6560e41b815260686004820152602481018390526044016106e3565b604051806101a001604052805f6001600160a01b031681526020015f81526020015f6001600160a01b03168152602001611667604080516060810182525f808252602082018190529181019190915290565b8152604080516060810182525f80825260208281018290529282015291019081526020015f81526020015f81526020015f6001600160681b031681526020015f81526020015f6001600160801b031681526020015f6001600160801b03168152602001606081526020015f81525090565b5f602082840312156116e8575f5ffd5b81356001600160401b038111156116fd575f5ffd5b820160c0818503121561170e575f5ffd5b9392505050565b6001600160a01b03811681146102e5575f5ffd5b5f60208284031215611739575f5ffd5b813561170e81611715565b80518015158114611753575f5ffd5b919050565b5f60208284031215611768575f5ffd5b61170e82611744565b5f8383855260208501945060208460051b820101835f5b8681101561184857838303601f19018852813536879003603e190181126117ad575f5ffd5b860180356117ba81611715565b6001600160a01b03168452602081013536829003601e190181126117dc575f5ffd5b016020810190356001600160401b038111156117f6575f5ffd5b803603821315611804575f5ffd5b60406020860152806040860152808260608701375f606082870101526060601f19601f83011686010194505050602082019150602088019750600181019050611788565b50909695505050505050565b61ffff811681146102e5575f5ffd5b803561175381611854565b6001600160a01b03848116825283166020820152606060408201525f823561189581611715565b6001600160a01b0316606083015260208301356118b181611715565b6001600160a01b03166080830152604083013560a0830152606083013536849003601e190181126118e0575f5ffd5b83016020810190356001600160401b038111156118fb575f5ffd5b8060051b360382131561190c575f5ffd5b60c08085015261192161012085018284611771565b608086013560e0860152915061193b905060a08501611863565b61ffff81166101008501525b5095945050505050565b634e487b7160e01b5f52604160045260245ffd5b60405160c081016001600160401b038111828210171561198757611987611951565b60405290565b604080519081016001600160401b038111828210171561198757611987611951565b6040516101c081016001600160401b038111828210171561198757611987611951565b604051601f8201601f191681016001600160401b03811182821017156119fa576119fa611951565b604052919050565b805161175381611715565b5f6001600160401b03821115611a2557611a25611951565b5060051b60200190565b5f82601f830112611a3e575f5ffd5b81516001600160401b03811115611a5757611a57611951565b611a6a601f8201601f19166020016119d2565b818152846020838601011115611a7e575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b805161175381611854565b5f60c08284031215611ab5575f5ffd5b611abd611965565b90508151611aca81611715565b81526020820151611ada81611715565b60208201526040828101519082015260608201516001600160401b03811115611b01575f5ffd5b8201601f81018413611b11575f5ffd5b8051611b24611b1f82611a0d565b6119d2565b8082825260208201915060208360051b850101925086831115611b45575f5ffd5b602084015b83811015611bd75780516001600160401b03811115611b67575f5ffd5b85016040818a03601f19011215611b7c575f5ffd5b611b8461198d565b6020820151611b9281611715565b815260408201516001600160401b03811115611bac575f5ffd5b611bbb8b602083860101611a2f565b6020830152508085525050602083019250602081019050611b4a565b50606085015250505060808281015190820152611bf660a08301611a9a565b60a082015292915050565b5f82601f830112611c10575f5ffd5b8151611c1e611b1f82611a0d565b8082825260208201915060208360051b860101925085831115611c3f575f5ffd5b602085015b83811015611947578051611c5781611715565b835260209283019201611c44565b5f82601f830112611c74575f5ffd5b8151611c82611b1f82611a0d565b8082825260208201915060208360051b860101925085831115611ca3575f5ffd5b602085015b83811015611947578051835260209283019201611ca8565b5f60208284031215611cd0575f5ffd5b81516001600160401b03811115611ce5575f5ffd5b82016101c08185031215611cf7575f5ffd5b611cff6119af565b611d0882611a02565b815260208201516001600160401b03811115611d22575f5ffd5b611d2e86828501611aa5565b602083015250611d4060408301611a02565b6040820152606082810151908201526080808301519082015260a0808301519082015260c0808301519082015260e08083015190820152611d846101008301611744565b6101008201526101208201516001600160401b03811115611da3575f5ffd5b611daf86828501611c01565b61012083015250610140828101519082015261016080830151908201526101808201516001600160401b03811115611de5575f5ffd5b611df186828501611c65565b610180830152506101a08201516001600160401b03811115611e11575f5ffd5b611e1d86828501611c65565b6101a083015250949350505050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761121c5761121c611e2c565b5f82611e7157634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561121c5761121c611e2c565b634e487b7160e01b5f52603260045260245ffd5b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b6001600160a01b03831681526040602082018190525f90611eee90830184611e9d565b949350505050565b5f60208284031215611f06575f5ffd5b81516001600160401b03811115611f1b575f5ffd5b611eee84828501611a2f565b5f60208284031215611f37575f5ffd5b5051919050565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015611f9557603f19878603018452611f80858351611e9d565b94506020938401939190910190600101611f64565b50929695505050505050565b5f60208284031215611fb1575f5ffd5b81516001600160401b03811115611fc6575f5ffd5b8201601f81018413611fd6575f5ffd5b8051611fe4611b1f82611a0d565b8082825260208201915060208360051b850101925086831115612005575f5ffd5b602084015b838110156120455780516001600160401b03811115612027575f5ffd5b61203689602083890101611a2f565b8452506020928301920161200a565b509695505050505050565b80516001600160801b0381168114611753575f5ffd5b5f60208284031215612076575f5ffd5b61170e82612050565b5f6060828403128015612090575f5ffd5b50604051606081016001600160401b03811182821017156120b3576120b3611951565b6040526120bf83612050565b815260208301516001600160681b03811681146120da575f5ffd5b602082015260408301516120ed81611854565b60408201529392505050565b5f60208284031215612109575f5ffd5b81516001600160401b0381111561211e575f5ffd5b8201601f8101841361212e575f5ffd5b805161213c611b1f82611a0d565b8082825260208201915060208360061b85010192508683111561215d575f5ffd5b6020840193505b828410156121b4576040848803121561217b575f5ffd5b61218361198d565b61218c85612050565b815261219a60208601612050565b602082015280835250602082019150604084019350612164565b9695505050505050565b6001600160801b03818116838216019081111561121c5761121c611e2c565b6001600160a01b03861681526101208101612225602083018780516001600160801b031682526020808201516001600160681b03169083015260409081015161ffff16910152565b84516001600160801b0316608083015260208501516001600160681b031660a0830152604085015161ffff1660c08301526001600160801b03841660e08301526001600160801b0383166101008301529695505050505050565b6001600160681b03818116838216019081111561121c5761121c611e2c565b6001600160801b03828116828216039081111561121c5761121c611e2c565b8082018082111561121c5761121c611e2c56fea2646970667358221220ad29e840102cb216c27a8793dd2eb949331008ebd3d7b6b6662be4b0362a3e5164736f6c634300081e0033";
|
|
184
|
+
const isSuperArgs = (xs) => {
|
|
185
|
+
return (typeof xs[0] === "string" ||
|
|
186
|
+
Array.isArray(xs[0]) ||
|
|
187
|
+
"_isInterface" in xs[0]);
|
|
188
|
+
};
|
|
189
|
+
export class DepositController__factory extends ContractFactory {
|
|
190
|
+
constructor(...args) {
|
|
191
|
+
if (isSuperArgs(args)) {
|
|
192
|
+
super(...args);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
const [linkLibraryAddresses, signer] = args;
|
|
196
|
+
super(_abi, DepositController__factory.linkBytecode(linkLibraryAddresses), signer);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
static linkBytecode(linkLibraryAddresses) {
|
|
200
|
+
let linkedBytecode = _bytecode;
|
|
201
|
+
linkedBytecode = linkedBytecode.replace(new RegExp("__\\$0e3f7ebf69dd613ebc736beec31cc9b50e\\$__", "g"), linkLibraryAddresses["src/lib/ContextBuilder.sol:ContextBuilder"]
|
|
202
|
+
.replace(/^0x/, "")
|
|
203
|
+
.toLowerCase());
|
|
204
|
+
return linkedBytecode;
|
|
205
|
+
}
|
|
206
|
+
getDeployTransaction(protocolAddress, overrides) {
|
|
207
|
+
return super.getDeployTransaction(protocolAddress, overrides || {});
|
|
208
|
+
}
|
|
209
|
+
deploy(protocolAddress, overrides) {
|
|
210
|
+
return super.deploy(protocolAddress, overrides || {});
|
|
211
|
+
}
|
|
212
|
+
connect(runner) {
|
|
213
|
+
return super.connect(runner);
|
|
214
|
+
}
|
|
215
|
+
static bytecode = _bytecode;
|
|
216
|
+
static abi = _abi;
|
|
217
|
+
static createInterface() {
|
|
218
|
+
return new Interface(_abi);
|
|
219
|
+
}
|
|
220
|
+
static connect(address, runner) {
|
|
221
|
+
return new Contract(address, _abi, runner);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DepositController__factory } from "./DepositController__factory";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DepositController__factory } from "./DepositController__factory.js";
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../common";
|
|
4
|
+
import type { Error, ErrorInterface } from "../../out/Error";
|
|
5
|
+
type ErrorConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class Error__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: ErrorConstructorParams);
|
|
8
|
+
getDeployTransaction(overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<Error & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): Error__factory;
|
|
17
|
+
static readonly bytecode = "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea26469706673582212202cc79ea3319f489cea2ffcb485408ef4003f6385651653e9a0975f8d0da426ef64736f6c634300081e0033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly type: "error";
|
|
20
|
+
readonly name: "ControllerDisabled";
|
|
21
|
+
readonly inputs: readonly [];
|
|
22
|
+
}, {
|
|
23
|
+
readonly type: "error";
|
|
24
|
+
readonly name: "CooldownNotExpired";
|
|
25
|
+
readonly inputs: readonly [{
|
|
26
|
+
readonly name: "availableBalance";
|
|
27
|
+
readonly type: "uint256";
|
|
28
|
+
readonly internalType: "uint256";
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "transferAmount";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
readonly internalType: "uint256";
|
|
33
|
+
}];
|
|
34
|
+
}, {
|
|
35
|
+
readonly type: "error";
|
|
36
|
+
readonly name: "ExcessAmountsOut";
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly name: "asset";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
readonly internalType: "contract IERC20";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "expected";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
readonly internalType: "uint256";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "actual";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
readonly internalType: "uint256";
|
|
49
|
+
}];
|
|
50
|
+
}, {
|
|
51
|
+
readonly type: "error";
|
|
52
|
+
readonly name: "FundClosed";
|
|
53
|
+
readonly inputs: readonly [];
|
|
54
|
+
}, {
|
|
55
|
+
readonly type: "error";
|
|
56
|
+
readonly name: "GracePeriodNotEnded";
|
|
57
|
+
readonly inputs: readonly [{
|
|
58
|
+
readonly name: "currentTimestamp";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
readonly internalType: "uint256";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "gracePeriodEnd";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
readonly internalType: "uint256";
|
|
65
|
+
}];
|
|
66
|
+
}, {
|
|
67
|
+
readonly type: "error";
|
|
68
|
+
readonly name: "HarvestNotEligible";
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly name: "daysFromLastManagementFee";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
readonly internalType: "uint256";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "shareValueNet";
|
|
75
|
+
readonly type: "uint256";
|
|
76
|
+
readonly internalType: "uint256";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "watermark";
|
|
79
|
+
readonly type: "uint256";
|
|
80
|
+
readonly internalType: "uint256";
|
|
81
|
+
}];
|
|
82
|
+
}, {
|
|
83
|
+
readonly type: "error";
|
|
84
|
+
readonly name: "InsufficientAssetAmountIn";
|
|
85
|
+
readonly inputs: readonly [{
|
|
86
|
+
readonly name: "asset";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
readonly internalType: "contract IERC20";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "expected";
|
|
91
|
+
readonly type: "uint256";
|
|
92
|
+
readonly internalType: "uint256";
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "actual";
|
|
95
|
+
readonly type: "uint256";
|
|
96
|
+
readonly internalType: "uint256";
|
|
97
|
+
}];
|
|
98
|
+
}, {
|
|
99
|
+
readonly type: "error";
|
|
100
|
+
readonly name: "InsufficientDeposit";
|
|
101
|
+
readonly inputs: readonly [{
|
|
102
|
+
readonly name: "minDeposit";
|
|
103
|
+
readonly type: "uint256";
|
|
104
|
+
readonly internalType: "uint256";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "actualDeposit";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
readonly internalType: "uint256";
|
|
109
|
+
}];
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "error";
|
|
112
|
+
readonly name: "InsufficientInitialDeposit";
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly name: "minInitialDepositUsd";
|
|
115
|
+
readonly type: "uint256";
|
|
116
|
+
readonly internalType: "uint256";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "actualDeposit";
|
|
119
|
+
readonly type: "uint256";
|
|
120
|
+
readonly internalType: "uint256";
|
|
121
|
+
}];
|
|
122
|
+
}, {
|
|
123
|
+
readonly type: "error";
|
|
124
|
+
readonly name: "InsufficientProceeds";
|
|
125
|
+
readonly inputs: readonly [{
|
|
126
|
+
readonly name: "expected";
|
|
127
|
+
readonly type: "uint256";
|
|
128
|
+
readonly internalType: "uint256";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "actual";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
readonly internalType: "uint256";
|
|
133
|
+
}];
|
|
134
|
+
}, {
|
|
135
|
+
readonly type: "error";
|
|
136
|
+
readonly name: "InsufficientShares";
|
|
137
|
+
readonly inputs: readonly [{
|
|
138
|
+
readonly name: "balance";
|
|
139
|
+
readonly type: "uint256";
|
|
140
|
+
readonly internalType: "uint256";
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: "attempted";
|
|
143
|
+
readonly type: "uint256";
|
|
144
|
+
readonly internalType: "uint256";
|
|
145
|
+
}];
|
|
146
|
+
}, {
|
|
147
|
+
readonly type: "error";
|
|
148
|
+
readonly name: "InvalidAddress";
|
|
149
|
+
readonly inputs: readonly [];
|
|
150
|
+
}, {
|
|
151
|
+
readonly type: "error";
|
|
152
|
+
readonly name: "InvalidCooldownTime";
|
|
153
|
+
readonly inputs: readonly [{
|
|
154
|
+
readonly name: "min";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
readonly internalType: "uint256";
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "max";
|
|
159
|
+
readonly type: "uint256";
|
|
160
|
+
readonly internalType: "uint256";
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "input";
|
|
163
|
+
readonly type: "uint256";
|
|
164
|
+
readonly internalType: "uint256";
|
|
165
|
+
}];
|
|
166
|
+
}, {
|
|
167
|
+
readonly type: "error";
|
|
168
|
+
readonly name: "InvalidCreationFee";
|
|
169
|
+
readonly inputs: readonly [];
|
|
170
|
+
}, {
|
|
171
|
+
readonly type: "error";
|
|
172
|
+
readonly name: "InvalidFee";
|
|
173
|
+
readonly inputs: readonly [];
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "error";
|
|
176
|
+
readonly name: "InvalidFraction";
|
|
177
|
+
readonly inputs: readonly [{
|
|
178
|
+
readonly name: "fraction";
|
|
179
|
+
readonly type: "uint256";
|
|
180
|
+
readonly internalType: "uint256";
|
|
181
|
+
}];
|
|
182
|
+
}, {
|
|
183
|
+
readonly type: "error";
|
|
184
|
+
readonly name: "InvalidLedger";
|
|
185
|
+
readonly inputs: readonly [];
|
|
186
|
+
}, {
|
|
187
|
+
readonly type: "error";
|
|
188
|
+
readonly name: "InvalidManagerManagementFeeUpdate";
|
|
189
|
+
readonly inputs: readonly [{
|
|
190
|
+
readonly name: "maxFee";
|
|
191
|
+
readonly type: "uint16";
|
|
192
|
+
readonly internalType: "uint16";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "newFee";
|
|
195
|
+
readonly type: "uint16";
|
|
196
|
+
readonly internalType: "uint16";
|
|
197
|
+
}];
|
|
198
|
+
}, {
|
|
199
|
+
readonly type: "error";
|
|
200
|
+
readonly name: "InvalidManagerProfitFeeUpdate";
|
|
201
|
+
readonly inputs: readonly [{
|
|
202
|
+
readonly name: "maxFee";
|
|
203
|
+
readonly type: "uint16";
|
|
204
|
+
readonly internalType: "uint16";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "newFee";
|
|
207
|
+
readonly type: "uint16";
|
|
208
|
+
readonly internalType: "uint16";
|
|
209
|
+
}];
|
|
210
|
+
}, {
|
|
211
|
+
readonly type: "error";
|
|
212
|
+
readonly name: "InvalidNonce";
|
|
213
|
+
readonly inputs: readonly [{
|
|
214
|
+
readonly name: "currentNonce";
|
|
215
|
+
readonly type: "uint256";
|
|
216
|
+
readonly internalType: "uint256";
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "depositNonce";
|
|
219
|
+
readonly type: "uint256";
|
|
220
|
+
readonly internalType: "uint256";
|
|
221
|
+
}];
|
|
222
|
+
}, {
|
|
223
|
+
readonly type: "error";
|
|
224
|
+
readonly name: "InvalidSharesOutMin";
|
|
225
|
+
readonly inputs: readonly [{
|
|
226
|
+
readonly name: "sharesOutMin";
|
|
227
|
+
readonly type: "uint256";
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
}];
|
|
230
|
+
}, {
|
|
231
|
+
readonly type: "error";
|
|
232
|
+
readonly name: "InvalidSwap";
|
|
233
|
+
readonly inputs: readonly [];
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "error";
|
|
236
|
+
readonly name: "InvalidVault";
|
|
237
|
+
readonly inputs: readonly [];
|
|
238
|
+
}, {
|
|
239
|
+
readonly type: "error";
|
|
240
|
+
readonly name: "LengthMismatch";
|
|
241
|
+
readonly inputs: readonly [];
|
|
242
|
+
}, {
|
|
243
|
+
readonly type: "error";
|
|
244
|
+
readonly name: "MulticallFailed";
|
|
245
|
+
readonly inputs: readonly [{
|
|
246
|
+
readonly name: "index";
|
|
247
|
+
readonly type: "uint256";
|
|
248
|
+
readonly internalType: "uint256";
|
|
249
|
+
}];
|
|
250
|
+
}, {
|
|
251
|
+
readonly type: "error";
|
|
252
|
+
readonly name: "NoControllerEnabled";
|
|
253
|
+
readonly inputs: readonly [];
|
|
254
|
+
}, {
|
|
255
|
+
readonly type: "error";
|
|
256
|
+
readonly name: "NoProtocolExtension";
|
|
257
|
+
readonly inputs: readonly [];
|
|
258
|
+
}, {
|
|
259
|
+
readonly type: "error";
|
|
260
|
+
readonly name: "NotImplemented";
|
|
261
|
+
readonly inputs: readonly [];
|
|
262
|
+
}, {
|
|
263
|
+
readonly type: "error";
|
|
264
|
+
readonly name: "ProtocolPaused";
|
|
265
|
+
readonly inputs: readonly [];
|
|
266
|
+
}, {
|
|
267
|
+
readonly type: "error";
|
|
268
|
+
readonly name: "RedundantAssetAddition";
|
|
269
|
+
readonly inputs: readonly [{
|
|
270
|
+
readonly name: "asset";
|
|
271
|
+
readonly type: "address";
|
|
272
|
+
readonly internalType: "contract IERC20";
|
|
273
|
+
}];
|
|
274
|
+
}, {
|
|
275
|
+
readonly type: "error";
|
|
276
|
+
readonly name: "Unauthorized";
|
|
277
|
+
readonly inputs: readonly [];
|
|
278
|
+
}, {
|
|
279
|
+
readonly type: "error";
|
|
280
|
+
readonly name: "UnexpectedSwapsAmount";
|
|
281
|
+
readonly inputs: readonly [{
|
|
282
|
+
readonly name: "expected";
|
|
283
|
+
readonly type: "uint256";
|
|
284
|
+
readonly internalType: "uint256";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "actual";
|
|
287
|
+
readonly type: "uint256";
|
|
288
|
+
readonly internalType: "uint256";
|
|
289
|
+
}];
|
|
290
|
+
}, {
|
|
291
|
+
readonly type: "error";
|
|
292
|
+
readonly name: "UnregisteredReferrer";
|
|
293
|
+
readonly inputs: readonly [{
|
|
294
|
+
readonly name: "referrer";
|
|
295
|
+
readonly type: "address";
|
|
296
|
+
readonly internalType: "address";
|
|
297
|
+
}];
|
|
298
|
+
}, {
|
|
299
|
+
readonly type: "error";
|
|
300
|
+
readonly name: "UnsupportedStablecoin";
|
|
301
|
+
readonly inputs: readonly [{
|
|
302
|
+
readonly name: "coin";
|
|
303
|
+
readonly type: "address";
|
|
304
|
+
readonly internalType: "contract IERC20";
|
|
305
|
+
}];
|
|
306
|
+
}, {
|
|
307
|
+
readonly type: "error";
|
|
308
|
+
readonly name: "UnsupportedTarget";
|
|
309
|
+
readonly inputs: readonly [{
|
|
310
|
+
readonly name: "target";
|
|
311
|
+
readonly type: "address";
|
|
312
|
+
readonly internalType: "address";
|
|
313
|
+
}];
|
|
314
|
+
}];
|
|
315
|
+
static createInterface(): ErrorInterface;
|
|
316
|
+
static connect(address: string, runner?: ContractRunner | null): Error;
|
|
317
|
+
}
|
|
318
|
+
export {};
|