Created
April 21, 2020 10:15
-
-
Save afzaal-ahmad-zeeshan/8b988832b3d57d5e7ededfadbea44436 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.17; | |
contract RemoteInterface { | |
function setTeamContract(address contractAddress) public; | |
function getMyTeamContract() public view returns (address); | |
function getCellTeamNumber(uint index) public view returns (int); | |
function getMyTeamCount() public view returns (int); | |
function getCellHashFromContract(uint index) public returns (bytes32); | |
function setCellFromContract(uint index, bytes32 nonce) public payable returns (bytes32); | |
} | |
contract ClientTeam1 { | |
address remote_address = 0xC963848BD0B7373DA4f97d4D258b318DfCaC2662; | |
RemoteInterface rInterface; | |
constructor() public { | |
rInterface = RemoteInterface(remote_address); | |
} | |
function getMyTeamContract() public view returns (address teamAddress) { | |
return rInterface.getMyTeamContract(); | |
} | |
function setMyTeamContract(address teamAddress) public { | |
rInterface.setTeamContract(teamAddress); | |
} | |
function getCellTeamNumber(uint index) public view returns (int) { | |
return rInterface.getCellTeamNumber(index); | |
} | |
function getMyTeamCount() public view returns (int) { | |
return rInterface.getMyTeamCount(); | |
} | |
function getCellHashFromContract(uint index) public returns (bytes32) { | |
return rInterface.getCellHashFromContract(index); | |
} | |
function setCellFromContract(uint index, bytes32 nonce) public payable returns (bytes32) { | |
return rInterface.setCellFromContract(index, nonce); | |
} | |
function greet() public pure returns (string memory greeting) { | |
return "Hello from Team 1"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment