Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cycle $ to Native + handle subgraphs from different chains #1

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
DISCORD_API_TOKEN = "Your Discord API Token"
TOKEN_ID = "Your token ID"
TOKEN_ID = "Your token address"
DAI_ID = "The DAI address in this subgraph and Network" ## to fetch price of DAI in nativeCurrency
WETH_ID = "The WETH address in this subgraph and Network"
SUBGRAPH_URL = "Subgraph Instance"
TOKEN_CIRCULATING_SUPPLY = 30200 ## current circulating supply of token if coingecko doesn't work for you
#TVL_SUBGRAPH = "https://api.thegraph.com/subgraphs/name/agave-dao/agave-xdai" ##> specifically built for Agave


25 changes: 16 additions & 9 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"name": "price-bee",
"description": "A Discord bot to show token prices.",
"repository": "https://github.com/1Hive/price-bee",
"logo": "https://i.imgur.com/dRxtULu.png",
"keywords": ["node", "discord", "1Hive", "token"],
"env": {
"DISCORD_API_TOKEN": "YOUR_DISCORD_API_TOKEN",
"TOKEN_ID": "Your token ID"
}
"name": "price-bee",
"description": "A Discord bot to show token prices.",
"repository": "https://github.com/1Hive/price-bee",
"logo": "https://i.imgur.com/dRxtULu.png",
"keywords": [
"node",
"discord",
"1Hive",
"token"
],
"env": {
"DISCORD_API_TOKEN": "YOUR_DISCORD_API_TOKEN",
"TOKEN_ID": "Your token ID",
"DAI_ID": "The WETH address in this subgraph",
"SUBGRAPH_URL": "Subgraph Instance"
}
}
Loading