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
use super::{ArwenBigInt, ArwenBigUint}; use crate::ArwenApiImpl; use elrond_wasm::api::ContractBase; impl ContractBase for ArwenApiImpl { type BigUint = ArwenBigUint; type BigInt = ArwenBigInt; type Storage = Self; type CallValue = Self; type SendApi = Self; type BlockchainApi = Self; type CryptoApi = Self; type LogApi = Self; type ErrorApi = Self; #[inline] fn get_storage_raw(&self) -> Self::Storage { self.clone() } #[inline] fn call_value(&self) -> Self::CallValue { self.clone() } #[inline] fn send(&self) -> Self::SendApi { self.clone() } #[inline] fn blockchain(&self) -> Self::BlockchainApi { self.clone() } #[inline] fn crypto(&self) -> Self::CryptoApi { self.clone() } #[inline] fn log_api_raw(&self) -> Self::LogApi { self.clone() } #[inline] fn error_api(&self) -> Self::ErrorApi { self.clone() } }