Trait forest_message::Message[][src]

pub trait Message {
    fn from(&self) -> &Address;
fn to(&self) -> &Address;
fn sequence(&self) -> u64;
fn value(&self) -> &TokenAmount;
fn method_num(&self) -> MethodNum;
fn params(&self) -> &Serialized;
fn set_gas_limit(&mut self, amount: i64);
fn set_sequence(&mut self, sequence: u64);
fn gas_limit(&self) -> i64;
fn required_funds(&self) -> TokenAmount;
fn gas_fee_cap(&self) -> &TokenAmount;
fn gas_premium(&self) -> &TokenAmount;
fn set_gas_fee_cap(&mut self, cap: TokenAmount);
fn set_gas_premium(&mut self, prem: TokenAmount); }

Message interface to interact with Signed and unsigned messages in a generic context.

Required methods

fn from(&self) -> &Address[src]

Returns the from address of the message.

fn to(&self) -> &Address[src]

Returns the destination address of the message.

fn sequence(&self) -> u64[src]

Returns the message sequence or nonce.

fn value(&self) -> &TokenAmount[src]

Returns the amount sent in message.

fn method_num(&self) -> MethodNum[src]

Returns the method number to be called.

fn params(&self) -> &Serialized[src]

Returns the encoded parameters for the method call.

fn set_gas_limit(&mut self, amount: i64)[src]

sets the gas limit for the message.

fn set_sequence(&mut self, sequence: u64)[src]

sets a new sequence to the message.

fn gas_limit(&self) -> i64[src]

Returns the gas limit for the message.

fn required_funds(&self) -> TokenAmount[src]

Returns the required funds for the message.

fn gas_fee_cap(&self) -> &TokenAmount[src]

gets gas fee cap for the message.

fn gas_premium(&self) -> &TokenAmount[src]

gets gas premium for the message.

fn set_gas_fee_cap(&mut self, cap: TokenAmount)[src]

sets the gas fee cap.

fn set_gas_premium(&mut self, prem: TokenAmount)[src]

sets the gas premium.

Loading content...

Implementors

impl Message for ChainMessage[src]

impl Message for SignedMessage[src]

impl Message for UnsignedMessage[src]

Loading content...