From ebbf22fad1cf28ba502f86e2dd0bea20313ca205 Mon Sep 17 00:00:00 2001 From: Otaiki1 Date: Tue, 12 Aug 2025 20:09:09 +0100 Subject: [PATCH] fix: cairo versions --- .github/README.md | 8 ++++++++ .github/workflows/deploy.yml | 4 ++-- .github/workflows/selective-ci.yml | 4 ++-- contracts/.tool-versions | 4 ++-- contracts/Scarb.toml | 6 +++--- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/README.md b/.github/README.md index f634e00..cce2065 100644 --- a/.github/README.md +++ b/.github/README.md @@ -69,6 +69,14 @@ For contract deployment, set these secrets in your repository: - `STARKNET_PRIVATE_KEY` - Your Starknet private key - `STARKNET_RPC_URL` - Starknet RPC endpoint +### Current Versions + +The CI/CD system uses these versions: +- **Cairo**: 2.12.0 +- **Scarb**: 0.12.0 +- **Starknet Foundry**: 0.48.0 +- **snforge_std**: 0.48.0 + ### Customization To add new folders or modify processes: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4792f5a..e319b72 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -107,9 +107,9 @@ jobs: - name: Setup Cairo uses: starknet-edu/setup-cairo@v1 with: - cairo-version: "2.8.5" + cairo-version: "2.12.0" scarb-version: "0.12.0" - starknet-foundry-version: "0.34.0" + starknet-foundry-version: "0.48.0" - name: Build contracts run: | diff --git a/.github/workflows/selective-ci.yml b/.github/workflows/selective-ci.yml index 6d17088..774f31a 100644 --- a/.github/workflows/selective-ci.yml +++ b/.github/workflows/selective-ci.yml @@ -82,9 +82,9 @@ jobs: - name: Setup Cairo uses: starknet-edu/setup-cairo@v1 with: - cairo-version: "2.8.5" + cairo-version: "2.12.0" scarb-version: "0.12.0" - starknet-foundry-version: "0.34.0" + starknet-foundry-version: "0.48.0" - name: Build contracts run: | diff --git a/contracts/.tool-versions b/contracts/.tool-versions index 54caeac..020c454 100644 --- a/contracts/.tool-versions +++ b/contracts/.tool-versions @@ -1,2 +1,2 @@ -scarb 2.8.5 -starknet-foundry 0.31.0 \ No newline at end of file +scarb 0.12.0 +starknet-foundry 0.48.0 \ No newline at end of file diff --git a/contracts/Scarb.toml b/contracts/Scarb.toml index 93686bb..f6aac9a 100644 --- a/contracts/Scarb.toml +++ b/contracts/Scarb.toml @@ -6,12 +6,12 @@ edition = "2024_07" # See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html [dependencies] -starknet = "2.8.5" +starknet = "2.12.0" openzeppelin = "0.15.1" [dev-dependencies] -snforge_std = "0.34.0" -assert_macros = "2.8.2" +snforge_std = "0.48.0" +assert_macros = "2.12.0" [[target.starknet-contract]] sierra = true