- Add upgradeable smart contract with vesting and staking functionality - Include comprehensive deployment script for proxy deployments and upgrades - Configure Hardhat with BSC testnet and verification support - Successfully deployed to BSC testnet at 0x12d705781764b7750d5622727EdA2392b512Ca3d 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
47 lines
1.0 KiB
JavaScript
47 lines
1.0 KiB
JavaScript
require("@nomicfoundation/hardhat-ethers");
|
|
require("@nomicfoundation/hardhat-chai-matchers");
|
|
require("@openzeppelin/hardhat-upgrades");
|
|
require("@nomiclabs/hardhat-etherscan");
|
|
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: 200,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
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/863b23c4-3a3a-4cdf-8620-41a2fd0be25b",
|
|
chainId: 56,
|
|
accounts: env.PRIVATE_KEY ? [env.PRIVATE_KEY] : [],
|
|
},
|
|
},
|
|
etherscan: {
|
|
apiKey: {
|
|
bsc: env.BSCSCAN_API_KEY || "",
|
|
bscTestnet: env.BSCSCAN_API_KEY || "",
|
|
}
|
|
},
|
|
}; |