-
Notifications
You must be signed in to change notification settings - Fork 6
/
subgraph.template.yaml
136 lines (132 loc) · 4.66 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
specVersion: 0.0.2
description: Conditional Tokens subgraph
repository: 'https://github.com/gnosis/hg-contracts'
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ConditionalTokens
network: {{network}}
source:
address: '{{ConditionalTokens.address}}'
abi: ConditionalTokens
startBlock: {{ConditionalTokens.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Condition
- Collection
- Position
- UserPosition
- User
- Operator
- CollateralToken
abis:
- name: ConditionalTokens
file: ./abis/ConditionalTokens.json
eventHandlers:
- event: 'ConditionPreparation(indexed bytes32,indexed address,indexed bytes32,uint256)'
handler: handleConditionPreparation
- event: 'ConditionResolution(indexed bytes32,indexed address,indexed bytes32,uint256,uint256[])'
handler: handleConditionResolution
- event: 'PositionSplit(indexed address,address,indexed bytes32,indexed bytes32,uint256[],uint256)'
handler: handlePositionSplit
- event: 'PositionsMerge(indexed address,address,indexed bytes32,indexed bytes32,uint256[],uint256)'
handler: handlePositionsMerge
- event: 'PayoutRedemption(indexed address,indexed address,indexed bytes32,bytes32,uint256[],uint256)'
handler: handlePayoutRedemption
- event: 'TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)'
handler: handleTransferSingle
- event: 'TransferBatch(indexed address,indexed address,indexed address,uint256[],uint256[])'
handler: handleTransferBatch
file: ./src/mapping.ts
- kind: ethereum/contract
name: Wrapped1155Factory
network: {{network}}
source:
address: '{{Wrapped1155Factory.address}}'
abi: Wrapped1155Factory
startBlock: {{Wrapped1155Factory.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- WrappedToken
abis:
- name: Wrapped1155Factory
file: ./abis/Wrapped1155Factory.json
eventHandlers:
- event: 'Wrapped1155Creation(indexed address,indexed uint256,indexed address)'
handler: handleWrapped1155Creation
file: ./src/wrappedtokens.ts
- kind: ethereum/contract
name: Realitio
network: {{network}}
source:
address: '{{Realitio.address}}'
abi: Realitio
startBlock: {{Realitio.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Question
- Category
abis:
- name: Realitio
file: ./abis/Realitio.json
eventHandlers:
- event: LogNewQuestion(indexed bytes32,indexed address,uint256,string,indexed bytes32,address,uint32,uint32,uint256,uint256)
handler: handleNewQuestion
- event: LogNewAnswer(bytes32,indexed bytes32,bytes32,indexed address,uint256,uint256,bool)
handler: handleNewAnswer
- event: LogAnswerReveal(indexed bytes32,indexed address,indexed bytes32,bytes32,uint256,uint256)
handler: handleAnswerReveal
- event: LogNotifyOfArbitrationRequest(indexed bytes32,indexed address)
handler: handleArbitrationRequest
- event: LogFinalize(indexed bytes32,indexed bytes32)
handler: handleFinalize
file: ./src/realitio.ts
- kind: ethereum/contract
name: RealitioScalarAdapter
network: {{network}}
source:
address: '{{RealitioScalarAdapter.address}}'
abi: RealitioScalarAdapter
startBlock: {{RealitioScalarAdapter.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- ScalarQuestionLink
abis:
- name: RealitioScalarAdapter
file: ./abis/RealitioScalarAdapter.json
eventHandlers:
- event: QuestionIdAnnouncement(indexed bytes32,indexed bytes32,uint256,uint256)
handler: handleScalarQuestionIdAnnouncement
file: ./src/realitio.ts
templates:
- kind: ethereum/contract
name: Wrapped1155
network: {{network}}
source:
abi: Wrapped1155
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- WrappedToken
abis:
- name: Wrapped1155
file: ./abis/Wrapped1155.json
eventHandlers:
- event: 'Transfer(indexed address,indexed address,uint256)'
handler: handleTransfer
file: ./src/wrappedtokens.ts