74 lines
1.8 KiB
JavaScript
74 lines
1.8 KiB
JavaScript
require("@nomicfoundation/hardhat-ethers");
|
|
require("@nomicfoundation/hardhat-chai-matchers");
|
|
require("@openzeppelin/hardhat-upgrades");
|
|
require("@nomicfoundation/hardhat-verify");
|
|
require("dotenv").config();
|
|
|
|
const env = process.env;
|
|
|
|
/** @type import('hardhat/config').HardhatUserConfig */
|
|
module.exports = {
|
|
solidity: {
|
|
compilers: [
|
|
{
|
|
version: "0.8.20",
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 1,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
mocha: {
|
|
timeout: 10000000,
|
|
},
|
|
networks: {
|
|
hardhat: {
|
|
chainId: 31337,
|
|
allowUnlimitedContractSize: true,
|
|
},
|
|
localhost: {
|
|
url: "http://127.0.0.1:8545",
|
|
},
|
|
bscTestnet: {
|
|
url: "https://virtual.binance.eu.rpc.tenderly.co/77a9a30c-44ca-45e0-ae2a-9b5ddb41d20e",
|
|
chainId: 1337,
|
|
accounts: env.PRIVATE_KEY ? [env.PRIVATE_KEY] : [],
|
|
},
|
|
anvil: {
|
|
url: "https://rpc.tacopancake.com",
|
|
chainId: 1337,
|
|
accounts: [
|
|
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80", // Default Anvil account 0
|
|
],
|
|
},
|
|
buildbear: {
|
|
url: "https://rpc.buildbear.io/stale-bucky-0f42044d",
|
|
chainId: 31337,
|
|
accounts: env.PRIVATE_KEY ? [env.PRIVATE_KEY] : [],
|
|
},
|
|
},
|
|
etherscan: {
|
|
apiKey: {
|
|
bsc: env.BSCSCAN_API_KEY || "",
|
|
bscTestnet: env.BSCSCAN_API_KEY || "",
|
|
buildbear: "abc", // API key not needed for BuildBear
|
|
},
|
|
customChains: [
|
|
{
|
|
network: "buildbear",
|
|
chainId: 31337,
|
|
urls: {
|
|
apiURL: "https://rpc.buildbear.io/verify/etherscan/stale-bucky-0f42044d",
|
|
browserURL: "https://explorer.buildbear.io/stale-bucky-0f42044d"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
sourcify: {
|
|
enabled: true,
|
|
apiUrl: "https://rpc.buildbear.io/verify/sourcify/server/stale-bucky-0f42044d"
|
|
},
|
|
}; |