Commit Graph

140 Commits

Author SHA1 Message Date
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
37f1fbfe04 docs(substreams): miscellaneous docs improvements and update 2024-08-19 11:56:55 +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
Florian Pellissier
95efda0423 refactor(substreams-testing): Use Pydantic to deserialize test_assets.yaml 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
11619bf8be Add initialization-block to tycho runner, fix docker and improve docs 2024-08-08 17:58:20 -03:00
kayibal
ac279502c8 chore(balancer): formatting 2024-08-01 12:34:38 +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
8196d1c3a1 fix(balancer): Add bpt tokens to components.
The pools support swapping in and out of balancer lp positions out of the box. So including the bpt token will likely be useful in the future.
2024-07-29 16:44:38 +01:00
kayibal
bb25ee7f15 WIP: balancer tests 2024-07-25 21:05:48 +01:00
kayibal
f5b4c54a99 chore: code formatting 2024-07-25 14:11:29 +01:00
kayibal
148fac276c feat(balancer): Add rate providers to static attributes.
Adds the rate providers and additional attributes to balancers static attributes. These will help in the future to migrate some of the components to use the DCI.

Adds a small attributes module to tycho-substreams to make json encoding a bit easier.
2024-07-25 14:11:29 +01:00
kayibal
2eb41d82f0 feat(tycho-substreams): Add builder for TransactionChanges.
This builder allows easier access to already changed contract addresses, and entity attributes while avoiding duplicated entries.

This is needed to implement the update markers on balancer substreams.
2024-07-25 14:11:29 +01:00
Thales Lima
1ce64123b9 Add remaining Balancer tests 2024-07-23 15:32:52 +02:00
Thales Lima
52ec30442b Add more Balancer tests 2024-07-23 15:32:52 +02:00
Thales Lima
19bf222e8e Add Balancer test, move requests to RPC Client class 2024-07-23 15:32:52 +02:00
Thales Lima
3ccf0a8a1f Add skip balance check flag for testing module 2024-07-23 15:32:52 +02:00
Thales Lima
e0c1ba3b50 Make tycho_client a python package, small bugfixes 2024-07-23 15:32:52 +02:00
Zizou
96f67362bf Merge pull request #37 from propeller-heads/zz/update-protobuf
Update protobuf and Balancer Substreams
2024-07-23 15:19:14 +02:00
Florian Pellissier
bd0a077917 refactor: Use new hybrid structs for Curve 2024-07-23 15:09:05 +02:00
Zizou
ead8e17082 Merge pull request #53 from propeller-heads/fp/fix-vm-indexing
fix(substreams): Fix storage changes indexing for DELEGATECALL
2024-07-22 10:25:14 +02:00
Florian Pellissier
1bd5e39956 feat: Add Balancer vault indexing 2024-07-22 03:48:47 +02:00
Florian Pellissier
a2e951aff3 refactor: make pool_id a static attribute 2024-07-22 03:48:47 +02:00
Florian Pellissier
47e6f08338 docs: add changelog 2024-07-22 03:48:47 +02:00
Florian Pellissier
84a3642f95 refactor: remove substreams logs 2024-07-22 03:48:47 +02:00
Florian Pellissier
f0b82691f8 chore: bump versions 2024-07-22 03:48:44 +02:00
Florian Pellissier
7ce86db2d6 fix: correct change type for pool_id 2024-07-22 03:48:29 +02:00
Florian Pellissier
50ac14f70a style: make clippy happy 2024-07-22 03:48:29 +02:00
Florian Pellissier
c48532a5c4 feat: Update protobuf messages for Balancer, add pool_id and balance_owner as entity changes 2024-07-22 03:48:29 +02:00
Florian Pellissier
7db72c284c feat: Update proto files 2024-07-22 03:48:29 +02:00
Florian Pellissier
e6edcd1fa2 refactor: only include changes if we know call.caller AND the call type is delegatecall or callcode 2024-07-19 14:35:45 +02:00
Florian Pellissier
33e5f6a236 fix(substreams): Fix storage changes indexing for DELEGATECALL 2024-07-19 12:18:58 +02:00
Florian Pellissier
ec6e16f465 refactor: Clean code and update cargo.lock 2024-07-12 15:47:22 +02:00
Florian Pellissier
10a36c0a9b fix: Replace buggy balance extraction with SDK extract_balance_deltas_from_tx
The bug occurred when a Transfer event involved both the sender and recipient being pools. In such cases, the previous implementation only created a BalanceDelta for the "to" address and missed accounting for the "from" address.
2024-07-12 14:59:54 +02:00
Florian Pellissier
7dbf3ffac6 feat: Add a generic function to extract balance deltas from Transfer events. 2024-07-12 14:59:23 +02:00
Florian Pellissier
00cc45e2b8 feat: Add renBTC/wBTC/sBTC in get_token_from_pool 2024-07-12 13:02:45 +02:00
Florian Pellissier
12eeb72e9f chore: bump ethereum-curve to version 0.2.0 2024-07-02 17:08:45 +02:00