8000 feat: marketmap module by davidterpay · Pull Request #106 · 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: marketmap module #106

Merged
merged 37 commits into from
Feb 22, 2024
Merged

feat: marketmap module #106

merged 37 commits into from
Feb 22, 2024

Conversation

davidterpay
Copy link
Contributor

No description provided.

Copy link
codecov bot commented Feb 9, 2024

Codecov Report

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

Comparison is base (b69d6b7) 59.53% compared to head (0e4d5d7) 59.00%.
Report is 1 commits behind head on main.

Files Patch % Lines
oracle/types/market.go 56.06% 22 Missing and 7 partials ⚠️
pkg/math/oracle/median.go 70.65% 22 Missing and 5 partials ⚠️
providers/apis/binance/api_handler.go 70.73% 6 Missing and 6 partials ⚠️
.../currencypair/mocks/mock_currency_pair_strategy.go 35.29% 0 Missing and 11 partials ⚠️
providers/apis/coinbase/api_handler.go 64.51% 6 Missing and 5 partials ⚠️
...trategies/aggregator/mocks/mock_vote_aggregator.go 0.00% 9 Missing ⚠️
...trategies/currencypair/mocks/mock_oracle_keeper.go 38.46% 0 Missing and 8 partials ⚠️
cmd/oracle/main.go 0.00% 8 Missing ⚠️
oracle/options.go 25.00% 3 Missing ⚠️
abci/preblock/oracle/mocks/mock_oracle_keeper.go 66.66% 0 Missing and 2 partials ⚠️
... and 7 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #106      +/-   ##
==========================================
- Coverage   59.53%   59.00%   -0.54%     
==========================================
  Files         213      231      +18     
  Lines        8600     9088     +488     
==========================================
+ Hits         5120     5362     +242     
- Misses       2898     3074     +176     
- Partials      582      652      +70     

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

davidterpay and others added 26 commits February 9, 2024 10:43
* init

* basic queries

* tidy

* rm query for now

* no nil pointers

* nit

* testing init

* no id

* almost all testing

* valid

* testing

* nits

* lint

* more testing

* cr

* nit

---------

Co-authored-by: Alex Johnson <alex@skip.money>
This reverts commit 3795e0f.
* move

* use

* format

* remove

* begin

* keep going

* e2e

* ok

* fix

* update script

* refactor: use `slinkytypes.CurrencyPair` in `x/marketmap` (#113)

* use currency pair

* use cp

* fix

* fix

* fix
* query

* add query

* update

* add last updated

* finalize

---------

Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>
* generate

* validate

* ok

* test ticker config

* utd

* fix

* gen

* utd

* working

* format

* fix

* init grpc test

* grpc query

* format
* keeper

* query

* ok

* genesis

* fix

* remove redundant

* fix
* gen

* ok

* ok

* fix e2e
aljo242 and others added 8 commits February 20, 2024 15:48
* 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>
* gen

* readmes

* params gen

* params

* new query

* add query and test

* gen

* fix

* fixes

* update

* fix

* fix

* grpc doc

* Update query.proto

Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>

* generate

---------

Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>
* gen new

* msg

* fix

* add test

* fix

* gen new proto

* generalize

* fix

* format

* test

* fully test

* update

* fix

* ok

* ok

* Update x/marketmap/keeper/msg_server.go

Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>

* Update x/marketmap/keeper/msg_server.go

Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>

* refactor: remove market config from oracle and providers (#132)

* 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>

* update

* godoc

* update validation

* feat: emit events for creating market (#163)

* constants

* create market event

---------

Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>
* init

* init types

* finalize

* wrapper

* simplify

* readme

* fix

* ok

* fix

* fix

* fix md

* fix md

* fix md

* push

* ticker

* hook

* hook

* cute

* fix

* fix readme
@aljo242 aljo242 marked this pull request as ready for review February 22, 2024 16:02
@aljo242
Copy link
Contributor
aljo242 commented Feb 22, 2024

with love from skip <3

@aljo242 aljo242 merged commit 667f678 into main Feb 22, 2024
@zrbecker zrbecker deleted the feat/marketmap 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.

3 participants
0