Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Prepare the graph, it failed :(
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidsi committed Mar 16, 2021
1 parent 81e4610 commit 0167f2b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions subgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ but it can easily be forked and pointed to another contract that follows this
standard.

See playground:
https://thegraph.com/explorer/subgraph/schmidsi/generic-erc721-subgraph
https://thegraph.com/explorer/subgraph/xecutors/nft-playground

## Fork and use your own contract

Expand All @@ -27,7 +27,7 @@ the name of your token, the `address` is where it is deployed and `startBlock`
is the block in which the token was deployed.

In `package.json` you need to search and replace
`schmidsi/generic-erc721-subgraph` with your Subgraph ID in the form of
`xecutors/nft-playground` with your Subgraph ID in the form of
`account-name/subgraph-name`. See
https://thegraph.com/docs/deploy-a-subgraph#create-a-graph-explorer-account

Expand Down
8 changes: 4 additions & 4 deletions subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"scripts": {
"codegen": "graph codegen",
"build": "graph build",
"deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ schmidsi/generic-erc721-subgraph",
"create-local": "graph create --node http://localhost:8020/ schmidsi/generic-erc721-subgraph",
"remove-local": "graph remove --node http://localhost:8020/ schmidsi/generic-erc721-subgraph",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 schmidsi/generic-erc721-subgraph",
"deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ xecutors/nft-playground",
"create-local": "graph create --node http://localhost:8020/ xecutors/nft-playground",
"remove-local": "graph remove --node http://localhost:8020/ xecutors/nft-playground",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 xecutors/nft-playground",
"postinstall": "npm run codegen"
},
"dependencies": {
Expand Down
16 changes: 8 additions & 8 deletions subgraph/subgraph.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
specVersion: 0.0.2
description: Generic ERC721 Subgraph (Transfers, Metadata)
repository: https://github.com/schmidsi/generic-erc721-subgraph
repository: https://github.com/xecutors/nft-playground
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Hashmasks # Change me
network: mainnet
name: NFT-Playground # Change me
network: rinkeby
source:
address: '0xC2C747E0F7004F9E8817Db2ca4997657a7746928' # Change me
abi: ERC721
startBlock: 11743743 # Change me
address: '0xDb7641D1C8da37796081365d6880Cec43aB50b25' # Change me
abi: LissajousToken
startBlock: 8244360 # Change me
mapping:
kind: ethereum/events
apiVersion: 0.0.4
Expand All @@ -21,8 +21,8 @@ dataSources:
- Contract
- Transfer
abis:
- name: ERC721
file: ./abis/ERC721.json
- name: LissajousToken
file: ../contracts/artifacts/contracts/LissajousToken.sol/LissajousToken.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
Expand Down

0 comments on commit 0167f2b

Please sign in to comment.