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

Method decode_logs

src/decode.rs:41–51  ·  view source on GitHub ↗
(&self, logs: Vec<Log>, py: Python<'py>)

Source from the content-addressed store, hash-verified

39 }
40
41 pub fn decode_logs<'py>(&self, logs: Vec<Log>, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
42 let decoder = self.clone();
43
44 future_into_py(py, async move {
45 Ok(tokio::task::spawn_blocking(move || {
46 Python::attach(|py| decoder.decode_logs_sync(logs, py))
47 })
48 .await
49 .unwrap())
50 })
51 }
52
53 pub fn decode_logs_sync(&self, logs: Vec<Log>, py: Python) -> Vec<Option<DecodedEvent>> {
54 logs.iter()

Callers 5

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 2

cloneMethod · 0.45
decode_logs_syncMethod · 0.45

Tested by

no test coverage detected