This monorepo consists of
A frozen version of the cNFT contract.
A stats page powered by The Graph
Scripts used to automate repetitive tasks (currently only a script for deploying the contract)
End-to-end tests for the contract
Frontend for bscs.cura.run
Frontend for bscs.cura.run
yarn installyarn build:website # build the website under packages/websiteyarn build:subgraph # build the subgraph under packages/subgraphyarn build:contract # build the contract under packages/contractyarn deploy:contract This command will run deployement script from packages/scripts, this script will:
- Read
/package.jsonto determine the contract address and network - Create a new address and deploy the contract to it
- Update the version and contract address under
/package.json - Update the contract address under
packages/subgraph/subgraph.yaml - Read
/metadata.jsonand use it to callinit
Before running this command, we need to Only update startBlock under packages/subgraph/subgraph.yaml (optional but will make indexing faster)
yarn deploy:subgraphThat's handled via Vercel, and it uses the configs from package.json