Skip to content
Happy Hacking Christmas 🎅
Branch: master
Clone or download
Latest commit e0fe302 Dec 27, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build/contracts
contracts
scripts
.gitattributes
.gitignore
LICENSE
README.md
package.json
yarn.lock

README.md

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
You can’t perform that action at this time.