---
source: crates/sdk-derive/derive-core/src/storage_legacy.rs
expression: formatted
---
pub struct Owner {}
impl Owner {
    const SLOT: fluentbase_sdk::U256 = fluentbase_sdk::U256::from_limbs([
        0u64, 0u64, 0u64, 0u64,
    ]);
    fn get<SDK: fluentbase_sdk::SharedAPI>(sdk: &SDK) -> Address {
        let key = Self::key(sdk);
        <Address as fluentbase_sdk::storage_legacy::DirectStorage<SDK>>::get(sdk, key)
    }
    fn set<SDK: fluentbase_sdk::SharedAPI>(sdk: &mut SDK, value: Address) {
        let key = Self::key(sdk);
        <Address as fluentbase_sdk::storage_legacy::DirectStorage<
            SDK,
        >>::set(sdk, key, value)
    }
    fn key<SDK: fluentbase_sdk::SharedAPI>(_sdk: &SDK) -> fluentbase_sdk::U256 {
        Self::SLOT
    }
}
pub struct Paused {}
impl Paused {
    const SLOT: fluentbase_sdk::U256 = fluentbase_sdk::U256::from_limbs([
        1u64, 0u64, 0u64, 0u64,
    ]);
    fn get<SDK: fluentbase_sdk::SharedAPI>(sdk: &SDK) -> bool {
        let key = Self::key(sdk);
        <bool as fluentbase_sdk::storage_legacy::DirectStorage<SDK>>::get(sdk, key)
    }
    fn set<SDK: fluentbase_sdk::SharedAPI>(sdk: &mut SDK, value: bool) {
        let key = Self::key(sdk);
        <bool as fluentbase_sdk::storage_legacy::DirectStorage<
            SDK,
        >>::set(sdk, key, value)
    }
    fn key<SDK: fluentbase_sdk::SharedAPI>(_sdk: &SDK) -> fluentbase_sdk::U256 {
        Self::SLOT
    }
}
pub struct TotalSupply {}
impl TotalSupply {
    const SLOT: fluentbase_sdk::U256 = fluentbase_sdk::U256::from_limbs([
        2u64, 0u64, 0u64, 0u64,
    ]);
    fn get<SDK: fluentbase_sdk::SharedAPI>(sdk: &SDK) -> U256 {
        let key = Self::key(sdk);
        <U256 as fluentbase_sdk::storage_legacy::DirectStorage<SDK>>::get(sdk, key)
    }
    fn set<SDK: fluentbase_sdk::SharedAPI>(sdk: &mut SDK, value: U256) {
        let key = Self::key(sdk);
        <U256 as fluentbase_sdk::storage_legacy::DirectStorage<
            SDK,
        >>::set(sdk, key, value)
    }
    fn key<SDK: fluentbase_sdk::SharedAPI>(_sdk: &SDK) -> fluentbase_sdk::U256 {
        Self::SLOT
    }
}
