multiversx_sc/api/uncallable/
blockchain_api_uncallable.rs

1use alloc::boxed::Box;
2
3use crate::{
4    api::{BlockchainApi, BlockchainApiImpl, RawHandle},
5    types::heap::{Address, H256},
6};
7
8use super::UncallableApi;
9
10impl BlockchainApi for UncallableApi {
11    type BlockchainApiImpl = UncallableApi;
12
13    fn blockchain_api_impl() -> Self::BlockchainApiImpl {
14        unreachable!()
15    }
16}
17
18impl BlockchainApiImpl for UncallableApi {
19    fn get_sc_address_legacy(&self) -> Address {
20        unreachable!()
21    }
22
23    fn load_owner_address_managed(&self, _dest: Self::ManagedBufferHandle) {
24        unreachable!()
25    }
26    fn get_shard_of_address_legacy(&self, _address: &Address) -> u32 {
27        unreachable!()
28    }
29
30    fn is_smart_contract_legacy(&self, _address: &Address) -> bool {
31        unreachable!()
32    }
33
34    fn get_caller_legacy(&self) -> Address {
35        unreachable!()
36    }
37
38    fn load_balance_legacy(&self, _dest: Self::BigIntHandle, _address: &Address) {
39        unreachable!()
40    }
41
42    fn load_state_root_hash_managed(&self, _dest: Self::ManagedBufferHandle) {
43        unreachable!()
44    }
45
46    fn get_tx_hash_legacy(&self) -> H256 {
47        unreachable!()
48    }
49
50    fn get_gas_left(&self) -> u64 {
51        unreachable!()
52    }
53
54    fn get_block_timestamp(&self) -> u64 {
55        unreachable!()
56    }
57
58    fn get_block_nonce(&self) -> u64 {
59        unreachable!()
60    }
61
62    fn get_block_round(&self) -> u64 {
63        unreachable!()
64    }
65
66    fn get_block_epoch(&self) -> u64 {
67        unreachable!()
68    }
69
70    fn load_block_random_seed_managed(&self, _dest: Self::ManagedBufferHandle) {
71        unreachable!()
72    }
73
74    fn get_prev_block_timestamp(&self) -> u64 {
75        unreachable!()
76    }
77
78    fn get_prev_block_nonce(&self) -> u64 {
79        unreachable!()
80    }
81
82    fn get_prev_block_round(&self) -> u64 {
83        unreachable!()
84    }
85
86    fn get_prev_block_epoch(&self) -> u64 {
87        unreachable!()
88    }
89
90    fn get_prev_block_random_seed_legacy(&self) -> Box<[u8; 48]> {
91        unreachable!()
92    }
93
94    fn get_current_esdt_nft_nonce(
95        &self,
96        _address_handle: Self::ManagedBufferHandle,
97        _token_id_handle: Self::ManagedBufferHandle,
98    ) -> u64 {
99        unreachable!()
100    }
101
102    fn load_esdt_balance(
103        &self,
104        _address_handle: Self::ManagedBufferHandle,
105        _token_id_handle: Self::ManagedBufferHandle,
106        _nonce: u64,
107        _dest: Self::BigIntHandle,
108    ) {
109        unreachable!()
110    }
111
112    fn managed_get_esdt_token_data(
113        &self,
114        _address_handle: RawHandle,
115        _token_id_handle: RawHandle,
116        _nonce: u64,
117        _value_handle: RawHandle,
118        _properties_handle: RawHandle,
119        _hash_handle: RawHandle,
120        _name_handle: RawHandle,
121        _attributes_handle: RawHandle,
122        _creator_handle: RawHandle,
123        _royalties_handle: RawHandle,
124        _uris_handle: RawHandle,
125    ) {
126        unreachable!()
127    }
128
129    fn managed_get_back_transfers(
130        &self,
131        _esdt_transfer_value_handle: RawHandle,
132        _call_value_handle: RawHandle,
133    ) {
134        unreachable!()
135    }
136
137    fn check_esdt_frozen(
138        &self,
139        _address_handle: Self::ManagedBufferHandle,
140        _token_id_handle: Self::ManagedBufferHandle,
141        _nonce: u64,
142    ) -> bool {
143        unreachable!()
144    }
145
146    fn check_esdt_paused(&self, _token_id_handle: Self::ManagedBufferHandle) -> bool {
147        unreachable!()
148    }
149
150    fn check_esdt_limited_transfer(&self, _token_id_handle: Self::ManagedBufferHandle) -> bool {
151        unreachable!()
152    }
153
154    fn load_esdt_local_roles(
155        &self,
156        _token_id_handle: Self::ManagedBufferHandle,
157    ) -> crate::types::EsdtLocalRoleFlags {
158        unreachable!()
159    }
160
161    fn managed_get_code_metadata(
162        &self,
163        _address_handle: Self::ManagedBufferHandle,
164        _response_handle: Self::ManagedBufferHandle,
165    ) {
166        unreachable!()
167    }
168
169    fn managed_is_builtin_function(
170        &self,
171        _function_name_handle: Self::ManagedBufferHandle,
172    ) -> bool {
173        unreachable!()
174    }
175}