pub struct IRC2 { /* private fields */ }Implementations§
Source§impl IRC2
impl IRC2
pub fn new(icon_service: IconService, contract_address: String) -> Self
pub async fn name(&self) -> Result<Value, Box<dyn Error>>
pub async fn symbol(&self) -> Result<Value, Box<dyn Error>>
pub async fn decimals(&self) -> Result<Value, Box<dyn Error>>
pub async fn total_supply(&self) -> Result<Value, Box<dyn Error>>
pub async fn balance_of(&self, account: String) -> Result<Value, Box<dyn Error>>
pub async fn transfer( &self, wallet: Wallet, to: &str, value: &str, version: &str, nid: &str, nonce: &str, step_limit: &str, ) -> Result<Value, Box<dyn Error>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IRC2
impl<'de> Deserialize<'de> for IRC2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IRC2
impl RefUnwindSafe for IRC2
impl Send for IRC2
impl Sync for IRC2
impl Unpin for IRC2
impl UnwindSafe for IRC2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more