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
29e5984a3a
Add prelude; Move pb implementations.
...
Else the implementations would get overwritten.
2024-03-13 23:49:40 +00:00
kayibal
ba2a4ced08
Use expect instead of unwrap.
2024-03-13 23:19:45 +00:00
kayibal
cfdb31b0c5
Add documentation for the main methods added.
2024-03-13 23:12:30 +00:00
kayibal
312d322585
Add tycho pb type constructors.
...
This allows us to remove a lot of unnecessary boilerplate code.
2024-03-13 23:02:14 +00:00
kayibal
18e9dfcec4
Remove TransactionWrapper from SDK & Balancer.
...
This type is not needed anymore.
2024-03-13 21:09:01 +00:00
kayibal
d9fe9b1e1c
Integrate balancer substream with sdk.
...
We defer the contract storage extraction as well as the balance handling (apart from actually extracing relative deltas) to the SDK.
2024-03-13 21:06:55 +00:00
kayibal
3d248f3fa1
Implement helpers for relative balances.
...
Adds some helpers that will users help to convert relative balances changes to absolute ones.
The goal is to make this as reduce the effort of the user to implementing a simple map handler that extracts relative balances changes.
2024-03-13 18:46:10 +00:00
kayibal
92f20d0521
Add shared tycho-substreams lib.
2024-03-13 12:34:35 +00:00
Alan Höng
fdd43ad38e
Merge pull request #15 from propeller-heads/ah/revert-localising-balance-deltas
...
Revert localising balance deltas
2024-03-13 12:33:19 +00:00
kayibal
0d621a4545
Improve the naming of utils.
2024-03-13 12:29:41 +00:00
kayibal
4b2437dab6
Revert "Don't include balancer specific pb in tycho pbs."
...
This reverts commit a1864e3c .
We will actually make the balance delta messages part of the tycho packages since this makes a few things simpler when trying to factor out an sdk.
2024-03-13 12:11:38 +00:00
Florian Pellissier
7601072e87
fix: encode component_id as UTF8
2024-03-13 10:19:59 +01:00
Florian Pellissier
2a1b83f6c5
fix: index balance changes from Swap events
2024-03-12 22:53:30 +01:00
Florian Pellissier
38dcd9d843
fix: BalanceChange encoding
2024-03-12 12:51:26 +01:00
Florian Pellissier
1e546230de
fix: map_balance_deltas pool_id check
2024-03-12 12:49:09 +01:00
kayibal
a1864e3cd4
Don't include balancer specific pb in tycho pbs.
2024-03-11 19:10:28 +00:00
Florian Pellissier
c283a81341
Make clippy happy
2024-03-11 18:32:42 +01:00
Florian Pellissier
accfa074fd
fix: filter out changes that aren't balancer related
2024-03-11 17:53:17 +01:00
Florian Pellissier
51275f0ccf
fix: remove balancer factory from components' contracts
2024-03-11 17:53:09 +01:00
Florian Pellissier
66a048fbe2
refactor: update protobuf messages
2024-03-11 17:52:46 +01:00
0xMochan
ef098f8238
fix: curve substream issues
2024-03-07 17:00:32 -05:00
0xMochan
249fe6eb4c
feat: introducing maverick
2024-03-07 16:57:17 -05:00
Florian Pellissier
b8d7f6686c
Fix balancer substream naming
2024-03-07 15:39:07 +01:00
Alan Höng
b3909a4140
GITBOOK-7: Specify byte encoding rules
2024-03-07 10:08:36 +00:00
domenicodev
2a6093a994
fix: Review fixes and improvements
2024-03-06 18:17:56 +01:00
domenicodev
45f8aa1268
chore: Changed approve to safeIncreaseAllowance
2024-03-04 10:11:15 +01:00
domenicodev
3fabb48805
feat: Finalized tests
2024-03-04 10:10:23 +01:00
0xMochan
3f87d151df
fix: liquidity
2024-03-01 18:50:48 -05:00
0xMochan
b1526efe94
Merge branch 'main' of https://github.com/propeller-heads/propeller-protocol-lib into feat/curve-maverick
2024-03-01 15:08:47 -05:00
0xMochan
cad782f467
curve
2024-03-01 14:41:00 -05:00
domenicodev
9deddb5241
feat: Finalized tests
2024-03-01 19:02:00 +01:00
domenicodev
57dc954f0c
fix: Fixed getLimits and improved swap
2024-03-01 16:23:56 +01:00
domenicodev
24682409c4
fix: Fixed swap function and initial tests
2024-02-29 18:08:42 +01:00
domenicodev
1064fbf7eb
feat: Implemented swap
2024-02-28 16:32:37 +01:00
domenicodev
08917023e0
feat: Implemented getLimits
2024-02-28 16:31:28 +01:00
domenicodev
6cd57ebaf4
feat: Implemented price
2024-02-28 12:38:59 +01:00
domenicodev
0f3fe80b00
feat: Implemented internal swap functions and getAmountIn
2024-02-28 12:07:57 +01:00
domenicodev
61d4c4eb9f
feat: Implemented helper functions and missing constants
2024-02-27 12:11:04 +01:00
domenicodev
d4e9e213ae
feat: Implemented getPoolIds
2024-02-27 11:43:26 +01:00
domenicodev
de4c816570
feat: Implemented getTokens
2024-02-27 11:42:21 +01:00
domenicodev
76bc1f58ac
feat: Initial Setup
2024-02-27 11:40:56 +01:00
Alan Höng
3cf78c398e
Merge pull request #8 from propeller-heads/fix/uniswapv2-adapter
...
fix: Fixed trade price in swap function for UniswapV2Adapter
2024-02-26 10:54:17 +00:00
domenicodev
be9ce6ffc1
fix: Fixed trade price in swap function for UniswapV2Adapter
2024-02-22 18:38:12 +01:00
Alan Höng
58c56e2287
GITBOOK-6: Start documenting substreams integrations
2024-02-21 15:48:49 +00:00
Alan Höng
5301131720
Merge pull request #7 from propeller-heads/feat/ethereum-balancer
...
ethereum-balancer substream
2024-02-07 10:56:06 -03:00
0xMochan
10f2e04c02
fix: only emit balance changes if the component is tracked
2024-02-05 13:58:25 -05:00
0xMochan
0a031d8bf5
fix: prune empty transaction protocol component groups from map_pools_created
2024-02-01 13:52:02 -05:00
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