You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
Just had a question... I noticed in uniswap_v3.rs you are defining the swap event signature and writing code to decode swap logs, can't you instead just generate this code using abigen with ethers-rs?
Something like:
let event = UniswapV3PoolEvents::decode_log(&RawLog {
topics: log.topics,
data: log.data.to_vec(),
});
Thanks
Q
The text was updated successfully, but these errors were encountered:
Yes I believe this (or something similar) would work. I don't think there is a runtime cost to getting the event signatures from abigen but that would be the only reason to use a const the way we do now.
As for decoding the log, this was just an early implementation that just hasnt been updated yet, feel free to open up an issue/PR if you would like!
Hey Guys
Great work on
cfmm-rs
anduniswapv3_math-rs
!!Just had a question... I noticed in
uniswap_v3.rs
you are defining the swap event signature and writing code to decode swap logs, can't you instead just generate this code using abigen withethers-rs
?Something like:
Thanks
Q
The text was updated successfully, but these errors were encountered: