Function casper_contract::ext_ffi::casper_record_era_info [−][src]
pub unsafe extern "C" fn casper_record_era_info(
era_id_ptr: *const u8,
era_id_size: usize,
era_info_ptr: *const u8,
era_info_size: usize
) -> i32
Expand description
Records era info. Can only be called from within the auction contract. Needed to support system contract-based execution.
Arguments
era_id_ptr
- pointer in wasm memory to bytes representing theEraId
era_id_size
- size of theEraId
(in bytes)era_info_ptr
- pointer in wasm memory to bytes representing theEraInfo
era_info_size
- size of theEraInfo
(in bytes)