Skip to content

Conversation

ali-behjati
Copy link
Collaborator

This PR adds deserialization to PriceFeedMessage and TwapMessage. It also introduces a Message enum which wraps messages. I have refactored the code such as renaming as_bytes to to_bytes because as_bytes usually returns a reference from a type that is wrapping bytes.

The purpose of this change is to use these structs from this crate (as library) in hermes.

@ali-behjati ali-behjati requested review from guibescos, jayantk and Reisen and removed request for guibescos and jayantk May 24, 2023 09:57
jayantk
jayantk previously approved these changes May 24, 2023
Copy link
Contributor

@jayantk jayantk left a comment

Choose a reason for hiding this comment

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

lgtm, though i have one minor ask to help us keep the program size down in the future.

guibescos
guibescos previously approved these changes May 24, 2023
@ali-behjati ali-behjati dismissed stale reviews from guibescos and jayantk via ffa5045 May 25, 2023 08:48
@ali-behjati ali-behjati merged commit 7d593d8 into main May 25, 2023
@ali-behjati ali-behjati deleted the add-price-message-deserialization branch May 25, 2023 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants