=== fp-0.1.4 === >>> curl -sSLf https://scarbs.xyz/api/v1/dl/fp/0.1.4 -o archive-590463897599021056.tar.zstd >>> tar --zstd -xf archive-590463897599021056.tar.zstd --strip-components 1 >>> maat-check-versions [out] Name Version Source Installed [out] nodejs 23.11.0 ASDF_NODEJS_VERSION true [out] scarb dev-2025-06-17 ASDF_SCARB_VERSION true [out] starknet-foundry 0.45.0 ASDF_STARKNET-FOUNDRY_VERSION true >>> maat-patch [err] Installed 1 package in 2ms [out] diff --git a/Scarb.toml b/Scarb.toml [out] index 404089d..7d641ad 100644 [out] --- a/Scarb.toml [out] +++ b/Scarb.toml [out] @@ -26,6 +26,26 @@ keywords = [ [out] license = "MIT-3.0" [out] readme = "README.md" [out] repository = "https://github.com/carbonable-labs/carbon-protocol-v3" [out] +cairo-version = "2.11.4+dev-2025-06-17" # NOTE: added by maat-patch, was: None [out] [out] [dependencies] [out] [out] +[dev-dependencies] [out] +cairo_test = "2.11.4+dev-2025-06-17" # NOTE: added by maat-patch, was: None [out] + [out] +[scripts] [out] +test = "scarb cairo-test" # NOTE: added by maat-patch, was: None [out] + [out] +[tool.scarb] [out] +allow-prebuilt-plugins = ["snforge_std"] # NOTE: maat-patch added 'snforge_std' [out] + [out] +[patch.scarbs-xyz] [out] +assert_macros = "2.11.4+dev-2025-06-17" # NOTE: added by maat-patch, was: None [out] +starknet = "2.11.4+dev-2025-06-17" # NOTE: added by maat-patch, was: None [out] +cairo_test = "2.11.4+dev-2025-06-17" # NOTE: added by maat-patch, was: None [out] +snforge_std = "0.45.0" # NOTE: added by maat-patch, was: None [out] +snforge_scarb_plugin = "0.45.0" # NOTE: added by maat-patch, was: None [out] + [out] +[patch."https://github.com/foundry-rs/starknet-foundry.git"] [out] +snforge_std = "0.45.0" # NOTE: added by maat-patch, was: None [out] +snforge_scarb_plugin = "0.45.0" # NOTE: added by maat-patch, was: None >>> scarb fetch [out] warn: patch `cairo_test` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `starknet` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `assert_macros` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used >>> scarb tree -q --workspace [out] fp v0.1.4 (/mnt/maat-workbench/Scarb.toml) [out] └── [dev-dependencies] [out] └── cairo_test v2.11.4 (std) >>> SCARB_IGNORE_CAIRO_VERSION=true scarb build --workspace --test [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `assert_macros` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `starknet` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `cairo_test` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] Compiling test(fp_unittest) fp v0.1.4 (/mnt/maat-workbench/Scarb.toml) [out] Finished `dev` profile target(s) in 4 seconds >>> SCARB_IGNORE_CAIRO_VERSION=true scarb lint --workspace --deny-warnings [out] error: scarb was not compiled with the `lint` command enabled [out] [out] Stack backtrace: [out] 0: anyhow::kind::Adhoc::new [out] 1: scarb::commands::lint::do_lint [out] 2: scarb::commands::run [out] 3: scarb::main [out] 4: std::sys::backtrace::__rust_begin_short_backtrace [out] 5: main [out] 6: __libc_start_call_main [out] 7: __libc_start_main_impl [out] 8: _start Process finished with exit code 1 >>> SCARB_IGNORE_CAIRO_VERSION=true SNFORGE_FUZZER_SEED=1 SNFORGE_IGNORE_FORK_TESTS=1 scarb test --workspace [out] Running test fp (scarb cairo-test) [out] warn: patch `cairo_test` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `assert_macros` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `starknet` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] warn: patch `snforge_std` (`registry+https://scarbs.xyz/`) for source `https://scarbs.xyz/` has not been used [out] warn: patch `snforge_scarb_plugin` (`registry+https://scarbs.xyz/`) for source `https://github.com/foundry-rs/starknet-foundry` has not been used [out] Compiling test(fp_unittest) fp v0.1.4 (/mnt/maat-workbench/Scarb.toml) [out] Finished `dev` profile target(s) in 4 seconds [out] Testing fp [out] running 14 tests [out] test fp::fp_test::test_fp_value_mapping ... ok (gas usage est.: 13630) [out] test fp::fp_test::test_multiplication_overflow ... ok (gas usage est.: 20360) [out] test fp::fp_test::test_add ... ok (gas usage est.: 1500) [out] test fp::fp_test::test_substraction ... ok (gas usage est.: 30390) [out] test fp::fp_test::test_mul ... ok (gas usage est.: 63810) [out] test fp::fp_test::test_u256_conversion ... ok (gas usage est.: 300) [out] test fp::fp_test::test_division ... ok (gas usage est.: 374580) [out] test fp::fp_test::test_division_and_multiplication_by ... ok (gas usage est.: 303700) [out] test fp::fp_test::test_division_by_zero ... ok (gas usage est.: 103030) [out] test fp::fp_test::test_division_overflow ... ok (gas usage est.: 33380) [out] test fp::fp_test::test_shramee_reported_felt_issue ... ok (gas usage est.: 1200) [out] test fp::fp_test::test_division_by_fixed_point_and_rounding ... ok (gas usage est.: 701030) [out] test fp::fp_test::test_should_work_fine_with_zeroes ... ok (gas usage est.: 64870) [out] test fp::fp_test::test_shramee_reported_felt_issue_fix ... ok (gas usage est.: 1200) [out] test result: ok. 14 passed; 0 failed; 0 ignored; 0 filtered out; >>> SCARB_IGNORE_CAIRO_VERSION=true maat-test-ls [err] 0.003871829s WARN cairo_language_server::config: client does not support `workspace/configuration` requests, config will not be reloaded [out] Opening file:///mnt/maat-workbench/src/lib.cairo [out] [out] ============================== [out] Analysis completed, server is idle. [out] [out] ============================== [out] # Analyzed Crates [out] --- [out] ```json [out] { [out] "name": "core", [out] "source_paths": [ [out] "/mnt/maat-cache/scarb/registry/std/7ff977b30/core/src/lib.cairo" [out] ], [out] "settings": { [out] "name": "core", [out] "edition": "2024_07", [out] "version": "2.11.4", [out] "cfg_set": [ [out] [ [out] "target", [out] "lib" [out] ], [out] [ [out] "target", [out] "test" [out] ] [out] ], [out] "dependencies": { [out] "core": { [out] "discriminator": null [out] } [out] }, [out] "experimental_features": { [out] "negative_impls": true, [out] "associated_item_constraints": true, [out] "coupons": true, [out] "user_defined_inline_macros": false [out] } [out] }, [out] "linter_configuration": {}, [out] "plugins": { [out] "builtin_plugins": [ [out] "Executable", [out] "CairoTest" [out] ] [out] } [out] } [out] [out] { [out] "name": "fp", [out] "source_paths": [ [out] "/mnt/maat-workbench/src/lib.cairo" [out] ], [out] "settings": { [out] "name": "fp", [out] "edition": "2024_07", [out] "version": "0.1.4", [out] "cfg_set": [ [out] [ [out] "target", [out] "lib" [out] ], [out] [ [out] "target", [out] "test" [out] ], [out] "test" [out] ], [out] "dependencies": { [out] "core": { [out] "discriminator": null [out] }, [out] "fp": { [out] "discriminator": "fp 0.1.4 (path+file:///mnt/maat-workbench/Scarb.toml)" [out] } [out] }, [out] "experimental_features": { [out] "negative_impls": false, [out] "associated_item_constraints": false, [out] "coupons": false, [out] "user_defined_inline_macros": false [out] } [out] }, [out] "linter_configuration": {}, [out] "plugins": { [out] "builtin_plugins": [ [out] "CairoTest" [out] ] [out] } [out] } [out] ``` [out] [out] ============================== [out] file:///mnt/maat-workbench/src/fp_test.cairo (2) [out] (W) Plugin diagnostic: Subtraction with identical operands, this operation always results in zero and may indicate a logic error [Ln 214, Col 14] [out] (W) Plugin diagnostic: Subtraction with identical operands, this operation always results in zero and may indicate a logic error [Ln 217, Col 14] [out] total: 0 errors, 2 warnings, 0 infos, 0 hints [out] [out] ============================== [out] CairoLS process exited with code: 0