-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update testnet faucet to support layer/token configuration
- Loading branch information
Showing
3 changed files
with
26 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { Layer } from '../../oasis-nexus/api' | ||
import { Network } from '../../types/network' | ||
import { NativeTicker, Ticker } from '../../types/ticker' | ||
|
||
export const socialMedia = { | ||
telegram: process.env.REACT_APP_SOCIAL_TELEGRAM, | ||
|
@@ -50,13 +52,16 @@ export const github = { | |
|
||
const faucetUrl = 'https://faucet.testnet.oasis.dev/' | ||
const faucetParaTimeBaseUrl = `${faucetUrl}?paratime=` | ||
export const faucet = { | ||
[Layer.consensus]: faucetUrl, | ||
[Layer.emerald]: `${faucetParaTimeBaseUrl}emerald`, | ||
[Layer.sapphire]: `${faucetParaTimeBaseUrl}sapphire`, | ||
[Layer.pontusx]: 'mailto:[email protected]?subject=tokens', | ||
[Layer.cipher]: `${faucetParaTimeBaseUrl}cipher`, | ||
} | ||
export const faucet: Partial<Record<Network, Partial<Record<Layer, Partial<Record<NativeTicker, string>>>>>> = | ||
{ | ||
[Network.testnet]: { | ||
[Layer.consensus]: { [Ticker.TEST]: faucetUrl }, | ||
[Layer.emerald]: { [Ticker.TEST]: `${faucetParaTimeBaseUrl}emerald` }, | ||
[Layer.sapphire]: { [Ticker.TEST]: `${faucetParaTimeBaseUrl}sapphire` }, | ||
[Layer.pontusx]: { [Ticker.TEST]: 'mailto:[email protected]?subject=tokens' }, | ||
[Layer.cipher]: { [Ticker.TEST]: `${faucetParaTimeBaseUrl}cipher` }, | ||
}, | ||
} | ||
|
||
export const api = { | ||
spec: `${process.env.REACT_APP_API}spec/v1.html`, | ||
|