From 592bfdaa6c3cf8cbdcb2be51d9bf1b5824d0658c Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Wed, 5 Nov 2025 20:47:12 -0600 Subject: [PATCH 1/9] fix: recognize clarity version 4 --- src/stacks_tx/deserialize.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stacks_tx/deserialize.rs b/src/stacks_tx/deserialize.rs index e1815d2..0a6483d 100644 --- a/src/stacks_tx/deserialize.rs +++ b/src/stacks_tx/deserialize.rs @@ -332,6 +332,7 @@ impl ClarityVersion { x if x == ClarityVersion::Clarity1 as u8 => Some(ClarityVersion::Clarity1), x if x == ClarityVersion::Clarity2 as u8 => Some(ClarityVersion::Clarity2), x if x == ClarityVersion::Clarity3 as u8 => Some(ClarityVersion::Clarity3), + x if x == ClarityVersion::Clarity4 as u8 => Some(ClarityVersion::Clarity4), _ => None, } } @@ -681,6 +682,7 @@ pub enum ClarityVersion { Clarity1 = 1, Clarity2 = 2, Clarity3 = 3, + Clarity4 = 4, } #[repr(u8)] From 83a1cc8beaca361b3869ea01c3d3079825f6387a Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Wed, 5 Nov 2025 20:48:32 -0600 Subject: [PATCH 2/9] ci: update upload v4 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d1006c..5294abb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: run: npm i - name: Build run: npm run build:cargo - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: linux-x64-musl path: native/linux-x64-musl.node From 03e1a443c92d92e34e23f4b5c550b3fb6bceab67 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Wed, 5 Nov 2025 20:49:15 -0600 Subject: [PATCH 3/9] ci: update all --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5294abb..6b66c69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,7 @@ jobs: run: npm i - name: Build run: npm run build:cargo - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: linux-arm64-musl path: native/linux-arm64-musl.node @@ -107,7 +107,7 @@ jobs: run: npm i - name: Build run: npm run build:cargo - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: linux-x64-glibc path: native/linux-x64-glibc.node @@ -141,7 +141,7 @@ jobs: run: npm i - name: Build run: npm run build:cargo - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: linux-arm64-glibc path: native/linux-arm64-glibc.node @@ -162,7 +162,7 @@ jobs: run: npm i - name: Build run: npm run build:cargo - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: win32-x64 path: native/win32-x64.node @@ -184,7 +184,7 @@ jobs: run: npm i - name: Build run: npm run build:cargo - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: darwin-x64 path: native/darwin-x64.node @@ -210,7 +210,7 @@ jobs: run: npm i - name: Build run: npm run build:cargo - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: darwin-arm64 path: native/darwin-arm64.node @@ -391,7 +391,7 @@ jobs: run: | npm pack mv "stacks-encoding-native-js-$NPM_PACKAGE_VERSION.tgz" "stacks-encoding-native-js.tgz" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: stacks-encoding-native-js.tgz path: stacks-encoding-native-js.tgz From cd57364f215bd6e5ad1bc355efa7b51ab45f16b4 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Wed, 5 Nov 2025 20:53:42 -0600 Subject: [PATCH 4/9] fix: download artifact --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b66c69..1084123 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -222,7 +222,7 @@ jobs: - build_linux-arm64-glibc steps: - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: linux-arm64-glibc path: native @@ -249,7 +249,7 @@ jobs: - build_linux-arm64-musl steps: - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: linux-arm64-musl path: native @@ -276,7 +276,7 @@ jobs: - build_linux-x64-glibc steps: - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: linux-x64-glibc path: native @@ -298,7 +298,7 @@ jobs: - build_linux-x64-musl steps: - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: linux-x64-musl path: native @@ -318,7 +318,7 @@ jobs: - build_win-x64 steps: - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: win32-x64 path: native @@ -339,7 +339,7 @@ jobs: - build_darwin-x64 steps: - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: darwin-x64 path: native @@ -372,7 +372,7 @@ jobs: node-version: '16' registry-url: https://registry.npmjs.org always-auth: true - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: path: native - name: Position downloaded artifacts From 3a65aa2eb4206ff287b8b7bef832c3c80b83df48 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Wed, 5 Nov 2025 20:58:28 -0600 Subject: [PATCH 5/9] fix: ubuntu latest --- .github/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1084123..37b5201 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ on: jobs: cancel-previous-runs: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.11.0 @@ -21,7 +21,7 @@ jobs: access_token: ${{ github.token }} build_linux-x64-musl: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable @@ -56,7 +56,7 @@ jobs: if-no-files-found: error build_linux-arm64-musl: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable @@ -91,7 +91,7 @@ jobs: if-no-files-found: error build_linux-x64-glibc: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest container: image: rust:buster steps: @@ -114,7 +114,7 @@ jobs: if-no-files-found: error build_linux-arm64-glibc: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest container: image: rust:buster steps: @@ -217,7 +217,7 @@ jobs: if-no-files-found: error test_linux-arm64-glibc: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest needs: - build_linux-arm64-glibc steps: @@ -244,7 +244,7 @@ jobs: npm run test:js test_linux-arm64-musl: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest needs: - build_linux-arm64-musl steps: @@ -269,7 +269,7 @@ jobs: npm run test:js test_linux-x64-glibc: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest container: image: node:16-bullseye needs: @@ -291,7 +291,7 @@ jobs: run: npm i && npm test test_linux-x64-musl: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest container: image: node:16-alpine needs: @@ -354,7 +354,7 @@ jobs: run: npm i && npm test npm-package: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest needs: - build_linux-x64-musl - build_linux-arm64-musl From 7510f39c27671b2851b150c1f82c653b26fe0b87 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Wed, 5 Nov 2025 21:03:17 -0600 Subject: [PATCH 6/9] fix: links --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37b5201..030800c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: node-version: '16' - uses: Swatinem/rust-cache@v2 - name: Download x86_64-linux-musl-cross toolchain - run: curl -O -C - https://musl.cc/x86_64-linux-musl-cross.tgz + run: curl -O -C - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/x86_64-linux-musl-cross.tgz - name: Install x86_64-linux-musl-cross toolchain run: tar xf x86_64-linux-musl-cross.tgz - name: Configure linux-x64-musl cross compile @@ -67,7 +67,7 @@ jobs: node-version: '16' - uses: Swatinem/rust-cache@v2 - name: Download aarch64-linux-musl-cross toolchain - run: curl -O -C - https://musl.cc/aarch64-linux-musl-cross.tgz + run: curl -O -C - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/aarch64-linux-musl-cross.tgz - name: Install aarch64-linux-musl-cross toolchain run: tar xf aarch64-linux-musl-cross.tgz - name: Configure linux-arm64-musl cross compile From 3012020500be4b5ac8642fb93f15a35834f442ba Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Wed, 5 Nov 2025 21:04:44 -0600 Subject: [PATCH 7/9] fix: redirect --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 030800c..dd630e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: node-version: '16' - uses: Swatinem/rust-cache@v2 - name: Download x86_64-linux-musl-cross toolchain - run: curl -O -C - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/x86_64-linux-musl-cross.tgz + run: curl -O -C -L - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/x86_64-linux-musl-cross.tgz - name: Install x86_64-linux-musl-cross toolchain run: tar xf x86_64-linux-musl-cross.tgz - name: Configure linux-x64-musl cross compile @@ -67,7 +67,7 @@ jobs: node-version: '16' - uses: Swatinem/rust-cache@v2 - name: Download aarch64-linux-musl-cross toolchain - run: curl -O -C - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/aarch64-linux-musl-cross.tgz + run: curl -O -C -L - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/aarch64-linux-musl-cross.tgz - name: Install aarch64-linux-musl-cross toolchain run: tar xf aarch64-linux-musl-cross.tgz - name: Configure linux-arm64-musl cross compile From 2d636a25203f522e6f665219bd08bbc691225f29 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Wed, 5 Nov 2025 21:06:15 -0600 Subject: [PATCH 8/9] fix: thing --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd630e1..1861323 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: node-version: '16' - uses: Swatinem/rust-cache@v2 - name: Download x86_64-linux-musl-cross toolchain - run: curl -O -C -L - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/x86_64-linux-musl-cross.tgz + run: curl -O -L -C - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/x86_64-linux-musl-cross.tgz - name: Install x86_64-linux-musl-cross toolchain run: tar xf x86_64-linux-musl-cross.tgz - name: Configure linux-x64-musl cross compile @@ -67,7 +67,7 @@ jobs: node-version: '16' - uses: Swatinem/rust-cache@v2 - name: Download aarch64-linux-musl-cross toolchain - run: curl -O -C -L - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/aarch64-linux-musl-cross.tgz + run: curl -O -L -C - https://github.com/musl-cc/musl.cc/releases/download/v0.0.1/aarch64-linux-musl-cross.tgz - name: Install aarch64-linux-musl-cross toolchain run: tar xf aarch64-linux-musl-cross.tgz - name: Configure linux-arm64-musl cross compile From 9ec0685a6c437011eb9aa290dc7885301f670391 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Wed, 5 Nov 2025 21:07:53 -0600 Subject: [PATCH 9/9] fix: disable arm64 dep --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1861323..201b9ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -359,7 +359,7 @@ jobs: - build_linux-x64-musl - build_linux-arm64-musl - build_linux-x64-glibc - - build_linux-arm64-glibc + # - build_linux-arm64-glibc - build_win-x64 - build_darwin-arm64 env: