From 98045d7d3e03f7e00887ff284219d71072b01b67 Mon Sep 17 00:00:00 2001 From: Diego Figueroa Date: Tue, 10 Dec 2024 15:00:24 -0400 Subject: [PATCH] chore: add turbo network to silo config --- .changeset/olive-mails-roll.md | 5 +++++ plugins/blockchainradar-backend/src/lib/EtherscanClient.ts | 1 + plugins/blockchainradar-backend/src/lib/networks.ts | 1 + 3 files changed, 7 insertions(+) create mode 100644 .changeset/olive-mails-roll.md diff --git a/.changeset/olive-mails-roll.md b/.changeset/olive-mails-roll.md new file mode 100644 index 0000000..4a732bb --- /dev/null +++ b/.changeset/olive-mails-roll.md @@ -0,0 +1,5 @@ +--- +'@aurora-is-near/backstage-plugin-blockchainradar-backend': patch +--- + +feat: add turbo support diff --git a/plugins/blockchainradar-backend/src/lib/EtherscanClient.ts b/plugins/blockchainradar-backend/src/lib/EtherscanClient.ts index f3cc6eb..f8afd00 100644 --- a/plugins/blockchainradar-backend/src/lib/EtherscanClient.ts +++ b/plugins/blockchainradar-backend/src/lib/EtherscanClient.ts @@ -71,6 +71,7 @@ export class EtherscanClient { celo: 'api.celoscan.xyz', 'alfajores-celo': 'api-alfajores.celoscan.xyz', clover: 'api.clvscan.com', + // TODO: handle using hex convention ...Object.values(SILO_NAMES_BY_CHAIN_ID).reduce( (acc, siloName) => ({ ...acc, diff --git a/plugins/blockchainradar-backend/src/lib/networks.ts b/plugins/blockchainradar-backend/src/lib/networks.ts index e46947a..4eda8cd 100644 --- a/plugins/blockchainradar-backend/src/lib/networks.ts +++ b/plugins/blockchainradar-backend/src/lib/networks.ts @@ -1,5 +1,6 @@ export const SILO_NAMES_BY_CHAIN_ID = { '1313161560': 'powergold', + '1313161567': 'turbo', }; type SiloChainId = keyof typeof SILO_NAMES_BY_CHAIN_ID;