Skip to content

Commit

Permalink
feat(apps/furo): bttc integration
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMasayoshi committed Jun 28, 2023
1 parent a51e408 commit be589ab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
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

0 comments on commit be589ab

Please sign in to comment.