Options
All
  • Public
  • Public/Protected
  • All
Menu

Module view/pages/NoMetamaskPage

Functions

Object literals

Functions

Const NoMetamaskPage

  • NoMetamaskPage(): Element
  • React Component representing separate page (different than default GamePage), which handles the situation when there is no MetaMask extension available or it's not connected to the right network. It instructs the user what to do to successfully start the game.

    Returns Element

Const getNetworkName

  • getNetworkName(id: string): string
  • Helper function for getting full network name based on its ID

    Parameters

    • id: string

      ID of Ethereum network

    Returns string

Object literals

Const Networks

Networks: object

List of Ethereum networks and their IDs

0x1

0x1: string = "Ethereum Main Network"

0x2a

0x2a: string = "Kovan Test Network"

0x3

0x3: string = "Ropsten Test Network"

0x4

0x4: string = "Rinkeby Test Network"

0x5

0x5: string = "Goerli Test Network"

0xNaN

0xNaN: string = "Custom Network"

Generated using TypeDoc