Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
cd9f602
feat(open_crypto_pay): add native payment flow
reubenyap Apr 27, 2026
4ddccb7
fix(open_crypto_pay): enforce spec-safe submissions
reubenyap Apr 27, 2026
25fdf86
feat(open_crypto_pay): support enabled Ethereum tokens
reubenyap Apr 27, 2026
143ba73
fix(open_crypto_pay): use quote payment id for commits
reubenyap Apr 27, 2026
3ab31f5
refactor(open_crypto_pay): split view sections into widgets
reubenyap May 8, 2026
ed27bf7
feat(open_crypto_pay): add desktop payment flow
reubenyap May 8, 2026
23b8ae7
fix(open_crypto_pay): verify transaction amount matches quote
reubenyap May 8, 2026
9f9a3f9
Merge branch 'staging' into claude/integrate-open-cryptopay-8mI4H
reubenyap May 8, 2026
e874b1c
Align Open CryptoPay flow with standard
reubenyap Jun 9, 2026
2ae0b0d
Keep Open CryptoPay parsing strict
reubenyap Jun 10, 2026
d024bc6
Restrict Open CryptoPay entry points
reubenyap Jun 10, 2026
4ec24d0
Merge upstream staging into Open CryptoPay PR
reubenyap Jun 10, 2026
773cd60
Use built-in OCP method card tap handler
reubenyap Jun 10, 2026
8aca547
Tighten Open CryptoPay UI integration
reubenyap Jun 10, 2026
3941b17
Reduce Open CryptoPay integration surface
reubenyap Jun 10, 2026
542ebcd
Remove fixed Open CryptoPay summary label width
reubenyap Jun 10, 2026
f7fdf0f
Tighten Open CryptoPay settlement interop
reubenyap Jun 10, 2026
1ea9e60
Clarify Open CryptoPay commit capabilities
reubenyap Jun 11, 2026
0cc1db3
Extract Open CryptoPay settlement flow
reubenyap Jun 11, 2026
b46e08e
Test Open CryptoPay settlement decisions
reubenyap Jun 11, 2026
4b48d39
Format Open CryptoPay files
reubenyap Jun 11, 2026
1609a7d
Fix confirm view imports for CI
reubenyap Jun 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions lib/models/send_view_auto_fill_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,42 @@

import 'package:decimal/decimal.dart';

import '../services/open_crypto_pay/models.dart';

class SendViewAutoFillData {
final String address;
final String contactLabel;
final Decimal? amount;
final String note;

/// When set, ConfirmTransactionView completes the OpenCryptoPay submission
/// flow for the prepared transaction.
final OpenCryptoPayCommit? openCryptoPayCommit;

SendViewAutoFillData({
required this.address,
required this.contactLabel,
this.amount,
this.note = "",
this.openCryptoPayCommit,
});

Map<String, dynamic> toJson() {
final commit = openCryptoPayCommit;
return {
"address": address,
"contactLabel": contactLabel,
"amount": amount,
"note": note,
if (commit != null)
"openCryptoPayCommit": {
"method": commit.method,
"asset": commit.asset,
"submissionFlow": commit.submissionFlow.name,
"quoteId": commit.quoteId,
"paymentId": commit.paymentId,
"expiresAt": commit.expiresAt.toIso8601String(),
},
};
}

Expand Down
Loading
Loading