MCPcopy Create free account
hub / github.com/enviodev/hypersync-client-python / test_decode_logs

Function test_decode_logs

test.py:205–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203
204
205async def test_decode_logs():
206 client = make_client()
207 res = await client.get(QUERY)
208 decoder = hypersync.Decoder(
209 ["Transfer(address indexed from, address indexed to, uint256 value)"]
210 )
211 total_time = 0
212 for _ in range(NUM_BENCHMARK_RUNS):
213 start_time = time.time()
214 decoder.decode_logs_sync(res.data.logs)
215 execution_time = (time.time() - start_time) * 1000
216 total_time += execution_time
217 print(f"decode_logs time: {format(execution_time, '.9f')}ms")
218
219
220async def test_decode_events():

Callers 1

mainFunction · 0.85

Calls 3

decode_logs_syncMethod · 0.95
make_clientFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected