From 5a6d6d44d63e7b75dbba979304edc8c8df871fb6 Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Wed, 25 Oct 2023 11:21:40 -0300 Subject: [PATCH] sync with nfts --- subgraph-goerli.yaml | 4 +--- subgraph-mumbai.yaml | 20 +++++++++++++++++++- subgraph-polygon.yaml | 4 +--- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/subgraph-goerli.yaml b/subgraph-goerli.yaml index b3223db..ef0ed7c 100644 --- a/subgraph-goerli.yaml +++ b/subgraph-goerli.yaml @@ -2,13 +2,11 @@ specVersion: 0.0.4 schema: file: ./schema.graphql dataSources: - - name: ERC721-Chronos-Traveler + - name: ERC721 kind: ethereum network: goerli source: - address: '0x450c91d1fe9f3d57b91218f6ff96f7994eec4d32' abi: ERC721 - startBlock: 8099655 mapping: kind: ethereum/events apiVersion: 0.0.6 diff --git a/subgraph-mumbai.yaml b/subgraph-mumbai.yaml index ad87b8d..52c9778 100644 --- a/subgraph-mumbai.yaml +++ b/subgraph-mumbai.yaml @@ -2,7 +2,25 @@ specVersion: 0.0.4 schema: file: ./schema.graphql dataSources: - # There is no "(Chronos) Traveler" on Mumbai + - name: ERC721 + kind: ethereum + network: matic + source: + abi: ERC721 + mapping: + kind: ethereum/events + apiVersion: 0.0.6 + language: wasm/assemblyscript + entities: + - Nft + - Account + abis: + - name: ERC721 + file: ./abis/ERC721.json + eventHandlers: + - event: Transfer(indexed address,indexed address,indexed uint256) + handler: handleTransfer + file: ./src/erc721/index.ts - name: ERC7432-Immutable-Roles kind: ethereum diff --git a/subgraph-polygon.yaml b/subgraph-polygon.yaml index e271834..e88dfa9 100644 --- a/subgraph-polygon.yaml +++ b/subgraph-polygon.yaml @@ -2,13 +2,11 @@ specVersion: 0.0.4 schema: file: ./schema.graphql dataSources: - - name: ERC721-Chronos-Traveler + - name: ERC721 kind: ethereum network: matic source: - address: '0xa03C4E40d1fCaa826591007a17Ca929ef8AdBF1C' abi: ERC721 - startBlock: 36796276 mapping: kind: ethereum/events apiVersion: 0.0.6