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_storage
The datapoint storage trait implementation to usetimestamp_checker
The timestamp checker/validator to useairnodes
Airnode addressestemplate_ids
Template IDstimestamps
Timestamps used in the signaturesdata
Response data (anint256
encoded in contract ABI per Beacon)signatures
Template ID, a timestamp and the response data signed by the respective Airnode address per Beacon