-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
84 lines (84 loc) · 2.99 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: KlerosLiquid
network: mainnet
source:
address: "0x988b3A538b618C7A603e1c11Ab82Cd16dbE28069"
abi: KlerosLiquid
startBlock: 7303699
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- NewPhase
- NewPeriod
- StakeSet
- Draw
- TokenAndETHShift
- DisputeCreation
- AppealPossible
- AppealDecision
abis:
- name: KlerosLiquid
file: ./abis/KlerosLiquid.json
eventHandlers:
- event: NewPhase(uint8)
handler: handleNewPhase
- event: NewPeriod(indexed uint256,uint8)
handler: handleNewPeriod
- event: StakeSet(indexed address,uint256,uint128,uint256)
handler: handleStakeSet
- event: Draw(indexed address,indexed uint256,uint256,uint256)
handler: handleDraw
- event: TokenAndETHShift(indexed address,indexed uint256,int256,int256)
handler: handleTokenAndETHShift
- event: DisputeCreation(indexed uint256,indexed address)
handler: handleDisputeCreation
- event: AppealPossible(indexed uint256,indexed address)
handler: handleAppealPossible
- event: AppealDecision(indexed uint256,indexed address)
handler: handleAppealDecision
callHandlers:
- function: createSubcourt(uint96,bool,uint256,uint256,uint256,uint256,uint256[4],uint256)
handler: handleCreateSubcourt
- function: executeRuling(uint256)
handler: handleExecuteRuling
- function: changeSubcourtMinStake(uint96,uint256)
handler: handleChangeSubcourtMinStake
- function: changeSubcourtAlpha(uint96,uint256)
handler: handleChangeSubcourtAlpha
- function: changeSubcourtJurorFee(uint96,uint256)
handler: handleChangeSubcourtJurorFee
- function: changeSubcourtJurorsForJump(uint96,uint256)
handler: handleChangeSubcourtJurorsForJump
- function: changeSubcourtTimesPerPeriod(uint96,uint256[4])
handler: handleChangeSubcourtTimesPerPeriod
- function: castCommit(uint256,uint256[],bytes32)
handler: handleCastCommit
- function: castVote(uint256,uint256[],uint256,uint256)
handler: handleCastVote
file: ./src/mappings/klerosLiquid.ts
- kind: ethereum/contract
name: PolicyRegistry
network: mainnet
source:
address: "0xCf1f07713d5193FaE5c1653C9f61953D048BECe4"
abi: PolicyRegistry
startBlock: 10175794
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- PolicyUpdate
abis:
- name: PolicyRegistry
file: ./abis/PolicyRegistry.json
eventHandlers:
- event: PolicyUpdate(indexed uint256,string)
handler: handlePolicyUpdate
file: ./src/mappings/policyRegistry.ts