-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
48 lines (48 loc) · 1.62 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: mainnet
source:
address: "0x443D2f2755DB5942601fa062Cc248aAA153313D3"
abi: Contract
startBlock: 10722554
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Advance
- CouponExpiration
- CouponPurchase
- CouponRedemption
- SupplyDecrease
- SupplyIncrease
- SupplyNeutral
abis:
- name: Contract
file: ./abis/Contract.json
- name: LPContract
file: ./abis/LPContract.json
- name: DollarContract
file: ./abis/DollarContract.json
- name: UniswapV2PairContract
file: ./abis/UniswapV2PairContract.json
eventHandlers:
- event: Advance(indexed uint256,uint256,uint256)
handler: handleAdvance
- event: CouponExpiration(indexed uint256,uint256,uint256,uint256,uint256)
handler: handleCouponExpiration
- event: CouponPurchase(indexed address,indexed uint256,uint256,uint256)
handler: handleCouponPurchase
- event: CouponRedemption(indexed address,indexed uint256,uint256)
handler: handleCouponRedemption
- event: SupplyDecrease(indexed uint256,uint256,uint256)
handler: handleSupplyDecrease
- event: SupplyIncrease(indexed uint256,uint256,uint256,uint256,uint256)
handler: handleSupplyIncrease
- event: SupplyNeutral(indexed uint256)
handler: handleSupplyNeutral
file: ./src/mapping.ts