-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsubgraph.yaml
52 lines (51 loc) · 1.85 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
specVersion: 0.0.2
repository: https://github.com/protofire/opensea-wyvern-exchange-subgraph
description: This subgraph aims to be index the opensea exchange contract, including time series entities, erc transactions and ntf contracts address
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: openseaWyvernExchange
network: mainnet
source:
address: "0x7be8076f4ea4a4ad08075c2508e481d6c946d12b"
abi: openseaWyvernExchange
startBlock: 5774644
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Account
- Asset
- AssetOwner
- Token
- Balance
- Block
- Transaction
- Erc20Transaction
- Minute
- Hour
- Day
- Week
- Order
- MinuteVolume
- HourVolume
- DayVolume
- WeekVolume
abis:
- name: openseaWyvernExchange
file: ./abis/openseaWyvernExchange.json
callHandlers:
- function: atomicMatch_(address[14],uint256[18],uint8[8],bytes,bytes,bytes,bytes,bytes,bytes,uint8[2],bytes32[5])
handler: handleAtomicMatch_
# 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
file: ./src/mapping.ts