Function update_dapi_with_signed_data

Source
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 use
  • timestamp_checker The timestamp checker/validator to use
  • airnodes Airnode addresses
  • template_ids Template IDs
  • timestamps Timestamps used in the signatures
  • data Response data (an int256 encoded in contract ABI per Beacon)
  • signatures Template ID, a timestamp and the response data signed by the respective Airnode address per Beacon