I pushed a fix-manual-stringquery with StringQuery(jsonQuery) changed to StringQuery(abiQuery), which fixes the issue for query data, but not for submitted values. The output of python examples/text_query_example.py is:
{"type":"StringQuery","text":"What is the meaning of life?"}
tipQuery data: 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000b537472696e67517565727900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001c5768617420697320746865206d65616e696e67206f66206c6966653f00000000
tipQuery ID: 0xf5ad7e8ff76885a46b3dcf206b29e67b5b6987119c778c95589356211f46ce25
submitValue (str): Please refer to: https://en.wikipedia.org/wiki/Meaning_of_life
submitValue (bytes): 0x000000000000000000000000000000000000000000000000000000000000003e506c6561736520726566657220746f3a2068747470733a2f2f656e2e77696b6970656469612e6f72672f77696b692f4d65616e696e675f6f665f6c6966650000
Decoded value (float): Please refer to: https://en.wikipedia.org/wiki/Meaning_of_life
Currently the encoding is off for StringQueries. See the text encoding example: https://github.com/tellor-io/telliot-feeds/blob/main/examples/text_query_example.py
I pushed a
fix-manual-stringquery
withStringQuery(jsonQuery)
changed toStringQuery(abiQuery)
, which fixes the issue for query data, but not for submitted values. The output ofpython examples/text_query_example.py
is: