|
| 1 | +// SPDX-License-Identifier: UNLICENSED |
| 2 | +pragma solidity 0.6.10; |
| 3 | +pragma experimental ABIEncoderV2; |
| 4 | + |
| 5 | +interface IAcrossHubPoolV2 { |
| 6 | + function addLiquidity(address l1Token, uint256 l1TokenAmount) external payable; |
| 7 | + function bondAmount() external view returns (uint256); |
| 8 | + function bondToken() external view returns (address); |
| 9 | + function claimProtocolFeesCaptured(address l1Token) external; |
| 10 | + function crossChainContracts(uint256) external view returns (address adapter, address spokePool); |
| 11 | + function disableL1TokenForLiquidityProvision(address l1Token) external; |
| 12 | + function disputeRootBundle() external; |
| 13 | + function emergencyDeleteProposal() external; |
| 14 | + function enableL1TokenForLiquidityProvision(address l1Token) external; |
| 15 | + function exchangeRateCurrent(address l1Token) external returns (uint256); |
| 16 | + function executeRootBundle( |
| 17 | + uint256 chainId, |
| 18 | + uint256 groupIndex, |
| 19 | + uint256[] memory bundleLpFees, |
| 20 | + int256[] memory netSendAmounts, |
| 21 | + int256[] memory runningBalances, |
| 22 | + uint8 leafId, |
| 23 | + address[] memory l1Tokens, |
| 24 | + bytes32[] memory proof |
| 25 | + ) external; |
| 26 | + function finder() external view returns (address); |
| 27 | + function getCurrentTime() external view returns (uint256); |
| 28 | + function haircutReserves(address l1Token, int256 haircutAmount) external; |
| 29 | + function identifier() external view returns (bytes32); |
| 30 | + function liquidityUtilizationCurrent(address l1Token) external returns (uint256); |
| 31 | + function liquidityUtilizationPostRelay(address l1Token, uint256 relayedAmount) external returns (uint256); |
| 32 | + function liveness() external view returns (uint32); |
| 33 | + function loadEthForL2Calls() external payable; |
| 34 | + function lpFeeRatePerSecond() external view returns (uint256); |
| 35 | + function lpTokenFactory() external view returns (address); |
| 36 | + function multicall(bytes[] memory data) external payable returns (bytes[] memory results); |
| 37 | + function owner() external view returns (address); |
| 38 | + function paused() external view returns (bool); |
| 39 | + function poolRebalanceRoute(uint256 destinationChainId, address l1Token) |
| 40 | + external |
| 41 | + view |
| 42 | + returns (address destinationToken); |
| 43 | + function pooledTokens(address) |
| 44 | + external |
| 45 | + view |
| 46 | + returns ( |
| 47 | + address lpToken, |
| 48 | + bool isEnabled, |
| 49 | + uint32 lastLpFeeUpdate, |
| 50 | + int256 utilizedReserves, |
| 51 | + uint256 liquidReserves, |
| 52 | + uint256 undistributedLpFees |
| 53 | + ); |
| 54 | + function proposeRootBundle( |
| 55 | + uint256[] memory bundleEvaluationBlockNumbers, |
| 56 | + uint8 poolRebalanceLeafCount, |
| 57 | + bytes32 poolRebalanceRoot, |
| 58 | + bytes32 relayerRefundRoot, |
| 59 | + bytes32 slowRelayRoot |
| 60 | + ) external; |
| 61 | + function protocolFeeCaptureAddress() external view returns (address); |
| 62 | + function protocolFeeCapturePct() external view returns (uint256); |
| 63 | + function relaySpokePoolAdminFunction(uint256 chainId, bytes memory functionData) external; |
| 64 | + function removeLiquidity(address l1Token, uint256 lpTokenAmount, bool sendEth) external; |
| 65 | + function renounceOwnership() external; |
| 66 | + function rootBundleProposal() |
| 67 | + external |
| 68 | + view |
| 69 | + returns ( |
| 70 | + bytes32 poolRebalanceRoot, |
| 71 | + bytes32 relayerRefundRoot, |
| 72 | + bytes32 slowRelayRoot, |
| 73 | + uint256 claimedBitMap, |
| 74 | + address proposer, |
| 75 | + uint8 unclaimedPoolRebalanceLeafCount, |
| 76 | + uint32 challengePeriodEndTimestamp |
| 77 | + ); |
| 78 | + function setBond(address newBondToken, uint256 newBondAmount) external; |
| 79 | + function setCrossChainContracts(uint256 l2ChainId, address adapter, address spokePool) external; |
| 80 | + function setCurrentTime(uint256 time) external; |
| 81 | + function setDepositRoute( |
| 82 | + uint256 originChainId, |
| 83 | + uint256 destinationChainId, |
| 84 | + address originToken, |
| 85 | + bool depositsEnabled |
| 86 | + ) external; |
| 87 | + function setIdentifier(bytes32 newIdentifier) external; |
| 88 | + function setLiveness(uint32 newLiveness) external; |
| 89 | + function setPaused(bool pause) external; |
| 90 | + function setPoolRebalanceRoute(uint256 destinationChainId, address l1Token, address destinationToken) external; |
| 91 | + function setProtocolFeeCapture(address newProtocolFeeCaptureAddress, uint256 newProtocolFeeCapturePct) external; |
| 92 | + function sync(address l1Token) external; |
| 93 | + function timerAddress() external view returns (address); |
| 94 | + function transferOwnership(address newOwner) external; |
| 95 | + function unclaimedAccumulatedProtocolFees(address) external view returns (uint256); |
| 96 | + function weth() external view returns (address); |
| 97 | +} |
0 commit comments