Skip to content

Commit

Permalink
feat: RPC configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-lista committed Aug 14, 2024
1 parent d281c8e commit a3f69c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
DEPLOYER_PRIVATE_KEY=
BSC_API_KEY=
BSC_API_KEY=
BSC_TESTNET_RPC=https://data-seed-prebsc-2-s3.binance.org:8545/
BSC_RPC=https://bsc-dataseed.binance.org/
9 changes: 7 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ const config: HardhatUserConfig = {
},
},
bsc: {
url: `https://bsc-dataseed.binance.org/`,
url: process.env.BSC_RPC || `https://bsc-dataseed.binance.org/`,
chainId: 56,
accounts: [`0x${process.env.DEPLOYER_PRIVATE_KEY}`]
},

bsc_testnet: {
url: `https://data-seed-prebsc-2-s3.binance.org:8545/`,
url: process.env.BSC_TESTNET_RPC || `https://data-seed-prebsc-2-s3.binance.org:8545/`,
chainId: 97,
accounts: [`0x${process.env.DEPLOYER_PRIVATE_KEY}`],
gasPrice: 15000000000 // 15 gwei
Expand Down Expand Up @@ -75,6 +75,11 @@ const config: HardhatUserConfig = {
typechain: {
outDir: 'typechain',
},

sourcify: {
enabled: true
}

};

export default config;
Expand Down

0 comments on commit a3f69c1

Please sign in to comment.