Skip to content

Commit db4a4f3

Browse files
authored
feat(3jane): add USD3/sUSD3 monitoring (#161)
1 parent 0185757 commit db4a4f3

7 files changed

Lines changed: 462 additions & 0 deletions

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ENVIO_GRAPHQL_URL=""
2121
TELEGRAM_BOT_TOKEN_DEFAULT=your-default-bot-token
2222
TELEGRAM_CHAT_ID_DEFAULT=your-default-chat-id
2323

24+
2425
# Telegram Topics (forum-style group) — single group with per-protocol topics
2526
# TELEGRAM_CHAT_ID_TOPICS=your-topics-group-chat-id
2627
# TELEGRAM_TOPIC_ID_AAVE=123

.github/workflows/_run-monitoring.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ env:
4747

4848
# ── Telegram Bot Tokens ──
4949
TELEGRAM_BOT_TOKEN_DEFAULT: ${{ secrets.TELEGRAM_BOT_TOKEN_DEFAULT }}
50+
TELEGRAM_BOT_TOKEN_3JANE: ${{ secrets.TELEGRAM_BOT_TOKEN_3JANE }}
5051
TELEGRAM_BOT_TOKEN_AAVE: ${{ secrets.TELEGRAM_BOT_TOKEN_AAVE }}
5152
TELEGRAM_BOT_TOKEN_COMP: ${{ secrets.TELEGRAM_BOT_TOKEN_COMP }}
5253
TELEGRAM_BOT_TOKEN_EULER: ${{ secrets.TELEGRAM_BOT_TOKEN_EULER }}
@@ -58,6 +59,7 @@ env:
5859
TELEGRAM_BOT_TOKEN_STARGATE: ${{ secrets.TELEGRAM_BOT_TOKEN_STARGATE }}
5960

6061
# ── Telegram Chat IDs ──
62+
TELEGRAM_CHAT_ID_3JANE: ${{ secrets.TELEGRAM_CHAT_ID_3JANE }}
6163
TELEGRAM_CHAT_ID_AAVE: ${{ secrets.TELEGRAM_CHAT_ID_AAVE }}
6264
TELEGRAM_CHAT_ID_CAP: ${{ secrets.TELEGRAM_CHAT_ID_CAP }}
6365
TELEGRAM_CHAT_ID_COMP: ${{ secrets.TELEGRAM_CHAT_ID_COMP }}

.github/workflows/hourly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
cache_file: cache-id.txt
1818
cache_key_prefix: cache-id-v4
1919
scripts: |
20+
3jane/main.py
2021
morpho/markets.py
2122
aave/main.py
2223
lido/steth/main.py

3jane/abi/ERC4626Vault.json

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
[
2+
{
3+
"inputs": [],
4+
"name": "name",
5+
"outputs": [{"name": "", "type": "string"}],
6+
"stateMutability": "view",
7+
"type": "function"
8+
},
9+
{
10+
"inputs": [],
11+
"name": "symbol",
12+
"outputs": [{"name": "", "type": "string"}],
13+
"stateMutability": "view",
14+
"type": "function"
15+
},
16+
{
17+
"inputs": [],
18+
"name": "decimals",
19+
"outputs": [{"name": "", "type": "uint8"}],
20+
"stateMutability": "view",
21+
"type": "function"
22+
},
23+
{
24+
"inputs": [],
25+
"name": "asset",
26+
"outputs": [{"name": "", "type": "address"}],
27+
"stateMutability": "view",
28+
"type": "function"
29+
},
30+
{
31+
"inputs": [],
32+
"name": "totalAssets",
33+
"outputs": [{"name": "", "type": "uint256"}],
34+
"stateMutability": "view",
35+
"type": "function"
36+
},
37+
{
38+
"inputs": [],
39+
"name": "totalSupply",
40+
"outputs": [{"name": "", "type": "uint256"}],
41+
"stateMutability": "view",
42+
"type": "function"
43+
},
44+
{
45+
"inputs": [{"name": "shares", "type": "uint256"}],
46+
"name": "convertToAssets",
47+
"outputs": [{"name": "", "type": "uint256"}],
48+
"stateMutability": "view",
49+
"type": "function"
50+
},
51+
{
52+
"inputs": [],
53+
"name": "pricePerShare",
54+
"outputs": [{"name": "", "type": "uint256"}],
55+
"stateMutability": "view",
56+
"type": "function"
57+
},
58+
{
59+
"inputs": [],
60+
"name": "isShutdown",
61+
"outputs": [{"name": "", "type": "bool"}],
62+
"stateMutability": "view",
63+
"type": "function"
64+
},
65+
{
66+
"inputs": [],
67+
"name": "profitMaxUnlockTime",
68+
"outputs": [{"name": "", "type": "uint256"}],
69+
"stateMutability": "view",
70+
"type": "function"
71+
},
72+
{
73+
"inputs": [],
74+
"name": "profitUnlockingRate",
75+
"outputs": [{"name": "", "type": "uint256"}],
76+
"stateMutability": "view",
77+
"type": "function"
78+
},
79+
{
80+
"inputs": [{"name": "account", "type": "address"}],
81+
"name": "balanceOf",
82+
"outputs": [{"name": "", "type": "uint256"}],
83+
"stateMutability": "view",
84+
"type": "function"
85+
}
86+
]

3jane/abi/ProtocolConfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"inputs": [],
4+
"name": "owner",
5+
"outputs": [{"name": "", "type": "address"}],
6+
"stateMutability": "view",
7+
"type": "function"
8+
},
9+
{
10+
"inputs": [],
11+
"name": "getDebtCap",
12+
"outputs": [{"name": "", "type": "uint256"}],
13+
"stateMutability": "view",
14+
"type": "function"
15+
}
16+
]

0 commit comments

Comments
 (0)