-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
59 lines (59 loc) · 1.65 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: CoinLeaguesFactoryRoles
network: matic
source:
address: "0x8fFA73bB9404c6fa01A16e0F996787bD3F4CeF66"
abi: CoinLeaguesFactoryRoles
startBlock: 20250578
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Game
- Player
abis:
- name: CoinLeaguesFactoryRoles
file: ./abis/CoinLeaguesFactoryRoles.json
- name: CoinLeagues
file: ./abis/CoinLeagues.json
eventHandlers:
- event: GameCreated(address,uint256)
handler: handleGameCreated
file: ./src/mappings/mapping.ts
templates:
- name: CoinLeagues
kind: ethereum/contract
network: matic
source:
abi: CoinLeagues
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/coinleagues.ts
entities:
- Game
- Player
abis:
- name: CoinLeagues
file: ./abis/CoinLeagues.json
eventHandlers:
- event: JoinedGame(address)
handler: handleJoinedGame
- event: StartedGame(uint256)
handler: handleStartedGame
- event: EndedGame(uint256)
handler: handleEndedGame
- event: AbortedGame(uint256)
handler: handleAbortedGame
- event: Claimed(address,uint256,uint256)
handler: handleClaimed
- event: Winned(address)
handler: handleWinned
- event: WinnedMultiple(address,address,address)
handler: handleWinnedMultiple