Trait elrond_wasm::api::LogApi[][src]

pub trait LogApi {
    fn write_event_log(&self, topics_buffer: &ArgBuffer, data: &[u8]);
fn write_legacy_log(&self, topics: &[[u8; 32]], data: &[u8]); }
Expand description

Interface to only be used by code generated by the macros. The smart contract code doesn’t have access to these methods directly.

Required methods

fn write_event_log(&self, topics_buffer: &ArgBuffer, data: &[u8])[src]

Expand description

Saves an event log.

fn write_legacy_log(&self, topics: &[[u8; 32]], data: &[u8])[src]

Expand description

The legacy Arwen hook for saving event logs. It does the same, but only accepts 32-byte topics. Only kept for backwards compatibility.

Implementors