non-fungible-apps/subgraph/subgraph.yaml

58 lines
2.3 KiB
YAML

specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: FleekNFA
network: mumbai
source:
address: "0x11cd77eac1a0883de9435b5586474903a2a084cd" # <- Proxy Contract | Current implementation contract: 0x113169680A417e4dB4AD11832486FF317fB4CB36
abi: FleekNFA
startBlock: 32071579
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Approval
- ApprovalForAll
- CollectionRoleGranted
- CollectionRoleRevoked
- MetadataUpdate
- NewMint
- TokenRoleGranted
- TokenRoleRevoked
- Transfer
- Token
- Owner
- Controller
- CollectionOwner
- GithubRepository
abis:
- name: FleekNFA
file: ../contracts/artifacts/contracts/FleekERC721.sol/FleekERC721.json
eventHandlers:
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
- event: MetadataUpdate(indexed uint256,string,string,indexed address)
handler: handleMetadataUpdateWithStringValue
- event: MetadataUpdate(indexed uint256,string,string[2],indexed address)
handler: handleMetadataUpdateWithDoubleStringValue
- event: MetadataUpdate(indexed uint256,string,uint24,indexed address)
handler: handleMetadataUpdateWithIntValue
- event: CollectionRoleGranted(indexed uint8,indexed address,address)
handler: handleCollectionRoleGranted
- event: CollectionRoleRevoked(indexed uint8,indexed address,address)
handler: handleCollectionRoleRevoked
- event: NewMint(indexed uint256,string,string,string,string,string,string,string,uint24,bool,indexed address,indexed address)
handler: handleNewMint
- event: TokenRoleGranted(indexed uint256,indexed uint8,indexed address,address)
handler: handleTokenRoleGranted
- event: TokenRoleRevoked(indexed uint256,indexed uint8,indexed address,address)
handler: handleTokenRoleRevoked
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/fleek-nfa.ts