Skip to content

Commit

Permalink
misc: add bsc, polygon network config
Browse files Browse the repository at this point in the history
  • Loading branch information
antoncoding committed Jul 10, 2021
1 parent 726f251 commit 8964405
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
28 changes: 22 additions & 6 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,32 @@ export default {
hardhat: {},
ropsten: {
url: `https://ropsten.infura.io/v3/${infuraKey}`,
accounts: {
mnemonic: mnemonic,
},
accounts: { mnemonic: mnemonic },
},
kovan: {
url: `https://kovan.infura.io/v3/${infuraKey}`,
accounts: {
mnemonic: mnemonic,
},
accounts: { mnemonic: mnemonic },
},
bscTestnet: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545",
chainId: 97,
accounts: { mnemonic: mnemonic },
},
bsc: {
url: "https://bsc-dataseed.binance.org/",
chainId: 56,
accounts: { mnemonic: mnemonic },
},
matic: {
chainId: 137,
url: 'https://rpc-mainnet.matic.network',
accounts: { mnemonic: mnemonic },
},
mumbai: {
chainId: 80001,
url: "https://rpc-mumbai.maticvigil.com",
accounts: { mnemonic: mnemonic }
}
},
solidity: '0.7.3',
settings: {
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ async function main() {

// We get the contract to deploy
const Hodl = await ethers.getContractFactory("HodlERC20");
const hodlLogic = await Hodl.deploy({gasPrice: 6000000000}); // 6 gwei
const hodlLogic = await Hodl.deploy();

await hodlLogic.deployed();

console.log("🥙 Hodl logic contract deployed at:", hodlLogic.address);

const HodlFactory = await ethers.getContractFactory("HodlFactory");
const factory = await HodlFactory.deploy(hodlLogic.address, {gasPrice: 6000000000});
const factory = await HodlFactory.deploy(hodlLogic.address);

await factory.deployed();

Expand Down

0 comments on commit 8964405

Please sign in to comment.