cp .env.test .env
npm install
npm start
To change the environment you want to work on set the REACT_APP_SELECTED_ENVIRONMENT variable defined in the .env file to production(polygon mainnet)
or development(mumbai)
To update the subgraph schema, in the packages/frontend directory run:
npm run subgraph:codegen
And update queries in src/lib/queries.graphql
To generate new typechain facts, in the packages/contracts directory run:
npm i
npm run compile
Then copy packages/contracts/typechain/NonFungibleTimeCollection.d.ts into packages/frontend/src/lib/helpers/NftCollection/typechain/NonFungibleTimeCollection.d.ts
and packages/contracts/typechain/factories/NonFungibleTimeCollection__factory.d.ts into packages/frontend/src/lib/helpers/NftCollection/typechain/factory/packages/contracts/typechain/factories/NonFungibleTimeCollection__factory.d.ts
Then update packages/frontend/src/lib/helpers/NftCollection/index.tsx to call the updated smart contract interface