-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
93 lines (92 loc) · 3.13 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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
- Bond
# - Commit
# - CouponApproval
- CouponExpiration
- CouponPurchase
- CouponRedemption
# - CouponTransfer
- Deposit
- SupplyDecrease
- SupplyIncrease
- SupplyNeutral
# - Transfer
- Unbond
- Withdraw
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: Bond(indexed address,uint256,uint256,uint256)
handler: handleBond
# - event: Commit(indexed address,indexed address)
# handler: handleCommit
# - event: CouponApproval(indexed address,indexed address,uint256)
# handler: handleCouponApproval
- 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: CouponTransfer(indexed address,indexed address,indexed uint256,uint256)
# handler: handleCouponTransfer
- event: Deposit(indexed address,uint256)
handler: handleDeposit
- event: SupplyDecrease(indexed uint256,uint256,uint256)
handler: handleSupplyDecrease
- event: SupplyIncrease(indexed uint256,uint256,uint256,uint256,uint256)
handler: handleSupplyIncrease
- event: SupplyNeutral(indexed uint256)
handler: handleSupplyNeutral
# - event: Transfer(indexed address,indexed address,uint256)
# handler: handleTransfer
- event: Unbond(indexed address,uint256,uint256,uint256)
handler: handleUnbond
- event: Withdraw(indexed address,uint256)
handler: handleWithdraw
file: ./src/mapping.ts
- kind: ethereum/contract
name: DollarContract
network: mainnet
source:
address: "0x36f3fd68e7325a35eb768f1aedaae9ea0689d723"
abi: DollarContract
startBlock: 10722554
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: DollarContract
file: ./abis/DollarContract.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mapping.ts