pub trait TransactionEventEncodable {
// Required methods
fn encode_as_event(&self) -> Vec<u8> ⓘ;
fn encode_as_hex_event(&self) -> String;
}
Required Methods§
Sourcefn encode_as_event(&self) -> Vec<u8> ⓘ
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
Sourcefn encode_as_hex_event(&self) -> String
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