-
Notifications
You must be signed in to change notification settings - Fork 261
feat(target_chains/ethereum): add twap #2543
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
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b950569
update
aditya520 e1dcc2f
update
aditya520 507b5ca
update
aditya520 a87ff74
update: fix logic & improve code structure and readability
cctdaniel 98ab843
feat: add parseTwapPriceFeedUpdates function to IPyth and MockPyth
cctdaniel d0ff3a3
feat: add override keyword to TwapPriceFeed function in Pyth contract
cctdaniel 46808d8
feat: refactor TwapPriceFeed function for improved readability and st…
cctdaniel dc2cd92
feat: add comments
cctdaniel 93195fa
refactor: streamline message extraction and validation logic in PythA…
cctdaniel c842b9d
chore: rename downSlotRatio to downSlotsRatio
cctdaniel 766ecde
temp
cctdaniel 74217f9
feat: implement TwapPriceFeedMessage struct and related encoding func…
cctdaniel 671c6c3
feat: enhance fee charging logic for TWAP updates to improve user exp…
cctdaniel a5e15e5
test: add unit tests for TWAP price feed update validation and error …
cctdaniel 46eb28d
chore: update version to 1.4.4-alpha.2 in Pyth contract and package.json
cctdaniel dac3e31
feat: refactor TWAP price handling by moving TwapPriceInfo struct to …
cctdaniel f8c8ac2
fix build
cctdaniel 3ab3f0d
docs: clarify TWAP update requirements in Pyth contract
cctdaniel c88c2f5
feat: update parseTwapPriceFeedUpdates function to accept a single ar…
cctdaniel c06488e
docs: enhance downSlotsRatio comment to clarify its purpose and usage…
cctdaniel 139d813
revert cargo locks
cctdaniel 371350a
feat: update updateData parameter type to accept a single array in Mo…
cctdaniel 8a6f154
feat: refactor TWAP update logic to decode price feed data and valida…
cctdaniel 1b01a7a
feat: implement TWAP message creation and update data generation in P…
cctdaniel 41a0af9
docs: add return value descriptions for TWAP update function in Pyth …
cctdaniel e382594
setup twappricefeedmessage and reuse in tests
cctdaniel 5b9a47e
feat: simplify createTwapPriceFeedUpdateData parameters for testing a…
cctdaniel f19d2c9
refactor: update MockPyth ABI to change cumulativePrice and cumulativ…
cctdaniel 83ad4d6
feat: simplify TWAP price feed processing and update data creation in…
cctdaniel fd94f73
refactor: change startTime and endTime types to uint64 in MockPyth an…
cctdaniel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.