diff --git a/.github/workflows/deploy_and_release.yml b/.github/workflows/deploy_and_release.yml index 1216f07..c8664ce 100644 --- a/.github/workflows/deploy_and_release.yml +++ b/.github/workflows/deploy_and_release.yml @@ -35,6 +35,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 }} get-network: runs-on: ubuntu-latest needs: [lint-and-test] @@ -83,6 +84,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 }} - name: Update release notes uses: actions/github-script@v6 with: @@ -114,7 +116,7 @@ jobs: deploy-to-prod: runs-on: ubuntu-latest needs: [lint-and-test, get-network] - 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' ) }} + 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' )}} environment: mainnet steps: - uses: actions/checkout@v2 @@ -139,6 +141,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 }} - name: Update release notes diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 53480fb..9e1d2b6 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -43,4 +43,5 @@ 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 }} - run: npm run lint diff --git a/hardhat.config.ts b/hardhat.config.ts index f6f1042..c5f2429 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -27,7 +27,8 @@ const { BSCSCAN_API_KEY, ARBISCAN_API_KEY, OPTIMISTIC_ETHERSCAN_API_KEY, - ZKSYNC_EXPLORER_API_KEY + ZKSYNC_EXPLORER_API_KEY, + BARTIO_BERA_EXPLORER_API_KEY } = process.env; const config: HardhatUserConfig = { @@ -121,6 +122,10 @@ const config: HardhatUserConfig = { tzketh: { url: `${QUICKNODE_ZKSYNC_SEPOLIA_API_KEY}`, accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`] + }, + tbera: { + url: `${BARTIO_BERA_EXPLORER_API_KEY}`, + accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`] } }, gasReporter: { @@ -146,7 +151,9 @@ const config: HardhatUserConfig = { optimisticSepolia: `${OPTIMISTIC_ETHERSCAN_API_KEY}`, // zksync zksync: `${ZKSYNC_EXPLORER_API_KEY}`, - zksyncSepolia: `${ZKSYNC_EXPLORER_API_KEY}` + zksyncSepolia: `${ZKSYNC_EXPLORER_API_KEY}`, + // bera + bartioBera: `${BARTIO_BERA_EXPLORER_API_KEY}` }, customChains: [ { @@ -189,6 +196,14 @@ const config: HardhatUserConfig = { browserURL: 'https://sepolia.explorer.zksync.io' } }, + { + network: 'berachainbArtio', + chainId: 80084, + urls: { + apiURL: 'https://api.routescan.io/v2/network/testnet/evm/80084/etherscan/api/', + browserURL: 'https://bartio.beratrail.io/' + } + }, { network: 'polygonAmoy', chainId: 80002, diff --git a/scripts/deploy.ts b/scripts/deploy.ts index d38bda3..9a517df 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -79,6 +79,10 @@ async function main() { walletImplementationContractName = 'ZkethWalletSimple'; contractPath = `contracts/coins/${walletImplementationContractName}.sol:${walletImplementationContractName}`; break; + case 80084: + walletImplementationContractName = 'BeraWalletSimple'; + contractPath = `contracts/coins/${walletImplementationContractName}.sol:${walletImplementationContractName}`; + break; } console.log(