Commit Graph
7 Commits
Author SHA1 Message Date
Sebastian Martinez 55bf46729b Add custom eslint rule
Adding a custom Radicle ESLint rule to enforce one (1) space
after a unary logical NOT (`!`)

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-28 13:57:42 +01:00
Sebastian Martinez 1e827eb458 Update OpenGraph metadata in subpages
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-09 16:07:10 +01:00
Sebastian Martinez e3de337769 Move reactive config part into session state
This PR moves the signer "clones" the signer property from the `Config`
object into the `session` state, to allow Svelte reactivity, e.g. in the
Testnet Faucet, where we rely on `config.signer` but since it only
changes when the `Config` object in `App.svelte` changes we can't react
on it.

For now I only cloned the signer property, if we see in the future that
there are other properties that need to change with session we can add
them.

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-02 15:25:58 +01:00
Sebastian Martinez ea0e8bd3d3 Fix type errors
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-02 12:29:20 +01:00
Sebastian Martinez d144d4b420 Change input from number to string
- Add helper method toWei for better understanding
- Add some comments to why we multiply the lastWithdrawal by 1000

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-11-09 20:30:06 +01:00
Sebastian Martinez 9fb939e9c4 Change Faucet.ts to lib.ts and route
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-11-09 15:57:31 +01:00
Sebastian Martinez f22d513f79 Add RAD faucet
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-11-09 15:57:24 +01:00