-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
93 lines (93 loc) · 3.02 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
description: Kleros is a blockchain dispute resolution platform
repository: https://github.com/sistemico/kleros-subgraph
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- name: Kleros
kind: ethereum/contract
network: mainnet
source:
abi: KlerosLiquid
address: '0x988b3a538b618c7a603e1c11ab82cd16dbe28069'
startBlock: 7303699
mapping:
kind: ethereum/events
apiVersion: 0.0.4
file: ./src/mapping/index.ts
language: wasm/assemblyscript
entities:
- Court
- Dispute
- Kleros
abis:
- name: KlerosLiquid
file: ./abis/KlerosLiquid.json
eventHandlers:
- event: AppealDecision(indexed uint256,indexed address)
handler: handleAppealDecision
- event: AppealPossible(indexed uint256,indexed address)
handler: handleAppealPossible
- event: DisputeCreation(indexed uint256,indexed address)
handler: handleDisputeCreation
- event: Draw(indexed address,indexed uint256,uint256,uint256)
handler: handleDraw
- event: NewPeriod(indexed uint256,uint8)
handler: handleNewPeriod
- event: NewPhase(uint8)
handler: handleNewPhase
- event: StakeSet(indexed address,uint256,uint128,uint256)
handler: handleStakeSet
- event: TokenAndETHShift(indexed address,indexed uint256,int256,int256)
handler: handleTokenAndETHShift
callHandlers:
- function: changeSubcourtAlpha(uint96,uint256)
handler: handleChangeAlpha
- function: changeSubcourtJurorFee(uint96,uint256)
handler: handleChangeJurorFee
- function: changeSubcourtJurorsForJump(uint96,uint256)
handler: handleChangeJurorsForJump
- function: changeSubcourtMinStake(uint96,uint256)
handler: handleChangeMinStake
- name: Pinakion
kind: ethereum/contract
network: mainnet
source:
abi: Pinakion
address: '0x93ed3fbe21207ec2e8f2d3c3de6e058cb73bc04d'
startBlock: 5257012
mapping:
kind: ethereum/events
apiVersion: 0.0.4
file: ./src/mapping/token.ts
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: Pinakion
file: ./abis/Pinakion.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handlePinakionTransfer
- name: PolicyRegistry
kind: ethereum/contract
network: mainnet
source:
abi: PolicyRegistry
address: '0x03a9458d77dd705829fa758c64dbe770385295cc'
startBlock: 7305452
mapping:
kind: ethereum/events
apiVersion: 0.0.4
file: ./src/mapping/index.ts
language: wasm/assemblyscript
entities:
- Court
abis:
- name: PolicyRegistry
file: ./abis/PolicyRegistry.json
- name: KlerosLiquid
file: ./abis/KlerosLiquid.json
eventHandlers:
- event: PolicyUpdate(indexed uint256,string)
handler: handlerPolicyUpdate