mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-23 16:19:40 +00:00
Add Authereum provider (#443)
This commit is contained in:
parent
d391d6e7b3
commit
7777ab3f30
40993
package-lock.json
generated
Normal file
40993
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
@ -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: {},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user