- Web page: https://1000blocks.space
- Documentation: https://documentation.1000blocks.space/
- Go inside hardhat folder where you do following:
npm install- Create mnemonic.txt and put in your deployment secret words phrase (alternatively you can autogenerate it with
yarn generate) yarn testyarn deployto initiate deployment.js from scripts folder. (you do here which contracts need to be deployed)
Others:
- you should put etherscan (for verified contracts) api into hardhat.config.js
Contracts (hardhat/contracts):
BLSToken.solis very simple ERC20 contract for our token. Max supply 42 million tokensBlocksSpace.solis main contract which handles buying of blocksareas and attaching pictures (main part of dApp)BlocksRewardsManager.solis receiving payments for blocksareas and manages where goes what. It is also handling initial distribution of BLS tokens as rewardsBlocksStaking.solis contract where users can stake BLS tokens and in return they get BNBs that were used to purchase blocksareas on dApp