testnumbat_wasm/api/uncallable/
blockchain_api_uncallable.rs

1use alloc::boxed::Box;
2
3use crate::{
4    api::BlockchainApi,
5    types::{Address, BigUint, DcdtTokenData, ManagedAddress, TokenIdentifier, H256},
6};
7
8use super::UncallableApi;
9
10impl BlockchainApi for UncallableApi {
11    fn get_sc_address_legacy(&self) -> Address {
12        unreachable!()
13    }
14
15    fn get_owner_address_legacy(&self) -> Address {
16        unreachable!()
17    }
18
19    fn get_shard_of_address_legacy(&self, _address: &Address) -> u32 {
20        unreachable!()
21    }
22
23    fn is_smart_contract_legacy(&self, _address: &Address) -> bool {
24        unreachable!()
25    }
26
27    fn get_caller_legacy(&self) -> Address {
28        unreachable!()
29    }
30
31    fn get_balance_legacy(&self, _address: &Address) -> BigUint<Self> {
32        unreachable!()
33    }
34
35    fn get_state_root_hash_legacy(&self) -> H256 {
36        unreachable!()
37    }
38
39    fn get_tx_hash_legacy(&self) -> H256 {
40        unreachable!()
41    }
42
43    fn get_gas_left(&self) -> u64 {
44        unreachable!()
45    }
46
47    fn get_block_timestamp(&self) -> u64 {
48        unreachable!()
49    }
50
51    fn get_block_nonce(&self) -> u64 {
52        unreachable!()
53    }
54
55    fn get_block_round(&self) -> u64 {
56        unreachable!()
57    }
58
59    fn get_block_epoch(&self) -> u64 {
60        unreachable!()
61    }
62
63    fn get_block_random_seed_legacy(&self) -> Box<[u8; 48]> {
64        unreachable!()
65    }
66
67    fn get_prev_block_timestamp(&self) -> u64 {
68        unreachable!()
69    }
70
71    fn get_prev_block_nonce(&self) -> u64 {
72        unreachable!()
73    }
74
75    fn get_prev_block_round(&self) -> u64 {
76        unreachable!()
77    }
78
79    fn get_prev_block_epoch(&self) -> u64 {
80        unreachable!()
81    }
82
83    fn get_prev_block_random_seed_legacy(&self) -> Box<[u8; 48]> {
84        unreachable!()
85    }
86
87    fn get_current_dcdt_nft_nonce(
88        &self,
89        _address: &Address,
90        _token: &TokenIdentifier<Self>,
91    ) -> u64 {
92        unreachable!()
93    }
94
95    // TODO: Include nonce and create a map like: TokenId -> Nonce -> Amount
96    fn get_dcdt_balance(
97        &self,
98        _address: &ManagedAddress<Self>,
99        _token: &TokenIdentifier<Self>,
100        _nonce: u64,
101    ) -> BigUint<Self> {
102        unreachable!()
103    }
104
105    fn get_dcdt_token_data(
106        &self,
107        _address: &ManagedAddress<Self>,
108        _token: &TokenIdentifier<Self>,
109        _nonce: u64,
110    ) -> DcdtTokenData<Self> {
111        unreachable!()
112    }
113}