graph-tooling icon indicating copy to clipboard operation
graph-tooling copied to clipboard

add `graph publish` command

Open azf20 opened this issue 1 year ago • 0 comments

Publish a subgraph directly to The Graph Network from graph-cli

graph publish --subgraph subgraph.yaml --metadata metadata.json --account <MNEMONIC> --signal <GRT_AMOUNT> --publishNetwork arbitrum-one

Steps:

  1. Upload metadata image to IPFS
  2. Upload metadata file to IPFS
  3. Upload subgraph to IPFS
  4. Create, sign and broadcast Publish transaction
  • Indicate progress
  • Log failures
  • On success - return transaction hash and Explorer link for published subgraph

azf20 avatar May 07 '24 16:05 azf20