feat: add refund and improve send flow

This commit is contained in:
yse
2024-05-10 20:53:56 +02:00
parent a1e437a04e
commit 28d4f264eb
14 changed files with 456 additions and 658 deletions

View File

@@ -18,6 +18,10 @@ sealed class PaymentError with _$PaymentError implements FrbException {
const factory PaymentError.insufficientFunds() =
PaymentError_InsufficientFunds;
const factory PaymentError.alreadyClaimed() = PaymentError_AlreadyClaimed;
const factory PaymentError.refunded({
required String err,
required String txid,
}) = PaymentError_Refunded;
const factory PaymentError.generic({
required String err,
}) = PaymentError_Generic;