Skip to content

Commit 2e506e3

Browse files
authored
Merge pull request #88 from sentimentxyz/feature/sentiment-integration
feat: Add Sentiment Protocol USDE SuperPool integration on HyperEVM
2 parents 032eefd + d083954 commit 2e506e3

File tree

7 files changed

+413
-2
lines changed

7 files changed

+413
-2
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ LYRA_NODE_URL='https://rpc.derive.xyz'
99
SWELL_NODE_URL='https://rpc.ankr.com/swell'
1010
SOLANA_NODE_URL='https://api.mainnet-beta.solana.com'
1111
BASE_NODE_URL="https://mainnet.base.org"
12+
HYPEREVM_NODE_URL="https://rpc.hyperlend.finance/archive"
1213

1314
DERIVE_SUBGRAPH_API_KEY=''

constants/chains.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ class Chain(Enum):
1717
BASE = "Base"
1818
SEPOLIA = "Sepolia"
1919
TON = "Ton"
20+
HYPEREVM = "HyperEVM"

constants/sentiment.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""
2+
Constants for Sentiment Protocol on HyperEVM.
3+
"""
4+
5+
# Block at which the Sentiment USDE SuperPool contract was deployed
6+
SENTIMENT_USDE_SUPERPOOL_START_BLOCK = 3564320
7+
8+
# SuperPool contract address for USDE
9+
SENTIMENT_USDE_SUPERPOOL_ADDRESS = "0xe45E7272DA7208C7a137505dFB9491e330BF1a4e"

constants/summary_columns.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ class SummaryColumn(Enum):
6161

6262
VENUS_SUSDE_PTS = ("venus_susde_pts", SummaryColumnType.ETHENA_PTS)
6363

64+
# Sentiment
65+
SENTIMENT_USDE_PTS = ("sentiment_usde_pts", SummaryColumnType.ETHENA_PTS)
66+
6467

6568
def __init__(self, column_name: str, col_type: SummaryColumnType):
6669
self.column_name = column_name

integrations/integration_ids.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,9 @@ class IntegrationID(Enum):
482482
Token.USDE,
483483
)
484484

485+
# Sentiment
486+
SENTIMENT_USDE = ("sentiment_usde", "Sentiment USDe", Token.USDE)
487+
485488
def __init__(self, column_name: str, description: str, token: Token = Token.USDE):
486489
self.column_name = column_name
487490
self.description = description

0 commit comments

Comments
 (0)