multiversx_sc/api/uncallable/
storage_api_uncallable.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use crate::api::{StorageReadApi, StorageReadApiImpl, StorageWriteApi, StorageWriteApiImpl};

use super::UncallableApi;

impl StorageReadApi for UncallableApi {
    type StorageReadApiImpl = Self;

    fn storage_read_api_impl() -> Self {
        unreachable!()
    }
}

impl StorageReadApiImpl for UncallableApi {
    fn storage_load_managed_buffer_raw(&self, _key_handle: i32, _dest: i32) {
        unreachable!()
    }

    fn storage_load_from_address(&self, _address_handle: i32, _key_handle: i32, _dest: i32) {
        unreachable!()
    }
}

impl StorageWriteApi for UncallableApi {
    type StorageWriteApiImpl = UncallableApi;

    fn storage_write_api_impl() -> Self::StorageWriteApiImpl {
        unreachable!()
    }
}

impl StorageWriteApiImpl for super::UncallableApi {
    fn storage_store_managed_buffer_raw(
        &self,
        _key_handle: Self::ManagedBufferHandle,
        _value_handle: Self::ManagedBufferHandle,
    ) {
        unreachable!()
    }
}