encode_bundle_data_id_topic

Documentation for eth_defi.chainlink.bundle_aggregator.encode_bundle_data_id_topic function.

encode_bundle_data_id_topic(data_id)

Encode an indexed bytes16 feed identifier as an event topic.

Solidity right-pads indexed fixed-size byte arrays to a 32-byte topic.

Parameters

data_id (bytes) – Chainlink bundle feed identifier.

Returns

0x-prefixed 32-byte event topic.

Raises

ValueError – If data_id is not exactly 16 bytes.

Return type

str