The smart contract have several function to manage fans and score:
isFan
: does the user is know has fan (so own the SBT)scoreOf
: get the score of an user for the current seasonscoreForSeason
: get the score of an user for a previous seasonmint
: restricted to owner, it send a new SBT to the specified userincreaseScore
: restricted to owner, it increase the score of the specified userstartNewSeason
: restricted to owner, start a new season and reset the score for everyone (fan still keep their SBT, only the score is reset)
You can run yarn hardhat test
to run tests locally
You can run yarn hardhat deploy --network bsc
to deploy the contract, but don't forget to set
your RPC URL and privateKey in hardhat.config.ts