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

Function test_preset_query_logs_of_event

test.py:272–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270
271
272async def test_preset_query_logs_of_event():
273 start_time = time.time()
274 client = make_client()
275 contract_address = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
276 topic0 = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
277 query = hypersync.preset_query_logs_of_event(
278 contract_address, topic0, 17_000_000, 17_000_010
279 )
280 res = await client.get(query)
281 execution_time = (time.time() - start_time) * 1000
282 assert len(res.data.logs) > 1
283 print(f"preset_query_logs_of_event time: {format(execution_time, '.9f')}ms")
284
285
286def test_sig_to_topic0():

Callers 1

mainFunction · 0.85

Calls 2

make_clientFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected