-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubgraph.yaml
79 lines (79 loc) · 2.04 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
# - kind: ethereum
# name: Mafia
# network: inconetwork
# source:
# address: "0xd3cdd34c2E0521C8A80656548923300D988B5354"
# abi: Mafia
# startBlock: 181351
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.7
# language: wasm/assemblyscript
# entities:
# - Game
# - Player
# abis:
# - name: Mafia
# file: ./abis/Mafia.json
# eventHandlers:
# - event: JoinGame(address,address[])
# handler: handleJoinGame
# - event: InitGame(uint8)
# handler: handleInitGame
# file: ./src/mappings.ts
- kind: ethereum
name: Contract
network: inconetwork
source:
address: "0x85F136F800130aDf5f58E15D76f671F588c623B2"
abi: Contract
startBlock: 181647
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- InitGame
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: InitGame(address,address,uint256)
handler: handleInitGame
file: ./src/contract.ts
templates:
- kind: ethereum
name: Mafia
network: inconetwork
source:
abi: Mafia
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Game
- Player
abis:
- name: Mafia
file: ./abis/Mafia.json
eventHandlers:
- event: JoinGame(address,address[])
handler: handleJoinGame
- event: InitGame(uint8)
handler: handleInitGame
- event: Action(address,address[])
handler: handleAction
- event: Voted(address,uint8,uint8)
handler: handleVote
- event: CheckMafia(bool)
handler: handleCheckMafia
- event: Killed(address)
handler: handleKilled
- event: MafiaWin(bool)
handler: handleMafiaWin
file: ./src/mappings.ts