-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.template.yaml
106 lines (106 loc) · 3.43 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
specVersion: 1.0.0
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: KlerosLiquid
network: {{network}}
source:
address: '{{kl_address}}'
abi: KlerosLiquid
startBlock: {{kl_startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- StakeSet
- Dispute
- Round
- Vote
- TokenAndETHShift
- NewPeriod
- Court
- KlerosCounter
- CourtStake
- Juror
- Arbitrable
- Draw
abis:
- name: KlerosLiquid
file: ./abis/KlerosLiquid.json
eventHandlers:
- event: DisputeCreation(indexed uint256,indexed address)
handler: handleDisputeCreation
- event: StakeSet(indexed address,uint256,uint128,uint256)
handler: handleStakeSet
- event: Draw(indexed address,indexed uint256,uint256,uint256)
handler: handleDraw
- event: NewPeriod(indexed uint256,uint8)
handler: handleNewPeriod
- event: TokenAndETHShift(indexed address,indexed uint256,int256,int256)
handler: handleTokenAndETHShift
- event: AppealDecision(indexed uint256,indexed address)
handler: handleAppealDecision
callHandlers:
- function: castCommit(uint256,uint256[],bytes32)
handler: handleCastCommit
- function: castVote(uint256,uint256[],uint256,uint256)
handler: handleCastVote
- 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: createSubcourt(uint96,bool,uint256,uint256,uint256,uint256,uint256[4],uint256)
handler: handleCreateSubcourt
file: ./src/KlerosLiquidMappings.ts
- kind: ethereum/contract
name: PolicyRegistry
network: {{network}}
source:
address: '{{pr_address}}'
abi: PolicyRegistry
startBlock: {{pr_startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- PolicyUpdate
- Court
abis:
- name: PolicyRegistry
file: ./abis/PolicyRegistry.json
eventHandlers:
- event: PolicyUpdate(indexed uint256,string)
handler: handlePolicyUpdate
file: ./src/PolicyRegistryMapping.ts
- kind: ethereum/contract
name: KlerosGovernor
network: {{network}}
source:
address: '{{kg_address}}'
abi: KlerosGovernor
startBlock: {{kg_startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Court
- KlerosLiquid
abis:
- name: KlerosGovernor
file: ./abis/KlerosGovernor.json
- name: KlerosLiquid
file: ./abis/KlerosLiquid.json
callHandlers:
- function: executeTransactionList(uint256,uint256,uint256)
handler: handlerExecuteTransactionList
file: ./src/KlerosGovernor.ts