Skip to content

Instantly share code, notes, and snippets.

@afzaal-ahmad-zeeshan
Created April 23, 2020 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afzaal-ahmad-zeeshan/54b453803ce85824ecbbf8ac940bd60c to your computer and use it in GitHub Desktop.
Save afzaal-ahmad-zeeshan/54b453803ce85824ecbbf8ac940bd60c to your computer and use it in GitHub Desktop.
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