[][src]Trait hycon_rust::traits::Transaction

pub trait Transaction<AddressType, SignatureType, RecoveryType> {
    fn get_from(&self) -> Option<AddressType>;
fn get_to(&self) -> Option<AddressType>;
fn get_amount(&self) -> u64;
fn get_fee(&self) -> Option<u64>;
fn get_nonce(&self) -> Option<u32>;
fn get_signature(&self) -> Option<SignatureType>;
fn get_recovery(&self) -> Option<RecoveryType>; }

Defines behaviour for Transactions

Required methods

fn get_from(&self) -> Option<AddressType>

Returns an Option containing the From Address

fn get_to(&self) -> Option<AddressType>

Returns an Option containing the To Address

fn get_amount(&self) -> u64

Returns the Transaction amount

fn get_fee(&self) -> Option<u64>

Returns an Option containing he transaction fee

fn get_nonce(&self) -> Option<u32>

Returns an Option containing the transaction nonce

fn get_signature(&self) -> Option<SignatureType>

Returns an Option containing the transaction signature

fn get_recovery(&self) -> Option<RecoveryType>

Returns an Option containing the secp256k1 recovery parameter

Loading content...

Implementors

impl Transaction<[u8; 20], RecoverableSignature, RecoveryId> for ExodusTx[src]

impl Transaction<[u8; 20], RecoverableSignature, RecoveryId> for GenesisTx[src]

impl Transaction<[u8; 20], RecoverableSignature, RecoveryId> for SignedGenesisTx[src]

impl Transaction<[u8; 20], RecoverableSignature, RecoveryId> for SignedTx[src]

impl Transaction<[u8; 20], RecoverableSignature, RecoveryId> for Tx[src]

Loading content...