From 47b983bdf7e8eda735115007ff1ba4fe355f0c9b Mon Sep 17 00:00:00 2001 From: Sergey <2901744+evercoinx@users.noreply.github.com.> Date: Wed, 18 Sep 2024 21:46:45 +0200 Subject: [PATCH] Reformat some interfaces --- contracts/interfaces/IFxStateChildTunnel.sol | 24 +++------- contracts/interfaces/IPolygonMigration.sol | 2 +- contracts/interfaces/IValidatorShare.sol | 47 +++++++++++--------- 3 files changed, 34 insertions(+), 39 deletions(-) diff --git a/contracts/interfaces/IFxStateChildTunnel.sol b/contracts/interfaces/IFxStateChildTunnel.sol index debd23ac..236c8914 100644 --- a/contracts/interfaces/IFxStateChildTunnel.sol +++ b/contracts/interfaces/IFxStateChildTunnel.sol @@ -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); } diff --git a/contracts/interfaces/IPolygonMigration.sol b/contracts/interfaces/IPolygonMigration.sol index b535de76..28051cb6 100644 --- a/contracts/interfaces/IPolygonMigration.sol +++ b/contracts/interfaces/IPolygonMigration.sol @@ -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); diff --git a/contracts/interfaces/IValidatorShare.sol b/contracts/interfaces/IValidatorShare.sol index 133a6c56..6a709a2d 100644 --- a/contracts/interfaces/IValidatorShare.sol +++ b/contracts/interfaces/IValidatorShare.sol @@ -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; @@ -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); }