Commit Graph

623 Commits

Author SHA1 Message Date
Florian Pellissier
bc2cd6bab2 refactor(testing): miscellaneous improvements and bugfixes
Includes bugfix on `tycho-indexer-client` and `protosim_py`, a script to simplify setting up testing python env and cli improvements. Also add support for building runtime for SwapAdapters with many args that was bugged before.
2024-08-19 11:56:52 +02:00
Florian Pellissier
c218252548 refactor(curve): stateless contracts as state attribute instead of static. 2024-08-15 10:42:06 +02:00
Florian Pellissier
420cf13466 refactor(curve): Remove unnecessary WETH stateless contracts
These contracts became unnecessary because we handle things differently on the Adapter side, we use native eth instead of WETH when possible.
2024-08-13 11:58:21 +02:00
Florian Pellissier
5c25d2fac0 style(curve): Fix CI 2024-08-09 11:24:36 +02:00
Florian Pellissier
bd59af67ed fix(curve): Add weth as stateless contract for CryptoPool with ETH 2024-08-09 11:00:58 +02:00
Florian Pellissier
1f2316713f fix(curve): Update integration tests 2024-08-09 10:39:58 +02:00
Florian Pellissier
6ac29335c7 docs(curve-substreams): Add docs for each tests 2024-08-09 10:39:14 +02:00
Florian Pellissier
d8d7a6d9fd fix(curve): add new missing initialized account and update Tycho binary 2024-08-09 10:39:14 +02:00
Florian Pellissier
388902b2ed fix(curve): index tricrypto2 dependencies 2024-08-09 10:39:14 +02:00
Florian Pellissier
9fa382ea60 refactor(curve): avoid RPC call when possible 2024-08-09 10:39:14 +02:00
Florian Pellissier
65ac765284 refactor(curve): add utils functions on ProtocolComponent 2024-08-09 10:39:14 +02:00
Florian Pellissier
a46e1e4a57 fix(curve): fix sUSD pool 2024-08-09 10:39:14 +02:00
Florian Pellissier
2f0b084cc6 refactor(curve): rename tests 2024-08-09 10:39:14 +02:00
Florian Pellissier
4d528ddab3 fix(curve): fix curve tests after SDKv2 update, also add a few missing tests 2024-08-09 10:39:14 +02:00
tvinagre
115e552f2f Merge pull request #57 from propeller-heads/tl/sdk-improvements
SDK Improvements
2024-08-08 17:58:36 -03:00
Thales Lima
5eea31db40 Rename adapter_handler to adapter_builder and move responsibilities 2024-08-08 17:58:20 -03:00
Thales Lima
c0382fefdf Add aftermath logs 2024-08-08 17:58:20 -03:00
Thales Lima
c4024b9849 Better error diff and colorize it 2024-08-08 17:58:20 -03:00
Florian Pellissier
139f7ac3f5 refactor(substreams-testing): Remove shallow functions, be more 🐍 2024-08-08 17:58:20 -03:00
Florian Pellissier
1f9fe8d583 refactor(substreams-testing): Use Pydantic validators, Hexbytes and improve description 2024-08-08 17:58:20 -03:00
Florian Pellissier
95efda0423 refactor(substreams-testing): Use Pydantic to deserialize test_assets.yaml 2024-08-08 17:58:20 -03:00
kayibal
09d266a810 fix: Update requirements.txt
Assume both protosim_py and tycho-client are available from pypi.
2024-08-08 17:58:20 -03:00
kayibal
e302bfb4a6 feat: Request only contracts of interest
Instead of requesting all contracts just get what is specified by the components.
2024-08-08 17:58:20 -03:00
kayibal
9f4503e2a9 fix: Misc fixes around byte encoding.
Also initialize TychoDB for each test case individually.
2024-08-08 17:58:20 -03:00
kayibal
9df366b29d fix(balancer): Change pool_id encoding to utf-8.
Since it is used to replace component_id, it should be a string as well.
2024-08-08 17:58:20 -03:00
Thales Lima
5238141771 Fix hexbytes comparison, fix attribute access 2024-08-08 17:58:20 -03:00
Thales Lima
cb6e997375 Add token_factory 2024-08-08 17:58:20 -03:00
Thales Lima
d0c248fcb6 Add build_snapshot_message method 2024-08-08 17:58:20 -03:00
Thales
d893ab264c Start using external modules 2024-08-08 17:58:20 -03:00
Thales Lima
8ea02613a2 Improve README, add foundry to docker, add handler to build targets 2024-08-08 17:58:20 -03:00
Thales
11619bf8be Add initialization-block to tycho runner, fix docker and improve docs 2024-08-08 17:58:20 -03:00
Pierre
67f10e777a Merge pull request #63 from propeller-heads/revert-58-pm/eng-3406-add-swap-bytes-param
Revert "ENG-3406: Add new bytes parameter to swap"
2024-08-08 22:27:06 +02:00
Pierre
b3e3672172 Revert "ENG-3406: Add new bytes parameter to swap" 2024-08-08 22:24:35 +02:00
Pierre
9ef9782451 Merge pull request #58 from propeller-heads/pm/eng-3406-add-swap-bytes-param
ENG-3406: Add new bytes parameter to swap
2024-08-05 20:16:55 +02:00
PierreMkt
07ca52b2ff chore(adapters): Address PR review
keep mock data as empty bytes
2024-08-05 13:56:28 -04:00
PierreMkt
36c7e94e00 Merge branch 'refs/heads/main' into pm/eng-3406-add-swap-bytes-param 2024-08-05 10:44:55 -04:00
Alan Höng
4ae49ea207 Merge pull request #59 from propeller-heads/cz/usv2-integration-test
Fix USV2 integration test
2024-08-05 14:40:56 +02:00
czanella
1ab96ce292 Update other failing tests 2024-08-05 10:32:43 +01:00
czanella
30bd0c2a5c Fix some assertions in integration test
The foundation is:
marginal price > executed price > price after swap.

And this check is verified for multiple amounts
2024-08-03 10:54:25 +01:00
czanella
9411fc2b67 Discount fees from USV2 getPriceAt logic
add marginal price capability
2024-08-03 10:53:25 +01:00
PierreMkt
6f41147f91 feat(adapters): decode reduceFee bool from bytes data
TODO: apply reduce fee logic
2024-08-02 12:49:37 -04:00
PierreMkt
ec903734e0 test(adapters): Fix balancer getCapabilities test
returns HardLimits too
2024-08-02 12:00:54 -04:00
PierreMkt
034d5ac8c2 feat(adapters): Add new bytes parameter to swap
that allows arbitrary data to be passed
2024-08-02 11:55:00 -04:00
Alan Höng
75e8bdf96f Merge pull request #48 from propeller-heads/sdk/ENG-3338-add-third-party-pool
SDK V2: Add ThirdPartyPool for integration testing
2024-08-02 11:31:50 +02:00
Alan Höng
97f1d43e5b Merge pull request #54 from propeller-heads/ah/balancer-misc-updates
feat(balancer): Add update markers & rate providers
2024-08-02 11:01:02 +02:00
kayibal
ac279502c8 chore(balancer): formatting 2024-08-01 12:34:38 +02:00
kayibal
2e50eaf4ba feat(testing): Nicer cli; expose trace parameter
Nicer name for the cli args and expose the vm_traces flag to quickly enable/disable tracing.
2024-08-01 12:09:58 +02:00
kayibal
75b66a85af fix(balancer): Get all balancer tests working. 2024-08-01 12:03:01 +02:00
Florian Pellissier
a6cff51bf6 feat: SDK improvements
Add a way to pull stateless contracts code from node, add more settings to test_assets.yaml, add logic to allow dynamic stateless contract by calling another contract
2024-07-30 16:24:20 +01:00
kayibal
3fab5d6ea7 chore(testing): Move requirements.txt 2024-07-30 11:48:16 +01:00