Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.07 KB

File metadata and controls

37 lines (24 loc) · 1.07 KB

Development

cp .env.test .env
npm install
npm start

Environment

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)

Subgraph Changes

To update the subgraph schema, in the packages/frontend directory run:

npm run subgraph:codegen

And update queries in src/lib/queries.graphql

Smart Contract Changes

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