-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update public interfaces of external contracts
- Loading branch information
Showing
8 changed files
with
307 additions
and
882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,43 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity 0.8.7; | ||
|
||
interface IValidatorShare { | ||
import { IERC20Upgradeable } from "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; | ||
|
||
interface IValidatorShare is IERC20Upgradeable { | ||
struct DelegatorUnbond { | ||
uint256 shares; | ||
uint256 withdrawEpoch; | ||
} | ||
|
||
function stakingLogger() external view returns (address); | ||
|
||
function minAmount() external view returns (uint256); | ||
|
||
function unbondNonces(address _address) external view returns (uint256); | ||
|
||
function validatorId() external view returns (uint256); | ||
|
||
function delegation() external view returns (bool); | ||
|
||
function buyVoucher( | ||
uint256 _amount, | ||
uint256 _minSharesToMint | ||
) external returns (uint256); | ||
) external returns (uint256 amountToDeposit); | ||
|
||
function buyVoucherPOL( | ||
uint256 _amount, | ||
uint256 _minSharesToMint | ||
) external returns (uint256); | ||
|
||
function sellVoucher_new( | ||
uint256 _claimAmount, | ||
uint256 _maximumSharesToBurn | ||
) external; | ||
) external returns (uint256 amountToDeposit); | ||
|
||
function sellVoucher_newPOL( | ||
uint256 _claimAmount, | ||
uint256 _maximumSharesToBurn | ||
) external; | ||
|
||
function unstakeClaimTokens_new(uint256 _unbondNonce) external; | ||
|
||
function unstakeClaimTokens_newPOL(uint256 _unbondNonce) external; | ||
|
||
function restake() external returns (uint256, uint256); | ||
|
||
function withdrawRewards() external; | ||
|
||
function withdrawRewardsPOL() external; | ||
|
||
function getTotalStake( | ||
address _user | ||
) external view returns (uint256, uint256); | ||
|
||
function unbondNonces(address _user) external view returns (uint256); | ||
|
||
function unbonds_new( | ||
address _address, | ||
address _user, | ||
uint256 _unbondNonce | ||
) external view returns (DelegatorUnbond memory); | ||
|
||
function stakingLogger() external view returns (address); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.