Commit Graph

25 Commits

Author SHA1 Message Date
TAMARA LIPOWSKI
69352511e7 chore: Make CI happy
Errors such as...
error: struct `Pools` is never constructed
2025-09-23 00:42:23 -04:00
TAMARA LIPOWSKI
2c0c4d97fb refactor: Move module_name to integration test yaml
It's not good to keep this in the test_runner because then we have multiple points that we need to edit the test config, which can be hard to find.

We need this because the module name for uniswap_v2 is so far different from the rest of the protocols.
2025-09-23 00:42:23 -04:00
TAMARA LIPOWSKI
99c8a32d23 feat: Add test for PancakeswapV2
- There are some ugly hardcodings here that I hope to improve.
2025-09-23 00:42:23 -04:00
TAMARA LIPOWSKI
1c5cf42d00 feat: Add test for UniswapV2
- Used a random post-Shanghai-created USV2 pool state with enough liquidity for the test

Necessary fixes:
- Don't hardcode to EVMPoolState
- Don't expect adapter to always be set.
- UniswapV2 names its module differently for some reason... this seems like a special case so instead of updating all integration test yamls, I'm just hardcoding it in test_runner.rs. Perhaps not the best decision?
- Log the static attributes if not found.
- Get the substreams yaml path from config instead of hardcoding it.
2025-09-23 00:42:23 -04:00
Louise Poole
409cf15864 Revert "chore: update format! macro use to satisfy latest clippy version (#194)" (#196)
This reverts commit f29de67f1f.
2025-04-25 18:09:38 +02:00
Louise Poole
f29de67f1f chore: update format! macro use to satisfy latest clippy version (#194) 2025-04-25 15:13:01 +00:00
Zizou
002d42d100 feat: add Uniswap V2 config for Unichain (#187)
* feat: add Uniswap V2 config for Unichain

* refactor: add URLs for Uniswap V2 config

---------

Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
2025-03-27 10:38:29 +01:00
Zizou
b1e7ba9e2f refactor(substreams): add rust-toolchain to the templates and modules. (#155)
* refactor(substreams): add `rust-toolchain` to the templates and modules.

This freezes the wasm output for each module, allowing us to have full control over each packages and when we break the modules hashes.

* fix(testing): allow no `initialized_accounts` in tests

---------

Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
2025-02-17 08:29:07 +00:00
Zizou
dceea46655 fmt(substreams): update auto generated files (#150)
Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
2025-02-06 17:13:25 +01:00
Zizou
28c3bb9640 feat(base): add base uniswapv2 spkg (#134)
* feat(base): add base uniswapv2 Substreams spkg

* refactor: fix outdated spkg version for every uniswap v2 packages

---------

Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
2025-01-21 15:09:27 +01:00
Zizou
39934347b3 refactor(substreams): remove workspace dependencies (#129)
This is to make each substreams completely independent, before when we would need a new version of a dependency, we would have to change it for every crate which would lead to a change of every substreams module hash. We want to make every Substreams completely independant and frozen, this also helps to maintain a correct versionning.

Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
2025-01-07 16:04:17 +00:00
Zizou
ae7203025c chore: rename pancakeswap to pancakeswap_v2 (#115)
Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
2024-11-26 14:47:44 +07: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
ef985f5ff4 fix(usv2): correctly encode the component_id in balances 2024-10-25 15:32:26 +02:00
Louise Poole
430375f035 fix(usv2): fix pancakeswap binary path 2024-10-25 15:25:02 +02:00
Louise Poole
09bf076631 chore: update usv2 forks configs 2024-10-25 15:16:13 +02:00
Louise Poole
02227937ad feat(usv2): set default balances on pool creation 2024-10-25 15:15:49 +02:00
Louise Poole
3c3b5195f7 fix: update uniswap v2 configs and package name 2024-10-17 19:43:07 +02:00
Louise Poole
3639d8d747 feat(uniswap_v2): encode attribute values with big endian encoding 2024-10-17 19:43:07 +02:00
zizou
f602e01942 format(substreams): separate code and imports 2024-10-15 10:15:38 +02:00
zizou
4c448e701a ci: make clippy happy 2024-10-14 18:16:18 +02:00
zizou
6f4c24500b chore(substreams): bump versions and update yaml files 2024-10-14 18:11:53 +02:00
zizou
aff76f8cc7 chore: fix CI 2024-10-11 14:24:55 +02:00
zizou
d7cc19c4ff refactor(substreams): refactor uniswapv2 to use tycho-substreams 2024-10-11 14:11:19 +02:00
zizou
73d48236ba feat(substreams): add substreams for Uniswap v2 and v3 2024-10-11 14:00:52 +02:00