From a4dfa0aaa2fe94fb7ed55ec0d6c02d9f7fa2ee3d Mon Sep 17 00:00:00 2001 From: John W Date: Mon, 26 Aug 2024 18:38:34 -0400 Subject: [PATCH] feat: add explored api sdk to config, for use in future siacentral phase out (#698) --- .changeset/lovely-clocks-juggle.md | 5 +++++ apps/explorer/config/explored.ts | 4 ++++ apps/explorer/config/index.ts | 1 + apps/explorer/config/testnet-zen.ts | 1 + 4 files changed, 11 insertions(+) create mode 100644 .changeset/lovely-clocks-juggle.md create mode 100644 apps/explorer/config/explored.ts diff --git a/.changeset/lovely-clocks-juggle.md b/.changeset/lovely-clocks-juggle.md new file mode 100644 index 000000000..22a497467 --- /dev/null +++ b/.changeset/lovely-clocks-juggle.md @@ -0,0 +1,5 @@ +--- +'explorer': minor +--- + +Added base explored API for future Siacentral phase out. diff --git a/apps/explorer/config/explored.ts b/apps/explorer/config/explored.ts new file mode 100644 index 000000000..278096c09 --- /dev/null +++ b/apps/explorer/config/explored.ts @@ -0,0 +1,4 @@ +import { Explored } from '@siafoundation/explored-js' +import { exploredApi as api } from '.' + +export const explored = Explored({ api }) diff --git a/apps/explorer/config/index.ts b/apps/explorer/config/index.ts index e5c5e6fd3..87bb4c213 100644 --- a/apps/explorer/config/index.ts +++ b/apps/explorer/config/index.ts @@ -10,3 +10,4 @@ export const isMainnet = true // APIs export const faucetApi = 'https://api.siascan.com/zen/faucet' export const siaCentralApi = 'https://api.siacentral.com/v2' +export const exploredApi = 'https://explored.siascan.sia.dev/api' diff --git a/apps/explorer/config/testnet-zen.ts b/apps/explorer/config/testnet-zen.ts index 0b1acb448..27e2cd99d 100644 --- a/apps/explorer/config/testnet-zen.ts +++ b/apps/explorer/config/testnet-zen.ts @@ -10,3 +10,4 @@ export const isMainnet = false // APIs export const faucetApi = 'https://api.siascan.com/zen/faucet' export const siaCentralApi = 'https://api.siacentral.com/v2/zen' +export const exploredApi = 'https://explored.zen.siascan.sia.dev/api'