mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Replace Rinkeby testnet with Goerli
Rinkeby has been sunsetted in favour of Goerli after the Ethereum merge. Deployed `phase0` from radicle-contracts, some vesting contracts and the faucet from `radicle-faucet` to the Goerli testnet and adjusted the code. The `reverseRegistrar` was obtained from: https://app.ens.domains/name/addr.reverse/details Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import type { Config } from "@app/config";
|
||||
|
||||
import { session } from "@app/session";
|
||||
import { setOpenGraphMetaTag, toWei } from "@app/utils";
|
||||
import { setOpenGraphMetaTag, toWei, capitalize } from "@app/utils";
|
||||
import { formatEther } from "@ethersproject/units";
|
||||
import { navigate } from "svelte-routing";
|
||||
import {
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
setOpenGraphMetaTag([
|
||||
{ prop: "og:title", content: "Radicle Faucet" },
|
||||
{ prop: "og:description", content: "Rinkeby Testnet Faucet" },
|
||||
{ prop: "og:description", content: "Goerli Testnet Faucet" },
|
||||
{ prop: "og:url", content: window.location.href },
|
||||
]);
|
||||
|
||||
@@ -120,14 +120,14 @@
|
||||
<main>
|
||||
<div class="title">
|
||||
Obtain RAD tokens on <span class="txt-bold">
|
||||
{config.network.name}
|
||||
{capitalize(config.network.name)}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{#if config.network.name === "homestead"}
|
||||
<div class="subtitle">
|
||||
To get RAD tokens on <span class="txt-bold">
|
||||
{config.network.name},
|
||||
{capitalize(config.network.name)},
|
||||
</span>
|
||||
please
|
||||
<br />
|
||||
@@ -140,7 +140,7 @@
|
||||
{:else if !$session}
|
||||
<div class="subtitle">
|
||||
To get RAD tokens on <span class="txt-bold">
|
||||
{config.network.name}
|
||||
{capitalize(config.network.name)}
|
||||
</span>
|
||||
​,
|
||||
<br />
|
||||
|
||||
@@ -86,8 +86,8 @@
|
||||
<div class="subtitle">
|
||||
Register a unique name with our ENS registrar, under <br />
|
||||
the
|
||||
<span class="txt-bold">radicle.eth</span>
|
||||
domain (e.g. cloudhead.radicle.eth).
|
||||
<span class="txt-bold">{config.registrar.domain}</span>
|
||||
domain (e.g. cloudhead.{config.registrar.domain}).
|
||||
<br />
|
||||
Radicle names never expire and free to register.
|
||||
</div>
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
const registrationOwner = owner || session.address;
|
||||
|
||||
const view = () =>
|
||||
navigate(`/registrations/${name}.radicle.eth`, { state: { retry: true } });
|
||||
navigate(`/registrations/${name}.${config.registrar.domain}`, {
|
||||
state: { retry: true },
|
||||
});
|
||||
|
||||
onMount(async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user