multiversx_sc/api/uncallable/
send_api_uncallable.rs

1use crate::api::{RawHandle, SendApi, SendApiImpl};
2
3use super::UncallableApi;
4
5impl SendApi for UncallableApi {
6    type SendApiImpl = UncallableApi;
7
8    fn send_api_impl() -> Self::SendApiImpl {
9        unreachable!()
10    }
11}
12
13impl SendApiImpl for UncallableApi {
14    fn transfer_value_execute(
15        &self,
16        _to_handle: RawHandle,
17        _amount_handle: RawHandle,
18        _gas_limit: u64,
19        _endpoint_name_handle: RawHandle,
20        _arg_buffer_handle: RawHandle,
21    ) -> Result<(), &'static [u8]> {
22        unreachable!()
23    }
24
25    fn multi_transfer_esdt_nft_execute(
26        &self,
27        _to_handle: RawHandle,
28        _payments_handle: RawHandle,
29        _gas_limit: u64,
30        _endpoint_name_handle: RawHandle,
31        _arg_buffer_handle: RawHandle,
32    ) -> Result<(), &'static [u8]> {
33        unreachable!()
34    }
35
36    fn async_call_raw(
37        &self,
38        _to_handle: RawHandle,
39        _amount_handle: RawHandle,
40        _endpoint_name_handle: RawHandle,
41        _arg_buffer_handle: RawHandle,
42    ) -> ! {
43        unreachable!()
44    }
45
46    fn create_async_call_raw(
47        &self,
48        _to_handle: RawHandle,
49        _amount_handle: RawHandle,
50        _endpoint_name_handle: RawHandle,
51        _arg_buffer_handle: RawHandle,
52        _success_callback: &'static str,
53        _error_callback: &'static str,
54        _gas: u64,
55        _extra_gas_for_callback: u64,
56        _callback_closure: RawHandle,
57    ) {
58        unreachable!()
59    }
60
61    fn deploy_contract(
62        &self,
63        _gas: u64,
64        _amount_handle: RawHandle,
65        _code_handle: RawHandle,
66        _code_metadata_handle: RawHandle,
67        _arg_buffer_handle: RawHandle,
68        _new_address_handle: RawHandle,
69        _result_handle: RawHandle,
70    ) {
71        unreachable!()
72    }
73
74    fn deploy_from_source_contract(
75        &self,
76        _gas: u64,
77        _amount_handle: RawHandle,
78        _source_contract_address_handle: RawHandle,
79        _code_metadata_handle: RawHandle,
80        _arg_buffer_handle: RawHandle,
81        _new_address_handle: RawHandle,
82        _result_handle: RawHandle,
83    ) {
84        unreachable!()
85    }
86
87    fn upgrade_from_source_contract(
88        &self,
89        _sc_address: RawHandle,
90        _gas: u64,
91        _amount_handle: RawHandle,
92        _source_contract_address_handle: RawHandle,
93        _code_metadata_handle: RawHandle,
94        _arg_buffer_handle: RawHandle,
95    ) {
96        unreachable!()
97    }
98
99    fn upgrade_contract(
100        &self,
101        _sc_address: RawHandle,
102        _gas: u64,
103        _amount_handle: RawHandle,
104        _code_handle: RawHandle,
105        _code_metadata_handle: RawHandle,
106        _arg_buffer_handle: RawHandle,
107    ) {
108        unreachable!()
109    }
110
111    fn execute_on_dest_context_raw(
112        &self,
113        _gas: u64,
114        _address: RawHandle,
115        _value: RawHandle,
116        _endpoint_name_handle: RawHandle,
117        _arg_buffer_handle: RawHandle,
118        _result_handle: RawHandle,
119    ) {
120        unreachable!()
121    }
122
123    fn execute_on_same_context_raw(
124        &self,
125        _gas: u64,
126        _address: RawHandle,
127        _value: RawHandle,
128        _endpoint_name_handle: RawHandle,
129        _arg_buffer_handle: RawHandle,
130        _result_handle: RawHandle,
131    ) {
132        unreachable!()
133    }
134
135    fn execute_on_dest_context_readonly_raw(
136        &self,
137        _gas: u64,
138        _address: RawHandle,
139        _endpoint_name_handle: RawHandle,
140        _arg_buffer_handle: RawHandle,
141        _result_handle: RawHandle,
142    ) {
143        unreachable!()
144    }
145
146    fn clean_return_data(&self) {
147        unreachable!()
148    }
149
150    fn delete_from_return_data(&self, _index: usize) {
151        unreachable!()
152    }
153}