Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (31 sloc) 1.94 KB

happy-hacking-christmas

Happy Hacking Christmas 🎅

If you can win SantaClausToken (SCT) from the SantaClaus contract, it means that you are a great hacker! For winning SCT, you have to call the requestToken() function in the SantaClaus contract after satisfying some conditions.

function requestToken() public {
  require(_letter.isSealed(msg.sender));
  require(_christmasStocking.balanceOf(msg.sender) > 0);
  require(_christmasTree.powerOf(msg.sender) > 99999999);
  require(_token.balanceOf(msg.sender) == 0);

  // Congratulations!!
  _token.mint(msg.sender, 1);
}

Deployed contracts (Ropsten testnet)

To SCT holders

If you're a SCT holder, you can register your name in the following contract!

0x5a8b024f544ed745afc4d980e403c5e0967e62df

How to use the sample script for the challengers

You have to

  • install yarn
  • replace the variables address and privkey in scripts/sample.js with your own values

in advance.

$ yarn install
$ node scripts/sample.js