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>
Note: We get the following warning in the dev console after upgrading
vite from 3.0.3 -> 3.1.7:
Module "buffer" has been externalized for browser compatibility.
Cannot access "buffer.Buffer" in client code.
It comes from the transitive dependency `bn.js`, only versions 4.11.x are
affected. The warning is harmless and can be ignored. It should go away
once the direct dependencies upgrade to a newer version.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
`Error` is a built-in type in typescript, we don't want to have an
accidental clash.
Bumped into this when doing:
try {
// ...
} catch (error: unknown) {
if(error instanceof Error) {
// ...
}
}
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
- add a link to the faucet page from `Rinkeby` badge in header
- refactor the `<TextInput>` component to include
- a loading indicator
- a keyboard shortcut to submit the input by pressing the `enter` key
- add a keyboard shortcut hint <kbd>⏎</kbd> that shows up whenever the
input is ready to be submitted
- a validation message
- align all pages with a single input form to have a similar look and feel
- improve validation messages and error handling in all forms
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
- type events that are handed between components
- simplify the `resolve` function interface
- before we had return values and exceptions, now just a single union
type as return value
- move navigation to the Search component to reduce its
responsibilities
- flatten and simplify multi-level branching
- shuffle around code
- move the `resolve` function to the `Search` component module,
because it's only used there
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This gets rid of the testing-library-* and cypress-vite-devserver
dependencies and updates the specs according to the latest Cypress
documentation.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
Since ENS names go through a UTS46 normalisation process
case-folds labels before hashing them.
So we shouldn't be ENS querying uppercase names.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
We were calling `return query?.safe !== null ? true : false` but since
`query` can become `undefined` through the optional chaining operator,
we were returning `true` if the query wasn't able to retrieve
anything.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
Instead of defining the seeds in relation to the current network we
should be able to query them agnostic to the current connected network
This fixes issues with different search results depending on the
connected network
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>