Skip to content

Commit

Permalink
chore: format by Prettier Move plugin (#109)
Browse files Browse the repository at this point in the history
Co-authored-by: Phuchit Sirimongkhonsathian <[email protected]>
Co-authored-by: Milap Sheth <[email protected]>
  • Loading branch information
3 people authored Aug 30, 2024
1 parent d5bc1e5 commit 26a618f
Show file tree
Hide file tree
Showing 35 changed files with 3,341 additions and 3,076 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-yaks-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@axelar-network/axelar-cgp-sui': minor
---

Formatted move modules with "Prettier Move" plugin to compatible with Sui 1.31.1
23 changes: 9 additions & 14 deletions .github/actions/install/action.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Install Dependencies
description: 'Setup Sui CLI and install dependencies'

inputs:
SUI_VERSION:
description: 'The version of Sui CLI to install'
required: true

runs:
using: 'composite'

steps:
- name: Debug Action Input
- name: Get Sui Version
shell: bash
run: echo "SUI_VERSION=${{ inputs.SUI_VERSION }}"
run: |
SUI_VERSION=$(jq -r '.SUI_VERSION' version.json)
echo "SUI_VERSION=$SUI_VERSION" >> $GITHUB_ENV
- name: Install Dependencies
shell: bash
Expand All @@ -25,34 +22,32 @@ runs:
uses: actions/cache@v4
with:
path: sui-binaries/
key: sui-${{ inputs.SUI_VERSION }}
key: sui-${{ env.SUI_VERSION }}

- name: Download and Install Sui
shell: bash
if: steps.cache-sui.outputs.cache-hit != 'true'
run: |
curl -L -o sui-${{ inputs.SUI_VERSION }}-ubuntu-x86_64.tgz https://github.com/MystenLabs/sui/releases/download/${{ inputs.SUI_VERSION }}/sui-${{ inputs.SUI_VERSION }}-ubuntu-x86_64.tgz
tar -xvf sui-${{ inputs.SUI_VERSION }}-ubuntu-x86_64.tgz
curl -L -o sui-${{ env.SUI_VERSION }}-ubuntu-x86_64.tgz https://github.com/MystenLabs/sui/releases/download/${{ env.SUI_VERSION }}/sui-${{ env.SUI_VERSION }}-ubuntu-x86_64.tgz
tar -xvf sui-${{ env.SUI_VERSION }}-ubuntu-x86_64.tgz
mkdir -p sui-binaries
mv ./sui ./sui-binaries/
mv ./sui-debug ./sui-binaries/
mv ./sui-test-validator ./sui-binaries/
rm -rf sui-${{ inputs.SUI_VERSION }}-ubuntu-x86_64.tgz
rm -rf sui-${{ env.SUI_VERSION }}-ubuntu-x86_64.tgz
- name: Save Sui binaries
if: steps.cache-sui.outputs.cache-hit != 'true'
id: cache-sui-save
uses: actions/cache@v4
with:
path: sui-binaries/
key: sui-${{ inputs.SUI_VERSION }}
key: sui-${{ env.SUI_VERSION }}

- name: Add Sui binaries to PATH
shell: bash
run: |
sudo cp ./sui-binaries/sui /usr/local/bin/sui
sudo cp ./sui-binaries/sui-debug /usr/local/bin/sui-debug
sudo cp ./sui-binaries/sui-test-validator /usr/local/bin/sui-test-validator
- name: Setup Node
uses: actions/setup-node@v4
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
SUI_VERSION: mainnet-v1.25.3

jobs:
coverage:
runs-on: ubuntu-latest
Expand All @@ -19,8 +16,6 @@ jobs:

- name: Setup Sui CLI and install dependencies
uses: ./.github/actions/install
with:
SUI_VERSION: ${{ env.SUI_VERSION }}

- name: Coverage
run: npm run coverage
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
SUI_VERSION: mainnet-v1.25.3

jobs:
release-pr:
name: Create Release Pull Request
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/publish-to-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
SUI_VERSION: mainnet-v1.25.3

jobs:
publish:
name: Publish to NPM
Expand All @@ -34,8 +31,6 @@ jobs:
- name: Setup Sui CLI and install dependencies
uses: ./.github/actions/install
with:
SUI_VERSION: ${{ env.SUI_VERSION }}

- name: Create GitHub Release
if: steps.check-changeset-files.outputs.has_changeset_files == 'false'
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/release-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
SUI_VERSION: mainnet-v1.25.3

jobs:
release-snapshot:
name: Release Snapshot
Expand All @@ -18,8 +15,6 @@ jobs:

- name: Setup Sui CLI and install dependencies
uses: ./.github/actions/install
with:
SUI_VERSION: ${{ env.SUI_VERSION }}

- name: Build TS and SUI modules
run: npm run build
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test-js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
SUI_VERSION: mainnet-v1.25.3

jobs:
test-js:
runs-on: ubuntu-latest
Expand All @@ -23,14 +20,15 @@ jobs:

- name: Setup Sui CLI and install dependencies
uses: ./.github/actions/install
with:
SUI_VERSION: ${{ env.SUI_VERSION }}

- name: Build TS and Move Modules
run: npm run build

- name: Initialize Sui Config
run: echo -e "y\n\n1" | sui client envs

- name: Run Localnet
run: nohup sh -c "sui-test-validator" > nohup.out 2> nohup.err < /dev/null &
run: nohup sh -c "RUST_LOG="off,sui_node=info" sui start --with-faucet --force-regenesis" > nohup.out 2> nohup.err < /dev/null &

- name: Sleep for 30 seconds
run: sleep 30s
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/test-move.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
SUI_VERSION: mainnet-v1.25.3

jobs:
test-move:
runs-on: ubuntu-latest
Expand All @@ -23,8 +20,6 @@ jobs:

- name: Setup Sui CLI and install dependencies
uses: ./.github/actions/install
with:
SUI_VERSION: ${{ env.SUI_VERSION }}

- name: Build Move Modules
run: npm run build-move
Expand Down
2 changes: 1 addition & 1 deletion move/abi/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ dependencies = [
]

[move.toolchain-version]
compiler-version = "1.26.1"
compiler-version = "1.32.0"
edition = "2024.beta"
flavor = "sui"
Loading

0 comments on commit 26a618f

Please sign in to comment.