npx hardhat run scripts/deploy.ts
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!
...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>