-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
40 lines (40 loc) · 1.36 KB
/
subgraph.yaml
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
33
34
35
36
37
38
39
40
specVersion: 0.0.2
description: The Graph protocol subgraph for NEWO on Avalanche
repository: https://github.com/new-order-network/newo-avalanche-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: NewOrder
network: avalanche
source:
address: "0x4Bfc90322dD638F81F034517359BD447f8E0235a"
abi: NewOrder
startBlock: 11833866 # First contract event block, minus one just in case :)
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Approval
- RoleAdminChanged
- RoleGranted
- RoleRevoked
- Transfer
abis:
- name: NewOrder
file: ./abis/NewOrder.json
- name: JLP
file: ./abis/JLP.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: RoleAdminChanged(indexed bytes32,indexed bytes32,indexed bytes32)
handler: handleRoleAdminChanged
- event: RoleGranted(indexed bytes32,indexed address,indexed address)
handler: handleRoleGranted
- event: RoleRevoked(indexed bytes32,indexed address,indexed address)
handler: handleRoleRevoked
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mapping.ts