Commit Graph
10 Commits
Author SHA1 Message Date
Sebastian Martinez 8e1c7f45b7 Revert config injection in session
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-05-20 13:10:53 +02:00
Sebastian Martinez be0ff349df Move signer into session store
The Metamask and WalletConnect signer are updated one any account
change, but currently we store them only in the static config object.
This commit moves this to the session store to improve this behaviour

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-05-20 13:10:53 +02:00
Sebastian Martinez 3f28844dc8 Flatten session store
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-05-18 15:45:47 +02:00
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