Files
tycho-protocol-sdk/substreams
Tamara eaca47479b feat: Simulate txs against RPC (#261)
* feat: (WIP) Simulate txs against RPC

* fix: include test_executor_addresses.json

We should probably fetch this from execution instead. Will do later

* feat: (WIP) Attempt to use TokenProxyOverwriteFactory

* feat: (WIP) Attempt to use TokenProxyOverwriteFactory

* feat: Add simulating execution using debug_traceCall

Decoded amount out from execution and compared with the one from simulation
Allow for printing the execution traces
Moved all execution methods into execution.rs
Created traces.rs (heavily clauded) that prints the traces nicely and gets the function selectors frm 4byte (I decided not to use EtherscanIdentifier from foundry because adding foundry as a dependency is really heavy and I expect problems because of it)

Temporary: hardcoded storage slots for test_weighted_pool_v4 to pass

#time 1h 55m

* feat: Use BalanceSlotDetector and AllowanceSlotDetector from tycho_ethereum

#time 1h 14m

* fix: Improve traces.rs

#time 2m

* feat: Add skip_execution

Also get tycho router bytecode at compile time

#time 22m

* test: Skip tests that are before the Shanghai upgrade

Remove unnecessary TODOs

#time 35m

* feat: Point tycho dependencies to specific commits

#time 9m

* fix: Set historical_trade to true in TychoRouterEncoderBuilder

#time 41m


#time 0m

* feat: Improve traces.rs (use foundry instead of 4bytes)

Improved the format of the printed trace as well

#time 1h 7m

* fix: After merge fixes

#time 3m

* feat: Use new executors_addresses in tycho-execution and read it at startup

#time 1h 25m

* feat: Create a new flag to enable execution_traces

#time 9m

* fix: Small code, log and trace improvements

Add trying to decode method's calldatas in tracing

#time 1m

* fix: Simplify simulate_transactions_with_tracing by introducing a new method: bytes_to_fixed_32

#time 13m

* fix: After merge fixes

#time 1m

* fix: Include executor's bytecode at compile time

#time 11m

---------

Co-authored-by: TAMARA LIPOWSKI <data.lipowski@extaccount.com>
Co-authored-by: Diana Carvalho <diana@propellerheads.xyz>
2025-09-23 15:57:43 +01:00
..
2025-09-23 00:42:23 -04:00
2024-03-14 01:24:43 +00:00
2025-06-26 12:33:31 +02:00

Substreams Indexing Integrations

Please refer to the official Substreams Indexing docs.

Release

To release a package simply tag a commit with the package name and its version: e.g. ethereum-balancer-0.1.0. This will create a release and automatically build and push the spkg into our registry.

Note

The CD pipeline will error if the Cargo version is not the same as the version in the tag.

Releases are immutable so do not try to delete tags or build the same release twice since this will error.

Pre-release

To create a pre-release for testing in dev you can start CD pipeline manually supplying the package you'd like to pre-release. This will create a [package].pre-[commit-sha] release in our spkg repository which you can use to run the substream.

For forked protocols you'll need to also supply the config file name, e.g. ethereum-pancakeswap.

Test your implementation

To run a full end-to-end integration test you can refer to the testing script documentation.