SiaFoundation/hostd

Add timestamps to contract API responses

開放

#376 建立於 2024年5月1日

 (0 則留言) (0 個反應) (0 位負責人)Go (27 個分叉)auto 404
featuregood first issue

倉庫指標

星標
 (68 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南