Function redstone::core::processor::process_input
pub fn process_input(bytes: Bytes, config: Config) -> (Vec<u256>, u64) Expand description
The main processor of the RedStone payload.
This function processes the provided payload bytes according to the specified configuration.
Arguments
config- Configuration of the payload processing.payload_bytes- Network-specific byte-list of the payload to be processed.
Returns
This function returns a tuple containing:
Vec<u256>- A vector of processed values extracted from the payload, one for each feed_ids as inConfig.u64- The timestamp of the processed data.
Example
let (values, size) = process_input(payload_bytes, config);