Skip to content

Commit

Permalink
update keys and redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamejason committed May 10, 2022
1 parent 88c82f6 commit cfdfa37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 52 deletions.
23 changes: 1 addition & 22 deletions packages/hardhat/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,35 +33,14 @@ module.exports = {
localhost: {
url: "http://localhost:8545",
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/460f40a260564ac4a4f4b3fffb032dad", // <---- YOUR INFURA ID! (or it won't work)
// url: "https://speedy-nodes-nyc.moralis.io/XXXXXXXXXXXXXXXXXXXXXXX/eth/rinkeby", // <---- YOUR MORALIS ID! (not limited to infura)
accounts: {
mnemonic: mnemonic(),
},
},
kovan: {
url: "https://kovan.infura.io/v3/460f40a260564ac4a4f4b3fffb032dad", // <---- YOUR INFURA ID! (or it won't work)
// url: "https://speedy-nodes-nyc.moralis.io/XXXXXXXXXXXXXXXXXXXXXXX/eth/kovan", // <---- YOUR MORALIS ID! (not limited to infura)
accounts: {
mnemonic: mnemonic(),
},
},
mainnet: {
url: "https://eth-mainnet.alchemyapi.io/v2/oKxs-03sij-U_N0iOlrSsZFr29-IqbuF", // <---- YOUR INFURA ID! (or it won't work)
url: "https://eth-mainnet.alchemyapi.io/v2/4eQGdKbc4zxHaDCEQG1wmi98KPRUht_t", // <---- YOUR INFURA ID! (or it won't work)
// url: "https://speedy-nodes-nyc.moralis.io/XXXXXXXXXXXXXXXXXXXXXXXXX/eth/mainnet", // <---- YOUR MORALIS ID! (not limited to infura)
gasPrice: mainnetGwei * 1000000000,
accounts: {
mnemonic: mnemonic(),
},
},
ropsten: {
url: "https://ropsten.infura.io/v3/460f40a260564ac4a4f4b3fffb032dad", // <---- YOUR INFURA ID! (or it won't work)
// url: "https://speedy-nodes-nyc.moralis.io/XXXXXXXXXXXXXXXXXXXXXXXXX/eth/ropsten",// <---- YOUR MORALIS ID! (not limited to infura)
accounts: {
mnemonic: mnemonic(),
},
},
goerli: {
url: "https://goerli.infura.io/v3/460f40a260564ac4a4f4b3fffb032dad", // <---- YOUR INFURA ID! (or it won't work)
// url: "https://speedy-nodes-nyc.moralis.io/XXXXXXXXXXXXXXXXXXXXXXXXX/eth/goerli", // <---- YOUR MORALIS ID! (not limited to infura)
Expand Down
8 changes: 4 additions & 4 deletions packages/react-app/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ if (DEBUG) console.log("📡 Connecting to Mainnet Ethereum");
// attempt to connect to our own scaffold eth rpc and if that fails fall back to infura...
// Using StaticJsonRpcProvider as the chainId won't change see https://github.com/ethers-io/ethers.js/issues/901
const scaffoldEthProvider = navigator.onLine
? new ethers.providers.StaticJsonRpcProvider("https://eth-mainnet.alchemyapi.io/v2/W0XfQJvBYrDk6wxM2F3VEDns10TBTLzs")
? new ethers.providers.StaticJsonRpcProvider("https://eth-mainnet.alchemyapi.io/v2/4eQGdKbc4zxHaDCEQG1wmi98KPRUht_t")
: null;
const poktMainnetProvider = navigator.onLine
? new ethers.providers.StaticJsonRpcProvider(
"https://eth-mainnet.gateway.pokt.network/v1/lb/611156b4a585a20035148406",
)
: null;
const mainnetInfura = navigator.onLine
? new ethers.providers.StaticJsonRpcProvider("https://eth-mainnet.alchemyapi.io/v2/W0XfQJvBYrDk6wxM2F3VEDns10TBTLzs")
? new ethers.providers.StaticJsonRpcProvider("https://eth-mainnet.alchemyapi.io/v2/4eQGdKbc4zxHaDCEQG1wmi98KPRUht_t")
: null;
// ( ⚠️ Getting "failed to meet quorum" errors? Check your INFURA_ID

Expand All @@ -66,7 +66,7 @@ const walletLink = new WalletLink({

// WalletLink provider
const walletLinkProvider = walletLink.makeWeb3Provider(
"https://eth-mainnet.alchemyapi.io/v2/oKxs-03sij-U_N0iOlrSsZFr29-IqbuF",
"https://eth-mainnet.alchemyapi.io/v2/4eQGdKbc4zxHaDCEQG1wmi98KPRUht_t",
1,
);

Expand All @@ -85,7 +85,7 @@ const web3Modal = new SafeAppWeb3Modal({
bridge: "https://polygon.bridge.walletconnect.org",
infuraId: INFURA_ID,
rpc: {
1: "https://eth-mainnet.alchemyapi.io/v2/oKxs-03sij-U_N0iOlrSsZFr29-IqbuF", // mainnet // For more WalletConnect providers: https://docs.walletconnect.org/quick-start/dapps/web3-provider#required
1: "https://eth-mainnet.alchemyapi.io/v2/4eQGdKbc4zxHaDCEQG1wmi98KPRUht_t", // mainnet // For more WalletConnect providers: https://docs.walletconnect.org/quick-start/dapps/web3-provider#required
42: `https://kovan.infura.io/v3/${INFURA_ID}`,
100: "https://dai.poa.network", // xDai
},
Expand Down
27 changes: 1 addition & 26 deletions packages/react-app/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,9 @@ export const NETWORKS = {
name: "mainnet",
color: "#ff8b9e",
chainId: 1,
// rpcUrl: `https://mainnet.infura.io/v3/${INFURA_ID}`,
rpcUrl: "https://eth-mainnet.alchemyapi.io/v2/W0XfQJvBYrDk6wxM2F3VEDns10TBTLzs",
rpcUrl: "https://eth-mainnet.alchemyapi.io/v2/4eQGdKbc4zxHaDCEQG1wmi98KPRUht_t",
blockExplorer: "https://etherscan.io/",
},
kovan: {
name: "kovan",
color: "#7003DD",
chainId: 42,
rpcUrl: `https://kovan.infura.io/v3/${INFURA_ID}`,
blockExplorer: "https://kovan.etherscan.io/",
faucet: "https://gitter.im/kovan-testnet/faucet", // https://faucet.kovan.network/
},
rinkeby: {
name: "rinkeby",
color: "#e0d068",
chainId: 4,
rpcUrl: `https://rinkeby.infura.io/v3/${INFURA_ID}`,
faucet: "https://faucet.rinkeby.io/",
blockExplorer: "https://rinkeby.etherscan.io/",
},
ropsten: {
name: "ropsten",
color: "#F60D09",
chainId: 3,
faucet: "https://faucet.ropsten.be/",
blockExplorer: "https://ropsten.etherscan.io/",
rpcUrl: `https://ropsten.infura.io/v3/${INFURA_ID}`,
},
goerli: {
name: "goerli",
color: "#0975F6",
Expand Down

0 comments on commit cfdfa37

Please sign in to comment.