-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
33 lines (33 loc) · 1.08 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: UniverseMarketplace
# network: ropsten
# network: rinkeby
network: goerli
source:
# address: "0xCB11366370C68cb1795B94fF8588Ad6Db590e15E"
# address: "0xe441c394F917D5a90019C76897458257801ce132"
address: "0xdE8C8fF3835c5E5cAe88b5b403ef56b9243381B1"
abi: UniverseMarketplace
# startBlock: 11303625
# startBlock: 10211840
startBlock: 7626284
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- OrderMatchEntity
- OrderCancelEntity
abis:
- name: UniverseMarketplace
file: ./abis/UniverseMarketplace.json
eventHandlers:
- event: Match(indexed bytes32,indexed bytes32,indexed address,address,uint256,uint256,(bytes4,bytes),(bytes4,bytes))
handler: handleOrderMatch
- event: Cancel(indexed bytes32,indexed address,(bytes4,bytes),(bytes4,bytes))
handler: handleOrderCancel
file: ./src/mapping.ts