-
Notifications
You must be signed in to change notification settings - Fork 19
/
subgraph.yaml
32 lines (32 loc) · 966 Bytes
/
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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: RandomWinnerGame
network: mumbai
source:
address: "0x5d36E63ccD1137D48e81d35c4DA0B523B6E46D59"
abi: RandomWinnerGame
startBlock: 25208634
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- GameEnded
- GameStarted
- OwnershipTransferred
abis:
- name: RandomWinnerGame
file: ./abis/RandomWinnerGame.json
eventHandlers:
- event: GameEnded(uint256,address,bytes32)
handler: handleGameEnded
- event: PlayerJoined(uint256,address)
handler: handlePlayerJoined
- event: GameStarted(uint256,uint8,uint256)
handler: handleGameStarted
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
file: ./src/mapping.ts