Skip to content

Expose proper Invoice / Offer types in bindings #504

Open
@tnull

Description

@tnull

Previously, we'd expose Bolt11Invoice/Offer/Refunds as strings in bindings that get translated at time of use via UniffiCustomTypeConverters. This has a number of drawbacks, maybe most notably that these types don't allow the user to validate any fields before paying them.

We should expose 'propertypes for these (i.e., likely we'd need to create newtype wrappers for at least some of them based on theuniffi` feature flag) that allow retrieving all the important fields (amount, description, payer_note, etc).

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