Skip to main content

ActExt

Trait ActExt 

Source
pub trait ActExt {
    // Required methods
    fn act_create(
        &self,
        name: String,
        symbol: String,
        decimals: u8,
        total_supply: U256,
        issuer_key: PublicKey,
        payment: &PaymentOption,
    ) -> impl Future<Output = Result<(PublicKey, XorName), String>> + Send;
    fn act_unspent(
        &self,
        pubkey: &PublicKey,
        spend: PublicKey,
    ) -> impl Future<Output = Result<(XorName, U256), String>> + Send;
    fn act_balance(
        &self,
        pubkey: &PublicKey,
        spends: Vec<PublicKey>,
    ) -> impl Future<Output = Result<U256, String>> + Send;
    fn act_token_info(
        &self,
        token_id: &XorName,
    ) -> impl Future<Output = Result<TokenInfo, String>> + Send;
}

Required Methods§

Source

fn act_create( &self, name: String, symbol: String, decimals: u8, total_supply: U256, issuer_key: PublicKey, payment: &PaymentOption, ) -> impl Future<Output = Result<(PublicKey, XorName), String>> + Send

Source

fn act_unspent( &self, pubkey: &PublicKey, spend: PublicKey, ) -> impl Future<Output = Result<(XorName, U256), String>> + Send

Source

fn act_balance( &self, pubkey: &PublicKey, spends: Vec<PublicKey>, ) -> impl Future<Output = Result<U256, String>> + Send

Source

fn act_token_info( &self, token_id: &XorName, ) -> impl Future<Output = Result<TokenInfo, String>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ActExt for Client

Source§

async fn act_create( &self, name: String, symbol: String, decimals: u8, total_supply: U256, to: PublicKey, payment: &PaymentOption, ) -> Result<(PublicKey, XorName), String>

Source§

async fn act_unspent( &self, output: &PublicKey, spend: PublicKey, ) -> Result<(XorName, U256), String>

Source§

async fn act_balance( &self, pubkey: &PublicKey, spends: Vec<PublicKey>, ) -> Result<U256, String>

Source§

async fn act_token_info(&self, token_id: &XorName) -> Result<TokenInfo, String>

Implementors§