-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Theoros v1.0 #86
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few comments
|
||
let update = match event.update { | ||
DispatchUpdate::SpotMedian { update, feed_id: _ } => update, | ||
pub async fn build_from(state: &AppState, chain_name: EvmChainName, feed_id: String) -> anyhow::Result<Calldata> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can use a builder pattern here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could but I'm not sure about the actual benefits since in practice we don't really "customize" how we call this function. But it would be prettier for sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
easier to refactor in the future when there are more chain types and other stuff in the state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also adds some default values which I think makes sense
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
1 similar comment
Gas Report SummarySpotMedian
TWAP
RealizedVolatility
Options
Perpetuals
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a few issues to follow up #90
Resolves: #77
Theoros
UnsignedCheckpoints
"queue",Updated
Fixed
pragma:update_feed
js script,Removed
pragma-cli
repositoryindexer-starting-block
: It is useless to index from a block greater thancurrent_block - 5
- we don't store any persistent data on Theoros and we're only interested in the latest updates. We can even docurrent_block - 2
or 3.To-do in a follow-up PR:
Logs example: