Skip to content

Commit

Permalink
Reformat some interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
evercoinx committed Sep 18, 2024
1 parent 49aea05 commit 47b983b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 39 deletions.
24 changes: 7 additions & 17 deletions contracts/interfaces/IFxStateChildTunnel.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,11 @@ interface IFxStateChildTunnel {

function getRate() external view returns (uint256);

function convertMaticXToMatic(uint256 _balance)
external
view
returns (
uint256,
uint256,
uint256
);

function convertMaticToMaticX(uint256 _balance)
external
view
returns (
uint256,
uint256,
uint256
);
function convertMaticXToMatic(
uint256 _balance
) external view returns (uint256, uint256, uint256);

function convertMaticToMaticX(
uint256 _balance
) external view returns (uint256, uint256, uint256);
}
2 changes: 1 addition & 1 deletion contracts/interfaces/IPolygonMigration.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IPolygonMigration {
event Migrated(address indexed account, uint256 amount);
Expand Down
47 changes: 26 additions & 21 deletions contracts/interfaces/IValidatorShare.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,25 @@ interface IValidatorShare {

function delegation() external view returns (bool);

function buyVoucher(uint256 _amount, uint256 _minSharesToMint)
external
returns (uint256);

function buyVoucherPOL(uint256 _amount, uint256 _minSharesToMint)
external
returns (uint256);

function sellVoucher_new(uint256 _claimAmount, uint256 _maximumSharesToBurn)
external;

function sellVoucher_newPOL(uint256 _claimAmount, uint256 _maximumSharesToBurn)
external;
function buyVoucher(
uint256 _amount,
uint256 _minSharesToMint
) external returns (uint256);

function buyVoucherPOL(
uint256 _amount,
uint256 _minSharesToMint
) external returns (uint256);

function sellVoucher_new(
uint256 _claimAmount,
uint256 _maximumSharesToBurn
) external;

function sellVoucher_newPOL(
uint256 _claimAmount,
uint256 _maximumSharesToBurn
) external;

function unstakeClaimTokens_new(uint256 _unbondNonce) external;

Expand All @@ -41,13 +47,12 @@ interface IValidatorShare {

function withdrawRewardsPOL() external;

function getTotalStake(address _user)
external
view
returns (uint256, uint256);
function getTotalStake(
address _user
) external view returns (uint256, uint256);

function unbonds_new(address _address, uint256 _unbondNonce)
external
view
returns (DelegatorUnbond memory);
function unbonds_new(
address _address,
uint256 _unbondNonce
) external view returns (DelegatorUnbond memory);
}

0 comments on commit 47b983b

Please sign in to comment.