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

feat(apps/furo): bttc integration #971

Closed
wants to merge 1 commit into from
Closed
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
1 change: 1 addition & 0 deletions apps/furo/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const SUPPORTED_CHAINS = [
ChainId.MOONRIVER,
ChainId.OPTIMISM,
ChainId.POLYGON,
ChainId.BTTC
]

export type SupportedChainId = (typeof SUPPORTED_CHAINS)[number]
Expand Down
2 changes: 2 additions & 0 deletions config/graph/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ export const FURO_ENABLED_NETWORKS = [
ChainId.MOONRIVER,
ChainId.OPTIMISM,
ChainId.POLYGON,
ChainId.BTTC
] as const

// TODO: Make typesafe
Expand All @@ -339,6 +340,7 @@ export const FURO_SUBGRAPH_NAME: Record<string, string> = {
[ChainId.MOONRIVER]: 'sushi-subgraphs/furo-moonriver',
[ChainId.OPTIMISM]: 'sushi-subgraphs/furo-optimism',
[ChainId.POLYGON]: 'sushi-subgraphs/furo-polygon',
[ChainId.BTTC]: 'sushi-subgraphs/furo-bttc'
} as const

export const KASHI_SUBGRAPH_NAME: Record<number, string> = {
Expand Down
8 changes: 8 additions & 0 deletions config/hardhat/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@ export const defaultConfig: HardhatUserConfig = {
browserURL: 'https://andromeda-explorer.metis.io',
},
},
{
network: 'bttc',
chainId: 199,
urls: {
apiURL: 'https://api.bttcscan.com/api',
browserURL: 'https://bttcscan.com',
},
},
],
apiKey: {
mainnet: process.env.ETHERSCAN_API_KEY || '',
Expand Down