Commit Graph

635 Commits

Author SHA1 Message Date
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
tvinagre
52c644a4ed Merge pull request #42 from propeller-heads/zz/curve/curve-substreams-v2
Curve Substreams v2
2024-07-19 18:55:39 +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
Carlos Zanella
00ab3fd7c9 Merge pull request #52 from propeller-heads/cz/marginal-price-capability
Add marginal price capability and update integration tests
2024-07-19 11:03:41 +01:00
czanella
1f509897ef Make balance hard limits work correctly. Add back capability 2024-07-19 10:27:36 +01:00
czanella
260fd7fbb5 Address PR review 2024-07-19 09:16:42 +01:00
czanella
772566c590 Add marginal price capability and update integration tests
Balancer now passes the test
Some misc aesthetics
2024-07-18 16:12:50 +01:00
Carlos Zanella
ab3723f29b Merge pull request #51 from propeller-heads/cz/adapter-integration-tests
Implement adapter integration test and use it on uniswap and balancer
2024-07-18 09:57:45 +01:00
czanella
5831aecc96 Implement adapter integration test and use it on uniswap and balancer 2024-07-17 15:03:31 +01:00
Zizou
6b80e87544 Merge pull request #50 from propeller-heads/fp/fix-build-runtime-script
fix(script): Fix build runtime script to handle empty constructor
2024-07-17 13:12:17 +02:00
Florian Pellissier
9e851534ce fix(script): Fix build runtime script to handle empty constructor 2024-07-17 10:37:16 +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
Florian Pellissier
62b4196d8d Revert "feat: add apool (but it uses rebasing tokens so balances are off)"
This reverts commit bdadf837cad52e54358d819afd3e1ca3f3c2d2f3.
2024-07-02 17:08:45 +02:00
Florian Pellissier
9a6d3ba4a5 feat: add apool (but it uses rebasing tokens so balances are off) 2024-07-02 17:08:45 +02:00
Florian Pellissier
3aa880a700 feat: add twocrypto factory 2024-07-02 17:08:45 +02:00
Florian Pellissier
fe27fc397f refactor: filter out empty tokens in address_map function 2024-07-02 17:08:45 +02:00
Florian Pellissier
959a08026a chore: remove unused abis 2024-07-02 17:08:45 +02:00
tvinagre
15a567e5d2 Merge pull request #39 from propeller-heads/zz/sdk-integration-scripts
Substreams integration script
2024-06-27 21:07:37 +02:00
Thales Lima
ac863a495d Make db url configurable 2024-06-27 21:07:19 +02:00
Thales Lima
a9954873d9 Wrap testing module inside a docker-compose 2024-06-27 16:02:19 +02:00
Florian Pellissier
b598a12592 chore: update params 2024-06-14 23:45:18 +02:00
Zizou
0e51155d87 Merge branch 'main' into zz/sdk-integration-scripts 2024-06-14 23:11:59 +02:00
Florian Pellissier
b432e2827f fix(curve): wrong static attibutes 2024-06-14 21:51:34 +02:00
Florian Pellissier
329375fa0e refactor: update Curve test assets 2024-06-14 21:29:08 +02:00
Florian Pellissier
c4176cf9bb chore: add tycho-indexer to gitignore 2024-06-14 21:19:19 +02:00
Florian Pellissier
a96d246e11 fix(test runner): fix how we check balances and stout full buffer 2024-06-14 21:17:32 +02:00
Florian Pellissier
c8f4fd611c chore: add requirements.txt for testing script 2024-06-14 21:17:32 +02:00
Florian Pellissier
bcf11876d2 fix: update docker-compose port for db 2024-06-14 21:17:32 +02:00
Florian Pellissier
30eb0d5add feat(testing): add readme for testing 2024-06-14 21:17:32 +02:00
Florian Pellissier
9a647b76ce feat(testing): add balances check 2024-06-14 21:17:32 +02:00
Florian Pellissier
8cc526527e feat(testing): add a script for Tycho integration testing 2024-06-14 21:17:32 +02:00
Zizou
6aea890dad Merge pull request #31 from propeller-heads/feat/ethereum-curve
Curve Substreams
2024-06-14 19:52:21 +02:00
Florian Pellissier
226ec98cf8 refactor: remove allow non_snake_case in build.rs 2024-06-14 19:47:22 +02:00
Florian Pellissier
dda36a4e7c chore: rename ERC20.json to snake case 2024-06-14 19:43:32 +02:00
Florian Pellissier
127a0c5cb7 fix(ci): clippy, fmt and remove substreams logs 2024-06-14 19:41:20 +02:00
Florian Pellissier
c7d18d447a fix(curve): some general fixes including
Bytes decoding from BalanceChange, sort  BlockBalanceDeltas, transform `0xeeee...` into `0x000...` for consistency, and add a placeholder for missing tokens in `get_token_from_pool`.
2024-06-14 19:15:37 +02:00
Florian Pellissier
184cd443fe refactor: make base_pool a static attribute 2024-06-14 19:11:44 +02:00
0xMochan
5a1d9f1e29 feat: add native eth transfers 2024-06-11 12:54:02 -04:00
0xMochan
728a091b19 fix: block num 2024-06-04 17:13:01 -04:00
0xMochan
d3fa1c6835 fix: .DS_Store in .gitignore 2024-06-04 17:05:40 -04:00
0xMochan
588b5c7934 fix: first block 2024-06-04 17:05:16 -04:00
Mochan
a55b5969c5 Update substreams/ethereum-curve/src/pool_factories.rs
Co-authored-by: Zizou <111426680+zizou0x@users.noreply.github.com>
2024-06-04 16:59:57 -04:00
0xMochan
c1966cca38 fix: pass CI 2024-06-03 09:57:19 -04:00
0xMochan
f1796d1c67 fix: clean up abis 2024-06-03 09:41:14 -04:00