-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBigBoardz.sol
31 lines (26 loc) · 942 Bytes
/
BigBoardz.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pragma solidity 0.7.0;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
// The BigBoardz DAO contract
// This contract must:
// create boards for hosts
// allow hosts to request fresh scores
contract BigBoardz is AccessControl, ChainlinkClient{
// games (mapping gameIds -> gameDataobject)
address[] openBoardz;
address[] abandonedBoardz;
address[] soldOutBoardz;
address[] completeBoardz; // (game is over, winners were paid and profits were collected.)
constructor() public {
// set hostToken
}
/**
* Withdraw LINK from this contract
*
* DO NOT USE THIS IN PRODUCTION AS IT CAN BE CALLED BY ANY ADDRESS.
* THIS IS PURELY FOR EXAMPLE PURPOSES.
*/
/* function withdrawLink() external {
require(LINK.transfer(msg.sender, LINK.balanceOf(address(this))), "Unable to transfer");
} */
}