forked from paco0x/bodhi-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubgraph.yaml.example
121 lines (121 loc) · 3.5 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Bodhi
network: mainnet
source:
abi: Bodhi
address: "0x5FbDB2315678afecb367f032d93F642f64180aa3"
startBlock: 0
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: mainnet
source:
abi: SpaceFactory
address: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9"
startBlock: 0
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: mainnet
source:
abi: BodhiTradeHelper
address: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0"
startBlock: 0
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
- kind: ethereum
name: Wishpool
network: mainnet
source:
abi: Wishpool
address: "0x71089Ba41e478702e1904692385Be3972B2cBf9e"
startBlock: 0
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Wish
- Submission
abis:
- name: Wishpool
file: ./abis/Wishpool.json
eventHandlers:
- event: CreateWish(indexed uint256,indexed address,indexed address)
handler: handleCreateWish
- event: Submit(indexed uint256,indexed address,uint256)
handler: handleSubmit
- event: Reward(indexed uint256,indexed address,indexed uint256,uint256,uint256)
handler: handleReward
file: ./src/wishpool.ts
templates:
- kind: ethereum
name: Space
network: mainnet
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