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
use crate::{
    api::CallValueApi,
    types::{BigUint, EsdtTokenType, TokenIdentifier},
};

use super::UncallableApi;

impl CallValueApi for UncallableApi {
    fn check_not_payable(&self) {
        unreachable!()
    }

    fn egld_value(&self) -> BigUint<Self> {
        unreachable!()
    }

    fn esdt_value(&self) -> BigUint<Self> {
        unreachable!()
    }

    fn token(&self) -> TokenIdentifier<Self> {
        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) -> BigUint<Self> {
        unreachable!()
    }

    fn token_by_index(&self, _index: usize) -> TokenIdentifier<Self> {
        unreachable!()
    }

    fn esdt_token_nonce_by_index(&self, _index: usize) -> u64 {
        unreachable!()
    }

    fn esdt_token_type_by_index(&self, _index: usize) -> EsdtTokenType {
        unreachable!()
    }
}