Add Authereum provider (#443)

This commit is contained in:
Miguel Mota 2020-01-16 01:50:29 -08:00 committed by Mikhail Mikheev
parent d391d6e7b3
commit 7777ab3f30
5 changed files with 41718 additions and 24 deletions

40993
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -38,6 +38,7 @@
"@toruslabs/torus-embed": "0.2.10",
"@walletconnect/web3-provider": "^1.0.0-beta.37",
"@welldone-software/why-did-you-render": "3.4.1",
"authereum": "0.0.4-beta.68",
"axios": "0.19.0",
"bignumber.js": "9.0.0",
"connected-react-router": "6.6.1",

View File

@ -6,6 +6,7 @@ import WalletConnectProvider from '@walletconnect/web3-provider'
import Fortmatic from 'fortmatic'
import Portis from '@portis/web3'
import Squarelink from 'squarelink'
import Authereum from 'authereum'
import Button from '~/components/layout/Button'
import { fetchProvider, removeProvider } from '~/logic/wallets/store/actions'
import { getNetwork } from '~/config'
@ -53,6 +54,10 @@ export const web3Connect = new Web3Connect.Core({
showTorusButton: true,
},
},
authereum: {
package: Authereum,
options: {},
},
},
})

View File

@ -25,6 +25,7 @@ export const WALLET_PROVIDER = {
WALLETCONNECT: 'WALLETCONNECT',
OPERA: 'OPERA',
DAPPER: 'DAPPER',
AUTHEREUM: 'AUTHEREUM',
}
export const INJECTED_PROVIDERS = [
@ -119,6 +120,10 @@ const getProviderName: Function = (web3Provider): string => {
name = WALLET_PROVIDER.WALLETCONNECT
}
if (web3Provider.currentProvider.isAuthereum) {
name = WALLET_PROVIDER.AUTHEREUM
}
return name
}

738
yarn.lock

File diff suppressed because it is too large Load Diff