1
2
3
4
5
6
7
8
9
10
11
12
use crate::types::ArgBuffer;

/// Interface to only be used by code generated by the macros.
/// The smart contract code doesn't have access to these methods directly.
pub trait LogApi {
	/// Saves an event log.
	fn write_event_log(&self, topics_buffer: &ArgBuffer, data: &[u8]);

	/// The legacy Arwen hook for saving event logs. It does the same, but only accepts 32-byte topics.
	/// Only kept for backwards compatibility.
	fn write_legacy_log(&self, topics: &[[u8; 32]], data: &[u8]);
}