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:
Rūdolfs Ošiņš
2022-10-13 10:27:07 +02:00
parent 71b5ce7de2
commit 92c4353ba7
8 changed files with 28 additions and 21 deletions
+5 -5
View File
@@ -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>
&#8203;,
<br />
+2 -2
View File
@@ -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>
+3 -1
View File
@@ -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 {