Commit Graph

17 Commits

Author SHA1 Message Date
dianacarvalho1
22843cfd3b feat: Add encoding to test suite (#259)
* feat: Add encoding to test suite

Use execution from simulation
Add protocol_system to all test files and pass it to run tycho
Add encoding_utils.rs

#time 5h 0m

#time 1m

#time 7m

* refactor: Move encoding swap to its own method to simplify main code

Rename encoding_utils.rs to encoding.rs

#time 20m


#time 0m

#time 0m
2025-09-11 14:30:49 +01:00
TAMARA LIPOWSKI
cb3b06bb02 feat: update tycho-simulation version 2025-09-10 11:44:16 -04:00
TAMARA LIPOWSKI
f5bcd31d66 feat: Rust testing SDK - implement get_amount_out simulation 2025-09-10 11:44:16 -04:00
adrian
580a8822a5 feat: add match-test argument to test cli 2025-09-10 16:36:08 +02:00
Tamara
93b969e41f feat(Testing SDK): Pass adapter path to decoder (#249)
* feat: Pass adapter contract to decoder

This was the most elegant solution we could come up with at the moment for having the proper adapter in the builder.

Notes:
- The default adapter bytecode in tycho-simulation is still loaded at compile time.
- If the adapter bytecode is passed to the decoder, it will be loaded dynamically at runtime and used instead the bytecodes in tycho-simulation.
- The adapter bytecode is used in the builder to get capabilities and thus spot prices before returning the state, so just overwriting the adapter in the state is way too cumbersome. We went with this solution since it was the lesser evil, even though we know it leaks VM-specific info to non-vm protocols (which was already being done anyway with the balances).

* feat: Take a struct of vm_attributes instead of just adapter path

So that we don't need to change the interface in the future

* chore: remove comment - we are no longer blocked

This is fixed with the latest change to pass adapter contract to decoder

* feat: Use DecoderContext instead of VMAttributes

- More easily extendable
- Doesn't break the existing decoder interface

---------

Co-authored-by: TAMARA LIPOWSKI <data.lipowski@extaccount.com>
2025-09-08 14:34:27 -04:00
adrian
5a9a757a06 fix: downgrade tycho deps to compatible version with tycho-simulation 2025-09-08 11:29:28 +02:00
adrian
87c9a8b60f test: check that all the existing substreams integration test files can be parsed 2025-09-03 08:55:29 -04:00
TAMARA LIPOWSKI
742948cdf5 feat: Fix tycho-common and -client dependencies
- These should match what we currently have in simulation and execution.
- Also nightly fmt
2025-09-03 08:55:29 -04:00
TAMARA LIPOWSKI
c12affb3ca docs: Add README and logging to match python package
- The readme is useful for us during development. This should be eventually removed and replaced with gitbook docs.
2025-09-03 08:55:29 -04:00
adrian
8205c2a8d5 feat: handle errors in protocol-testing 2025-09-03 08:55:29 -04:00
adrian
f3500dff44 feat: update tycho deps and upgrade code 2025-09-03 08:55:29 -04:00
Thales
def49e7ddf feat: fix test runner. Working version to get_amount_out 2025-09-03 08:55:29 -04:00
Thales Lima
052d11b759 feat: Add tokens balance check and component diff 2025-09-03 08:55:29 -04:00
Thales Lima
2c8e349280 feat: Add methods to fetch state from Tycho RPC 2025-09-03 08:55:29 -04:00
Thales Lima
e3ae70ab43 feat: add Tycho Runner to run separate tycho processes 2025-09-03 08:55:29 -04:00
Thales Lima
4425fe1680 feat: add util to build SPKG with a modified start block 2025-09-03 08:55:29 -04:00
Thales Lima
8b6beb0214 feat: create rust-testing module 2025-09-03 08:55:29 -04:00