feat(wallet): read an amount as whole sats, or say why not (Phase 1)
The gated amount field read its text by dropping every non-digit, so 21000.5 became 210,005 sats and 0.0005 became 5. parseSats accepts thousands grouping and refuses decimals, grouping that groups nothing, non-ASCII digits and more sats than exist; the preview reports which. The field shows plain digits grouped and keeps what was typed. Also plans the rest in docs/group-send-an-amount.md: send-an-amount opens on every network at once, held on mainnet by the existing cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
96055da584
commit
bc348419bc
9 files changed
+631
-5
No files matched your search
@@ -654,6 +654,9 @@
|
||||
<string name="the_group_has_nothing_confirmed_to_spend">The group has nothing confirmed to spend yet.</string>
|
||||
<string name="the_group_doesn_t_have_that_much_confirmed">The group doesn't have that much confirmed, after the fee.</string>
|
||||
<string name="that_is_too_little_to_send">That is too little to send: the network won't relay an output that small.</string>
|
||||
<string name="sats_are_whole_numbers">Sats are whole numbers: there is nothing smaller than a sat to send.</string>
|
||||
<string name="that_is_more_sats_than_there_will_ever_be">That is more sats than there will ever be.</string>
|
||||
<string name="that_isn_t_an_amount_in_sats">That isn't an amount in sats.</string>
|
||||
<string name="couldn_t_ask_the_group_to_send">Couldn't ask the group to send.</string>
|
||||
<string name="sending_needs_a_share_and_a_node">Sending needs a share of the group's key, and a wallet of your own on this profile to see the group's coins with.</string>
|
||||
<string name="nothing_leaves_until_a_quorum_signs">Nothing leaves the wallet until a quorum of members has seen this spend and signed it.</string>
|
||||
|
||||
Reference in new issue
Block a user