Skip to content
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: Add helper methods for usage in Dataworker #535

Merged
merged 229 commits into from
Feb 15, 2024
Merged

Conversation

nicholaspai
Copy link
Member

For usage in BundleDataClient

  • getSlowFillRequestsForOriginChain: return list of slow fill requests
  • getV3RelayHashFromEvent: get the RelayData hash from a Deposit/Fill/SlowFillRequest

pxrl and others added 30 commits January 15, 2024 13:12
For preparing v3 SpokePoolClient functionality in advance of bumping
contracts-v2.
This PR just shuffles some existing types around to make room for the
new v3 types. It also introduces some convenience functions that will be
useful for discriminating between v2 and v3 types, as well as extracting
data from them. No functional change intended.
This change makes some non-functional refactoring to the SpokePoolClient
to make it easier to introduce the support for v3. Doing it now just
reduces the size and complexity of the subsequent diff.
Also update existing naming to map 1:1 onto their underlying SpokePool
functions.
Suggested by James.

Co-authored-by: James Morris, MS <96435344+james-a-morris@users.noreply.github.com>
Upgrade the various RelayData-dependent functions to work with v3 types.
This will importantly be used for slow fill requests in the pending v3
bump.
Introduced unintentionally in the previous commit, this prevents
parallel test execution and suppresses all other tests from running.
src/utils/V3Utils.ts Outdated Show resolved Hide resolved
src/utils/V3Utils.ts Outdated Show resolved Hide resolved
test/utils/SpokePoolUtils.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@pxrl pxrl left a comment

Choose a reason for hiding this comment

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

@nicholaspai nicholaspai merged commit 9f8bb5c into master Feb 15, 2024
4 checks passed
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