Louise Poole
c4bb7418b9
Merge pull request #99 from propeller-heads/lp/uniswap-v2-default-balances
...
feat(uniswap_v2): set default balances on pool creation
2024-10-28 13:42:05 +02:00
Domenico
e484ea28ca
Sdk implementation: Sfrax adapter and substream ( #91 )
...
* feat: initial setup
* feat: implemented getCapabilities and getTokens
* chore: adjusted getPoolIds
* feat: Initial implementation of getLimits()
* feat: implemented getLimits, getTokens and internal functions for amounts
* feat: implemented price
* feat: implemented swap function
* fix and test: fixed minor issues on adapter and setup test
* debugging price function
* fix: debugged price function and fixed getPriceAt function
* test: testOneIncreasingPriceFoundFraxV3SFrax
* fix: debugging and fixing buy function
* fix: fixed getPriceAt
* test: testing post trade price
* fix: Fixed getPriceAt
* fix: Fixed getLimits
* fix: Fixed prices and improved readability
* fix: Fixed price and transfers in swap
* feat: Finished tests
* chore: Changed approve to safeIncreaseAllowance
* feat: created substream for staked frax
* feat: remove useless files
* feat: fixed dependencies in cargo.toml
* feat: rename folder
* feat: updated cargo.lock
* feat: changed lib.rs, added modules.rs
* feat: update modules.rs with corrects addresses
* feat: rename folder in ethereum-sfrax
* feat: remove useless comments, change locked asset address, rename
* feat: undo changes on mod.rs in ethereum-balancer
* feat: rename variable
* feat: update substreams/cargo.toml
* feat: modify ristfmt.toml
* feat: performed code formatting
* feat: modify src/abi
* feat: performed formatting with nightly
* feat: fix addition opeation
* feat: adjust code with for i, f
* feat: performed fmt inside ethereum-sfrax folder
* feat: performed clippy
* feat: fix with clippy warning suggests
* feat: undo any change in ethereum-balancer
* feat: change stakedfrax_contract.rs
* fix: stakedfrax_contract.rs
* feat: add blank line
* feat: add #[allow(clippy::all)] on ethereum-sfrax/src/abi/mod.rs
* feat: update comments on pool_factories.rs
* feat: update cargo.toml and substreams.yaml
* feat: add tycho evm in pb folder
* feat: add params to take contracts' addresses
* feat: add logic to map rewards_cycle
* feat: performed fmt and fix versioning
* feat: remove useless functions
* feat: add logic to track rewards_to_distribute
* feat: passing CI
* fix: substreams.yaml
* feat: fixed params in manifest
Co-authored-by: mrBovo <bovo.ignazio@proton.me >
* feat: fixed error in map_relative_balances function
* feat: passing CI checks
* fix: 🐛 hex-binary address encoding + refactoring vault-> underlying map
* style: 💄 fix formatting
* feat: Implemented testPoolBehaviour
* alignment with propeller main
* Update forge-std submodule reference to include ds-test
* files update to match propeller/main
* creating integration_test fir sfrax
* fixed FraxV3SFraxAdapter.sol import paths
* updated with correct addresses FraxV3SFraxAdapter manifest.yaml
* updated sfrax manifest.yaml
* updated to support sdk
* integration_test sfrax updated
* fix: 🐛 add reward processing
* chore: ♻️ minor cleanups
* fix: Fixed adapter limits
* fix: fix adapter and substream sdk tests
* fix: Fixed CI errors
* chore: fmt
* chore: Removed unused line
* fix: Fixed clippy warnings
* chore: formatted with rustup
* chore: Removed unused line
* chore: post-build formatting
* chore: Formatting using different toolchain vesion
* chore: 💄 format
* chore: 💄 format 2
* chore: Using static address for frax
* feat: Added second constructor param for sfrax
* fix: Fixed limits on frax sell
* chore: Fixed merge conflict with sfraxeth
* chore: Remove sfraxeth_contract changes
* chore: Fixed EOFs
* fix: Fixed fmt on stakedfrax contract
---------
Co-authored-by: mp-web3 <mp.web3.t@gmail.com >
Co-authored-by: gabrir99 <gabri.ruini@gmail.com >
Co-authored-by: mrBovo <bovo.ignazio@proton.me >
Co-authored-by: Ignazio Bovo <ignazio@jsgenesis.com >
Co-authored-by: mrBovo <bovoignazio.dev@gmail.com >
Co-authored-by: Mattia <mp.web3@gmail.com >
2024-10-25 18:53:06 +01:00
Louise Poole
02227937ad
feat(usv2): set default balances on pool creation
2024-10-25 15:15:49 +02:00
Mattia Papa
3013cd9bfd
Sfraxeth adapter and substream with SDK integration ( #87 )
...
* first commit
* feat: implemented get tokens and improved modifier
* feat: added missing functions (to implement)
* feat: implemented getPoolIds
* feat: implemented getCapabilities
* feat: implemented getLimits function
* fix: fixed constructor
* feat and fix: implemented testGetLimitsFraxEthV3 and fixed getLimits
* feat: implementing getPriceAt function
* feat and fix: finished implementing getPriceAt, fixed modifier
* feat: price function and tests implemented
* fix: removed onlySupportedTokens modifier from getPriceAt and applied it in price and swap function
* feat: implemented sell, buy, and swap functions
* implementing final tests
* aligned with main branch
* fixes
* fix: Review Fixes
* feat: 🎨 sfraxeth substream initial scaffolding
* fix: 🎨 protocol component creation at deployment block
* build: 💚 cargo build
* feat: 🎨 map proper event to balance changes
* fix: 🚚 remove unnecessary files
* fix: 💚 ci checks
Due to the CI checks requiring the latest rust nightly, the rust-lang organisation
introduced new doc related rules. This commit fixes the CI errors by making
the necessary changes to the comments in substreams-balancer comments
* fix: 🐛 wasm output name
* fix: 🐛 update starting block = deployment block -1
* feat: 🎨 add store for reward cycles and update balances accounting after after deposit before Withdraw
* feat: 🎨 finish setting up block reward logic
* docs: 📝 add comments on extra module
* build: 📌 adapt dependencies to workspace dependencies
setting prost-types to workspace version causes build errors
* feat: 🎨 add support for several EVM compatible networks
* fix: 🐛 update balance delta accounting logic following the `NextRewardCycle` event only
* fix: 🐛 hex address string param encoding
* fix: 🐛 deployment transaction check
* ci: 💚 ci check passing
* fix: 🐛 issues with hex-binary encoding
* refactor: ♻️ address mappings for various networks
* fix: 💚 formatting
* feat: Implemented testPoolBehaviour
* chore: Removed unused comments
* feat: ⬆️ update to recent sdk
* feat: 🎨 testing setup
* test: ✅ setup test environminte for sfraxeth
* fix: 🐛 unwrap error in map_protocol_changes
* build: ⬆️ update rust version
* build: ➖ remove unnecessary deps
* build: 🚚 remove unnecessary pb/tycho
* fix: 🐛 remove balance owner attribute
* fix: 🐛 remove unnecessary static attributes
* fix: 🐛 remove manual updates
* fix: 🔥 remove unused data model from contract.proto
* fix: 🐛 filter by known components
* feat: ⚡ use store delta for reward change accounting
* refactor: ♻️ remove shallow create vault component
* feat: ⚡ replace is_deployment_tx logic with simpler txn match
* test: ✅ manual testing with inspection against etherscan
https://etherscan.io/address/0xac3E018457B222d93114458476f3E3416Abbe38F#events
* ci: 💚 ci checks
* fix: 🐛 map_protocol_components output data
* fix: 🐛 output type on map_protocol_changes
* test: 🧪 skip balance checks
* fixed FraxV3FrxEthAdapter arguments for constructor in manifest.yaml
* fix: 🐛 adapter error with overflow/underflow and addresses
* restore: restored previous adater version
* fix: set minimum swap amount to prevent overflow/underflow
* fix: set minimum swap amount only for sfrxETH -> frxETH
* improve: added print block_number to runner.py when get_amout_out fails
* removed console.log
* alignment with propeller main
* Update forge-std submodule reference to include ds-test
* installed protosim_py 0.21.0
* commented out minimum swap amount for sfrxEth -> frxEth pair
* updated adapter limits
* working on fixes
* fix: Adjust getLimits according to protocol limitation.
Previously limits were estimated with token supplies, this commit simplifies limits and adjusts them so they correspond closely with what is supported by the sfrxETH contract.
* chore: fmt
* wip: Changed ubuntu to 20.04, fmt adapters
* wip: Updated python tests
* wip: Trying with ubuntu: latest
* chore: fmt adapters
* wip: Using ubuntu 20.04
* chore: Switched back to ubuntu-latest
---------
Co-authored-by: Ignazio Bovo <ignazio@jsgenesis.com >
Co-authored-by: domenicodev <domenico.romeo3919@gmail.com >
Co-authored-by: kayibal <alan@datarevenue.com >
Co-authored-by: domenicodev <domenico.rom3@gmail.com >
2024-10-23 14:17:45 +01: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
18f4446344
fix(balancer): index PoolBalanceManaged balance changes
2024-10-17 12:49:03 +02:00
zizou
6f4c24500b
chore(substreams): bump versions and update yaml files
2024-10-14 18:11:53 +02:00
zizou
42f2f45aa7
refactor(substreams): Update ambient Substreams
2024-10-14 18:09:17 +02:00
zizou
050ae59a83
refactor(substreams): refactor uniswapv3 to use tycho-substreams
2024-10-11 14:18:22 +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
zizou
065c162c5a
fix(balancer-susbtreams): fix a bug with pool id in case of Swap event. Also bump the Substreams version.
2024-09-06 11:04:29 +02: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
Florian Pellissier
f0b82691f8
chore: bump versions
2024-07-22 03:48:44 +02:00
Florian Pellissier
ec6e16f465
refactor: Clean code and update cargo.lock
2024-07-12 15:47:22 +02:00
Florian Pellissier
12eeb72e9f
chore: bump ethereum-curve to version 0.2.0
2024-07-02 17:08:45 +02:00
0xMochan
5a1d9f1e29
feat: add native eth transfers
2024-06-11 12:54:02 -04:00
0xMochan
78fffc02d9
clean up maverick stuff and implement changes from feedback
2024-05-09 11:52:29 -05:00
0xMochan
7c75c8d3d6
Initial pools.rs function for handling custom parameters
2024-04-11 19:41:56 -05:00
0xMochan
8dcae829b5
fix: maverick
2024-04-01 23:03:05 -05:00
0xMochan
2feee8add6
sdk: update to latest sdk
2024-03-29 14:55:31 -05:00
kayibal
981a091727
Add check and release scripts.
...
Had to slightly adjust package names to make this work.
2024-03-14 01:24:43 +00:00
kayibal
425628ae97
Create a workspace and make clippy happy.
2024-03-14 00:19:54 +00:00