Update rinkeby tokens for integrations, remove unused provider packages

This commit is contained in:
Mikhail Mikheev 2019-11-07 15:25:45 +04:00
parent dc47868a9f
commit bf8f8c430a
2 changed files with 7 additions and 20 deletions

View File

@ -31,7 +31,6 @@
"precommit" "precommit"
], ],
"dependencies": { "dependencies": {
"@arkane-network/web3-arkane-provider": "^0.2.5",
"@gnosis.pm/safe-contracts": "^1.0.0", "@gnosis.pm/safe-contracts": "^1.0.0",
"@gnosis.pm/util-contracts": "2.0.4", "@gnosis.pm/util-contracts": "2.0.4",
"@material-ui/core": "4.6.0", "@material-ui/core": "4.6.0",
@ -47,7 +46,6 @@
"date-fns": "2.6.0", "date-fns": "2.6.0",
"ethereum-ens": "0.7.8", "ethereum-ens": "0.7.8",
"final-form": "4.18.5", "final-form": "4.18.5",
"fortmatic": "1.0.0",
"history": "4.10.1", "history": "4.10.1",
"immortal-db": "^1.0.2", "immortal-db": "^1.0.2",
"immutable": "^4.0.0-rc.9", "immutable": "^4.0.0-rc.9",

View File

@ -5,14 +5,15 @@ import { connect } from 'react-redux'
import Web3Connect from 'web3connect' import Web3Connect from 'web3connect'
import WalletConnectProvider from '@walletconnect/web3-provider' import WalletConnectProvider from '@walletconnect/web3-provider'
import Portis from '@portis/web3' import Portis from '@portis/web3'
import Fortmatic from 'fortmatic'
import Squarelink from 'squarelink' import Squarelink from 'squarelink'
import Torus from '@toruslabs/torus-embed' import Torus from '@toruslabs/torus-embed'
import Arkane from '@arkane-network/web3-arkane-provider'
import Button from '~/components/layout/Button' import Button from '~/components/layout/Button'
import { fetchProvider } from '~/logic/wallets/store/actions' import { fetchProvider } from '~/logic/wallets/store/actions'
import { getNetwork } from '~/config' import { getNetwork } from '~/config'
const PORTIS_DAPP_ID = process.env.REACT_APP_NETWORK === 'mainnet' ? process.env.REACT_APP_PORTIS_ID : '852b763d-f28b-4463-80cb-846d7ec5806b'
const SQUARELINK_CLIENT_ID = process.env.REACT_APP_NETWORK === 'mainnet' ? process.env.REACT_APP_SQUARELINK_ID : '46ce08fe50913cfa1b78'
export const web3Connect = new Web3Connect.Core({ export const web3Connect = new Web3Connect.Core({
network: getNetwork().toLowerCase(), network: getNetwork().toLowerCase(),
providerOptions: { providerOptions: {
@ -25,23 +26,17 @@ export const web3Connect = new Web3Connect.Core({
portis: { portis: {
package: Portis, package: Portis,
options: { options: {
id: process.env.REACT_APP_PORTIS_ID, id: PORTIS_DAPP_ID,
},
},
fortmatic: {
package: Fortmatic,
options: {
key: process.env.REACT_APP_FORTMATIC_KEY,
}, },
}, },
squarelink: { squarelink: {
package: Squarelink, // required package: Squarelink,
options: { options: {
id: process.env.REACT_APP_SQUARELINK_ID, // required id: SQUARELINK_CLIENT_ID,
}, },
}, },
torus: { torus: {
package: Torus, // required package: Torus,
options: { options: {
enableLogging: false, enableLogging: false,
buttonPosition: 'bottom-left', buttonPosition: 'bottom-left',
@ -49,12 +44,6 @@ export const web3Connect = new Web3Connect.Core({
showTorusButton: true, showTorusButton: true,
}, },
}, },
arkane: {
package: Arkane, // required
options: {
clientId: 'ARKANE_CLIENT_ID', // required, replace
},
},
}, },
}) })