Remove unused Alchemy keys & censored Infura links
This commit is contained in:
parent
1d60b4016e
commit
cf394714c3
@ -1,13 +1,7 @@
|
|||||||
PINATA_API_KEY=
|
PINATA_API_KEY=
|
||||||
PINATA_SECRET_API_KEY=
|
PINATA_SECRET_API_KEY=
|
||||||
|
|
||||||
INFURA_KEY=
|
CHAINNODES_KEY=
|
||||||
|
|
||||||
ALCHEMY_MAINNET_KEY=
|
|
||||||
ALCHEMY_POLYGON_KEY=
|
|
||||||
ALCHEMY_OPTIMISM_KEY=
|
|
||||||
ALCHEMY_ARBITRUM_KEY=
|
|
||||||
ALCHEMY_GOERLI_KEY=
|
|
||||||
|
|
||||||
WC_BRIDGE=
|
WC_BRIDGE=
|
||||||
|
|
||||||
|
7
.github/workflows/nodejs.yml
vendored
7
.github/workflows/nodejs.yml
vendored
@ -32,12 +32,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: yarn generate
|
run: yarn generate
|
||||||
env:
|
env:
|
||||||
INFURA_KEY: ${{ secrets.INFURA_KEY }}
|
CHAINNODES_KEY: ${{ secrets.CHAINNODES_KEY }}
|
||||||
ALCHEMY_MAINNET_KEY: ${{ secrets.ALCHEMY_MAINNET_KEY }}
|
|
||||||
ALCHEMY_POLYGON_KEY: ${{ secrets.ALCHEMY_POLYGON_KEY }}
|
|
||||||
ALCHEMY_OPTIMISM_KEY: ${{ secrets.ALCHEMY_OPTIMISM_KEY }}
|
|
||||||
ALCHEMY_ARBITRUM_KEY: ${{ secrets.ALCHEMY_ARBITRUM_KEY }}
|
|
||||||
ALCHEMY_GOERLI_KEY: ${{ secrets.ALCHEMY_GOERLI_KEY }}
|
|
||||||
WC_BRIDGE: ${{ secrets.WC_BRIDGE }}
|
WC_BRIDGE: ${{ secrets.WC_BRIDGE }}
|
||||||
OLD_STORE_NAME: ${{ secrets.OLD_STORE_NAME }}
|
OLD_STORE_NAME: ${{ secrets.OLD_STORE_NAME }}
|
||||||
STORE_NAME: ${{ secrets.STORE_NAME }}
|
STORE_NAME: ${{ secrets.STORE_NAME }}
|
||||||
|
@ -187,12 +187,7 @@ export default {
|
|||||||
new webpack.IgnorePlugin(/worker_threads/),
|
new webpack.IgnorePlugin(/worker_threads/),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env': JSON.stringify({
|
'process.env': JSON.stringify({
|
||||||
INFURA_KEY: process.env.INFURA_KEY,
|
CHAINNODES_KEY: process.env.CHAINNODES_KEY,
|
||||||
ALCHEMY_MAINNET_KEY: process.env.ALCHEMY_MAINNET_KEY,
|
|
||||||
ALCHEMY_POLYGON_KEY: process.env.ALCHEMY_POLYGON_KEY,
|
|
||||||
ALCHEMY_OPTIMISM_KEY: process.env.ALCHEMY_OPTIMISM_KEY,
|
|
||||||
ALCHEMY_ARBITRUM_KEY: process.env.ALCHEMY_ARBITRUM_KEY,
|
|
||||||
ALCHEMY_GOERLI_KEY: process.env.ALCHEMY_GOERLI_KEY,
|
|
||||||
WC_BRIDGE: process.env.WC_BRIDGE,
|
WC_BRIDGE: process.env.WC_BRIDGE,
|
||||||
OLD_STORE_NAME: process.env.OLD_STORE_NAME,
|
OLD_STORE_NAME: process.env.OLD_STORE_NAME,
|
||||||
STORE_NAME: process.env.STORE_NAME,
|
STORE_NAME: process.env.STORE_NAME,
|
||||||
@ -230,7 +225,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
provider: {
|
provider: {
|
||||||
rpcUrl: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`
|
rpcUrl: `https://mainnet.chainnodes.org/${process.env.CHAINNODES_KEY}`
|
||||||
},
|
},
|
||||||
|
|
||||||
// todo make custom loading page
|
// todo make custom loading page
|
||||||
|
@ -39,10 +39,6 @@ export async function getPastEvents({ type, fromBlock, netId, events, contractAt
|
|||||||
|
|
||||||
let [{ url: rpcUrl }] = Object.values(networkConfig[`netId${netId}`].rpcUrls)
|
let [{ url: rpcUrl }] = Object.values(networkConfig[`netId${netId}`].rpcUrls)
|
||||||
|
|
||||||
if (netId === '5') {
|
|
||||||
rpcUrl = 'https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161'
|
|
||||||
}
|
|
||||||
|
|
||||||
const provider = new Web3.providers.HttpProvider(rpcUrl)
|
const provider = new Web3.providers.HttpProvider(rpcUrl)
|
||||||
const web3 = new Web3(provider)
|
const web3 = new Web3(provider)
|
||||||
const contract = new web3.eth.Contract(...contractAttrs)
|
const contract = new web3.eth.Contract(...contractAttrs)
|
||||||
|
Loading…
Reference in New Issue
Block a user