Skip to content

Add timestamp to DepositInfo #518

@erdemyerebasmaz

Description

@erdemyerebasmaz

We'd like to display unclaimed deposits chronologically alongside regular payments in the transaction list.

However, since DepositInfo lacks timestamp information for the creation time of original transaction, and how unclaimed deposits are fetched, solving this on app-side adds unnecessary complexity (setting up mempool explorer API services, persisting deposits for equality comparisons & state tracking etc.).

Could we add timestamp to DepositInfo?

pub struct DepositInfo {
    // ... 
    pub timestamp: Option<u64>,  // Unix timestamp of original transaction
}

For reference, Liquid implementation uses the original transaction creation time for a similar case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions