-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsubgraph.template.yaml
50 lines (50 loc) · 1.58 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
specVersion: 0.0.3
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Umbra
network: {{ network }}
source:
address: "0xFb2dc580Eed955B528407b4d36FfaFe3da685401"
abi: Umbra
startBlock: {{contracts.umbra.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Announcement
- OwnershipTransferred
- TokenWithdrawal
abis:
- name: Umbra
file: ./abis/Umbra.json
eventHandlers:
- event: Announcement(indexed address,uint256,indexed address,bytes32,bytes32)
handler: handleAnnouncement
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: TokenWithdrawal(indexed address,indexed address,uint256,indexed address)
handler: handleTokenWithdrawal
file: ./src/mapping.ts
- kind: ethereum/contract
name: StealthKeyRegistry
network: {{ network }}
source:
address: "0x31fe56609C65Cd0C510E7125f051D440424D38f3"
abi: StealthKeyRegistry
startBlock: {{contracts.umbra.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- StealthKeyChanged
abis:
- name: StealthKeyRegistry
file: ./abis/StealthKeyRegistry.json
eventHandlers:
- event: StealthKeyChanged(indexed address,uint256,uint256,uint256,uint256)
handler: handleStealthKeyChanged
file: ./src/mapping.ts