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 oldest time searched to SpokePoolClient #506

Merged
merged 6 commits into from
Jan 29, 2024

Conversation

nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Jan 23, 2024

These will be useful for the dataworker functions (beginning to be implemented in across-protocol/relayer#1155 ) that have to deal with expired deposits. We need to be able to know when a deposit is expired (comparing its fill deadline TIMESTAMP with a bundle BLOCK NUMBER), and also whether our spoke pool clients have enough of a lookback to fetch expired deposits for a bundle

…lient

These will be useful for the dataworker functions (beginning to be implemented in across-protocol/relayer#1155 ) that have to deal with expired deposits. We need to be able to know when a deposit is expired (comparing its fill deadline TIMESTAMP with a bundle BLOCK NUMBER), and also whether our spoke pool clients have enough of a lookback to fetch expired deposits for a bundle
Signed-off-by: nicholaspai <[email protected]>
@nicholaspai nicholaspai requested review from pxrl and mrice32 January 23, 2024 16:08
@nicholaspai nicholaspai marked this pull request as ready for review January 23, 2024 16:09
Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

Looks great -- just one question!

src/clients/SpokePoolClient.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

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

LGTM - but we should add these variables in the toJSON and fromJSON serialization functions.

@nicholaspai nicholaspai requested a review from mrice32 January 24, 2024 19:08
@nicholaspai nicholaspai changed the title feat: Add oldest time searched and fill deadline buffer to SpokePoolClient feat: Add oldest time searched to SpokePoolClient Jan 25, 2024
Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

LGTM!

@pxrl
Copy link
Contributor

pxrl commented Jan 29, 2024

LGTM - but we should add these variables in the toJSON and fromJSON serialization functions.

These were subsequently removed in this commit, so it should be OK now 👍

fd22f6a

@nicholaspai nicholaspai merged commit a239b39 into master Jan 29, 2024
3 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