Skip to content

Commit

Permalink
feat: add explored api sdk to config, for use in future siacentral ph…
Browse files Browse the repository at this point in the history
…ase out (#698)
  • Loading branch information
telestrial authored Aug 26, 2024
1 parent aea0797 commit a4dfa0a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-clocks-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'explorer': minor
---

Added base explored API for future Siacentral phase out.
4 changes: 4 additions & 0 deletions apps/explorer/config/explored.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Explored } from '@siafoundation/explored-js'
import { exploredApi as api } from '.'

export const explored = Explored({ api })
1 change: 1 addition & 0 deletions apps/explorer/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
1 change: 1 addition & 0 deletions apps/explorer/config/testnet-zen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit a4dfa0a

Please sign in to comment.