diff --git a/.tool-versions b/.tool-versions index 120e90d0..aac540e2 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ scarb 2.8.2 -starknet-foundry 0.30.0 \ No newline at end of file +starknet-foundry 0.30.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d15852c3..2e4759fb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -112,7 +112,6 @@ version.workspace = true [dependencies] starknet.workspace = true -snforge_std.workspace = true # Uncomment the following lines if you want to use additional dependencies: # OpenZeppelin: # openzeppelin.workspace = true @@ -122,6 +121,7 @@ snforge_std.workspace = true [dev-dependencies] assert_macros.workspace = true +snforge_std.workspace = true [scripts] test.workspace = true diff --git a/Scarb.toml b/Scarb.toml index 7482a04e..76f4fe96 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -27,6 +27,7 @@ homepage = "https://www.nethermind.io/" license = "MIT" authors = ["julio4", "msaug"] version = "0.1.0" +edition = "2024_07" [tool] snforge.workspace = true diff --git a/listings/advanced-concepts/ecdsa_verification/Scarb.toml b/listings/advanced-concepts/ecdsa_verification/Scarb.toml index 96ed1b58..8f178961 100644 --- a/listings/advanced-concepts/ecdsa_verification/Scarb.toml +++ b/listings/advanced-concepts/ecdsa_verification/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "ecdsa_verification" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/advanced-concepts/hash_solidity_compatible/Scarb.toml b/listings/advanced-concepts/hash_solidity_compatible/Scarb.toml index 9f3c6244..601d3988 100644 --- a/listings/advanced-concepts/hash_solidity_compatible/Scarb.toml +++ b/listings/advanced-concepts/hash_solidity_compatible/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "hash_solidity_compatible" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/advanced-concepts/hash_trait/Scarb.toml b/listings/advanced-concepts/hash_trait/Scarb.toml index 44a44d27..e308acce 100644 --- a/listings/advanced-concepts/hash_trait/Scarb.toml +++ b/listings/advanced-concepts/hash_trait/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "hash_trait" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/advanced-concepts/library_calls/Scarb.toml b/listings/advanced-concepts/library_calls/Scarb.toml index e077de16..62897c98 100644 --- a/listings/advanced-concepts/library_calls/Scarb.toml +++ b/listings/advanced-concepts/library_calls/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "library_calls" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/advanced-concepts/simple_account/Scarb.toml b/listings/advanced-concepts/simple_account/Scarb.toml index 7454c359..4c2912fd 100644 --- a/listings/advanced-concepts/simple_account/Scarb.toml +++ b/listings/advanced-concepts/simple_account/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "simple_account" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/advanced-concepts/store_using_packing/Scarb.toml b/listings/advanced-concepts/store_using_packing/Scarb.toml index 2625aca3..66797103 100644 --- a/listings/advanced-concepts/store_using_packing/Scarb.toml +++ b/listings/advanced-concepts/store_using_packing/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "store_using_packing" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/advanced-concepts/struct_as_mapping_key/Scarb.toml b/listings/advanced-concepts/struct_as_mapping_key/Scarb.toml index 8bfd3839..65c00ffa 100644 --- a/listings/advanced-concepts/struct_as_mapping_key/Scarb.toml +++ b/listings/advanced-concepts/struct_as_mapping_key/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "struct_as_mapping_key" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/advanced-concepts/write_to_any_slot/Scarb.toml b/listings/advanced-concepts/write_to_any_slot/Scarb.toml index cbad5243..2465289e 100644 --- a/listings/advanced-concepts/write_to_any_slot/Scarb.toml +++ b/listings/advanced-concepts/write_to_any_slot/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "write_to_any_slot" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/applications/advanced_factory/Scarb.toml b/listings/applications/advanced_factory/Scarb.toml index 825a4654..7a654c03 100644 --- a/listings/applications/advanced_factory/Scarb.toml +++ b/listings/applications/advanced_factory/Scarb.toml @@ -1,20 +1,19 @@ [package] name = "advanced_factory" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true components.workspace = true -snforge_std.workspace = true crowdfunding = { path = "../crowdfunding" } [dev-dependencies] assert_macros.workspace = true +snforge_std.workspace = true [scripts] test.workspace = true [[target.starknet-contract]] -casm = true build-external-contracts = ["crowdfunding::campaign::Campaign"] diff --git a/listings/applications/coin_flip/Scarb.toml b/listings/applications/coin_flip/Scarb.toml index c1ae15f7..c59791c8 100644 --- a/listings/applications/coin_flip/Scarb.toml +++ b/listings/applications/coin_flip/Scarb.toml @@ -1,18 +1,16 @@ [package] name = "coin_flip" version.workspace = true -edition = "2024_07" - -[lib] +edition.workspace = true [dependencies] starknet.workspace = true openzeppelin.workspace = true pragma_lib.workspace = true -snforge_std.workspace = true [dev-dependencies] assert_macros.workspace = true +snforge_std.workspace = true [scripts] test.workspace = true diff --git a/listings/applications/components/Scarb.toml b/listings/applications/components/Scarb.toml index afa1fd51..1ba6df9f 100644 --- a/listings/applications/components/Scarb.toml +++ b/listings/applications/components/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "components" version.workspace = true -edition = "2024_07" +edition.workspace = true [lib] diff --git a/listings/applications/components_dependencies/Scarb.toml b/listings/applications/components_dependencies/Scarb.toml index 27d39111..3d0f6a52 100644 --- a/listings/applications/components_dependencies/Scarb.toml +++ b/listings/applications/components_dependencies/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "components_dependencies" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/applications/constant_product_amm/Scarb.toml b/listings/applications/constant_product_amm/Scarb.toml index 4a798451..0d57dce7 100644 --- a/listings/applications/constant_product_amm/Scarb.toml +++ b/listings/applications/constant_product_amm/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "constant_product_amm" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/applications/crowdfunding/Scarb.toml b/listings/applications/crowdfunding/Scarb.toml index 744ae4d2..ae5131d4 100644 --- a/listings/applications/crowdfunding/Scarb.toml +++ b/listings/applications/crowdfunding/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "crowdfunding" version.workspace = true -edition = "2024_07" +edition.workspace = true [lib] @@ -9,10 +9,10 @@ edition = "2024_07" starknet.workspace = true openzeppelin.workspace = true components.workspace = true -snforge_std.workspace = true [dev-dependencies] assert_macros.workspace = true +snforge_std.workspace = true [scripts] test.workspace = true diff --git a/listings/applications/erc20/Scarb.toml b/listings/applications/erc20/Scarb.toml index 81a90227..519aea86 100644 --- a/listings/applications/erc20/Scarb.toml +++ b/listings/applications/erc20/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "erc20" version.workspace = true -edition = "2024_07" +edition.workspace = true [lib] diff --git a/listings/applications/merkle_tree/Scarb.toml b/listings/applications/merkle_tree/Scarb.toml index bba5cb58..d05dd121 100644 --- a/listings/applications/merkle_tree/Scarb.toml +++ b/listings/applications/merkle_tree/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "merkle_tree" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/applications/nft_dutch_auction/Scarb.toml b/listings/applications/nft_dutch_auction/Scarb.toml index fea2ffae..3fdc75e1 100644 --- a/listings/applications/nft_dutch_auction/Scarb.toml +++ b/listings/applications/nft_dutch_auction/Scarb.toml @@ -1,15 +1,15 @@ [package] name = "nft_dutch_auction" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] erc20 = { path = "../erc20" } starknet.workspace = true -snforge_std.workspace = true [dev-dependencies] assert_macros.workspace = true +snforge_std.workspace = true [scripts] test.workspace = true diff --git a/listings/applications/simple_storage_starknetjs/Scarb.toml b/listings/applications/simple_storage_starknetjs/Scarb.toml index 56c2d211..ea490c2c 100644 --- a/listings/applications/simple_storage_starknetjs/Scarb.toml +++ b/listings/applications/simple_storage_starknetjs/Scarb.toml @@ -1,9 +1,7 @@ [package] name = "simple_storage" version.workspace = true -edition = "2024_07" - -[lib] +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/applications/simple_vault/Scarb.toml b/listings/applications/simple_vault/Scarb.toml index 11d2642c..d96a0664 100644 --- a/listings/applications/simple_vault/Scarb.toml +++ b/listings/applications/simple_vault/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "simple_vault" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/applications/staking/Scarb.toml b/listings/applications/staking/Scarb.toml index 93510593..8479363a 100644 --- a/listings/applications/staking/Scarb.toml +++ b/listings/applications/staking/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "staking" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/applications/timelock/Scarb.toml b/listings/applications/timelock/Scarb.toml index eed924b6..9ccf8c4e 100644 --- a/listings/applications/timelock/Scarb.toml +++ b/listings/applications/timelock/Scarb.toml @@ -1,19 +1,18 @@ [package] name = "timelock" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true -snforge_std.workspace = true openzeppelin.workspace = true components.workspace = true [dev-dependencies] assert_macros.workspace = true +snforge_std.workspace = true [scripts] test.workspace = true [[target.starknet-contract]] -casm = true diff --git a/listings/applications/upgradeable_contract/Scarb.toml b/listings/applications/upgradeable_contract/Scarb.toml index c4dcec0d..f443c52d 100644 --- a/listings/applications/upgradeable_contract/Scarb.toml +++ b/listings/applications/upgradeable_contract/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "upgradeable_contract" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/bytearray/Scarb.toml b/listings/getting-started/bytearray/Scarb.toml index 21e61cdd..0ed5aa06 100644 --- a/listings/getting-started/bytearray/Scarb.toml +++ b/listings/getting-started/bytearray/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "bytearray" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/cairo_cheatsheet/Scarb.toml b/listings/getting-started/cairo_cheatsheet/Scarb.toml index b1ec0393..4daa2a61 100644 --- a/listings/getting-started/cairo_cheatsheet/Scarb.toml +++ b/listings/getting-started/cairo_cheatsheet/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "cairo_cheatsheet" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/calling_other_contracts/Scarb.toml b/listings/getting-started/calling_other_contracts/Scarb.toml index f1727dbd..2595a9bd 100644 --- a/listings/getting-started/calling_other_contracts/Scarb.toml +++ b/listings/getting-started/calling_other_contracts/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "calling_other_contracts" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/constructor/Scarb.toml b/listings/getting-started/constructor/Scarb.toml index 8235973e..db71d0e6 100644 --- a/listings/getting-started/constructor/Scarb.toml +++ b/listings/getting-started/constructor/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "constructor" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/counter/Scarb.toml b/listings/getting-started/counter/Scarb.toml index 1a78d653..3979e167 100644 --- a/listings/getting-started/counter/Scarb.toml +++ b/listings/getting-started/counter/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "counter" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/custom_type_serde/Scarb.toml b/listings/getting-started/custom_type_serde/Scarb.toml index 5414b1dd..1a3dfe62 100644 --- a/listings/getting-started/custom_type_serde/Scarb.toml +++ b/listings/getting-started/custom_type_serde/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "custom_type_serde" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/errors/Scarb.toml b/listings/getting-started/errors/Scarb.toml index 2b8cc106..cc12bd89 100644 --- a/listings/getting-started/errors/Scarb.toml +++ b/listings/getting-started/errors/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "errors" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/events/Scarb.toml b/listings/getting-started/events/Scarb.toml index 58d641fa..35c9f343 100644 --- a/listings/getting-started/events/Scarb.toml +++ b/listings/getting-started/events/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "events" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/factory/Scarb.toml b/listings/getting-started/factory/Scarb.toml index 5df9fd4c..bba267f6 100644 --- a/listings/getting-started/factory/Scarb.toml +++ b/listings/getting-started/factory/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "factory" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/interfaces_traits/Scarb.toml b/listings/getting-started/interfaces_traits/Scarb.toml index 94a47b46..0cc1a25d 100644 --- a/listings/getting-started/interfaces_traits/Scarb.toml +++ b/listings/getting-started/interfaces_traits/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "interfaces_traits" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/mappings/Scarb.toml b/listings/getting-started/mappings/Scarb.toml index a1f50323..b5a30f8a 100644 --- a/listings/getting-started/mappings/Scarb.toml +++ b/listings/getting-started/mappings/Scarb.toml @@ -1,13 +1,13 @@ [package] name = "mappings" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true [dev-dependencies] -cairo_test = "2.7.1" +cairo_test.workspace = true [scripts] test.workspace = true diff --git a/listings/getting-started/storage/Scarb.toml b/listings/getting-started/storage/Scarb.toml index caf77195..4bacb1e5 100644 --- a/listings/getting-started/storage/Scarb.toml +++ b/listings/getting-started/storage/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "storage" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/storing_custom_types/Scarb.toml b/listings/getting-started/storing_custom_types/Scarb.toml index 4a949d4f..44f881b8 100644 --- a/listings/getting-started/storing_custom_types/Scarb.toml +++ b/listings/getting-started/storing_custom_types/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "storing_custom_types" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/testing_how_to/Scarb.toml b/listings/getting-started/testing_how_to/Scarb.toml index 5046ee3d..d1e8295c 100644 --- a/listings/getting-started/testing_how_to/Scarb.toml +++ b/listings/getting-started/testing_how_to/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "testing_how_to" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/variables/Scarb.toml b/listings/getting-started/variables/Scarb.toml index 4b6f31b2..59fc6451 100644 --- a/listings/getting-started/variables/Scarb.toml +++ b/listings/getting-started/variables/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "variables" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true diff --git a/listings/getting-started/visibility/Scarb.toml b/listings/getting-started/visibility/Scarb.toml index aeadb2ef..ec43ebaa 100644 --- a/listings/getting-started/visibility/Scarb.toml +++ b/listings/getting-started/visibility/Scarb.toml @@ -1,7 +1,7 @@ [package] name = "visibility" version.workspace = true -edition = "2024_07" +edition.workspace = true [dependencies] starknet.workspace = true