Skip to content

Commit

Permalink
chore(eth-multisig-v4): add bera config
Browse files Browse the repository at this point in the history
Ticket: WIN-3295
  • Loading branch information
adarsh312 committed Aug 14, 2024
1 parent e9c9080 commit 388c424
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/deploy_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
OPTIMISTIC_ETHERSCAN_API_KEY: ${{ secrets.OPTIMISTIC_ETHERSCAN_API_KEY }}
ZKSYNC_EXPLORER_API_KEY: ${{ secrets.ZKSYNC_EXPLORER_API_KEY }}
BASESCAN_API_KEY: ${{ secrets.BASESCAN_API_KEY }}
BARTIO_BERA_EXPLORER_API_KEY: ${{ secrets.BARTIO_BERA_EXPLORER_API_KEY }}
get-network:
runs-on: ubuntu-latest
needs: [lint-and-test]
Expand All @@ -56,7 +57,11 @@ jobs:
deploy-to-test:
runs-on: ubuntu-latest
needs: [lint-and-test, get-network]
<<<<<<< HEAD
if: ${{ (needs.get-network.outputs.network == 'hteth' ) || (needs.get-network.outputs.network == 'tmatic' ) || (needs.get-network.outputs.network == 'tbsc' ) || (needs.get-network.outputs.network == 'tarbeth' ) || (needs.get-network.outputs.network == 'topeth' ) || (needs.get-network.outputs.network == 'tzketh' ) || (needs.get-network.outputs.network == 'tbaseeth' )}}
=======
if: ${{ (needs.get-network.outputs.network == 'hteth' ) || (needs.get-network.outputs.network == 'tmatic' ) || (needs.get-network.outputs.network == 'tbsc' ) || (needs.get-network.outputs.network == 'tarbeth' ) || (needs.get-network.outputs.network == 'topeth' ) || (needs.get-network.outputs.network == 'tzketh' ) || (needs.get-network.outputs.network == 'tbera' ) }}
>>>>>>> 5b256f8 (chore(eth-multisig-v4): add bera config)
environment: testnet
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -84,7 +89,11 @@ jobs:
ARBISCAN_API_KEY: ${{ secrets.ARBISCAN_API_KEY }}
OPTIMISTIC_ETHERSCAN_API_KEY: ${{ secrets.OPTIMISTIC_ETHERSCAN_API_KEY }}
ZKSYNC_EXPLORER_API_KEY: ${{ secrets.ZKSYNC_EXPLORER_API_KEY }}
<<<<<<< HEAD
BASESCAN_API_KEY: ${{ secrets.BASESCAN_API_KEY }}
=======
BARTIO_BERA_EXPLORER_API_KEY: ${{ secrets.BARTIO_BERA_EXPLORER_API_KEY }}
>>>>>>> 5b256f8 (chore(eth-multisig-v4): add bera config)
- name: Update release notes
uses: actions/github-script@v6
with:
Expand Down Expand Up @@ -116,7 +125,11 @@ jobs:
deploy-to-prod:
runs-on: ubuntu-latest
needs: [lint-and-test, get-network]
<<<<<<< HEAD
if: ${{ (needs.get-network.outputs.network == 'eth' ) || (needs.get-network.outputs.network == 'matic' ) || (needs.get-network.outputs.network == 'bsc' ) || (needs.get-network.outputs.network == 'arbeth' ) || (needs.get-network.outputs.network == 'opeth' ) || (needs.get-network.outputs.network == 'zketh' ) || (needs.get-network.outputs.network == 'baseeth' )}}
=======
if: ${{ (needs.get-network.outputs.network == 'eth' ) || (needs.get-network.outputs.network == 'matic' ) || (needs.get-network.outputs.network == 'bsc' ) || (needs.get-network.outputs.network == 'arbeth' ) || (needs.get-network.outputs.network == 'opeth' ) || (needs.get-network.outputs.network == 'zketh' ) || (needs.get-network.outputs.network == 'bera' )}}
>>>>>>> 5b256f8 (chore(eth-multisig-v4): add bera config)
environment: mainnet
steps:
- uses: actions/checkout@v2
Expand All @@ -141,6 +154,7 @@ jobs:
ARBISCAN_API_KEY: ${{ secrets.ARBISCAN_API_KEY }}
OPTIMISTIC_ETHERSCAN_API_KEY: ${{ secrets.OPTIMISTIC_ETHERSCAN_API_KEY }}
ZKSYNC_EXPLORER_API_KEY: ${{ secrets.ZKSYNC_EXPLORER_API_KEY }}
BARTIO_BERA_EXPLORER_API_KEY: ${{ secrets.BARTIO_BERA_EXPLORER_API_KEY }}
QUICKNODE_ARBITRUM_ONE_API_KEY: ${{ secrets.QUICKNODE_ARBITRUM_ONE_API_KEY }}
QUICKNODE_OPTIMISM_API_KEY: ${{ secrets.QUICKNODE_OPTIMISM_API_KEY }}
BASESCAN_API_KEY: ${{ secrets.BASESCAN_API_KEY }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ jobs:
OPTIMISTIC_ETHERSCAN_API_KEY: ${{ secrets.OPTIMISTIC_ETHERSCAN_API_KEY }}
ZKSYNC_EXPLORER_API_KEY: ${{ secrets.ZKSYNC_EXPLORER_API_KEY }}
BASESCAN_API_KEY: ${{ secrets.BASESCAN_API_KEY }}
BARTIO_BERA_EXPLORER_API_KEY: ${{ secrets.BARTIO_BERA_EXPLORER_API_KEY }}
- run: npm run lint
20 changes: 18 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const {
ARBISCAN_API_KEY,
OPTIMISTIC_ETHERSCAN_API_KEY,
ZKSYNC_EXPLORER_API_KEY,
BASESCAN_API_KEY
BASESCAN_API_KEY,
BARTIO_BERA_EXPLORER_API_KEY
} = process.env;

const config: HardhatUserConfig = {
Expand Down Expand Up @@ -130,6 +131,10 @@ const config: HardhatUserConfig = {
baseeth: {
url: 'https://mainnet.base.org/',
accounts: [`${MAINNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
},
tbera: {
url: `https://bartio.rpc.berachain.com/`,
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`]
}
},
gasReporter: {
Expand Down Expand Up @@ -158,7 +163,9 @@ const config: HardhatUserConfig = {
zksyncSepolia: `${ZKSYNC_EXPLORER_API_KEY}`,
// base chain
baseSepolia: `${BASESCAN_API_KEY}`,
base: `${BASESCAN_API_KEY}`
base: `${BASESCAN_API_KEY}`,
// bera
bartioBera: `${BARTIO_BERA_EXPLORER_API_KEY}`
},
customChains: [
{
Expand Down Expand Up @@ -201,6 +208,15 @@ const config: HardhatUserConfig = {
browserURL: 'https://sepolia.explorer.zksync.io'
}
},
{
network: 'bartioBera',
chainId: 80084,
urls: {
apiURL:
'https://api.routescan.io/v2/network/testnet/evm/80084/etherscan/api',
browserURL: 'https://bartio.beratrail.io'
}
},
{
network: 'polygonAmoy',
chainId: 80002,
Expand Down
5 changes: 5 additions & 0 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ async function main() {
forwarderContractName = 'Forwarder';
forwarderFactoryContractName = 'ForwarderFactory';
contractPath = `contracts/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
case 80084:
walletImplementationContractName = 'WalletSimple';
forwarderContractName = 'ForwarderV4';
forwarderFactoryContractName = 'ForwarderFactoryV4';
contractPath = `contracts/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
break;
}

Expand Down

0 comments on commit 388c424

Please sign in to comment.