multiversx_sc/api/uncallable/
send_api_uncallable.rs1use 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 ) {
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 ) {
33 unreachable!()
34 }
35
36 fn multi_transfer_esdt_nft_execute_with_return(
37 &self,
38 _to_handle: RawHandle,
39 _payments_handle: RawHandle,
40 _gas_limit: u64,
41 _endpoint_name_handle: RawHandle,
42 _arg_buffer_handle: RawHandle,
43 ) -> i32 {
44 unreachable!()
45 }
46
47 fn async_call_raw(
48 &self,
49 _to_handle: RawHandle,
50 _amount_handle: RawHandle,
51 _endpoint_name_handle: RawHandle,
52 _arg_buffer_handle: RawHandle,
53 ) -> ! {
54 unreachable!()
55 }
56
57 fn create_async_call_raw(
58 &self,
59 _to_handle: RawHandle,
60 _amount_handle: RawHandle,
61 _endpoint_name_handle: RawHandle,
62 _arg_buffer_handle: RawHandle,
63 _success_callback: &'static str,
64 _error_callback: &'static str,
65 _gas: u64,
66 _extra_gas_for_callback: u64,
67 _callback_closure: RawHandle,
68 ) {
69 unreachable!()
70 }
71
72 fn deploy_contract(
73 &self,
74 _gas: u64,
75 _amount_handle: RawHandle,
76 _code_handle: RawHandle,
77 _code_metadata_handle: RawHandle,
78 _arg_buffer_handle: RawHandle,
79 _new_address_handle: RawHandle,
80 _result_handle: RawHandle,
81 ) {
82 unreachable!()
83 }
84
85 fn deploy_from_source_contract(
86 &self,
87 _gas: u64,
88 _amount_handle: RawHandle,
89 _source_contract_address_handle: RawHandle,
90 _code_metadata_handle: RawHandle,
91 _arg_buffer_handle: RawHandle,
92 _new_address_handle: RawHandle,
93 _result_handle: RawHandle,
94 ) {
95 unreachable!()
96 }
97
98 fn upgrade_from_source_contract(
99 &self,
100 _sc_address: RawHandle,
101 _gas: u64,
102 _amount_handle: RawHandle,
103 _source_contract_address_handle: RawHandle,
104 _code_metadata_handle: RawHandle,
105 _arg_buffer_handle: RawHandle,
106 ) {
107 unreachable!()
108 }
109
110 fn upgrade_contract(
111 &self,
112 _sc_address: RawHandle,
113 _gas: u64,
114 _amount_handle: RawHandle,
115 _code_handle: RawHandle,
116 _code_metadata_handle: RawHandle,
117 _arg_buffer_handle: RawHandle,
118 ) {
119 unreachable!()
120 }
121
122 fn execute_on_dest_context_raw(
123 &self,
124 _gas: u64,
125 _address: RawHandle,
126 _value: RawHandle,
127 _endpoint_name_handle: RawHandle,
128 _arg_buffer_handle: RawHandle,
129 _result_handle: RawHandle,
130 ) {
131 unreachable!()
132 }
133
134 fn execute_on_same_context_raw(
135 &self,
136 _gas: u64,
137 _address: RawHandle,
138 _value: RawHandle,
139 _endpoint_name_handle: RawHandle,
140 _arg_buffer_handle: RawHandle,
141 _result_handle: RawHandle,
142 ) {
143 unreachable!()
144 }
145
146 fn execute_on_dest_context_readonly_raw(
147 &self,
148 _gas: u64,
149 _address: RawHandle,
150 _endpoint_name_handle: RawHandle,
151 _arg_buffer_handle: RawHandle,
152 _result_handle: RawHandle,
153 ) {
154 unreachable!()
155 }
156
157 fn execute_on_dest_context_error_return_raw(
158 &self,
159 _gas: u64,
160 _address: RawHandle,
161 _value: RawHandle,
162 _endpoint_name_handle: RawHandle,
163 _arg_buffer_handle: RawHandle,
164 _result_handle: RawHandle,
165 ) -> i32 {
166 unreachable!()
167 }
168
169 fn clean_return_data(&self) {
170 unreachable!()
171 }
172
173 fn delete_from_return_data(&self, _index: usize) {
174 unreachable!()
175 }
176}