application-research / estuary-www

https://estuary.tech
https://estuary.tech
Other
35 stars 31 forks source link

Feature support metamask login #178

Closed LucRoy closed 1 year ago

LucRoy commented 1 year ago

*** Marking this as draft since we are waiting for main FVM net release ***

Network Configuration controlled through common/contants.ts

export const network = {
  chainName: 'Filecoin - Hyperspace testnet',
  chainId: "0xc45",
  nativeCurrency: { name: 'Filecoin', decimals: 18, symbol: 'tFIL' },
  rpcUrls: ['https://api.hyperspace.node.glif.io/rpc/v1'],
  blockExplorerUrls: ["https://hyperspace.filfox.info"],
}

Enables Metamask sign-up and authentication (phase 1 - still need invite code).

Sign-up Screenshot 2023-03-13 at 9 51 37 AM

Sign-in Screenshot 2023-03-13 at 9 51 59 AM

Automatically create network if not already setup in metamask Screenshot 2023-03-13 at 9 54 24 AM

Generate signature message with server generate nonce (utilizing the new auth-svc) Screenshot 2023-03-13 at 9 56 25 AM

Introduces new wallet feature for visualizing wallet balance and price discovery Screenshot 2023-03-13 at 9 59 00 AM

LucRoy commented 1 year ago

Updated to point to mainnet.

export const network = {
  chainName: 'Filecoin - Mainnet',
  chainId: "0x13A",
  nativeCurrency: { name: 'Filecoin', decimals: 18, symbol: 'FIL' },
  rpcUrls: ['https://api.node.glif.io'],
  blockExplorerUrls: ["https://filfox.info"],
}