-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
90 lines (90 loc) · 2.56 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
specVersion: 0.0.2
description: Lemma's basis trading stablecoin subgraph
repository: https://github.com/lemma-finance/basis-trading-stablecoin-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: USDLemma
network: arbitrum-one
source:
address: "0xdb41ab644AbcA7f5ac579A5Cf2F41e606C2d6abc"
abi: USDLemma
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- User
- USDL
- XUSDL
- HourlyUserTrack
- DailyUserTrack
- DailyVolume
- HourlyVolume
- MonthlyVolume
- DailyAPY
- WeeklyAPY
- MonthlyAPY
abis:
- name: USDLemma
file: ./abis/USDLemma.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Rebalance(indexed uint256,indexed address,int256)
handler: handleRebalance
- event: FeesUpdated(uint256)
handler: handleFeesUpdated
- event: StakingContractUpdated(indexed address)
handler: handleStakingContractUpdated
file: ./src/usdLemma.ts
- kind: ethereum/contract
name: MCDEXLemma
network: arbitrum-one
source:
address: "0x3092eD676e1C59ee5Ab6Eb4Bf19a11BcA84D67bd"
abi: MCDEXLemma
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- USDL
abis:
- name: MCDEXLemma
file: ./abis/MCDEXLemma.json
eventHandlers:
- event: MaxPositionUpdated(uint256)
handler: handleMaxPositionUpdated
file: ./src/mcdexLemma.ts
- kind: ethereum/contract
name: XUSDL
network: arbitrum-one
source:
address: "0x57c7E0D43C05bCe429ce030132Ca40F6FA5839d7"
abi: XUSDL
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- XUSDL
- HourlyUserTrack
- DailyUserTrack
- DailyVolume
- HourlyVolume
- MonthlyVolume
abis:
- name: XUSDL
file: ./abis/XUSDL.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Deposit(indexed address,uint256)
handler: handleDeposit
- event: Withdraw(indexed address,uint256)
handler: handleWithdraw
- event: UpdateMinimumLock(uint256)
handler: handleUpdateMinimumLock
file: ./src/xUSDL.ts