Commit Graph

24 Commits

Author SHA1 Message Date
adrian
e1d0c58e64 test: add ci workflow for substreams tests 2025-09-17 10:27:44 +02:00
mrBovo
fc0fb1e540 BalancerV3: SwapAdapter and Substreams (#126)
* feat: add balancer swapAdapter and Substreams

* fix: undo tycho-substreams logs, ignore abi on rustmft

* ci: prevent warnings from failing CI

* ci: skip size check on CI

* chore: forge fmt

* feat: vault balance from storage

Vault contract tokenBalance message are set according to the vault
storage changes in the `_reserveOf` storage variable VaultStorage.sol
contract
This was the culprit that caused the failure in simulation since
balancer enforces the invariant that `token.balanceOf(vault_addr) == _reservesOf[token]`

* ci: warnings

* fix: avoid duplicated balance changes

* fix: order by ordinal

* chore: format

* feat: extract new contracts before extracting balance changes

* feat: skip unnecessary steps if no balance change is found

* refactor: filter out account balances for tokens that aren't part of any protocol components.

On the indexer side, when we receive an account balance, we need to know about the token. This commit ensure that the token was introduced before we emit any account balance with it.

* refactor: don't index liquidity buffers.

Liquidity buffers rely on rate providers. Therefore we need DCI (feature to be able to index previously created contract) to deal with them.

* refactor: cleanup tests and add docstrings

* chore: lock tycho-substreams version

* ci: set Foundry workflow to use stable foundry

* feat(DCI): Add DCI Entrypoints to BalancerV3 components (#218)

* refactor: fix typo in weighted_pool_factory_contract name

* feat: add rate_providers static attributes

* feat: add DCI entrypoints to BalancerV3 components

* fix: set default trade price to Fraction(0, 1)

* feat: remove buffers as components

Buffers are to be used internally by Boosted pools (stable/weighted pools that use ERC4626 tokens). They are not to be treated as a separate swap component.

* test: update test blocks

Extend tests some tests block range to ensure liquidity was added to the pool and can be simulated on

* feat: remove buffers as components

Remove balance updates for buffer components

* feat: listen for pool pause/unpause events

* chore: formating

* fix: encoding call data

* test: update Balancer V3 tests to use DCI

* test: set indexer log level to info

* docs: add comment on support of boosted pools

* feat: update balancer v3 package version

---------

Co-authored-by: Thales <thales@datarevenue.com>
Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
Co-authored-by: Louise Poole <louise@datarevenue.com>
Co-authored-by: Louise Poole <louisecarmenpoole@gmail.com>
2025-06-26 12:19:39 +02:00
greendianasaur
cfbf6812bd chore: Remove old execution and encoding files (#221)
They are unused now. See https://github.com/propeller-heads/tycho-execution for the new workflow
2025-06-24 13:37:00 +00:00
Khramtsov Valentin
1442215c91 fix: fix for publish-swap-encoders-package workflow (#207) 2025-05-14 10:57:30 +03:00
Louise Poole
01d97193b2 ci: Run substream checks only on changed substream modules (#200)
* ci: run substream checks only on changed substream modules

* ci: move substream package extraction code to a composite action
2025-05-05 15:47:49 +02:00
Louise Poole
0f5bbae78c ci: freeze CI cargo version (#197) 2025-04-29 16:53:47 +02:00
Khramtsov Valentin
dcf7cb94c1 fix: changed on condition for swap encoders (#168) 2025-02-26 16:47:41 +02:00
Khramtsov Valentin
e413284017 chore: fix for old aws account id (#149)
* chore: fix for old aws account id

* chore: fix for old aws account id

* chore: test with changed branch

* chore: test with changed branch

* chore: test with install dependencies

* chore: prepare to pr
2025-02-05 11:09:51 +01:00
Louise Poole
97a20b60c0 fix: address missed repo renaming (#128) 2025-01-07 16:13:01 +00:00
Louise Poole
d12834cfc5 fix: improve handling of forked protocols on substreams release workflow (#95)
* fix: improve pre-release naming and handling of forked protocols

* fix: build packages for all forked protocols on a new release
2024-10-31 13:00:30 +02:00
Louise Poole
5c38cd6fb3 feat: improve substream release script
Improvements include:
- exit the script if any non-recoverable step fails
- fix bug where cargo version was hardcoded to be detected in balancer package
- allow optional input of substream config file. This is necessary for protocols with forks as they will have multiple configs in one directory
2024-10-17 19:43:07 +02:00
Diana Carvalho
a6caf84f55 feat: Add execution for curve
- Add CurveSwapStructEncoder and tests
- Add CurveSwapExecutorExposed and tests
  - Add needed interfaces

#time 0m


#time 0m

#time 0m
2024-09-05 13:19:31 +01:00
Diana Carvalho
59d6e0d803 fix: Remove publish_propeller_solver_core (it was a copy pasta mistake) 2024-09-03 10:26:13 +01:00
Diana Carvalho
41f20f14b0 feat: Add propeller swap encoders
- Add setup for package
- Add docs
- Add balancer implementation and test
- Add CI:
  - Add setup action
  - Add test and format CI
- Add CD: Publish python package to AWS
2024-08-29 15:27:35 +01:00
pistomat
66e25d1a09 fix the format check CI 2024-03-27 11:17:12 +01:00
pistomat
9b9146c23b feat: add format check to evm CI 2024-03-27 10:43:17 +01:00
kayibal
f88fb952b0 Add substreams cli installation.
Comment out S3 upload for now.
2024-03-14 02:10:53 +00:00
kayibal
2288e12032 Implement a substreams CD 2024-03-14 02:03:59 +00:00
kayibal
b0fe5bc4e1 Add github CI for substreams 2024-03-14 02:03:59 +00:00
kayibal
e62cc13c0b Move crates under substreams directory.
This way we can run GHA jobs depending on what files changed.
2024-03-13 23:57:23 +00:00
kayibal
c30bd285cf Set ETH_RPC_URL when running tests 2023-11-02 11:20:07 +00:00
kayibal
82c815fdf2 Restructure repository file structure.
Adds an outer layer to hold docs, cairo contracts
and other related files.
2023-11-01 01:09:17 +00:00
kayibal
51312525c1 Initial commit
Lays out directory structure start specifing core interfaces.
2023-10-31 10:15:20 +00:00
kayibal
11deee5f64 chore: forge init 2023-10-31 02:09:59 +00:00