8000 refactor: market map config refactor by aljo242 · Pull Request #145 · 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.

refactor: market map config refactor #145

Merged
merged 15 commits into from
Feb 20, 2024
Merged

Conversation

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

No description provided.

Copy link
codecov bot commented Feb 19, 2024

Codecov Report

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

Comparison is base (4931d3a) 59.68% compared to head (50f2500) 59.42%.

Files Patch % Lines
x/marketmap/types/path.go 59.61% 17 Missing and 4 partials ⚠️
x/marketmap/types/provider.go 50.00% 4 Missing and 4 partials ⚠️
x/marketmap/types/errors.go 0.00% 4 Missing ⚠️
x/marketmap/types/ticker.go 71.42% 2 Missing and 2 partials ⚠️
x/marketmap/types/genesis.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           feat/marketmap     #145      +/-   ##
==================================================
- Coverage           59.68%   59.42%   -0.26%     
==================================================
  Files                 226      225       -1     
  Lines                8914     8830      -84     
==================================================
- Hits                 5320     5247      -73     
+ Misses               2992     2982      -10     
+ Partials              602      601       -1     

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

Comment on lines 34 to 45

// Paths is the list of convertable markets that will be used to convert the
// prices of a set of tickers to a common ticker.
repeated Path paths = 5 [ (gogoproto.nullable) = false ];

// Providers is the list of provider configurations for the given ticker.
repeated ProviderConfig providers = 6 [ (gogoproto.nullable) = false ];

// MetadataJSON is a string of JSON that encodes any extra configuration
// for the given ticker.
string metadata_JSON = 15;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Paths is the list of convertable markets that will be used to convert the
// prices of a set of tickers to a common ticker.
repeated Path paths = 5 [ (gogoproto.nullable) = false ];
// Providers is the list of provider configurations for the given ticker.
repeated ProviderConfig providers = 6 [ (gogoproto.nullable) = false ];
// MetadataJSON is a string of JSON that encodes any extra configuration
// for the given ticker.
string metadata_JSON = 15;
}
// Paths is the list of convertable markets that will be used to convert the
// prices of a set of tickers to a common ticker.
repeated Path paths = 5 [ (gogoproto.nullable) = false ];
// Providers is the list of provider configurations for the given ticker.
repeated ProviderConfig providers = 6 [ (gogoproto.nullable) = false ];
// MetadataJSON is a string of JSON that encodes any extra configuration
// for the given ticker.
string metadata_JSON = 7;
}

Comment on lines +17 to +18
// MaxPathLength is the maximum length of a path for a ticker conversion.
MaxPathLength = 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we setting this at 2? I think 3 should be allowed

@davidterpay davidterpay merged commit 2a1d84e into feat/marketmap Feb 20, 2024
@aljo242 aljo242 deleted the refactor/proto branch February 20, 2024 15:42
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