diff --git a/subgraph/README.md b/subgraph/README.md index e881acd..6440d8b 100644 --- a/subgraph/README.md +++ b/subgraph/README.md @@ -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 @@ -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 diff --git a/subgraph/package.json b/subgraph/package.json index 3540f49..e26b8c2 100644 --- a/subgraph/package.json +++ b/subgraph/package.json @@ -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": { diff --git a/subgraph/subgraph.yaml b/subgraph/subgraph.yaml index 9976934..fd49b5d 100644 --- a/subgraph/subgraph.yaml +++ b/subgraph/subgraph.yaml @@ -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 @@ -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