Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List LitecoinZ (LTZ) #1910

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions assets/src/main/java/bisq/asset/coins/LitecoinZ.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* This file is part of Bisq.
*
* Bisq is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bisq is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/

package bisq.asset.coins;

import bisq.asset.AddressValidationResult;
import bisq.asset.AddressValidator;
import bisq.asset.Coin;

public class LitecoinZ extends Coin {

public LitecoinZ() {
super("LitecoinZ", "LTZ", new LitecoinZAddressValidator());
}


public static class LitecoinZAddressValidator implements AddressValidator {

@Override
public AddressValidationResult validate(String address) {
// We only support L addresses (transparent transactions)
if (!address.startsWith("L"))
return AddressValidationResult.invalidAddress("", "validation.altcoin.ltz.zAddressesNotSupported");

return AddressValidationResult.validAddress();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ bisq.asset.coins.Kekcoin
bisq.asset.coins.Litecoin$Mainnet
bisq.asset.coins.Litecoin$Regtest
bisq.asset.coins.Litecoin$Testnet
bisq.asset.coins.LitecoinZ
bisq.asset.coins.Lobstex
bisq.asset.coins.Loki
bisq.asset.coins.Mask
Expand Down
43 changes: 43 additions & 0 deletions assets/src/test/java/bisq/asset/coins/LitecoinZTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* This file is part of Bisq.
*
* Bisq is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bisq is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/

package bisq.asset.coins;

import bisq.asset.AbstractAssetTest;

import org.junit.Test;

public class LitecoinZTest extends AbstractAssetTest {

public LitecoinZTest() {
super(new LitecoinZ());
}

@Test
public void testValidAddresses() {
assertValidAddress("L17opZaVcRK4h9MV4KhkCmzUBa56BxSRb8A");
assertValidAddress("L1EjNbAPVtg8jE9EyvbsA7epibZ9j8bdYmV");
}

@Test
public void testInvalidAddresses() {
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem");
assertInvalidAddress("38NwrYsD1HxQW5zfLT0QcUUXGMPvQgzTSn");
assertInvalidAddress("8tP9rh3SH6n9cSLmV22vnSNNw56LKGpLrB");
assertInvalidAddress("8Zbvjr");
}
}
1 change: 1 addition & 0 deletions core/src/main/java/bisq/core/locale/CurrencyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public static List<CryptoCurrency> getMainCryptoCurrencies() {
result.add(new CryptoCurrency("GRC", "Gridcoin"));
if (!baseCurrencyCode.equals("LTC"))
result.add(new CryptoCurrency("LTC", "Litecoin"));
result.add(new CryptoCurrency("LTZ", "LitecoinZ"));
result.add(new CryptoCurrency("XMR", "Monero"));
result.add(new CryptoCurrency("MT", "Mycelium Token", true));
result.add(new CryptoCurrency("NMC", "Namecoin"));
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/resources/i18n/displayStrings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,7 @@ If you cannot provide the above data or if you used an incompatible wallet it wo
dispute case. The Dragonglass sender is responsible to be able to verify the DRGL transfer to the \
arbitrator in case of a dispute. Use of PaymentID is not required.\n\n\
If you are unsure about any part of this process, visit Dragonglass on Discord (http://discord.drgl.info) for help.
account.altcoin.popup.LTZ.msg=When using {0} you can only use the transparent addresses (starting with L) not the z-addresses (private), because the arbitrator would not be able to verify the transaction with z-addresses.
account.altcoin.popup.ZEC.msg=When using {0} you can only use the transparent addresses (starting with t) not \
the z-addresses (private), because the arbitrator would not be able to verify the transaction with z-addresses.
account.altcoin.popup.XZC.msg=When using {0} you can only use the transparent (traceable) addresses not \
Expand Down Expand Up @@ -2409,6 +2410,7 @@ validation.nationalAccountId={0} must consist of {1} numbers.
validation.invalidInput=Invalid input: {0}
validation.accountNrFormat=Account number must be of format: {0}
validation.altcoin.wrongStructure=Address validation failed because it does not match the structure of a {0} address.
validation.altcoin.ltz.zAddressesNotSupported=LTZ address need to start with L. Addresses starting with z are not supported.
validation.altcoin.zAddressesNotSupported=ZEC address need to start with t. Addresses starting with z are not supported.
validation.altcoin.invalidAddress=Address is not a valid {0} address! {1}
validation.bic.invalidLength=Input length is neither 8 nor 11
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/resources/i18n/displayStrings_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ account.altcoin.popup.wallet.confirm=Ich verstehe und bestätige, dass ich weiß
account.altcoin.popup.xmr.msg=Wenn Sie XMR auf Bisq handeln wollen, stellen Sie bitte sicher, dass Sie die folgenden Bedingungen verstehen und erfüllen:\n\nUm XMR zu senden, brauchen Sie entweder die offizielle Monero-GUI-Brieftasche oder die vereinfachte Monero-Brieftasche mit aktiver stor-tx-info-Option (Standard in neuen Versionen).\nStellen Sie bitte sicher, dass Sie auf den Tx-Schlüssel zugreifen können (nutzen Sie das get_tx_key-Kommando in simplewallet), da dies im Fall eines Konflikts für den Vermittler nötig ist, um mit dem XMR-checktx-Werkzeug (http://xmr.llcoins.net/checktx.html) den XMR-Transfer zu überprüfen.\nIn normalen Block-Explorern ist der Transfer nicht überprüfbar.\n\nIm Falle eines Konflikts müssen Sie dem Vermittler folgende Daten übergeben:\n- Den privaten Tx-Schlüssel\n- Den Transaktions-Hash\n- Die öffentliche Adresse des Empfängers\n\nSollten Sie die Daten nicht übergeben können oder eine inkompatible Brieftasche verwendet haben, werden Sie den Konflikt verlieren. Der XMR-Sender ist in der Verantwortung den Transfer der XMR gegenüber dem Vermittler im Falle eines Konflikts zu beweisen.\n\nEs wird keine Zahlungs-ID benötigt, nur eine normale öffentliche Adresse.\n\nFalls Sie sich über diesen Prozess im unklaren sind, besuchen Sie das Monero-Forum (https://forum.getmonero.org) um weiter Informationen zu erhalten.
account.altcoin.popup.blur.msg=Stellen Sie sicher, die folgenden Bedingungen verstanden zu haben, falls Sie BLUR auf Bisq handeln möchten:\n\nUm BLUR zu senden, müssen sie die Blur CLI Brieftasche (blur-wallte-cli) nutzen. Nachdem dem Senden\nder Zahlung, wird die Brieftasche den Transaktions-Hash (tx ID). Diese müssen Sie speichern. \nSie müssen auch das 'get_tx_key'\nKommando ausführen um den privaten Transaktionschlüssel zu erhalten. Sie müssen beides im Falle eines Konflikts haben.\nIn diesem Fall müssen Sie beides mit der öffentlichen Adresse des Empfängers dem Vermittler geben,\nder dann die BLUR Übertragung mi dem Blur Transaction Viewer (https://blur.cash/#tx-viewer) bestätigt.\n\nSollten Sie die benötigten Daten nicht bereitstellen, verlieren Sie den Konflikt.\nDer BLUR Sender ist verantwortlich den BLUR Transfer dem Vermittler, im Falle eines Konflikts, zu beweisen.\n\nSollten Sie diese Bedingungen nicht verstehen, suchen Sie Hilfe im Blur Network Discord (https://discord.gg/5rwkU2g).
account.altcoin.popup.ccx.msg=Stellen Sie sicher, die folgenden Bedingungen verstanden zu haben, falls Sie CCX auf Bisq handeln möchten:\n\nUm CCX zu senden, müssen sie eine offizielle Conceal Brieftasche nutzen, Cli oder GUI. Nachdem dem Senden\nder Zahlung, wird die Brieftasche den Transaktions-Hash (ID) und geheimen Schlüssel anzeigen. Sie müssen beides im Falle eines Konflikts haben.\nIn diesem Fall müssen Sie beides mit der öffentlichen Adresse des Empfängers dem Vermittler geben,\nder dann die CCX Übertragung mi dem Conceal Transaction Viewer (https://explorer.conceal.network/txviewer) bestätigt.\nWeil Conceal ein Privatsphären Coin ist, kann ein Blockforscher den Transfer nicht bestätigen.\n\nSollten Sie die benötigten Daten nicht bereitstellen können, verlieren Sie den Konflikt.\nWenn Sie den geheimen Schlüssel nicht sofort nach der CCX Transaktion speichern, kann dieser nicht wiederhergestellt werden.\nSollten Sie diese Bedingungen nicht verstehen, suchen Sie Hilfe im Conceal Discord (http://discord.conceal.network).
account.altcoin.popup.LTZ.msg=Wenn Sie {0} verwenden, können Sie nur die transparenten Adressen verwenden (diese beginnen mit L), nicht die z-Adressen (privat), da der Vermittler die Transaktionen mit z-Adressen nicht überprüfen könnte.
account.altcoin.popup.ZEC.msg=Wenn Sie {0} verwenden, können Sie nur die transparenten Adressen verwenden (diese beginnen mit t), nicht die z-Adressen (privat), da der Vermittler die Transaktionen mit z-Adressen nicht überprüfen könnte.
account.altcoin.popup.XZC.msg=Wenn Sie {0} verwenden, können Sie nur die transparenten (verfolgbaren) Adressen verwenden, nicht die unverfolgbaren, da der Vermittler Transaktionen mit unverfolgbaren Adressen in einem Blockforscher nicht überprüfen könnte.
account.altcoin.popup.bch=Bitcoin Cash und Bitcoin Clashic leiden unter Replay-Protection. Wenn Sie diese Coins benutzen, stellen Sie sicher, dass Sie ausreichend vorsorgen und die Konsequenzen verstehen. Sie können Verluste erleiden, wenn Sie einen Coin senden und ungewollt die gleichen Gelder in einer anderen Blockkette senden. Weil diese "airdrop coins" den gleichen Verlauf wie die Bitcoin Blockkette haben, gibt es auch Sicherheitsrisiken und beachtliche Risiken für die Privatsphären.\n\nLesen Sie bitte mehr über das Thema im Bisq-Forum: https://forum.bisq.io/t/airdrop-coins-information-thread-bch-btg-bchc
Expand Down Expand Up @@ -2054,6 +2055,7 @@ validation.nationalAccountId={0} muss aus {1} Zahlen bestehen.
validation.invalidInput=Ungültige Eingabe: {0}
validation.accountNrFormat=Die Kontonummer muss folgendes Format haben: {0}
validation.altcoin.wrongStructure=Die Adressvalidierung ist fehlgeschlagen, da diese nicht mit der Struktur einer {0}-Adresse übereinstimmt.
validation.altcoin.ltz.zAddressesNotSupported=Die LTZ-Adresse muss mit einem L beginnen. Adressen, die mit z beginnen werden nicht unterstützt.
validation.altcoin.zAddressesNotSupported=Die ZEC-Adresse muss mit einem t beginnen. Adressen, die mit z beginnen werden nicht unterstützt.
validation.altcoin.invalidAddress=Die Adresse ist keine gültige {0}-Adresse! {1}
validation.bic.invalidLength=Die Eingabelänge ist weder 8 noch 11
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/resources/i18n/displayStrings_el.properties
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ account.altcoin.popup.wallet.confirm=Κατανοώ και επιβεβαιών
account.altcoin.popup.xmr.msg=Εάν θέλεις να ανταλλάξεις XMR στο Bisq βεβαιώσου πως κατανοείς και εκπληρώνεις τις ακόλουθες προαπαιτήσεις:\n\nΓια αποστολή XMR χρειάζεσαι είτε το επίσημο Monero GUI πορτοφόλι, είτε το Monero simple wallet με την επισήμανση store-tx-info ενεργοποιημένη (προεπιλεγμένη στις νεώτερες εκδόσεις).\nΒεβαιώσου πως έχεις πρόσβαση στο tx key (χρησιμοποίησε την εντολή get_tx_key στο simplewallet) καθώς σε περίπτωση διένεξης θα χρειαστεί, ώστε να μπορέσει ο διαμεσολαβητής να επαληθεύσει την XMR συναλλαγή με το εργαλείο XMR checktx (http://xmr.llcoins.net/checktx.html).\nΣε απλούς block explorers η συναλλαγή δεν είναι επαληθεύσιμη.\n\nΣε περίπτωση διένεξης θα χρειαστεί να προσφέρεις στον διαμεσολαβητή τις ακόλουθες πληροφορίες:\n- Τι ιδιωτικό tx κλειδί\n- Το hash της συναλλαγής\n- Τη δημόσια διεύθυνση του παραλήπτη\n\nΕάν δεν μπορείς να προσφέρεις τις παραπάνω πληροφορίες ή αν χρησιμοποίησες ένα μη συμβατό πορτοφόλι, θα χάσεις την επίλυση της διένεξης. Ο αποστολέας XMR είναι υπεύθυνος να μπορεί να επιβεβαιώσει τη μεταφορά XMR στον διαμεσολαβητή σε περίπτωση διένεξης.\n\nΔεν απαιτείται η ταυτότητα πληρωμής, παρά μονάχα η δημόσια διεύθυνση.\n\nΕάν δεν είσαι σίγουρος σχετικά με τη διαδικασία, μπορείς να επισκεφτείς το φόρουμ του Monero (https://forum.getmonero.org) για περαιτέρω πληροφορίες.
account.altcoin.popup.blur.msg=If you want to trade BLUR on Bisq please be sure you understand and fulfill the following requirements:\n\nTo send BLUR you must use the Blur Network CLI wallet (blur-wallet-cli). After sending a transfer payment, the\nwallet displays a transaction hash (tx ID). You must save this information. You must also use the 'get_tx_key'\ncommand to retrieve the transaction private key. In the event that arbitration is necessary, you must present\nboth the transaction ID and the transaction private key, along with the recipient's public address. The arbitrator\nwill then verify the BLUR transfer using the Blur Transaction Viewer (https://blur.cash/#tx-viewer).\n\nIf you cannot provide the required data to the arbitrator, you will lose the dispute case.\nThe BLUR sender is responsible for the ability to verify BLUR transfers to the arbitrator in case of a dispute.\n\nIf you do not understand these requirements, seek help at the Blur Network Discord (https://discord.gg/5rwkU2g).
account.altcoin.popup.ccx.msg=If you want to trade CCX on Bisq please be sure you understand the following requirements:\n\nTo send CCX you must use an official Conceal wallet, either CLI or GUI. After sending a transfer payment, the wallets\ndisplay the transaction secret key. You must save it along with the transaction hash (ID) and the recipient's public\naddress in case arbitration is necessary. In such a case, you must give all three to the arbitrator, who will then\nverify the CCX transfer using the Conceal Transaction Viewer (https://explorer.conceal.network/txviewer).\nBecause Conceal is a privacy coin, block explorers cannot verify transfers.\n\nIf you cannot provide the required data to the arbitrator, you will lose the dispute case.\nIf you do not save the transaction secret key immediately after transferring CCX, it cannot be recovered later.\nIf you do not understand these requirements, seek help at the Conceal discord (http://discord.conceal.network).
account.altcoin.popup.LTZ.msg=Όταν χρησιμοποιείς {0} μπορείς να χρησιμοποιήσεις μονάχα τη διάφανη διεύθυνση (ξεκινά με L), και όχι την z διεύθυνση (ιδιωτική), καθώς ο διαμεσολαβητής δεν θα μπορεί να επαληθεύσει τη συναλλαγή μέσω της z διεύθυνσης.
account.altcoin.popup.ZEC.msg=Όταν χρησιμοποιείς {0} μπορείς να χρησιμοποιήσεις μονάχα τη διάφανη διεύθυνση (ξεκινά με t), και όχι την z διεύθυνση (ιδιωτική), καθώς ο διαμεσολαβητής δεν θα μπορεί να επαληθεύσει τη συναλλαγή μέσω της z διεύθυνσης.
account.altcoin.popup.XZC.msg=Όταν χρησιμοποιείς {0} μπορείς να χρησιμοποιήσεις μονάχα τη διάφανη (ανιχνεύσιμη) διεύθυνση, και όχι τη μη ανιχνεύσιμη διεύθυνση, καθώς ο διαμεσολαβητής δεν θα μπορεί να επαληθεύσει τη συναλλαγή με μη ανιχνεύσιμες διευθύνσεις στον block explorer.
account.altcoin.popup.bch=Τα Bitcoin Cash και Bitcoin Clashic δεν διαθέτουν προστασία επανάληψης (replay protection). Αν χρησιμοποιείς αυτά τα νομίσματα απαιτείται να λάβεις επαρκείς προφυλάξεις και να κατανοείς όλες τις πιθανές επιπτώσεις. Η ακούσια αποστολή σε άλλο blockchain κατά την μετακίνηση νομισμάτων, ενδέχεται να οδηγήσει σε απώλειες κεφαλαίων. Καθώς αυτά τα νομίσματα μοιράζονται το ίδιο ιστορικό με το blockchain του Bitcoin, εμπεριέχουν κινδύνους ασφαλείας και απώλειας εχεμύθειας.\n\nΔιάβασε περισσότερα στο φόρουμ του Bisq: https://forum.bisq.io/t/airdrop-coins-information-thread-bch-btg-bchc
Expand Down Expand Up @@ -2054,6 +2055,7 @@ validation.nationalAccountId={0} θα πρέπει να αποτελείται
validation.invalidInput=Μη έγκυρη εισαγωγή: {0}
validation.accountNrFormat=Ο αριθμός λογαριασμού πρέπει να είναι της μορφής: {0}
validation.altcoin.wrongStructure=Η επαλήθευση διεύθυνσης απέτυχε καθώς δεν ταιριάζει στη δομή μιας διεύθυνσης {0}.
validation.altcoin.ltz.zAddressesNotSupported=Οι διευθύνσεις LTZ πρέπει να ξεκινούν με L. Διευθύνσεις που ξεκινούν με z δεν υποστηρίζονται.
validation.altcoin.zAddressesNotSupported=Οι διευθύνσεις ZEC πρέπει να ξεκινούν με t. Διευθύνσεις που ξεκινούν με z δεν υποστηρίζονται.
validation.altcoin.invalidAddress=Η διεύθυνση δεν είναι έγκυρη {0} διεύθυνση! {1}
validation.bic.invalidLength=Το μήκος της εισαγωγής δεν είναι ούτε 8, ούτε 11
Expand Down
Loading