Skip to content

Commit

Permalink
Move from bytes32 to SchainHash
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Oct 14, 2024
1 parent f4b5e60 commit 1faae31
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions contracts/mainnet/DepositBoxes/IDepositBoxERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ interface IDepositBoxERC20 is IDepositBox {
function stopTrustingReceiver(string calldata schainName, address receiver) external;
function trustReceiver(string calldata schainName, address receiver) external;
function validateTransfer(uint transferId) external;
function isReceiverTrusted(bytes32 schainHash, address receiver) external view returns (bool);
function getArbitrageDuration(bytes32 schainHash) external view returns (uint256);
function getBigTransferThreshold(bytes32 schainHash, address token) external view returns (uint256);
function isReceiverTrusted(SchainHash schainHash, address receiver) external view returns (bool);
function getArbitrageDuration(SchainHash schainHash) external view returns (uint256);
function getBigTransferThreshold(SchainHash schainHash, address token) external view returns (uint256);
function getDelayedAmount(address receiver, address token) external view returns (uint256 value);
function getNextUnlockTimestamp(address receiver, address token) external view returns (uint256 unlockTimestamp);
function getSchainToERC20(string calldata schainName, address erc20OnMainnet) external view returns (bool);
Expand All @@ -60,7 +60,7 @@ interface IDepositBoxERC20 is IDepositBox {
external
view
returns (address[] memory);
function getTimeDelay(bytes32 schainHash) external view returns (uint256);
function getTimeDelay(SchainHash schainHash) external view returns (uint256);
function getTrustedReceiver(string calldata schainName, uint256 index) external view returns (address);
function getTrustedReceiversAmount(bytes32 schainHash) external view returns (uint256);
function getTrustedReceiversAmount(SchainHash schainHash) external view returns (uint256);
}
8 changes: 4 additions & 4 deletions contracts/mainnet/IMessageProxyForMainnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ interface IMessageProxyForMainnet is IMessageProxy {
function addReimbursedContract(string memory schainName, address reimbursedContract) external;
function removeReimbursedContract(string memory schainName, address reimbursedContract) external;
function messageInProgress() external view returns (bool);
function isPaused(bytes32 schainHash) external view returns (bool);
function isReimbursedContract(bytes32 schainHash, address contractAddress) external view returns (bool);
function getReimbursedContractsLength(bytes32 schainHash) external view returns (uint256);
function isPaused(SchainHash schainHash) external view returns (bool);
function isReimbursedContract(SchainHash schainHash, address contractAddress) external view returns (bool);
function getReimbursedContractsLength(SchainHash schainHash) external view returns (uint256);
function getReimbursedContractsRange(
bytes32 schainHash,
SchainHash schainHash,
uint256 from,
uint256 to
)
Expand Down
2 changes: 1 addition & 1 deletion contracts/mainnet/ISkaleManagerClient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ import {SchainHash} from "../DomainTypes.sol";
interface ISkaleManagerClient {
function initialize(IContractManager newContractManagerOfSkaleManager) external;
function isSchainOwner(address sender, SchainHash schainHash) external view returns (bool);
function isAgentAuthorized(bytes32 schainHash, address sender) external view returns (bool);
function isAgentAuthorized(SchainHash schainHash, address sender) external view returns (bool);
}

0 comments on commit 1faae31

Please sign in to comment.