Commit Graph

313 Commits

Author SHA1 Message Date
0xMochan
e7b458cc01 feat: remove requests as a dep for get_abis.py script and add docs 2024-02-01 09:36:26 -05:00
0xMochan
c96eb068d7 refactor: adjust naming 2024-01-31 10:28:41 -05:00
0xMochan
9f82671082 feat: lots of refactoring (file splitting
- `lib.rs` split into multiple files with `modules.rs` being the main entrypoint for substreams
- contract changes are tracked similiarly to ambient (generalized to use a store of tracked contracts)
- static attributes were pruned of the dynamic ones
2024-01-29 11:12:27 -05:00
Alan Höng
f781bc709d Merge pull request #5 from propeller-heads/feature/integral-adapter
Feature/integral adapter
2024-01-25 09:04:25 -03:00
domenicodev
f4f56ad42d fix: Solved merge conflicts 2024-01-25 12:39:52 +01:00
domenicodev
7dca13f9e0 fix: fixed price type in price function 2024-01-25 11:53:40 +01:00
domenicodev
8001e22674 fix: Set amountOutMin 2024-01-25 11:51:04 +01:00
domenicodev
f18dce5c04 feat: Created AngleAdapter tests 2024-01-25 11:50:02 +01:00
0xMochan
4d56335f2e fix: naming errors in substreams.yaml 2024-01-24 16:42:22 -05:00
0xMochan
c6c41e5773 fix: code clean w/ clippy 2024-01-24 16:28:58 -05:00
0xMochan
d8ddc33f23 feat: ethereum-balancer implementation 2024-01-24 16:28:50 -05:00
domenicodev
a4f0f93e37 feat: Moved solidity imports and declarations to main adapter file 2024-01-24 17:36:08 +01:00
domenicodev
174c4e158a Revert "feat: Moved imports to main adapter file"
This reverts commit 96915bd158.
2024-01-24 17:33:47 +01:00
domenicodev
96915bd158 feat: Moved imports to main adapter file 2024-01-24 17:33:10 +01:00
domenicodev
8ef2f75fae fix: Increased RESERVE_LIMIT_FACTOR to prevent reverts 2024-01-24 17:29:13 +01:00
domenicodev
61bb75985c feat: Implemented getCapabilities 2024-01-24 11:53:56 +01:00
domenicodev
69eeec4385 fix: Fixed getPriceAt to obtain the correct prices 2024-01-24 11:52:47 +01:00
domenicodev
42ac2b1b60 feat: Added top comment explaining prices 2024-01-24 11:21:35 +01:00
domenicodev
b589940dc9 fix: Removed console logs 2024-01-23 19:07:32 +01:00
domenicodev
16237824a5 fix: Fixed divisions in getLimits, added RESERVE_LIMIT_FACTOR as constant 2024-01-23 19:06:02 +01:00
domenicodev
a4693f5300 feat: Implemented swap() 2024-01-23 18:43:57 +01:00
domenicodev
7c1e102f73 fix: Fixed getPoolIds not implemented text, improved gas in getLimits 2024-01-23 16:58:29 +01:00
domenicodev
339b0b17b9 fix: Fixed manifest.yaml 2024-01-23 16:55:40 +01:00
domenicodev
ba289d5bd1 feat: Added imports in a different file as too long, implemented getLimits and getTokens 2024-01-23 16:54:38 +01:00
domenicodev
94644ac735 feat: Initial setup and price() function implementation 2024-01-22 12:08:59 +01:00
domenicodev
14ce015ac4 feat: Added comment about minLimits as requested 2024-01-19 11:54:11 +01:00
domenicodev
1cffd007ad fix: Moved getPriceAt() to bottom 2024-01-18 11:06:13 +01:00
domenicodev
cf41c472c6 fix: Initial code review fixes 2024-01-17 15:24:18 +01:00
domenicodev
3d900e7500 Updated .gitgnore in main folder 2024-01-08 18:26:39 +01:00
domenicodev
e8b3e14b3e Updated .gitignore 2024-01-08 18:26:07 +01:00
domenicodev
3d7d4f1a98 fix: Removed unused parameters from Contract 2024-01-08 18:05:07 +01:00
domenicodev
a7ea4d3604 fix: Fixed and Improved tests 2024-01-08 18:04:20 +01:00
domenicodev
46e9a3dd0e feat: Added ConstantPrice capability 2024-01-08 16:53:55 +01:00
domenicodev
8798fc7313 fix: Removed internal _getLimits 2024-01-08 16:48:07 +01:00
domenicodev
af7b9cd9a6 feat: Integrated SafeERC20 2024-01-08 16:43:03 +01:00
domenicodev
37ea829592 fix: Fixed prices 2024-01-08 16:29:55 +01:00
domenicodev
3a2e620246 fix: Fixed Fractions 2024-01-06 17:27:36 +01:00
mp-web3
c446a09caa Fixing testSwapFuzzIntegral 2024-01-04 18:36:32 +01:00
domenicodev
af196d6793 fix: Removed unused reverts and constants 2024-01-04 17:36:57 +01:00
mp-web3
bb28533951 fix: Fixed swap tests and limits calculations on IntegralSwapAdapter contract; feat: Added getTokens test 2023-12-27 17:58:03 +01:00
pistomat
b37ecaeeb0 Merge pull request #4 from propeller-heads/mp/ENG-2443-Move-Ambient-substreams-implementation-into-protocol-lib-repo
Update from last PR review
2023-12-22 16:36:22 +01:00
pistomat
d7c7860347 Update substreams/Readme.md
Co-authored-by: Michał D <michcio1234@gmail.com>
2023-12-22 16:36:17 +01:00
pistomat
03686d0dff Update readmes 2023-12-22 11:33:12 +01:00
domenicodev
b46c662607 fix: Changed error code as per ISwapAdapter.sol definition 2023-12-22 11:17:12 +01:00
domenicodev
cc1a17c889 fix: Fixed getLimits and address conversions 2023-12-22 10:24:03 +01:00
mp-web3
3141ef5b84 testGetCapabilitiesIntegral and testGetLimitsIntegral passed 2023-12-21 18:59:22 +01:00
mp-web3
f139236ec3 testSwappSellIncreasingIntegral and testSwapBuyIncreasingIntegral failed 2023-12-21 18:56:43 +01:00
pistomat
d570d63e13 Merge pull request #3 from propeller-heads/mp/ENG-2443-Move-Ambient-substreams-implementation-into-protocol-lib-repo
Substreams integration docs
2023-12-21 18:51:16 +01:00
mp-web3
3453b72a3a testSwapFuzzIntegral fails at times 2023-12-21 18:46:52 +01:00
mp-web3
6a9cae7b0f testSwapSellUsdcIntegral failed, check AmountIn must be AmountIn + Fee 2023-12-21 18:40:27 +01:00