Skip to content

Commit

Permalink
chore: add polycli command installation to ci
Browse files Browse the repository at this point in the history
Signed-off-by: Ji Hwan <[email protected]>
  • Loading branch information
jhkimqd committed Jan 16, 2025
1 parent bd8b0d8 commit 7264a17
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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 \
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7264a17

Please sign in to comment.