-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
32 lines (29 loc) · 825 Bytes
/
Copy pathsubgraph.yaml
File metadata and controls
32 lines (29 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Contract
network: mainnet
source:
address: "0x659cf1306edba213d1fb8f9352b4593a82b05d0c"
abi: Contract
startBlock: 13622753
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Role
- Transfer
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: RoleGranted(indexed bytes32,indexed address,indexed address)
handler: handleRoleGranted
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/contract.ts
# function tokenURI(uint256 tokenId) external view returns (string memory);
# }