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, Handle},
    types::DctTokenType,
};

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 moax_value(&self) -> Handle {
        unreachable!()
    }

    fn dct_value(&self) -> Handle {
        unreachable!()
    }

    fn token(&self) -> Handle {
        unreachable!()
    }

    fn dct_token_nonce(&self) -> u64 {
        unreachable!()
    }

    fn dct_token_type(&self) -> DctTokenType {
        unreachable!()
    }

    fn dct_num_transfers(&self) -> usize {
        unreachable!()
    }

    fn dct_value_by_index(&self, _index: usize) -> Handle {
        unreachable!()
    }

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

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

    fn dct_token_type_by_index(&self, _index: usize) -> DctTokenType {
        unreachable!()
    }
}