From 7264a17952f304c6f4713db2c615df56de863b2d Mon Sep 17 00:00:00 2001 From: Ji Hwan Date: Thu, 16 Jan 2025 13:47:44 +0900 Subject: [PATCH] chore: add polycli command installation to ci Signed-off-by: Ji Hwan --- .github/workflows/deploy.yml | 18 ++++++++++++++---- .github/workflows/docker-image-builder.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index efbc997c0..34650c72d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,6 +14,7 @@ concurrency: cancel-in-progress: true env: + POLYCLI_VERSION: v0.1.67 # https://github.com/0xPolygon/polygon-cli/releases/ ENCLAVE_NAME: cdk jobs: @@ -406,6 +407,15 @@ jobs: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Install polycli + run: | + tmp_dir=$(mktemp -d) + curl -L "https://github.com/0xPolygon/polygon-cli/releases/download/${{ env.POLYCLI_VERSION }}/polycli_${{ env.POLYCLI_VERSION }}_linux_amd64.tar.gz" | tar -xz -C "$tmp_dir" + mv "$tmp_dir"/* /usr/local/bin/polycli + rm -rf "$tmp_dir" + sudo chmod +x /usr/local/bin/polycli + /usr/local/bin/polycli version + - name: Install Kurtosis CDK tools uses: ./.github/actions/setup-kurtosis-cdk @@ -484,7 +494,7 @@ jobs: polycli ulxly bridge asset \ --private-key 12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625 \ --value 1000000000000000000 \ - --rpc-url $originNetworkURL \ + --rpc-url http://$originNetworkURL \ --bridge-address 0xd8886e9D827218a02B8C04323b5550f2F36BC8d5 \ --destination-network 3 \ --force-update-root=true \ @@ -504,9 +514,9 @@ jobs: polycli ulxly claim asset \ --bridge-address 0xd8886e9D827218a02B8C04323b5550f2F36BC8d5 \ --private-key 12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625 \ - --deposit-count 0 \ + --deposit-count 3 \ --destination-address 0xE34aaF64b29273B7D567FCFc40544c014EEe9970 \ - --deposit-network 3 \ + --deposit-network 0 \ --rpc-url $destNetworkURL \ --bridge-service-url $bridgeURL if [[ $ret_code -eq 0 ]]; then @@ -550,7 +560,7 @@ jobs: --private-key 12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625 \ --deposit-count 0 \ --destination-address 0xE34aaF64b29273B7D567FCFc40544c014EEe9970 \ - --deposit-network 1 \ + --deposit-network 3 \ --rpc-url $destNetworkURL \ --bridge-service-url $bridgeURL if [[ $ret_code -eq 0 ]]; then diff --git a/.github/workflows/docker-image-builder.yml b/.github/workflows/docker-image-builder.yml index 856d56822..aed443a47 100644 --- a/.github/workflows/docker-image-builder.yml +++ b/.github/workflows/docker-image-builder.yml @@ -14,7 +14,7 @@ on: env: IMAGE_NAME: leovct/zkevm-contracts - POLYCLI_VERSION: v0.1.67 # https://github.com/0xPolygon/polygon-cli/releases/tag/v0.1.64 - 2024-11-25 + POLYCLI_VERSION: v0.1.67 # https://github.com/0xPolygon/polygon-cli/releases/ FOUNDRY_VERSION: nightly-27cabbd6c905b1273a5ed3ba7c10acce90833d76 # https://github.com/foundry-rs/foundry/releases/tag/nightly-27cabbd6c905b1273a5ed3ba7c10acce90833d76 - 2024-11-29 jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7a82f0d40..867fd2843 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ concurrency: cancel-in-progress: true env: - POLYCLI_VERSION: v0.1.67 # 2024-12-16 + POLYCLI_VERSION: v0.1.67 # https://github.com/0xPolygon/polygon-cli/releases/ CDK_VERSION: v0.5.0-beta10 # 2024-12-10 jobs: