-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
93 lines (93 loc) · 3.42 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: WyvernExchangev2
network: mainnet
source:
address: "0x7f268357A8c2552623316e2562D90e642bB538E5"
abi: WyvernExchange
startBlock: 14120910
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- OrderApprovedPartOne
- OrderApprovedPartTwo
- OrderCancelled
- OrdersMatched
abis:
- name: Weth
file: ./abis/Weth.json
- name: WyvernExchange
file: ./abis/WyvernExchange.json
eventHandlers:
- event: OrderApprovedPartOne(indexed bytes32,address,indexed address,address,uint256,uint256,uint256,uint256,indexed address,uint8,uint8,uint8,address)
handler: handleOrderApprovedPartOne
- event: OrderApprovedPartTwo(indexed bytes32,uint8,bytes,bytes,address,bytes,address,uint256,uint256,uint256,uint256,uint256,bool)
handler: handleOrderApprovedPartTwo
- event: OrderCancelled(indexed bytes32)
handler: handleOrderCancelled
- event: OrdersMatched(bytes32,bytes32,indexed address,indexed address,uint256,indexed bytes32)
handler: handleOrdersMatched
callHandlers:
- function: atomicMatch_(address[14],uint256[18],uint8[8],bytes,bytes,bytes,bytes,bytes,bytes,uint8[2],bytes32[5])
handler: handleAtomicMatch
file: ./src/mapping.ts
- kind: ethereum/contract
name: WyvernExchangev1
network: mainnet
source:
address: "0x7be8076f4ea4a4ad08075c2508e481d6c946d12b"
abi: WyvernExchange
startBlock: 5741100
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- OrderApprovedPartOne
- OrderApprovedPartTwo
- OrderCancelled
- OrdersMatched
abis:
- name: Weth
file: ./abis/Weth.json
- name: WyvernExchange
file: ./abis/WyvernExchange.json
eventHandlers:
- event: OrderApprovedPartOne(indexed bytes32,address,indexed address,address,uint256,uint256,uint256,uint256,indexed address,uint8,uint8,uint8,address)
handler: handleOrderApprovedPartOne
- event: OrderApprovedPartTwo(indexed bytes32,uint8,bytes,bytes,address,bytes,address,uint256,uint256,uint256,uint256,uint256,bool)
handler: handleOrderApprovedPartTwo
- event: OrderCancelled(indexed bytes32)
handler: handleOrderCancelled
- event: OrdersMatched(bytes32,bytes32,indexed address,indexed address,uint256,indexed bytes32)
handler: handleOrdersMatched
callHandlers:
- function: atomicMatch_(address[14],uint256[18],uint8[8],bytes,bytes,bytes,bytes,bytes,bytes,uint8[2],bytes32[5])
handler: handleAtomicMatch
file: ./src/mapping.ts
- kind: ethereum/contract
name: Parcel
network: mainnet
source:
address: "0x79986aF15539de2db9A5086382daEdA917A9CF0C"
abi: Parcel
startBlock: 5741100
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: Parcel
file: ./abis/parcels.json
eventHandlers:
# We only care about transfers?
- event: Transfer(indexed address,indexed address,uint256)
handler: handleParcelTransfer
file: ./src/mapping.ts