Skip to content

Commit

Permalink
Merge pull request #5248 from swaponline/iinfura2024
Browse files Browse the repository at this point in the history
infura apikey
  • Loading branch information
noxonsu authored Dec 4, 2024
2 parents d15939a + 84fdd0f commit ce96f55
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
mkdir ./tests/e2e/screenshots
npm run test:e2e:actions
- name: Upload failure screenshots
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: failure-screenshots
path: ./tests/e2e/screenshots
if-no-files-found: ignore
- name: Upload screenshots
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: screenshots
path: ./tests/e2e/screenshots
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
"bitcoinjs-lib": "5.1.6",
"bitcoinjs-message": "^2.1.0",
"bitcore-lib": "^8.25.10",
"cipher-base": "1.0.4",
"classnames": "^2.2.5",
"command-line-args": "^5.0.2",
"command-line-usage": "^6.1.0",
Expand Down
1 change: 1 addition & 0 deletions src/front/config/mainnet/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ export default {
fkwscan: 'https://explorer.fokawa.com/api',
phpxscan: 'https://explorer.phpx.network/api',
WalletConnectProjectId: 'a23677c4af3139b4eccb52981f76ad94',
InfuraApiKey: 'fdd4494101ed4a28b41bb66d7fe9c692',
}
2 changes: 1 addition & 1 deletion src/front/config/mainnet/web3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
provider: 'https://mainnet.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c',
provider: 'https://mainnet.infura.io/v3/{INFURA_API_KEY}',
binance_provider: 'https://bsc-dataseed.binance.org/',
matic_provider: 'https://polygon.meowrpc.com',
arbitrum_provider: 'https://arb1.arbitrum.io/rpc',
Expand Down
1 change: 1 addition & 0 deletions src/front/config/testnet/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ export default {
txinfo: 'https://txinfo.onout.org',
noxon: 'https://noxon.wpmix.net',
WalletConnectProjectId: 'a23677c4af3139b4eccb52981f76ad94',
InfuraApiKey: 'fdd4494101ed4a28b41bb66d7fe9c692',
}
2 changes: 1 addition & 1 deletion src/front/config/testnet/web3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
provider: 'https://goerli.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c',
provider: 'https://goerli.infura.io/v3/{INFURA_API_KEY}',
binance_provider: 'https://data-seed-prebsc-1-s1.binance.org:8545/',
matic_provider: 'https://polygon-testnet.public.blastapi.io',
arbitrum_provider: 'https://rinkeby.arbitrum.io/rpc',
Expand Down
2 changes: 2 additions & 0 deletions src/front/shared/redux/actions/erc20LikeAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,8 @@ class Erc20LikeAction {
}

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

export default {
erc20: new Erc20LikeAction({
Expand Down
3 changes: 3 additions & 0 deletions src/front/shared/redux/actions/ethLikeAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ class EthLikeAction {

const providers = externalConfig.web3

const INFURA_API_KEY = (window && window.SO_INFURA_API_KEY) ? window.SO_INFURA_API_KEY : externalConfig.api.InfuraApiKey
providers.provider = providers.provider.replace(`{INFURA_API_KEY}`, INFURA_API_KEY)

export default {
ETH: new EthLikeAction({
coinName: 'Ethereum',
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e/wallet/tokenAddition.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe('Adding custom tokens', () => {
walletTitle: 'WBNB BEP20',
},
],
/*
[
'Custom POLYGON ERC20',
'maticerc20matic',
Expand All @@ -48,6 +49,7 @@ describe('Adding custom tokens', () => {
walletTitle: 'WMATIC ERC20MATIC',
},
],
*/
/*
[
'Custom xDai ERC20',
Expand Down

0 comments on commit ce96f55

Please sign in to comment.