Skip to content

Commit ce96f55

Browse files
authored
Merge pull request #5248 from swaponline/iinfura2024
infura apikey
2 parents d15939a + 84fdd0f commit ce96f55

File tree

9 files changed

+14
-4
lines changed

9 files changed

+14
-4
lines changed

.github/workflows/nodejs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ jobs:
3636
mkdir ./tests/e2e/screenshots
3737
npm run test:e2e:actions
3838
- name: Upload failure screenshots
39-
uses: actions/upload-artifact@v2
39+
uses: actions/upload-artifact@v4
4040
if: failure()
4141
with:
4242
name: failure-screenshots
4343
path: ./tests/e2e/screenshots
4444
if-no-files-found: ignore
4545
- name: Upload screenshots
46-
uses: actions/upload-artifact@v2
46+
uses: actions/upload-artifact@v4
4747
with:
4848
name: screenshots
4949
path: ./tests/e2e/screenshots

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@
228228
"bitcoinjs-lib": "5.1.6",
229229
"bitcoinjs-message": "^2.1.0",
230230
"bitcore-lib": "^8.25.10",
231+
"cipher-base": "1.0.4",
231232
"classnames": "^2.2.5",
232233
"command-line-args": "^5.0.2",
233234
"command-line-usage": "^6.1.0",

src/front/config/mainnet/api.js

+1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ export default {
4949
fkwscan: 'https://explorer.fokawa.com/api',
5050
phpxscan: 'https://explorer.phpx.network/api',
5151
WalletConnectProjectId: 'a23677c4af3139b4eccb52981f76ad94',
52+
InfuraApiKey: 'fdd4494101ed4a28b41bb66d7fe9c692',
5253
}

src/front/config/mainnet/web3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
provider: 'https://mainnet.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c',
2+
provider: 'https://mainnet.infura.io/v3/{INFURA_API_KEY}',
33
binance_provider: 'https://bsc-dataseed.binance.org/',
44
matic_provider: 'https://polygon.meowrpc.com',
55
arbitrum_provider: 'https://arb1.arbitrum.io/rpc',

src/front/config/testnet/api.js

+1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ export default {
4646
txinfo: 'https://txinfo.onout.org',
4747
noxon: 'https://noxon.wpmix.net',
4848
WalletConnectProjectId: 'a23677c4af3139b4eccb52981f76ad94',
49+
InfuraApiKey: 'fdd4494101ed4a28b41bb66d7fe9c692',
4950
}

src/front/config/testnet/web3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
provider: 'https://goerli.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c',
2+
provider: 'https://goerli.infura.io/v3/{INFURA_API_KEY}',
33
binance_provider: 'https://data-seed-prebsc-1-s1.binance.org:8545/',
44
matic_provider: 'https://polygon-testnet.public.blastapi.io',
55
arbitrum_provider: 'https://rinkeby.arbitrum.io/rpc',

src/front/shared/redux/actions/erc20LikeAction.ts

+2
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,8 @@ class Erc20LikeAction {
667667
}
668668

669669
const providers = externalConfig.web3
670+
const INFURA_API_KEY = (window && window.SO_INFURA_API_KEY) ? window.SO_INFURA_API_KEY : externalConfig.api.InfuraApiKey
671+
providers.provider = providers.provider.replace(`{INFURA_API_KEY}`, INFURA_API_KEY)
670672

671673
export default {
672674
erc20: new Erc20LikeAction({

src/front/shared/redux/actions/ethLikeAction.ts

+3
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,9 @@ class EthLikeAction {
600600

601601
const providers = externalConfig.web3
602602

603+
const INFURA_API_KEY = (window && window.SO_INFURA_API_KEY) ? window.SO_INFURA_API_KEY : externalConfig.api.InfuraApiKey
604+
providers.provider = providers.provider.replace(`{INFURA_API_KEY}`, INFURA_API_KEY)
605+
603606
export default {
604607
ETH: new EthLikeAction({
605608
coinName: 'Ethereum',

tests/e2e/wallet/tokenAddition.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ describe('Adding custom tokens', () => {
3939
walletTitle: 'WBNB BEP20',
4040
},
4141
],
42+
/*
4243
[
4344
'Custom POLYGON ERC20',
4445
'maticerc20matic',
@@ -48,6 +49,7 @@ describe('Adding custom tokens', () => {
4849
walletTitle: 'WMATIC ERC20MATIC',
4950
},
5051
],
52+
*/
5153
/*
5254
[
5355
'Custom xDai ERC20',

0 commit comments

Comments
 (0)