pub fn update_dapi_with_signed_data<D: Storage<DataPoint>, S: SignatureManger, T: TimestampChecker>(
datapoint_storage: &mut D,
timestamp_checker: &T,
airnodes: Vec<Bytes>,
template_ids: Vec<[u8; 32]>,
timestamps: Vec<[u8; 32]>,
data: Vec<Bytes>,
signatures: Vec<Bytes>,
) -> Result<Bytes32, Error>Expand description
Updates a dAPI using data signed by the respective Airnodes without requiring a request or subscription. The beacons for which the signature is omitted will be read from the storage. Returns the dAPI ID.
ยงArguments
datapoint_storageThe datapoint storage trait implementation to usetimestamp_checkerThe timestamp checker/validator to useairnodesAirnode addressestemplate_idsTemplate IDstimestampsTimestamps used in the signaturesdataResponse data (anint256encoded in contract ABI per Beacon)signaturesTemplate ID, a timestamp and the response data signed by the respective Airnode address per Beacon