forked from paco0x/bodhi-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 2
/
subgraph.yaml.example
96 lines (96 loc) · 2.76 KB
/
subgraph.yaml.example
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
94
95
96
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Bodhi
network: optimism
source:
abi: Bodhi
address: "0x2AD82A4E39Bac43A54DdfE6f94980AAf0D1409eF"
startBlock: 113209482
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Create
abis:
- name: Bodhi
file: ./abis/Bodhi.json
eventHandlers:
- event: Create(indexed uint256,indexed address,string)
handler: handleCreate
- event: Remove(indexed uint256,indexed address)
handler: handleRemove
- event: Trade(indexed uint8,indexed uint256,indexed
address,uint256,uint256,uint256)
handler: handleTrade
- event: TransferBatch(indexed address,indexed address,indexed
address,uint256[],uint256[])
handler: handleTransferBatch
- event: TransferSingle(indexed address,indexed address,indexed
address,uint256,uint256)
handler: handleTransferSingle
file: ./src/bodhi.ts
- kind: ethereum
name: SpaceFactory
network: optimism
source:
abi: SpaceFactory
address: "0xA14D19387C83b56343fC2E7a8707986aF6a74d08"
startBlock: 119048371
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- SpaceFactoryCreate
abis:
- name: SpaceFactory
file: ./abis/SpaceFactory.json
eventHandlers:
- event: Create(uint256,indexed address,indexed uint256,address,string)
handler: handleSpaceCreate
file: ./src/space-factory.ts
- kind: ethereum
name: BodhiTradeHelper
network: optimism
source:
abi: BodhiTradeHelper
address: "0x59301bb28884b477dEc0F238c60650b60a691Eb9"
startBlock: 119048281
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- SafeBuy
abis:
- name: BodhiTradeHelper
file: ./abis/BodhiTradeHelper.json
eventHandlers:
- event: SafeBuy(indexed uint256,indexed address,uint256,uint256)
handler: handleSafeBuy
file: ./src/bodhi-trade-helper.ts
templates:
- kind: ethereum
name: Space
network: optimism
source:
abi: Space
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- SpaceCreate
abis:
- name: Space
file: ./abis/Space.json
eventHandlers:
- event: Create(indexed uint256,indexed uint256,indexed address)
handler: handlePostCreate
- event: Remove(indexed uint256)
handler: handlePostRemove
file: ./src/space.ts