-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
54 lines (54 loc) · 1.41 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
specVersion: 1.1.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Treasury
network: mainnet
source:
address: "0x245db945c485b68fdc429e4f7085a1761aa4d45d"
abi: WETH
startBlock: 36349826
# startBlock: 16377111
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- TreasuryTransfer
# - TreasurySnapshot
# - TreasuryTransferDay
# - TreasuryTransferWeek
- Block
- BlockTime
abis:
- name: WETH
file: ./abis/WETH.json
- name: AXS
file: ./abis/AXS.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
# Get treasury balances per block
blockHandlers:
- handler: handleBlock
file: ./src/mappings.ts
# address: "0xc99a6a985ed2cac1ef41640596c5a5f9f4e19ef5"
# abi: WETH
# startBlock: 36349876
# # startBlock: 16377111
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.7
# language: wasm/assemblyscript
# entities:
# - Transfer
# abis:
# - name: WETH
# file: ./abis/WETH.json
# eventHandlers:
# - event: Transfer(indexed address,indexed address,uint256)
# handler: handleTransfer
# file: ./src/weth.ts