Skip to content

Commit

Permalink
chore(eth): add eth config
Browse files Browse the repository at this point in the history
  • Loading branch information
gianchandania committed Oct 5, 2023
1 parent d62883d commit 7fd3cdb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
result-encoding: string
script: |
const tag = process.env.GITHUB_REF_NAME;
const regex = /v.*\-(eth|gteth|matic|tmatic|bsc|tbsc)$/;
const regex = /v.*\-(eth|hteth|matic|tmatic|bsc|tbsc)$/;
const network = tag.match(regex);
return network ? network[1] : "gteth";
return network ? network[1] : "hteth";
deploy-to-test:
runs-on: ubuntu-latest
needs: [lint-and-test, get-network]
if: ${{ (needs.get-network.outputs.network == 'gteth' ) || (needs.get-network.outputs.network == 'tmatic' ) || (needs.get-network.outputs.network == 'tbsc' ) }}
if: ${{ (needs.get-network.outputs.network == 'hteth' ) || (needs.get-network.outputs.network == 'tmatic' ) || (needs.get-network.outputs.network == 'tbsc' ) }}
environment: testnet
steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 5 additions & 4 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import 'solidity-coverage';

const {
PRIVATE_KEY,
ALCHEMY_ETHER_API_KEY,
QUICKNODE_ETH_MAINNET_API_KEY,
QUICKNODE_ETH_HOLESKY_API_KEY,
ETHERSCAN_API_KEY,
ALCHEMY_POLYGON_API_KEY,
POLYGONSCAN_API_KEY,
Expand Down Expand Up @@ -41,11 +42,11 @@ const config: HardhatUserConfig = {
loggingEnabled: false
},
eth: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ETHER_API_KEY}`,
url: `https://ultra-empty-sanctuary.quiknode.pro/${QUICKNODE_ETH_MAINNET_API_KEY}`,
accounts: [`${PRIVATE_KEY}`]
},
gteth: {
url: `https://eth-goerli.alchemyapi.io/v2/${ALCHEMY_ETHER_API_KEY}`,
hteth: {
url: `https://boldest-cosmological-mountain.ethereum-holesky.quiknode.pro/${QUICKNODE_ETH_HOLESKY_API_KEY}`,
accounts: [`${PRIVATE_KEY}`]
},
matic: {
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main() {
// https://chainlist.org/
//eth
case 1:
//gteth
//hteth
case 5:
walletImplementationContractName = 'WalletSimple';
break;
Expand Down

0 comments on commit 7fd3cdb

Please sign in to comment.