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
  • Loading branch information
telestrial committed Aug 26, 2024
1 parent cf99504 commit c8b4cf3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
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'
2 changes: 1 addition & 1 deletion libs/explored-types/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {

// Unchanged Types - Re-exported for a more straight-forward DX like:
// import { Address } from '@siafoundation/explored-types'
export {
export type {
Address,
Block,
BlockID,
Expand Down

0 comments on commit c8b4cf3

Please sign in to comment.