[][src]Trait nimiq_account::AccountTransactionInteraction

pub trait AccountTransactionInteraction: Sized {
    fn new_contract(
        account_type: AccountType,
        balance: Coin,
        transaction: &Transaction,
        block_height: u32
    ) -> Result<Self, AccountError>;
fn create(
        balance: Coin,
        transaction: &Transaction,
        block_height: u32
    ) -> Result<Self, AccountError>;
fn with_incoming_transaction(
        &self,
        transaction: &Transaction,
        block_height: u32
    ) -> Result<Self, AccountError>;
fn without_incoming_transaction(
        &self,
        transaction: &Transaction,
        block_height: u32
    ) -> Result<Self, AccountError>;
fn with_outgoing_transaction(
        &self,
        transaction: &Transaction,
        block_height: u32
    ) -> Result<Self, AccountError>;
fn without_outgoing_transaction(
        &self,
        transaction: &Transaction,
        block_height: u32
    ) -> Result<Self, AccountError>; }

Required methods

fn new_contract(
    account_type: AccountType,
    balance: Coin,
    transaction: &Transaction,
    block_height: u32
) -> Result<Self, AccountError>

fn create(
    balance: Coin,
    transaction: &Transaction,
    block_height: u32
) -> Result<Self, AccountError>

fn with_incoming_transaction(
    &self,
    transaction: &Transaction,
    block_height: u32
) -> Result<Self, AccountError>

fn without_incoming_transaction(
    &self,
    transaction: &Transaction,
    block_height: u32
) -> Result<Self, AccountError>

fn with_outgoing_transaction(
    &self,
    transaction: &Transaction,
    block_height: u32
) -> Result<Self, AccountError>

fn without_outgoing_transaction(
    &self,
    transaction: &Transaction,
    block_height: u32
) -> Result<Self, AccountError>

Loading content...

Implementors

impl AccountTransactionInteraction for Account[src]

impl AccountTransactionInteraction for BasicAccount[src]

impl AccountTransactionInteraction for HashedTimeLockedContract[src]

impl AccountTransactionInteraction for VestingContract[src]

Loading content...