This repo contains the Subgraph for the Ideamarket contracts.
-
Build:
npm run build:<NETWORK> [--branch=<BRANCH>] [--startblock=<STARTBLOCK>]
NETWORK
: Can bemainnet
,rinkeby
ortest
branch
: Optional argument. Defines which branch of theideamarket-contracts
repository is used. Default:master
startblock
: Optional argument. Defines on which block the subgraph should start syncing.
-
Deploy:
npx graph deploy --node <NODE> --ipfs <IPFS> <NAME>
NODE
: URL of the graph nodeIPFS
: URL of the IPFS nodeNAME
: The name of the subgraph
See the official The Graph documentation for information on how to alter and query a subgraph.