normalise_event_topic

Documentation for eth_defi.vault.flow_events.normalise_event_topic function.

normalise_event_topic(topic)

Normalise an event topic to a lower-case 0x-prefixed hex string.

Parameters

topic (Union[str, bytes]) – Topic value from Web3.py or Hypersync.

Returns

Lower-case 0x-prefixed topic.

Return type

str