CW-1400-add-zcash-support-to-ledger (#3699)
What changed, and why it matters
This commit adds Zcash support for Ledger hardware wallets in Cake Wallet. It lets users restore a Zcash wallet from a Ledger, sign Zcash sends and shielding transactions on the device, and adds a manual shielding UI because hardware wallets cannot auto-shield. It also refreshes checkpoint timestamps and dependency versions. There is no direct evidence of a security vulnerability in the diff, but it is a large feature change touching sensitive code paths (transaction signing, hardware wallet connection, balance display), so it warrants careful review.
Treat this as a high-touch security review item. Verify that the Ledger signing flow never exposes private keys, that the signedTxPackage path cannot be replaced or replayed, that ensureDeviceConnection cannot be bypassed, and that the updated checkpoint data and dependency versions are trustworthy. Run integration tests for Zcash Ledger restore, send, and shield on both mainnet and testnet.
Security signals we found
New hardware wallet signing path for Zcash using Ledger APDU exchange
Minimum Ledger app version enforcement for Ironwood/v6 signing
Manual shielding UI added because auto-shield is disabled for hardware wallets
Reusable ensureDeviceConnection helper centralizes hardware wallet connection checks
Large dependency bump for zkool and ledger-flutter-plus
Checkpoint timestamp data regenerated from external API (Blockchair)
Balance display logic changed to hide sweepable balance shortly after auto-shield
Evidence from the diff
The patch implements Ledger-backed Zcash wallets: a new ZcashLedgerService exchanges APDUs with the device via zkool Rust bindings, enforces a minimum Zcash app version (3.9.2), derives UFVK-based accounts, and signs PCZT packages. PendingZcashTransaction was refactored to accept an optional signedTxPackage so hardware-signed transactions can be broadcast. Auto-shield and Ironwood migration are disabled for hardware wallets; a manual shielding flow is added instead. A reusable ensureDeviceConnection helper was introduced and applied across buy, swap, sync-key-image, and deuro flows. Checkpoint data in ZcashHeight was regenerated/extended to block 3,500,000 using Blockchair. Dependency zkool and ledger-flutter-plus were bumped.
Changed components
cw_zcash Ledger hardware wallet servicecw_zcash transaction creation and shieldingcw_core device connection type enumerationLedger and Zcash dependency versionsHardware wallet connection helper across buy/swap/sync/deuro flowsZcash checkpoint height/time dataInspect captured patch +1610 / −663
### cw_core/lib/get_height_by_date_zec.dart
@@ -1,343 +1,364 @@
class ZcashHeight {
- // for i in $(seq 1 331); do echo "_Checkpoint($(date -j -f "%Y-%m-%d %H:%M:%S" "$(curl -s "https://mainnet.zcashexplorer.app/blocks/${i}0000" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}')" "+%s"), ${i}0000),"; done > points.txt
+ // for i in $(seq 1 350); do echo "_Checkpoint($(curl -s "https://api.blockchair.com/zcash/raw/block/${i}0000" | grep -oE '"time":[0-9]+' | head -1 | cut -d: -f2), ${i}0000),"; sleep 1; done > points.txt
static final List<_Checkpoint> _points = [
- _Checkpoint(1479114667, 10000),
- _Checkpoint(1480618460, 20000),
- _Checkpoint(1482129143, 30000),
- _Checkpoint(1483635610, 40000),
- _Checkpoint(1485145514, 50000),
- _Checkpoint(1486655742, 60000),
- _Checkpoint(1488163642, 70000),
- _Checkpoint(1489668244, 80000),
- _Checkpoint(1491175107, 90000),
- _Checkpoint(1492681094, 100000),
- _Checkpoint(1494185626, 110000),
- _Checkpoint(1495691260, 120000),
- _Checkpoint(1497196465, 130000),
- _Checkpoint(1498702428, 140000),
- _Checkpoint(1500209116, 150000),
- _Checkpoint(1501716823, 160000),
- _Checkpoint(1503222893, 170000),
- _Checkpoint(1504730866, 180000),
- _Checkpoint(1506236963, 190000),
- _Checkpoint(1507744233, 200000),
- _Checkpoint(1509254578, 210000),
- _Checkpoint(1510768449, 220000),
- _Checkpoint(1512275502, 230000),
- _Checkpoint(1513783951, 240000),
- _Checkpoint(1515292290, 250000),
- _Checkpoint(1516799219, 260000),
- _Checkpoint(1518306180, 270000),
- _Checkpoint(1519813817, 280000),
- _Checkpoint(1521319150, 290000),
- _Checkpoint(1522828107, 300000),
- _Checkpoint(1524336223, 310000),
- _Checkpoint(1525844954, 320000),
- _Checkpoint(1527354342, 330000),
- _Checkpoint(1528860301, 340000),
- _Checkpoint(1530365206, 350000),
- _Checkpoint(1531873693, 360000),
- _Checkpoint(1533380392, 370000),
- _Checkpoint(1534888873, 380000),
- _Checkpoint(1536393381, 390000),
- _Checkpoint(1537899117, 400000),
- _Checkpoint(1539406330, 410000),
- _Checkpoint(1540912214, 420000),
- _Checkpoint(1542422891, 430000),
- _Checkpoint(1543931111, 440000),
- _Checkpoint(1545437758, 450000),
- _Checkpoint(1546945529, 460000),
- _Checkpoint(1548450107, 470000),
- _Checkpoint(1549957767, 480000),
- _Checkpoint(1551466960, 490000),
- _Checkpoint(1552969806, 500000),
- _Checkpoint(1554477648, 510000),
- _Checkpoint(1555981451, 520000),
- _Checkpoint(1557489241, 530000),
- _Checkpoint(1558997282, 540000),
- _Checkpoint(1560503840, 550000),
- _Checkpoint(1562011717, 560000),
- _Checkpoint(1563518091, 570000),
- _Checkpoint(1565027136, 580000),
- _Checkpoint(1566532760, 590000),
- _Checkpoint(1568039395, 600000),
- _Checkpoint(1569547911, 610000),
- _Checkpoint(1571051853, 620000),
- _Checkpoint(1572559831, 630000),
- _Checkpoint(1574069743, 640000),
- _Checkpoint(1575576895, 650000),
- _Checkpoint(1576603014, 660000),
- _Checkpoint(1577356346, 670000),
- _Checkpoint(1578109375, 680000),
- _Checkpoint(1578863180, 690000),
- _Checkpoint(1579616443, 700000),
- _Checkpoint(1580369806, 710000),
- _Checkpoint(1581122786, 720000),
- _Checkpoint(1581876634, 730000),
- _Checkpoint(1582630471, 740000),
- _Checkpoint(1583383678, 750000),
- _Checkpoint(1584133944, 760000),
- _Checkpoint(1584887940, 770000),
- _Checkpoint(1585641057, 780000),
- _Checkpoint(1586395543, 790000),
- _Checkpoint(1587148500, 800000),
- _Checkpoint(1587901493, 810000),
- _Checkpoint(1588655183, 820000),
- _Checkpoint(1589408476, 830000),
- _Checkpoint(1590163464, 840000),
- _Checkpoint(1590916379, 850000),
- _Checkpoint(1591669786, 860000),
- _Checkpoint(1592423887, 870000),
- _Checkpoint(1593176771, 880000),
- _Checkpoint(1593930930, 890000),
- _Checkpoint(1594684380, 900000),
- _Checkpoint(1595439209, 910000),
- _Checkpoint(1596192463, 920000),
- _Checkpoint(1596946009, 930000),
- _Checkpoint(1597700256, 940000),
- _Checkpoint(1598453538, 950000),
- _Checkpoint(1599207483, 960000),
- _Checkpoint(1599960598, 970000),
- _Checkpoint(1600714563, 980000),
- _Checkpoint(1601467884, 990000),
- _Checkpoint(1602220941, 1000000),
- _Checkpoint(1602974722, 1010000),
- _Checkpoint(1603728848, 1020000),
- _Checkpoint(1604485637, 1030000),
- _Checkpoint(1605238381, 1040000),
- _Checkpoint(1605992807, 1050000),
- _Checkpoint(1606747750, 1060000),
- _Checkpoint(1607500606, 1070000),
- _Checkpoint(1608255278, 1080000),
- _Checkpoint(1609008684, 1090000),
- _Checkpoint(1609763782, 1100000),
- _Checkpoint(1610517871, 1110000),
- _Checkpoint(1611271575, 1120000),
- _Checkpoint(1612025546, 1130000),
- _Checkpoint(1612779940, 1140000),
- _Checkpoint(1613533993, 1150000),
- _Checkpoint(1614287669, 1160000),
- _Checkpoint(1615042297, 1170000),
- _Checkpoint(1615792993, 1180000),
- _Checkpoint(1616546145, 1190000),
- _Checkpoint(1617299867, 1200000),
- _Checkpoint(1618054038, 1210000),
- _Checkpoint(1618808513, 1220000),
- _Checkpoint(1619563243, 1230000),
- _Checkpoint(1620318159, 1240000),
- _Checkpoint(1621071298, 1250000),
- _Checkpoint(1621826156, 1260000),
- _Checkpoint(1622580237, 1270000),
- _Checkpoint(1623335553, 1280000),
- _Checkpoint(1624090141, 1290000),
- _Checkpoint(1624844712, 1300000),
- _Checkpoint(1625597720, 1310000),
- _Checkpoint(1626351652, 1320000),
- _Checkpoint(1627106054, 1330000),
- _Checkpoint(1627860648, 1340000),
- _Checkpoint(1628614015, 1350000),
- _Checkpoint(1629368398, 1360000),
- _Checkpoint(1630122679, 1370000),
- _Checkpoint(1630877190, 1380000),
- _Checkpoint(1631631884, 1390000),
- _Checkpoint(1632385851, 1400000),
- _Checkpoint(1633141006, 1410000),
- _Checkpoint(1633895592, 1420000),
- _Checkpoint(1634649550, 1430000),
- _Checkpoint(1635403121, 1440000),
- _Checkpoint(1636157669, 1450000),
- _Checkpoint(1636915133, 1460000),
- _Checkpoint(1637670036, 1470000),
- _Checkpoint(1638424121, 1480000),
- _Checkpoint(1639177413, 1490000),
- _Checkpoint(1639931234, 1500000),
- _Checkpoint(1640684476, 1510000),
- _Checkpoint(1641438827, 1520000),
- _Checkpoint(1642192402, 1530000),
- _Checkpoint(1642946383, 1540000),
- _Checkpoint(1643700901, 1550000),
- _Checkpoint(1644455522, 1560000),
- _Checkpoint(1645208504, 1570000),
- _Checkpoint(1645962081, 1580000),
- _Checkpoint(1646715150, 1590000),
- _Checkpoint(1647465727, 1600000),
- _Checkpoint(1648219045, 1610000),
- _Checkpoint(1648973131, 1620000),
- _Checkpoint(1649727422, 1630000),
- _Checkpoint(1650481408, 1640000),
- _Checkpoint(1651234287, 1650000),
- _Checkpoint(1651989865, 1660000),
- _Checkpoint(1652743327, 1670000),
- _Checkpoint(1653497455, 1680000),
- _Checkpoint(1654252094, 1690000),
- _Checkpoint(1655005944, 1700000),
- _Checkpoint(1655759708, 1710000),
- _Checkpoint(1656513765, 1720000),
- _Checkpoint(1657268358, 1730000),
- _Checkpoint(1658022453, 1740000),
- _Checkpoint(1658777019, 1750000),
- _Checkpoint(1659531133, 1760000),
- _Checkpoint(1660283907, 1770000),
- _Checkpoint(1661037645, 1780000),
- _Checkpoint(1661791977, 1790000),
- _Checkpoint(1662544394, 1800000),
- _Checkpoint(1663298018, 1810000),
- _Checkpoint(1664051450, 1820000),
- _Checkpoint(1664805547, 1830000),
- _Checkpoint(1665558994, 1840000),
- _Checkpoint(1666312456, 1850000),
- _Checkpoint(1667066473, 1860000),
- _Checkpoint(1667823393, 1870000),
- _Checkpoint(1668576623, 1880000),
- _Checkpoint(1669330657, 1890000),
- _Checkpoint(1670084156, 1900000),
- _Checkpoint(1670837831, 1910000),
- _Checkpoint(1671591094, 1920000),
- _Checkpoint(1672343975, 1930000),
- _Checkpoint(1673097703, 1940000),
- _Checkpoint(1673852016, 1950000),
- _Checkpoint(1674605810, 1960000),
- _Checkpoint(1675360050, 1970000),
- _Checkpoint(1676113710, 1980000),
- _Checkpoint(1676867174, 1990000),
- _Checkpoint(1677620242, 2000000),
- _Checkpoint(1678374852, 2010000),
- _Checkpoint(1679125063, 2020000),
- _Checkpoint(1679878121, 2030000),
- _Checkpoint(1680632254, 2040000),
- _Checkpoint(1681386518, 2050000),
- _Checkpoint(1682140381, 2060000),
- _Checkpoint(1682894564, 2070000),
- _Checkpoint(1683648178, 2080000),
- _Checkpoint(1684401932, 2090000),
- _Checkpoint(1685156464, 2100000),
- _Checkpoint(1685910040, 2110000),
- _Checkpoint(1686663406, 2120000),
- _Checkpoint(1687417875, 2130000),
- _Checkpoint(1688172069, 2140000),
- _Checkpoint(1688925610, 2150000),
- _Checkpoint(1689679500, 2160000),
- _Checkpoint(1690432691, 2170000),
- _Checkpoint(1691186349, 2180000),
- _Checkpoint(1691940901, 2190000),
- _Checkpoint(1692694780, 2200000),
- _Checkpoint(1693449743, 2210000),
- _Checkpoint(1694203665, 2220000),
- _Checkpoint(1694957643, 2230000),
- _Checkpoint(1695710712, 2240000),
- _Checkpoint(1696465787, 2250000),
- _Checkpoint(1697218701, 2260000),
- _Checkpoint(1697973031, 2270000),
- _Checkpoint(1698726864, 2280000),
- _Checkpoint(1699483348, 2290000),
- _Checkpoint(1700237650, 2300000),
- _Checkpoint(1700991210, 2310000),
- _Checkpoint(1701745742, 2320000),
- _Checkpoint(1702500723, 2330000),
- _Checkpoint(1703253121, 2340000),
- _Checkpoint(1704007238, 2350000),
- _Checkpoint(1704760935, 2360000),
- _Checkpoint(1705514669, 2370000),
- _Checkpoint(1706268087, 2380000),
- _Checkpoint(1707021423, 2390000),
- _Checkpoint(1707776257, 2400000),
- _Checkpoint(1708529542, 2410000),
- _Checkpoint(1709283065, 2420000),
- _Checkpoint(1710037165, 2430000),
- _Checkpoint(1710787780, 2440000),
- _Checkpoint(1711541488, 2450000),
- _Checkpoint(1712294996, 2460000),
- _Checkpoint(1713048843, 2470000),
- _Checkpoint(1713803486, 2480000),
- _Checkpoint(1714557127, 2490000),
- _Checkpoint(1715311181, 2500000),
- _Checkpoint(1716064271, 2510000),
- _Checkpoint(1716818792, 2520000),
- _Checkpoint(1717572765, 2530000),
- _Checkpoint(1718326333, 2540000),
- _Checkpoint(1719080275, 2550000),
- _Checkpoint(1719834297, 2560000),
- _Checkpoint(1720588042, 2570000),
- _Checkpoint(1721341832, 2580000),
- _Checkpoint(1722095122, 2590000),
- _Checkpoint(1722848604, 2600000),
- _Checkpoint(1723602357, 2610000),
- _Checkpoint(1724355843, 2620000),
- _Checkpoint(1725110085, 2630000),
- _Checkpoint(1725863681, 2640000),
- _Checkpoint(1726616892, 2650000),
- _Checkpoint(1727371443, 2660000),
- _Checkpoint(1728124893, 2670000),
- _Checkpoint(1728878141, 2680000),
- _Checkpoint(1729631572, 2690000),
- _Checkpoint(1730385888, 2700000),
- _Checkpoint(1731142437, 2710000),
- _Checkpoint(1731896266, 2720000),
- _Checkpoint(1732650193, 2730000),
- _Checkpoint(1733403626, 2740000),
- _Checkpoint(1734157390, 2750000),
- _Checkpoint(1734911442, 2760000),
- _Checkpoint(1735665720, 2770000),
- _Checkpoint(1736419845, 2780000),
- _Checkpoint(1737173511, 2790000),
- _Checkpoint(1737926795, 2800000),
- _Checkpoint(1738681511, 2810000),
- _Checkpoint(1739434236, 2820000),
- _Checkpoint(1740188214, 2830000),
- _Checkpoint(1740941352, 2840000),
- _Checkpoint(1741692338, 2850000),
- _Checkpoint(1742445247, 2860000),
- _Checkpoint(1743198927, 2870000),
- _Checkpoint(1743952947, 2880000),
- _Checkpoint(1744706370, 2890000),
- _Checkpoint(1745461377, 2900000),
- _Checkpoint(1746214735, 2910000),
- _Checkpoint(1746967908, 2920000),
- _Checkpoint(1747722271, 2930000),
- _Checkpoint(1748474582, 2940000),
- _Checkpoint(1749228582, 2950000),
- _Checkpoint(1749983372, 2960000),
- _Checkpoint(1750737278, 2970000),
- _Checkpoint(1751490762, 2980000),
- _Checkpoint(1752243931, 2990000),
- _Checkpoint(1752997873, 3000000),
- _Checkpoint(1753751756, 3010000),
- _Checkpoint(1754504935, 3020000),
- _Checkpoint(1755259449, 3030000),
- _Checkpoint(1756012904, 3040000),
- _Checkpoint(1756765335, 3050000),
- _Checkpoint(1757519206, 3060000),
- _Checkpoint(1758272484, 3070000),
- _Checkpoint(1759025597, 3080000),
- _Checkpoint(1759778957, 3090000),
- _Checkpoint(1760532780, 3100000),
- _Checkpoint(1761286210, 3110000),
- _Checkpoint(1762039783, 3120000),
- _Checkpoint(1762796627, 3130000),
- _Checkpoint(1763550532, 3140000),
- _Checkpoint(1764303860, 3150000),
- _Checkpoint(1765057381, 3160000),
- _Checkpoint(1765811222, 3170000),
- _Checkpoint(1766564356, 3180000),
- _Checkpoint(1767318326, 3190000),
- _Checkpoint(1768071956, 3200000),
- _Checkpoint(1768824957, 3210000),
- _Checkpoint(1769578781, 3220000),
- _Checkpoint(1770332206, 3230000),
- _Checkpoint(1771086265, 3240000),
- _Checkpoint(1771840180, 3250000),
- _Checkpoint(1772592783, 3260000),
- _Checkpoint(1773343947, 3270000),
- _Checkpoint(1774097085, 3280000),
- _Checkpoint(1774850161, 3290000),
- _Checkpoint(1775603525, 3300000),
- _Checkpoint(1776358117, 3310000),
+ _Checkpoint(1479096667, 10000),
+ _Checkpoint(1480600460, 20000),
+ _Checkpoint(1482111143, 30000),
+ _Checkpoint(1483617610, 40000),
+ _Checkpoint(1485127514, 50000),
+ _Checkpoint(1486637742, 60000),
+ _Checkpoint(1488145642, 70000),
+ _Checkpoint(1489653844, 80000),
+ _Checkpoint(1491160707, 90000),
+ _Checkpoint(1492666694, 100000),
+ _Checkpoint(1494171226, 110000),
+ _Checkpoint(1495676860, 120000),
+ _Checkpoint(1497182065, 130000),
+ _Checkpoint(1498688028, 140000),
+ _Checkpoint(1500194716, 150000),
+ _Checkpoint(1501702423, 160000),
+ _Checkpoint(1503208493, 170000),
+ _Checkpoint(1504716466, 180000),
+ _Checkpoint(1506222563, 190000),
+ _Checkpoint(1507729833, 200000),
+ _Checkpoint(1509240178, 210000),
+ _Checkpoint(1510750449, 220000),
+ _Checkpoint(1512257502, 230000),
+ _Checkpoint(1513765951, 240000),
+ _Checkpoint(1515274290, 250000),
+ _Checkpoint(1516781219, 260000),
+ _Checkpoint(1518288180, 270000),
+ _Checkpoint(1519795817, 280000),
+ _Checkpoint(1521304750, 290000),
+ _Checkpoint(1522813707, 300000),
+ _Checkpoint(1524321823, 310000),
+ _Checkpoint(1525830554, 320000),
+ _Checkpoint(1527339942, 330000),
+ _Checkpoint(1528845901, 340000),
+ _Checkpoint(1530350806, 350000),
+ _Checkpoint(1531859293, 360000),
+ _Checkpoint(1533365992, 370000),
+ _Checkpoint(1534874473, 380000),
+ _Checkpoint(1536378981, 390000),
+ _Checkpoint(1537884717, 400000),
+ _Checkpoint(1539391930, 410000),
+ _Checkpoint(1540897814, 420000),
+ _Checkpoint(1542404891, 430000),
+ _Checkpoint(1543913111, 440000),
+ _Checkpoint(1545419758, 450000),
+ _Checkpoint(1546927529, 460000),
+ _Checkpoint(1548432107, 470000),
+ _Checkpoint(1549939767, 480000),
+ _Checkpoint(1551448960, 490000),
+ _Checkpoint(1552955406, 500000),
+ _Checkpoint(1554463248, 510000),
+ _Checkpoint(1555967051, 520000),
+ _Checkpoint(1557474841, 530000),
+ _Checkpoint(1558982882, 540000),
+ _Checkpoint(1560489440, 550000),
+ _Checkpoint(1561997317, 560000),
+ _Checkpoint(1563503691, 570000),
+ _Checkpoint(1565012736, 580000),
+ _Checkpoint(1566518360, 590000),
+ _Checkpoint(1568024995, 600000),
+ _Checkpoint(1569533511, 610000),
+ _Checkpoint(1571037453, 620000),
+ _Checkpoint(1572545431, 630000),
+ _Checkpoint(1574051743, 640000),
+ _Checkpoint(1575558895, 650000),
+ _Checkpoint(1576585014, 660000),
+ _Checkpoint(1577338346, 670000),
+ _Checkpoint(1578091375, 680000),
+ _Checkpoint(1578845180, 690000),
+ _Checkpoint(1579598443, 700000),
+ _Checkpoint(1580351806, 710000),
+ _Checkpoint(1581104786, 720000),
+ _Checkpoint(1581858634, 730000),
+ _Checkpoint(1582612471, 740000),
+ _Checkpoint(1583365678, 750000),
+ _Checkpoint(1584119544, 760000),
+ _Checkpoint(1584873540, 770000),
+ _Checkpoint(1585626657, 780000),
+ _Checkpoint(1586381143, 790000),
+ _Checkpoint(1587134100, 800000),
+ _Checkpoint(1587887093, 810000),
+ _Checkpoint(1588640783, 820000),
+ _Checkpoint(1589394076, 830000),
+ _Checkpoint(1590149064, 840000),
+ _Checkpoint(1590901979, 850000),
+ _Checkpoint(1591655386, 860000),
+ _Checkpoint(1592409487, 870000),
+ _Checkpoint(1593162371, 880000),
+ _Checkpoint(1593916530, 890000),
+ _Checkpoint(1594669980, 900000),
+ _Checkpoint(1595424809, 910000),
+ _Checkpoint(1596178063, 920000),
+ _Checkpoint(1596931609, 930000),
+ _Checkpoint(1597685856, 940000),
+ _Checkpoint(1598439138, 950000),
+ _Checkpoint(1599193083, 960000),
+ _Checkpoint(1599946198, 970000),
+ _Checkpoint(1600700163, 980000),
+ _Checkpoint(1601453484, 990000),
+ _Checkpoint(1602206541, 1000000),
+ _Checkpoint(1602960322, 1010000),
+ _Checkpoint(1603714448, 1020000),
+ _Checkpoint(1604467637, 1030000),
+ _Checkpoint(1605220381, 1040000),
+ _Checkpoint(1605974807, 1050000),
+ _Checkpoint(1606729750, 1060000),
+ _Checkpoint(1607482606, 1070000),
+ _Checkpoint(1608237278, 1080000),
+ _Checkpoint(1608990684, 1090000),
+ _Checkpoint(1609745782, 1100000),
+ _Checkpoint(1610499871, 1110000),
+ _Checkpoint(1611253575, 1120000),
+ _Checkpoint(1612007546, 1130000),
+ _Checkpoint(1612761940, 1140000),
+ _Checkpoint(1613515993, 1150000),
+ _Checkpoint(1614269669, 1160000),
+ _Checkpoint(1615024297, 1170000),
+ _Checkpoint(1615778593, 1180000),
+ _Checkpoint(1616531745, 1190000),
+ _Checkpoint(1617285467, 1200000),
+ _Checkpoint(1618039638, 1210000),
+ _Checkpoint(1618794113, 1220000),
+ _Checkpoint(1619548843, 1230000),
+ _Checkpoint(1620303759, 1240000),
+ _Checkpoint(1621056898, 1250000),
+ _Checkpoint(1621811756, 1260000),
+ _Checkpoint(1622565837, 1270000),
+ _Checkpoint(1623321153, 1280000),
+ _Checkpoint(1624075741, 1290000),
+ _Checkpoint(1624830312, 1300000),
+ _Checkpoint(1625583320, 1310000),
+ _Checkpoint(1626337252, 1320000),
+ _Checkpoint(1627091654, 1330000),
+ _Checkpoint(1627846248, 1340000),
+ _Checkpoint(1628599615, 1350000),
+ _Checkpoint(1629353998, 1360000),
+ _Checkpoint(1630108279, 1370000),
+ _Checkpoint(1630862790, 1380000),
+ _Checkpoint(1631617484, 1390000),
+ _Checkpoint(1632371451, 1400000),
+ _Checkpoint(1633126606, 1410000),
+ _Checkpoint(1633881192, 1420000),
+ _Checkpoint(1634635150, 1430000),
+ _Checkpoint(1635388721, 1440000),
+ _Checkpoint(1636143269, 1450000),
+ _Checkpoint(1636897133, 1460000),
+ _Checkpoint(1637652036, 1470000),
+ _Checkpoint(1638406121, 1480000),
+ _Checkpoint(1639159413, 1490000),
+ _Checkpoint(1639913234, 1500000),
+ _Checkpoint(1640666476, 1510000),
+ _Checkpoint(1641420827, 1520000),
+ _Checkpoint(1642174402, 1530000),
+ _Checkpoint(1642928383, 1540000),
+ _Checkpoint(1643682901, 1550000),
+ _Checkpoint(1644437522, 1560000),
+ _Checkpoint(1645190504, 1570000),
+ _Checkpoint(1645944081, 1580000),
+ _Checkpoint(1646697150, 1590000),
+ _Checkpoint(1647451327, 1600000),
+ _Checkpoint(1648204645, 1610000),
+ _Checkpoint(1648958731, 1620000),
+ _Checkpoint(1649713022, 1630000),
+ _Checkpoint(1650467008, 1640000),
+ _Checkpoint(1651219887, 1650000),
+ _Checkpoint(1651975465, 1660000),
+ _Checkpoint(1652728927, 1670000),
+ _Checkpoint(1653483055, 1680000),
+ _Checkpoint(1654237694, 1690000),
+ _Checkpoint(1654991544, 1700000),
+ _Checkpoint(1655745308, 1710000),
+ _Checkpoint(1656499365, 1720000),
+ _Checkpoint(1657253958, 1730000),
+ _Checkpoint(1658008053, 1740000),
+ _Checkpoint(1658762619, 1750000),
+ _Checkpoint(1659516733, 1760000),
+ _Checkpoint(1660269507, 1770000),
+ _Checkpoint(1661023245, 1780000),
+ _Checkpoint(1661777577, 1790000),
+ _Checkpoint(1662529994, 1800000),
+ _Checkpoint(1663283618, 1810000),
+ _Checkpoint(1664037050, 1820000),
+ _Checkpoint(1664791147, 1830000),
+ _Checkpoint(1665544594, 1840000),
+ _Checkpoint(1666298056, 1850000),
+ _Checkpoint(1667052073, 1860000),
+ _Checkpoint(1667805393, 1870000),
+ _Checkpoint(1668558623, 1880000),
+ _Checkpoint(1669312657, 1890000),
+ _Checkpoint(1670066156, 1900000),
+ _Checkpoint(1670819831, 1910000),
+ _Checkpoint(1671573094, 1920000),
+ _Checkpoint(1672325975, 1930000),
+ _Checkpoint(1673079703, 1940000),
+ _Checkpoint(1673834016, 1950000),
+ _Checkpoint(1674587810, 1960000),
+ _Checkpoint(1675342050, 1970000),
+ _Checkpoint(1676095710, 1980000),
+ _Checkpoint(1676849174, 1990000),
+ _Checkpoint(1677602242, 2000000),
+ _Checkpoint(1678356852, 2010000),
+ _Checkpoint(1679110663, 2020000),
+ _Checkpoint(1679863721, 2030000),
+ _Checkpoint(1680617854, 2040000),
+ _Checkpoint(1681372118, 2050000),
+ _Checkpoint(1682125981, 2060000),
+ _Checkpoint(1682880164, 2070000),
+ _Checkpoint(1683633778, 2080000),
+ _Checkpoint(1684387532, 2090000),
+ _Checkpoint(1685142064, 2100000),
+ _Checkpoint(1685895640, 2110000),
+ _Checkpoint(1686649006, 2120000),
+ _Checkpoint(1687403475, 2130000),
+ _Checkpoint(1688157669, 2140000),
+ _Checkpoint(1688911210, 2150000),
+ _Checkpoint(1689665100, 2160000),
+ _Checkpoint(1690418291, 2170000),
+ _Checkpoint(1691171949, 2180000),
+ _Checkpoint(1691926501, 2190000),
+ _Checkpoint(1692680380, 2200000),
+ _Checkpoint(1693435343, 2210000),
+ _Checkpoint(1694189265, 2220000),
+ _Checkpoint(1694943243, 2230000),
+ _Checkpoint(1695696312, 2240000),
+ _Checkpoint(1696451387, 2250000),
+ _Checkpoint(1697204301, 2260000),
+ _Checkpoint(1697958631, 2270000),
+ _Checkpoint(1698712464, 2280000),
+ _Checkpoint(1699465348, 2290000),
+ _Checkpoint(1700219650, 2300000),
+ _Checkpoint(1700973210, 2310000),
+ _Checkpoint(1701727742, 2320000),
+ _Checkpoint(1702482723, 2330000),
+ _Checkpoint(1703235121, 2340000),
+ _Checkpoint(1703989238, 2350000),
+ _Checkpoint(1704742935, 2360000),
+ _Checkpoint(1705496669, 2370000),
+ _Checkpoint(1706250087, 2380000),
+ _Checkpoint(1707003423, 2390000),
+ _Checkpoint(1707758257, 2400000),
+ _Checkpoint(1708511542, 2410000),
+ _Checkpoint(1709265065, 2420000),
+ _Checkpoint(1710019165, 2430000),
+ _Checkpoint(1710773380, 2440000),
+ _Checkpoint(1711527088, 2450000),
+ _Checkpoint(1712280596, 2460000),
+ _Checkpoint(1713034443, 2470000),
+ _Checkpoint(1713789086, 2480000),
+ _Checkpoint(1714542727, 2490000),
+ _Checkpoint(1715296781, 2500000),
+ _Checkpoint(1716049871, 2510000),
+ _Checkpoint(1716804392, 2520000),
+ _Checkpoint(1717558365, 2530000),
+ _Checkpoint(1718311933, 2540000),
+ _Checkpoint(1719065875, 2550000),
+ _Checkpoint(1719819897, 2560000),
+ _Checkpoint(1720573642, 2570000),
+ _Checkpoint(1721327432, 2580000),
+ _Checkpoint(1722080722, 2590000),
+ _Checkpoint(1722834204, 2600000),
+ _Checkpoint(1723587957, 2610000),
+ _Checkpoint(1724341443, 2620000),
+ _Checkpoint(1725095685, 2630000),
+ _Checkpoint(1725849281, 2640000),
+ _Checkpoint(1726602492, 2650000),
+ _Checkpoint(1727357043, 2660000),
+ _Checkpoint(1728110493, 2670000),
+ _Checkpoint(1728863741, 2680000),
+ _Checkpoint(1729617172, 2690000),
+ _Checkpoint(1730371488, 2700000),
+ _Checkpoint(1731124437, 2710000),
+ _Checkpoint(1731878266, 2720000),
+ _Checkpoint(1732632193, 2730000),
+ _Checkpoint(1733385626, 2740000),
+ _Checkpoint(1734139390, 2750000),
+ _Checkpoint(1734893442, 2760000),
+ _Checkpoint(1735647720, 2770000),
+ _Checkpoint(1736401845, 2780000),
+ _Checkpoint(1737155511, 2790000),
+ _Checkpoint(1737908795, 2800000),
+ _Checkpoint(1738663511, 2810000),
+ _Checkpoint(1739416236, 2820000),
+ _Checkpoint(1740170214, 2830000),
+ _Checkpoint(1740923352, 2840000),
+ _Checkpoint(1741677938, 2850000),
+ _Checkpoint(1742430847, 2860000),
+ _Checkpoint(1743184527, 2870000),
+ _Checkpoint(1743938547, 2880000),
+ _Checkpoint(1744691970, 2890000),
+ _Checkpoint(1745446977, 2900000),
+ _Checkpoint(1746200335, 2910000),
+ _Checkpoint(1746953508, 2920000),
+ _Checkpoint(1747707871, 2930000),
+ _Checkpoint(1748460182, 2940000),
+ _Checkpoint(1749214182, 2950000),
+ _Checkpoint(1749968972, 2960000),
+ _Checkpoint(1750722878, 2970000),
+ _Checkpoint(1751476362, 2980000),
+ _Checkpoint(1752229531, 2990000),
+ _Checkpoint(1752983473, 3000000),
+ _Checkpoint(1753737356, 3010000),
+ _Checkpoint(1754490535, 3020000),
+ _Checkpoint(1755245049, 3030000),
+ _Checkpoint(1755998504, 3040000),
+ _Checkpoint(1756750935, 3050000),
+ _Checkpoint(1757504806, 3060000),
+ _Checkpoint(1758258084, 3070000),
+ _Checkpoint(1759011197, 3080000),
+ _Checkpoint(1759764557, 3090000),
+ _Checkpoint(1760518380, 3100000),
+ _Checkpoint(1761271810, 3110000),
+ _Checkpoint(1762025383, 3120000),
+ _Checkpoint(1762778627, 3130000),
+ _Checkpoint(1763532532, 3140000),
+ _Checkpoint(1764285860, 3150000),
+ _Checkpoint(1765039381, 3160000),
+ _Checkpoint(1765793222, 3170000),
+ _Checkpoint(1766546356, 3180000),
+ _Checkpoint(1767300326, 3190000),
+ _Checkpoint(1768053956, 3200000),
+ _Checkpoint(1768806957, 3210000),
+ _Checkpoint(1769560781, 3220000),
+ _Checkpoint(1770314206, 3230000),
+ _Checkpoint(1771068265, 3240000),
+ _Checkpoint(1771822180, 3250000),
+ _Checkpoint(1772574783, 3260000),
+ _Checkpoint(1773329547, 3270000),
+ _Checkpoint(1774082685, 3280000),
+ _Checkpoint(1774835761, 3290000),
+ _Checkpoint(1775589125, 3300000),
+ _Checkpoint(1776343717, 3310000),
+ _Checkpoint(1777097332, 3320000),
+ _Checkpoint(1777851068, 3330000),
+ _Checkpoint(1778604451, 3340000),
+ _Checkpoint(1779359129, 3350000),
+ _Checkpoint(1780112204, 3360000),
+ _Checkpoint(1780866005, 3370000),
+ _Checkpoint(1781619712, 3380000),
+ _Checkpoint(1782372852, 3390000),
+ _Checkpoint(1783127340, 3400000),
+ _Checkpoint(1783880610, 3410000),
+ _Checkpoint(1784633685, 3420000),
+ _Checkpoint(1785388067, 3430000),
+ _Checkpoint(1786141366, 3440000),
+ _Checkpoint(1786894060, 3450000),
+ _Checkpoint(1787649147, 3460000),
+ _Checkpoint(1788402205, 3470000),
+ _Checkpoint(1789155008, 3480000),
+ _Checkpoint(1789909130, 3490000),
+ _Checkpoint(1790662825, 3500000),
];
static int getBlockHeightByTime(DateTime time) {
final t = time.toUtc().millisecondsSinceEpoch;
- if (_points.isEmpty) return 0;
+ if (_points.isEmpty) {
+ return 0;
+ }
if (t <= _points.first.timeMs) {
return 1;
@@ -369,7 +390,10 @@ class ZcashHeight {
}
static DateTime getTimeByBlockHeight(int height) {
- if (_points.isEmpty) return DateTime.fromMillisecondsSinceEpoch(0, isUtc: true);
+ if (_points.isEmpty) {
+ return DateTime.fromMillisecondsSinceEpoch(0, isUtc: true);
+ }
+
if (height <= 1) {
return DateTime.fromMillisecondsSinceEpoch(_points.first.timeMs, isUtc: true);
}
@@ -409,8 +433,8 @@ class ZcashHeight {
}
class _Checkpoint {
+ _Checkpoint(int timeSec, this.height) : timeMs = timeSec * 1000;
+
final int timeMs;
final int height;
-
- _Checkpoint(int timeSec, this.height) : timeMs = timeSec * 1000;
}
### cw_core/lib/hardware/device_connection_type.dart
@@ -1,13 +1,15 @@
-import 'package:cw_core/wallet_info.dart';
-import 'package:cw_core/wallet_type.dart';
+import "package:cw_core/wallet_info.dart";
+import "package:cw_core/wallet_type.dart";
enum DeviceConnectionType {
usb,
ble;
static List<DeviceConnectionType> supportedConnectionTypes(
- WalletType walletType, HardwareWalletType hardwareType,
- [bool isIOS = false]) {
+ WalletType walletType,
+ HardwareWalletType hardwareType, {
+ bool isIOS = false,
+ }) {
bool isSupported = false;
switch (hardwareType) {
case HardwareWalletType.bitbox:
@@ -25,6 +27,7 @@ enum DeviceConnectionType {
WalletType.litecoin,
WalletType.ethereum,
WalletType.polygon,
+ WalletType.zcash,
].contains(walletType);
break;
case HardwareWalletType.trezor:
@@ -54,9 +57,9 @@ enum DeviceConnectionType {
String get iconString {
switch (this) {
case ble:
- return 'assets/images/bluetooth.png';
+ return "assets/images/bluetooth.png";
case usb:
- return 'assets/images/usb.png';
+ return "assets/images/usb.png";
}
}
}
### cw_monero/lib/ledger.dart
@@ -53,10 +53,10 @@ Future<Uint8List> exchange(LedgerConnection connection, Uint8List data) async =>
connection.sendOperation<Uint8List>(ExchangeOperation(data));
class ExchangeOperation extends LedgerRawOperation<Uint8List> {
- final Uint8List inputData;
-
ExchangeOperation(this.inputData);
+ final Uint8List inputData;
+
@override
Future<Uint8List> read(ByteDataReader reader) async => reader.read(reader.remainingLength);
### cw_zcash/lib/src/hardware/zcash_hardware_wallet_service.dart
@@ -0,0 +1,10 @@
+import "package:cw_core/hardware/hardware_wallet_service.dart";
+import "package:zkool/src/rust/api/coin.dart" as zkool_coin;
+
+abstract class ZcashHardwareWalletService extends HardwareWalletService {
+ ZcashHardwareWalletService(this.coin);
+
+ final zkool_coin.Coin? coin;
+
+ ZcashHardwareWalletService withCoin(zkool_coin.Coin coin) => throw UnimplementedError();
+}
### cw_zcash/lib/src/hardware/zcash_ledger_service.dart
@@ -0,0 +1,215 @@
+import 'dart:async';
+import "dart:convert";
+import 'dart:typed_data';
+
+import "package:cw_core/exceptions/cake_exception.dart";
+import 'package:cw_core/hardware/hardware_account_data.dart';
+import 'package:cw_core/utils/print_verbose.dart';
+import "package:cw_zcash/src/hardware/zcash_hardware_wallet_service.dart";
+import 'package:cw_zcash/src/zcash_network.dart';
+import 'package:cw_zcash/src/zcash_wallet.dart';
+import 'package:ledger_flutter_plus/ledger_flutter_plus.dart';
+import 'package:ledger_flutter_plus/ledger_flutter_plus_dart.dart';
+import 'package:zkool/src/rust/api/coin.dart' as zkool_coin;
+import 'package:zkool/src/rust/api/ledger.dart' as zkool_ledger;
+import 'package:zkool/src/rust/api/pay.dart' as zkool_pay;
+
+class ZcashLedgerException extends CakeException {
+ const ZcashLedgerException(super.message);
+}
+
+const _notConnected =
+ "The Ledger is not connected. Make sure it is unlocked and nearby, then try again.";
+
+class ZcashLedgerService extends ZcashHardwareWalletService {
+ ZcashLedgerService(this.connection, {this.network = ZcashNetwork.mainnet, zkool_coin.Coin? coin})
+ : super(coin);
+
+ final LedgerConnection connection;
+ final ZcashNetwork network;
+
+ @override
+ ZcashLedgerService withCoin(zkool_coin.Coin coin) =>
+ ZcashLedgerService(connection, network: network, coin: coin);
+
+ /// Ironwood/v6 signing shipped in app-zcash 3.9.2.
+ static const (int, int, int) minAppVersion = (3, 9, 2);
+
+ Object? lastTransportError;
+
+ Future<Uint8List> exchange(final Uint8List apdu) async {
+ try {
+ final reply = await connection.sendOperation<Uint8List>(_ExchangeOperation(apdu));
+ lastTransportError = null;
+ return reply;
+ } on LedgerDeviceException catch (e) {
+ printV(
+ "ledger: status ${e.errorCode.toRadixString(16)} for ins ${apdu[1].toRadixString(16)}");
+ return Uint8List.fromList([(e.errorCode >> 8) & 0xff, e.errorCode & 0xff]);
+ } catch (e) {
+ printV("ledger transport error: $e");
+ lastTransportError = e;
+ return Uint8List(0);
+ }
+ }
+
+ Future<String> appVersion() => _guard(() => zkool_ledger.ledgerAppVersion(exchange: exchange));
+
+ /// Fails unless the Zcash app is open and new enough to sign Ironwood.
+ Future<void> ensureZcashApp() async {
+ final String version;
+ try {
+ version = await appVersion();
+ } on ZcashLedgerException {
+ rethrow;
+ } catch (e) {
+ throw ZcashLedgerException(
+ "Open the Zcash app on your Ledger, then try again (${_trimRustException(e.toString())})");
+ }
+ final parts = version.split(".").map(int.tryParse).toList();
+ if (parts.length < 3 || parts.any((final p) => p == null)) {
+ throw ZcashLedgerException("Could not read the Zcash app version on the Ledger ($version)");
+ }
+ final (major, minor, patch) = minAppVersion;
+ final current = (parts[0]!, parts[1]!, parts[2]!);
+ final tooOld =
+ current.$1 < major ||
+ (current.$1 == major && current.$2 < minor) ||
+ (current.$1 == major && current.$2 == minor && current.$3 < patch);
+ if (tooOld) {
+ throw ZcashLedgerException(
+ "Zcash app $version on the Ledger is too old for shielded transactions");
+ }
+ }
+
+ Future<void> _ensureServiceReadiness() async {
+ await ZcashWalletBase.ensureRustLib();
+ await ensureZcashApp();
+ if (coin == null) {
+ throw ZcashLedgerException("Zcash coin not set, please contact support");
+ }
+ }
+
+ @override
+ Future<List<HardwareAccountData>> getAvailableAccounts({int index = 0, int limit = 5}) async {
+ await _ensureServiceReadiness();
+ final ufvk = await _guard(
+ () => zkool_ledger.ledgerGetUfvk(aindex: index, c: coin!, exchange: exchange),
+ );
+ final address = zkool_ledger.ufvkDefaultAddress(ufvk: ufvk, c: coin!);
+ return [
+ HardwareAccountData(
+ address: address,
+ accountIndex: index,
+ derivationPath: "m/44'/${network == ZcashNetwork.mainnet ? 133 : 1}'/$index'",
+ xpub: ufvk,
+ ),
+ ];
+ }
+
+ @override
+ Future<Uint8List> signTransaction({required String transaction}) async {
+ await _ensureServiceReadiness();
+ final txPlan = await zkool_pay.unpackTransaction(bytes: base64Decode(transaction));
+
+ await for (final event in _sign(txPlan, coin!)) {
+ switch (event) {
+ case zkool_pay.SigningEvent_Progress(:final field0):
+ printV("ledger: $field0");
+ case zkool_pay.SigningEvent_Result(:final field0):
+ return zkool_pay.packTransaction(pczt: field0);
+ }
+ }
+ throw ZcashLedgerException("Ledger did not sign the transaction");
+ }
+
+ Stream<zkool_pay.SigningEvent> _sign(
+ final zkool_pay.PcztPackage package,
+ final zkool_coin.Coin coin,
+ ) async* {
+ lastTransportError = null;
+ yield* zkool_ledger
+ .ledgerSignTransaction(package: package, c: coin, exchange: exchange)
+ .handleError((final Object e) => throw _withTransportCause(e));
+ }
+
+ Future<T> _guard<T>(final Future<T> Function() call) async {
+ if (connection.isDisconnected) {
+ throw ZcashLedgerException(_notConnected);
+ }
+ lastTransportError = null;
+ try {
+ return await call();
+ } catch (e) {
+ throw _withTransportCause(e);
+ }
+ }
+
+ Object _withTransportCause(final Object error) {
+ if (error is ZcashLedgerException) {
+ return error;
+ }
+ if (lastTransportError != null) {
+ printV("ledger transport failure: $lastTransportError");
+ return ZcashLedgerException(_notConnected);
+ }
+
+ final sw = _ledgerStatusWordOf(error);
+ return sw == null ? error : ZcashLedgerException(_interpretLedgerErrorCode(sw));
+ }
+
+ int? _ledgerStatusWordOf(final Object error) {
+ final m = RegExp(r"Error Executing Instruction \d+: (\d+)").firstMatch(error.toString());
+ return m == null ? null : int.tryParse(m.group(1)!);
+ }
+
+ String _interpretLedgerErrorCode(int sw) {
+ switch (sw) {
+ case 0x5515:
+ return "Your Ledger is locked. Unlock it and open the Zcash app, then try again.";
+ case 0x6e00:
+ case 0x6e01:
+ case 0x6d00:
+ case 0x6d02:
+ return "Open the Zcash app on your Ledger, then try again.";
+ case 0x6985:
+ case 0x6986:
+ return "The transaction was rejected on the Ledger.";
+ case 0x6a80:
+ case 0x6a86:
+ case 0x6a87:
+ return "The Ledger could not read the transaction. Update the Zcash app in Ledger Live and try again.";
+ case 0x6f00:
+ case 0x6f01:
+ return "The Zcash app on the Ledger ran into an internal error. Close and reopen the app, then try again.";
+ default:
+ return "The Ledger returned an error (0x${sw.toRadixString(16).padLeft(4, '0')}). Make sure the Zcash app is open and up to date, then try again.";
+ }
+ }
+
+ String _trimRustException(String error) {
+ if (error.startsWith("Exception: ")) {
+ error = error.substring("Exception: ".length);
+ }
+ final cut = error.indexOf("\n\nStack backtrace");
+ if (cut != -1) {
+ error = error.substring(0, cut);
+ }
+ return error
+ .trim()
+ .replaceFirst(RegExp(r"^AnyhowException\("), "")
+ .replaceFirst(RegExp(r"\)$"), "");
+ }
+}
+
+class _ExchangeOperation extends LedgerRawOperation<Uint8List> {
+ _ExchangeOperation(this.inputData);
+
+ final Uint8List inputData;
+
+ @override
+ Future<Uint8List> read(ByteDataReader reader) async => reader.read(reader.remainingLength);
+
+ @override
+ Future<List<Uint8List>> write(ByteDataWriter writer) async => [inputData];
+}
### cw_zcash/lib/src/models.dart
@@ -1,3 +1,4 @@
+import "package:cw_core/hardware/hardware_wallet_service.dart";
import 'package:cw_core/wallet_credentials.dart';
class ZcashNewWalletCredentials extends WalletCredentials {
@@ -45,3 +46,16 @@ class ZcashFromKeysWalletCredentials extends WalletCredentials {
final String? privateKey;
int network;
}
+
+class ZcashRestoreWalletFromHardware extends WalletCredentials {
+ ZcashRestoreWalletFromHardware({
+ required super.name,
+ required super.height,
+ required this.hardwareWalletService,
+ this.accountIndex = 0,
+ this.network = 0,
+ });
+ final HardwareWalletService hardwareWalletService;
+ final int accountIndex;
+ int network;
+}
### cw_zcash/lib/src/pending_zcash_transaction.dart
@@ -9,17 +9,20 @@ import 'package:zkool/src/rust/api/network.dart' as zkool_network;
class PendingZcashTransaction with PendingTransaction {
PendingZcashTransaction({
required this.zcashWallet,
- required this.credentials,
+ required this.amount,
required this.txPlan,
required this.fee,
required this.availableBalance,
+ this.signedTxPackage,
+ this.isShieldingTx = false,
});
final ZcashWallet zcashWallet;
- final ZcashTransactionCredentials credentials;
final zkool_pay.PcztPackage txPlan;
+ final zkool_pay.PcztPackage? signedTxPackage;
String? _txId;
final Money availableBalance;
+ final bool isShieldingTx;
@override
String get id => _txId ?? '';
@@ -28,15 +31,7 @@ class PendingZcashTransaction with PendingTransaction {
String get hex => '';
@override
- Money get amount {
- final isAll = credentials.outputs.fold<bool>(false, (final a, final b) => a || (b.sendAll));
- if (isAll) {
- return availableBalance - fee;
- }
- return credentials.outputs
- .map((final output) => output.cryptoAmount)
- .reduce((final a, final b) => a + b);
- }
+ final Money amount;
@override
String get amountFormatted => amount.toString();
@@ -49,7 +44,7 @@ class PendingZcashTransaction with PendingTransaction {
await ZcashWalletBase.runWithCoin(
accountId: zcashWallet.accountId,
func: (coin) async {
- final signTx = await zkool_pay.signTransaction(pczt: txPlan, c: coin);
+ final signTx = signedTxPackage ?? await zkool_pay.signTransaction(pczt: txPlan, c: coin);
final txBytes = await zkool_pay.extractTransaction(package: signTx);
final currentHeight = await zkool_network.getCurrentHeight(c: coin);
final result = await zkool_pay.broadcastTransaction(
@@ -63,11 +58,17 @@ class PendingZcashTransaction with PendingTransaction {
throw TransactionCommitFailed(errorMessage: result);
}
_txId = txId;
- zcashWallet.rememberPendingOutgoingAmount(txId, amount);
+ if (isShieldingTx) {
+ await ZcashWalletService.addShieldedTx(txId);
+ } else {
+ zcashWallet.rememberPendingOutgoingAmount(txId, amount);
+ }
},
);
+
await zcashWallet.updateTransactions();
- await zcashWallet.updateBalance();
+ await zcashWallet.updateBalance(
+ runAutoShield: !isShieldingTx, runIronwoodMigrate: !isShieldingTx);
}
@override
### cw_zcash/lib/src/zcash_taddress_rotation.dart
@@ -441,7 +441,6 @@ class ZcashTaddressRotation {
srcPools: 1,
recipientPaysFee: true,
smartTransparent: false,
- mode: 0,
),
c: coin,
);
@@ -591,7 +590,7 @@ class ZcashTaddressRotation {
pools: 1,
useInternal: true,
internal: false,
- ledger: false,
+ hw: 0,
),
c: c,
);
### cw_zcash/lib/src/zcash_wallet.dart
@@ -1,4 +1,5 @@
import 'dart:async';
+import "dart:convert";
import 'dart:io';
import 'dart:math';
@@ -10,6 +11,7 @@ import 'package:cw_core/monero_transaction_priority.dart';
import 'package:cw_core/node.dart';
import 'package:cw_core/pathForWallet.dart';
import 'package:cw_core/pending_transaction.dart';
+import "package:cw_core/receive_page_option.dart";
import 'package:cw_core/sync_status.dart';
import 'package:cw_core/transaction_direction.dart';
import 'package:cw_core/transaction_priority.dart';
@@ -20,6 +22,7 @@ import 'package:cw_core/wallet_info.dart';
import 'package:cw_core/wallet_type.dart';
import 'package:bip39/bip39.dart' as bip39;
import 'package:cw_zcash/cw_zcash.dart';
+import "package:cw_zcash/src/hardware/zcash_hardware_wallet_service.dart";
import 'package:cw_zcash/src/util/crc32.dart';
import "package:cw_zcash/src/util/exceptions.dart";
import 'package:cw_zcash/src/zcash_mempool.dart';
@@ -65,6 +68,21 @@ abstract class ZcashWalletBase
int accountId;
+ bool get canRotateTransparentAddress => isSoftwareWallet;
+
+ bool get canUseLegacyShielded => isSoftwareWallet;
+
+ @override
+ bool receiveOptionAvailable(ReceivePageOption option) {
+ if (option == ZcashReceivePageOption.transparentRotated) {
+ return canRotateTransparentAddress;
+ }
+ if (option == ZcashReceivePageOption.shieldedSapling) {
+ return canUseLegacyShielded;
+ }
+ return true;
+ }
+
final Map<String, BigInt> _pendingOutgoingAmounts = {};
void rememberPendingOutgoingAmount(final String txId, final Money amount) {
@@ -74,9 +92,11 @@ abstract class ZcashWalletBase
_pendingOutgoingAmounts[ZcashWalletService.normalizeTxId(txId)] = amount.amount;
}
+ ZcashHardwareWalletService? hardwareWalletService;
+
@override
@observable
- SyncStatus syncStatus = NotConnectedSyncStatus();
+ SyncStatus syncStatus = const NotConnectedSyncStatus();
@override
ObservableMap<CryptoCurrency, ZcashBalance> balance = ObservableMap.of({
@@ -142,9 +162,7 @@ abstract class ZcashWalletBase
static bool isNodeWorking = true;
@override
- Future<bool> checkNodeHealth() {
- return Future.value(isNodeWorking);
- }
+ Future<bool> checkNodeHealth() => Future.value(isNodeWorking);
@override
Future<void> close({final bool shouldCleanup = false}) async {
@@ -209,13 +227,9 @@ abstract class ZcashWalletBase
int _syncCheckpointHeight = 0;
- bool get isSyncing {
- return _isSyncing;
- }
+ bool get isSyncing => _isSyncing;
- set isSyncing(final bool value) {
- _isSyncing = value;
- }
+ set isSyncing(final bool value) => _isSyncing = value;
bool _isSyncing = false;
@@ -482,7 +496,7 @@ abstract class ZcashWalletBase
// pools parameter: bitmask for which pools to use for sending
// 1=Transparent, 2=Sapling, 4=Orchard, 8=Ironwood
try {
- return await runWithCoin(
+ final (txPlan, txFee) = await runWithCoin(
accountId: accountId,
func: (coin) async {
final ironwood = await zkool_network.isIronwoodActive(c: coin);
@@ -492,19 +506,46 @@ abstract class ZcashWalletBase
srcPools: ironwood ? 8 : 4,
recipientPaysFee: receipientPaysFee,
smartTransparent: false,
- mode: 0,
),
c: coin,
);
final txFee = _feeFromTxPlan(txPlan, creds.priority, tryReduceFeeAmount, coin: coin);
- return PendingZcashTransaction(
+ return (txPlan, txFee);
+ },
+ );
+
+ final isAll = credentials.outputs.fold<bool>(false, (final a, final b) => a || (b.sendAll));
+ final totalAmount = isAll ? availableBalance - txFee : credentials.outputs.map((
+ final output) => output.cryptoAmount).reduce((final a, final b) => a + b);
+
+
+ if (isHardwareWallet) {
+ final unsignedTx = await zkool_pay.packTransaction(pczt: txPlan);
+
+ final signedTxBytes = await runWithCoin(
+ accountId: accountId,
+ func: (coin) => hardwareWalletService!.withCoin(coin).signTransaction(
+ transaction: base64Encode(unsignedTx),
+ )
+ );
+ final signedTx = await zkool_pay.unpackTransaction(bytes: signedTxBytes);
+
+ return PendingZcashTransaction(
zcashWallet: this as ZcashWallet,
- credentials: creds,
+ amount: totalAmount,
txPlan: txPlan,
fee: txFee,
availableBalance: availableBalance,
- );
- },
+ signedTxPackage: signedTx
+ );
+ }
+
+ return PendingZcashTransaction(
+ zcashWallet: this as ZcashWallet,
+ amount: totalAmount,
+ txPlan: txPlan,
+ fee: txFee,
+ availableBalance: availableBalance,
);
} catch (e) {
if (tryReduceFeeAmount != 0) rethrow;
@@ -955,7 +996,7 @@ abstract class ZcashWalletBase
}
seed = s.mnemonic.trim();
} catch (e) {
- seed = e.toString();
+ seed = null;
}
}
@@ -1001,39 +1042,16 @@ abstract class ZcashWalletBase
static int zashiAnnouncedBlockHeight = 2419420;
- Future<int?> getBirthHeight() async => runWithCoin(
+ Future<int?> getBirthHeight() async =>
+ runWithCoin(
accountId: accountId,
- func: (final coin) async => (await zkool_account.listAccounts(c: coin))
+ func: (coin) async =>
+ (await zkool_account.listAccounts(c: coin))
.where((final a) => a.id == accountId)
.firstOrNull
?.birth,
);
- Future<dynamic> _getAddressesForAccount(final int id) async {
- return runWithCoin(
- accountId: id,
- func: (final coin) => zkool_account.getAddresses(c: coin, uaPools: 7),
- );
- }
-
- bool _addressesMatch(final dynamic old, final dynamic new_) {
- return old.ua == new_.ua &&
- old.oaddr == new_.oaddr &&
- old.saddr == new_.saddr &&
- old.taddr == new_.taddr;
- }
-
- Future<void> _switchToAccount(final int newAccountId, final int height) async {
- walletsByAccountId.remove(accountId);
- accountId = newAccountId;
- walletsByAccountId[newAccountId] = this;
- walletAddresses.accountId = newAccountId;
- c = await c.setAccount(account: newAccountId);
- lastKnownRestoreHeight = height;
- await walletAddresses.init();
- await _initKeys();
- }
-
@override
@action
Future<void> rescan({required final int height}) async {
@@ -1185,7 +1203,7 @@ abstract class ZcashWalletBase
String? passphrase = "";
@override
- Future<String> signMessage(final String message, {final String? address = null}) {
+ Future<String> signMessage(final String message, {final String? address}) {
throw UnimplementedError();
}
@@ -1208,17 +1226,21 @@ abstract class ZcashWalletBase
}
}
- static Mutex warpSyncMutex = Mutex();
-
static final autoShieldMutex = Mutex();
static DateTime? _lastAutoShieldAt;
+
static final ironwoodMigrateMutex = Mutex();
static DateTime? _lastIronwoodMigrateAt;
+
+ bool _autorunNotReady(DateTime? lastExecution) =>
+ syncStatus is! SyncedSyncStatus || (lastExecution != null &&
+ lastExecution.isAfter(DateTime.now().subtract(const Duration(seconds: 75))));
+
Future<void> _autoShield() async {
- if (_lastAutoShieldAt != null &&
- _lastAutoShieldAt!.isAfter(DateTime.now().subtract(const Duration(seconds: 75)))) {
+ if (_autorunNotReady(_lastAutoShieldAt)) {
return;
}
+
try {
await autoShieldMutex.acquire();
await _$autoShield();
@@ -1266,11 +1288,8 @@ abstract class ZcashWalletBase
bool hasOrchardMigratableBalance() => _orchardMigratable;
- Future<void> _$autoShield() async {
- if (syncStatus is! SyncedSyncStatus) {
- return;
- }
- final txId = await runWithCoin(
+ Future<PendingTransaction?> createShieldingTransaction() async {
+ final txPlan = await runWithCoin(
accountId: accountId,
func: (coin) async {
final sweepable = await _sweepableTotal(coin);
@@ -1279,7 +1298,7 @@ abstract class ZcashWalletBase
if (sweepable <= BigInt.from(_minSweepThreshold(ironwood: ironwood))) {
return null;
}
- final txPlan = await zkool_pay.prepare(
+ return zkool_pay.prepare(
recipients: [
zkool_paydart.Recipient(
assetBase: zecBase,
@@ -1288,41 +1307,64 @@ abstract class ZcashWalletBase
pools: ironwood ? ironwoodPoolMask : null,
),
],
- options: zkool_pay.PaymentOptions(
+ options: const zkool_pay.PaymentOptions(
srcPools: 3,
recipientPaysFee: true,
smartTransparent: false,
- mode: 0,
),
c: coin,
);
-
- final signTx = await zkool_pay.signTransaction(pczt: txPlan, c: coin);
- final txBytes = await zkool_pay.extractTransaction(package: signTx);
- final currentHeight = await zkool_network.getCurrentHeight(c: coin);
- return await zkool_pay.broadcastTransaction(
- height: currentHeight,
- txBytes: txBytes,
- c: coin,
- );
},
);
- if (txId == null) {
- return;
+
+ if (txPlan == null) {
+ return null;
}
- await ZcashWalletService.addShieldedTx(txId);
+ zkool_pay.PcztPackage? signedTxPackage;
+ if (isHardwareWallet) {
+ final unsignedTx = await zkool_pay.packTransaction(pczt: txPlan);
+
+ final signedTxBytes = await runWithCoin(
+ accountId: accountId,
+ func: (coin) =>
+ hardwareWalletService!.withCoin(coin).signTransaction(
+ transaction: base64Encode(unsignedTx),
+ )
+ );
+
+ signedTxPackage = await zkool_pay.unpackTransaction(bytes: signedTxBytes);
+ }
+
+ final zcashBalance = balance[CryptoCurrency.zec];
+ final availableBalance = zcashBalance?.available ?? Money.zero(currency);
+ final sweepableBigInt = await runWithCoin(accountId: accountId, func: _sweepableTotal);
+ final sweepable = Money(sweepableBigInt, currency);
_lastAutoShieldAt = DateTime.now();
- printV("shielded: $txId");
- await updateTransactions();
- await _refreshBalance(runAutoShield: false, runIronwoodMigrate: false);
+
+ return PendingZcashTransaction(
+ zcashWallet: this as ZcashWallet,
+ amount: sweepable,
+ txPlan: txPlan,
+ fee: Money.zero(currency),
+ availableBalance: availableBalance,
+ signedTxPackage: signedTxPackage,
+ isShieldingTx: true,
+ );
+ }
+
+ Future<void> _$autoShield() async {
+ final shieldTx = await createShieldingTransaction();
+ if (shieldTx != null) {
+ await shieldTx.commit();
+ }
}
Future<void> _ironwoodMigrate() async {
- if (_lastIronwoodMigrateAt != null &&
- _lastIronwoodMigrateAt!.isAfter(DateTime.now().subtract(const Duration(seconds: 75)))) {
+ if (_autorunNotReady(_lastIronwoodMigrateAt)) {
return;
}
+
try {
await ironwoodMigrateMutex.acquire();
await _$ironwoodMigrate();
@@ -1335,9 +1377,6 @@ abstract class ZcashWalletBase
}
Future<void> _$ironwoodMigrate() async {
- if (syncStatus is! SyncedSyncStatus) {
- return;
- }
final event = await runWithCoin(
accountId: accountId,
func: (coin) async {
@@ -1411,11 +1450,15 @@ abstract class ZcashWalletBase
}) async {
try {
await _updateIronwoodActive();
- if (runAutoShield) {
- await _autoShield();
- }
- if (runIronwoodMigrate) {
- await _ironwoodMigrate();
+
+ if (!isHardwareWallet) {
+ if (runAutoShield) {
+ await _autoShield();
+ }
+
+ if (runIronwoodMigrate) {
+ await _ironwoodMigrate();
+ }
}
final (bal, sweepable, migratableOrchard) = await runWithCoin(
@@ -1442,17 +1485,19 @@ abstract class ZcashWalletBase
availableAmount = ironwood;
unavailableAmount = migratableOrchard + sweepableUnavailable;
} else {
- final minSweep = _minSweepThreshold(ironwood: ironwoodActive == true);
+ final minSweep = _minSweepThreshold(ironwood: ironwoodActive);
availableAmount = orchard + ironwood;
unavailableAmount = sweepable <= BigInt.from(minSweep) ? BigInt.zero : sweepable;
}
+ final notShowSweepable = _lastAutoShieldAt?.isAfter(
+ DateTime.now().subtract(const Duration(seconds: 75))) == true;
runInAction(() {
_orchardMigratable =
ironwoodActive == true && migratableOrchard > BigInt.zero;
balance[currency] = ZcashBalance(
Money(availableAmount, currency),
- Money(unavailableAmount, currency),
+ notShowSweepable ? Money.zero(currency) : Money(unavailableAmount, currency),
frozen: Money.zero(currency),
);
});
@@ -1464,9 +1509,8 @@ abstract class ZcashWalletBase
@override
@action
- Future<void> updateBalance() async {
- await _refreshBalance(runAutoShield: true);
- }
+ Future<void> updateBalance({bool runAutoShield = true, bool runIronwoodMigrate = true}) =>
+ _refreshBalance(runAutoShield: runAutoShield, runIronwoodMigrate: runIronwoodMigrate);
@override
Future<bool> verifyMessage(
@@ -1570,6 +1614,49 @@ abstract class ZcashWalletBase
return wallet;
}
+ static Future<ZcashWallet> restoreFromHardwareWallet(ZcashRestoreWalletFromHardware credentials) async {
+ final network = networkForCredentials(credentials);
+ await $init(network: network);
+ credentials.walletInfo?.network = network.value;
+
+ final service = credentials.hardwareWalletService;
+ if (service is! ZcashHardwareWalletService) {
+ throw Exception("A Ledger connection is required to restore a Zcash hardware wallet");
+ }
+
+ final accounts = await service
+ .withCoin(zkool_coin.Coin(defaultCoin: network.networkIndex))
+ .getAvailableAccounts(index: credentials.accountIndex, limit: 1);
+ final ufvk = accounts.firstOrNull?.xpub;
+ if (ufvk == null || ufvk.isEmpty) {
+ throw Exception("The Ledger did not return a viewing key");
+ }
+
+ final height = (credentials.height ?? 0) > 0
+ ? credentials.height!
+ : (network == ZcashNetwork.mainnet ? 419200 : 280000);
+
+ final accountId = await newAccount(
+ name: credentials.name,
+ height: height,
+ seed: ufvk,
+ passphrase: "",
+ hw: 2,
+ aIndex: credentials.accountIndex,
+ );
+ await saveAccountId(credentials.name, accountId);
+ final wallet = await open(
+ name: credentials.name,
+ password: credentials.password!,
+ walletInfo: credentials.walletInfo!,
+ );
+
+ wallet.hardwareWalletService = service;
+ await wallet.init();
+ printV("ledger account $accountId paired from height $height");
+ return wallet;
+ }
+
static Future<ZcashWallet> open({
required final String name,
required final String password,
@@ -1708,11 +1795,14 @@ abstract class ZcashWalletBase
static var c = zkool_coin.Coin();
static String? _password;
- static Future<void> $init({final ZcashNetwork network = ZcashNetwork.mainnet}) async {
+ static Future<void> ensureRustLib() async {
if (!_rustInitialized) {
await zkool_frb.RustLib.init();
_rustInitialized = true;
}
+ }
+ static Future<void> $init({final ZcashNetwork network = ZcashNetwork.mainnet}) async {
+ await ensureRustLib();
if (_initialized && _activeNetwork == network) {
return;
}
@@ -1751,24 +1841,24 @@ abstract class ZcashWalletBase
required final int height,
required final String seed,
required final String passphrase,
- }) async {
- final id = await zkool_account.newAccount(
- na: zkool_account.NewAccount(
- name: name,
- restore: true,
- passphrase: passphrase,
- key: seed,
- aindex: 0,
- birth: height,
- folder: '',
- useInternal: true,
- internal: false,
- ledger: false,
- ),
- c: c,
- );
- return id;
- }
+ final int hw = 0,
+ final int aIndex = 0,
+ }) =>
+ zkool_account.newAccount(
+ na: zkool_account.NewAccount(
+ name: name,
+ restore: true,
+ passphrase: passphrase,
+ key: seed,
+ aindex: aIndex,
+ birth: height,
+ folder: '',
+ useInternal: true,
+ internal: false,
+ hw: hw,
+ ),
+ c: c,
+ );
static final runWithCoinMutex = Mutex();
static int runWithCoinCount = 0;
@@ -1791,7 +1881,7 @@ abstract class ZcashWalletBase
newC = await newC.openDatabase(dbFilepath: c.dbFilepath);
newC = await newC.setAccount(account: accountId);
newC = await newC.setLwd(serverType: c.serverType, url: c.url);
- newC = await newC.setUseTor(useTor: c.useTor);
+ newC = await newC.setTransport(transport: c.transport).setProxy(proxy: c.proxy);
runWithCoinCount++;
printV("run with coin: $runWithCoinCount");
### cw_zcash/lib/src/zcash_wallet_service.dart
@@ -20,7 +20,7 @@ class ZcashWalletService
ZcashNewWalletCredentials,
ZcashFromSeedWalletCredentials,
ZcashFromKeysWalletCredentials,
- ZcashNewWalletCredentials
+ ZcashRestoreWalletFromHardware
> {
ZcashWalletService();
@@ -166,15 +166,13 @@ class ZcashWalletService
Future<ZcashWallet> restoreFromKeys(
final ZcashFromKeysWalletCredentials credentials, {
final bool? isTestnet,
- }) async {
- return ZcashWalletBase.restoreKeys(credentials);
- }
+ }) => ZcashWalletBase.restoreKeys(credentials);
@override
Future<ZcashWallet> restoreFromSeed(
final ZcashFromSeedWalletCredentials credentials, {
final bool? isTestnet,
- }) async {
+ }) {
if (credentials.seed == null || credentials.seed!.isEmpty) {
throw BadMnemonicException("Seed is missing");
}
@@ -187,9 +185,6 @@ class ZcashWalletService
}
@override
- Future<ZcashWallet> restoreFromHardwareWallet(final ZcashNewWalletCredentials credentials) {
- throw UnimplementedError(
- "Restoring a Zcash wallet from a hardware wallet is not yet supported!",
- );
- }
+ Future<ZcashWallet> restoreFromHardwareWallet(final ZcashRestoreWalletFromHardware credentials) =>
+ ZcashWalletBase.restoreFromHardwareWallet(credentials);
}
### cw_zcash/pubspec.yaml
@@ -18,10 +18,9 @@ dependencies:
path: any
flat_buffers: any
zkool:
- # path: ../../zkool2
git:
url: https://github.com/cake-tech/zkool2.git
- ref: 36e72b530c274c4a54a6127aadb94886e84d67bf
+ ref: b56be32eca373e5ddd0ef703614d4f81cba403f7
path_provider: any
sqflite_common_ffi: any
### lib/buy/dfx/dfx_buy_provider.dart
@@ -8,8 +8,6 @@ import 'package:cake_wallet/buy/pairs_utils.dart';
import 'package:cake_wallet/buy/payment_method.dart';
import 'package:cake_wallet/entities/fiat_currency.dart';
import 'package:cake_wallet/generated/i18n.dart';
-import 'package:cake_wallet/routes.dart';
-import 'package:cake_wallet/src/screens/connect_device/connect_device_page.dart';
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
import 'package:cake_wallet/view_model/hardware_wallet/hardware_wallet_view_model.dart';
import 'package:cake_wallet/utils/show_pop_up.dart';
@@ -337,28 +335,9 @@ class DFXBuyProvider extends BuyProvider {
required bool isBuyAction,
required String cryptoCurrencyAddress,
String? countryCode}) async {
- if (wallet.isHardwareWallet) {
- if (!hardwareWalletVM!.isConnected(wallet.walletInfo.type)) {
- await Navigator.of(context).pushNamed(
- Routes.connectDevices,
- arguments: ConnectDevicePageParams(
- walletType: wallet.walletInfo.type,
- hardwareWalletType: wallet.walletInfo.hardwareWalletType!,
- onConnectDevice: (context, hwwVM) {
- hwwVM.initWallet(wallet);
- Navigator.of(context).pop();
- },
- isReconnect: false,
- ),
- );
-
- // Recheck to handle tap-backs
- if (!hardwareWalletVM!.isConnected(wallet.walletInfo.type)) {
- return;
- }
- } else {
- hardwareWalletVM!.initWallet(wallet);
- }
+ if (wallet.isHardwareWallet &&
+ !(await hardwareWalletVM!.ensureDeviceConnection(context, wallet))) {
+ return;
}
try {
### lib/buy/robinhood/robinhood_buy_provider.dart
@@ -9,8 +9,6 @@ import 'package:cake_wallet/buy/pairs_utils.dart';
import 'package:cake_wallet/buy/payment_method.dart';
import 'package:cake_wallet/entities/fiat_currency.dart';
import 'package:cake_wallet/generated/i18n.dart';
-import 'package:cake_wallet/routes.dart';
-import 'package:cake_wallet/src/screens/connect_device/connect_device_page.dart';
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
import 'package:cake_wallet/view_model/hardware_wallet/hardware_wallet_view_model.dart';
import "package:cw_core/exceptions/cake_exception.dart";
@@ -175,26 +173,9 @@ class RobinhoodBuyProvider extends BuyProvider {
required bool isBuyAction,
required String cryptoCurrencyAddress,
String? countryCode}) async {
- if (wallet.isHardwareWallet) {
- if (!hardwareWalletVM!.isConnected(wallet.walletInfo.type)) {
- await Navigator.of(context).pushNamed(
- Routes.connectDevices,
- arguments: ConnectDevicePageParams(
- walletType: wallet.walletInfo.type,
- hardwareWalletType: wallet.walletInfo.hardwareWalletType!,
- onConnectDevice: (context, hwwVM) {
- hwwVM.initWallet(wallet);
- Navigator.of(context).pop();
- },
- isReconnect: false,
- ),
- );
- if (!hardwareWalletVM!.isConnected(wallet.walletInfo.type)) {
- return;
- }
- } else {
- hardwareWalletVM!.initWallet(wallet);
- }
+ if (wallet.isHardwareWallet &&
+ !(await hardwareWalletVM!.ensureDeviceConnection(context, wallet))) {
+ return;
}
try {
### lib/new-ui/widgets/coins_page/unconfirmed_balance_widget.dart
@@ -1,9 +1,15 @@
+import "package:cake_wallet/di.dart";
import 'package:cake_wallet/generated/i18n.dart';
+import "package:cake_wallet/new-ui/widgets/coins_page/zcash_manual_shield_modal.dart";
import "package:cake_wallet/new-ui/widgets/coins_page/zcash_migration_modal.dart";
+import "package:cake_wallet/new-ui/widgets/money/money_text.dart";
import 'package:cake_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:cake_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:cake_wallet/src/widgets/cake_image_widget.dart';
+import "package:cake_wallet/themes/core/theme_extension.dart";
+import "package:cake_wallet/zcash/zcash.dart";
import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
+import "package:cake_wallet/view_model/hardware_wallet/hardware_wallet_view_model.dart";
import "package:flutter/cupertino.dart";
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
@@ -24,6 +30,8 @@ class UnconfirmedBalanceWidget extends StatelessWidget {
final show = dashboardViewModel.balanceViewModel
.hasAdditionalBalance(dashboardViewModel.wallet.currency);
final isIronwoodMigration = dashboardViewModel.isMigratingToIronwood;
+ final requiresManualShield = dashboardViewModel.requiresManualShield;
+ final _ = dashboardViewModel.balanceViewModel.balances;
return AnimatedSize(
duration: const Duration(milliseconds: 300),
@@ -36,31 +44,59 @@ class UnconfirmedBalanceWidget extends StatelessWidget {
Observer(builder: (context) {
final balance = dashboardViewModel.balanceViewModel.additionalBalance(currency);
+ if (requiresManualShield) {
+ return ZcashManualShieldingRow(
+ onTap: () {
+ final modal = ZcashManualShieldModal(
+ balance: balance.toStringWithSymbol(),
+ onShield: () async {
+ if (dashboardViewModel.wallet.hardwareWalletType != null) {
+ final hwVM = getIt<HardwareWalletViewModel>(
+ param1: dashboardViewModel.wallet.hardwareWalletType,
+ );
+ final connectionEnsured = await hwVM.ensureDeviceConnection(context, dashboardViewModel.wallet);
+ if (connectionEnsured) {
+ final pendingTx = await zcash!.createShieldingTransaction(dashboardViewModel.wallet);
+ await pendingTx?.commit();
+ }
+ }
+ },
+ );
+ showMaterialModalBottomSheet(
+ backgroundColor: Colors.transparent,
+ context: context,
+ builder: (context) => modal);
+ },
+ );
+ }
+
return Container(
width: MediaQuery.of(context).size.width * 0.87,
height: 48,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surfaceContainer,
- borderRadius: BorderRadius.circular(16.0),
+ borderRadius: BorderRadius.circular(16),
),
child: Material(
color: Colors.transparent,
child: InkWell(
onTap: () {
final modal = isIronwoodMigration
? ZcashMigrationModal(
- hasContinue: false, balance: "${balance} ${currency.symbol}")
+ hasContinue: false,
+ balance: balance.toStringWithSymbol(),
+ )
: UnconfirmedBalanceModal(
balance: balance.toStringWithSymbol(),
- currencyIconPath: currency.iconPath ?? "",
- );
+ currencyIconPath: currency.iconPath ?? "",
+ );
showMaterialModalBottomSheet(
backgroundColor: Colors.transparent,
context: context,
builder: (context) => modal);
},
child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 12.0),
+ padding: const EdgeInsets.symmetric(horizontal: 12),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
@@ -76,30 +112,34 @@ class UnconfirmedBalanceWidget extends StatelessWidget {
)
: CircularProgressIndicator(
strokeWidth: 2,
- backgroundColor:
- Theme.of(context).colorScheme.primary.withAlpha(50),
- color: Theme.of(context).colorScheme.primary,
- value: dashboardViewModel.confirmationProgress,
- ),
+ backgroundColor: Theme.of(context)
+ .colorScheme
+ .primary
+ .withAlpha(50),
+ color: Theme.of(context).colorScheme.primary,
+ value: dashboardViewModel.confirmationProgress,
+ ),
),
Row(
spacing: 4,
children: [
- Text(
- "$balance ${currency.title}",
+ MoneyText(
+ balance,
style: TextStyle(
color: Theme.of(context).colorScheme.primary,
),
),
- Text(isIronwoodMigration ? S.of(context).migrating_to_ironwood : S.of(context).confirming),
+ Text(isIronwoodMigration
+ ? S.of(context).migrating_to_ironwood
+ : S.of(context).confirming),
],
- )
+ ),
],
),
Icon(
Icons.chevron_right,
color: Theme.of(context).colorScheme.onSurfaceVariant,
- )
+ ),
],
),
),
@@ -115,6 +155,67 @@ class UnconfirmedBalanceWidget extends StatelessWidget {
}
}
+class ZcashManualShieldingRow extends StatelessWidget {
+ const ZcashManualShieldingRow({required this.onTap, super.key});
+
+ final VoidCallback onTap;
+
+ @override
+ Widget build(BuildContext context) => Container(
+ width: MediaQuery.of(context).size.width * 0.87,
+ decoration: BoxDecoration(
+ color: Theme.of(context).colorScheme.surfaceContainer,
+ borderRadius: BorderRadius.circular(16),
+ ),
+ child: Material(
+ color: Colors.transparent,
+ child: InkWell(
+ borderRadius: BorderRadius.circular(16),
+ onTap: onTap,
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 12),
+ child: Row(
+ spacing: 12,
+ children: [
+ Icon(
+ Icons.warning_amber_rounded,
+ size: 24,
+ color: context.customColors.warningOutlineColor,
+ ),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ spacing: 2,
+ children: [
+ Text(
+ S.of(context).unshielded_funds_detected,
+ style: TextStyle(
+ fontSize: 14,
+ color: Theme.of(context).colorScheme.onSurface,
+ ),
+ ),
+ Text(
+ S.of(context).shield_them_to_use_device,
+ style: TextStyle(
+ fontSize: 14,
+ color: Theme.of(context).colorScheme.primary,
+ ),
+ ),
+ ],
+ ),
+ ),
+ Icon(
+ Icons.chevron_right,
+ color: Theme.of(context).colorScheme.onSurfaceVariant,
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+}
+
class UnconfirmedBalanceModal extends StatelessWidget {
const UnconfirmedBalanceModal({super.key, required this.balance, required this.currencyIconPath});
@@ -183,4 +284,3 @@ class UnconfirmedBalanceModal extends StatelessWidget {
);
}
}
-
### lib/new-ui/widgets/coins_page/zcash_manual_shield_modal.dart
@@ -0,0 +1,190 @@
+import "package:cake_wallet/generated/i18n.dart";
+import "package:cake_wallet/new-ui/widgets/new_future_primary_button.dart";
+import "package:cake_wallet/new-ui/widgets/new_primary_button.dart";
+import "package:cake_wallet/new-ui/widgets/receive_page/receive_top_bar.dart";
+import "package:cake_wallet/src/widgets/cake_image_widget.dart";
+import "package:cake_wallet/themes/core/theme_extension.dart";
+import "package:flutter/material.dart";
+
+class ZcashManualShieldModal extends StatelessWidget {
+ const ZcashManualShieldModal({required this.balance, required this.onShield, super.key});
+
+ final String balance;
+ final Future<void> Function() onShield;
+
+ Future<void> _onShield(BuildContext context) async {
+ await onShield.call();
+
+ if (context.mounted) {
+ Navigator.of(context).pop();
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) => SafeArea(
+ bottom: false,
+ child: Container(
+ decoration: BoxDecoration(
+ color: Theme.of(context).colorScheme.surface,
+ borderRadius: const BorderRadius.vertical(top: Radius.circular(16)),
+ ),
+ child: SafeArea(
+ top: false,
+ child: Column(
+ children: [
+ ModalTopBar(
+ title: S.of(context).shield_device_funds,
+ trailingIcon: const Icon(Icons.close),
+ onTrailingPressed: Navigator.of(context).pop,
+ trailingSemanticLabel: S.of(context).close,
+ ),
+ Expanded(
+ child: SingleChildScrollView(
+ padding: const EdgeInsets.symmetric(horizontal: 24),
+ child: Column(
+ children: [
+ const SizedBox(height: 32),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ spacing: 16,
+ children: [
+ Icon(
+ Icons.visibility,
+ size: 48,
+ color: Theme.of(context).colorScheme.primary,
+ ),
+ Icon(
+ Icons.arrow_forward,
+ size: 32,
+ color: Theme.of(context).colorScheme.onSurface,
+ ),
+ Icon(
+ Icons.shield_outlined,
+ size: 48,
+ color: Theme.of(context).colorScheme.onSurface,
+ ),
+ ],
+ ),
+ const SizedBox(height: 40),
+ _buildUnshieldedHeadline(context),
+ const SizedBox(height: 12),
+ Container(
+ width: double.infinity,
+ padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 12),
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(16),
+ color: context.customColors.warningContainerColor,
+ ),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ spacing: 8,
+ children: [
+ const CakeImageWidget(
+ imageUrl: "assets/new-ui/crypto_full_icons/zcash.svg",
+ height: 24,
+ width: 24,
+ ),
+ Text(
+ balance,
+ style: TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w400,
+ color: context.customColors.warningOutlineColor,
+ ),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(height: 32),
+ Text(
+ S.of(context).why_is_shielding_needed,
+ style: const TextStyle(
+ fontSize: 14,
+ fontWeight: FontWeight.w600,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ const SizedBox(height: 12),
+ _InfoCard(text: S.of(context).unshielded_funds_transparent_desc),
+ const SizedBox(height: 12),
+ _InfoCard(text: S.of(context).shielded_only_sends_desc),
+ const SizedBox(height: 32),
+ ],
+ ),
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.all(12),
+ child: Column(
+ spacing: 12,
+ children: [
+ Text(
+ S.of(context).do_you_want_to_proceed,
+ style: const TextStyle(fontSize: 14),
+ ),
+ const SizedBox(height: 4),
+ NewPrimaryButton(
+ onPressed: Navigator.of(context).pop,
+ text: S.of(context).cancel,
+ color: Theme.of(context).colorScheme.surfaceContainer,
+ textColor: Theme.of(context).colorScheme.primary,
+ ),
+ NewFuturePrimaryButton(
+ onPressed: () => _onShield(context),
+ text: S.of(context).shield_funds,
+ color: Theme.of(context).colorScheme.primary,
+ textColor: Theme.of(context).colorScheme.onPrimary,
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ );
+
+ Widget _buildUnshieldedHeadline(BuildContext context) {
+ const marker = "\u0000";
+ final parts = S.of(context).wallet_holds_unshielded_zec(marker).split(marker);
+
+ return Text.rich(
+ TextSpan(
+ style: const TextStyle(fontSize: 14),
+ children: [
+ TextSpan(text: "${parts.first}\n"),
+ TextSpan(
+ text: S.of(context).unshielded,
+ style: TextStyle(color: Theme.of(context).colorScheme.primary),
+ ),
+ TextSpan(text: parts.last),
+ ],
+ ),
+ textAlign: TextAlign.center,
+ );
+ }
+}
+
+class _InfoCard extends StatelessWidget {
+ const _InfoCard({required this.text});
+
+ final String text;
+
+ @override
+ Widget build(BuildContext context) => Container(
+ width: double.infinity,
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(16),
+ color: Theme.of(context).colorScheme.surfaceContainer,
+ ),
+ child: Text(
+ text,
+ style: TextStyle(
+ fontSize: 12,
+ color: Theme.of(context).colorScheme.onSurfaceVariant,
+ ),
+ textAlign: TextAlign.center,
+ ),
+ );
+}
### lib/new-ui/widgets/hardware_wallet/sync_key_images_sheet.dart
@@ -1,8 +1,6 @@
import "package:cake_wallet/generated/i18n.dart";
import "package:cake_wallet/new-ui/widgets/receive_page/receive_top_bar.dart";
import "package:cake_wallet/new-ui/widgets/send_page/directional_switcher.dart";
-import "package:cake_wallet/routes.dart";
-import "package:cake_wallet/src/screens/connect_device/connect_device_page.dart";
import "package:cake_wallet/src/widgets/alert_with_two_actions.dart";
import "package:cake_wallet/src/widgets/base_alert_dialog.dart";
import "package:cake_wallet/src/widgets/cake_image_widget.dart";
@@ -188,27 +186,9 @@ class _HardwareWalletProceedOnDeviceSheetState extends State<SyncKeyImagesSheet>
Future<void> _onContinuePressed() async {
setState(() => _state = _KeyImageSyncState.syncing);
- if (!widget.trezorConnectVM.isConnected(widget.wallet.type)) {
- await Navigator.of(context).pushNamed(
- Routes.connectDevices,
- arguments: ConnectDevicePageParams(
- walletType: widget.wallet.type,
- hardwareWalletType: widget.wallet.walletInfo.hardwareWalletType!,
- onConnectDevice: (_, __) {
- widget.trezorConnectVM.initWallet(widget.wallet);
- Navigator.of(context).pop();
- },
- isReconnect: false,
- ),
- );
-
- // Recheck to handle tap-backs
- if (!widget.trezorConnectVM.isConnected(widget.wallet.type)) {
- setState(() => _state = _KeyImageSyncState.initial);
- return;
- }
- } else {
- await widget.trezorConnectVM.initWallet(widget.wallet);
+ if (!(await widget.trezorConnectVM.ensureDeviceConnection(context, widget.wallet))) {
+ setState(() => _state = _KeyImageSyncState.initial);
+ return;
}
final result = await widget.trezorConnectVM.syncKeyImages(widget.wallet);
### lib/new-ui/widgets/swap_page/swap_confirm_sheet.dart
@@ -8,8 +8,6 @@ import 'package:cake_wallet/new-ui/widgets/send_page/send_confirm_bottom_widget.
import 'package:cake_wallet/new-ui/widgets/send_page/send_confirm_sheet.dart';
import 'package:cake_wallet/new-ui/widgets/swap_page/swap_modal_header.dart';
import 'package:cake_wallet/new-ui/widgets/swap_page/swap_send_external_modal.dart';
-import 'package:cake_wallet/routes.dart';
-import 'package:cake_wallet/src/screens/connect_device/connect_device_page.dart';
import 'package:cake_wallet/src/widgets/new_list_row/new_list_section.dart';
import 'package:cake_wallet/view_model/exchange/exchange_trade_view_model.dart';
import 'package:cake_wallet/view_model/exchange/exchange_view_model.dart';
@@ -46,28 +44,9 @@ class _SwapConfirmSheetState extends State<SwapConfirmSheet> {
void beginSend() async {
final sendVM = widget.exchangeTradeViewModel.sendViewModel;
- if (sendVM.wallet.isHardwareWallet) {
- if (!sendVM.hardwareWalletViewModel!.isConnected(sendVM.walletType)) {
- await Navigator.of(context).pushNamed(
- Routes.connectDevices,
- arguments: ConnectDevicePageParams(
- walletType: sendVM.walletType,
- hardwareWalletType: sendVM.wallet.walletInfo.hardwareWalletType!,
- onConnectDevice: (context, _) {
- sendVM.hardwareWalletViewModel!.initWallet(sendVM.wallet);
- Navigator.of(context).pop();
- },
- isReconnect: false,
- ),
- );
-
- // Recheck to handle tap-backs
- if (!sendVM.hardwareWalletViewModel!.isConnected(sendVM.walletType)) {
- return;
- }
- } else {
- sendVM.hardwareWalletViewModel!.initWallet(sendVM.wallet);
- }
+ if (sendVM.wallet.isHardwareWallet &&
+ !(await sendVM.hardwareWalletViewModel!.ensureDeviceConnection(context, sendVM.wallet))) {
+ return;
}
widget.exchangeTradeViewModel.confirmSending();
### lib/router.dart
@@ -35,7 +35,7 @@ import 'package:cake_wallet/src/screens/backup/backup_page.dart';
import 'package:cake_wallet/src/screens/backup/edit_backup_password_page.dart';
import 'package:cake_wallet/cake_pay/cake_pay.dart';
import 'package:cake_wallet/src/screens/connect_device/connect_device_page.dart';
-import "package:cake_wallet/src/screens/connect_device/monero_hardware_wallet_options_page.dart";
+import "package:cake_wallet/src/screens/connect_device/hardware_wallet_account_options_page.dart";
import 'package:cake_wallet/src/screens/connect_device/select_device_manufacturer_page.dart';
import "package:cake_wallet/src/screens/connect_device/select_hardware_wallet_account_page.dart";
import 'package:cake_wallet/src/screens/contact/contact_list_page.dart';
@@ -250,8 +250,14 @@ Route<dynamic> createRoute(RouteSettings settings) {
final walletVM = getIt.get<WalletHardwareRestoreViewModel>(
param1: type, param2: getIt<HardwareWalletViewModel>(param1: hardwareWallet));
- if (type == WalletType.monero)
- return handleRouteWithPlatformAwareness((_) => MoneroHardwareWalletOptionsPage(walletVM));
+ if ([WalletType.monero, WalletType.zcash].contains(type)) {
+ return handleRouteWithPlatformAwareness(
+ (_) => HardwareWalletAccountOptionsPage(
+ walletVM,
+ walletType: type,
+ ),
+ );
+ }
return handleRouteWithPlatformAwareness((_) => SelectHardwareWalletAccountPage(walletVM));
### lib/src/screens/connect_device/hardware_wallet_account_options_page.dart
@@ -17,30 +17,37 @@ import "package:flutter/material.dart";
import "package:flutter_mobx/flutter_mobx.dart";
import "package:mobx/mobx.dart";
-class MoneroHardwareWalletOptionsPage extends BasePage {
- MoneroHardwareWalletOptionsPage(this._walletHardwareRestoreVM);
+class HardwareWalletAccountOptionsPage extends BasePage {
+ HardwareWalletAccountOptionsPage(
+ this._walletHardwareRestoreVM, {
+ this.walletType = WalletType.monero,
+ });
final WalletHardwareRestoreViewModel _walletHardwareRestoreVM;
+ final WalletType walletType;
+
@override
String get title => S.current.restore_title_from_hardware_wallet;
@override
- Widget body(BuildContext context) => _MoneroHardwareWalletOptionsForm(_walletHardwareRestoreVM);
+ Widget body(BuildContext context) =>
+ _HardwareWalletAccountOptionsForm(_walletHardwareRestoreVM, walletType);
}
-class _MoneroHardwareWalletOptionsForm extends StatefulWidget {
- const _MoneroHardwareWalletOptionsForm(this._walletHardwareRestoreVM);
+class _HardwareWalletAccountOptionsForm extends StatefulWidget {
+ const _HardwareWalletAccountOptionsForm(this._walletHardwareRestoreVM, this.walletType);
final WalletHardwareRestoreViewModel _walletHardwareRestoreVM;
+ final WalletType walletType;
@override
- _MoneroHardwareWalletOptionsFormState createState() =>
- _MoneroHardwareWalletOptionsFormState(_walletHardwareRestoreVM);
+ _HardwareWalletAccountOptionsFormState createState() =>
+ _HardwareWalletAccountOptionsFormState(_walletHardwareRestoreVM);
}
-class _MoneroHardwareWalletOptionsFormState extends State<_MoneroHardwareWalletOptionsForm> {
- _MoneroHardwareWalletOptionsFormState(this._walletHardwareRestoreVM)
+class _HardwareWalletAccountOptionsFormState extends State<_HardwareWalletAccountOptionsForm> {
+ _HardwareWalletAccountOptionsFormState(this._walletHardwareRestoreVM)
: _formKey = GlobalKey<FormState>(),
_blockchainHeightKey = GlobalKey<BlockchainHeightState>(),
_blockHeightFocusNode = FocusNode(),
@@ -124,7 +131,7 @@ class _MoneroHardwareWalletOptionsFormState extends State<_MoneroHardwareWalletO
focusNode: _blockHeightFocusNode,
key: _blockchainHeightKey,
hasDatePicker: true,
- walletType: WalletType.monero,
+ walletType: widget.walletType,
),
),
],
### lib/src/screens/integrations/deuro/savings_page.dart
@@ -1,8 +1,6 @@
import 'package:cake_wallet/core/execution_state.dart';
import 'package:cake_wallet/generated/i18n.dart';
-import 'package:cake_wallet/routes.dart';
import 'package:cake_wallet/src/screens/base_page.dart';
-import 'package:cake_wallet/src/screens/connect_device/connect_device_page.dart';
import 'package:cake_wallet/src/screens/integrations/deuro/widgets/info_chip.dart';
import 'package:cake_wallet/src/screens/integrations/deuro/widgets/interest_card_widget.dart';
import 'package:cake_wallet/src/screens/integrations/deuro/widgets/savings_card_widget.dart';
@@ -175,19 +173,8 @@ class DEuroSavingsPage extends BasePage {
Future<void> _requireHardwareWallet(BuildContext context) async {
if (_dEuroViewModel.wallet.isHardwareWallet) {
- if (!_dEuroViewModel.hardwareWalletViewModel!.isConnected(_dEuroViewModel.wallet.type)) {
- await Navigator.of(context).pushNamed(Routes.connectDevices,
- arguments: ConnectDevicePageParams(
- walletType: _dEuroViewModel.wallet.type,
- hardwareWalletType: _dEuroViewModel.wallet.walletInfo.hardwareWalletType!,
- onConnectDevice: (context, _) {
- _dEuroViewModel.hardwareWalletViewModel!.initWallet(_dEuroViewModel.wallet);
- Navigator.of(context).pop();
- },
- ));
- } else {
- _dEuroViewModel.hardwareWalletViewModel!.initWallet(_dEuroViewModel.wallet);
- }
+ await _dEuroViewModel.hardwareWalletViewModel!
+ .ensureDeviceConnection(context, _dEuroViewModel.wallet);
}
}
### lib/src/screens/new_wallet/new_wallet_type_page.dart
@@ -103,11 +103,15 @@ class WalletTypeFormState extends State<WalletTypeForm> {
@override
void initState() {
types = filteredTypes = availableWalletTypes
- .where((element) =>
- !widget.isHardwareWallet ||
- DeviceConnectionType.supportedConnectionTypes(
- element, widget.hardwareWalletType!, Platform.isIOS)
- .isNotEmpty)
+ .where(
+ (element) =>
+ !widget.isHardwareWallet ||
+ DeviceConnectionType.supportedConnectionTypes(
+ element,
+ widget.hardwareWalletType!,
+ isIOS: Platform.isIOS,
+ ).isNotEmpty,
+ )
.toList();
super.initState();
}
### lib/view_model/dashboard/dashboard_view_model.dart
@@ -384,6 +384,9 @@ abstract class DashboardViewModelBase with Store {
bool get isMigratingToIronwood =>
wallet.type == WalletType.zcash && (zcash?.hasOrchardMigratableBalance(wallet) ?? false);
+ @computed
+ bool get requiresManualShield => wallet.type == WalletType.zcash && wallet.isHardwareWallet;
+
@computed
bool get isSyncHeavy {
if ([
### lib/view_model/hardware_wallet/hardware_wallet_view_model.dart
@@ -1,8 +1,11 @@
import "package:cake_wallet/entities/hardware_wallet/hardware_wallet_device.dart";
+import "package:cake_wallet/routes.dart";
+import "package:cake_wallet/src/screens/connect_device/connect_device_page.dart";
import "package:cw_core/hardware/hardware_wallet_service.dart";
import "package:cw_core/wallet_base.dart";
import "package:cw_core/wallet_info.dart";
import "package:cw_core/wallet_type.dart";
+import "package:flutter/widgets.dart";
abstract class HardwareWalletViewModel {
HardwareWalletType get hardwareWalletType;
@@ -31,4 +34,34 @@ abstract class HardwareWalletViewModel {
String? interpretErrorCode(String error) => null;
Future<void> close() async {}
+
+ Future<bool> ensureDeviceConnection(BuildContext context, WalletBase wallet) async {
+ if (!context.mounted) {
+ return false;
+ }
+
+ if (wallet.isHardwareWallet) {
+ if (!isConnected(wallet.walletInfo.type)) {
+ await Navigator.of(context).pushNamed(
+ Routes.connectDevices,
+ arguments: ConnectDevicePageParams(
+ walletType: wallet.walletInfo.type,
+ hardwareWalletType: wallet.walletInfo.hardwareWalletType!,
+ onConnectDevice: (context, hwwVM) {
+ hwwVM.initWallet(wallet);
+ Navigator.of(context).pop();
+ },
+ isReconnect: false,
+ ),
+ );
+ if (!isConnected(wallet.walletInfo.type)) {
+ return false;
+ }
+ } else {
+ await initWallet(wallet);
+ }
+ }
+
+ return true;
+ }
}
### lib/view_model/hardware_wallet/ledger_view_model.dart
@@ -11,6 +11,7 @@ import "package:cake_wallet/routes.dart";
import "package:cake_wallet/src/screens/connect_device/connect_device_page.dart";
import "package:cake_wallet/view_model/hardware_wallet/hardware_wallet_view_model.dart";
import "package:cake_wallet/wallet_type_utils.dart";
+import "package:cake_wallet/zcash/zcash.dart";
import "package:cw_core/exceptions/cake_exception.dart";
import "package:cw_core/hardware/device_connection_type.dart";
import "package:cw_core/hardware/hardware_wallet_service.dart";
@@ -57,7 +58,7 @@ abstract class LedgerViewModelBase extends HardwareWalletViewModel with Store {
return DeviceConnectionType.supportedConnectionTypes(
WalletType.monero,
HardwareWalletType.ledger,
- Platform.isIOS,
+ isIOS: Platform.isIOS,
).isNotEmpty;
}
@@ -226,6 +227,8 @@ abstract class LedgerViewModelBase extends HardwareWalletViewModel with Store {
case WalletType.ethereum:
case WalletType.polygon:
return evm!.setHardwareWalletService(wallet, getHardwareWalletService(wallet.type));
+ case WalletType.zcash:
+ return zcash!.setHardwareWalletService(wallet, getHardwareWalletService(wallet.type));
default:
throw BadWalletTypeException("Unexpected wallet type: ${wallet.type} for ledger", wallet.type);
}
@@ -243,6 +246,8 @@ abstract class LedgerViewModelBase extends HardwareWalletViewModel with Store {
case WalletType.ethereum:
case WalletType.polygon:
return evm!.getLedgerHardwareWalletService(connection);
+ case WalletType.zcash:
+ return zcash!.getLedgerHardwareWalletService(connection);
default:
throw UnimplementedError();
}
### lib/view_model/hardware_wallet/trezor_connect_view_model.dart
@@ -64,7 +64,7 @@ abstract class TrezorConnectViewModelBase extends HardwareWalletViewModel with S
return DeviceConnectionType.supportedConnectionTypes(
WalletType.monero,
HardwareWalletType.trezor,
- Platform.isIOS,
+ isIOS: Platform.isIOS,
).isNotEmpty;
}
### lib/view_model/wallet_hardware_restore_view_model.dart
@@ -10,6 +10,7 @@ import 'package:cake_wallet/view_model/hardware_wallet/trezor_connect_view_model
import 'package:cake_wallet/view_model/seed_settings_view_model.dart';
import 'package:cake_wallet/view_model/wallet_creation_vm.dart';
import "package:cw_core/exceptions/cake_exception.dart";
+import "package:cake_wallet/zcash/zcash.dart";
import 'package:cw_core/hardware/hardware_account_data.dart';
import 'package:cw_core/utils/print_verbose.dart';
import 'package:cw_core/wallet_base.dart';
@@ -53,7 +54,7 @@ abstract class WalletHardwareRestoreViewModelBase extends WalletCreationVM with
@action
Future<void> getNextAvailableAccounts(int limit) async {
try {
- final service = await hardwareWalletVM.getHardwareWalletService(type);
+ final service = hardwareWalletVM.getHardwareWalletService(type);
final accounts = await service.getAvailableAccounts(index: _nextIndex, limit: limit);
availableAccounts.addAll(accounts);
@@ -83,6 +84,13 @@ abstract class WalletHardwareRestoreViewModelBase extends WalletCreationVM with
hwAccountData: selectedAccount!,
);
break;
+ case WalletType.zcash:
+ credentials = zcash!.createZcashHardwareWalletCredentials(
+ name: name,
+ hardwareWalletService: hardwareWalletVM.getHardwareWalletService(type),
+ height: _options["height"] as int? ?? 0,
+ );
+ break;
case WalletType.monero:
final password = walletPassword ?? generateWalletPassword();
### lib/zcash/cw_zcash.dart
@@ -44,6 +44,20 @@ class CWZcash extends Zcash {
name: name, seed: mnemonic, passphrase: passphrase, password: password, height: height, network: network);
}
+ @override
+ WalletCredentials createZcashHardwareWalletCredentials({
+ required String name,
+ required HardwareWalletService hardwareWalletService,
+ required int? height,
+ int accountIndex = 0,
+ }) =>
+ ZcashRestoreWalletFromHardware(
+ name: name,
+ hardwareWalletService: hardwareWalletService,
+ height: height,
+ accountIndex: accountIndex,
+ );
+
@override
Object createZcashTransactionCredentials(List<Output> outputs,
{required CryptoCurrency currency, int? feeRate, TransactionPriority? priority}) {
@@ -79,24 +93,7 @@ class CWZcash extends Zcash {
@override
WalletService<WalletCredentials, WalletCredentials, WalletCredentials, WalletCredentials>
- createZcashWalletService(bool isDirect) {
- return ZcashWalletService();
- }
-
- @override
- double formatterZcashAmountToDouble({TransactionInfo? transaction, BigInt? amount}) {
- return cryptoAmountToDouble(amount: amount?.toInt() ?? 0, divider: 1e8);
- }
-
- @override
- int formatterZcashParseAmount(String amount) {
- return CryptoCurrency.zec.parseAmount(amount).amount.toInt();
- }
-
- @override
- String formatterZcashAmountToString({required int amount}) {
- return CryptoCurrency.zec.formatAmount(BigInt.from(amount));
- }
+ createZcashWalletService(bool isDirect) => ZcashWalletService();
@override
String getAddress(
@@ -169,6 +166,12 @@ class CWZcash extends Zcash {
final zcashWallet = wallet as ZcashWallet;
final addresses = zcashWallet.walletAddresses as ZcashWalletAddresses;
final type = ZcashReceivePageOption.typeFromString(addresses.walletInfo.addressPageType ?? "");
+ if (type == ZcashAddressType.transparentRotated && !zcashWallet.canRotateTransparentAddress) {
+ return ZcashReceivePageOption.transparent;
+ }
+ if (type == ZcashAddressType.shieldedSapling && !zcashWallet.canUseLegacyShielded) {
+ return ZcashReceivePageOption.shieldedOrchard(ironwood: addresses.ironwoodActive);
+ }
if (type == ZcashAddressType.shieldedOrchard) {
return ZcashReceivePageOption.shieldedOrchard(ironwood: addresses.ironwoodActive);
}
@@ -229,6 +232,21 @@ class CWZcash extends Zcash {
bool hasOrchardMigratableBalance(WalletBase wallet) {
return (wallet as ZcashWallet).hasOrchardMigratableBalance();
}
+
+ @override
+ Future<void> setHardwareWalletService(WalletBase wallet, HardwareWalletService service) async {
+ if (service is ZcashHardwareWalletService) {
+ (wallet as ZcashWallet).hardwareWalletService = service;
+ }
+ }
+
+ @override
+ HardwareWalletService getLedgerHardwareWalletService(ledger.LedgerConnection connection) =>
+ ZcashLedgerService(connection);
+
+ @override
+ Future<PendingTransaction?> createShieldingTransaction(WalletBase wallet) =>
+ (wallet as ZcashWallet).createShieldingTransaction();
}
const wordList = [
### pubspec.lock
@@ -1853,8 +1853,8 @@ packages:
dependency: "direct main"
description:
path: "."
- ref: eaf49764ad0863e8dec97ad30ff6aea0a1d1bd28
- resolved-ref: eaf49764ad0863e8dec97ad30ff6aea0a1d1bd28
+ ref: a1f8080181ef4a7334df3afb8e01afd321a8090e
+ resolved-ref: a1f8080181ef4a7334df3afb8e01afd321a8090e
url: "https://github.com/cake-tech/ledger-flutter-plus"
source: git
version: "1.6.0+1"
@@ -2626,11 +2626,9 @@ packages:
rlz:
dependency: "direct overridden"
description:
- path: rust_builder
- ref: "36e72b530c274c4a54a6127aadb94886e84d67bf"
- resolved-ref: "36e72b530c274c4a54a6127aadb94886e84d67bf"
- url: "https://github.com/cake-tech/zkool2.git"
- source: git
+ path: "../zkool2/rust_builder"
+ relative: true
+ source: path
version: "0.0.1"
rxdart:
dependency: "direct main"
@@ -2935,7 +2933,7 @@ packages:
source: git
version: "2.4.0"
sqlite3:
- dependency: "direct main"
+ dependency: "direct overridden"
description:
path: sqlite3
ref: ac40b296e7069c4e83503bcbe4a3b22dfe5431a7
@@ -3484,12 +3482,10 @@ packages:
zkool:
dependency: "direct overridden"
description:
- path: "."
- ref: "36e72b530c274c4a54a6127aadb94886e84d67bf"
- resolved-ref: "36e72b530c274c4a54a6127aadb94886e84d67bf"
- url: "https://github.com/cake-tech/zkool2.git"
- source: git
- version: "6.24.0"
+ path: "../zkool2"
+ relative: true
+ source: path
+ version: "6.31.0"
sdks:
dart: ">=3.9.0 <4.0.0"
flutter: ">=3.19.0"
### pubspec_overrides.yaml
@@ -861,7 +861,7 @@ dependency_overrides:
ledger_flutter_plus:
git:
url: https://github.com/cake-tech/ledger-flutter-plus
- ref: eaf49764ad0863e8dec97ad30ff6aea0a1d1bd28
+ ref: a1f8080181ef4a7334df3afb8e01afd321a8090e
ledger_litecoin:
git:
url: https://github.com/cake-tech/ledger-flutter-plus-plugins
@@ -1239,7 +1239,7 @@ dependency_overrides:
rlz:
git:
url: https://github.com/cake-tech/zkool2.git
- ref: 36e72b530c274c4a54a6127aadb94886e84d67bf
+ ref: b56be32eca373e5ddd0ef703614d4f81cba403f7
path: ./rust_builder
rxdart:
git:
@@ -1681,4 +1681,4 @@ dependency_overrides:
zkool:
git:
url: https://github.com/cake-tech/zkool2.git
- ref: 36e72b530c274c4a54a6127aadb94886e84d67bf
+ ref: b56be32eca373e5ddd0ef703614d4f81cba403f7
### res/values/strings_ar.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "لا تشارك هذه المعلومات مع أي شخص آخر، بما في ذلك الدعم.\n\nيمكن سرقة أموالك!",
"do_not_show_anymore": "لا تعرض هذا مرة أخرى",
"do_not_show_me": "لا تُظهر هذا مرة أخرى",
+ "do_you_want_to_proceed": "هل تريد المتابعة؟",
"domain_looks_up": "عمليات البحث عن النطاقات",
"donation": "تبرع",
"donation_link_details": "تفاصيل رابط التبرع",
@@ -1164,6 +1165,10 @@
"share_this_node": "مشاركة هذه العقدة",
"shared_seed_wallet_groups": "مجموعات محافظ عبارة الاسترداد المشتركة",
"shared_seed_wallets": "محافظ العبارة الأولية المشتركة",
+ "shield_device_funds": "حماية أموال الجهاز",
+ "shield_funds": "حماية الأموال",
+ "shield_them_to_use_device": "قم بحمايتها لاستخدام هذا الجهاز",
+ "shielded_only_sends_desc": "يسمح Cake Wallet فقط بعمليات إرسال Zcash المحمية لحماية خصوصيتك. لإرسال الأموال من جهاز الأجهزة هذا، ستحتاج إلى حمايتها أولاً.",
"shielding": "الدرع التلقائي",
"show": "إظهار",
"show_address_book_popup": "إظهار النافذة المنبثقة لدفتر العناوين",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "خدمة في الخلفية غير مقيّدة",
"unrestricted_background_service_notice": "لتمكين المزامنة في الخلفية، تحتاج إلى تفعيل خدمة الخلفية غير المقيدة",
"unselect_all": "إلغاء تحديد الكل",
+ "unshielded": "غير المحمية",
+ "unshielded_funds_detected": "تم اكتشاف أموال غير محمية",
+ "unshielded_funds_transparent_desc": "الأموال غير المحمية شفافة، مما قد يعرّض خصوصيتك للخطر",
"unspent_change": "الفكّة",
"unspent_coins_details_title": "تفاصيل العملات غير المُنفَقة",
"unspent_coins_title": "العملات غير المُنفَقة",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "يبدو أنه ليست لديك أي مجموعات محافظ متوافقة!\n\nاضغط",
"wallet_group_empty_state_text_two": "أدناه لإنشاء واحدة جديدة.",
"wallet_has_passphrase": "هذه المحفظة تحتوي على عبارة مرور",
+ "wallet_holds_unshielded_zec": "تحتوي هذه المحفظة على المبلغ التالي من ZEC ${unshielded}",
"wallet_is_syncing": "المحفظة قيد المزامنة",
"wallet_keys": "استرداد المحفظة",
"wallet_list_create_new_wallet": "إنشاء محفظة جديدة",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "ما هو Payjoin؟",
"what_is_silent_payments": "ما هي المدفوعات الصامتة؟",
"whats_new": "ما الجديد",
+ "why_is_shielding_needed": "لماذا الحماية ضرورية؟",
"widgets_address": "العنوان",
"widgets_or": "أو",
"widgets_restore_from_blockheight": "الاستعادة من ارتفاع الكتلة",
### res/values/strings_bg.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Не споделяйте това с никого, включително с поддръжката.\n\nСредствата ви могат и ще бъдат откраднати!",
"do_not_show_anymore": "Не показвай това повече",
"do_not_show_me": "Не ми показвай това отново",
+ "do_you_want_to_proceed": "Искате ли да продължите?",
"domain_looks_up": "Търсене на домейни",
"donation": "Дарение",
"donation_link_details": "Подробности за връзката за дарение",
@@ -1164,6 +1165,10 @@
"share_this_node": "Споделяне на този възел",
"shared_seed_wallet_groups": "Групи портфейли със споделена seed фраза",
"shared_seed_wallets": "Портфейли със споделена seed фраза",
+ "shield_device_funds": "Екраниране на средствата на устройството",
+ "shield_funds": "Екраниране на средствата",
+ "shield_them_to_use_device": "Екранирайте ги, за да използвате това устройство",
+ "shielded_only_sends_desc": "Cake Wallet разрешава само екранирани Zcash изпращания, за да защити поверителността ви. За да изпратите средства от това хардуерно устройство, първо трябва да ги екранирате.",
"shielding": "Автощит",
"show": "Покажи",
"show_address_book_popup": "Показване на изскачащ прозорец на адресната книга",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "Неограничена услуга във фонов режим",
"unrestricted_background_service_notice": "За да активирате синхронизирането във фонов режим, трябва да разрешите неограничена услуга във фонов режим",
"unselect_all": "Премахване на избора на всички",
+ "unshielded": "неекранирани",
+ "unshielded_funds_detected": "Открити са неекранирани средства",
+ "unshielded_funds_transparent_desc": "Неекранираните средства са прозрачни и могат да компрометират поверителността ви",
"unspent_change": "Ресто",
"unspent_coins_details_title": "Подробности за неизразходваните монети",
"unspent_coins_title": "Неизразходвани монети",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "Изглежда, че нямате съвместими групи портфейли!\n\nДокоснете",
"wallet_group_empty_state_text_two": "по-долу, за да създадете нов.",
"wallet_has_passphrase": "Този портфейл има парола за достъп",
+ "wallet_holds_unshielded_zec": "Този портфейл съдържа следната сума ${unshielded} ZEC",
"wallet_is_syncing": "Портфейлът се синхронизира",
"wallet_keys": "Възстановяване на портфейла",
"wallet_list_create_new_wallet": "Създаване на нов портфейл",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Какво е Payjoin?",
"what_is_silent_payments": "Какво представляват Silent Payments?",
"whats_new": "Какво ново",
+ "why_is_shielding_needed": "Защо е необходимо екраниране?",
"widgets_address": "Адрес",
"widgets_or": "или",
"widgets_restore_from_blockheight": "Възстановяване от височина на блок",
### res/values/strings_cs.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Toto nesdílejte s nikým jiným, ani s podporou.\n\nVaše prostředky mohou a budou ukradeny!",
"do_not_show_anymore": "Už to nezobrazovat",
"do_not_show_me": "Už mi to znovu nezobrazovat",
+ "do_you_want_to_proceed": "Chcete pokračovat?",
"domain_looks_up": "Vyhledávání domén",
"donation": "Darování",
"donation_link_details": "Podrobnosti odkazu na darování",
@@ -1164,6 +1165,10 @@
"share_this_node": "Sdílet tento uzel",
"shared_seed_wallet_groups": "Skupiny peněženek se sdílenou seed frází",
"shared_seed_wallets": "Peněženky se sdíleným seedem",
+ "shield_device_funds": "Stínit prostředky zařízení",
+ "shield_funds": "Stínit prostředky",
+ "shield_them_to_use_device": "Pro použití tohoto zařízení je stiňte",
+ "shielded_only_sends_desc": "Cake Wallet z důvodu ochrany vašeho soukromí povoluje pouze stíněné odesílání Zcash. Chcete-li odeslat prostředky z tohoto hardwarového zařízení, musíte je nejprve stínit.",
"shielding": "Autoshield",
"show": "Zobrazit",
"show_address_book_popup": "Zobrazit vyskakovací okno adresáře",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "Neomezená služba na pozadí",
"unrestricted_background_service_notice": "Chcete-li povolit synchronizaci na pozadí, musíte povolit neomezenou službu na pozadí",
"unselect_all": "Zrušit výběr všech",
+ "unshielded": "nestíněných",
+ "unshielded_funds_detected": "Zjištěny nestíněné prostředky",
+ "unshielded_funds_transparent_desc": "Nestíněné prostředky jsou transparentní a mohou ohrozit vaše soukromí",
"unspent_change": "Vrácená částka",
"unspent_coins_details_title": "Podrobnosti o neutracených mincích",
"unspent_coins_title": "Neutratné mince",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "Vypadá to, že nemáte žádné kompatibilní skupiny peněženek!\n\nKlepněte",
"wallet_group_empty_state_text_two": "Níže si vytvořte novou.",
"wallet_has_passphrase": "Tato peněženka má přístupovou frázi",
+ "wallet_holds_unshielded_zec": "Tato peněženka obsahuje následující množství ${unshielded} ZEC",
"wallet_is_syncing": "Peněženka se synchronizuje",
"wallet_keys": "Obnova peněženky",
"wallet_list_create_new_wallet": "Vytvořit novou peněženku",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Co je Payjoin?",
"what_is_silent_payments": "Co jsou tiché platby?",
"whats_new": "Co je nového",
+ "why_is_shielding_needed": "Proč je stínění nutné?",
"widgets_address": "Adresa",
"widgets_or": "nebo",
"widgets_restore_from_blockheight": "Obnovit od výšky bloku",
### res/values/strings_de.arb
@@ -435,6 +435,7 @@
"do_not_share_warning_text": "Teilen Sie diese mit niemandem, auch nicht mit dem Support.\n\nIhre Guthaben können und werden gestohlen!",
"do_not_show_anymore": "Nicht mehr anzeigen",
"do_not_show_me": "Zeig mir das nicht noch einmal",
+ "do_you_want_to_proceed": "Möchten Sie fortfahren?",
"domain_looks_up": "Domain-Abfragen",
"donation": "Spende",
"donation_link_details": "Details zum Spendenlink",
@@ -1211,6 +1212,10 @@
"share_this_node": "Diesen Node teilen",
"shared_seed_wallet_groups": "Geteilte Seed-Wallet-Gruppen",
"shared_seed_wallets": "Wallets mit gemeinsamem Seed",
+ "shield_device_funds": "Gerätegelder abschirmen",
+ "shield_funds": "Gelder abschirmen",
+ "shield_them_to_use_device": "Schirmen Sie sie ab, um dieses Gerät zu nutzen",
+ "shielded_only_sends_desc": "Cake Wallet erlaubt zum Schutz Ihrer Privatsphäre nur abgeschirmte Zcash-Transaktionen. Um Gelder von diesem Hardware-Gerät zu senden, müssen Sie diese abschirmen.",
"shielding": "Autoshield",
"show": "Anzeigen",
"show_address_book_popup": "Adressbuch-Popup anzeigen",
@@ -1478,6 +1483,9 @@
"unrestricted_background_service": "Uneingeschränkter Hintergrunddienst",
"unrestricted_background_service_notice": "Um die Hintergrundsynchronisierung zu aktivieren, müssen Sie den uneingeschränkten Hintergrunddienst aktivieren",
"unselect_all": "Alle abwählen",
+ "unshielded": "nicht abgeschirmten",
+ "unshielded_funds_detected": "Nicht abgeschirmte Gelder erkannt",
+ "unshielded_funds_transparent_desc": "Nicht abgeschirmte Gelder sind transparent und können Ihre Privatsphäre gefährden",
"unspent_change": "Wechselgeld",
"unspent_coins_details_title": "Details zu nicht ausgegebenen Coins",
"unspent_coins_title": "Nicht ausgegebene Coins",
@@ -1537,6 +1545,7 @@
"wallet_group_empty_state_text_one": "Sieht so aus, als hätten Sie keine kompatiblen Wallet-Gruppen!\n\nTippen Sie auf",
"wallet_group_empty_state_text_two": "unten, um eine neue zu erstellen.",
"wallet_has_passphrase": "Diese Wallet hat eine Passphrase",
+ "wallet_holds_unshielded_zec": "Diese Wallet enthält den folgenden Betrag an ${unshielded} ZEC",
"wallet_is_syncing": "Das Wallet wird synchronisiert",
"wallet_keys": "Wallet-Wiederherstellung",
"wallet_list_create_new_wallet": "Neue Wallet erstellen",
@@ -1599,6 +1608,7 @@
"what_is_payjoin": "Was ist Payjoin?",
"what_is_silent_payments": "Was sind Silent Payments?",
"whats_new": "Was ist neu",
+ "why_is_shielding_needed": "Warum ist Abschirmen notwendig?",
"widgets_address": "Adresse",
"widgets_or": "oder",
"widgets_restore_from_blockheight": "Von Blockhöhe wiederherstellen",
### res/values/strings_en.arb
@@ -435,6 +435,7 @@
"do_not_share_warning_text": "Do not share these with anyone else, including support.\n\nYour funds can and will be stolen!",
"do_not_show_anymore": "Don’t show this anymore",
"do_not_show_me": "Do not show me this again",
+ "do_you_want_to_proceed": "Do you want to proceed?",
"domain_looks_up": "Domain lookups",
"donation": "Donation",
"donation_link_details": "Donation link details",
@@ -1211,6 +1212,10 @@
"share_this_node": "Share this node",
"shared_seed_wallet_groups": "Shared Seed Wallet Groups",
"shared_seed_wallets": "Shared Seed Wallets",
+ "shield_device_funds": "Shield Device Funds",
+ "shield_funds": "Shield Funds",
+ "shield_them_to_use_device": "Shield them to use this device",
+ "shielded_only_sends_desc": "Cake Wallet enforces shielded-only Zcash Sends to protect your privacy. To send funds from this hardware device, you will need to Shield them.",
"shielding": "Autoshield",
"show": "Show",
"show_address_book_popup": "Show Address Book popup",
@@ -1478,6 +1483,9 @@
"unrestricted_background_service": "Unrestricted background service",
"unrestricted_background_service_notice": "In order to enable background sync you need to enable unrestricted background service",
"unselect_all": "Unselect all",
+ "unshielded": "Unshielded",
+ "unshielded_funds_detected": "Unshielded Funds Detected",
+ "unshielded_funds_transparent_desc": "Unshielded funds are transparent, potentially compromising your privacy",
"unspent_change": "Change",
"unspent_coins_details_title": "Unspent coins details",
"unspent_coins_title": "Unspent coins",
@@ -1537,6 +1545,7 @@
"wallet_group_empty_state_text_one": "Looks like you don't have any compatible wallet groups!\n\nTap",
"wallet_group_empty_state_text_two": "below to make a new one.",
"wallet_has_passphrase": "This wallet has a passphrase",
+ "wallet_holds_unshielded_zec": "This wallet holds the following amount of ${unshielded} ZEC",
"wallet_is_syncing": "The wallet is syncing",
"wallet_keys": "Wallet Recovery",
"wallet_list_create_new_wallet": "Create New Wallet",
@@ -1599,6 +1608,7 @@
"what_is_payjoin": "What is Payjoin?",
"what_is_silent_payments": "What are Silent Payments?",
"whats_new": "What's new",
+ "why_is_shielding_needed": "Why is Shielding needed?",
"widgets_address": "Address",
"widgets_or": "or",
"widgets_restore_from_blockheight": "Restore from blockheight",
### res/values/strings_es.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "No compartas esto con nadie, ni siquiera con el soporte.\n\n¡Tus fondos pueden y serán robados!",
"do_not_show_anymore": "No volver a mostrar esto",
"do_not_show_me": "No me lo muestres de nuevo",
+ "do_you_want_to_proceed": "¿Quiere continuar?",
"domain_looks_up": "Búsquedas de dominios",
"donation": "Donación",
"donation_link_details": "Detalles del enlace de donación",
@@ -1165,6 +1166,10 @@
"share_this_node": "Compartir este nodo",
"shared_seed_wallet_groups": "Grupos de carteras con semilla compartida",
"shared_seed_wallets": "Carteras con semilla compartida",
+ "shield_device_funds": "Proteger fondos del dispositivo",
+ "shield_funds": "Proteger fondos",
+ "shield_them_to_use_device": "Protéjalos para usar este dispositivo",
+ "shielded_only_sends_desc": "Cake Wallet solo permite envíos de Zcash protegidos para proteger su privacidad. Para enviar fondos desde este dispositivo de hardware, deberá protegerlos.",
"shielding": "Escudo automático",
"show": "Mostrar",
"show_address_book_popup": "Mostrar ventana emergente de la libreta de direcciones",
@@ -1426,6 +1431,9 @@
"unrestricted_background_service": "Servicio en segundo plano sin restricciones",
"unrestricted_background_service_notice": "Para habilitar la sincronización en segundo plano, debes habilitar el servicio en segundo plano sin restricciones.",
"unselect_all": "Deseleccionar todo",
+ "unshielded": "no protegidos",
+ "unshielded_funds_detected": "Fondos no protegidos detectados",
+ "unshielded_funds_transparent_desc": "Los fondos no protegidos son transparentes y pueden comprometer su privacidad",
"unspent_change": "Cambio",
"unspent_coins_details_title": "Detalles de monedas sin gastar",
"unspent_coins_title": "Monedas no gastadas",
@@ -1485,6 +1493,7 @@
"wallet_group_empty_state_text_one": "Parece que no tienes ningún grupo de wallets compatible.\n\nToca",
"wallet_group_empty_state_text_two": "a continuación para crear una nueva.",
"wallet_has_passphrase": "Esta billetera tiene una frase de contraseña",
+ "wallet_holds_unshielded_zec": "Esta billetera contiene la siguiente cantidad de ZEC ${unshielded}",
"wallet_is_syncing": "La cartera se está sincronizando",
"wallet_keys": "Recuperación de billetera",
"wallet_list_create_new_wallet": "Crear nueva billetera",
@@ -1548,6 +1557,7 @@
"what_is_payjoin": "¿Qué es Payjoin?",
"what_is_silent_payments": "¿Qué son los pagos silenciosos?",
"whats_new": "Novedades",
+ "why_is_shielding_needed": "¿Por qué es necesario proteger los fondos?",
"widgets_address": "Dirección",
"widgets_or": "o",
"widgets_restore_from_blockheight": "Restaurar desde la altura de bloque",
### res/values/strings_fa.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "این اطلاعات را با هیچکس، حتی پشتیبانی، به اشتراک نگذارید.\n\nداراییهای شما میتواند و قطعاً دزدیده خواهد شد!",
"do_not_show_anymore": "دیگر این را نشان نده",
"do_not_show_me": "این را دوباره نشان ندهید",
+ "do_you_want_to_proceed": "آیا میخواهید ادامه دهید؟",
"domain_looks_up": "جستجوهای دامنه",
"donation": "کمک مالی",
"donation_link_details": "جزئیات لینک اهدایی",
@@ -1164,6 +1165,10 @@
"share_this_node": "اشتراکگذاری این نود",
"shared_seed_wallet_groups": "گروههای کیف پول با سید مشترک",
"shared_seed_wallets": "کیف پولهای سید مشترک",
+ "shield_device_funds": "محافظت از وجوه دستگاه",
+ "shield_funds": "محافظت از وجوه",
+ "shield_them_to_use_device": "برای استفاده از این دستگاه از آنها محافظت کنید",
+ "shielded_only_sends_desc": "Cake Wallet برای حفظ حریم خصوصی شما فقط ارسالهای Zcash محافظتشده را مجاز میداند. برای ارسال وجوه از این دستگاه سختافزاری، ابتدا باید از آنها محافظت کنید.",
"shielding": "سپر خودکار",
"show": "نمایش",
"show_address_book_popup": "نمایش پنجرهٔ بازشوِ دفترچهٔ آدرس",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "سرویس پسزمینه بدون محدودیت",
"unrestricted_background_service_notice": "برای فعالسازی همگامسازی در پسزمینه، باید سرویس پسزمینه نامحدود را فعال کنید",
"unselect_all": "لغو انتخاب همه",
+ "unshielded": "محافظتنشده",
+ "unshielded_funds_detected": "وجوه محافظتنشده شناسایی شد",
+ "unshielded_funds_transparent_desc": "وجوه محافظتنشده شفاف هستند و ممکن است حریم خصوصی شما را به خطر بیندازند",
"unspent_change": "خُرده",
"unspent_coins_details_title": "جزئیات کوینهای خرجنشده",
"unspent_coins_title": "کوینهای خرجنشده",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "به نظر میرسد هیچ گروه کیف پول سازگاری ندارید!\n\nضربه بزنید",
"wallet_group_empty_state_text_two": "در زیر، برای ساختن یک مورد جدید.",
"wallet_has_passphrase": "این کیف پول دارای عبارت عبور است",
+ "wallet_holds_unshielded_zec": "این کیف پول مقدار زیر ZEC ${unshielded} را نگه میدارد",
"wallet_is_syncing": "کیف پول در حال همگامسازی است",
"wallet_keys": "بازیابی کیف پول",
"wallet_list_create_new_wallet": "ایجاد کیف پول جدید",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Payjoin چیست؟",
"what_is_silent_payments": "پرداختهای بیصدا چیستند؟",
"whats_new": "چه خبر",
+ "why_is_shielding_needed": "چرا محافظت لازم است؟",
"widgets_address": "آدرس",
"widgets_or": "یا",
"widgets_restore_from_blockheight": "بازیابی از ارتفاع بلاکچین",
### res/values/strings_fr.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Ne les partagez avec personne, y compris avec l'assistance.\n\nVos fonds peuvent et seront volés !",
"do_not_show_anymore": "Ne plus afficher",
"do_not_show_me": "Ne plus me montrer ceci",
+ "do_you_want_to_proceed": "Voulez-vous continuer ?",
"domain_looks_up": "Recherches de domaine",
"donation": "Don",
"donation_link_details": "Détails du lien de don",
@@ -1164,6 +1165,10 @@
"share_this_node": "Partager ce nœud",
"shared_seed_wallet_groups": "Groupes de portefeuilles à phrase de récupération partagée",
"shared_seed_wallets": "Portefeuilles à phrase de récupération partagée",
+ "shield_device_funds": "Protéger les fonds de l'appareil",
+ "shield_funds": "Protéger les fonds",
+ "shield_them_to_use_device": "Protégez-les pour utiliser cet appareil",
+ "shielded_only_sends_desc": "Cake Wallet n'autorise que les envois Zcash protégés afin de préserver votre confidentialité. Pour envoyer des fonds depuis cet appareil matériel, vous devrez d'abord les protéger.",
"shielding": "Bouclier automatique",
"show": "Afficher",
"show_address_book_popup": "Afficher la fenêtre contextuelle du carnet d’adresses",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "Service en arrière-plan sans restriction",
"unrestricted_background_service_notice": "Pour activer la synchronisation en arrière-plan, vous devez activer le service en arrière-plan sans restriction",
"unselect_all": "Tout désélectionner",
+ "unshielded": "non protégés",
+ "unshielded_funds_detected": "Fonds non protégés détectés",
+ "unshielded_funds_transparent_desc": "Les fonds non protégés sont transparents, ce qui peut compromettre votre confidentialité",
"unspent_change": "Rendu",
"unspent_coins_details_title": "Détails des coins non dépensés",
"unspent_coins_title": "Coins non dépensés",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "On dirait que vous n'avez aucun groupe de portefeuilles compatible !\n\nAppuyez",
"wallet_group_empty_state_text_two": "ci-dessous pour en créer un nouveau.",
"wallet_has_passphrase": "Ce portefeuille a une phrase de passe",
+ "wallet_holds_unshielded_zec": "Ce portefeuille détient le montant suivant de ZEC ${unshielded}",
"wallet_is_syncing": "Le portefeuille se synchronise",
"wallet_keys": "Récupération de portefeuille",
"wallet_list_create_new_wallet": "Créer un nouveau portefeuille",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Qu’est-ce que Payjoin ?",
"what_is_silent_payments": "Que sont les paiements silencieux ?",
"whats_new": "Quoi de neuf",
+ "why_is_shielding_needed": "Pourquoi la protection est-elle nécessaire ?",
"widgets_address": "Adresse",
"widgets_or": "ou",
"widgets_restore_from_blockheight": "Restaurer à partir de la hauteur de bloc",
### res/values/strings_gn.arb
@@ -402,6 +402,7 @@
"do_not_share_warning_text": "Ani rembohasa koʼã mbaʼe avavépe, tahaʼe jepe pe pytyvõha rehegua.\n\nNde viru ikatu ha katuete oñemonda!",
"do_not_show_anymore": "Ani ehechauka hag̃ua ko’ãva jey",
"do_not_show_me": "Ani rehechauka chéve ko'ãva jey",
+ "do_you_want_to_proceed": "¿Reseguise piko?",
"domain_looks_up": "Jeheka dominio",
"donation": "Me’ẽ",
"donation_link_details": "Mba’ekuaarã juajuha ñeme’ẽrei rehegua",
@@ -1166,6 +1167,10 @@
"share_this_node": "Emoherakuã ko nodo",
"shared_seed_wallet_groups": "Billetera Atyrã Seed Ojoja'ekuéva",
"shared_seed_wallets": "Billetera kuéra seed compartida rehegua",
+ "shield_device_funds": "Emo'ã dispositivo viru",
+ "shield_funds": "Emo'ã viru",
+ "shield_them_to_use_device": "Emo'ã chupekuéra eiporu hag̃ua ko dispositivo",
+ "shielded_only_sends_desc": "Cake Wallet ohejá añoite Zcash jemondo oje'o'ãva oñangareko hag̃ua ne privacidad rehe. Remondo hag̃ua viru ko dispositivo hardware-gui, raẽ remo'ãva'erã chupekuéra.",
"shielding": "Autoescudo rehegua",
"show": "Hechauka",
"show_address_book_popup": "Ehechauka Address Book popup",
@@ -1428,6 +1433,9 @@
"unrestricted_background_service": "Servicio tapykuegua ñemboaty'ỹ (unrestricted)",
"unrestricted_background_service_notice": "Emboguata hag̃ua ñembojuehe tapykuegua tekotevẽ emboguata servicio tapykuegua ñemboaty'ỹ",
"unselect_all": "Eipe'a opaite jeporavo",
+ "unshielded": "ndoje'o'ãiva",
+ "unshielded_funds_detected": "Ojejuhu viru ndoje'o'ãiva",
+ "unshielded_funds_transparent_desc": "Viru ndoje'o'ãiva ojehecha opavavépe, ha ikatu ombyai ne privacidad",
"unspent_change": "Ñemoambue",
"unspent_coins_details_title": "Marandu viru ndojepurukuaáiva rehegua",
"unspent_coins_title": "Viru noñemongu'éiva",
@@ -1487,6 +1495,7 @@
"wallet_group_empty_state_text_one": "Ndereguerekóiramoguáicha mavave billetera atyrã ojokupytýva.\n\nEikutu",
"wallet_group_empty_state_text_two": "iguýpe emoheñói hag̃ua peteĩ pyahu.",
"wallet_has_passphrase": "Ko billetera oguereko peteĩ passphrase",
+ "wallet_holds_unshielded_zec": "Ko billetera oguereko ko ZEC ${unshielded} ryepy",
"wallet_is_syncing": "Pe billetera oĩ hína oñembojuehe hag̃ua",
"wallet_keys": "Recuperación de Billetera rehegua",
"wallet_list_create_new_wallet": "Emoheñói billetera pyahu",
@@ -1549,6 +1558,7 @@
"what_is_payjoin": "¿Mba'épa Payjoin?",
"what_is_silent_payments": "¿Mbaʼépa hína Jehepymeʼẽ Kirirĩva?",
"whats_new": "Mba’e pyahu",
+ "why_is_shielding_needed": "Mba'ére tekotevẽ emo'ã?",
"widgets_address": "Dirección",
"widgets_or": "térã",
"widgets_restore_from_blockheight": "Emboguevi blockheight guive",
### res/values/strings_ha.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Kada ka raba waɗannan da kowa, har da masu tallafi.\n\nAna iya satar kuɗaɗenka, kuma za a sace su!",
"do_not_show_anymore": "Kada a sake nuna wannan",
"do_not_show_me": "Kada a sake nuna min wannan",
+ "do_you_want_to_proceed": "Kuna son ci gaba?",
"domain_looks_up": "Binciken yankuna",
"donation": "Gudummawa",
"donation_link_details": "Cikakkun bayanan hanyar bayar da gudummawa",
@@ -1166,6 +1167,10 @@
"share_this_node": "Raba wannan node",
"shared_seed_wallet_groups": "Ƙungiyoyin Walat na Iri ɗaya da aka Raba",
"shared_seed_wallets": "Wallets Masu Seed da Aka Raba",
+ "shield_device_funds": "Kare Kuɗin Na'ura",
+ "shield_funds": "Kare Kuɗi",
+ "shield_them_to_use_device": "Kare su don amfani da wannan na'urar",
+ "shielded_only_sends_desc": "Cake Wallet yana ba da izinin aika Zcash masu kariya kawai don kare sirrinku. Don aika kuɗi daga wannan na'urar hardware, kuna buƙatar fara kare su.",
"shielding": "Garkuwar mota",
"show": "Nuna",
"show_address_book_popup": "Nuna taga mai tashi na Littafin Adireshi",
@@ -1427,6 +1432,9 @@
"unrestricted_background_service": "Sabis na baya ba tare da takura ba",
"unrestricted_background_service_notice": "Don kunna daidaitawa a bango, kana buƙatar kunna sabis na bango mara ƙuntatawa",
"unselect_all": "Cire zaɓi duka",
+ "unshielded": "marasa kariya",
+ "unshielded_funds_detected": "An Gano Kuɗi Marasa Kariya",
+ "unshielded_funds_transparent_desc": "Kuɗaɗen da ba su da kariya a bayyane suke, wanda zai iya cutar da sirrinku",
"unspent_change": "Canji",
"unspent_coins_details_title": "Cikakkun bayanan tsabar kuɗi da ba a kashe ba",
"unspent_coins_title": "Tsabar kuɗi da ba a kashe ba",
@@ -1486,6 +1494,7 @@
"wallet_group_empty_state_text_one": "Da alama ba ku da wasu ƙungiyoyin walat masu jituwa!\n\nTaɓa",
"wallet_group_empty_state_text_two": "a ƙasa don ƙirƙirar sabo.",
"wallet_has_passphrase": "Wannan walat ɗin yana da kalmar sirri",
+ "wallet_holds_unshielded_zec": "Wannan walat ɗin yana riƙe da adadin ZEC ${unshielded} mai zuwa",
"wallet_is_syncing": "Wallet ɗin yana aiki tare",
"wallet_keys": "Farfadowar Wallet",
"wallet_list_create_new_wallet": "Ƙirƙiri Sabuwar Wallet",
@@ -1549,6 +1558,7 @@
"what_is_payjoin": "Menene Payjoin?",
"what_is_silent_payments": "Menene Silent Payments?",
"whats_new": "Me ke sabo",
+ "why_is_shielding_needed": "Me yasa ake buƙatar kariya?",
"widgets_address": "Adireshi",
"widgets_or": "ko",
"widgets_restore_from_blockheight": "Mayar da daga blockheight",
### res/values/strings_hi.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "समर्थन सहित, इन्हें किसी और के साथ साझा न करें।\n\nआपकी धनराशि चोरी हो सकती है और होगी!",
"do_not_show_anymore": "इसे फिर से न दिखाएँ",
"do_not_show_me": "मुझे यह फिर से न दिखाएँ",
+ "do_you_want_to_proceed": "क्या आप आगे बढ़ना चाहते हैं?",
"domain_looks_up": "डोमेन लुकअप",
"donation": "दान",
"donation_link_details": "डोनेशन लिंक विवरण",
@@ -1166,6 +1167,10 @@
"share_this_node": "इस नोड को साझा करें",
"shared_seed_wallet_groups": "साझा सीड वॉलेट समूह",
"shared_seed_wallets": "साझा सीड वॉलेट",
+ "shield_device_funds": "डिवाइस फंड शील्ड करें",
+ "shield_funds": "फंड शील्ड करें",
+ "shield_them_to_use_device": "इस डिवाइस का उपयोग करने के लिए उन्हें शील्ड करें",
+ "shielded_only_sends_desc": "आपकी गोपनीयता की सुरक्षा के लिए Cake Wallet केवल शील्डेड Zcash भेजने की अनुमति देता है। इस हार्डवेयर डिवाइस से फंड भेजने के लिए, आपको पहले उन्हें शील्ड करना होगा।",
"shielding": "ऑटोशील्ड",
"show": "दिखाएँ",
"show_address_book_popup": "एड्रेस बुक पॉपअप दिखाएं",
@@ -1427,6 +1432,9 @@
"unrestricted_background_service": "अप्रतिबंधित बैकग्राउंड सेवा",
"unrestricted_background_service_notice": "बैकग्राउंड सिंक सक्षम करने के लिए आपको अप्रतिबंधित बैकग्राउंड सेवा सक्षम करनी होगी",
"unselect_all": "सभी का चयन हटाएँ",
+ "unshielded": "अनशील्डेड",
+ "unshielded_funds_detected": "अनशील्डेड फंड पाए गए",
+ "unshielded_funds_transparent_desc": "अनशील्डेड फंड पारदर्शी होते हैं, जिससे आपकी गोपनीयता खतरे में पड़ सकती है",
"unspent_change": "चेंज",
"unspent_coins_details_title": "अव्ययित कॉइन्स का विवरण",
"unspent_coins_title": "अव्ययित सिक्के",
@@ -1486,6 +1494,7 @@
"wallet_group_empty_state_text_one": "लगता है कि आपके पास कोई संगत वॉलेट समूह नहीं है!\n\nटैप करें",
"wallet_group_empty_state_text_two": "एक नया बनाने के लिए नीचे।",
"wallet_has_passphrase": "इस वॉलेट में एक पासफ़्रेज़ है",
+ "wallet_holds_unshielded_zec": "इस वॉलेट में निम्नलिखित मात्रा में ${unshielded} ZEC है",
"wallet_is_syncing": "वॉलेट सिंक हो रहा है",
"wallet_keys": "वॉलेट रिकवरी",
"wallet_list_create_new_wallet": "नया वॉलेट बनाएँ",
@@ -1548,6 +1557,7 @@
"what_is_payjoin": "Payjoin क्या है?",
"what_is_silent_payments": "साइलेंट पेमेंट्स क्या हैं?",
"whats_new": "नया क्या है",
+ "why_is_shielding_needed": "शील्डिंग क्यों ज़रूरी है?",
"widgets_address": "पता",
"widgets_or": "या",
"widgets_restore_from_blockheight": "ब्लॉकहाइट से पुनर्स्थापित करें",
### res/values/strings_hr.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Nemojte ih dijeliti ni s kim, uključujući podršku.\n\nVaša sredstva mogu i hoće biti ukradena!",
"do_not_show_anymore": "Ne prikazuj ovo više",
"do_not_show_me": "Ne prikazuj mi ovo više",
+ "do_you_want_to_proceed": "Želite li nastaviti?",
"domain_looks_up": "Pretrage domena",
"donation": "Donacija",
"donation_link_details": "Detalji poveznice za donacije",
@@ -1164,6 +1165,10 @@
"share_this_node": "Podijeli ovaj čvor",
"shared_seed_wallet_groups": "Grupe novčanika sa zajedničkom seed frazom",
"shared_seed_wallets": "Novčanici sa zajedničkom seed frazom",
+ "shield_device_funds": "Zaštiti sredstva uređaja",
+ "shield_funds": "Zaštiti sredstva",
+ "shield_them_to_use_device": "Zaštitite ih kako biste koristili ovaj uređaj",
+ "shielded_only_sends_desc": "Cake Wallet radi zaštite vaše privatnosti dopušta samo zaštićena Zcash slanja. Za slanje sredstava s ovog hardverskog uređaja morat ćete ih najprije zaštititi.",
"shielding": "Autoshield",
"show": "Prikaži",
"show_address_book_popup": "Prikaži skočni prozor adresara",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "Neograničena usluga u pozadini",
"unrestricted_background_service_notice": "Da biste omogućili sinkronizaciju u pozadini, morate omogućiti neograničenu uslugu u pozadini",
"unselect_all": "Poništi odabir svega",
+ "unshielded": "nezaštićenih",
+ "unshielded_funds_detected": "Otkrivena nezaštićena sredstva",
+ "unshielded_funds_transparent_desc": "Nezaštićena sredstva su transparentna i mogu ugroziti vašu privatnost",
"unspent_change": "Kusur",
"unspent_coins_details_title": "Detalji nepotrošenih novčića",
"unspent_coins_title": "Nepotrošeni novčići",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "Izgleda da nemate nijednu kompatibilnu grupu novčanika!\n\nDodirnite",
"wallet_group_empty_state_text_two": "ispod kako biste napravili novi.",
"wallet_has_passphrase": "Ovaj novčanik ima lozinku",
+ "wallet_holds_unshielded_zec": "Ovaj novčanik sadrži sljedeći iznos ${unshielded} ZEC",
"wallet_is_syncing": "Novčanik se sinkronizira",
"wallet_keys": "Oporavak novčanika",
"wallet_list_create_new_wallet": "Izradi novi novčanik",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Što je Payjoin?",
"what_is_silent_payments": "Što su Silent Payments?",
"whats_new": "Što je novo",
+ "why_is_shielding_needed": "Zašto je zaštita potrebna?",
"widgets_address": "Adresa",
"widgets_or": "ili",
"widgets_restore_from_blockheight": "Vrati iz visine bloka",
### res/values/strings_hy.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Սա մի կիսվեք որևէ մեկի հետ, այդ թվում՝ աջակցության ծառայության հետ։\n\nՁեր միջոցները կարող են և կգողացվեն։",
"do_not_show_anymore": "Այլևս չցուցադրել",
"do_not_show_me": "Այլևս չցուցադրել",
+ "do_you_want_to_proceed": "Ցանկանու՞մ եք շարունակել",
"domain_looks_up": "Դոմեյնի որոնումներ",
"donation": "Նվիրատվություն",
"donation_link_details": "Նվիրատվության հղման մանրամասներ",
@@ -1164,6 +1165,10 @@
"share_this_node": "Կիսվել այս հանգույցով",
"shared_seed_wallet_groups": "Համօգտագործվող սիդով դրամապանակների խմբեր",
"shared_seed_wallets": "Համօգտագործվող սիդով դրամապանակներ",
+ "shield_device_funds": "Պաշտպանել սարքի միջոցները",
+ "shield_funds": "Պաշտպանել միջոցները",
+ "shield_them_to_use_device": "Պաշտպանեք դրանք՝ այս սարքն օգտագործելու համար",
+ "shielded_only_sends_desc": "Ձեր գաղտնիությունը պաշտպանելու համար Cake Wallet-ը թույլ է տալիս միայն պաշտպանված Zcash ուղարկումներ: Այս ապարատային սարքից միջոցներ ուղարկելու համար նախ պետք է դրանք պաշտպանեք:",
"shielding": "Autoshield",
"show": "Ցուցադրել",
"show_address_book_popup": "Ցուցադրել Հասցեագրքի թռուցիկ պատուհանը",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "Անսահմանափակ ֆոնային ծառայություն",
"unrestricted_background_service_notice": "Ֆոնային համաժամացումը միացնելու համար անհրաժեշտ է միացնել անսահմանափակ ֆոնային ծառայությունը",
"unselect_all": "Չընտրել բոլորը",
+ "unshielded": "չպաշտպանված",
+ "unshielded_funds_detected": "Հայտնաբերվել են չպաշտպանված միջոցներ",
+ "unshielded_funds_transparent_desc": "Չպաշտպանված միջոցները թափանցիկ են, ինչը կարող է վտանգել ձեր գաղտնիությունը",
"unspent_change": "Մանրադրամ",
"unspent_coins_details_title": "Չծախսված մետաղադրամների մանրամասները",
"unspent_coins_title": "Չծախսված մետաղադրամներ",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "Կարծես թե դուք չունեք որևէ համատեղելի դրամապանակի խումբ:\n\nՀպեք",
"wallet_group_empty_state_text_two": "ներքևում՝ նորը ստեղծելու համար։",
"wallet_has_passphrase": "Այս դրամապանակն ունի գաղտնաբառային արտահայտություն",
+ "wallet_holds_unshielded_zec": "Այս դրամապանակը պարունակում է ${unshielded} ZEC-ի հետևյալ գումարը",
"wallet_is_syncing": "Դրամապանակը համաժամեցվում է",
"wallet_keys": "Դրամապանակի վերականգնում",
"wallet_list_create_new_wallet": "Ստեղծել նոր դրամապանակ",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Ի՞նչ է Payjoin-ը:",
"what_is_silent_payments": "Ի՞նչ են լուռ վճարումները:",
"whats_new": "Ինչ նորություն կա",
+ "why_is_shielding_needed": "Ինչո՞ւ է պաշտպանումն անհրաժեշտ",
"widgets_address": "Հասցե",
"widgets_or": "կամ",
"widgets_restore_from_blockheight": "Վերականգնել բլոկի բարձրությունից",
### res/values/strings_id.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Jangan bagikan ini kepada siapa pun, termasuk tim dukungan.\n\nDana Anda bisa dan akan dicuri!",
"do_not_show_anymore": "Jangan tampilkan lagi",
"do_not_show_me": "Jangan tampilkan ini lagi",
+ "do_you_want_to_proceed": "Apakah Anda ingin melanjutkan?",
"domain_looks_up": "Pencarian domain",
"donation": "Donasi",
"donation_link_details": "Detail tautan donasi",
@@ -1167,6 +1168,10 @@
"share_this_node": "Bagikan node ini",
"shared_seed_wallet_groups": "Grup Dompet Seed Bersama",
"shared_seed_wallets": "Dompet Seed Bersama",
+ "shield_device_funds": "Lindungi Dana Perangkat",
+ "shield_funds": "Lindungi Dana",
+ "shield_them_to_use_device": "Lindungi dana untuk menggunakan perangkat ini",
+ "shielded_only_sends_desc": "Cake Wallet hanya mengizinkan pengiriman Zcash yang terlindungi untuk menjaga privasi Anda. Untuk mengirim dana dari perangkat keras ini, Anda harus melindunginya terlebih dahulu.",
"shielding": "Pelindung otomatis",
"show": "Tampilkan",
"show_address_book_popup": "Tampilkan pop-up Buku Alamat",
@@ -1428,6 +1433,9 @@
"unrestricted_background_service": "Layanan latar belakang tanpa batasan",
"unrestricted_background_service_notice": "Untuk mengaktifkan sinkronisasi latar belakang, Anda perlu mengaktifkan layanan latar belakang tanpa pembatasan",
"unselect_all": "Batal pilih semua",
+ "unshielded": "tidak terlindungi",
+ "unshielded_funds_detected": "Dana Tidak Terlindungi Terdeteksi",
+ "unshielded_funds_transparent_desc": "Dana yang tidak terlindungi bersifat transparan dan dapat membahayakan privasi Anda",
"unspent_change": "Kembalian",
"unspent_coins_details_title": "Rincian koin yang belum dibelanjakan",
"unspent_coins_title": "Koin yang belum dibelanjakan",
@@ -1487,6 +1495,7 @@
"wallet_group_empty_state_text_one": "Sepertinya Anda tidak memiliki grup dompet yang kompatibel!\n\nKetuk",
"wallet_group_empty_state_text_two": "di bawah untuk membuat yang baru.",
"wallet_has_passphrase": "Dompet ini memiliki frasa sandi",
+ "wallet_holds_unshielded_zec": "Dompet ini menyimpan jumlah ZEC ${unshielded} berikut",
"wallet_is_syncing": "Dompet sedang menyinkronkan",
"wallet_keys": "Pemulihan Dompet",
"wallet_list_create_new_wallet": "Buat Dompet Baru",
@@ -1549,6 +1558,7 @@
"what_is_payjoin": "Apa itu Payjoin?",
"what_is_silent_payments": "Apa itu Silent Payments?",
"whats_new": "Apa yang baru",
+ "why_is_shielding_needed": "Mengapa perlindungan diperlukan?",
"widgets_address": "Alamat",
"widgets_or": "atau",
"widgets_restore_from_blockheight": "Pulihkan dari ketinggian blok",
### res/values/strings_it.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Non condividerli con nessun altro, incluso il supporto.\n\nI tuoi fondi possono e verranno rubati!",
"do_not_show_anymore": "Non mostrarlo più",
"do_not_show_me": "Non mostrarmelo più",
+ "do_you_want_to_proceed": "Vuoi procedere?",
"domain_looks_up": "Ricerche di dominio",
"donation": "Donazione",
"donation_link_details": "Dettagli del link di donazione",
@@ -1165,6 +1166,10 @@
"share_this_node": "Condividi questo nodo",
"shared_seed_wallet_groups": "Gruppi di wallet con seed condiviso",
"shared_seed_wallets": "Portafogli con seed condiviso",
+ "shield_device_funds": "Schermare i fondi del dispositivo",
+ "shield_funds": "Scherma fondi",
+ "shield_them_to_use_device": "Schermali per usare questo dispositivo",
+ "shielded_only_sends_desc": "Cake Wallet consente solo invii Zcash schermati per proteggere la tua privacy. Per inviare fondi da questo dispositivo hardware, dovrai prima schermarli.",
"shielding": "Protezione automatica",
"show": "Mostra",
"show_address_book_popup": "Mostra il popup della rubrica",
@@ -1426,6 +1431,9 @@
"unrestricted_background_service": "Servizio in background senza restrizioni",
"unrestricted_background_service_notice": "Per abilitare la sincronizzazione in background, devi abilitare il servizio in background senza restrizioni",
"unselect_all": "Deseleziona tutto",
+ "unshielded": "non schermati",
+ "unshielded_funds_detected": "Rilevati fondi non schermati",
+ "unshielded_funds_transparent_desc": "I fondi non schermati sono trasparenti e possono compromettere la tua privacy",
"unspent_change": "Resto",
"unspent_coins_details_title": "Dettagli delle monete non spese",
"unspent_coins_title": "Monete non spese",
@@ -1486,6 +1494,7 @@
"wallet_group_empty_state_text_one": "Sembra che tu non abbia alcun gruppo di wallet compatibile!\n\nTocca",
"wallet_group_empty_state_text_two": "qui sotto per crearne uno nuovo.",
"wallet_has_passphrase": "Questo wallet ha una passphrase",
+ "wallet_holds_unshielded_zec": "Questo portafoglio contiene il seguente importo di ZEC ${unshielded}",
"wallet_is_syncing": "Il wallet è in sincronizzazione",
"wallet_keys": "Recupero portafoglio",
"wallet_list_create_new_wallet": "Crea un nuovo wallet",
@@ -1549,6 +1558,7 @@
"what_is_payjoin": "Cos'è Payjoin?",
"what_is_silent_payments": "Cosa sono i Silent Payments?",
"whats_new": "Novità",
+ "why_is_shielding_needed": "Perché è necessaria la schermatura?",
"widgets_address": "Indirizzo",
"widgets_or": "o",
"widgets_restore_from_blockheight": "Ripristina da altezza blocco",
### res/values/strings_ja.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "サポートを含め、これらを他の誰とも共有しないでください。\n\n資金は盗まれます!",
"do_not_show_anymore": "今後表示しない",
"do_not_show_me": "今後このメッセージを表示しない",
+ "do_you_want_to_proceed": "続行しますか?",
"domain_looks_up": "ドメイン検索",
"donation": "寄付",
"donation_link_details": "寄付リンクの詳細",
@@ -1165,6 +1166,10 @@
"share_this_node": "このノードを共有",
"shared_seed_wallet_groups": "共有シードのウォレットグループ",
"shared_seed_wallets": "共有シードのウォレット",
+ "shield_device_funds": "デバイスの資金をシールド",
+ "shield_funds": "資金をシールド",
+ "shield_them_to_use_device": "このデバイスを使用するには資金をシールドしてください",
+ "shielded_only_sends_desc": "Cake Wallet はプライバシー保護のため、シールドされた Zcash の送金のみを許可しています。このハードウェアデバイスから資金を送金するには、まず資金をシールドする必要があります。",
"shielding": "オートシールド",
"show": "表示",
"show_address_book_popup": "アドレス帳のポップアップを表示",
@@ -1426,6 +1431,9 @@
"unrestricted_background_service": "制限なしのバックグラウンドサービス",
"unrestricted_background_service_notice": "バックグラウンド同期を有効にするには、バックグラウンドサービスを「無制限」に設定する必要があります",
"unselect_all": "すべての選択を解除",
+ "unshielded": "未シールドの",
+ "unshielded_funds_detected": "未シールドの資金が検出されました",
+ "unshielded_funds_transparent_desc": "未シールドの資金は透明であり、プライバシーが損なわれる可能性があります",
"unspent_change": "おつり",
"unspent_coins_details_title": "未使用コインの詳細",
"unspent_coins_title": "未使用コイン",
@@ -1485,6 +1493,7 @@
"wallet_group_empty_state_text_one": "互換性のあるウォレットグループがないようです。\n\nタップ",
"wallet_group_empty_state_text_two": "新しく作成するには、以下をタップしてください。",
"wallet_has_passphrase": "このウォレットにはパスフレーズが設定されています",
+ "wallet_holds_unshielded_zec": "このウォレットには以下の${unshielded} ZEC が保有されています",
"wallet_is_syncing": "ウォレットを同期しています",
"wallet_keys": "ウォレットの回復",
"wallet_list_create_new_wallet": "新しいウォレットを作成",
@@ -1547,6 +1556,7 @@
"what_is_payjoin": "Payjoinとは何ですか?",
"what_is_silent_payments": "サイレントペイメントとは何ですか?",
"whats_new": "新機能",
+ "why_is_shielding_needed": "シールドが必要な理由",
"widgets_address": "アドレス",
"widgets_or": "または",
"widgets_restore_from_blockheight": "ブロック高から復元",
### res/values/strings_ko.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "지원팀을 포함해 다른 누구와도 공유하지 마십시오.\n\n자금이 도난당할 수 있으며, 실제로 도난당할 수 있습니다!",
"do_not_show_anymore": "다시 표시하지 않기",
"do_not_show_me": "다시 보지 않기",
+ "do_you_want_to_proceed": "계속하시겠습니까?",
"domain_looks_up": "도메인 조회",
"donation": "기부",
"donation_link_details": "기부 링크 상세 정보",
@@ -1164,6 +1165,10 @@
"share_this_node": "이 노드 공유",
"shared_seed_wallet_groups": "공유 시드 지갑 그룹",
"shared_seed_wallets": "공유 시드 지갑",
+ "shield_device_funds": "기기 자금 실드",
+ "shield_funds": "자금 실드",
+ "shield_them_to_use_device": "이 기기를 사용하려면 자금을 실드하세요",
+ "shielded_only_sends_desc": "Cake Wallet은 개인정보 보호를 위해 실드된 Zcash 전송만 허용합니다. 이 하드웨어 기기에서 자금을 보내려면 먼저 자금을 실드해야 합니다.",
"shielding": "오토실드",
"show": "보기",
"show_address_book_popup": "주소록 팝업 표시",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "제한 없는 백그라운드 서비스",
"unrestricted_background_service_notice": "백그라운드 동기화를 활성화하려면 제한 없는 백그라운드 서비스를 활성화해야 합니다.",
"unselect_all": "모두 선택 해제",
+ "unshielded": "실드되지 않은",
+ "unshielded_funds_detected": "실드되지 않은 자금이 감지되었습니다",
+ "unshielded_funds_transparent_desc": "실드되지 않은 자금은 투명하게 공개되어 개인정보가 노출될 수 있습니다",
"unspent_change": "거스름돈",
"unspent_coins_details_title": "미사용 코인 상세 정보",
"unspent_coins_title": "미사용 코인",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "호환되는 지갑 그룹이 없는 것 같습니다!\n\n탭하세요",
"wallet_group_empty_state_text_two": "아래에서 새로 만드세요.",
"wallet_has_passphrase": "이 지갑에는 패스프레이즈가 있습니다",
+ "wallet_holds_unshielded_zec": "이 지갑에는 다음 금액의 ${unshielded} ZEC가 있습니다",
"wallet_is_syncing": "지갑이 동기화 중입니다",
"wallet_keys": "지갑 복구",
"wallet_list_create_new_wallet": "새 지갑 만들기",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Payjoin이란?",
"what_is_silent_payments": "Silent Payments란 무엇인가요?",
"whats_new": "새로운 기능",
+ "why_is_shielding_needed": "실드가 필요한 이유는 무엇인가요?",
"widgets_address": "주소",
"widgets_or": "또는",
"widgets_restore_from_blockheight": "블록 높이에서 복원",
### res/values/strings_my.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "ပံ့ပိုးကူညီမှုအပါအဝင် မည်သူနှင့်မျှ ဤအရာများကို မမျှဝေပါနှင့်။\n\nသင့်ရန်ပုံငွေများကို ခိုးယူခံရနိုင်ပြီး ခိုးယူခံရမည်ပါ!",
"do_not_show_anymore": "ဒါကို နောက်ထပ် မပြပါနဲ့",
"do_not_show_me": "ဒီကို နောက်တစ်ခါ မပြပါနဲ့",
+ "do_you_want_to_proceed": "ရှေ့ဆက်လိုပါသလား။",
"domain_looks_up": "ဒိုမိန်းရှာဖွေမှုများ",
"donation": "လှူဒါန်းမှု",
"donation_link_details": "လှူဒါန်းရန် လင့်ခ် အသေးစိတ်",
@@ -1164,6 +1165,10 @@
"share_this_node": "ဤ node ကို မျှဝေပါ",
"shared_seed_wallet_groups": "မျှဝေထားသော Seed ပိုက်ဆံအိတ်အုပ်စုများ",
"shared_seed_wallets": "မျှဝေထားသော Seed Wallet များ",
+ "shield_device_funds": "စက်ပစ္စည်းရှိ ရန်ပုံငွေများကို ကာကွယ်ရန်",
+ "shield_funds": "ရန်ပုံငွေများကို ကာကွယ်ရန်",
+ "shield_them_to_use_device": "ဤစက်ကို အသုံးပြုရန် ၎င်းတို့ကို ကာကွယ်ပါ",
+ "shielded_only_sends_desc": "သင်၏ ကိုယ်ရေးကိုယ်တာကို ကာကွယ်ရန် Cake Wallet သည် ကာကွယ်ထားသော Zcash ပေးပို့မှုများကိုသာ ခွင့်ပြုသည်။ ဤ hardware စက်မှ ရန်ပုံငွေများ ပေးပို့ရန် ၎င်းတို့ကို ဦးစွာ ကာကွယ်ရန် လိုအပ်ပါမည်။",
"shielding": "Autoshield",
"show": "ပြပါ",
"show_address_book_popup": "လိပ်စာစာအုပ် ပေါ့ပ်အပ်ကို ပြပါ",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "ကန့်သတ်ချက်မရှိသော နောက်ခံဝန်ဆောင်မှု",
"unrestricted_background_service_notice": "နောက်ခံထပ်တူပြုခြင်းကို Enable လုပ်ရန် ကန့်သတ်မထားသော နောက်ခံဝန်ဆောင်မှုကို ဖွင့်ရန် လိုအပ်သည်",
"unselect_all": "အားလုံးကို ရွေးချယ်မှုဖြုတ်ပါ",
+ "unshielded": "မကာကွယ်ရသေးသော",
+ "unshielded_funds_detected": "မကာကွယ်ရသေးသော ရန်ပုံငွေများကို တွေ့ရှိသည်",
+ "unshielded_funds_transparent_desc": "မကာကွယ်ရသေးသော ရန်ပုံငွေများသည် ပွင့်လင်းမြင်သာသဖြင့် သင်၏ ကိုယ်ရေးကိုယ်တာကို ထိခိုက်စေနိုင်သည်",
"unspent_change": "အပြန်ငွေ",
"unspent_coins_details_title": "မသုံးရသေးသော ကွိုင်များ၏ အသေးစိတ်",
"unspent_coins_title": "မသုံးရသေးသော ကွိုင်များ",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "သင့်တွင် ကိုက်ညီသော wallet group မရှိသေးပါ!\n\nTap",
"wallet_group_empty_state_text_two": "အသစ်တစ်ခု ဖန်တီးရန် အောက်တွင်ရှိသောကို နှိပ်ပါ။",
"wallet_has_passphrase": "ဒီ wallet မှာ passphrase ရှိပါတယ်",
+ "wallet_holds_unshielded_zec": "ဤပိုက်ဆံအိတ်တွင် အောက်ပါပမာဏ ${unshielded} ZEC ရှိသည်",
"wallet_is_syncing": "ဝေါလက်ကို စင့်ခ်လုပ်နေသည်",
"wallet_keys": "ပိုက်ဆံအိတ်ပြန်လည်ရယူခြင်း။",
"wallet_list_create_new_wallet": "Wallet အသစ် ဖန်တီးပါ",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Payjoin ဆိုတာ ဘာလဲ?",
"what_is_silent_payments": "Silent Payments ဆိုတာဘာလဲ?",
"whats_new": "ဘာအသစ်တွေရှိလဲ",
+ "why_is_shielding_needed": "ကာကွယ်ခြင်း အဘယ်ကြောင့် လိုအပ်သနည်း။",
"widgets_address": "လိပ်စာ",
"widgets_or": "သို့မဟုတ်",
"widgets_restore_from_blockheight": "ဘလော့ခ်အမြင့်မှ ပြန်လည်ရယူပါ",
### res/values/strings_nl.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Deel deze met niemand anders, ook niet met support.\n\nJe geld kan en zal worden gestolen!",
"do_not_show_anymore": "Niet meer weergeven",
"do_not_show_me": "Laat me dit niet opnieuw zien",
+ "do_you_want_to_proceed": "Wilt u doorgaan?",
"domain_looks_up": "Domein opzoeken",
"donation": "Donatie",
"donation_link_details": "Details van de donatielink",
@@ -1164,6 +1165,10 @@
"share_this_node": "Deel deze node",
"shared_seed_wallet_groups": "Gedeelde seed-walletgroepen",
"shared_seed_wallets": "Gedeelde seed-wallets",
+ "shield_device_funds": "Apparaattegoed afschermen",
+ "shield_funds": "Tegoed afschermen",
+ "shield_them_to_use_device": "Scherm het af om dit apparaat te gebruiken",
+ "shielded_only_sends_desc": "Cake Wallet staat alleen afgeschermde Zcash-verzendingen toe om uw privacy te beschermen. Om tegoed vanaf dit hardwareapparaat te verzenden, moet u het eerst afschermen.",
"shielding": "Autoschild",
"show": "Tonen",
"show_address_book_popup": "Toon adresboek pop-up",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "Onbeperkte achtergrondservice",
"unrestricted_background_service_notice": "Om achtergrondsynchronisatie in te schakelen, moet je onbeperkte achtergrondservice inschakelen",
"unselect_all": "Alles deselecteren",
+ "unshielded": "niet-afgeschermde",
+ "unshielded_funds_detected": "Niet-afgeschermd tegoed gedetecteerd",
+ "unshielded_funds_transparent_desc": "Niet-afgeschermd tegoed is transparant, wat uw privacy in gevaar kan brengen",
"unspent_change": "Wisselgeld",
"unspent_coins_details_title": "Details van niet-uitgegeven saldo",
"unspent_coins_title": "Niet-uitgegeven saldo",
@@ -1485,6 +1493,7 @@
"wallet_group_empty_state_text_one": "Het lijkt erop dat je geen compatibele walletgroepen hebt!\n\nTIK",
"wallet_group_empty_state_text_two": "hieronder om een nieuwe te maken.",
"wallet_has_passphrase": "Deze wallet heeft een wachtwoordzin",
+ "wallet_holds_unshielded_zec": "Deze wallet bevat het volgende bedrag aan ${unshielded} ZEC",
"wallet_is_syncing": "De wallet wordt gesynchroniseerd",
"wallet_keys": "Portemonneeherstel",
"wallet_list_create_new_wallet": "Maak een nieuwe wallet",
@@ -1547,6 +1556,7 @@
"what_is_payjoin": "Wat is Payjoin?",
"what_is_silent_payments": "Wat zijn Silent Payments?",
"whats_new": "Wat is er nieuw",
+ "why_is_shielding_needed": "Waarom is afschermen nodig?",
"widgets_address": "Adres",
"widgets_or": "of",
"widgets_restore_from_blockheight": "Herstel vanaf blokhoogte",
### res/values/strings_pl.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Nie udostępniaj ich nikomu innemu, w tym zespołowi wsparcia.\n\nTwoje środki mogą i zostaną skradzione!",
"do_not_show_anymore": "Nie pokazuj tego ponownie",
"do_not_show_me": "Nie pokazuj tego ponownie",
+ "do_you_want_to_proceed": "Czy chcesz kontynuować?",
"domain_looks_up": "Wyszukiwanie domen",
"donation": "Darowizna",
"donation_link_details": "Szczegóły linku do darowizny",
@@ -1164,6 +1165,10 @@
"share_this_node": "Udostępnij ten węzeł",
"shared_seed_wallet_groups": "Grupy portfeli ze współdzielonym seedem",
"shared_seed_wallets": "Portfele ze współdzieloną frazą seed",
+ "shield_device_funds": "Osłoń środki urządzenia",
+ "shield_funds": "Osłoń środki",
+ "shield_them_to_use_device": "Osłoń je, aby korzystać z tego urządzenia",
+ "shielded_only_sends_desc": "Cake Wallet zezwala wyłącznie na osłonięte transakcje Zcash, aby chronić Twoją prywatność. Aby wysłać środki z tego urządzenia sprzętowego, musisz je najpierw osłonić.",
"shielding": "Automatyczna osłona",
"show": "Pokaż",
"show_address_book_popup": "Pokaż wyskakujące okno książki adresowej",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "Nieograniczona usługa w tle",
"unrestricted_background_service_notice": "Aby włączyć synchronizację w tle, musisz włączyć nieograniczone działanie usługi w tle",
"unselect_all": "Odznacz wszystko",
+ "unshielded": "nieosłoniętych",
+ "unshielded_funds_detected": "Wykryto nieosłonięte środki",
+ "unshielded_funds_transparent_desc": "Nieosłonięte środki są przejrzyste, co może naruszać Twoją prywatność",
"unspent_change": "Reszta",
"unspent_coins_details_title": "Szczegóły niewydanych monet",
"unspent_coins_title": "Niewydane monety",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "Wygląda na to, że nie masz żadnych kompatybilnych grup portfeli!\n\nDotknij",
"wallet_group_empty_state_text_two": "poniżej, aby utworzyć nowy.",
"wallet_has_passphrase": "Ten portfel ma frazę hasła",
+ "wallet_holds_unshielded_zec": "Ten portfel przechowuje następującą ilość ${unshielded} ZEC",
"wallet_is_syncing": "Portfel jest synchronizowany",
"wallet_keys": "Odzyskiwanie portfela",
"wallet_list_create_new_wallet": "Utwórz nowy portfel",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Czym jest Payjoin?",
"what_is_silent_payments": "Czym są Silent Payments?",
"whats_new": "Co nowego",
+ "why_is_shielding_needed": "Dlaczego osłonięcie jest potrzebne?",
"widgets_address": "Adres",
"widgets_or": "lub",
"widgets_restore_from_blockheight": "Przywróć od wysokości bloku",
### res/values/strings_pt.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Não compartilhe isso com mais ninguém, incluindo o suporte.\n\nSeus fundos podem e serão roubados!",
"do_not_show_anymore": "Não mostrar novamente",
"do_not_show_me": "Não me mostre isso novamente",
+ "do_you_want_to_proceed": "Você quer prosseguir?",
"domain_looks_up": "Consultas de domínio",
"donation": "Doação",
"donation_link_details": "Detalhes do link de doação",
@@ -1166,6 +1167,10 @@
"share_this_node": "Partilhar este nó",
"shared_seed_wallet_groups": "Grupos de carteiras com seed compartilhada",
"shared_seed_wallets": "Carteiras com frase-semente compartilhada",
+ "shield_device_funds": "Blindar fundos do dispositivo",
+ "shield_funds": "Blindar fundos",
+ "shield_them_to_use_device": "Blinde-os para usar este dispositivo",
+ "shielded_only_sends_desc": "A Cake Wallet permite apenas envios de Zcash blindados para proteger sua privacidade. Para enviar fundos deste dispositivo de hardware, você precisará blindá-los.",
"shielding": "Escudo automático",
"show": "Mostrar",
"show_address_book_popup": "Mostrar pop-up do Livro de Endereços",
@@ -1427,6 +1432,9 @@
"unrestricted_background_service": "Serviço em segundo plano irrestrito",
"unrestricted_background_service_notice": "Para ativar a sincronização em segundo plano, você precisa ativar o serviço em segundo plano irrestrito",
"unselect_all": "Desmarcar tudo",
+ "unshielded": "não blindados",
+ "unshielded_funds_detected": "Fundos não blindados detectados",
+ "unshielded_funds_transparent_desc": "Fundos não blindados são transparentes, podendo comprometer sua privacidade",
"unspent_change": "Troco",
"unspent_coins_details_title": "Detalhes das moedas não gastas",
"unspent_coins_title": "Moedas não gastas",
@@ -1487,6 +1495,7 @@
"wallet_group_empty_state_text_one": "Parece que você não tem nenhum grupo de carteiras compatível!\n\nToque",
"wallet_group_empty_state_text_two": "abaixo para criar uma nova.",
"wallet_has_passphrase": "Esta carteira tem uma frase secreta",
+ "wallet_holds_unshielded_zec": "Esta carteira contém o seguinte valor em ZEC ${unshielded}",
"wallet_is_syncing": "A carteira está sincronizando",
"wallet_keys": "Recuperação de carteira",
"wallet_list_create_new_wallet": "Criar Nova Carteira",
@@ -1549,6 +1558,7 @@
"what_is_payjoin": "O que é Payjoin?",
"what_is_silent_payments": "O que são Silent Payments?",
"whats_new": "O que há de novo",
+ "why_is_shielding_needed": "Por que a blindagem é necessária?",
"widgets_address": "Endereço",
"widgets_or": "ou",
"widgets_restore_from_blockheight": "Restaurar a partir da altura do bloco",
### res/values/strings_pt_BR.arb
@@ -1579,5 +1579,15 @@
"zcash_network_upgrade": "Atualização da rede Zcash",
"zcash_network_upgrade_desc_1": "Zcash passou por uma atualização de rede chamada Ironwood que requer migração de fundos antes que possam ser gastos. Esta migração é automática, preserva a privacidade e começa assim que você abre sua carteira Zcash.",
"zcash_network_upgrade_desc_2": "Quando a migração terminar, o seu Saldo Disponível voltará ao normal e você poderá continuar a enviar e receber Zcash normalmente.",
- "zcash_network_upgrade_desc_3": "Aguarde a sincronização da sua carteira Zcash e deixe o aplicativo aberto até a migração terminar, o que pode levar alguns minutos dependendo do saldo."
+ "zcash_network_upgrade_desc_3": "Aguarde a sincronização da sua carteira Zcash e deixe o aplicativo aberto até a migração terminar, o que pode levar alguns minutos dependendo do saldo.",
+ "shield_device_funds": "Blindar fundos do dispositivo",
+ "wallet_holds_unshielded_zec": "Esta carteira contém o seguinte valor em ZEC ${unshielded}",
+ "unshielded": "não blindados",
+ "why_is_shielding_needed": "Por que a blindagem é necessária?",
+ "unshielded_funds_transparent_desc": "Fundos não blindados são transparentes, podendo comprometer sua privacidade",
+ "shielded_only_sends_desc": "A Cake Wallet permite apenas envios de Zcash blindados para proteger sua privacidade. Para enviar fundos deste dispositivo de hardware, você precisará blindá-los.",
+ "do_you_want_to_proceed": "Você quer prosseguir?",
+ "shield_funds": "Blindar fundos",
+ "unshielded_funds_detected": "Fundos não blindados detectados",
+ "shield_them_to_use_device": "Blinde-os para usar este dispositivo"
}
\ No newline at end of file
### res/values/strings_ru.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Не сообщайте их никому, включая службу поддержки.\n\nВаши средства могут и будут украдены!",
"do_not_show_anymore": "Больше не показывать",
"do_not_show_me": "Больше не показывать",
+ "do_you_want_to_proceed": "Хотите продолжить?",
"domain_looks_up": "Поиск доменов",
"donation": "Пожертвование",
"donation_link_details": "Детали ссылки для пожертвований",
@@ -1165,6 +1166,10 @@
"share_this_node": "Поделиться этим узлом",
"shared_seed_wallet_groups": "Группы кошельков с общим сидом",
"shared_seed_wallets": "Кошельки с общим сидом",
+ "shield_device_funds": "Экранирование средств устройства",
+ "shield_funds": "Экранировать средства",
+ "shield_them_to_use_device": "Экранируйте их, чтобы использовать это устройство",
+ "shielded_only_sends_desc": "Cake Wallet разрешает отправку Zcash только с экранированных средств, чтобы защитить вашу конфиденциальность. Чтобы отправить средства с этого аппаратного устройства, их нужно сначала экранировать.",
"shielding": "Автощит",
"show": "Показать",
"show_address_book_popup": "Показать всплывающее окно адресной книги",
@@ -1426,6 +1431,9 @@
"unrestricted_background_service": "Неограниченная фоновая служба",
"unrestricted_background_service_notice": "Чтобы включить фоновую синхронизацию, необходимо разрешить неограниченную работу фоновой службы",
"unselect_all": "Снять выделение со всех",
+ "unshielded": "неэкранированных",
+ "unshielded_funds_detected": "Обнаружены неэкранированные средства",
+ "unshielded_funds_transparent_desc": "Неэкранированные средства прозрачны, что может поставить под угрозу вашу конфиденциальность",
"unspent_change": "Сдача",
"unspent_coins_details_title": "Сведения о неизрасходованных монетах",
"unspent_coins_title": "Непотраченные монеты",
@@ -1485,6 +1493,7 @@
"wallet_group_empty_state_text_one": "Похоже, у вас нет совместимых групп кошельков!\n\nНажмите",
"wallet_group_empty_state_text_two": "ниже, чтобы создать новый.",
"wallet_has_passphrase": "Этот кошелек имеет парольную фразу",
+ "wallet_holds_unshielded_zec": "В этом кошельке хранится следующая сумма ${unshielded} ZEC",
"wallet_is_syncing": "Кошелёк синхронизируется",
"wallet_keys": "Восстановление кошелька",
"wallet_list_create_new_wallet": "Создать новый кошелёк",
@@ -1547,6 +1556,7 @@
"what_is_payjoin": "Что такое Payjoin?",
"what_is_silent_payments": "Что такое Silent Payments?",
"whats_new": "Что нового",
+ "why_is_shielding_needed": "Зачем нужно экранирование?",
"widgets_address": "Адрес",
"widgets_or": "или",
"widgets_restore_from_blockheight": "Восстановить с высоты блока",
### res/values/strings_th.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "อย่าแชร์ข้อมูลเหล่านี้กับใครก็ตาม รวมถึงฝ่ายสนับสนุนด้วย\n\nเงินทุนของคุณอาจถูกขโมยได้!",
"do_not_show_anymore": "ไม่ต้องแสดงอีก",
"do_not_show_me": "ไม่ต้องแสดงอีก",
+ "do_you_want_to_proceed": "คุณต้องการดำเนินการต่อหรือไม่?",
"domain_looks_up": "การค้นหาโดเมน",
"donation": "การบริจาค",
"donation_link_details": "รายละเอียดลิงก์บริจาค",
@@ -1164,6 +1165,10 @@
"share_this_node": "แชร์โหนดนี้",
"shared_seed_wallet_groups": "กลุ่มกระเป๋าเงินที่ใช้ Seed ร่วมกัน",
"shared_seed_wallets": "กระเป๋าเงิน Seed ที่ใช้ร่วมกัน",
+ "shield_device_funds": "ป้องกันเงินในอุปกรณ์",
+ "shield_funds": "ป้องกันเงิน",
+ "shield_them_to_use_device": "ป้องกันเงินเพื่อใช้อุปกรณ์นี้",
+ "shielded_only_sends_desc": "Cake Wallet อนุญาตให้ส่ง Zcash ได้เฉพาะจากเงินที่ป้องกันแล้วเท่านั้น เพื่อปกป้องความเป็นส่วนตัวของคุณ หากต้องการส่งเงินจากอุปกรณ์ฮาร์ดแวร์นี้ คุณต้องป้องกันเงินก่อน",
"shielding": "ออโต้ชิลด์",
"show": "แสดง",
"show_address_book_popup": "แสดงป๊อปอัปสมุดที่อยู่",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "บริการเบื้องหลังแบบไม่จำกัด",
"unrestricted_background_service_notice": "เพื่อเปิดใช้งานการซิงค์พื้นหลัง คุณต้องเปิดใช้งานบริการพื้นหลังแบบไม่จำกัด",
"unselect_all": "ยกเลิกการเลือกทั้งหมด",
+ "unshielded": "ที่ไม่ได้ป้องกัน",
+ "unshielded_funds_detected": "ตรวจพบเงินที่ไม่ได้ป้องกัน",
+ "unshielded_funds_transparent_desc": "เงินที่ไม่ได้ป้องกันจะโปร่งใส ซึ่งอาจกระทบต่อความเป็นส่วนตัวของคุณ",
"unspent_change": "เงินทอน",
"unspent_coins_details_title": "รายละเอียดเหรียญที่ยังไม่ได้ใช้",
"unspent_coins_title": "เหรียญที่ยังไม่ได้ใช้",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "ดูเหมือนว่าคุณจะไม่มีกลุ่มวอลเล็ตที่เข้ากันได้!\n\nแตะ",
"wallet_group_empty_state_text_two": "ด้านล่างเพื่อสร้างอันใหม่",
"wallet_has_passphrase": "กระเป๋าเงินนี้มีวลีรหัสผ่าน",
+ "wallet_holds_unshielded_zec": "กระเป๋าเงินนี้มี ZEC ${unshielded} ตามจำนวนต่อไปนี้",
"wallet_is_syncing": "กระเป๋าเงินกำลังซิงค์ข้อมูล",
"wallet_keys": "การกู้คืนกระเป๋าเงิน",
"wallet_list_create_new_wallet": "สร้างกระเป๋าเงินใหม่",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Payjoin คืออะไร?",
"what_is_silent_payments": "Silent Payments คืออะไร?",
"whats_new": "มีอะไรใหม่",
+ "why_is_shielding_needed": "ทำไมต้องป้องกันเงิน?",
"widgets_address": "ที่อยู่",
"widgets_or": "หรือ",
"widgets_restore_from_blockheight": "กู้คืนจากความสูงบล็อก",
### res/values/strings_tl.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Huwag itong ibahagi sa kahit kanino, kabilang ang support.\n\nMaaari at tiyak na mananakaw ang iyong mga pondo!",
"do_not_show_anymore": "Huwag na itong ipakita muli",
"do_not_show_me": "Huwag itong ipakita muli",
+ "do_you_want_to_proceed": "Gusto mo bang magpatuloy?",
"domain_looks_up": "Mga pag-lookup ng domain",
"donation": "Donasyon",
"donation_link_details": "Mga detalye ng link ng donasyon",
@@ -1164,6 +1165,10 @@
"share_this_node": "Ibahagi ang node na ito",
"shared_seed_wallet_groups": "Mga Grupo ng Wallet na may Ibinahaging Seed",
"shared_seed_wallets": "Mga Wallet na may Shared Seed",
+ "shield_device_funds": "I-shield ang Pondo ng Device",
+ "shield_funds": "I-shield ang Pondo",
+ "shield_them_to_use_device": "I-shield ang mga ito para magamit ang device na ito",
+ "shielded_only_sends_desc": "Pinapayagan lamang ng Cake Wallet ang mga naka-shield na pagpapadala ng Zcash upang protektahan ang iyong privacy. Upang magpadala ng pondo mula sa hardware device na ito, kailangan mo muna itong i-shield.",
"shielding": "Autoshield",
"show": "Ipakita",
"show_address_book_popup": "Ipakita ang pop-up ng Address Book",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "Walang restriksyon na serbisyo sa background",
"unrestricted_background_service_notice": "Upang paganahin ang pag-sync sa background, kailangan mong paganahin ang hindi pinaghihigpitang serbisyo sa background",
"unselect_all": "Alisin sa pagkakapili ang lahat",
+ "unshielded": "hindi naka-shield na",
+ "unshielded_funds_detected": "May Natukoy na Hindi Naka-shield na Pondo",
+ "unshielded_funds_transparent_desc": "Ang mga hindi naka-shield na pondo ay transparent, na maaaring makompromiso ang iyong privacy",
"unspent_change": "Sukli",
"unspent_coins_details_title": "Mga detalye ng mga hindi nagastos na coin",
"unspent_coins_title": "Mga hindi nagastos na coin",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "Mukhang wala kang anumang katugmang pangkat ng wallet!\n\nI-tap",
"wallet_group_empty_state_text_two": "sa ibaba para gumawa ng bago.",
"wallet_has_passphrase": "May passphrase ang wallet na ito",
+ "wallet_holds_unshielded_zec": "Ang wallet na ito ay may hawak ng sumusunod na halaga ng ${unshielded} ZEC",
"wallet_is_syncing": "Nagsi-sync ang wallet",
"wallet_keys": "Pagbawi ng Wallet",
"wallet_list_create_new_wallet": "Gumawa ng Bagong Wallet",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Ano ang Payjoin?",
"what_is_silent_payments": "Ano ang Silent Payments?",
"whats_new": "Ano ang bago",
+ "why_is_shielding_needed": "Bakit kailangan ang pag-shield?",
"widgets_address": "Address",
"widgets_or": "o",
"widgets_restore_from_blockheight": "Ibalik mula sa blockheight",
### res/values/strings_tr.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Bunları destek ekibi dahil kimseyle paylaşma.\n\nVarlıkların çalınabilir ve çalınacaktır!",
"do_not_show_anymore": "Bunu bir daha gösterme",
"do_not_show_me": "Bunu bir daha gösterme",
+ "do_you_want_to_proceed": "Devam etmek istiyor musunuz?",
"domain_looks_up": "Alan adı sorgulamaları",
"donation": "Bağış",
"donation_link_details": "Bağış bağlantısı ayrıntıları",
@@ -1164,6 +1165,10 @@
"share_this_node": "Bu düğümü paylaş",
"shared_seed_wallet_groups": "Paylaşılan Seed Cüzdan Grupları",
"shared_seed_wallets": "Paylaşılan Seed Cüzdanları",
+ "shield_device_funds": "Cihaz Fonlarını Koru",
+ "shield_funds": "Fonları Koru",
+ "shield_them_to_use_device": "Bu cihazı kullanmak için fonları koruyun",
+ "shielded_only_sends_desc": "Cake Wallet, gizliliğinizi korumak için yalnızca korumalı Zcash gönderimlerine izin verir. Bu donanım cihazından fon göndermek için önce fonları korumanız gerekir.",
"shielding": "Otomatik Kalkan",
"show": "Göster",
"show_address_book_popup": "Adres Defteri açılır penceresini göster",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "Kısıtlamasız arka plan hizmeti",
"unrestricted_background_service_notice": "Arka plan senkronizasyonunu etkinleştirmek için kısıtlanmamış arka plan hizmetini etkinleştirmeniz gerekir",
"unselect_all": "Tümünün seçimini kaldır",
+ "unshielded": "korumasız",
+ "unshielded_funds_detected": "Korumasız Fonlar Tespit Edildi",
+ "unshielded_funds_transparent_desc": "Korumasız fonlar şeffaftır ve gizliliğinizi tehlikeye atabilir",
"unspent_change": "Para üstü",
"unspent_coins_details_title": "Harcanmamış coin detayları",
"unspent_coins_title": "Harcanmamış coinler",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "Görünüşe göre uyumlu bir cüzdan grubunuz yok!\n\nDokunun",
"wallet_group_empty_state_text_two": "Yeni bir tane oluşturmak için aşağıya dokunun.",
"wallet_has_passphrase": "Bu cüzdanın bir parola ifadesi var",
+ "wallet_holds_unshielded_zec": "Bu cüzdan aşağıdaki miktarda ${unshielded} ZEC içeriyor",
"wallet_is_syncing": "Cüzdan senkronize ediliyor",
"wallet_keys": "Cüzdan Kurtarma",
"wallet_list_create_new_wallet": "Yeni Cüzdan Oluştur",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "Payjoin nedir?",
"what_is_silent_payments": "Sessiz Ödemeler Nedir?",
"whats_new": "Yenilikler",
+ "why_is_shielding_needed": "Koruma neden gerekli?",
"widgets_address": "Adres",
"widgets_or": "veya",
"widgets_restore_from_blockheight": "Blok yüksekliğinden geri yükle",
### res/values/strings_uk.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Нікому не передавайте ці дані, зокрема службі підтримки.\n\nВаші кошти можуть і будуть викрадені!",
"do_not_show_anymore": "Більше не показувати",
"do_not_show_me": "Більше не показувати це",
+ "do_you_want_to_proceed": "Ви бажаєте продовжити?",
"domain_looks_up": "Пошук доменів",
"donation": "Пожертва",
"donation_link_details": "Деталі посилання для донатів",
@@ -1165,6 +1166,10 @@
"share_this_node": "Поділитися цим вузлом",
"shared_seed_wallet_groups": "Групи гаманців зі спільною seed-фразою",
"shared_seed_wallets": "Гаманці зі спільною сід-фразою",
+ "shield_device_funds": "Екранування коштів пристрою",
+ "shield_funds": "Екранувати кошти",
+ "shield_them_to_use_device": "Екрануйте їх, щоб використовувати цей пристрій",
+ "shielded_only_sends_desc": "Cake Wallet дозволяє надсилати Zcash лише з екранованих коштів, щоб захистити вашу конфіденційність. Щоб надіслати кошти з цього апаратного пристрою, їх потрібно спочатку екранувати.",
"shielding": "Автощит",
"show": "Показати",
"show_address_book_popup": "Показати спливаюче вікно адресної книги",
@@ -1426,6 +1431,9 @@
"unrestricted_background_service": "Необмежений фоновий сервіс",
"unrestricted_background_service_notice": "Щоб увімкнути фонову синхронізацію, потрібно дозволити необмежену фонову роботу сервісу",
"unselect_all": "Зняти вибір з усіх",
+ "unshielded": "неекранованих",
+ "unshielded_funds_detected": "Виявлено неекрановані кошти",
+ "unshielded_funds_transparent_desc": "Неекрановані кошти прозорі, що може поставити під загрозу вашу конфіденційність",
"unspent_change": "Решта",
"unspent_coins_details_title": "Деталі невитрачених монет",
"unspent_coins_title": "Невитрачені монети",
@@ -1485,6 +1493,7 @@
"wallet_group_empty_state_text_one": "Схоже, у вас немає жодних сумісних груп гаманців!\n\nТоркніться",
"wallet_group_empty_state_text_two": "нижче, щоб створити новий.",
"wallet_has_passphrase": "Цей гаманець має парольну фразу",
+ "wallet_holds_unshielded_zec": "У цьому гаманці зберігається така сума ${unshielded} ZEC",
"wallet_is_syncing": "Гаманець синхронізується",
"wallet_keys": "Відновлення гаманця",
"wallet_list_create_new_wallet": "Створити новий гаманець",
@@ -1547,6 +1556,7 @@
"what_is_payjoin": "Що таке Payjoin?",
"what_is_silent_payments": "Що таке Silent Payments?",
"whats_new": "Що нового",
+ "why_is_shielding_needed": "Навіщо потрібне екранування?",
"widgets_address": "Адреса",
"widgets_or": "або",
"widgets_restore_from_blockheight": "Відновити з висоти блоку",
### res/values/strings_ur.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "سپورٹ سمیت کسی اور کے ساتھ بھی ان کا اشتراک نہ کریں۔\n\nآپ کے فنڈز چوری ہو سکتے ہیں اور ضرور ہو جائیں گے!",
"do_not_show_anymore": "یہ دوبارہ نہ دکھائیں",
"do_not_show_me": "یہ مجھے دوبارہ نہ دکھائیں",
+ "do_you_want_to_proceed": "کیا آپ آگے بڑھنا چاہتے ہیں؟",
"domain_looks_up": "ڈومین تلاش",
"donation": "عطیہ",
"donation_link_details": "ڈونیشن لنک کی تفصیلات",
@@ -1166,6 +1167,10 @@
"share_this_node": "یہ نوڈ شیئر کریں",
"shared_seed_wallet_groups": "مشترکہ سیڈ والیٹ گروپس",
"shared_seed_wallets": "مشترکہ سیڈ والیٹس",
+ "shield_device_funds": "ڈیوائس فنڈز کو شیلڈ کریں",
+ "shield_funds": "فنڈز شیلڈ کریں",
+ "shield_them_to_use_device": "اس ڈیوائس کو استعمال کرنے کے لیے انہیں شیلڈ کریں",
+ "shielded_only_sends_desc": "آپ کی پرائیویسی کے تحفظ کے لیے Cake Wallet صرف شیلڈ شدہ Zcash بھیجنے کی اجازت دیتا ہے۔ اس ہارڈویئر ڈیوائس سے فنڈز بھیجنے کے لیے، آپ کو پہلے انہیں شیلڈ کرنا ہوگا۔",
"shielding": "آٹوشیلڈ",
"show": "دکھائیں",
"show_address_book_popup": "ایڈریس بک پاپ اَپ دکھائیں",
@@ -1427,6 +1432,9 @@
"unrestricted_background_service": "غیر محدود پس منظر سروس",
"unrestricted_background_service_notice": "پس منظر میں ہم وقت سازی کو فعال کرنے کے لیے آپ کو غیر محدود پس منظر سروس کو فعال کرنا ہوگا",
"unselect_all": "سب کا انتخاب ختم کریں",
+ "unshielded": "غیر شیلڈ شدہ",
+ "unshielded_funds_detected": "غیر شیلڈ شدہ فنڈز کا پتہ چلا",
+ "unshielded_funds_transparent_desc": "غیر شیلڈ شدہ فنڈز شفاف ہوتے ہیں، جس سے آپ کی پرائیویسی متاثر ہو سکتی ہے",
"unspent_change": "بقایا",
"unspent_coins_details_title": "غیر خرچ شدہ کوائنز کی تفصیلات",
"unspent_coins_title": "غیر خرچ شدہ سکے",
@@ -1486,6 +1494,7 @@
"wallet_group_empty_state_text_one": "ایسا لگتا ہے کہ آپ کے پاس کوئی مطابقت پذیر والیٹ گروپس نہیں ہیں!\n\nٹیپ کریں",
"wallet_group_empty_state_text_two": "نیا بنانے کے لیے نیچے۔",
"wallet_has_passphrase": "اس والیٹ میں پاسفریز ہے",
+ "wallet_holds_unshielded_zec": "اس والیٹ میں درج ذیل مقدار میں ${unshielded} ZEC موجود ہے",
"wallet_is_syncing": "والیٹ سنک ہو رہا ہے",
"wallet_keys": "والیٹ ریکوری",
"wallet_list_create_new_wallet": "نیا والیٹ بنائیں",
@@ -1548,6 +1557,7 @@
"what_is_payjoin": "Payjoin کیا ہے؟",
"what_is_silent_payments": "Silent Payments کیا ہیں؟",
"whats_new": "نیا کیا ہے؟",
+ "why_is_shielding_needed": "شیلڈنگ کیوں ضروری ہے؟",
"widgets_address": "ایڈریس",
"widgets_or": "یا",
"widgets_restore_from_blockheight": "بلاک ہائٹ سے بحال کریں",
### res/values/strings_vi.arb
@@ -401,6 +401,7 @@
"do_not_share_warning_text": "Không chia sẻ những thông tin này với bất kỳ ai, kể cả bộ phận hỗ trợ.\n\nTài sản của bạn có thể và sẽ bị đánh cắp!",
"do_not_show_anymore": "Không hiển thị lại nữa",
"do_not_show_me": "Không hiển thị lại",
+ "do_you_want_to_proceed": "Bạn có muốn tiếp tục không?",
"domain_looks_up": "Tra cứu tên miền",
"donation": "Quyên góp",
"donation_link_details": "Chi tiết liên kết quyên góp",
@@ -1165,6 +1166,10 @@
"share_this_node": "Chia sẻ node này",
"shared_seed_wallet_groups": "Nhóm ví seed được chia sẻ",
"shared_seed_wallets": "Ví seed được chia sẻ",
+ "shield_device_funds": "Che chắn tiền trên thiết bị",
+ "shield_funds": "Che chắn tiền",
+ "shield_them_to_use_device": "Hãy che chắn để sử dụng thiết bị này",
+ "shielded_only_sends_desc": "Cake Wallet chỉ cho phép gửi Zcash đã được che chắn để bảo vệ quyền riêng tư của bạn. Để gửi tiền từ thiết bị phần cứng này, bạn cần che chắn chúng trước.",
"shielding": "Tự động bảo vệ",
"show": "Hiển thị",
"show_address_book_popup": "Hiển thị cửa sổ bật lên của Sổ địa chỉ",
@@ -1426,6 +1431,9 @@
"unrestricted_background_service": "Dịch vụ chạy nền không bị hạn chế",
"unrestricted_background_service_notice": "Để bật đồng bộ hóa nền, bạn cần bật dịch vụ nền không bị hạn chế",
"unselect_all": "Bỏ chọn tất cả",
+ "unshielded": "chưa được che chắn",
+ "unshielded_funds_detected": "Phát hiện tiền chưa được che chắn",
+ "unshielded_funds_transparent_desc": "Tiền chưa được che chắn là minh bạch, có thể ảnh hưởng đến quyền riêng tư của bạn",
"unspent_change": "Tiền thừa",
"unspent_coins_details_title": "Chi tiết coin chưa chi tiêu",
"unspent_coins_title": "Các coin chưa sử dụng",
@@ -1485,6 +1493,7 @@
"wallet_group_empty_state_text_one": "Có vẻ như bạn không có nhóm ví tương thích nào!\n\nChạm",
"wallet_group_empty_state_text_two": "bên dưới để tạo một cái mới.",
"wallet_has_passphrase": "Ví này có cụm mật khẩu",
+ "wallet_holds_unshielded_zec": "Ví này đang giữ số ZEC ${unshielded} sau đây",
"wallet_is_syncing": "Ví đang đồng bộ",
"wallet_keys": "Khôi phục ví",
"wallet_list_create_new_wallet": "Tạo Ví Mới",
@@ -1547,6 +1556,7 @@
"what_is_payjoin": "Payjoin là gì?",
"what_is_silent_payments": "Silent Payments là gì?",
"whats_new": "Có gì mới",
+ "why_is_shielding_needed": "Tại sao cần che chắn?",
"widgets_address": "Địa chỉ",
"widgets_or": "hoặc",
"widgets_restore_from_blockheight": "Khôi phục từ block height",
### res/values/strings_yo.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "Ẹ má ṣe pín àwọn wọ̀nyí fún ẹnikẹ́ni mìíràn, pẹ̀lú ẹgbẹ́ ìrànlọ́wọ́.\n\nWọ́n lè sì máa jí owó rẹ!",
"do_not_show_anymore": "Ma ṣe fi eyi han mọ",
"do_not_show_me": "Má ṣe fi èyí hàn mí mọ́",
+ "do_you_want_to_proceed": "Ṣe o fẹ́ tẹ̀síwájú?",
"domain_looks_up": "Ìwádìí domain",
"donation": "Àfikúnrẹ́rẹ́",
"donation_link_details": "Awọn alaye ìjápọ̀ ẹ̀bùn",
@@ -1165,6 +1166,10 @@
"share_this_node": "Pín nódù yìí",
"shared_seed_wallet_groups": "Awọn ẹgbẹ apamọwọ Irugbin Pín",
"shared_seed_wallets": "Àwọn Woleti Irúgbìn Pínpín",
+ "shield_device_funds": "Dáàbò bo Owó Ẹ̀rọ",
+ "shield_funds": "Dáàbò bo Owó",
+ "shield_them_to_use_device": "Dáàbò bò wọ́n láti lo ẹ̀rọ yìí",
+ "shielded_only_sends_desc": "Cake Wallet gba ìfiránṣẹ́ Zcash tí ó ní ààbò nìkan láàyè láti dáàbò bo àṣírí rẹ. Láti fi owó ránṣẹ́ láti inú ẹ̀rọ hardware yìí, ìwọ yóò nílò láti kọ́kọ́ dáàbò bò wọ́n.",
"shielding": "Ọkọ ayọkẹlẹ laifọwọyi",
"show": "Fi hàn",
"show_address_book_popup": "Ṣe afihan agbejade Iwe Adirẹsi",
@@ -1426,6 +1431,9 @@
"unrestricted_background_service": "Iṣẹ abẹ́lẹ̀ láìní ìdíwọ̀",
"unrestricted_background_service_notice": "Lati mu ìbámuṣiṣẹ́pọ̀ abẹ́lẹ̀ ṣiṣẹ́, o ní láti mu iṣẹ́ abẹ́lẹ̀ tí kò ní ìdíwọ̀ ṣiṣẹ́",
"unselect_all": "Yọ yíyan gbogbo rẹ̀ kúrò",
+ "unshielded": "tí kò ní ààbò",
+ "unshielded_funds_detected": "A Rí Owó Tí Kò Ní Ààbò",
+ "unshielded_funds_transparent_desc": "Owó tí kò ní ààbò hàn gbangba, èyí tí ó lè ba àṣírí rẹ jẹ́",
"unspent_change": "Iyokù",
"unspent_coins_details_title": "Àlàyé àwọn owó ẹyọ tí a kò tíì ná",
"unspent_coins_title": "Àwọn owó ẹyọ tí a kò tíì na",
@@ -1485,6 +1493,7 @@
"wallet_group_empty_state_text_one": "Ó dàbí pé o kò ní ẹgbẹ́ wálẹ́ẹ̀tì kankan tó bá mu!\n\nTẹ",
"wallet_group_empty_state_text_two": "ni isalẹ láti ṣẹ̀dá tuntun.",
"wallet_has_passphrase": "Apamọwọ yii ni gbolohun aṣínà",
+ "wallet_holds_unshielded_zec": "Àpamọ́wọ́ yìí ní iye ZEC ${unshielded} wọ̀nyí",
"wallet_is_syncing": "Apamọwọ naa ń ṣàgbékalẹ̀pọ̀",
"wallet_keys": "Imularada apamọwọ",
"wallet_list_create_new_wallet": "Ṣẹda Wallet Tuntun",
@@ -1547,6 +1556,7 @@
"what_is_payjoin": "Kí ni Payjoin?",
"what_is_silent_payments": "Kí ni àwọn Ìsanwó Ìpálọ́lọ́?",
"whats_new": "Kí ni tuntun",
+ "why_is_shielding_needed": "Kí nìdí tí ààbò fi ṣe pàtàkì?",
"widgets_address": "Àdírẹ́sì",
"widgets_or": "tàbí",
"widgets_restore_from_blockheight": "Dá padà láti gíga bulọọki",
### res/values/strings_zh.arb
@@ -400,6 +400,7 @@
"do_not_share_warning_text": "请勿与任何人分享这些信息,包括客服支持。\n\n您的资金可能会被盗,而且一定会被盗!",
"do_not_show_anymore": "不再显示",
"do_not_show_me": "不再显示此提示",
+ "do_you_want_to_proceed": "您想继续吗?",
"domain_looks_up": "域名查询",
"donation": "捐赠",
"donation_link_details": "捐赠链接详情",
@@ -1164,6 +1165,10 @@
"share_this_node": "分享此节点",
"shared_seed_wallet_groups": "共享助记词钱包组",
"shared_seed_wallets": "共享助记词钱包",
+ "shield_device_funds": "屏蔽设备资金",
+ "shield_funds": "屏蔽资金",
+ "shield_them_to_use_device": "屏蔽这些资金以使用此设备",
+ "shielded_only_sends_desc": "为保护您的隐私,Cake Wallet 仅允许从已屏蔽资金发送 Zcash。要从此硬件设备发送资金,您需要先将其屏蔽。",
"shielding": "自动屏蔽",
"show": "显示",
"show_address_book_popup": "显示地址簿弹窗",
@@ -1425,6 +1430,9 @@
"unrestricted_background_service": "不受限制的后台服务",
"unrestricted_background_service_notice": "为了启用后台同步,您需要启用不受限制的后台服务",
"unselect_all": "取消全选",
+ "unshielded": "未屏蔽",
+ "unshielded_funds_detected": "检测到未屏蔽资金",
+ "unshielded_funds_transparent_desc": "未屏蔽的资金是透明的,可能会危及您的隐私",
"unspent_change": "找零",
"unspent_coins_details_title": "未花费币详情",
"unspent_coins_title": "未花费币",
@@ -1484,6 +1492,7 @@
"wallet_group_empty_state_text_one": "看起来您没有任何兼容的钱包组!\n\n轻触",
"wallet_group_empty_state_text_two": "点击下方按钮创建一个新的。",
"wallet_has_passphrase": "此钱包设有密码短语",
+ "wallet_holds_unshielded_zec": "此钱包持有以下数量的${unshielded} ZEC",
"wallet_is_syncing": "钱包正在同步",
"wallet_keys": "钱包恢复",
"wallet_list_create_new_wallet": "创建新钱包",
@@ -1546,6 +1555,7 @@
"what_is_payjoin": "什么是 Payjoin?",
"what_is_silent_payments": "什么是静默支付?",
"whats_new": "更新内容",
+ "why_is_shielding_needed": "为什么需要屏蔽?",
"widgets_address": "地址",
"widgets_or": "或",
"widgets_restore_from_blockheight": "从区块高度恢复",
### tool/configure.dart
@@ -1758,10 +1758,15 @@ import 'package:cw_core/wallet_info.dart';
import 'package:cw_core/wallet_service.dart';
import 'package:cw_core/receive_page_option.dart';
import 'package:cw_core/wallet_addresses.dart';
+import 'package:cw_core/hardware/hardware_wallet_service.dart';
+import 'package:cw_core/pending_transaction.dart';
+import 'package:ledger_flutter_plus/ledger_flutter_plus.dart' as ledger;
""";
const zcashCWHeaders = """
import 'package:cw_zcash/cw_zcash.dart';
+import 'package:cw_zcash/src/hardware/zcash_hardware_wallet_service.dart';
+import 'package:cw_zcash/src/hardware/zcash_ledger_service.dart';
import 'package:cw_zcash/src/zcash_wallet_addresses.dart';
""";
@@ -1786,6 +1791,12 @@ abstract class Zcash {
int network = 0});
WalletCredentials createZcashRestoreWalletFromPrivateKey(
{required String name, required String privateKey, required String password, required int height});
+ WalletCredentials createZcashHardwareWalletCredentials({
+ required String name,
+ required HardwareWalletService hardwareWalletService,
+ required int? height,
+ int accountIndex = 0,
+ });
String getAddress(WalletBase wallet);
String getPrivateKey(WalletBase wallet);
String getPublicKey(WalletBase wallet);
@@ -1804,9 +1815,8 @@ abstract class Zcash {
required int feeRate,
});
- int formatterZcashParseAmount(String amount);
- double formatterZcashAmountToDouble({TransactionInfo? transaction, BigInt? amount});
- String formatterZcashAmountToString({required int amount});
+ Future<void> setHardwareWalletService(WalletBase wallet, HardwareWalletService service);
+ HardwareWalletService getLedgerHardwareWalletService(ledger.LedgerConnection connection);
List<WalletInfoAddressInfo> getAddressInfos(Object wallet);
@@ -1826,6 +1836,7 @@ abstract class Zcash {
Future<void> rescanInternalChange(WalletBase wallet);
bool ironwoodActive(WalletAddresses walletAddresses);
bool hasOrchardMigratableBalance(WalletBase wallet);
+ Future<PendingTransaction?> createShieldingTransaction(WalletBase wallet);
}
""";
Why this scored 24/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.