Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monhi/startask
https://github.com/monhi/startask
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/monhi/startask
- Owner: monhi
- Created: 2024-04-20T07:00:16.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-07T10:23:33.000Z (6 months ago)
- Last Synced: 2024-05-07T11:31:54.866Z (6 months ago)
- Language: TypeScript
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Startask
This is a sample project to use the facilities that `thegraph.com` provides to process and show NFT data in the `Bored Ape Yacht Club`
I have to fill all the contents of the `subgraph.yaml` file to point to the `BAYC` contract on the `Ethereum` network.In the `src\mapping.ts` all the necessary codes are available to implement the `handleTransfer` and `handleMetadata` functions which create necessary tokens to maintain the information of BAYC NFTs.
# Compilation and deployment
To compile and deploy the project, we have to create a subgraph in `thegraph.com` and based on the instructions compile and deploy our project.
Sample instructions are like the following:* npm install -g @graphprotocol/graph-cli
* graph init --studio `subgraph_name`
* graph auth --studio `authentication token for the subgraph`
* cd `subgraph_name`
* graph codegen
* graph build
* graph deploy --studio `subgraph_name`
# Points
I have to use `file data sources` instead of `ipfs.cat` and `ipfs.map` because newer APIs of the graph do not support these 2 functions.[File data sources](https://thegraph.com/docs/en/developing/creating-a-subgraph/#file-data-sources)