Done auto select price feed based on network & verify on testnet
This commit is contained in:
+13
-15
@@ -1,13 +1,15 @@
|
||||
require("@nomicfoundation/hardhat-toolbox");
|
||||
//// Deprecated, below import combined in toolbox import already
|
||||
require("@nomiclabs/hardhat-ethers");
|
||||
//require("@nomiclabs/hardhat-etherscan");
|
||||
//require("@nomicfoundation/hardhat-verify");
|
||||
require("dotenv").config();
|
||||
require("./tasks/block-number");
|
||||
require("@nomiclabs/hardhat-waffle");
|
||||
require("hardhat-gas-reporter");
|
||||
require("@nomiclabs/hardhat-etherscan");
|
||||
require("dotenv").config();
|
||||
require("solidity-coverage");
|
||||
require("hardhat-deploy");
|
||||
require("./tasks/block-number");
|
||||
|
||||
//require("@nomicfoundation/hardhat-toolbox");
|
||||
//// Deprecated, below import combined in toolbox import already
|
||||
//require("@nomiclabs/hardhat-ethers");
|
||||
//require("@nomicfoundation/hardhat-verify");
|
||||
|
||||
const RPC_URL_SEPOLIA = process.env.SEPOLIA_RPC_URL || "https://eth-sepolia";
|
||||
const PRIVATE_KEY_SEPOLIA = process.env.SEPOLIA_PRIVATE_KEY || "0xkey";
|
||||
@@ -29,17 +31,20 @@ module.exports = {
|
||||
url: RPC_URL_SEPOLIA,
|
||||
accounts: [PRIVATE_KEY_SEPOLIA],
|
||||
chainId: 11155111,
|
||||
blockConfirmation: 6,
|
||||
},
|
||||
ganache: {
|
||||
url: RPC_URL_GANACHE,
|
||||
accounts: [PRIVATE_KEY_GANACHE],
|
||||
chainId: 5777,
|
||||
blockConfirmation: 1,
|
||||
},
|
||||
localhost: {
|
||||
// Hardhost similar like ganache, can debug the transaction
|
||||
// Start in terminal - yarn hardhat node
|
||||
url: "http://127.0.0.1:8545/",
|
||||
chainId: 31337,
|
||||
blockConfirmation: 1,
|
||||
},
|
||||
},
|
||||
solidity: {
|
||||
@@ -54,6 +59,7 @@ module.exports = {
|
||||
},
|
||||
etherscan: {
|
||||
apiKey: ETHERSCAN_API_KEY,
|
||||
customChains: [],
|
||||
},
|
||||
sourcify: {
|
||||
enabled: false,
|
||||
@@ -81,11 +87,3 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
|
||||
const accounts = await hre.ethers.getSigners();
|
||||
|
||||
for (const account of accounts) {
|
||||
console.log(account.address);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user