From 2886b34c94be33ff159e811728caca030dd1b773 Mon Sep 17 00:00:00 2001 From: lukaw3d Date: Wed, 21 Feb 2024 20:48:44 +0100 Subject: [PATCH 1/2] Move oasis testnet faucet link back to externalLinks --- .changelog/1288.trivial.md | 1 + src/app/utils/externalLinks.ts | 4 ++++ src/app/utils/faucet-links.ts | 10 +++++----- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .changelog/1288.trivial.md diff --git a/.changelog/1288.trivial.md b/.changelog/1288.trivial.md new file mode 100644 index 000000000..022fbdcc2 --- /dev/null +++ b/.changelog/1288.trivial.md @@ -0,0 +1 @@ +Move oasis testnet faucet link back to externalLinks diff --git a/src/app/utils/externalLinks.ts b/src/app/utils/externalLinks.ts index 4cd9f6761..ed8613871 100644 --- a/src/app/utils/externalLinks.ts +++ b/src/app/utils/externalLinks.ts @@ -45,6 +45,10 @@ export const github = { releaseTag: `https://github.com/oasisprotocol/explorer/releases/tag/`, } +export const faucets = { + oasisTestnet: 'https://faucet.testnet.oasis.dev/', +} + export const api = { spec: `${process.env.REACT_APP_API}spec/v1.html`, } diff --git a/src/app/utils/faucet-links.ts b/src/app/utils/faucet-links.ts index ef9ddbf94..65f954cf5 100644 --- a/src/app/utils/faucet-links.ts +++ b/src/app/utils/faucet-links.ts @@ -1,14 +1,14 @@ import { Ticker } from 'types/ticker' import { Network } from '../../types/network' import { Layer } from '../../oasis-nexus/api' +import { faucets } from './externalLinks' -const testnetFaucetUrl = 'https://faucet.testnet.oasis.dev/' const faucetLinks: Partial>>>>> = { [Network.testnet]: { - [Layer.consensus]: { [Ticker.TEST]: testnetFaucetUrl }, - [Layer.emerald]: { [Ticker.TEST]: `${testnetFaucetUrl}?paratime=emerald` }, - [Layer.sapphire]: { [Ticker.TEST]: `${testnetFaucetUrl}?paratime=sapphire` }, - [Layer.cipher]: { [Ticker.TEST]: `${testnetFaucetUrl}?paratime=cipher` }, + [Layer.consensus]: { [Ticker.TEST]: faucets.oasisTestnet }, + [Layer.emerald]: { [Ticker.TEST]: `${faucets.oasisTestnet}?paratime=emerald` }, + [Layer.sapphire]: { [Ticker.TEST]: `${faucets.oasisTestnet}?paratime=sapphire` }, + [Layer.cipher]: { [Ticker.TEST]: `${faucets.oasisTestnet}?paratime=cipher` }, [Layer.pontusx]: { [Ticker.EUROe]: `mailto:contact@delta-dao.com?subject=${encodeURIComponent('Request test tokens')}`, }, From 15a73214e0d41ec46b53c9bd974e50f783277ec2 Mon Sep 17 00:00:00 2001 From: lukaw3d Date: Thu, 22 Feb 2024 18:04:05 +0100 Subject: [PATCH 2/2] Move wRose dapp link to externalLinks --- src/app/config/dapps/wrose.ts | 3 ++- src/app/utils/externalLinks.ts | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/config/dapps/wrose.ts b/src/app/config/dapps/wrose.ts index 8aba7ac8e..c595c0d84 100644 --- a/src/app/config/dapps/wrose.ts +++ b/src/app/config/dapps/wrose.ts @@ -1,3 +1,4 @@ +import { dapps } from '../../utils/externalLinks' import type { DappReference } from './index' import type { TFunction } from 'i18next' @@ -13,6 +14,6 @@ export const wRose = { app: (t: TFunction): DappReference => ({ description: t('dapps.wrose.description'), label: t('dapps.wrose.label'), - url: 'https://wrose.oasis.io/', + url: dapps.wRose, }), } diff --git a/src/app/utils/externalLinks.ts b/src/app/utils/externalLinks.ts index ed8613871..11cef4df3 100644 --- a/src/app/utils/externalLinks.ts +++ b/src/app/utils/externalLinks.ts @@ -49,6 +49,10 @@ export const faucets = { oasisTestnet: 'https://faucet.testnet.oasis.dev/', } +export const dapps = { + wRose: 'https://wrose.oasis.io/', +} + export const api = { spec: `${process.env.REACT_APP_API}spec/v1.html`, }