-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
58 lines (58 loc) · 1.67 KB
/
subgraph.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
specVersion: 0.0.2
description: ZkSync subgraph
repository: https://github.com/yukairex/zksync-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Governance
network: mainnet
source:
address: '0x34460C0EB5074C29A9F6FE13b8e7E23A0D08aF01'
abi: Governance
startBlock: 10276588
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Token
- Validator
abis:
- name: Governance
file: ./abis/Governance.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
eventHandlers:
- event: NewToken(indexed address,indexed uint16)
handler: handleNewToken
- event: ValidatorStatusUpdate(indexed address,bool)
handler: handleValidatorStatusUpdate
file: ./src/mapping.ts
- kind: ethereum/contract
name: ZkSync
network: mainnet
source:
address: '0xabea9132b05a70803a4e85094fd0e1800777fbef'
abi: ZkSync
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Block
abis:
- name: ZkSync
file: ./abis/ZkSync.json
eventHandlers:
- event: BlockCommit(indexed uint32)
handler: handleBlockCommit
- event: BlockVerification(indexed uint32)
handler: handleBlockVerification
- event: FactAuth(indexed address,uint32,bytes)
handler: handleFactAuth
file: ./src/mapping.ts