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
use crate::{
api::{CallValueApi, CallValueApiImpl},
types::EsdtTokenType,
};
use super::UncallableApi;
impl CallValueApi for UncallableApi {
type CallValueApiImpl = UncallableApi;
fn call_value_api_impl() -> Self::CallValueApiImpl {
unreachable!()
}
}
impl CallValueApiImpl for UncallableApi {
fn check_not_payable(&self) {
unreachable!()
}
fn load_egld_value(&self, _dest: Self::BigIntHandle) {
unreachable!()
}
fn load_single_esdt_value(&self, _dest: Self::BigIntHandle) {
unreachable!()
}
fn token(&self) -> Option<Self::ManagedBufferHandle> {
unreachable!()
}
fn esdt_token_nonce(&self) -> u64 {
unreachable!()
}
fn esdt_token_type(&self) -> EsdtTokenType {
unreachable!()
}
fn esdt_num_transfers(&self) -> usize {
unreachable!()
}
fn esdt_value_by_index(&self, _index: usize) -> Self::BigIntHandle {
unreachable!()
}
fn token_by_index(&self, _index: usize) -> Self::ManagedBufferHandle {
unreachable!()
}
fn esdt_token_nonce_by_index(&self, _index: usize) -> u64 {
unreachable!()
}
fn esdt_token_type_by_index(&self, _index: usize) -> EsdtTokenType {
unreachable!()
}
}