Commit Graph

632 Commits

Author SHA1 Message Date
Florian Pellissier
d3fa2103a1 Merge branch 'docs' into zz/update-docs-summary 2024-08-21 15:42:34 +02:00
Florian Pellissier
467a117a97 docs: update summary 2024-08-21 14:44:59 +02:00
Zizou
9c140a71af Merge pull request #67 from propeller-heads/zz/sdk/improve-onboarding-process
refactor: make onboarding easier
2024-08-20 11:33:20 +02:00
Florian Pellissier
28dee5e7b7 docs(indexing): add special notice for pool_id 2024-08-20 11:32:01 +02:00
Zizou
8bc4a41544 Merge pull request #56 from propeller-heads/fp/curve-fixes
Fix Curve after SDKv2 update
2024-08-20 09:11:20 +02:00
Florian Pellissier
c7b1796f7d refactor(testing): make setup_env.sh runnable only from within /testing 2024-08-20 09:07:34 +02:00
Florian Pellissier
2ad12cb659 docs(indexing): miscellaneous small docs improvements 2024-08-20 09:06:52 +02:00
Florian Pellissier
6bd96374b5 docs(indexing): add docs for reserved attributes 2024-08-19 11:56:55 +02:00
Florian Pellissier
37f1fbfe04 docs(substreams): miscellaneous docs improvements and update 2024-08-19 11:56:55 +02:00
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