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
use alloc::boxed::Box;
use crate::{
api::BlockchainApi,
types::{Address, BigUint, EsdtTokenData, ManagedAddress, TokenIdentifier, H256},
};
use super::UncallableApi;
impl BlockchainApi for UncallableApi {
fn get_sc_address_legacy(&self) -> Address {
unreachable!()
}
fn get_owner_address_legacy(&self) -> Address {
unreachable!()
}
fn get_shard_of_address_legacy(&self, _address: &Address) -> u32 {
unreachable!()
}
fn is_smart_contract_legacy(&self, _address: &Address) -> bool {
unreachable!()
}
fn get_caller_legacy(&self) -> Address {
unreachable!()
}
fn get_balance_legacy(&self, _address: &Address) -> BigUint<Self> {
unreachable!()
}
fn get_state_root_hash_legacy(&self) -> H256 {
unreachable!()
}
fn get_tx_hash_legacy(&self) -> H256 {
unreachable!()
}
fn get_gas_left(&self) -> u64 {
unreachable!()
}
fn get_block_timestamp(&self) -> u64 {
unreachable!()
}
fn get_block_nonce(&self) -> u64 {
unreachable!()
}
fn get_block_round(&self) -> u64 {
unreachable!()
}
fn get_block_epoch(&self) -> u64 {
unreachable!()
}
fn get_block_random_seed_legacy(&self) -> Box<[u8; 48]> {
unreachable!()
}
fn get_prev_block_timestamp(&self) -> u64 {
unreachable!()
}
fn get_prev_block_nonce(&self) -> u64 {
unreachable!()
}
fn get_prev_block_round(&self) -> u64 {
unreachable!()
}
fn get_prev_block_epoch(&self) -> u64 {
unreachable!()
}
fn get_prev_block_random_seed_legacy(&self) -> Box<[u8; 48]> {
unreachable!()
}
fn get_current_esdt_nft_nonce(
&self,
_address: &ManagedAddress<Self>,
_token: &TokenIdentifier<Self>,
) -> u64 {
unreachable!()
}
fn get_esdt_balance(
&self,
_address: &ManagedAddress<Self>,
_token: &TokenIdentifier<Self>,
_nonce: u64,
) -> BigUint<Self> {
unreachable!()
}
fn get_esdt_token_data(
&self,
_address: &ManagedAddress<Self>,
_token: &TokenIdentifier<Self>,
_nonce: u64,
) -> EsdtTokenData<Self> {
unreachable!()
}
}