-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.template.yaml
82 lines (76 loc) · 2.19 KB
/
subgraph.template.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
80
81
82
specVersion: 0.0.6
description: InsiderProtocol subgraph v1
repository: https://github.com/InsiderProtocol/subgraph
features:
- ipfsOnEthereumContracts
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Court
network: {{NETWORK}}
source:
address: '{{CONTRACT_COURT_ADDRESS}}'
abi: Court
startBlock: {{CONTRACT_COURT_START_BLOCK}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Court
- Stake
- Vote
abis:
- name: Court
file: ./abis/Court.json
eventHandlers:
- event: CourtCreated(uint256,address,address,uint256,uint256,uint256,uint256,string,uint256)
handler: handleCourtCreated
- event: Staked(uint256,uint256,address)
handler: handleStaked
- event: GuardianVoted(uint256,uint8,address)
handler: handleGuardianVoted
- event: InsiderVoted(uint256,uint8,address)
handler: handleInsiderVoted
file: ./src/mappings/Court.ts
- kind: ethereum/contract
name: Insider
network: {{NETWORK}}
source:
address: '{{CONTRACT_INSIDER_ADDRESS}}'
abi: Insider
startBlock: {{CONTRACT_INSIDER_START_BLOCK}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Insider
abis:
- name: Insider
file: ./abis/Insider.json
eventHandlers:
- event: RoomCreated(uint256,uint256,address)
handler: handleRoomCreated
file: ./src/mappings/Insider.ts
- kind: ethereum/contract
name: Soulbound
network: {{NETWORK}}
source:
address: '{{CONTRACT_SOULBOUND_ADDRESS}}'
abi: Soulbound
startBlock: {{CONTRACT_SOULBOUND_START_BLOCK}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Soulbound
abis:
- name: Soulbound
file: ./abis/Soulbound.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/mappings/Soulbound.ts