From 0933ce81a44d07ffae76cc03b81cc39383ebf35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaya=20G=C3=B6kalp?= Date: Mon, 14 Oct 2024 23:05:26 -0700 Subject: [PATCH] chore: update fuel-core version to 0.40.0 (#1532) updated fuel-core to 0.40.0 --- .github/workflows/ci.yml | 22 +++++++++---------- Cargo.toml | 12 +++++----- .../provider/supported_fuel_core_version.rs | 2 +- packages/fuels-test-helpers/src/service.rs | 3 +++ 4 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe58a33f8..c3b869082 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ env: CARGO_TERM_COLOR: always DASEL_VERSION: https://github.com/TomWright/dasel/releases/download/v2.3.6/dasel_linux_amd64 RUSTFLAGS: "-D warnings" - FUEL_CORE_VERSION: 0.39.0 + FUEL_CORE_VERSION: 0.40.0 FUEL_CORE_PATCH_BRANCH: "" FUEL_CORE_PATCH_REVISION: "" RUST_VERSION: 1.79.0 @@ -28,7 +28,7 @@ env: jobs: setup-test-projects: - runs-on: ubuntu-latest + runs-on: buildjet-4vcpu-ubuntu-2204 steps: - uses: actions/checkout@v3 - name: Install toolchain @@ -37,7 +37,7 @@ jobs: toolchain: ${{ env.RUST_VERSION }} # selecting a toolchain either by action or manual `rustup` calls should happen # before the cache plugin, as it uses the current rustc version as its cache key - - uses: Swatinem/rust-cache@v2.7.3 + - uses: buildjet/cache@v3 with: prefix-key: "v1-rust" @@ -73,7 +73,7 @@ jobs: e2e/sway/**/out/* get-workspace-members: - runs-on: ubuntu-latest + runs-on: buildjet-4vcpu-ubuntu-2204 outputs: members: ${{ steps.set-members.outputs.members }} steps: @@ -88,7 +88,7 @@ jobs: echo "members=$members" >> $GITHUB_OUTPUT verify-rust-version: - runs-on: ubuntu-latest + runs-on: buildjet-4vcpu-ubuntu-2204 steps: - uses: actions/checkout@v3 # Ensure CI is using the same minimum toolchain specified in fuels Cargo.toml @@ -103,7 +103,7 @@ jobs: # Fetch Fuel Core and upload as artifact, useful when we build the core from a # revision so that we can repeat flaky tests without rebuilding the core. fetch-fuel-core: - runs-on: ubuntu-latest + runs-on: buildjet-4vcpu-ubuntu-2204 steps: - uses: dtolnay/rust-toolchain@master with: @@ -112,7 +112,7 @@ jobs: # selecting a toolchain either by action or manual `rustup` calls should happen # before the cache plugin, as it uses the current rustc version as its cache key - - uses: Swatinem/rust-cache@v2.7.3 + - uses: buildjet/cache@v3 continue-on-error: true with: key: "fuel-core-build" @@ -138,7 +138,7 @@ jobs: # Ensure workspace is publishable publish-crates-check: - runs-on: ubuntu-latest + runs-on: buildjet-4vcpu-ubuntu-2204 steps: - name: Checkout repository uses: actions/checkout@v3 @@ -161,7 +161,7 @@ jobs: - get-workspace-members - publish-crates-check - fetch-fuel-core - runs-on: ubuntu-latest + runs-on: buildjet-4vcpu-ubuntu-2204 strategy: matrix: cargo_command: [check] @@ -208,7 +208,7 @@ jobs: # selecting a toolchain either by action or manual `rustup` calls should happen # before the cache plugin, as it uses the current rustc version as its cache key - - uses: Swatinem/rust-cache@v2.7.3 + - uses: buildjet/cache@v3 continue-on-error: true with: key: "${{ matrix.cargo_command }} ${{ matrix.args }} ${{ matrix.package }}" @@ -284,7 +284,7 @@ jobs: - publish-crates-check # Only do this job if publishing a release if: github.event_name == 'release' && github.event.action == 'published' - runs-on: ubuntu-latest + runs-on: buildjet-4vcpu-ubuntu-2204 steps: - name: Checkout repository diff --git a/Cargo.toml b/Cargo.toml index a507c97ec..139ecc820 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -86,14 +86,14 @@ octocrab = { version = "0.39", default-features = false } dotenv = { version = "0.15", default-features = false } # Dependencies from the `fuel-core` repository: -fuel-core = { version = "0.39.0", default-features = false, features = [ +fuel-core = { version = "0.40.0", default-features = false, features = [ "wasm-executor", ] } -fuel-core-chain-config = { version = "0.39.0", default-features = false } -fuel-core-client = { version = "0.39.0", default-features = false } -fuel-core-poa = { version = "0.39.0", default-features = false } -fuel-core-services = { version = "0.39.0", default-features = false } -fuel-core-types = { version = "0.39.0", default-features = false } +fuel-core-chain-config = { version = "0.40.0", default-features = false } +fuel-core-client = { version = "0.40.0", default-features = false } +fuel-core-poa = { version = "0.40.0", default-features = false } +fuel-core-services = { version = "0.40.0", default-features = false } +fuel-core-types = { version = "0.40.0", default-features = false } # Dependencies from the `fuel-vm` repository: fuel-asm = { version = "0.58.0" } diff --git a/packages/fuels-accounts/src/provider/supported_fuel_core_version.rs b/packages/fuels-accounts/src/provider/supported_fuel_core_version.rs index c047bcf89..6a370d046 100644 --- a/packages/fuels-accounts/src/provider/supported_fuel_core_version.rs +++ b/packages/fuels-accounts/src/provider/supported_fuel_core_version.rs @@ -1 +1 @@ -pub const SUPPORTED_FUEL_CORE_VERSION: semver::Version = semver::Version::new(0, 39, 0); +pub const SUPPORTED_FUEL_CORE_VERSION: semver::Version = semver::Version::new(0, 40, 0); diff --git a/packages/fuels-test-helpers/src/service.rs b/packages/fuels-test-helpers/src/service.rs index 9fc6f1430..d37621fa4 100644 --- a/packages/fuels-test-helpers/src/service.rs +++ b/packages/fuels-test-helpers/src/service.rs @@ -99,6 +99,9 @@ impl FuelService { request_body_bytes_limit: 16 * 1024 * 1024, query_log_threshold_time: Duration::from_secs(2), api_request_timeout: Duration::from_secs(60), + database_batch_size: 100, + costs: Default::default(), + number_of_threads: 2, }, combined_db_config, snapshot_reader,