-
Notifications
You must be signed in to change notification settings - Fork 18
/
v1.template.yaml
203 lines (203 loc) Β· 7.37 KB
/
v1.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{{ #v1 }}
{{ #projects }}
- kind: ethereum/contract
name: Projects
network: {{network}}
source:
abi: Projects
address: '{{address}}'
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Project
- ProjectCreateEvent
- ProtocolLog
- ProtocolV1Log
abis:
- name: Projects
file: ./abis/v1/Projects.json
- name: TerminalDirectory
file: ./abis/v1/TerminalDirectory.json
eventHandlers:
- event: Create(indexed uint256,indexed address,indexed bytes32,string,address,address)
handler: handleCreate
- event: SetHandle(indexed uint256,indexed bytes32,address)
handler: handleSetHandle
- event: SetUri(indexed uint256,string,address)
handler: handleSetUri
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransferOwnership
file: ./src/mappings/v1.x/projects.ts
{{ /projects }}
{{ #fundingCycles }}
- kind: ethereum/contract
name: FundingCycles
network: {{network}}
source:
abi: FundingCycles
address: '{{address}}'
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Configure
- Init
abis:
- name: FundingCycles
file: ./abis/v1/FundingCycles.json
- name: TerminalDirectory
file: ./abis/v1/TerminalDirectory.json
eventHandlers:
- event: Configure(indexed uint256,indexed uint256,uint256,(uint256,uint256,uint256,uint256,uint256,address),uint256,address)
handler: handleV1Configure
- event: Init(indexed uint256,indexed uint256,uint256,uint256,uint256,uint256)
handler: handleV1Init
file: ./src/mappings/v1.x/fundingCycles.ts
{{ /fundingCycles }}
{{ #ticketBooth }}
- kind: ethereum/contract
name: TicketBooth
network: {{network}}
source:
abi: TicketBooth
address: '{{address}}'
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DeployedERC20Event
- Participant
- Project
- ProtocolV1Log
abis:
- name: TicketBooth
file: ./abis/v1/TicketBooth.json
- name: TerminalDirectory
file: ./abis/v1/TerminalDirectory.json
eventHandlers:
- event: Print(indexed address,indexed uint256,uint256,bool,bool,address)
handler: handlePrint
- event: Transfer(indexed address,indexed uint256,indexed address,uint256,address)
handler: handleTicketTransfer
- event: Unstake(indexed address,indexed uint256,uint256,address)
handler: handleUnstake
- event: Stake(indexed address,indexed uint256,uint256,address)
handler: handleStake
- event: Redeem(indexed address,indexed uint256,uint256,uint256,bool,address)
handler: handleRedeem
- event: Issue(indexed uint256,string,string,address)
handler: handleIssue
file: ./src/mappings/v1.x/ticketBooth.ts
{{ /ticketBooth }}
{{ #terminalV1 }}
- kind: ethereum/contract
name: TerminalV1
network: {{network}}
source:
abi: TerminalV1
address: '{{address}}'
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DistributeToPayoutModEvent
- DistributeToTicketModEvent
- MintTokensEvent
- Participant
- PayEvent
- PrintReservesEvent
- Project
- ProjectEvent
- ProtocolV1Log
- RedeemEvent
- TapEvent
- Wallet
abis:
- name: TerminalV1
file: ./abis/v1/TerminalV1.json
- name: TerminalDirectory
file: ./abis/v1/TerminalDirectory.json
- name: Prices
file: ./abis/v1/Prices.json
eventHandlers:
- event: Pay(indexed uint256,indexed uint256,indexed address,uint256,string,address)
handler: handlePay
- event: PrintPreminedTickets(indexed uint256,indexed address,uint256,uint256,string,address)
handler: handlePrintPreminedTickets
- event: PrintReserveTickets(indexed uint256,indexed uint256,indexed address,uint256,uint256,address)
handler: handlePrintReserveTickets
- event: Tap(indexed uint256,indexed uint256,indexed address,uint256,uint256,uint256,uint256,uint256,address)
handler: handleTap
- event: Redeem(indexed address,indexed address,indexed uint256,uint256,uint256,address)
handler: handleRedeem
- event: AddToBalance(indexed uint256,uint256,address)
handler: handleAddToBalance
- event: DistributeToPayoutMod(indexed uint256,indexed uint256,(bool,uint16,uint48,address,address,uint56),uint256,address)
handler: handleDistributeToPayoutMod
- event: DistributeToTicketMod(indexed uint256,indexed uint256,(bool,uint16,uint48,address),uint256,address)
handler: handleDistributeToTicketMod
- event: Migrate(indexed uint256,indexed address,uint256,address)
handler: handleMigrate
file: ./src/mappings/v1.x/terminalV1.ts
{{ /terminalV1 }}
{{ #terminalV1_1 }}
- kind: ethereum/contract
name: TerminalV1_1
network: {{network}}
source:
abi: TerminalV1_1
address: '{{address}}'
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DistributeToPayoutModEvent
- DistributeToTicketModEvent
- Participant
- PayEvent
- MintTokensEvent
- PrintReservesEvent
- Project
- ProjectEvent
- ProtocolV1Log
- RedeemEvent
- TapEvent
- Wallet
abis:
- name: TerminalV1_1
file: ./abis/v1/TerminalV1_1.json
- name: TerminalDirectory
file: ./abis/v1/TerminalDirectory.json
- name: Prices
file: ./abis/v1/Prices.json
eventHandlers:
- event: Pay(indexed uint256,indexed uint256,indexed address,uint256,uint256,uint256,string,address)
handler: handlePay
- event: PrintTickets(indexed uint256,indexed address,uint256,string,address)
handler: handlePrintTickets
- event: PrintReserveTickets(indexed uint256,indexed uint256,indexed address,uint256,uint256,address)
handler: handlePrintReserveTickets
- event: Tap(indexed uint256,indexed uint256,indexed address,uint256,uint256,uint256,uint256,uint256,address)
handler: handleTap
- event: Redeem(indexed address,indexed address,indexed uint256,uint256,uint256,address)
handler: handleRedeem
- event: AddToBalance(indexed uint256,uint256,address)
handler: handleAddToBalance
- event: DistributeToPayoutMod(indexed uint256,indexed uint256,(bool,uint16,uint48,address,address,uint56),uint256,address)
handler: handleDistributeToPayoutMod
- event: DistributeToTicketMod(indexed uint256,indexed uint256,(bool,uint16,uint48,address),uint256,address)
handler: handleDistributeToTicketMod
file: ./src/mappings/v1.x/terminalV1_1.ts
{{ /terminalV1_1 }}
{{ /v1 }}