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

Add timestamps to contract API responses #376

Open
n8maninger opened this issue May 1, 2024 · 0 comments
Open

Add timestamps to contract API responses #376

n8maninger opened this issue May 1, 2024 · 0 comments
Labels
feature A new feature request or enhancement good first issue Good for newcomers

Comments

@n8maninger
Copy link
Member

n8maninger commented May 1, 2024

Description

The contract data in the UI currently uses estimates based on block heights for all timestamps. Once the block has passed, the actual timestamp should be used instead.

This requires a few changes across hostd:

  • Add additional columns to the contracts table for the timestamps
    • Negotiation timestamp
    • Window start timestamp
    • Window end timestamp
    • Resolution timestamp
    • Payout timestamp
  • Update the corresponding columns during block processing
  • Add the fields to the Contract type and API response
@n8maninger n8maninger added feature A new feature request or enhancement good first issue Good for newcomers labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature request or enhancement good first issue Good for newcomers
Projects
Status: Backlog
Development

No branches or pull requests

1 participant