Skip to content

Commit

Permalink
feat: support exporting sepolia and ethereum deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Nov 16, 2023
1 parent 57bab2f commit ffc235c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 16 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ jobs:
run: |
yarn hardhat export --network bsctestnet --export ./deployments/bsctestnet.json
yarn hardhat export --network bscmainnet --export ./deployments/bscmainnet.json
yarn hardhat export --network sepolia --export ./deployments/sepolia.json
yarn hardhat export --network ethereum --export ./deployments/ethereum.json
yarn prettier
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "feat: updating deployment files"
commit_message: "feat: updating deployment files"
file_pattern: "deployments/*.json"
48 changes: 33 additions & 15 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,24 @@ const config: HardhatUserConfig = {
mnemonic: process.env.MNEMONIC || "",
},
},
sepolia: {
url: process.env.RPC_URL || "https://rpc.notadegen.com/eth/sepolia",
chainId: 11155111,
live: true,
gasPrice: 20000000000, // 20 gwei
accounts: {
mnemonic: process.env.MNEMONIC || "",
},
},
ethereum: {
url: process.env.ETHEREUM_ARCHIVE_NODE_URL || "https://eth-mainnet.public.blastapi.io",
chainId: 1,
live: true,
timeout: 1200000, // 20 minutes
accounts: {
mnemonic: process.env.MNEMONIC || "",
},
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
Expand Down Expand Up @@ -242,22 +260,22 @@ const config: HardhatUserConfig = {
function isFork() {
return process.env.FORK_MAINNET === "true"
? {
allowUnlimitedContractSize: false,
loggingEnabled: false,
forking: {
url: `https://white-ultra-silence.bsc.discover.quiknode.pro/${process.env.QUICK_NODE_KEY}/`,
blockNumber: 21068448,
},
accounts: {
accountsBalance: "1000000000000000000",
},
live: false,
}
allowUnlimitedContractSize: false,
loggingEnabled: false,
forking: {
url: `https://white-ultra-silence.bsc.discover.quiknode.pro/${process.env.QUICK_NODE_KEY}/`,
blockNumber: 21068448,
},
accounts: {
accountsBalance: "1000000000000000000",
},
live: false,
}
: {
allowUnlimitedContractSize: true,
loggingEnabled: false,
live: false,
};
allowUnlimitedContractSize: true,
loggingEnabled: false,
live: false,
};
}

export default config;

0 comments on commit ffc235c

Please sign in to comment.