Skip to content

Commit

Permalink
chore(DappProvider): enable quicknode migration
Browse files Browse the repository at this point in the history
  • Loading branch information
JayWelsh committed Oct 31, 2023
1 parent b2dc14f commit de03dbb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REACT_APP_ALCHEMY_RPC_URL_MAINNET: ${{ secrets.REACT_APP_ALCHEMY_RPC_URL_MAINNET }}
REACT_APP_ALCHEMY_RPC_URL_ARBITRUM: ${{ secrets.REACT_APP_ALCHEMY_RPC_URL_ARBITRUM }}
REACT_APP_QUICKNODE_RPC_URL_MAINNET: ${{ secrets.REACT_APP_QUICKNODE_RPC_URL_MAINNET }}
REACT_APP_QUICKNODE_RPC_URL_ARBITRUM: ${{ secrets.REACT_APP_QUICKNODE_RPC_URL_ARBITRUM }}
REACT_APP_ENV: ${{ vars.REACT_APP_ENV }}
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workflow-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REACT_APP_ALCHEMY_RPC_URL_MAINNET: ${{ secrets.REACT_APP_ALCHEMY_RPC_URL_MAINNET }}
REACT_APP_ALCHEMY_RPC_URL_ARBITRUM: ${{ secrets.REACT_APP_ALCHEMY_RPC_URL_ARBITRUM }}
REACT_APP_QUICKNODE_RPC_URL_MAINNET: ${{ secrets.REACT_APP_QUICKNODE_RPC_URL_MAINNET }}
REACT_APP_QUICKNODE_RPC_URL_ARBITRUM: ${{ secrets.REACT_APP_QUICKNODE_RPC_URL_ARBITRUM }}
REACT_APP_ENV: ${{ vars.REACT_APP_ENV }}
steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 6 additions & 2 deletions src/components/DappProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const DappProvider = (props: PropsFromRedux) => {
}

const mainnetReadOnlyUrl = () => {
if(process.env.REACT_APP_INFURA_RPC_URL_MAINNET) {
if (process.env.REACT_APP_QUICKNODE_RPC_URL_MAINNET) {
return process.env.REACT_APP_QUICKNODE_RPC_URL_MAINNET;
} else if(process.env.REACT_APP_INFURA_RPC_URL_MAINNET) {
return `${process.env.REACT_APP_INFURA_RPC_URL_MAINNET}`;
} else if(process.env.REACT_APP_ALCHEMY_RPC_URL_MAINNET) {
return `${process.env.REACT_APP_ALCHEMY_RPC_URL_MAINNET}`;
Expand All @@ -28,7 +30,9 @@ const DappProvider = (props: PropsFromRedux) => {
}

const arbitrumReadOnlyUrl = () => {
if(process.env.REACT_APP_INFURA_RPC_URL_ARBITRUM) {
if(process.env.REACT_APP_QUICKNODE_RPC_URL_ARBITRUM) {
return `${process.env.REACT_APP_QUICKNODE_RPC_URL_ARBITRUM}`;
} else if(process.env.REACT_APP_INFURA_RPC_URL_ARBITRUM) {
return `${process.env.REACT_APP_INFURA_RPC_URL_ARBITRUM}`;
} else if(process.env.REACT_APP_ALCHEMY_RPC_URL_ARBITRUM) {
return `${process.env.REACT_APP_ALCHEMY_RPC_URL_ARBITRUM}`;
Expand Down
8 changes: 6 additions & 2 deletions src/components/DappReactiveConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const DappReactiveConfig = (props: PropsFromRedux) => {
}

const mainnetReadOnlyUrl = () => {
if(process.env.REACT_APP_INFURA_RPC_URL_MAINNET) {
if (process.env.REACT_APP_QUICKNODE_RPC_URL_MAINNET) {
return process.env.REACT_APP_QUICKNODE_RPC_URL_MAINNET;
} else if(process.env.REACT_APP_INFURA_RPC_URL_MAINNET) {
return `${process.env.REACT_APP_INFURA_RPC_URL_MAINNET}`;
} else if(process.env.REACT_APP_ALCHEMY_RPC_URL_MAINNET) {
return `${process.env.REACT_APP_ALCHEMY_RPC_URL_MAINNET}`;
Expand All @@ -35,7 +37,9 @@ const DappReactiveConfig = (props: PropsFromRedux) => {
}

const arbitrumReadOnlyUrl = () => {
if(process.env.REACT_APP_INFURA_RPC_URL_ARBITRUM) {
if(process.env.REACT_APP_QUICKNODE_RPC_URL_ARBITRUM) {
return `${process.env.REACT_APP_QUICKNODE_RPC_URL_ARBITRUM}`;
} else if(process.env.REACT_APP_INFURA_RPC_URL_ARBITRUM) {
return `${process.env.REACT_APP_INFURA_RPC_URL_ARBITRUM}`;
} else if(process.env.REACT_APP_ALCHEMY_RPC_URL_ARBITRUM) {
return `${process.env.REACT_APP_ALCHEMY_RPC_URL_ARBITRUM}`;
Expand Down

0 comments on commit de03dbb

Please sign in to comment.