This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.template.yaml
85 lines (85 loc) · 2.85 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
specVersion: 0.0.2
description: Requests and submission times for the t2cr.
repository: https://github.com/kleros/t2cr-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ArbitrableTokenList
network: "{{network}}"
source:
address: "{{t2cr}}"
abi: ArbitrableTokenList
startBlock: {{t2crStartBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Registry
- Token
- Request
- Evidence
- Round
abis:
- name: ArbitrableTokenList
file: ./abis/t2cr.json
- name: IArbitrator
file: ./abis/IArbitrator.json
eventHandlers:
- event: RequestSubmitted(indexed bytes32,bool)
handler: handleRequestSubmitted
- event: TokenStatusChange(indexed address,indexed address,indexed bytes32,uint8,bool,bool)
handler: handleTokenStatusChange
- event: Ruling(indexed address,indexed uint256,uint256)
handler: handleRuling
- event: MetaEvidence(indexed uint256,string)
handler: handleMetaEvidence
callHandlers:
- function: fundAppeal(bytes32,uint8)
handler: handleFundAppeal
- function: submitEvidence(bytes32,string)
handler: handleSubmitEvidence
- function: changeWinnerStakeMultiplier(uint256)
handler: handleChangeWinnerStakeMultiplier
- function: changeLoserStakeMultiplier(uint256)
handler: handleChangeLoserStakeMultiplier
- function: changeSharedStakeMultiplier(uint256)
handler: handleChangeSharedStakeMultiplier
- function: changeArbitrator(address,bytes)
handler: handleChangeArbitrator
- function: changeChallengerBaseDeposit(uint256)
handler: handleChangeChallengerBaseDeposit
- function: changeRequesterBaseDeposit(uint256)
handler: handleChangeRequesterBaseDeposit
- function: changeTimeToChallenge(uint256)
handler: handleChangeTimeToChallenge
- function: challengeRequest(bytes32,string)
handler: handleChallengeRequest
file: ./src/mapping.ts
- kind: ethereum/contract
name: IArbitrator
network: "{{network}}"
source:
address: "{{arbitrator}}"
abi: IArbitrator
startBlock: {{arbitratorStartBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Registry
- Request
- Evidence
- Round
- Token
abis:
- name: ArbitrableTokenList
file: ./abis/t2cr.json
- name: IArbitrator
file: ./abis/IArbitrator.json
eventHandlers:
- event: AppealPossible(indexed uint256,indexed address)
handler: handleAppealPossible
file: ./src/mapping.ts