Skip to content

Commit

Permalink
Merge pull request #208 from debridge-finance/fix/interface-view
Browse files Browse the repository at this point in the history
Added view attr in intarfaces
  • Loading branch information
artyukh authored Dec 8, 2022
2 parents 5a2605d + 26c1aa7 commit d3043c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions contracts/interfaces/ICallProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ pragma solidity ^0.8.7;
interface ICallProxy {

/// @dev Chain from which the current submission is received
function submissionChainIdFrom() external returns (uint256);
function submissionChainIdFrom() external view returns (uint256);
/// @dev Native sender of the current submission
function submissionNativeSender() external returns (bytes memory);
function submissionNativeSender() external view returns (bytes memory);

/// @dev Used for calls where native asset transfer is involved.
/// @param _reserveAddress Receiver of the tokens if the call to _receiver fails
Expand Down
10 changes: 5 additions & 5 deletions contracts/interfaces/IDeBridgeGate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,21 @@ interface IDeBridgeGate {

/// @dev Returns whether the transfer with the submissionId was claimed.
/// submissionId is generated in getSubmissionIdFrom
function isSubmissionUsed(bytes32 submissionId) external returns (bool);
function isSubmissionUsed(bytes32 submissionId) view external returns (bool);

/// @dev Returns native token info by wrapped token address
function getNativeInfo(address token) external returns (
function getNativeInfo(address token) view external returns (
uint256 nativeChainId,
bytes memory nativeAddress);

/// @dev Returns address of the proxy to execute user's calls.
function callProxy() external returns (address);
function callProxy() external view returns (address);

/// @dev Fallback fixed fee in native asset, used if a chain fixed fee is set to 0
function globalFixedNativeFee() external returns (uint256);
function globalFixedNativeFee() external view returns (uint256);

/// @dev Fallback transfer fee in BPS, used if a chain transfer fee is set to 0
function globalTransferFeeBps() external returns (uint16);
function globalTransferFeeBps() external view returns (uint16);

/* ========== FUNCTIONS ========== */

Expand Down

0 comments on commit d3043c3

Please sign in to comment.