multiversx_sc/api/uncallable/
send_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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
use crate::api::{RawHandle, SendApi, SendApiImpl};

use super::UncallableApi;

impl SendApi for UncallableApi {
    type SendApiImpl = UncallableApi;

    fn send_api_impl() -> Self::SendApiImpl {
        unreachable!()
    }
}

impl SendApiImpl for UncallableApi {
    fn transfer_value_execute(
        &self,
        _to_handle: RawHandle,
        _amount_handle: RawHandle,
        _gas_limit: u64,
        _endpoint_name_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
    ) -> Result<(), &'static [u8]> {
        unreachable!()
    }

    fn multi_transfer_esdt_nft_execute(
        &self,
        _to_handle: RawHandle,
        _payments_handle: RawHandle,
        _gas_limit: u64,
        _endpoint_name_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
    ) -> Result<(), &'static [u8]> {
        unreachable!()
    }

    fn async_call_raw(
        &self,
        _to_handle: RawHandle,
        _amount_handle: RawHandle,
        _endpoint_name_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
    ) -> ! {
        unreachable!()
    }

    fn create_async_call_raw(
        &self,
        _to_handle: RawHandle,
        _amount_handle: RawHandle,
        _endpoint_name_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
        _success_callback: &'static str,
        _error_callback: &'static str,
        _gas: u64,
        _extra_gas_for_callback: u64,
        _callback_closure: RawHandle,
    ) {
        unreachable!()
    }

    fn deploy_contract(
        &self,
        _gas: u64,
        _amount_handle: RawHandle,
        _code_handle: RawHandle,
        _code_metadata_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
        _new_address_handle: RawHandle,
        _result_handle: RawHandle,
    ) {
        unreachable!()
    }

    fn deploy_from_source_contract(
        &self,
        _gas: u64,
        _amount_handle: RawHandle,
        _source_contract_address_handle: RawHandle,
        _code_metadata_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
        _new_address_handle: RawHandle,
        _result_handle: RawHandle,
    ) {
        unreachable!()
    }

    fn upgrade_from_source_contract(
        &self,
        _sc_address: RawHandle,
        _gas: u64,
        _amount_handle: RawHandle,
        _source_contract_address_handle: RawHandle,
        _code_metadata_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
    ) {
        unreachable!()
    }

    fn upgrade_contract(
        &self,
        _sc_address: RawHandle,
        _gas: u64,
        _amount_handle: RawHandle,
        _code_handle: RawHandle,
        _code_metadata_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
    ) {
        unreachable!()
    }

    fn execute_on_dest_context_raw(
        &self,
        _gas: u64,
        _address: RawHandle,
        _value: RawHandle,
        _endpoint_name_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
        _result_handle: RawHandle,
    ) {
        unreachable!()
    }

    fn execute_on_same_context_raw(
        &self,
        _gas: u64,
        _address: RawHandle,
        _value: RawHandle,
        _endpoint_name_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
        _result_handle: RawHandle,
    ) {
        unreachable!()
    }

    fn execute_on_dest_context_readonly_raw(
        &self,
        _gas: u64,
        _address: RawHandle,
        _endpoint_name_handle: RawHandle,
        _arg_buffer_handle: RawHandle,
        _result_handle: RawHandle,
    ) {
        unreachable!()
    }

    fn clean_return_data(&self) {
        unreachable!()
    }

    fn delete_from_return_data(&self, _index: usize) {
        unreachable!()
    }
}