-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
65 lines (65 loc) · 2.06 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: SquidGameFactory
network: matic
source:
address: "0xa288E0cc2ed174bF8Eb8adb6CcD436FaceBEF472"
abi: SquidGameFactory
startBlock: 26316532
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- OwnershipTransferred
- SquidCreated
abis:
- name: SquidGameFactory
file: ./abis/SquidGameFactory.json
- name: SquidGame
file: ./abis/SquidGame.json
eventHandlers:
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: SquidCreated(address,uint256,uint256,uint256)
handler: handleSquidCreated
file: ./src/mapping.ts
templates:
- name: SquidGame
kind: ethereum/contract
network: matic
source:
abi: SquidGame
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/squidGame.ts
entities:
- Game
- Player
abis:
- name: SquidGame
file: ./abis/SquidGame.json
eventHandlers:
- event: PlayerJoined(address,uint256)
handler: handlePlayerJoinedGame
- event: PlayerJoinedRound(uint256,address,uint256,uint8)
handler: handlePlayerJoinedRound
- event: ChallengeStarted(uint256,int256,uint256)
handler: handleChallengeStarted
- event: ChallengeFinished(uint256,int256,uint256,uint8)
handler: handleChallengeFinished
- event: ChallengeSetup(uint256,address,uint256)
handler: handleChallengeSetup
- event: VoteToQuit(uint256,address,uint256)
handler: handleVoteToQuit
- event: GameQuitted(uint256,uint256,uint256,uint256)
handler: handleGameQuitted
- event: Withdrawed(uint256,address,uint256)
handler: handleWithdrawed
- event: WithdrawedHouse(uint256,uint256)
handler: handleWithdrawedHouse