Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jy8752/the-graph-demo3
The graph demo.
https://github.com/jy8752/the-graph-demo3
assemblyscript thegraph typescript
Last synced: about 12 hours ago
JSON representation
The graph demo.
- Host: GitHub
- URL: https://github.com/jy8752/the-graph-demo3
- Owner: JY8752
- Created: 2022-09-19T08:40:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-19T08:43:26.000Z (over 2 years ago)
- Last Synced: 2024-11-12T14:11:51.474Z (2 months ago)
- Topics: assemblyscript, thegraph, typescript
- Language: TypeScript
- Homepage:
- Size: 72.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The graph demo3
[Shimashi](https://opensea.io/collection/shimashi-nft)のサブグラフを作成。## init
```
graph init --from-contract 0xe9814CcD783A12Ffc65E447c436b51A8a167fafd --contract-name Shimashi --index-events✔ Protocol · ethereum
✔ Product for which to initialize · hosted-service
✔ Subgraph name · jy8752/shimashi
✔ Directory to create the subgraph in · shimashi
✔ Ethereum network · mainnet
✔ Contract address · 0xe9814CcD783A12Ffc65E447c436b51A8a167fafd
✔ Fetching ABI from Etherscan
✔ Contract Name · Shimashi
———
Generate subgraph
Write subgraph to directory
✔ Create subgraph scaffold
✔ Initialize networks config
✔ Initialize subgraph repository
✔ Install dependencies with yarn
✔ Generate ABI and schema types with yarn codegen
✔ Add another contract? (y/N) · false
```## codegen
```
graph codegen
```## deploy
```
graph auth --product hosted-service
graph deploy --product hosted-service jy8752/shimashi
```