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_timestamp_ms(&self) -> u64 {
59        unreachable!()
60    }
61
62    fn get_block_nonce(&self) -> u64 {
63        unreachable!()
64    }
65
66    fn get_block_round(&self) -> u64 {
67        unreachable!()
68    }
69
70    fn get_block_epoch(&self) -> u64 {
71        unreachable!()
72    }
73
74    fn load_block_random_seed_managed(&self, _dest: Self::ManagedBufferHandle) {
75        unreachable!()
76    }
77
78    fn get_prev_block_timestamp(&self) -> u64 {
79        unreachable!()
80    }
81
82    fn get_prev_block_timestamp_ms(&self) -> u64 {
83        unreachable!()
84    }
85
86    fn get_prev_block_nonce(&self) -> u64 {
87        unreachable!()
88    }
89
90    fn get_prev_block_round(&self) -> u64 {
91        unreachable!()
92    }
93
94    fn get_prev_block_epoch(&self) -> u64 {
95        unreachable!()
96    }
97
98    fn get_prev_block_random_seed_legacy(&self) -> Box<[u8; 48]> {
99        unreachable!()
100    }
101
102    fn get_block_round_time_ms(&self) -> u64 {
103        unreachable!()
104    }
105
106    fn epoch_start_block_timestamp_ms(&self) -> u64 {
107        unreachable!()
108    }
109
110    fn epoch_start_block_nonce(&self) -> u64 {
111        unreachable!()
112    }
113
114    fn epoch_start_block_round(&self) -> u64 {
115        unreachable!()
116    }
117
118    fn get_current_esdt_nft_nonce(
119        &self,
120        _address_handle: Self::ManagedBufferHandle,
121        _token_id_handle: Self::ManagedBufferHandle,
122    ) -> u64 {
123        unreachable!()
124    }
125
126    fn load_esdt_balance(
127        &self,
128        _address_handle: Self::ManagedBufferHandle,
129        _token_id_handle: Self::ManagedBufferHandle,
130        _nonce: u64,
131        _dest: Self::BigIntHandle,
132    ) {
133        unreachable!()
134    }
135
136    fn managed_get_esdt_token_data(
137        &self,
138        _address_handle: RawHandle,
139        _token_id_handle: RawHandle,
140        _nonce: u64,
141        _value_handle: RawHandle,
142        _properties_handle: RawHandle,
143        _hash_handle: RawHandle,
144        _name_handle: RawHandle,
145        _attributes_handle: RawHandle,
146        _creator_handle: RawHandle,
147        _royalties_handle: RawHandle,
148        _uris_handle: RawHandle,
149    ) {
150        unreachable!()
151    }
152
153    fn managed_get_back_transfers(
154        &self,
155        _esdt_transfer_value_handle: RawHandle,
156        _call_value_handle: RawHandle,
157    ) {
158        unreachable!()
159    }
160
161    fn check_esdt_frozen(
162        &self,
163        _address_handle: Self::ManagedBufferHandle,
164        _token_id_handle: Self::ManagedBufferHandle,
165        _nonce: u64,
166    ) -> bool {
167        unreachable!()
168    }
169
170    fn check_esdt_paused(&self, _token_id_handle: Self::ManagedBufferHandle) -> bool {
171        unreachable!()
172    }
173
174    fn check_esdt_limited_transfer(&self, _token_id_handle: Self::ManagedBufferHandle) -> bool {
175        unreachable!()
176    }
177
178    fn load_esdt_local_roles(
179        &self,
180        _token_id_handle: Self::ManagedBufferHandle,
181    ) -> crate::types::EsdtLocalRoleFlags {
182        unreachable!()
183    }
184
185    fn managed_get_code_metadata(
186        &self,
187        _address_handle: Self::ManagedBufferHandle,
188        _response_handle: Self::ManagedBufferHandle,
189    ) {
190        unreachable!()
191    }
192
193    fn managed_get_code_hash(
194        &self,
195        _address_handle: Self::ManagedBufferHandle,
196        _code_hash_handle: Self::ManagedBufferHandle,
197    ) {
198        unreachable!()
199    }
200
201    fn managed_is_builtin_function(
202        &self,
203        _function_name_handle: Self::ManagedBufferHandle,
204    ) -> bool {
205        unreachable!()
206    }
207
208    fn managed_get_esdt_token_type(
209        &self,
210        _address_handle: Self::ManagedBufferHandle,
211        _token_id_handle: Self::ManagedBufferHandle,
212        _nonce: u64,
213        _dest_handle: Self::BigIntHandle,
214    ) {
215        unreachable!()
216    }
217}