[]Trait buffett_core::rpc::RpcSol

pub trait RpcSol: Sized + Send + Sync + 'static {
    type Metadata: Metadata;
    fn confirm_transaction(&self, _: Self::Metadata, _: String) -> Result<bool>;
fn get_account_info(&self, _: Self::Metadata, _: String) -> Result<Account>;
fn get_balance(&self, _: Self::Metadata, _: String) -> Result<i64>;
fn get_finality(&self, _: Self::Metadata) -> Result<usize>;
fn get_last_id(&self, _: Self::Metadata) -> Result<String>;
fn get_signature_status(
        &self,
        _: Self::Metadata,
        _: String
    ) -> Result<RpcSignatureStatus>;
fn get_transaction_count(&self, _: Self::Metadata) -> Result<u64>;
fn request_airdrop(
        &self,
        _: Self::Metadata,
        _: String,
        _: u64
    ) -> Result<String>;
fn send_transaction(&self, _: Self::Metadata, _: Vec<u8>) -> Result<String>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }

Associated Types

type Metadata: Metadata

Requests metadata

Loading content...

Required methods

fn confirm_transaction(&self, _: Self::Metadata, _: String) -> Result<bool>

fn get_account_info(&self, _: Self::Metadata, _: String) -> Result<Account>

fn get_balance(&self, _: Self::Metadata, _: String) -> Result<i64>

fn get_finality(&self, _: Self::Metadata) -> Result<usize>

fn get_last_id(&self, _: Self::Metadata) -> Result<String>

fn get_signature_status(
    &self,
    _: Self::Metadata,
    _: String
) -> Result<RpcSignatureStatus>

fn get_transaction_count(&self, _: Self::Metadata) -> Result<u64>

fn request_airdrop(
    &self,
    _: Self::Metadata,
    _: String,
    _: u64
) -> Result<String>

fn send_transaction(&self, _: Self::Metadata, _: Vec<u8>) -> Result<String>

Loading content...

Provided methods

fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>

Transform this into an IoDelegate, automatically wrapping the parameters.

Loading content...

Implementors

impl RpcSol for RpcSolImpl[src]

type Metadata = Meta

fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>

Loading content...