-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsubgraph.yaml
70 lines (70 loc) · 1.94 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
59
60
61
62
63
64
65
66
67
68
69
70
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: DharmaDai
network: mainnet
source:
address: '0x00000000001876eB1444c986fD502e618c587430'
abi: DharmaDai
startBlock: 9416867
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Transfer
- Approval
- Mint
- Redeem
- Accrue
- CollectSurplus
- Checkpoint
- Account
- Allowance
abis:
- name: DharmaDai
file: ./abis/DharmaDai.json
- name: DharmaDaiSummarizer
file: ./abis/DharmaDaiSummarizer.json
blockHandlers:
- handler: handleBlockOnCall
filter:
kind: call
- handler: handleBlock
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: Mint(address,uint256,uint256)
handler: handleMint
- event: Redeem(address,uint256,uint256)
handler: handleRedeem
- event: Accrue(uint256,uint256)
handler: handleAccrue
- event: CollectSurplus(uint256,uint256)
handler: handleCollectSurplus
file: ./src/mapping.ts
- kind: ethereum/contract
name: DharmaDaiSummarizer
network: mainnet
source:
address: '0x45a59cF7985817036A500cb77707137AF7a5B429'
abi: DharmaDaiSummarizer
startBlock: 9498304
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
abis:
- name: DharmaDaiSummarizer
file: ./abis/DharmaDaiSummarizer.json
entities:
- Checkpoint
blockHandlers:
- handler: handleBlockOnCall
filter:
kind: call
file: ./src/summarizerMapping.ts