AmplicaLabs / wallet-proxy

Provides easy interface for DSNP over Frequency dApps to let Users sign in or sign up via supported wallets
https://amplicalabs.github.io/wallet-proxy
0 stars 0 forks source link

Add support for showing network connection #28

Open p5150j opened 11 months ago

p5150j commented 11 months ago

Description As a user of proxy wallet, I want to be able to know what network I am on (Rococo, Mainet, Localhost).

Acceptance Criteria

  1. ~add support for env (testnet, mainnet)~
  2. Derive chain from gen block from connection
  3. Validate the node provided in the URL against the genesis block.
  4. A user should see the network they are on.
  5. Log value to console

Note The is no need for env support as the node URL will be passed through the params.