Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump cairo version in examples #2563

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
scarb 2.7.0
scarb 2.8.3
2 changes: 1 addition & 1 deletion crates/cheatnet/tests/contracts/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version = "0.1.0"
[[target.starknet-contract]]

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[tool.snforge]
# exit_first = true
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ trait IConstructorCheatBlockNumberChecker<TContractState> {
#[starknet::contract]
mod ConstructorCheatBlockNumberChecker {
use box::BoxTrait;
use starknet::storage::{StoragePointerWriteAccess, StoragePointerReadAccess};

#[storage]
struct Storage {
blk_nb: u64,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ trait IHelloStarknet<TContractState> {

#[starknet::contract]
mod HelloStarknet {
use starknet::storage::{StoragePointerWriteAccess, StoragePointerReadAccess};
#[storage]
struct Storage {
balance: felt252,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ trait IReplaceBytecodeA<TContractState> {
#[starknet::contract]
mod ReplaceBytecodeA {
use starknet::{SyscallResultTrait, SyscallResult, syscalls::get_execution_info_v2_syscall};
use starknet::storage::{StoragePointerWriteAccess, StoragePointerReadAccess};

#[storage]
struct Storage {
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/src/scarb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ mod tests {
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
snforge_std = {{ path = "{}" }}

[[tool.snforge.fork]]
Expand Down
4 changes: 2 additions & 2 deletions crates/forge/test_utils/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ impl<'a> TestCase {
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
snforge_std = {{ path = "{}" }}
assert_macros = "0.1.0"
assert_macros = "2.8.2"
"#,
snforge_std_path
))
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/component_macros/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.1.0"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/contract_printing/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sierra = true
allowed-libfuncs-deny = false

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/coverage_project/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.1.0"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/empty/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.1.0"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/erc20_package/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "erc20_package"
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/exit_first/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "exit_first"
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/features/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "features"
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/file_reading/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version = "0.1.0"
sierra = true

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
2 changes: 1 addition & 1 deletion crates/forge/tests/data/forking/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.1.0"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/fuzzing/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.1.0"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
2 changes: 1 addition & 1 deletion crates/forge/tests/data/hello_workspaces/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test = "snforge"
[workspace.tool.snforge]

[workspace.dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
snforge_std = { path = "../../../../../snforge_std" }

[workspace.package]
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/panic_decoding/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name = "panic_decoding"
version = "0.1.0"

[dependencies]
assert_macros = "0.1.0"
assert_macros = "2.8.2"
2 changes: 1 addition & 1 deletion crates/forge/tests/data/simple_package/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "simple_package"
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/steps/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.1.0"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/trace/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "trace_info"
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/trace_resources/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "trace_resources"
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[dev-dependencies]
snforge_std = { path = "../../../../../snforge_std" }
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/data/virtual_workspace/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test = "snforge"
exit_first = true

[workspace.dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
snforge_std = { path = "../../../../../snforge_std" }

[workspace.package]
Expand Down
32 changes: 16 additions & 16 deletions crates/forge/tests/e2e/common/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,30 +108,30 @@ pub(crate) fn setup_hello_workspace() -> TempDir {
members = [
"crates/*",
]

[workspace.scripts]
test = "snforge"

[workspace.tool.snforge]


[workspace.dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
snforge_std = {{ path = "{}" }}

[workspace.package]
version = "0.1.0"

[package]
name = "hello_workspaces"
version.workspace = true

[scripts]
test.workspace = true

[tool]
snforge.workspace = true

[dependencies]
starknet.workspace = true
fibonacci = {{ path = "crates/fibonacci" }}
Expand Down Expand Up @@ -165,22 +165,22 @@ pub(crate) fn setup_virtual_workspace() -> TempDir {
members = [
"dummy_name/*",
]

[workspace.scripts]
test = "snforge"

[workspace.tool.snforge]

[workspace.dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
snforge_std = {{ path = "{}" }}

[workspace.package]
version = "0.1.0"

[scripts]
test.workspace = true

[tool]
snforge.workspace = true
"#,
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/e2e/running.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ fn with_exit_first() {
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
snforge_std = {{ path = "{}" }}

[tool.snforge]
Expand Down
4 changes: 2 additions & 2 deletions crates/scarb-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ mod tests {
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
snforge_std = {{ path = "{}" }}

[[target.starknet-contract]]
Expand Down Expand Up @@ -438,7 +438,7 @@ mod tests {
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
snforge_std = {{ path = "{}" }}

[[target.starknet-contract]]
Expand Down
2 changes: 1 addition & 1 deletion crates/scarb-api/tests/data/basic_package/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "basic_package"
version = "0.1.0"

[dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
snforge_std = { path = "../../../../../snforge_std" }

[[target.starknet-contract]]
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [
]

[workspace.dependencies]
starknet = "2.4.0"
starknet = "2.8.2"

[workspace.package]
version = "0.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ members = [
version = "0.1.0"

[workspace.dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
2 changes: 1 addition & 1 deletion crates/sncast/tests/data/scripts/packages/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ members = [
version = "0.1.0"

[workspace.dependencies]
starknet = "2.4.0"
starknet = "2.8.2"
2 changes: 1 addition & 1 deletion docs/listings/sncast_library/scripts/call/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "call"
version = "0.1.0"
edition = "2023_11"
edition = "2024_07"

[dependencies]
starknet.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion docs/listings/sncast_library/scripts/call/src/lib.cairo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use sncast_std::{call, CallResult};
use sncast_std::call;
use starknet::ContractAddress;

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion docs/listings/sncast_library/scripts/declare/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "declare"
version = "0.1.0"
edition = "2023_11"
edition = "2024_07"

[dependencies]
starknet.workspace = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use sncast_std::{declare, DeclareResult, FeeSettings, EthFeeSettings};
use sncast_std::{declare, FeeSettings, EthFeeSettings};

fn main() {
let max_fee = 9999999;
Expand Down
2 changes: 1 addition & 1 deletion docs/listings/sncast_library/scripts/deploy/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "deploy"
version = "0.1.0"
edition = "2023_11"
edition = "2024_07"

[dependencies]
starknet.workspace = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use starknet::ClassHash;
use sncast_std::{deploy, DeployResult, FeeSettings, EthFeeSettings};
use sncast_std::{deploy, FeeSettings, EthFeeSettings};

fn main() {
let max_fee = 9999999;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "get_nonce"
version = "0.1.0"
edition = "2023_11"
edition = "2024_07"

[dependencies]
starknet.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion docs/listings/sncast_library/scripts/invoke/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "invoke"
version = "0.1.0"
edition = "2023_11"
edition = "2024_07"

[dependencies]
starknet.workspace = true
Expand Down
Loading
Loading