Skip to content

Commit

Permalink
Update ILinker
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Oct 9, 2024
1 parent 5cddebf commit fc2ff10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/mainnet/ILinker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface ILinker is ITwin {
function connectSchain(string calldata schainName, address[] calldata schainContracts) external;
function kill(string calldata schainName) external;
function disconnectSchain(string calldata schainName) external;
function isNotKilled(bytes32 schainHash) external view returns (bool);
function isNotKilled(SchainHash schainHash) external view returns (bool);
function hasMainnetContract(address mainnetContract) external view returns (bool);
function hasSchain(string calldata schainName) external view returns (bool connected);
}
4 changes: 3 additions & 1 deletion contracts/mainnet/ISkaleManagerClient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ pragma solidity >=0.8.19 <0.9.0;

import "@skalenetwork/skale-manager-interfaces/IContractManager.sol";

import {SchainHash} from "../DomainTypes.sol";


interface ISkaleManagerClient {
function initialize(IContractManager newContractManagerOfSkaleManager) external;
function isSchainOwner(address sender, bytes32 schainHash) external view returns (bool);
function isSchainOwner(address sender, SchainHash schainHash) external view returns (bool);
function isAgentAuthorized(bytes32 schainHash, address sender) external view returns (bool);
}
2 changes: 1 addition & 1 deletion contracts/mainnet/ITwin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ interface ITwin is ISkaleManagerClient {
function addSchainContract(string calldata schainName, address contractReceiver) external;
function removeSchainContract(string calldata schainName) external;
function hasSchainContract(string calldata schainName) external view returns (bool);
function getSchainContract(bytes32 schainHash) external view returns (address);
function getSchainContract(SchainHash schainHash) external view returns (address);
}

0 comments on commit fc2ff10

Please sign in to comment.