feat: add baseline mercury swap adapter#1076
Conversation
|
Hi! Thanks for the PR. I took a quick look at the substreams part. |
Thanks for the review! I explored trying to do this directly from events but this was not able to reconstruct the full state of the amm. That getQuoteState was specifically added for this purpose. Is it a deadend to use the getQuoteState flow? I will look into the storage diff method in the meantime. |
This approach should work, but it may affect indexing performance on Base. Since we can probably solve it by decoding storage diffs too, I’d prefer going with that instead. |
# Conflicts: # crates/tycho-execution/config/test_executor_addresses.json # crates/tycho-execution/contracts/scripts/deploy-executors.js # crates/tycho-execution/contracts/test/TychoRouterTestSetup.sol # crates/tycho-execution/contracts/test/assets/calldata.txt # crates/tycho-execution/src/encoding/evm/swap_encoder/swap_encoder_registry.rs # protocols/substreams/Cargo.toml # protocols/testing/run.Dockerfile # protocols/testing/src/state_registry.rs
|
@zach030 I have updated the integration to use storage slot tracking. |
Integration for Baseline Markets (https://www.baseline.markets/)
Summary:
getQuoteStaterpc callNotes:
tycho-indexer run --spkg .... The new cli option lets testing selectCustom.