feat: add addresses by stake reducer#131
Merged
scarmuega merged 1 commit intoFeb 14, 2023
Merged
Conversation
c54c4ac to
c0c5be1
Compare
scarmuega
approved these changes
Feb 13, 2023
will-break-it
added a commit
to input-output-hk/scrolls
that referenced
this pull request
Mar 10, 2023
…on test methods to utils module; add try_from trait Signed-off-by: William Wolff <william.wolff@iohk.io> feat: add sundae swap decoder module Signed-off-by: William Wolff <william.wolff@iohk.io> fix: rename dex token pair type to pool datum Signed-off-by: William Wolff <william.wolff@iohk.io> feat: add wingerider pool datum decoder Signed-off-by: William Wolff <william.wolff@iohk.io> feat: add helper method to generate redis key for token pair Signed-off-by: William Wolff <william.wolff@iohk.io> feat: add pool datum enum type with different supported variants Signed-off-by: William Wolff <william.wolff@iohk.io> fix: move key method into TokenPair model Signed-off-by: William Wolff <william.wolff@iohk.io> feat: complete reducer implementation for retrieving key/ value pair & producing redis crdt commands Signed-off-by: William Wolff <william.wolff@iohk.io> fix: change fee data type to f64 for json serialization Signed-off-by: William Wolff <william.wolff@iohk.io> feat: add utils methods for serializing values; add utils method for build key/value pair Signed-off-by: William Wolff <william.wolff@iohk.io> fix: simplify match arm logic to construct key value pair Signed-off-by: William Wolff <william.wolff@iohk.io> fix: refactored PoolDatum type to LiquidityPoolDatum type Signed-off-by: William Wolff <william.wolff@iohk.io> feat: add resolve datum for txIn and txOut util function Signed-off-by: William Wolff <william.wolff@iohk.io> fix: add correct resolution of datum for either txIn or txOut in reducer Signed-off-by: William Wolff <william.wolff@iohk.io> feat: add Display trait to PoolAsset type Signed-off-by: William Wolff <william.wolff@iohk.io> fix: add swap of coin amounts if sorting of keys results in swap; consisting value serializtion Signed-off-by: William Wolff <william.wolff@iohk.io> test: add test configurations & docker compose for preprod and mainnet Signed-off-by: William Wolff <william.wolff@iohk.io> doc: add readme for liquidity by token pair reducer Signed-off-by: William Wolff <william.wolff@iohk.io> fix: remove colon notation for redis values Signed-off-by: William Wolff <william.wolff@iohk.io> fix: readme typos & grammar Signed-off-by: William Wolff <william.wolff@iohk.io> fix: readme typos & grammar Signed-off-by: William Wolff <william.wolff@iohk.io> fix: rephrase readme Signed-off-by: William Wolff <william.wolff@iohk.io> feat: serialize token amounts to string instead of number Signed-off-by: William Wolff <william.wolff@iohk.io> fix: simplify policy_from vector Signed-off-by: William Wolff <william.wolff@iohk.io> fix: remove warning for unwrapping Signed-off-by: William Wolff <william.wolff@iohk.io> doc: fix wording Signed-off-by: William Wolff <william.wolff@iohk.io> build: change docker image to local and redis to redis-stack Signed-off-by: William Wolff <william.wolff@iohk.io> doc: update readme for deployment details Signed-off-by: William Wolff <william.wolff@iohk.io> fix: refactored coin_a/ coin_b of TokenPair type to a & b; refactored policy_id to currency_symbol plus new type alias Signed-off-by: William Wolff <william.wolff@iohk.io> fix: refactored short variable names to more detailed ones Signed-off-by: William Wolff <william.wolff@iohk.io> fix: refactored short variable names Signed-off-by: William Wolff <william.wolff@iohk.io> doc: rephrased naming to match code Signed-off-by: William Wolff <william.wolff@iohk.io> doc: fix typos Signed-off-by: William Wolff <william.wolff@iohk.io> doc: fix schema detail for colon Signed-off-by: William Wolff <william.wolff@iohk.io> doc: fix schema detail for colon Signed-off-by: William Wolff <william.wolff@iohk.io> fix(supplybyasset): Use only mints to reduce supply (txpipe#132) Signed-off-by: William Wolff <william.wolff@iohk.io> feat: Add addresses by stake reducer (txpipe#131) Signed-off-by: William Wolff <william.wolff@iohk.io> fix: Fix build issues (txpipe#133) Signed-off-by: William Wolff <william.wolff@iohk.io> docs: Fix typos (txpipe#124) Signed-off-by: William Wolff <william.wolff@iohk.io> fix: Skip byron addresses (txpipe#134) Signed-off-by: William Wolff <william.wolff@iohk.io> fix: merged txpipe/scrolls:main changes Signed-off-by: William Wolff <william.wolff@iohk.io> doc: add price derivation section Signed-off-by: William Wolff <william.wolff@iohk.io> feat: add custom reducer for observing liquidity changes for AMM DEXes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a reducer that indexes addresses by each stake
Reducer will populate a collection for which the key is the
stakeKeyand the data is a set of addresses that correspond to that stake