GildedHonour / alien888

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alien888 NFTs

deploy a contract

npx hardhat run scripts/deploy.ts

deploy a subgraph

Create a subgraph called my_contract_123 at https://thegraph.com/studio/subgraph/

graph auth --studio <deploy_key>

graph init --contract-name MyContract123 --index-events --studio \
  --from-contract <contract_addrees> \
  --abi abi.json \
  --network arbitrum-one \
  my_contract_123

Then deploy it

cd my_contract_123
yarn deploy

Done!

Note that ...

...either the name of a subgraph created in Studio - slug - must match the one specified in graph init...:

my_contract_123 == my_contract_123

or a slug must be specified explicitly:

graph deploy --studio <subgraph-slug>

About


Languages

Language:HTML 31.2%Language:Go 30.2%Language:CSS 22.0%Language:JavaScript 10.9%Language:Solidity 3.4%Language:TypeScript 1.7%Language:Rust 0.7%