Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infura apikey #5248

Merged
merged 6 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading