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 the EraId
  • era_id_size - size of the EraId (in bytes)
  • era_info_ptr - pointer in wasm memory to bytes representing the EraInfo
  • era_info_size - size of the EraInfo (in bytes)