Trait TransactionEventEncodable

Source
pub trait TransactionEventEncodable {
    // Required methods
    fn encode_as_event(&self) -> Vec<u8> ;
    fn encode_as_hex_event(&self) -> String;
}

Required Methods§

Source

fn encode_as_event(&self) -> Vec<u8>

SCALE encodes the event

If you need to Hex and SCALE encode then call encode_as_hex_event

Source

fn encode_as_hex_event(&self) -> String

Hex and SCALE encodes the event

If you need to just SCALE encode then call encode_as_event

Implementors§