diff --git a/corelib/src/prelude/v2023_01.cairo b/corelib/src/prelude/v2023_01.cairo index 7e121dc78f3..18f66733b04 100644 --- a/corelib/src/prelude/v2023_01.cairo +++ b/corelib/src/prelude/v2023_01.cairo @@ -100,3 +100,9 @@ use core::{zeroable, zeroable::{NonZero, Zeroable}}; #[cfg(test)] use core::test; pub use core::ops::Deref; + + +pub use starknet::storage::{ + StorageMapReadAccessTrait, StorageMapWriteAccessTrait, StoragePointerReadAccess, + StoragePointerWriteAccess +}; diff --git a/corelib/src/prelude/v2023_10.cairo b/corelib/src/prelude/v2023_10.cairo index 4bf19957cba..789ae1422c0 100644 --- a/corelib/src/prelude/v2023_10.cairo +++ b/corelib/src/prelude/v2023_10.cairo @@ -63,3 +63,8 @@ pub use core::traits::Index; pub use core::traits::IndexView; pub use core::zeroable::NonZero; pub use core::ops::Deref; + +pub use starknet::storage::{ + StorageMapReadAccessTrait, StorageMapWriteAccessTrait, StoragePointerReadAccess, + StoragePointerWriteAccess +}; diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/components/component b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/components/component index 7a27c4c3d78..0c016b6d1f4 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/components/component +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/components/component @@ -625,10 +625,6 @@ pub fn component_state_for_testing() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/diagnostics b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/diagnostics index 733d651c400..a3dcd12adeb 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/diagnostics +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/diagnostics @@ -89,10 +89,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -285,10 +281,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -491,10 +483,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -753,10 +741,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -954,10 +938,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -1153,10 +1133,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -1380,10 +1356,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -1598,10 +1570,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -1912,10 +1880,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -2132,10 +2096,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -2385,10 +2345,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -3148,10 +3104,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -3449,10 +3401,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -3632,10 +3580,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -6287,10 +6231,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -6776,10 +6712,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -7505,10 +7437,6 @@ pub fn component_state_for_testing() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -9979,10 +9883,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -10855,10 +10751,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/embedded_impl b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/embedded_impl index b4a333b6aec..fd2b48cdf7a 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/embedded_impl +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/embedded_impl @@ -613,10 +613,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -1640,10 +1636,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -2257,10 +2249,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/external_event b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/external_event index a41670126ea..26dcb68115c 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/external_event +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/external_event @@ -224,10 +224,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/hello_starknet b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/hello_starknet index 9cffee2fb90..3ff009aba4f 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/hello_starknet +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/hello_starknet @@ -80,10 +80,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -590,10 +586,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/interfaces b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/interfaces index df181d300a3..ea2ed33f0c9 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/interfaces +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/interfaces @@ -797,10 +797,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/l1_handler b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/l1_handler index 54a3aa03cdf..996c44558ab 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/l1_handler +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/l1_handler @@ -89,10 +89,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/mintable b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/mintable index 3699b950865..80230f41972 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/mintable +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/mintable @@ -130,10 +130,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -789,10 +785,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/multi_component b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/multi_component index 11e1c825178..eaa3dce2c12 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/multi_component +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/multi_component @@ -142,10 +142,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -855,10 +851,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/new_storage_interface b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/new_storage_interface index fd4732d8d8a..a0649d4858c 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/new_storage_interface +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/new_storage_interface @@ -1466,10 +1466,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/ownable_erc20 b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/ownable_erc20 index e0cea716e93..2a134b0de1b 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/ownable_erc20 +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/ownable_erc20 @@ -106,10 +106,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -399,10 +395,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/raw_output b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/raw_output index c8cd505a51c..6c5e35e13d3 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/raw_output +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/raw_output @@ -101,10 +101,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/storage b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/storage index b76c33d96cf..682ad432c8b 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/storage +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/storage @@ -262,10 +262,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/upgradable_counter b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/upgradable_counter index ccffaa1427f..b918b3f2337 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/upgradable_counter +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/upgradable_counter @@ -129,10 +129,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -916,10 +912,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/user_defined_types b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/user_defined_types index 26bc758cad8..3868501f781 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/user_defined_types +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/user_defined_types @@ -171,10 +171,6 @@ pub fn contract_state_for_testing() -> ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_component b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_component index 8ca9b0cb0a6..f6a4a595b72 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_component +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_component @@ -133,10 +133,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -576,10 +568,6 @@ pub fn component_state_for_testing() -> ComponentState() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -1186,10 +1166,6 @@ pub fn component_state_for_testing() -> ComponentState() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_component_diagnostics b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_component_diagnostics index b5700f36716..862e7e1f981 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_component_diagnostics +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_component_diagnostics @@ -119,10 +119,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -497,10 +489,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -863,10 +847,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -1242,10 +1218,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -1624,10 +1592,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -2027,10 +1987,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -2387,10 +2339,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -2752,10 +2696,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -3188,10 +3124,6 @@ pub fn component_state_for_testing() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -3566,10 +3494,6 @@ pub fn component_state_for_testing() -> ComponentState() -> ComponentState ContractState { unsafe_new_contract_state() } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_erc20 b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_erc20 index 4bda703cfdf..e06028da6a7 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_erc20 +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_erc20 @@ -92,10 +92,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -322,10 +318,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_ownable b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_ownable index b961bdd8378..0a9b5aca593 100644 --- a/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_ownable +++ b/crates/cairo-lang-starknet/src/plugin/plugin_test_data/contracts/with_ownable @@ -100,10 +100,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", @@ -366,10 +362,6 @@ pub fn unsafe_new_contract_state() -> ContractState { } } -use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess -}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: "deprecated_legacy_map", diff --git a/crates/cairo-lang-starknet/src/plugin/starknet_module/component.rs b/crates/cairo-lang-starknet/src/plugin/starknet_module/component.rs index 33997d6d7b7..41053310d8f 100644 --- a/crates/cairo-lang-starknet/src/plugin/starknet_module/component.rs +++ b/crates/cairo-lang-starknet/src/plugin/starknet_module/component.rs @@ -32,10 +32,6 @@ impl ComponentSpecificGenerationData { ) -> RewriteNode { RewriteNode::interpolate_patched( indoc! {" - use starknet::storage::{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess - }; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: \"deprecated_legacy_map\", diff --git a/crates/cairo-lang-starknet/src/plugin/starknet_module/contract.rs b/crates/cairo-lang-starknet/src/plugin/starknet_module/contract.rs index 042e751e5ef..adaa322002a 100644 --- a/crates/cairo-lang-starknet/src/plugin/starknet_module/contract.rs +++ b/crates/cairo-lang-starknet/src/plugin/starknet_module/contract.rs @@ -204,10 +204,6 @@ impl ContractSpecificGenerationData { ) -> RewriteNode { RewriteNode::interpolate_patched( &formatdoc! {" - use starknet::storage::{{ - StorageMapReadAccessTrait, StorageMapWriteAccessTrait, - StorableStoragePointerReadAccess, StorableStoragePointerWriteAccess - }}; // TODO(Gil): This generates duplicate diagnostics because of the plugin system, squash the duplicates into one. #[deprecated( feature: \"deprecated_legacy_map\",