8000 feat: msg-server v2 by aljo242 · Pull Request #156 · skip-mev/connect · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

feat: msg-server v2 #156

Merged
merged 26 commits into from
Feb 22, 2024
Merged

feat: msg-server v2 #156

merged 26 commits into from
Feb 22, 2024

Conversation

aljo242
Copy link
Contributor
@aljo242 aljo242 commented Feb 20, 2024

Add basic msg server with MsgUpdateMarketMap

  • add check to keeper.ValidateState that ensures all currency pairs included in paths are already stored in state (unless the path is the currency pair itself). This function can be called after all batched updates to the market map to verify the validity of the resulting state.

MsgUpdateMarketMap will be the main transaction that can interact with the module. Currently is has the field CreateMarkets which is the list of markets to be created. Later, this can be extended in a compatible way to add UpdateMarkets and DeleteMarkets if desired, each with their own logic.

will need to be updated with a message for setting params.

@aljo242 aljo242 changed the base branch from main to feat/msg-server February 20, 2024 22:24
@aljo242 aljo242 changed the base branch from feat/msg-server to feat/marketmap February 20, 2024 22:25
Copy link
codecov bot commented Feb 21, 2024

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (b54c341) 59.11% compared to head (4e628c9) 59.31%.

Files Patch % Lines
x/marketmap/types/msg.go 72.00% 5 Missing and 2 partials ⚠️
x/marketmap/keeper/keeper.go 60.00% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           feat/marketmap     #156      +/-   ##
==================================================
+ Coverage           59.11%   59.31%   +0.19%     
==================================================
  Files                 226      228       +2     
  Lines                8974     9040      +66     
==================================================
+ Hits                 5305     5362      +57     
- Misses               3019     3025       +6     
- Partials              650      653       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>
Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>
davidterpay and others added 7 commits February 22, 2024 10:03
* init

* rm mapstructure

* chore: swapping types in the main oracle to use ticker (#133)

* type swap

* alias

* alias

* use constants in tests

* chore: Updating API providers with new types (#139)

* binance

* coinbase and coingecko

* nits

* static

* type alias maximalism

* format

* chore: Updating all WS providers with new types (#143)

* coinbase and coingecko

* nits

* bitfinex

* bitstamp

* bybit

* nits

* nit

* websocket first pass

* nits

* format

* chore: Updating types based on new marketmap schema (#155)

* init

* testing

* more testing

* cr

* chore: Updating provider factories with new market map configuration (#162)

* init

* testing

* more testing

* cr

* init

* nits

* update

* nits

---------

Co-authored-by: aljo242 <alex@skip.money>

* chore: Updating conversion aggregation function (#164)

* init

* testing

* more testing

* cr

* init

* nits

* init

* nits

* e2e fixes

* cr nits

---------

Co-authored-by: Alex Johnson <alex@skip.money>
* constants

* create market event
@aljo242 aljo242 merged commit a1a7eb1 into feat/marketmap Feb 22, 2024
@zrbecker zrbecker deleted the feat/msg-v2 branch November 5, 2024 21:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0