diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 606121d8877..ed3a4e085a5 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -29,6 +29,8 @@ + + diff --git a/assets/src/main/java/bisq/asset/coins/Achievecoin.java b/assets/src/main/java/bisq/asset/coins/Achievecoin.java deleted file mode 100644 index 726d0bdc127..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Achievecoin.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -import org.bitcoinj.core.Utils; - -public class Achievecoin extends Coin { - - public Achievecoin() { - super("AchieveCoin", "ACH", new Base58BitcoinAddressValidator(new AchievecoinParams())); - } - - - public static class AchievecoinParams extends NetworkParametersAdapter { - - public AchievecoinParams() { - interval = INTERVAL; - targetTimespan = TARGET_TIMESPAN; - maxTarget = Utils.decodeCompactBits(0x1d00ffffL); - dumpedPrivateKeyHeader = 128; - - // Address format is different to BTC, rest is the same - addressHeader = 23; //BTG 38; - p2shHeader = 34; //BTG 23; - - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - port = 7337; //BTC and BTG 8333 - packetMagic = 0x1461de3cL; //BTG 0xe1476d44L, BTC 0xf9beb4d9L; - bip32HeaderPub = 0x02651F71; //BTG and BTC 0x0488B21E; //The 4 byte header that serializes in base58 to "xpub". - bip32HeaderPriv = 0x02355E56; //BTG and BTC 0x0488ADE4; //The 4 byte header that serializes in base58 to "xprv" - - id = ID_MAINNET; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Angelcoin.java b/assets/src/main/java/bisq/asset/coins/Angelcoin.java deleted file mode 100644 index e52ec9675fa..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Angelcoin.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Angelcoin extends Coin { - - public Angelcoin() { - super("Angelcoin", "ALC", new AngelcoinAddressValidator()); - } - - - public static class AngelcoinAddressValidator extends Base58BitcoinAddressValidator { - - public AngelcoinAddressValidator() { - super(new AngelcoinParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[A][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class AngelcoinParams extends NetworkParametersAdapter { - - public AngelcoinParams() { - addressHeader = 23; - p2shHeader = 5; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Arto.java b/assets/src/main/java/bisq/asset/coins/Arto.java deleted file mode 100644 index 9e4b75e882b..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Arto.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Arto extends Coin { - - public Arto() { - super("Arto", "RTO", new RegexAddressValidator("^[A][0-9A-Za-z]{94}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/BitDaric.java b/assets/src/main/java/bisq/asset/coins/BitDaric.java deleted file mode 100644 index a035d38181f..00000000000 --- a/assets/src/main/java/bisq/asset/coins/BitDaric.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class BitDaric extends Coin { - - public BitDaric() { - super("BitDaric", "DARX", new RegexAddressValidator("^[R][a-km-zA-HJ-NP-Z1-9]{25,34}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/BitZeny.java b/assets/src/main/java/bisq/asset/coins/BitZeny.java deleted file mode 100644 index 0edaf59e02f..00000000000 --- a/assets/src/main/java/bisq/asset/coins/BitZeny.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class BitZeny extends Coin { - - public BitZeny() { - super("BitZeny", "ZNY", new Base58BitcoinAddressValidator(new BitZenyParams())); - } - - - public static class BitZenyParams extends NetworkParametersAdapter { - - public BitZenyParams() { - addressHeader = 81; - p2shHeader = 5; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/BitcoinGold.java b/assets/src/main/java/bisq/asset/coins/BitcoinGold.java deleted file mode 100644 index 95ad77060f0..00000000000 --- a/assets/src/main/java/bisq/asset/coins/BitcoinGold.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -import org.bitcoinj.core.Utils; - -public class BitcoinGold extends Coin { - - public BitcoinGold() { - super("Bitcoin Gold", "BTG", new Base58BitcoinAddressValidator(new BitcoinGoldParams())); - } - - - private static class BitcoinGoldParams extends NetworkParametersAdapter { - - public BitcoinGoldParams() { - interval = INTERVAL; - targetTimespan = TARGET_TIMESPAN; - maxTarget = Utils.decodeCompactBits(0x1d00ffffL); - dumpedPrivateKeyHeader = 128; - - // Address format is different to BTC, rest is the same - addressHeader = 38; - p2shHeader = 23; - - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - port = 8333; - packetMagic = 0xf9beb4d9L; - bip32HeaderPub = 0x0488B21E; //The 4 byte header that serializes in base58 to "xpub". - bip32HeaderPriv = 0x0488ADE4; //The 4 byte header that serializes in base58 to "xprv" - - id = ID_MAINNET; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Bitcore.java b/assets/src/main/java/bisq/asset/coins/Bitcore.java deleted file mode 100644 index 6a3f19c13b1..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Bitcore.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; - -public class Bitcore extends Coin { - - public Bitcore() { - super("Bitcore", "BTX", new Base58BitcoinAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Burstcoin.java b/assets/src/main/java/bisq/asset/coins/Burstcoin.java deleted file mode 100644 index f3f4bc746a7..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Burstcoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class Burstcoin extends Coin { - - public Burstcoin() { - super("Burstcoin", "BURST", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Cagecoin.java b/assets/src/main/java/bisq/asset/coins/Cagecoin.java deleted file mode 100644 index 2511ce62919..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Cagecoin.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Cagecoin extends Coin { - - public Cagecoin() { - super("Cagecoin", "CAGE", new CagecoinAddressValidator()); - } - - - public static class CagecoinAddressValidator extends Base58BitcoinAddressValidator { - - public CagecoinAddressValidator() { - super(new CagecoinParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[D][a-zA-Z0-9]{26,34}$")) - return AddressValidationResult.invalidStructure(); - return super.validate(address); - } - } - - - public static class CagecoinParams extends NetworkParametersAdapter { - - public CagecoinParams() { - addressHeader = 31; - p2shHeader = 13; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/CassubianDetk.java b/assets/src/main/java/bisq/asset/coins/CassubianDetk.java deleted file mode 100644 index 786e66e01dd..00000000000 --- a/assets/src/main/java/bisq/asset/coins/CassubianDetk.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class CassubianDetk extends Coin { - - public CassubianDetk() { - super("Cassubian Detk", "CDT", new RegexAddressValidator("^D.*")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Conceal.java b/assets/src/main/java/bisq/asset/coins/Conceal.java deleted file mode 100644 index 96ee349c72c..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Conceal.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Conceal extends Coin { - - public Conceal() { - super("Conceal", "CCX", new RegexAddressValidator("^ccx7[1-9A-HJ-NP-Za-km-z]{94}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Creativecoin.java b/assets/src/main/java/bisq/asset/coins/Creativecoin.java deleted file mode 100644 index aebe324b887..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Creativecoin.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Creativecoin extends Coin { - - public Creativecoin() { - super("Creativecoin", "CREA", new Base58BitcoinAddressValidator(new CreativecoinParams())); - } - - - public static class CreativecoinParams extends NetworkParametersAdapter { - - public CreativecoinParams() { - int segwitHeader = 35; - addressHeader = 28; - p2shHeader = 5; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader, segwitHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Cryptonite.java b/assets/src/main/java/bisq/asset/coins/Cryptonite.java deleted file mode 100644 index 33560f1be73..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Cryptonite.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.AddressValidator; -import bisq.asset.Coin; - -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; - -import java.util.Arrays; - -public class Cryptonite extends Coin { - - public Cryptonite() { - super("Cryptonite", "XCN", new CryptoniteAddressValidator()); - } - - - public static class CryptoniteAddressValidator implements AddressValidator { - - private final static String ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; - - @Override - public AddressValidationResult validate(String address) { - // https://bitcointalk.org/index.php?topic=1801595 - if (address.length() != 34) - return AddressValidationResult.invalidAddress("XCN_Addr_Invalid: Length must be 34!"); - - if (!address.startsWith("C")) - return AddressValidationResult.invalidAddress("XCN_Addr_Invalid: must start with 'C'!"); - - byte[] decoded = decodeBase58(address); - if (decoded == null) - return AddressValidationResult.invalidAddress("XCN_Addr_Invalid: Base58 decoder error!"); - - byte[] hash = getSha256(decoded, 21, 2); - if (hash == null || !Arrays.equals(Arrays.copyOfRange(hash, 0, 4), Arrays.copyOfRange(decoded, 21, 25))) - return AddressValidationResult.invalidAddress("XCN_Addr_Invalid: Checksum error!"); - - return AddressValidationResult.validAddress(); - } - - private static byte[] decodeBase58(String input) { - byte[] output = new byte[25]; - for (int i = 0; i < input.length(); i++) { - char t = input.charAt(i); - - int p = ALPHABET.indexOf(t); - if (p == -1) - return null; - for (int j = 25 - 1; j >= 0; j--, p /= 256) { - p += 58 * (output[j] & 0xFF); - output[j] = (byte) (p % 256); - } - if (p != 0) - return null; - } - - return output; - } - - private static byte[] getSha256(byte[] data, int len, int recursion) { - if (recursion == 0) - return data; - - try { - MessageDigest md = MessageDigest.getInstance("SHA-256"); - md.update(Arrays.copyOfRange(data, 0, len)); - return getSha256(md.digest(), 32, recursion - 1); - } catch (NoSuchAlgorithmException e) { - return null; - } - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/DSTRA.java b/assets/src/main/java/bisq/asset/coins/DSTRA.java deleted file mode 100644 index 334199d0094..00000000000 --- a/assets/src/main/java/bisq/asset/coins/DSTRA.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class DSTRA extends Coin { - - public DSTRA() { - super("DSTRA", "DST", new Base58BitcoinAddressValidator(new DSTRAParams())); - } - - - public static class DSTRAParams extends NetworkParametersAdapter { - - public DSTRAParams() { - addressHeader = 35; - p2shHeader = 95; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/DarkNet.java b/assets/src/main/java/bisq/asset/coins/DarkNet.java deleted file mode 100644 index 807e9f49b41..00000000000 --- a/assets/src/main/java/bisq/asset/coins/DarkNet.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class DarkNet extends Coin { - - public DarkNet() { - super("DarkNet", "DNET", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Decent.java b/assets/src/main/java/bisq/asset/coins/Decent.java deleted file mode 100644 index 95f70fe2326..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Decent.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Decent extends Coin { - - public Decent() { - super("Decent", "DCT", new DecentAddressValidator()); - } - - - public static class DecentAddressValidator extends RegexAddressValidator { - - public DecentAddressValidator() { - super("^(?=.{5,63}$)([a-z][a-z0-9-]+[a-z0-9])(\\.[a-z][a-z0-9-]+[a-z0-9])*$"); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/DeepOnion.java b/assets/src/main/java/bisq/asset/coins/DeepOnion.java deleted file mode 100644 index f811b3a3f46..00000000000 --- a/assets/src/main/java/bisq/asset/coins/DeepOnion.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class DeepOnion extends Coin { - - public DeepOnion() { - super("DeepOnion", "ONION", new Base58BitcoinAddressValidator(new DeepOnionParams())); - } - - - public static class DeepOnionParams extends NetworkParametersAdapter { - - public DeepOnionParams() { - addressHeader = 31; - p2shHeader = 78; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Devcoin.java b/assets/src/main/java/bisq/asset/coins/Devcoin.java deleted file mode 100644 index 6698ad40925..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Devcoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; - -public class Devcoin extends Coin { - - public Devcoin() { - super("Devcoin", "DVC", new Base58BitcoinAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Diamond.java b/assets/src/main/java/bisq/asset/coins/Diamond.java deleted file mode 100644 index a46911d22c6..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Diamond.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Diamond extends Coin { - - public Diamond() { - super("Diamond", "DMD", new DiamondAddressValidator()); - } - - - public static class DiamondAddressValidator extends Base58BitcoinAddressValidator { - - public DiamondAddressValidator() { - super(new DiamondParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[d][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class DiamondParams extends NetworkParametersAdapter { - - public DiamondParams() { - addressHeader = 90; - p2shHeader = 8; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/DigiMoney.java b/assets/src/main/java/bisq/asset/coins/DigiMoney.java deleted file mode 100644 index 37957435d31..00000000000 --- a/assets/src/main/java/bisq/asset/coins/DigiMoney.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class DigiMoney extends Coin { - - public DigiMoney() { - super("DigiMoney", "DGM", new RegexAddressValidator("^[D-E][a-zA-Z0-9]{33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Dinero.java b/assets/src/main/java/bisq/asset/coins/Dinero.java deleted file mode 100644 index c043ef114ad..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Dinero.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Dinero extends Coin { - - public Dinero() { - super("Dinero", "DIN", new RegexAddressValidator("^[D][0-9a-zA-Z]{33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/DynamicCoin.java b/assets/src/main/java/bisq/asset/coins/DynamicCoin.java deleted file mode 100644 index 221c720bbcd..00000000000 --- a/assets/src/main/java/bisq/asset/coins/DynamicCoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class DynamicCoin extends Coin { - - public DynamicCoin() { - super("DynamicCoin", "DMC", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Espers.java b/assets/src/main/java/bisq/asset/coins/Espers.java deleted file mode 100644 index be981560a2f..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Espers.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class Espers extends Coin { - - public Espers() { - super("Espers", "ESP", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/InfinityEconomics.java b/assets/src/main/java/bisq/asset/coins/InfinityEconomics.java deleted file mode 100644 index b58a0e6a137..00000000000 --- a/assets/src/main/java/bisq/asset/coins/InfinityEconomics.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class InfinityEconomics extends Coin { - - public InfinityEconomics() { - super("Infinity Economics", "XIN", - new RegexAddressValidator("^XIN-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{5}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Instacash.java b/assets/src/main/java/bisq/asset/coins/Instacash.java deleted file mode 100644 index 3b11eaa229f..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Instacash.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -import org.bitcoinj.core.Address; -import org.bitcoinj.core.AddressFormatException; - -public class Instacash extends Coin { - - public Instacash() { - super("Instacash", "ICH", new InstacashAddressValidator()); - } - - - public static class InstacashAddressValidator implements AddressValidator { - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[A][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - - try { - Address.fromBase58(new InstacashParams(), address); - } catch (AddressFormatException ex) { - return AddressValidationResult.invalidAddress(ex); - } - - return AddressValidationResult.validAddress(); - } - } - - - public static class InstacashParams extends NetworkParametersAdapter { - - public InstacashParams() { - addressHeader = 23; - p2shHeader = 13; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/InternetOfPeople.java b/assets/src/main/java/bisq/asset/coins/InternetOfPeople.java deleted file mode 100644 index 126cb4341de..00000000000 --- a/assets/src/main/java/bisq/asset/coins/InternetOfPeople.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class InternetOfPeople extends Coin { - - public InternetOfPeople() { - super("Internet of People", "IOP", new InternetOfPeopleAddressValidator()); - } - - - public static class InternetOfPeopleAddressValidator extends Base58BitcoinAddressValidator { - - public InternetOfPeopleAddressValidator() { - super(new InternetOfPeopleParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[p][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class InternetOfPeopleParams extends NetworkParametersAdapter { - - public InternetOfPeopleParams() { - super(); - addressHeader = 117; - p2shHeader = 174; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Koto.java b/assets/src/main/java/bisq/asset/coins/Koto.java index f060c473c97..38ae9ff05de 100644 --- a/assets/src/main/java/bisq/asset/coins/Koto.java +++ b/assets/src/main/java/bisq/asset/coins/Koto.java @@ -26,6 +26,10 @@ import java.util.Arrays; +/** + * @deprecated for insufficent trading + */ +@Deprecated(since = "0.9.0") public class Koto extends Coin { public Koto() { diff --git a/assets/src/main/java/bisq/asset/coins/Kumacoin.java b/assets/src/main/java/bisq/asset/coins/Kumacoin.java deleted file mode 100644 index 6e779399961..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Kumacoin.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Kumacoin extends Coin { - - public Kumacoin() { - super("Kumacoin", "KUMA", new Base58BitcoinAddressValidator(new KumacoinParams())); - } - - - public static class KumacoinParams extends NetworkParametersAdapter { - - public KumacoinParams() { - addressHeader = 45; - p2shHeader = 8; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/LBRY.java b/assets/src/main/java/bisq/asset/coins/LBRY.java deleted file mode 100644 index 00cadeb501a..00000000000 --- a/assets/src/main/java/bisq/asset/coins/LBRY.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class LBRY extends Coin { - - public LBRY() { - super("LBRY Credits", "LBC", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Lisk.java b/assets/src/main/java/bisq/asset/coins/Lisk.java deleted file mode 100644 index f9ecf5045b3..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Lisk.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class Lisk extends Coin { - - public Lisk() { - super("Lisk", "LSK", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/LitecoinExtreme.java b/assets/src/main/java/bisq/asset/coins/LitecoinExtreme.java deleted file mode 100644 index 9285b25376c..00000000000 --- a/assets/src/main/java/bisq/asset/coins/LitecoinExtreme.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class LitecoinExtreme extends Coin { - - public LitecoinExtreme(){ - super("LitecoinExtreme", "LCE", new RegexAddressValidator("^[E][a-km-zA-HJ-NP-Z1-9]{33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/MFCoin.java b/assets/src/main/java/bisq/asset/coins/MFCoin.java deleted file mode 100644 index 71330a5bca1..00000000000 --- a/assets/src/main/java/bisq/asset/coins/MFCoin.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class MFCoin extends Coin { - - public MFCoin(){ - super("MFCoin", "MFC", new RegexAddressValidator("^[M][a-km-zA-HJ-NP-Z1-9]{33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Madbyte.java b/assets/src/main/java/bisq/asset/coins/Madbyte.java deleted file mode 100644 index 530284f34f0..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Madbyte.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Madbyte extends Coin { - - public Madbyte() { - super("Madbyte", "MBYT", new RegexAddressValidator("^[M][a-zA-Z0-9]{33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Madcoin.java b/assets/src/main/java/bisq/asset/coins/Madcoin.java deleted file mode 100644 index 92df10edfa8..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Madcoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Madcoin extends Coin { - - public Madcoin() { - super("Madcoin", "MDC", new RegexAddressValidator("^m[a-zA-Z0-9]{26,33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/MaidSafeCoin.java b/assets/src/main/java/bisq/asset/coins/MaidSafeCoin.java deleted file mode 100644 index 1b9db5743fb..00000000000 --- a/assets/src/main/java/bisq/asset/coins/MaidSafeCoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class MaidSafeCoin extends Coin { - - public MaidSafeCoin() { - super("MaidSafeCoin", "MAID", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Mazacoin.java b/assets/src/main/java/bisq/asset/coins/Mazacoin.java deleted file mode 100644 index 864a9839ba7..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Mazacoin.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Mazacoin extends Coin { - - public Mazacoin() { - super("Mazacoin", "MAZA", new MazacoinAddressValidator()); - } - - - public static class MazacoinAddressValidator extends Base58BitcoinAddressValidator { - - public MazacoinAddressValidator() { - super(new MazacoinParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[M][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class MazacoinParams extends NetworkParametersAdapter { - - public MazacoinParams() { - addressHeader = 50; - p2shHeader = 9; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/NEETCOIN.java b/assets/src/main/java/bisq/asset/coins/NEETCOIN.java deleted file mode 100644 index bca852311b2..00000000000 --- a/assets/src/main/java/bisq/asset/coins/NEETCOIN.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class NEETCOIN extends Coin { - - public NEETCOIN() { - super("NEETCOIN", "NEET", new Base58BitcoinAddressValidator(new NEETCOINParams())); - } - - - public static class NEETCOINParams extends NetworkParametersAdapter { - - public NEETCOINParams() { - addressHeader = 53; - p2shHeader = 112; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/NavCoin.java b/assets/src/main/java/bisq/asset/coins/NavCoin.java deleted file mode 100644 index 9ca4fc1b60c..00000000000 --- a/assets/src/main/java/bisq/asset/coins/NavCoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class NavCoin extends Coin { - - public NavCoin() { - super("Nav Coin", "NAV", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Nilu.java b/assets/src/main/java/bisq/asset/coins/Nilu.java deleted file mode 100644 index f4ad6109bfc..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Nilu.java +++ /dev/null @@ -1,87 +0,0 @@ -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.AddressValidator; -import bisq.asset.Coin; - -import org.bouncycastle.jcajce.provider.digest.Keccak; - -import java.nio.charset.StandardCharsets; - -public class Nilu extends Coin { - - public Nilu() { - super("Nilu", "NILU", new NiluAddressValidator()); - } - - - private static class NiluAddressValidator implements AddressValidator { - - private static final String upperOrLowerPattern = "(0x)?([0-9a-f]{40}|[0-9A-F]{40})"; - private static final String mixPattern = "(0x)?([0-9a-fA-F]{40})"; - - @Override - public AddressValidationResult validate(String address) { - if (!isValidAddress(address)) - return AddressValidationResult.invalidStructure(); - - return AddressValidationResult.validAddress(); - } - - private boolean isValidAddress(String eip55) { - if (eip55 == null || eip55.isEmpty()) - return false; - - if (eip55.matches(upperOrLowerPattern)) - return true; - - if (!eip55.matches(mixPattern)) - return false; - - String addr = convertToEip55Address(eip55); - return addr.replaceFirst("0x", "").equals(eip55.replaceFirst("0x", "")); - } - - private String convertToEip55Address(String input) { - String addr = input.replaceFirst("0x", "").toLowerCase(); - StringBuilder ret = new StringBuilder("0x"); - String hash = sha3String(addr).substring(2); - for (int i = 0; i < addr.length(); i++) { - String a = addr.charAt(i) + ""; - ret.append(Integer.parseInt(hash.charAt(i) + "", 16) > 7 ? a.toUpperCase() : a); - } - return ret.toString(); - } - - private static byte[] sha3(byte[] input, int offset, int length) { - Keccak.DigestKeccak kecc = new Keccak.Digest256(); - kecc.update(input, offset, length); - return kecc.digest(); - } - - private static byte[] sha3(byte[] input) { - return sha3(input, 0, input.length); - } - - private static String toHexString(byte[] input, int offset, int length, boolean withPrefix) { - StringBuilder stringBuilder = new StringBuilder(); - if (withPrefix) { - stringBuilder.append("0x"); - } - - for (int i = offset; i < offset + length; ++i) { - stringBuilder.append(String.format("%02x", input[i] & 255)); - } - - return stringBuilder.toString(); - } - - private static String toHexString(byte[] input) { - return toHexString(input, 0, input.length, true); - } - - private static String sha3String(String utf8String) { - return toHexString(sha3(utf8String.getBytes(StandardCharsets.UTF_8))); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/NuBits.java b/assets/src/main/java/bisq/asset/coins/NuBits.java deleted file mode 100644 index 9d258989d19..00000000000 --- a/assets/src/main/java/bisq/asset/coins/NuBits.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class NuBits extends Coin { - - public NuBits() { - super("NuBits", "NBT", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Nxt.java b/assets/src/main/java/bisq/asset/coins/Nxt.java deleted file mode 100644 index 6e1850c929d..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Nxt.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.AddressValidator; -import bisq.asset.Coin; - -public class Nxt extends Coin { - - public Nxt() { - super("Nxt", "NXT", new NxtAddressValidator()); - } - - - public static class NxtAddressValidator implements AddressValidator { - - @Override - public AddressValidationResult validate(String address) { - if (!address.startsWith("NXT-") || !address.equals(address.toUpperCase())) - return AddressValidationResult.invalidStructure(); - - try { - long accountId = NxtReedSolomonValidator.decode(address.substring(4)); - if (accountId == 0) - return AddressValidationResult.invalidStructure(); - } catch (NxtReedSolomonValidator.DecodeException e) { - return AddressValidationResult.invalidAddress(e); - } - - return AddressValidationResult.validAddress(); - } - } - - public static final class NxtReedSolomonValidator { - - private static final int[] initial_codeword = {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; - private static final int[] gexp = { - 1, 2, 4, 8, 16, 5, 10, 20, 13, 26, 17, 7, 14, 28, 29, 31, - 27, 19, 3, 6, 12, 24, 21, 15, 30, 25, 23, 11, 22, 9, 18, 1}; - private static final int[] glog = { - 0, 0, 1, 18, 2, 5, 19, 11, 3, 29, 6, 27, 20, 8, 12, 23, 4, - 10, 30, 17, 7, 22, 28, 26, 21, 25, 9, 16, 13, 14, 24, 15}; - private static final int[] codeword_map = {3, 2, 1, 0, 7, 6, 5, 4, 13, 14, 15, 16, 12, 8, 9, 10, 11}; - private static final String alphabet = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ"; - - private static final int base_32_length = 13; - private static final int base_10_length = 20; - - public static String encode(long plain) { - - String plain_string = Long.toUnsignedString(plain); - int length = plain_string.length(); - int[] plain_string_10 = new int[NxtReedSolomonValidator.base_10_length]; - for (int i = 0; i < length; i++) { - plain_string_10[i] = (int) plain_string.charAt(i) - (int) '0'; - } - - int codeword_length = 0; - int[] codeword = new int[NxtReedSolomonValidator.initial_codeword.length]; - - do { // base 10 to base 32 conversion - int new_length = 0; - int digit_32 = 0; - for (int i = 0; i < length; i++) { - digit_32 = digit_32 * 10 + plain_string_10[i]; - if (digit_32 >= 32) { - plain_string_10[new_length] = digit_32 >> 5; - digit_32 &= 31; - new_length += 1; - } else if (new_length > 0) { - plain_string_10[new_length] = 0; - new_length += 1; - } - } - length = new_length; - codeword[codeword_length] = digit_32; - codeword_length += 1; - } while (length > 0); - - int[] p = {0, 0, 0, 0}; - for (int i = NxtReedSolomonValidator.base_32_length - 1; i >= 0; i--) { - final int fb = codeword[i] ^ p[3]; - p[3] = p[2] ^ NxtReedSolomonValidator.gmult(30, fb); - p[2] = p[1] ^ NxtReedSolomonValidator.gmult(6, fb); - p[1] = p[0] ^ NxtReedSolomonValidator.gmult(9, fb); - p[0] = NxtReedSolomonValidator.gmult(17, fb); - } - - System.arraycopy( - p, 0, codeword, NxtReedSolomonValidator.base_32_length, - NxtReedSolomonValidator.initial_codeword.length - NxtReedSolomonValidator.base_32_length); - - StringBuilder cypher_string_builder = new StringBuilder(); - for (int i = 0; i < 17; i++) { - final int codework_index = NxtReedSolomonValidator.codeword_map[i]; - final int alphabet_index = codeword[codework_index]; - cypher_string_builder.append(NxtReedSolomonValidator.alphabet.charAt(alphabet_index)); - - if ((i & 3) == 3 && i < 13) { - cypher_string_builder.append('-'); - } - } - return cypher_string_builder.toString(); - } - - public static long decode(String cypher_string) throws DecodeException { - - int[] codeword = new int[NxtReedSolomonValidator.initial_codeword.length]; - System.arraycopy( - NxtReedSolomonValidator.initial_codeword, 0, codeword, 0, - NxtReedSolomonValidator.initial_codeword.length); - - int codeword_length = 0; - for (int i = 0; i < cypher_string.length(); i++) { - int position_in_alphabet = NxtReedSolomonValidator.alphabet.indexOf(cypher_string.charAt(i)); - - if (position_in_alphabet <= -1 || position_in_alphabet > NxtReedSolomonValidator.alphabet.length()) { - continue; - } - - if (codeword_length > 16) { - throw new CodewordTooLongException(); - } - - int codework_index = NxtReedSolomonValidator.codeword_map[codeword_length]; - codeword[codework_index] = position_in_alphabet; - codeword_length += 1; - } - - if (codeword_length == 17 && !NxtReedSolomonValidator.is_codeword_valid(codeword) || codeword_length != 17) { - throw new CodewordInvalidException(); - } - - int length = NxtReedSolomonValidator.base_32_length; - int[] cypher_string_32 = new int[length]; - for (int i = 0; i < length; i++) { - cypher_string_32[i] = codeword[length - i - 1]; - } - - StringBuilder plain_string_builder = new StringBuilder(); - do { // base 32 to base 10 conversion - int new_length = 0; - int digit_10 = 0; - - for (int i = 0; i < length; i++) { - digit_10 = digit_10 * 32 + cypher_string_32[i]; - - if (digit_10 >= 10) { - cypher_string_32[new_length] = digit_10 / 10; - digit_10 %= 10; - new_length += 1; - } else if (new_length > 0) { - cypher_string_32[new_length] = 0; - new_length += 1; - } - } - length = new_length; - plain_string_builder.append((char) (digit_10 + (int) '0')); - } while (length > 0); - - return Long.parseUnsignedLong(plain_string_builder.reverse().toString()); - } - - private static int gmult(int a, int b) { - if (a == 0 || b == 0) { - return 0; - } - - int idx = (NxtReedSolomonValidator.glog[a] + NxtReedSolomonValidator.glog[b]) % 31; - - return NxtReedSolomonValidator.gexp[idx]; - } - - private static boolean is_codeword_valid(int[] codeword) { - int sum = 0; - - for (int i = 1; i < 5; i++) { - int t = 0; - - for (int j = 0; j < 31; j++) { - if (j > 12 && j < 27) { - continue; - } - - int pos = j; - if (j > 26) { - pos -= 14; - } - - t ^= NxtReedSolomonValidator.gmult(codeword[pos], NxtReedSolomonValidator.gexp[(i * j) % 31]); - } - - sum |= t; - } - - return sum == 0; - } - - public abstract static class DecodeException extends Exception { - } - - static final class CodewordTooLongException extends DecodeException { - } - - static final class CodewordInvalidException extends DecodeException { - } - - private NxtReedSolomonValidator() { - } // never - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Obsidian.java b/assets/src/main/java/bisq/asset/coins/Obsidian.java index 0eebb7ce2d5..ebef3c701da 100644 --- a/assets/src/main/java/bisq/asset/coins/Obsidian.java +++ b/assets/src/main/java/bisq/asset/coins/Obsidian.java @@ -21,6 +21,10 @@ import bisq.asset.Coin; import bisq.asset.NetworkParametersAdapter; +/** + * @deprecated for insufficent trading + */ +@Deprecated(since = "0.9.0") public class Obsidian extends Coin { public Obsidian() { diff --git a/assets/src/main/java/bisq/asset/coins/Octocoin.java b/assets/src/main/java/bisq/asset/coins/Octocoin.java deleted file mode 100644 index 6801c242cd3..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Octocoin.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Octocoin extends Coin { - - public Octocoin() { - super("Octocoin", "888", new OctocoinAddressValidator()); - } - - - public static class OctocoinAddressValidator extends Base58BitcoinAddressValidator { - - public OctocoinAddressValidator() { - super(new OctocoinParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[83][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class OctocoinParams extends NetworkParametersAdapter { - - public OctocoinParams() { - addressHeader = 18; - p2shHeader = 5; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Particl.java b/assets/src/main/java/bisq/asset/coins/Particl.java deleted file mode 100644 index edf26fd575b..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Particl.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Particl extends Coin { - - public Particl() { - super("Particl", "PART", new ParticlAddressValidator()); - } - - - public static class ParticlAddressValidator extends Base58BitcoinAddressValidator { - - public ParticlAddressValidator() { - super(new ParticlParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[RP][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class ParticlParams extends NetworkParametersAdapter { - - public ParticlParams() { - addressHeader = 56; - p2shHeader = 60; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/PepeCash.java b/assets/src/main/java/bisq/asset/coins/PepeCash.java deleted file mode 100644 index 5fea385cddc..00000000000 --- a/assets/src/main/java/bisq/asset/coins/PepeCash.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class PepeCash extends Coin { - - public PepeCash() { - super("Pepe Cash", "PEPECASH", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Phore.java b/assets/src/main/java/bisq/asset/coins/Phore.java deleted file mode 100644 index 3b1122c9fa6..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Phore.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Phore extends Coin { - - public Phore() { - super("Phore", "PHR", new PhoreAddressValidator()); - } - - - public static class PhoreAddressValidator extends Base58BitcoinAddressValidator { - - public PhoreAddressValidator() { - super(new PhoreParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[P][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class PhoreParams extends NetworkParametersAdapter { - - public PhoreParams() { - addressHeader = 55; - p2shHeader = 13; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/PostCoin.java b/assets/src/main/java/bisq/asset/coins/PostCoin.java deleted file mode 100644 index 76fb341d5fa..00000000000 --- a/assets/src/main/java/bisq/asset/coins/PostCoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class PostCoin extends Coin { - - public PostCoin() { - super("PostCoin", "POST", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Pranacoin.java b/assets/src/main/java/bisq/asset/coins/Pranacoin.java deleted file mode 100644 index c56113b27fc..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Pranacoin.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; - -import java.util.Arrays; - -public class Pranacoin extends Coin { - - public Pranacoin() { - super("Pranacoin", "PNC", new PranacoinAddressValidator()); - } - - - public static class PranacoinAddressValidator extends Base58BitcoinAddressValidator { - - private final static String ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; - - public PranacoinAddressValidator() { - super(new Pranacoin.PranacoinParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[P3][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - if (!validateAddress(address)) - return AddressValidationResult.invalidStructure(); - return super.validate(address); - } - - public static boolean validateAddress(String addr) { - if (addr.length() < 26 || addr.length() > 35) return false; - byte[] decoded = decodeBase58(addr, 58, 25); - if (decoded == null) return false; - - byte[] hash = getSha256(decoded, 0, 21, 2); - return hash != null && Arrays.equals(Arrays.copyOfRange(hash, 0, 4), Arrays.copyOfRange(decoded, 21, 25)); - } - - private static byte[] decodeBase58(String input, int base, int len) { - byte[] output = new byte[len]; - for (int i = 0; i < input.length(); i++) { - char t = input.charAt(i); - - int p = ALPHABET.indexOf(t); - if (p == -1) return null; - for (int j = len - 1; j >= 0; j--, p /= 256) { - p += base * (output[j] & 0xFF); - output[j] = (byte) (p % 256); - } - if (p != 0) return null; - } - - return output; - } - - private static byte[] getSha256(byte[] data, int start, int len, int recursion) { - if (recursion == 0) return data; - - try { - MessageDigest md = MessageDigest.getInstance("SHA-256"); - md.update(Arrays.copyOfRange(data, start, start + len)); - return getSha256(md.digest(), 0, 32, recursion - 1); - } catch (NoSuchAlgorithmException e) { - return null; - } - } - } - - - public static class PranacoinParams extends NetworkParametersAdapter { - - public PranacoinParams() { - addressHeader = 55; - p2shHeader = 5; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/ReddCoin.java b/assets/src/main/java/bisq/asset/coins/ReddCoin.java deleted file mode 100644 index 50f029e3706..00000000000 --- a/assets/src/main/java/bisq/asset/coins/ReddCoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class ReddCoin extends Coin { - - public ReddCoin() { - super("ReddCoin", "RDD", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Ringo.java b/assets/src/main/java/bisq/asset/coins/Ringo.java deleted file mode 100644 index 82c5deed8d2..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Ringo.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Ringo extends Coin { - - public Ringo() { - super("Ringo", "RIN", new Base58BitcoinAddressValidator(new RingoParams())); - } - - - public static class RingoParams extends NetworkParametersAdapter { - - public RingoParams() { - addressHeader = 60; - p2shHeader = 85; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Roicoin.java b/assets/src/main/java/bisq/asset/coins/Roicoin.java deleted file mode 100644 index 1b115e4558c..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Roicoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Roicoin extends Coin { - - public Roicoin() { - super("ROIcoin", "ROI", new RegexAddressValidator("^[R][0-9a-zA-Z]{33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/STEEM.java b/assets/src/main/java/bisq/asset/coins/STEEM.java deleted file mode 100644 index 6d19a5c5752..00000000000 --- a/assets/src/main/java/bisq/asset/coins/STEEM.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class STEEM extends Coin { - - public STEEM() { - super("STEEM", "STEEM", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/SafeFileSystemCoin.java b/assets/src/main/java/bisq/asset/coins/SafeFileSystemCoin.java deleted file mode 100644 index 9c1de4c4a59..00000000000 --- a/assets/src/main/java/bisq/asset/coins/SafeFileSystemCoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class SafeFileSystemCoin extends Coin { - - public SafeFileSystemCoin() { - super("Safe FileSystem Coin", "SFSC", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Semux.java b/assets/src/main/java/bisq/asset/coins/Semux.java deleted file mode 100644 index 3acff575ae5..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Semux.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Semux extends Coin { - - public Semux() { - super("Semux", "SEM", new RegexAddressValidator("^0x[a-f0-9]{40}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Siacoin.java b/assets/src/main/java/bisq/asset/coins/Siacoin.java deleted file mode 100644 index 8dbf3418f57..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Siacoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class Siacoin extends Coin { - - public Siacoin() { - super("Siacoin", "SC", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Sibcoin.java b/assets/src/main/java/bisq/asset/coins/Sibcoin.java deleted file mode 100644 index 4bda3062011..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Sibcoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.DefaultAddressValidator; - -public class Sibcoin extends Coin { - - public Sibcoin() { - super("Sibcoin", "SIB", new DefaultAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/SpeedCash.java b/assets/src/main/java/bisq/asset/coins/SpeedCash.java deleted file mode 100644 index 3ecb35a1231..00000000000 --- a/assets/src/main/java/bisq/asset/coins/SpeedCash.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class SpeedCash extends Coin { - - public SpeedCash() { - super("SpeedCash", "SCS", new Base58BitcoinAddressValidator(new SpeedCashParams())); - } - - - public static class SpeedCashParams extends NetworkParametersAdapter { - - public SpeedCashParams() { - addressHeader = 63; - p2shHeader = 85; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Stellite.java b/assets/src/main/java/bisq/asset/coins/Stellite.java deleted file mode 100644 index 59dd349b5a9..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Stellite.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Stellite extends Coin { - - public Stellite() { - super("Stellite", "STL", new RegexAddressValidator("^(Se)\\d[0-9A-Za-z]{94}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Strayacoin.java b/assets/src/main/java/bisq/asset/coins/Strayacoin.java deleted file mode 100644 index cedaa60a37e..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Strayacoin.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Strayacoin extends Coin { - - public Strayacoin() { - super("Strayacoin", "NAH", new StrayacoinAddressValidator()); - } - - - public static class StrayacoinAddressValidator extends Base58BitcoinAddressValidator { - - public StrayacoinAddressValidator() { - super(new StrayacoinParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[S][a-zA-Z0-9]{26,34}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class StrayacoinParams extends NetworkParametersAdapter { - - public StrayacoinParams() { - addressHeader = 63; - p2shHeader = 50; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Tamadcoin.java b/assets/src/main/java/bisq/asset/coins/Tamadcoin.java deleted file mode 100644 index 9cb645a2296..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Tamadcoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Tamadcoin extends Coin { - - public Tamadcoin() { - super("Tamadcoin", "TMC", new RegexAddressValidator("^ax[A-Z][0-9ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{1,97}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Terracoin.java b/assets/src/main/java/bisq/asset/coins/Terracoin.java deleted file mode 100644 index bc8070d1b74..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Terracoin.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Terracoin extends Coin { - - public Terracoin() { - super("Terracoin", "TRC", new Base58BitcoinAddressValidator(new TerracoinParams())); - } - - - public static class TerracoinParams extends NetworkParametersAdapter { - - public TerracoinParams() { - super(); - addressHeader = 0; - p2shHeader = 5; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Ubiq.java b/assets/src/main/java/bisq/asset/coins/Ubiq.java deleted file mode 100644 index 8c0b87f6461..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Ubiq.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Ubiq extends Coin { - - public Ubiq() { - super("Ubiq", "UBQ", new RegexAddressValidator("^(0x)?[0-9a-fA-F]{40}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/VDinar.java b/assets/src/main/java/bisq/asset/coins/VDinar.java deleted file mode 100644 index 5563d30d49b..00000000000 --- a/assets/src/main/java/bisq/asset/coins/VDinar.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class VDinar extends Coin { - - public VDinar() { - super("vDinar", "VDN", new RegexAddressValidator("^[D][0-9a-zA-Z]{33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Wacoin.java b/assets/src/main/java/bisq/asset/coins/Wacoin.java deleted file mode 100644 index 055467db8bb..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Wacoin.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Wacoin extends Coin { - - public Wacoin() { - super("WACoins", "WAC", new Base58BitcoinAddressValidator(new WacoinParams())); - } - - - public static class WacoinParams extends NetworkParametersAdapter { - - public WacoinParams() { - super(); - addressHeader = 73; - p2shHeader = 3; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/WorldMobileCoin.java b/assets/src/main/java/bisq/asset/coins/WorldMobileCoin.java deleted file mode 100644 index 2c6577f8ce3..00000000000 --- a/assets/src/main/java/bisq/asset/coins/WorldMobileCoin.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.AddressValidator; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -import org.bitcoinj.core.AddressFormatException; -import org.bitcoinj.core.NetworkParameters; -import org.bitcoinj.core.VersionedChecksummedBytes; -import org.bitcoinj.params.Networks; - -import java.io.ByteArrayOutputStream; - -import java.util.Arrays; -import java.util.Locale; - -import javax.annotation.Nullable; - -public class WorldMobileCoin extends Coin { - - public WorldMobileCoin() { - super("WorldMobileCoin", "WMCC", new WorldMobileCoinAddressValidator()); - } - - - public static class WorldMobileCoinAddressValidator implements AddressValidator { - - private final Base58BitcoinAddressValidator base58BitcoinAddressValidator; - private final NetworkParameters networkParameters; - - public WorldMobileCoinAddressValidator() { - networkParameters = new WorldMobileCoinParams(); - base58BitcoinAddressValidator = new Base58BitcoinAddressValidator(networkParameters); - } - - public AddressValidationResult validate(String address) { - if (!isLowerCase(address)) { - return base58BitcoinAddressValidator.validate(address); - } - - try { - WitnessAddress.fromBech32(networkParameters, address); - } catch (AddressFormatException ex) { - return AddressValidationResult.invalidAddress(ex); - } - - return AddressValidationResult.validAddress(); - } - - private static boolean isLowerCase(String str) { - char ch; - for (int i = 0; i < str.length(); i++) { - ch = str.charAt(i); - if (Character.isDigit(ch)) - continue; - if (!Character.isLowerCase(ch)) - return false; - } - return true; - } - - } - - - public static class WorldMobileCoinParams extends NetworkParametersAdapter { - - public WorldMobileCoinParams() { - addressHeader = 0x49; - p2shHeader = 0x4b; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - - } - } - - - private static class WitnessAddress extends VersionedChecksummedBytes { - static final int PROGRAM_LENGTH_PKH = 20; - static final int PROGRAM_LENGTH_SH = 32; - static final int PROGRAM_MIN_LENGTH = 2; - static final int PROGRAM_MAX_LENGTH = 40; - static final String WITNESS_ADDRESS_HRP = "wc"; - - private WitnessAddress(NetworkParameters params, byte[] data) throws AddressFormatException { - super(params.getAddressHeader(), data); - if (data.length < 1) - throw new AddressFormatException("Zero data found"); - final int version = getWitnessVersion(); - if (version < 0 || version > 16) - throw new AddressFormatException("Invalid script version: " + version); - byte[] program = getWitnessProgram(); - if (program.length < PROGRAM_MIN_LENGTH || program.length > PROGRAM_MAX_LENGTH) - throw new AddressFormatException("Invalid length: " + program.length); - if (version == 0 && program.length != PROGRAM_LENGTH_PKH - && program.length != PROGRAM_LENGTH_SH) - throw new AddressFormatException( - "Invalid length for address version 0: " + program.length); - } - - int getWitnessVersion() { - return bytes[0] & 0xff; - } - - byte[] getWitnessProgram() { - return convertBits(bytes, 1, bytes.length - 1, 5, 8, false); - } - - static WitnessAddress fromBech32(@Nullable NetworkParameters params, String bech32) - throws AddressFormatException { - Bech32.Bech32Data bechData = Bech32.decode(bech32); - if (params == null) { - for (NetworkParameters p : Networks.get()) { - if (bechData.hrp.equals(WITNESS_ADDRESS_HRP)) - return new WitnessAddress(p, bechData.data); - } - throw new AddressFormatException("Invalid Prefix: No network found for " + bech32); - } else { - if (bechData.hrp.equals(WITNESS_ADDRESS_HRP)) - return new WitnessAddress(params, bechData.data); - throw new AddressFormatException("Wrong Network: " + bechData.hrp); - } - } - - /** - * Helper - */ - private static byte[] convertBits(final byte[] in, final int inStart, final int inLen, final int fromBits, - final int toBits, final boolean pad) throws AddressFormatException { - int acc = 0; - int bits = 0; - ByteArrayOutputStream out = new ByteArrayOutputStream(64); - final int maxv = (1 << toBits) - 1; - final int max_acc = (1 << (fromBits + toBits - 1)) - 1; - for (int i = 0; i < inLen; i++) { - int value = in[i + inStart] & 0xff; - if ((value >>> fromBits) != 0) { - throw new AddressFormatException( - String.format("Input value '%X' exceeds '%d' bit size", value, fromBits)); - } - acc = ((acc << fromBits) | value) & max_acc; - bits += fromBits; - while (bits >= toBits) { - bits -= toBits; - out.write((acc >>> bits) & maxv); - } - } - if (pad) { - if (bits > 0) - out.write((acc << (toBits - bits)) & maxv); - } else if (bits >= fromBits || ((acc << (toBits - bits)) & maxv) != 0) { - throw new AddressFormatException("Could not convert bits, invalid padding"); - } - return out.toByteArray(); - } - } - - - private static class Bech32 { - private static final byte[] CHARSET_REV = { - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 15, -1, 10, 17, - 21, 20, 26, 30, 7, 5, -1, -1, -1, -1, -1, -1, -1, 29, -1, 24, 13, 25, 9, 8, 23, -1, 18, 22, 31, 27, 19, - -1, 1, 0, 3, 16, 11, 28, 12, 14, 6, 4, 2, -1, -1, -1, -1, -1, -1, 29, -1, 24, 13, 25, 9, 8, 23, -1, 18, - 22, 31, 27, 19, -1, 1, 0, 3, 16, 11, 28, 12, 14, 6, 4, 2, -1, -1, -1, -1, -1 - }; - - static class Bech32Data { - final String hrp; - final byte[] data; - - private Bech32Data(final String hrp, final byte[] data) { - this.hrp = hrp; - this.data = data; - } - } - - private static int polymod(final byte[] values) { - int c = 1; - for (byte v_i : values) { - int c0 = (c >>> 25) & 0xff; - c = ((c & 0x1ffffff) << 5) ^ (v_i & 0xff); - if ((c0 & 1) != 0) c ^= 0x3b6a57b2; - if ((c0 & 2) != 0) c ^= 0x26508e6d; - if ((c0 & 4) != 0) c ^= 0x1ea119fa; - if ((c0 & 8) != 0) c ^= 0x3d4233dd; - if ((c0 & 16) != 0) c ^= 0x2a1462b3; - } - return c; - } - - private static byte[] expandHrp(final String hrp) { - int len = hrp.length(); - byte ret[] = new byte[len * 2 + 1]; - for (int i = 0; i < len; ++i) { - int c = hrp.charAt(i) & 0x7f; - ret[i] = (byte) ((c >>> 5) & 0x07); - ret[i + len + 1] = (byte) (c & 0x1f); - } - ret[len] = 0; - return ret; - } - - private static boolean verifyChecksum(final String hrp, final byte[] values) { - byte[] exp = expandHrp(hrp); - byte[] combined = new byte[exp.length + values.length]; - System.arraycopy(exp, 0, combined, 0, exp.length); - System.arraycopy(values, 0, combined, exp.length, values.length); - return polymod(combined) == 1; - } - - public static Bech32Data decode(final String str) throws AddressFormatException { - boolean lower = false, upper = false; - int len = str.length(); - if (len < 8) - throw new AddressFormatException("Input too short: " + len); - if (len > 90) - throw new AddressFormatException("Input too long: " + len); - for (int i = 0; i < len; ++i) { - char c = str.charAt(i); - if (c < 33 || c > 126) throw new AddressFormatException(invalidChar(c, i)); - if (c >= 'a' && c <= 'z') { - if (upper) - throw new AddressFormatException(invalidChar(c, i)); - lower = true; - } - if (c >= 'A' && c <= 'Z') { - if (lower) - throw new AddressFormatException(invalidChar(c, i)); - upper = true; - } - } - final int pos = str.lastIndexOf('1'); - if (pos < 1) throw new AddressFormatException("Invalid Prefix: Missing human-readable part"); - final int dataLen = len - 1 - pos; - if (dataLen < 6) throw new AddressFormatException("Data part too short: " + dataLen); - byte[] values = new byte[dataLen]; - for (int i = 0; i < dataLen; ++i) { - char c = str.charAt(i + pos + 1); - if (CHARSET_REV[c] == -1) throw new AddressFormatException(invalidChar(c, i + pos + 1)); - values[i] = CHARSET_REV[c]; - } - String hrp = str.substring(0, pos).toLowerCase(Locale.ROOT); - if (!verifyChecksum(hrp, values)) throw new AddressFormatException("Invalid Checksum"); - return new Bech32Data(hrp, Arrays.copyOfRange(values, 0, values.length - 6)); - } - - private static String invalidChar(char c, int i) { - return "Invalid character '" + Character.toString(c) + "' at position " + i; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Wownero.java b/assets/src/main/java/bisq/asset/coins/Wownero.java deleted file mode 100644 index b14c7752b85..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Wownero.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Wownero extends Coin { - - public Wownero() { - super("Wownero", "WOW", new RegexAddressValidator("^(Wo)\\d[0-9A-Za-z]{94}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Xuez.java b/assets/src/main/java/bisq/asset/coins/Xuez.java deleted file mode 100644 index 394223d5dc2..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Xuez.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58BitcoinAddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Xuez extends Coin { - - public Xuez() { - super("Xuez", "XUEZ", new XuezAddressValidator()); - } - - - public static class XuezAddressValidator extends Base58BitcoinAddressValidator { - - public XuezAddressValidator() { - super(new XuezParams()); - } - - @Override - public AddressValidationResult validate(String address) { - - if (!address.matches("^[X][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - - return AddressValidationResult.validAddress(); - } - } - - - public static class XuezParams extends NetworkParametersAdapter { - - public XuezParams() { - addressHeader = 48; - p2shHeader = 12; - acceptableAddressCodes = new int[]{addressHeader, p2shHeader}; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Yenten.java b/assets/src/main/java/bisq/asset/coins/Yenten.java deleted file mode 100644 index 7a8a7fb2ea1..00000000000 --- a/assets/src/main/java/bisq/asset/coins/Yenten.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.AddressValidator; -import bisq.asset.Coin; - -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; - -import java.util.Arrays; - -public class Yenten extends Coin { - - public Yenten() { - super("Yenten", "YTN", new YentenAddressValidator()); - } - - - public static class YentenAddressValidator implements AddressValidator { - - private final static String ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; - - public AddressValidationResult validate(String addr) { - if (addr.length() != 34) - return AddressValidationResult.invalidAddress("YTN_Addr_Invalid: Length must be 34!"); - if (!addr.startsWith("Y")) - return AddressValidationResult.invalidAddress("YTN_Addr_Invalid: must start with 'Y'!"); - byte[] decoded = decodeBase58(addr); - if (decoded == null) - return AddressValidationResult.invalidAddress("YTN_Addr_Invalid: Base58 decoder error!"); - - byte[] hash = getSha256(decoded, 21, 2); - if (hash == null || !Arrays.equals(Arrays.copyOfRange(hash, 0, 4), Arrays.copyOfRange(decoded, 21, 25))) - return AddressValidationResult.invalidAddress("YTN_Addr_Invalid: Checksum error!"); - return AddressValidationResult.validAddress(); - } - - private static byte[] decodeBase58(String input) { - byte[] output = new byte[25]; - for (int i = 0; i < input.length(); i++) { - char t = input.charAt(i); - - int p = ALPHABET.indexOf(t); - if (p == -1) - return null; - for (int j = 25 - 1; j >= 0; j--, p /= 256) { - p += 58 * (output[j] & 0xFF); - output[j] = (byte) (p % 256); - } - if (p != 0) - return null; - } - - return output; - } - - private static byte[] getSha256(byte[] data, int len, int recursion) { - if (recursion == 0) - return data; - - try { - MessageDigest md = MessageDigest.getInstance("SHA-256"); - md.update(Arrays.copyOfRange(data, 0, len)); - return getSha256(md.digest(), 32, recursion - 1); - } catch (NoSuchAlgorithmException e) { - return null; - } - } - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/BetterBetting.java b/assets/src/main/java/bisq/asset/tokens/BetterBetting.java deleted file mode 100644 index 88021db8d44..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/BetterBetting.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class BetterBetting extends Erc20Token { - - public BetterBetting() { - super("Better Betting", "BETR"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/DaiStablecoin.java b/assets/src/main/java/bisq/asset/tokens/DaiStablecoin.java deleted file mode 100644 index f0f673c527d..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/DaiStablecoin.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class DaiStablecoin extends Erc20Token { - - public DaiStablecoin() { - super("Dai Stablecoin", "DAI"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/Ellaism.java b/assets/src/main/java/bisq/asset/tokens/Ellaism.java deleted file mode 100644 index 95dc40b29dc..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/Ellaism.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class Ellaism extends Erc20Token { - - public Ellaism() { - super("Ellaism", "ELLA"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/Exceed.java b/assets/src/main/java/bisq/asset/tokens/Exceed.java deleted file mode 100644 index 094bc2ab3bf..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/Exceed.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class Exceed extends Erc20Token { - - public Exceed() { - super("Exceed", "EXC"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/GeoCoin.java b/assets/src/main/java/bisq/asset/tokens/GeoCoin.java deleted file mode 100644 index a3e29529dff..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/GeoCoin.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class GeoCoin extends Erc20Token { - - public GeoCoin() { - super("GeoCoin", "GEO"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/Grans.java b/assets/src/main/java/bisq/asset/tokens/Grans.java deleted file mode 100644 index 08f9e8adc86..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/Grans.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class Grans extends Erc20Token { - - public Grans() { - super("10grans", "GRANS"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/Internext.java b/assets/src/main/java/bisq/asset/tokens/Internext.java deleted file mode 100644 index 71072e5b8bc..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/Internext.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class Internext extends Erc20Token { - - public Internext() { - super("Internext", "INXT"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/Movement.java b/assets/src/main/java/bisq/asset/tokens/Movement.java deleted file mode 100644 index 4594b216c4b..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/Movement.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class Movement extends Erc20Token { - - public Movement() { - super("The Movement", "MVT"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/MyceliumToken.java b/assets/src/main/java/bisq/asset/tokens/MyceliumToken.java deleted file mode 100644 index cc6642f49d9..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/MyceliumToken.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class MyceliumToken extends Erc20Token { - - public MyceliumToken() { - super("Mycelium Token", "MT"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/PascalCoin.java b/assets/src/main/java/bisq/asset/tokens/PascalCoin.java deleted file mode 100644 index d044112f1f9..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/PascalCoin.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class PascalCoin extends Erc20Token { - - public PascalCoin() { - super("Pascal Coin", "PASC"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/PiedPiperCoin.java b/assets/src/main/java/bisq/asset/tokens/PiedPiperCoin.java deleted file mode 100644 index 873c3cb1a5b..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/PiedPiperCoin.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class PiedPiperCoin extends Erc20Token { - - public PiedPiperCoin() { - super("Pied Piper Coin", "PPI"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/Qwark.java b/assets/src/main/java/bisq/asset/tokens/Qwark.java deleted file mode 100644 index e09490bb22d..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/Qwark.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class Qwark extends Erc20Token { - - public Qwark() { - super("Qwark", "QWARK"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/RefToken.java b/assets/src/main/java/bisq/asset/tokens/RefToken.java deleted file mode 100644 index 5bdadeb1dcf..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/RefToken.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class RefToken extends Erc20Token { - - public RefToken() { - super("RefToken", "REF"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/SosCoin.java b/assets/src/main/java/bisq/asset/tokens/SosCoin.java deleted file mode 100644 index 44f6ff2c2be..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/SosCoin.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class SosCoin extends Erc20Token { - - public SosCoin() { - super("SOS Coin", "SOS"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/Verify.java b/assets/src/main/java/bisq/asset/tokens/Verify.java deleted file mode 100644 index bff0aa62509..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/Verify.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class Verify extends Erc20Token { - - public Verify() { - super("Verify", "CRED"); - } -} diff --git a/assets/src/main/java/bisq/asset/tokens/WildToken.java b/assets/src/main/java/bisq/asset/tokens/WildToken.java deleted file mode 100644 index a289dcad88c..00000000000 --- a/assets/src/main/java/bisq/asset/tokens/WildToken.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.Erc20Token; - -public class WildToken extends Erc20Token { - - public WildToken() { - super("WILD Token", "WILD"); - } -} diff --git a/assets/src/main/resources/META-INF/services/bisq.asset.Asset b/assets/src/main/resources/META-INF/services/bisq.asset.Asset index 96349c48e36..98115157687 100644 --- a/assets/src/main/resources/META-INF/services/bisq.asset.Asset +++ b/assets/src/main/resources/META-INF/services/bisq.asset.Asset @@ -2,84 +2,48 @@ # Contents are sorted according to the output of `sort --ignore-case --dictionary-order`. # See bisq.asset.Asset and bisq.asset.AssetRegistry for further details. # See https://bisq.network/list-asset for complete instructions. -bisq.asset.coins.Achievecoin bisq.asset.coins.Actinium -bisq.asset.coins.Angelcoin bisq.asset.coins.Aquachain -bisq.asset.coins.Arto bisq.asset.coins.BitCloud bisq.asset.coins.Bitcoin2 bisq.asset.coins.BitcoinCash bisq.asset.coins.BitcoinClashic bisq.asset.coins.BitcoinCore -bisq.asset.coins.BitcoinGold bisq.asset.coins.BitcoinInstant bisq.asset.coins.Bitcoin$Mainnet bisq.asset.coins.Bitcoin$Regtest bisq.asset.coins.Bitcoin$Testnet -bisq.asset.coins.Bitcore -bisq.asset.coins.BitDaric -bisq.asset.coins.BitZeny bisq.asset.coins.Blur bisq.asset.coins.BSQ$Mainnet bisq.asset.coins.BSQ$Regtest bisq.asset.coins.BSQ$Testnet -bisq.asset.coins.Burstcoin bisq.asset.coins.Byteball -bisq.asset.coins.Cagecoin -bisq.asset.coins.CassubianDetk bisq.asset.coins.Chaucha -bisq.asset.coins.Conceal bisq.asset.coins.Counterparty -bisq.asset.coins.Creativecoin bisq.asset.coins.Credits bisq.asset.coins.Croat -bisq.asset.coins.Cryptonite bisq.asset.coins.Cryptonodes bisq.asset.coins.DACash -bisq.asset.coins.DarkNet bisq.asset.coins.Dash$Mainnet bisq.asset.coins.Dash$Regtest bisq.asset.coins.Dash$Testnet -bisq.asset.coins.Decent bisq.asset.coins.Decred -bisq.asset.coins.DeepOnion -bisq.asset.coins.Devcoin -bisq.asset.coins.Diamond -bisq.asset.coins.DigiMoney -bisq.asset.coins.Dinero bisq.asset.coins.Dogecoin bisq.asset.coins.Dragonglass bisq.asset.coins.DRIP -bisq.asset.coins.DSTRA -bisq.asset.coins.DynamicCoin -bisq.asset.coins.Espers bisq.asset.coins.Ether bisq.asset.coins.EtherClassic bisq.asset.coins.FuturoCoin bisq.asset.coins.Graft bisq.asset.coins.Gridcoin -bisq.asset.coins.InfinityEconomics -bisq.asset.coins.Instacash -bisq.asset.coins.InternetOfPeople bisq.asset.coins.Kekcoin -bisq.asset.coins.Koto -bisq.asset.coins.Kumacoin -bisq.asset.coins.LBRY -bisq.asset.coins.Lisk -bisq.asset.coins.LitecoinExtreme bisq.asset.coins.Litecoin$Mainnet bisq.asset.coins.Litecoin$Regtest bisq.asset.coins.Litecoin$Testnet bisq.asset.coins.Lobstex bisq.asset.coins.Loki -bisq.asset.coins.Madbyte -bisq.asset.coins.Madcoin -bisq.asset.coins.MaidSafeCoin bisq.asset.coins.MaxCoin -bisq.asset.coins.Mazacoin bisq.asset.coins.MegaCoin -bisq.asset.coins.MFCoin bisq.asset.coins.MicroCoin bisq.asset.coins.MobitGlobal bisq.asset.coins.Monero @@ -87,80 +51,32 @@ bisq.asset.coins.Motion bisq.asset.coins.Myriadcoin bisq.asset.coins.Namecoin bisq.asset.coins.Nano -bisq.asset.coins.NavCoin -bisq.asset.coins.NEETCOIN bisq.asset.coins.Neos bisq.asset.coins.NewPowerCoin -bisq.asset.coins.Nilu bisq.asset.coins.Nimiq -bisq.asset.coins.NuBits -bisq.asset.coins.Nxt -bisq.asset.coins.Obsidian -bisq.asset.coins.Octocoin -bisq.asset.coins.Particl -bisq.asset.coins.PepeCash -bisq.asset.coins.Phore bisq.asset.coins.PIVX -bisq.asset.coins.PostCoin -bisq.asset.coins.Pranacoin bisq.asset.coins.PRiVCY bisq.asset.coins.PZDC bisq.asset.coins.QMCoin bisq.asset.coins.QRL bisq.asset.coins.Radium -bisq.asset.coins.ReddCoin -bisq.asset.coins.Ringo -bisq.asset.coins.Roicoin bisq.asset.coins.Ryo -bisq.asset.coins.SafeFileSystemCoin -bisq.asset.coins.Semux -bisq.asset.coins.Siacoin bisq.asset.coins.Siafund -bisq.asset.coins.Sibcoin bisq.asset.coins.Spectrecoin -bisq.asset.coins.SpeedCash bisq.asset.coins.Starwels -bisq.asset.coins.STEEM -bisq.asset.coins.Stellite -bisq.asset.coins.Strayacoin bisq.asset.coins.SUB1X -bisq.asset.coins.Tamadcoin -bisq.asset.coins.Terracoin bisq.asset.coins.Triton bisq.asset.coins.TurtleCoin -bisq.asset.coins.Ubiq bisq.asset.coins.Unobtanium -bisq.asset.coins.VDinar -bisq.asset.coins.Wacoin bisq.asset.coins.Wavi -bisq.asset.coins.WorldMobileCoin -bisq.asset.coins.Wownero -bisq.asset.coins.Xuez -bisq.asset.coins.Yenten bisq.asset.coins.Zcash bisq.asset.coins.Zcoin bisq.asset.coins.ZenCash bisq.asset.coins.Zero bisq.asset.coins.ZeroOneCoin -bisq.asset.tokens.BetterBetting -bisq.asset.tokens.DaiStablecoin -bisq.asset.tokens.Ellaism bisq.asset.tokens.EtherStone -bisq.asset.tokens.Exceed -bisq.asset.tokens.GeoCoin -bisq.asset.tokens.Grans bisq.asset.tokens.GreenBlockCoin -bisq.asset.tokens.Internext bisq.asset.tokens.LikeCoin -bisq.asset.tokens.Movement -bisq.asset.tokens.MyceliumToken -bisq.asset.tokens.PascalCoin -bisq.asset.tokens.PiedPiperCoin bisq.asset.tokens.Pix bisq.asset.tokens.PixelPropertyToken -bisq.asset.tokens.Qwark -bisq.asset.tokens.RefToken -bisq.asset.tokens.SosCoin bisq.asset.tokens.Tari -bisq.asset.tokens.Verify -bisq.asset.tokens.WildToken diff --git a/assets/src/test/java/bisq/asset/coins/AchievecoinTest.java b/assets/src/test/java/bisq/asset/coins/AchievecoinTest.java deleted file mode 100644 index ccdfe87ccb4..00000000000 --- a/assets/src/test/java/bisq/asset/coins/AchievecoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class AchievecoinTest extends AbstractAssetTest { - - public AchievecoinTest() { - super(new Achievecoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("AciV7ZyJDpCg7kGGmbo97VjgjpVZkXRTMD"); - assertValidAddress("ARhW8anWaZtExdK2cQkBwsvsQZ9TkC9bwH"); - assertValidAddress("AcxpGTWX4zFiD8p8hfYw99RXV7MY2y8hs9"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("GWaSW6PHfQKBv8EXV3xiqGG2zxKZh4XYNu"); - assertInvalidAddress("AcxpGTWX4zFiD8p8hfY099RXV7MY2y8hs9"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/AngelcoinTest.java b/assets/src/test/java/bisq/asset/coins/AngelcoinTest.java deleted file mode 100644 index c584261d4dc..00000000000 --- a/assets/src/test/java/bisq/asset/coins/AngelcoinTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class AngelcoinTest extends AbstractAssetTest { - - public AngelcoinTest() { - super(new Angelcoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("AQJTNtWcP7opxuR52Lf5vmoQTC8EHQ6GxV"); - assertValidAddress("ALEK7jttmqtx2ZhXHg69Zr426qKBnzYA9E"); - assertValidAddress("AP1egWUthPoYvZL57aBk4RPqUgjG1fJGn6"); - assertValidAddress("AST3zfvPdZ35npxAVC8ABgVCxxDLwTmAHU"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1AQJTNtWcP7opxuR52Lf5vmoQTC8EHQ6GxV"); - assertInvalidAddress("1ALEK7jttmqtx2ZhXHg69Zr426qKBnzYA9E"); - assertInvalidAddress("1AP1egWUthPoYvZL57aBk4RPqUgjG1fJGn6"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ArtoTest.java b/assets/src/test/java/bisq/asset/coins/ArtoTest.java deleted file mode 100644 index bbd74cbb6d7..00000000000 --- a/assets/src/test/java/bisq/asset/coins/ArtoTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ArtoTest extends AbstractAssetTest { - - public ArtoTest() { - super(new Arto()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("AHT1tiauD1GKvLnSL2RVuug1arn3cvFYw7PX5cUmCkM9MHuBn8yrGoHGHXP8ZV9FUR5Y5ntvhanwCMp8FK5bmLrqKxq7BRj"); - assertValidAddress("AKQqctWaaX3gdtQ54kUZAFhGimquK83i2VEKPituFyZiJnwB5RqRrvtSK24yN8AizhhDvHX8CvkJkRrZtUAYScgRJsDE1jH"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("AHT1tiauD1GKvLnSL2RVuug1arn3cvFYw7PX5cUmCkM9MHuBn8yrGoHGHXP8ZV9FUR5Y5ntvhanwCMp8FK5bmLrqKxq7BR"); - assertInvalidAddress("BKQqctWaaX3gdtQ54kUZAFhGimquK83i2VEKPituFyZiJnwB5RqRrvtSK24yN8AizhhDvHX8CvkJkRrZtUAYScgRJsDE1jH"); - assertInvalidAddress("AHT1tiauD1GKvLnSL2RVuug1arn3cvFYw7PX5cUmCkM9MHuBn8yrGoHGHXP8ZV9FUR5Y5ntvhanwCMp8FK5bmLrqKxq7BRjy"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BitDaricTest.java b/assets/src/test/java/bisq/asset/coins/BitDaricTest.java deleted file mode 100644 index 4face3b7215..00000000000 --- a/assets/src/test/java/bisq/asset/coins/BitDaricTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class BitDaricTest extends AbstractAssetTest { - - public BitDaricTest() { - super(new BitDaric()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("RN8spHmkV6ZtRsquaTJMRZJujRQkkDNh2G"); - assertValidAddress("RTD9jtKybd7TeM597t5MkNof84GPka34R7"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("LAPc1FumbYifKpfBpGbRLuPcLAJwHUxeyu"); - assertInvalidAddress("ROPc1FumbYifKpfBpGbRLuPcLAJwHUxeyu"); - assertInvalidAddress("rN8spHmkV6ZtROquaTJMRZJujRQkkDNh2G"); - assertInvalidAddress("1NxrMzHCjG8X9kqTEZBXUNB5PC58DSXAht"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BitZenyTest.java b/assets/src/test/java/bisq/asset/coins/BitZenyTest.java deleted file mode 100644 index 92db58af32f..00000000000 --- a/assets/src/test/java/bisq/asset/coins/BitZenyTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class BitZenyTest extends AbstractAssetTest { - - public BitZenyTest() { - super(new BitZeny()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("ZryVTPGwpWMrWiqBhcje9NJJku3RgUmVrH"); - assertValidAddress("3CB2kwzn245gaCSfkc7wbe2Myq2kDuQmpu"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("ZryVTPGwpWMrWiqBhcje9NJJku3RgUmVrHH"); - assertInvalidAddress("ZryVTPGwpWMrWiqBhcje9NJJku3RgUmVr"); - assertInvalidAddress("3CB2kwzn245gaCSfkc7wbe2Myq2kDuQmpu#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BitcoinGoldTest.java b/assets/src/test/java/bisq/asset/coins/BitcoinGoldTest.java deleted file mode 100644 index d17b8a3c236..00000000000 --- a/assets/src/test/java/bisq/asset/coins/BitcoinGoldTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class BitcoinGoldTest extends AbstractAssetTest { - - public BitcoinGoldTest() { - super(new BitcoinGold()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("AehvQ57Fp168uY592LCUYBbyNEpiRAPufb"); - assertValidAddress("GWaSW6PHfQKBv8EXV3xiqGG2zxKZh4XYNu"); - assertValidAddress("GLpT8yG2kwPMdMfgwekG6tEAa91PSmN4ZC"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("GVTPWDVJgLxo5ZYSPXPDxE4s7LE5cLRwCc1"); - assertInvalidAddress("1GVTPWDVJgLxo5ZYSPXPDxE4s7LE5cLRwCc"); - assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSH"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BitcoreTest.java b/assets/src/test/java/bisq/asset/coins/BitcoreTest.java deleted file mode 100644 index 7edc8f0fe70..00000000000 --- a/assets/src/test/java/bisq/asset/coins/BitcoreTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class BitcoreTest extends AbstractAssetTest { - - public BitcoreTest() { - super(new Bitcore()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - assertValidAddress("3EktnHQD7RiAE6uzMj2ZifT9YgRrkSgzQX"); - assertValidAddress("1111111111111111111114oLvT2"); - assertValidAddress("1BitcoinEaterAddressDontSendf59kuE"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BurstcoinTest.java b/assets/src/test/java/bisq/asset/coins/BurstcoinTest.java deleted file mode 100644 index b1d6a85443f..00000000000 --- a/assets/src/test/java/bisq/asset/coins/BurstcoinTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class BurstcoinTest extends AbstractAssetWithDefaultValidatorTest { - - public BurstcoinTest() { - super(new Burstcoin()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/CagecoinTest.java b/assets/src/test/java/bisq/asset/coins/CagecoinTest.java deleted file mode 100644 index ba1c3227b16..00000000000 --- a/assets/src/test/java/bisq/asset/coins/CagecoinTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class CagecoinTest extends AbstractAssetTest { - - public CagecoinTest() { - super(new Cagecoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("Db97PgfdBDhXk8DmrDhrUPyydTCELn8YSb"); - assertValidAddress("DYV4h7MTsQ91jqzbg94GFAAUbgdK7RZmpG"); - assertValidAddress("Db5y8iKtZ24DqgYpP2G8685vTWEvk3WACC"); - assertValidAddress("DjiQbPuBLJcVYUtzYMuFuzDwDYwb9mVhaK"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("DNkkfdUvkCDiywYE98MTVp9nQJTgeZAiFr"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/CassubianDetkTest.java b/assets/src/test/java/bisq/asset/coins/CassubianDetkTest.java deleted file mode 100644 index 4ea5f219fe5..00000000000 --- a/assets/src/test/java/bisq/asset/coins/CassubianDetkTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class CassubianDetkTest extends AbstractAssetTest { - - public CassubianDetkTest() { - super(new CassubianDetk()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DM7BjopQ3bGYxSPZ4yhfttxqnDrEkyc3sw"); - assertValidAddress("DB4CaJ81SiT3VtpGC8K1RMirPJZjsmKiZd"); - assertValidAddress("DE7uB1mws1RwYNDPpfEnQ7a4i9tdqqV1Lf"); - assertValidAddress("DJ8FnzVCa8AXEBt5aqPcJubKRzanQKvxkY"); - assertValidAddress("D5QmzfBjwrUyAKtvectJL7kBawfWtwdJqz"); - assertValidAddress("DDRJemKbVtTVV8r2jSG9wevv3JeUj2edAr"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("SSnwqFBiyqK1n4BV7kPX86iesev2NobhEo"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ConcealTest.java b/assets/src/test/java/bisq/asset/coins/ConcealTest.java deleted file mode 100644 index 814adb486a8..00000000000 --- a/assets/src/test/java/bisq/asset/coins/ConcealTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ConcealTest extends AbstractAssetTest { - - public ConcealTest() { - super(new Conceal()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("ccx7EmJzRoQ1CaQKxrJZSL87pT2MEcj2BTVAoznrnaLmUEnvBGSh5RrBngsJS4qa1N8daS7fy6gVgYwj8Ao5H6YQ8vqwDAq8P5"); - assertValidAddress("ccx7Xd3NBbBiQNvv7vMLXmGMHyS8AVB6EhWoHo5EbGfR2Ki9pQnRTfEBt3YxYEVqpUCyJgvPjBYHp8N2yZwA7dqb4PjaGWuvs4"); - assertValidAddress("ccx7XzWDecUfTRKbkXwENTGr53Q9tWNdwGF7C7Nj9ZFybHxEw2DxPeuKgJrzscFKi917SG5wL5AYHGFUrMDqSPnC5Apr8KwbD6"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("CCX7EmJzRoQ1CaQKxrJZSL87pT2MEcj2BTVAoznrnaLmUEnvBGSh5RrBngsJS4qa1N8daS7fy6gVgYwj8Ao5H6YQ8vqwDAq8P5"); - assertInvalidAddress("ccx6EmJzRoQ1CaQKxrJZSL87pT2MEcj2BTVAoznrnaLmUEnvBGSh5RrBngsJS4qa1N8daS7fy6gVgYwj8Ao5H6YQ8vqwDAq8P5"); - assertInvalidAddress("ccx7EmJzRoQ1CaQKxrJZSL87pT2MEcj2BTVAoznrnaLmUEnvBGSh5RrBngsJS4qa1N8daS7fy6gVgYwj8Ao5H6YQ8vqwDAq8P5x"); - assertInvalidAddress("ccx7EmJzRoQ1CaQKxrJZSL87pT2MEcj2BTVAoznrnaLmUEnvBGSh5RrBngsJS4qa1N8daS7fy6gVgYwj8Ao5H6YQ8vqwDAq8P"); - assertInvalidAddress("ccx7EmJzRoQ1CaQKxrJZSL87pT2MEcj2BTVAoznrnaLmUEnvBGSh5RrBngsJS4qa1N8daS7fy6gVgYwj8Ao5H6YQ8vqwDAq8P0"); - assertInvalidAddress("ccx7EmJzRoQ1CaQKxrJZSL87pT2MEcj2BTVAoznrnaLmUEnvBGSh5RrBngsJS4qa1N8daS7fy6gVgYwj8Ao5H6YQ8vqwDAq8PO"); - assertInvalidAddress("ccx7EmJzRoQ1CaQKxrJZSL87pT2MEcj2BTVAoznrnaLmUEnvBGSh5RrBngsJS4qa1N8daS7fy6gVgYwj8Ao5H6YQ8vqwDAq8PI"); - assertInvalidAddress("ccx7EmJzRoQ1CaQKxrJZSL87pT2MEcj2BTVAoznrnaLmUEnvBGSh5RrBngsJS4qa1N8daS7fy6gVgYwj8Ao5H6YQ8vqwDAq8Pl"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/CreativecoinTest.java b/assets/src/test/java/bisq/asset/coins/CreativecoinTest.java deleted file mode 100644 index 90d12e45922..00000000000 --- a/assets/src/test/java/bisq/asset/coins/CreativecoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class CreativecoinTest extends AbstractAssetTest { - - public CreativecoinTest() { - super(new Creativecoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("CGjh99QdHxCE6g9pGUucCJNeUyQPRJr4fE"); - assertValidAddress("FTDYi4GoD3vFYFhEGbuifSZjs6udXVin7B"); - assertValidAddress("361uBxJvmg6f62dMYVM9b7GeR38phkkTyA"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("C7VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("F7VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/CryptoniteTest.java b/assets/src/test/java/bisq/asset/coins/CryptoniteTest.java deleted file mode 100644 index 85c3ee77975..00000000000 --- a/assets/src/test/java/bisq/asset/coins/CryptoniteTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class CryptoniteTest extends AbstractAssetTest { - - public CryptoniteTest() { - super(new Cryptonite()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("CT49DTNo5itqYoAD6XTGyTKbe8z5nGY2D5"); - assertValidAddress("CGTta3M4t3yXu8uRgkKvaWd2d8DQvDPnpL"); - assertValidAddress("Cco3zGiEJMyz3wrndEr6wg5cm1oUAbBoR2"); - assertValidAddress("CPzmjGCDEdQuRffmbpkrYQtSiUAm4oZJgt"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("CT49DTNo5itqYoAD6XTGyTKbe8z5nGY2D4"); - assertInvalidAddress("CGTta3M4t3yXu8uRgkKvaWd2d8DQvDPnpl"); - assertInvalidAddress("Cco3zGiEJMyz3wrndEr6wg5cm1oUAbBoR1"); - assertInvalidAddress("CPzmjGCDEdQuRffmbpkrYQtSiUAm4oZJgT"); - assertInvalidAddress("CT49DTNo5itqYoAD6XTGyTKbe8z5nGY2Da"); - assertInvalidAddress("asdasd"); - assertInvalidAddress("cT49DTNo5itqYoAD6XTGyTKbe8z5nGY2Da"); - assertInvalidAddress("No5itqYoAD6XTGyTKbe8z5nGY2Da"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DSTRATest.java b/assets/src/test/java/bisq/asset/coins/DSTRATest.java deleted file mode 100644 index 92a4a69229d..00000000000 --- a/assets/src/test/java/bisq/asset/coins/DSTRATest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DSTRATest extends AbstractAssetTest { - - public DSTRATest() { - super(new DSTRA()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("FJ4Mt5BKK3TtB3u1kCHq8TWJ9BZSzbpidY"); - assertValidAddress("fMZictACJc9dKhrMxCKRMkWNpq8Ni2ZBx8"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("FJ4Mt5BKK3TtB3u1kCHq8TWJ9BZSzbpidYY"); - assertInvalidAddress("FJ4Mt5BKK3TtB3u1kCHq8TWJ9BZSzbpid"); - assertInvalidAddress("fMZictACJc9dKhrMxCKRMkWNpq8Ni2ZBx8#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DarkNetTest.java b/assets/src/test/java/bisq/asset/coins/DarkNetTest.java deleted file mode 100644 index 190854a5199..00000000000 --- a/assets/src/test/java/bisq/asset/coins/DarkNetTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class DarkNetTest extends AbstractAssetWithDefaultValidatorTest { - - public DarkNetTest() { - super(new DarkNet()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DecentTest.java b/assets/src/test/java/bisq/asset/coins/DecentTest.java deleted file mode 100644 index e35b0dcc9a2..00000000000 --- a/assets/src/test/java/bisq/asset/coins/DecentTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DecentTest extends AbstractAssetTest { - - public DecentTest() { - super(new Decent()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("ud6910c2790bda53bcc53cb131f8fa3bf"); - assertValidAddress("decent-account123"); - assertValidAddress("decent.acc-123"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("my.acc123"); - assertInvalidAddress("123decent"); - assertInvalidAddress("decent_acc"); - assertInvalidAddress("dEcent"); - assertInvalidAddress("dct1"); - assertInvalidAddress("decent-"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DeepOnionTest.java b/assets/src/test/java/bisq/asset/coins/DeepOnionTest.java deleted file mode 100644 index d2df11aa38a..00000000000 --- a/assets/src/test/java/bisq/asset/coins/DeepOnionTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DeepOnionTest extends AbstractAssetTest { - - public DeepOnionTest() { - super(new DeepOnion()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DbkkqXwdiWJNcpfw49f2xzTVEbvL1SYWDm"); - assertValidAddress("DetWWdj7VUTDg1yMhjgRfzvwTf4rRSoywK"); - assertValidAddress("Dr5aiywUzZgYHvrQgrCsk6qhxhFzM8VVUM"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO"); - assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSH"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DevcoinTest.java b/assets/src/test/java/bisq/asset/coins/DevcoinTest.java deleted file mode 100644 index ca8839df889..00000000000 --- a/assets/src/test/java/bisq/asset/coins/DevcoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DevcoinTest extends AbstractAssetTest { - - public DevcoinTest() { - super(new Devcoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("1GJt2nDUrVinYyDFJuWMkkK1Urod5nH72F"); - assertValidAddress("1NAU869PAca5sH2ot6UyxxgK6pbTLRknQo"); - assertValidAddress("1HX3cBKe7hYBJd7xh6L4teNT75iLCZsqZJ"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("21HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSHa"); - assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSHs"); - assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSH#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DiamondTest.java b/assets/src/test/java/bisq/asset/coins/DiamondTest.java deleted file mode 100644 index 385f30d3e97..00000000000 --- a/assets/src/test/java/bisq/asset/coins/DiamondTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DiamondTest extends AbstractAssetTest { - - public DiamondTest() { - super(new Diamond()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("dPZCvVCY9CseU5bhro4Hufh94K27XpMTf7"); - assertValidAddress("dbWDZbHgaK9UzgvdXYibgxgpzkekoQ6fuW"); - assertValidAddress("dGeQ2baUmUA453117VNfTPhQQL7bbfDCwA"); - assertValidAddress("dQqummJgBc5jC1ii1zcbh3dEBHKC3Jpr72"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DigiMoneyTest.java b/assets/src/test/java/bisq/asset/coins/DigiMoneyTest.java deleted file mode 100644 index 1db4f9c8e49..00000000000 --- a/assets/src/test/java/bisq/asset/coins/DigiMoneyTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DigiMoneyTest extends AbstractAssetTest { - - public DigiMoneyTest() { - super(new DigiMoney()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DvaAgcLKrno2AC7kYhHVDCrkhx2xHFpXUf"); - assertValidAddress("E9p49poRmnuLdnu55bzKe7t48xtYv2bRES"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0xmnuL9poRmnuLd55bzKe7t48xtYv2bRES"); - assertInvalidAddress("DvaAgcLKrno2AC7kYhHVDC"); - assertInvalidAddress("19p49poRmnuLdnu55bzKe7t48xtYv2bRES"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DineroTest.java b/assets/src/test/java/bisq/asset/coins/DineroTest.java deleted file mode 100644 index fb8789fd465..00000000000 --- a/assets/src/test/java/bisq/asset/coins/DineroTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DineroTest extends AbstractAssetTest { - - public DineroTest() { - super(new Dinero()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DBmvak2TM8GpeiR3ZEVWAHWFZeiw9FG7jK"); - assertValidAddress("DDWit1CcocL2j3CzfmZgz4bx2DE1h8tugv"); - assertValidAddress("DF8D75bjz6i8azUHgmbV3awpn6tni5W43B"); - assertValidAddress("DJquenkkiFVNpF7vVLg2xKnxCjKwnYb6Ay"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1QbFeFc3iqRYhemqq7VZNX1SN5NtKa8UQFxw"); - assertInvalidAddress("7rrpfJKZC7t1R2FPKrsvfkcE8KBLuSyVYAjt"); - assertInvalidAddress("QFxwQbFeFc3iqRYhek"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DynamicCoinTest.java b/assets/src/test/java/bisq/asset/coins/DynamicCoinTest.java deleted file mode 100644 index 161e8a51349..00000000000 --- a/assets/src/test/java/bisq/asset/coins/DynamicCoinTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class DynamicCoinTest extends AbstractAssetWithDefaultValidatorTest { - - public DynamicCoinTest() { - super(new DynamicCoin()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/EspersTest.java b/assets/src/test/java/bisq/asset/coins/EspersTest.java deleted file mode 100644 index e9eb4cb1952..00000000000 --- a/assets/src/test/java/bisq/asset/coins/EspersTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class EspersTest extends AbstractAssetWithDefaultValidatorTest { - - public EspersTest() { - super(new Espers()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/InfinityEconomicsTest.java b/assets/src/test/java/bisq/asset/coins/InfinityEconomicsTest.java deleted file mode 100644 index 44eca8ac6ae..00000000000 --- a/assets/src/test/java/bisq/asset/coins/InfinityEconomicsTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class InfinityEconomicsTest extends AbstractAssetTest { - - public InfinityEconomicsTest() { - super(new InfinityEconomics()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("XIN-FXFA-LR6Y-QZAW-9V4SX"); - assertValidAddress("XIN-JM2U-U4AE-G7WF-3NP9F"); - assertValidAddress("XIN-2223-2222-KB8Y-22222"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("abcde"); - assertInvalidAddress("XIN-"); - assertInvalidAddress("XIN-FXFA-LR6Y-QZAW-9V4SXA"); - assertInvalidAddress("NIX-FXFA-LR6Y-QZAW-9V4SX"); - assertInvalidAddress("XIN-FXF-LR6Y-QZAW-9V4SX"); - assertInvalidAddress("XIN-FXFA-LR6-QZAW-9V4SX"); - assertInvalidAddress("XIN-FXFA-LR6Y-QZA-9V4SX"); - assertInvalidAddress("XIN-FXFA-LR6Y-QZAW-9V4S"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/InstacashTest.java b/assets/src/test/java/bisq/asset/coins/InstacashTest.java deleted file mode 100644 index aea01bff902..00000000000 --- a/assets/src/test/java/bisq/asset/coins/InstacashTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class InstacashTest extends AbstractAssetTest { - - public InstacashTest() { - super(new Instacash()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("AYx4EqKhomeMu2CTMx1AHdNMkjv6ygnvji"); - assertValidAddress("AcWyvE7texXcCsPLvW1btXhLimrDMpNdAu"); - assertValidAddress("AMfLeLotcvgaHQW374NmHZgs1qXF8P6kjc"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("aYzyJYqhnxF738QjqMqTku5Wft7x4GhVCr"); - assertInvalidAddress("DYzyJYqhnxF738QjqMqTku5Wft7x4GhVCr"); - assertInvalidAddress("xYzyJYqhnxF738QjqMqTku5Wft7x4GhVCr"); - assertInvalidAddress("1YzyJYqhnxF738QjqMqTku5Wft7x4GhVCr"); - assertInvalidAddress( - "AYzyJYqhnxF738QjqMqTku5Wft7x4GhVCr5vcz2NZLUDsoXGp5rAFUjKnb7DdkFbLp7aSpejCcC4FTxsVvDxq9YKSprzf"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/InternetOfPeopleTest.java b/assets/src/test/java/bisq/asset/coins/InternetOfPeopleTest.java deleted file mode 100644 index d607679840a..00000000000 --- a/assets/src/test/java/bisq/asset/coins/InternetOfPeopleTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class InternetOfPeopleTest extends AbstractAssetTest { - - public InternetOfPeopleTest() { - super(new InternetOfPeople()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("pKbz7iRUSiUaTgh4UuwQCnc6pWZnyCGWxM"); - assertValidAddress("pAubDQFjUMaR93V4RjHYFh1YW1dzJ9YPW1"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/KotoTest.java b/assets/src/test/java/bisq/asset/coins/KotoTest.java index 396adbdb56d..305fc6d4c2f 100644 --- a/assets/src/test/java/bisq/asset/coins/KotoTest.java +++ b/assets/src/test/java/bisq/asset/coins/KotoTest.java @@ -19,8 +19,11 @@ import bisq.asset.AbstractAssetTest; +import org.junit.Ignore; import org.junit.Test; +@Ignore +@Deprecated public class KotoTest extends AbstractAssetTest { public KotoTest() { diff --git a/assets/src/test/java/bisq/asset/coins/KumacoinTest.java b/assets/src/test/java/bisq/asset/coins/KumacoinTest.java deleted file mode 100644 index 7e8e0111258..00000000000 --- a/assets/src/test/java/bisq/asset/coins/KumacoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class KumacoinTest extends AbstractAssetTest { - - public KumacoinTest() { - super(new Kumacoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("KKeZ46ELdrcnB9TT8R7GiU3cdd29gA6mQm"); - assertValidAddress("4FmFUcHecwkepmAtwFZoJGJUnQsLMqKY3k"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("KKeZ46ELdrcnB9TT8R7GiU3cdd29gA6mQmm"); - assertInvalidAddress("KKeZ46ELdrcnB9TT8R7GiU3cdd29gA6mQ"); - assertInvalidAddress("4FmFUcHecwkepmAtwFZoJGJUnQsLMqKY3k#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/LBRYTest.java b/assets/src/test/java/bisq/asset/coins/LBRYTest.java deleted file mode 100644 index d34f1347955..00000000000 --- a/assets/src/test/java/bisq/asset/coins/LBRYTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class LBRYTest extends AbstractAssetWithDefaultValidatorTest { - - public LBRYTest() { - super(new LBRY()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/LiskTest.java b/assets/src/test/java/bisq/asset/coins/LiskTest.java deleted file mode 100644 index 50999491eac..00000000000 --- a/assets/src/test/java/bisq/asset/coins/LiskTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class LiskTest extends AbstractAssetWithDefaultValidatorTest { - - public LiskTest() { - super(new Lisk()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/LitecoinExtremeTest.java b/assets/src/test/java/bisq/asset/coins/LitecoinExtremeTest.java deleted file mode 100644 index a3903ef41a2..00000000000 --- a/assets/src/test/java/bisq/asset/coins/LitecoinExtremeTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 . - */ -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class LitecoinExtremeTest extends AbstractAssetTest { - - public LitecoinExtremeTest(){ - super(new LitecoinExtreme()); - } - - @Test - public void testValidAddresses(){ - assertValidAddress("ESLeu9xKjXxNgcTMcgXXZxbSYsMgTtuMN7"); - assertValidAddress("EeC7WvgGovnh1WhuszAs7ywmAdsXhSUNsK"); - assertValidAddress("EX54wDfRkEmhtRhnNvva429UK4W8JAL98j"); - } - - @Test - public void testInvalidAddresses(){ - assertInvalidAddress("EULJtmeDrWpNqNyHy6rhubxY5B8RRF5ZRF1"); - assertInvalidAddress("LEJFUeEcfV5obFAiBsHm2HxJaw3KEb3PD1a"); - assertInvalidAddress(""); - assertInvalidAddress("Ea9XHztCQBTFWNyz4Yneoh7VSFSMF#6oo81"); - assertInvalidAddress("EVCCEVdFNxxbiWDZ7ZGoLEBbi3n2i483ABdsdsdsadfsafdas"); - assertInvalidAddress("EScnDkuPKzhNixJkVrUfytE2U2uVk3nSq9112222"); - assertInvalidAddress("GEc3ZPa5Xza6KuEY8orrfSCTjNGA8cBr6mg"); - assertInvalidAddress("ELwSkdFmd2YMuVtHVk1ywMxY1CiPSXVy9E$%"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MFCoinTest.java b/assets/src/test/java/bisq/asset/coins/MFCoinTest.java deleted file mode 100644 index 27fc519a13a..00000000000 --- a/assets/src/test/java/bisq/asset/coins/MFCoinTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 . - */ -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class MFCoinTest extends AbstractAssetTest { - - public MFCoinTest(){ - super(new MFCoin()); - } - - @Test - public void testValidAddresses(){ - assertValidAddress("Mq7aPKf6xrttnB5so1UVpGMpkmbp7hc47r"); - assertValidAddress("MjQdB9QuDj12Mg5steMNyZzWSTBpSbf7nw"); - assertValidAddress("McFK2Tb4TRqzapbfZnwGGRbjGaRogRS8M6"); - } - - @Test - public void testInvalidAddresses(){ - assertInvalidAddress("McFK2Tb4TRqzapbfZnwGGRbjGaRogRS8M"); - assertInvalidAddress("McFK2Tb4TRqzapbfZnwGGRbjGaRogRS8Mwqdwqdqwdqwdqwdwd"); - assertInvalidAddress(""); - assertInvalidAddress("McFK2Tb4TRqzapbfZnwGGRbjGaRogRS8MMMMMM"); - assertInvalidAddress("cFK2Tb4TRqzapbfZnwGGRbjGaRogRS8M"); - assertInvalidAddress("cFK2Tb4TRqzapbfZnwGGRbjGaRog8"); - assertInvalidAddress("McFK2Tb4TRqzapbfZnwGGRbjGaRogRS8M6wefweew"); - assertInvalidAddress("cFK2Tb4TRqzapbfZnwGGRbjGaRogRS8M6wefweew"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MadbyteTest.java b/assets/src/test/java/bisq/asset/coins/MadbyteTest.java deleted file mode 100644 index af13b87f0ee..00000000000 --- a/assets/src/test/java/bisq/asset/coins/MadbyteTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class MadbyteTest extends AbstractAssetTest { - - public MadbyteTest() { - super(new Madbyte()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("MEvQJ25RDsENWhPHkApDZPXjrFxKUR9mGR"); - assertValidAddress("MMqP3zkuZvHiupEe5DHXjr2NNwhc9EhB2J"); - assertValidAddress("MBegzGWVKWxFk8Eq5NP6veEQAaEnfj3udf"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("MEvQJ25RDsENWhPHkApDZPXjrFxKUR9mGRs"); - assertInvalidAddress("MMqP3zkuZvHiupEe5DHXjr2NNwhc9EhB2"); - assertInvalidAddress("MBegzGWVKWxFk8Eq5NP6veEQAaEnfj3ud#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MadcoinTest.java b/assets/src/test/java/bisq/asset/coins/MadcoinTest.java deleted file mode 100644 index b618979e908..00000000000 --- a/assets/src/test/java/bisq/asset/coins/MadcoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class MadcoinTest extends AbstractAssetTest { - - public MadcoinTest() { - super(new Madcoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("mHUisRLQ4vMXrWrVfGfiEHuD3KZqiUNvzH"); - assertValidAddress("mHbicWaTXNJDbeM6KXCit5JcmvMypwpq8T"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("LzBc4XEFSdzCDcTxAgf6EZXgsZWpztRhe"); - assertInvalidAddress("miCVC7QcY917Cz427qTB"); - assertInvalidAddress("12KYrjTdVGjFMtaxERSk3gphreJ5US8aUP"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MaidSafeCoinTest.java b/assets/src/test/java/bisq/asset/coins/MaidSafeCoinTest.java deleted file mode 100644 index dc6306f185b..00000000000 --- a/assets/src/test/java/bisq/asset/coins/MaidSafeCoinTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class MaidSafeCoinTest extends AbstractAssetWithDefaultValidatorTest { - - public MaidSafeCoinTest() { - super(new MaidSafeCoin()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MazacoinTest.java b/assets/src/test/java/bisq/asset/coins/MazacoinTest.java deleted file mode 100644 index 7263dbc9438..00000000000 --- a/assets/src/test/java/bisq/asset/coins/MazacoinTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class MazacoinTest extends AbstractAssetTest { - - public MazacoinTest() { - super(new Mazacoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("MQHa9PpncezRRyZ7bMeCi2q5TFgQcxBcxL"); - assertValidAddress("MU7YNFPziMRWxCYG3JXJnSsGjPXQNBfxRa"); - assertValidAddress("MSGqB5FYyaZddVKzEAE4rykvBaLT2XQBb5"); - assertValidAddress("ME8wE7VJTVT8AT4xrB4UM1bBUyEJaqVVh2"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/NEETCOINTest.java b/assets/src/test/java/bisq/asset/coins/NEETCOINTest.java deleted file mode 100644 index de9dca330db..00000000000 --- a/assets/src/test/java/bisq/asset/coins/NEETCOINTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class NEETCOINTest extends AbstractAssetTest { - - public NEETCOINTest() { - super(new NEETCOIN()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("NW69jcXy7T4cBsjVZ1GVtjNv4XrNa6ZA4o"); - assertValidAddress("nDjqdvK7X7MgPCtyzEukcRm1LxEy7LEZVh"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("NW69jcXy7T4cBsjVZ1GVtjNv4XrNa6ZA4oo"); - assertInvalidAddress("NW69jcXy7T4cBsjVZ1GVtjNv4XrNa6ZA4"); - assertInvalidAddress("nDjqdvK7X7MgPCtyzEukcRm1LxEy7LEZVh#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/NavCoinTest.java b/assets/src/test/java/bisq/asset/coins/NavCoinTest.java deleted file mode 100644 index a03ea2aed25..00000000000 --- a/assets/src/test/java/bisq/asset/coins/NavCoinTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class NavCoinTest extends AbstractAssetWithDefaultValidatorTest { - - public NavCoinTest() { - super(new NavCoin()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/NiluTest.java b/assets/src/test/java/bisq/asset/coins/NiluTest.java deleted file mode 100644 index cf86b279ff7..00000000000 --- a/assets/src/test/java/bisq/asset/coins/NiluTest.java +++ /dev/null @@ -1,30 +0,0 @@ -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -public class NiluTest extends AbstractAssetTest { - - public NiluTest() { - super(new Nilu()); - } - - @Override - public void testValidAddresses() { - assertValidAddress("0x9f5cca390496647b0a9a90803da67af7b9c11eee"); - assertValidAddress("0x9F5CCA390496647B0A9A90803DA67AF7B9C11EEE"); - assertValidAddress("0x9f5cca390496647B0a9A90803Da67af7b9C11EEE"); - assertValidAddress("9f5cca390496647b0a9a90803da67af7b9c11eee"); - assertValidAddress("9F5CCA390496647B0A9A90803DA67AF7B9C11EEE"); - assertValidAddress("9f5cca390496647B0a9A90803Da67af7b9C11EEE"); - } - - @Override - public void testInvalidAddresses() { - assertInvalidAddress("0x9f5xca390496647b0a9a90803da67af7b9c11eee"); - assertInvalidAddress("0x9F5CCA390496647B0A9A90803DA67AF7B9C11EEE22"); - assertInvalidAddress("0x9F5CCA390496647B0A9A90803DA67AF7B9C11EE"); - assertInvalidAddress("0x9F5ccA390496647b0a9A90803Da67AF7B9C11EEe"); - assertInvalidAddress("9F5CCA390496647B0A9A90803DA67AF7B9C11EEE22"); - assertInvalidAddress("9F5CCA390496647B0A9A90803DA67AF7B9C11EE"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/NuBitsTest.java b/assets/src/test/java/bisq/asset/coins/NuBitsTest.java deleted file mode 100644 index 382ca94cf77..00000000000 --- a/assets/src/test/java/bisq/asset/coins/NuBitsTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class NuBitsTest extends AbstractAssetWithDefaultValidatorTest { - - public NuBitsTest() { - super(new NuBits()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/NxtTest.java b/assets/src/test/java/bisq/asset/coins/NxtTest.java deleted file mode 100644 index a482e0b9538..00000000000 --- a/assets/src/test/java/bisq/asset/coins/NxtTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class NxtTest extends AbstractAssetTest { - - public NxtTest() { - super(new Nxt()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("NXT-JM2U-U4AE-G7WF-3NP9F"); - assertValidAddress("NXT-6UNJ-UMFM-Z525-4S24M"); - assertValidAddress("NXT-2223-2222-KB8Y-22222"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("abcde"); - assertInvalidAddress("NXT-"); - assertInvalidAddress("NXT-JM2U-U4AE-G7WF-3ND9F"); - assertInvalidAddress("NXT-JM2U-U4AE-G7WF-3Np9F"); - assertInvalidAddress("NXT-2222-2222-2222-22222"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ObsidianTest.java b/assets/src/test/java/bisq/asset/coins/ObsidianTest.java index bf7daa80067..8be910b5bd9 100644 --- a/assets/src/test/java/bisq/asset/coins/ObsidianTest.java +++ b/assets/src/test/java/bisq/asset/coins/ObsidianTest.java @@ -19,8 +19,11 @@ import bisq.asset.AbstractAssetTest; +import org.junit.Ignore; import org.junit.Test; +@Ignore +@Deprecated public class ObsidianTest extends AbstractAssetTest { public ObsidianTest() { diff --git a/assets/src/test/java/bisq/asset/coins/OctocoinTest.java b/assets/src/test/java/bisq/asset/coins/OctocoinTest.java deleted file mode 100644 index 23029c44a3c..00000000000 --- a/assets/src/test/java/bisq/asset/coins/OctocoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class OctocoinTest extends AbstractAssetTest { - - public OctocoinTest() { - super(new Octocoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("8TP9rh3SH6n9cSLmV22vnSNNw56LKGpLra"); - assertValidAddress("37NwrYsD1HxQW5zfLTuQcUUXGMPvQgzTSn"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1ANNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i"); - assertInvalidAddress("38NwrYsD1HxQW5zfLT0QcUUXGMPvQgzTSn"); - assertInvalidAddress("8tP9rh3SH6n9cSLmV22vnSNNw56LKGpLrB"); - assertInvalidAddress("8Zbvjr"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ParticlTest.java b/assets/src/test/java/bisq/asset/coins/ParticlTest.java deleted file mode 100644 index 9e7a398553e..00000000000 --- a/assets/src/test/java/bisq/asset/coins/ParticlTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ParticlTest extends AbstractAssetTest { - - public ParticlTest() { - super(new Particl()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("PZdYWHgyhuG7NHVCzEkkx3dcLKurTpvmo6"); - assertValidAddress("RJAPhgckEgRGVPZa9WoGSWW24spskSfLTQ"); - assertValidAddress("PaqMewoBY4vufTkKeSy91su3CNwviGg4EK"); - assertValidAddress("PpWHwrkUKRYvbZbTic57YZ1zjmsV9X9Wu7"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/PepeCashTest.java b/assets/src/test/java/bisq/asset/coins/PepeCashTest.java deleted file mode 100644 index ac5e7c4fcb3..00000000000 --- a/assets/src/test/java/bisq/asset/coins/PepeCashTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class PepeCashTest extends AbstractAssetWithDefaultValidatorTest { - - public PepeCashTest() { - super(new PepeCash()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/PhoreTest.java b/assets/src/test/java/bisq/asset/coins/PhoreTest.java deleted file mode 100644 index 2f7ee49c402..00000000000 --- a/assets/src/test/java/bisq/asset/coins/PhoreTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class PhoreTest extends AbstractAssetTest { - - public PhoreTest() { - super(new Phore()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("PJCKDPyvfbf1yV7mYNeJ8Zb47hKRwVPYDj"); - assertValidAddress("PJPmiib7JzMDiMQBBFCz92erB8iUvJqBqt"); - assertValidAddress("PS6yeJnJUD2pe9fpDQvtm4KkLDwCWpa8ub"); - assertValidAddress("PKfuRcjwzKFq3dbqE9gq8Ztxn922W4GZhm"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("pGXsgFjSMzh1dSqggRvHjPvE3cnwvuXC7s"); - assertInvalidAddress("PKfRRcjwzKFq3dbqE9gq8Ztxn922W4GZhm"); - assertInvalidAddress("PXP75NnwDryYswQb9RaPFBchqLRSvBmDP"); - assertInvalidAddress("PKr3vQ7SkqLELsYGM6qeRumyfPx3366uyU9"); - assertInvalidAddress("PKr3vQ7S"); - assertInvalidAddress("P0r3vQ7SkqLELsYGM6qeRumyfPx3366uyU9"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/PostCoinTest.java b/assets/src/test/java/bisq/asset/coins/PostCoinTest.java deleted file mode 100644 index 5839b2155d5..00000000000 --- a/assets/src/test/java/bisq/asset/coins/PostCoinTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class PostCoinTest extends AbstractAssetWithDefaultValidatorTest { - - public PostCoinTest() { - super(new PostCoin()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/PranacoinTest.java b/assets/src/test/java/bisq/asset/coins/PranacoinTest.java deleted file mode 100644 index d4202f23e63..00000000000 --- a/assets/src/test/java/bisq/asset/coins/PranacoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class PranacoinTest extends AbstractAssetTest { - - public PranacoinTest() { - super(new Pranacoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("3AB1qXhaU3hK5oAPQfwzN3QkM8LxAgL8vB"); - assertValidAddress("PD57PGdk69yioZ6FD3zFNzVUeJhMf6Kti4"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("3AB1qXhaU3hK5oAPQfwzN3QkM8LxAgL8v"); - assertInvalidAddress("PD57PGdk69yioZ6FD3zFNzVUeJhMf6Kti42"); - assertInvalidAddress("PD57PGdk69yioZ6FD3zFNzVUeJhMMMKti4"); - assertInvalidAddress("PD57PG"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ReddCoinTest.java b/assets/src/test/java/bisq/asset/coins/ReddCoinTest.java deleted file mode 100644 index 3df90a1c4a7..00000000000 --- a/assets/src/test/java/bisq/asset/coins/ReddCoinTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class ReddCoinTest extends AbstractAssetWithDefaultValidatorTest { - - public ReddCoinTest() { - super(new ReddCoin()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/RingoTest.java b/assets/src/test/java/bisq/asset/coins/RingoTest.java deleted file mode 100644 index dd59d2e601d..00000000000 --- a/assets/src/test/java/bisq/asset/coins/RingoTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class RingoTest extends AbstractAssetTest { - - public RingoTest() { - super(new Ringo()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("RDSLfRn23XQQRDGaPVYCph9zjcHeBPQsXA"); - assertValidAddress("baXqokPfTAqPeGVjP4NWCjg7xohdsrNZ1G"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("RGZQep8XoEXe6KqZt7rD2YFLxgGTp3nhBTT"); - assertInvalidAddress("RGZQep8XoEXe6KqZt7rD2YFLxgGTp3nhB"); - assertInvalidAddress("baXqokPfTAqPeGVjP4NWCjg7xohdsrNZ1G#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/RoicoinTest.java b/assets/src/test/java/bisq/asset/coins/RoicoinTest.java deleted file mode 100644 index 7970354ce9f..00000000000 --- a/assets/src/test/java/bisq/asset/coins/RoicoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class RoicoinTest extends AbstractAssetTest { - - public RoicoinTest() { - super(new Roicoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("RSdzB2mFpQ6cR3HmEopbaRBjrEMWAwXBYn"); - assertValidAddress("RBQN9ybF5JzsPQdsiHMpGfkA5HpwddKvmU"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1RBQN9ybF5JzsPQdsiHMpGfkA5HpwddKvmU"); - assertInvalidAddress("RBQN9ybF5JzsPQdsiHMpGfkA5HpwddKvmU1"); - assertInvalidAddress("RBQN9ybF5JzsPQdsiHMpGfkA5HpwddKvmU#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/STEEMTest.java b/assets/src/test/java/bisq/asset/coins/STEEMTest.java deleted file mode 100644 index d0f110ff403..00000000000 --- a/assets/src/test/java/bisq/asset/coins/STEEMTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class STEEMTest extends AbstractAssetWithDefaultValidatorTest { - - public STEEMTest() { - super(new STEEM()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SafeFileSystemCoinTest.java b/assets/src/test/java/bisq/asset/coins/SafeFileSystemCoinTest.java deleted file mode 100644 index d049e89a9f1..00000000000 --- a/assets/src/test/java/bisq/asset/coins/SafeFileSystemCoinTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class SafeFileSystemCoinTest extends AbstractAssetWithDefaultValidatorTest { - - public SafeFileSystemCoinTest() { - super(new SafeFileSystemCoin()); - } - -} diff --git a/assets/src/test/java/bisq/asset/coins/SemuxTest.java b/assets/src/test/java/bisq/asset/coins/SemuxTest.java deleted file mode 100644 index 2f2ab3c3270..00000000000 --- a/assets/src/test/java/bisq/asset/coins/SemuxTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class SemuxTest extends AbstractAssetTest { - - public SemuxTest() { - super(new Semux()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x541365fe0818ea0d2d7ab7f7bc79f719f5f72227"); - assertValidAddress("0x1504263ee17446ea5f8b288e1c35d05749c0e47d"); - assertValidAddress("0xe30c510f3efc6e2bf98ff8f725548e6ece568f89"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("541365fe0818ea0d2d7ab7f7bc79f719f5f72227"); - assertInvalidAddress("0x541365fe0818ea0d2d7ab7f7bc79f719f5f7222"); - assertInvalidAddress("0x541365fe0818ea0d2d7ab7f7bc79f719f5f72227abc"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SiacoinTest.java b/assets/src/test/java/bisq/asset/coins/SiacoinTest.java deleted file mode 100644 index 465ba60869c..00000000000 --- a/assets/src/test/java/bisq/asset/coins/SiacoinTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class SiacoinTest extends AbstractAssetWithDefaultValidatorTest { - - public SiacoinTest() { - super(new Siacoin()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SibcoinTest.java b/assets/src/test/java/bisq/asset/coins/SibcoinTest.java deleted file mode 100644 index aa3acea87bf..00000000000 --- a/assets/src/test/java/bisq/asset/coins/SibcoinTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetWithDefaultValidatorTest; - -public class SibcoinTest extends AbstractAssetWithDefaultValidatorTest { - - public SibcoinTest() { - super(new Sibcoin()); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SpeedCashTest.java b/assets/src/test/java/bisq/asset/coins/SpeedCashTest.java deleted file mode 100644 index 9df1f125a3b..00000000000 --- a/assets/src/test/java/bisq/asset/coins/SpeedCashTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class SpeedCashTest extends AbstractAssetTest { - - public SpeedCashTest() { - super(new SpeedCash()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("SNrVzPaFVCQGH4Rdch2EuhoyeWMfgWqk1J"); - assertValidAddress("SXPvGe87gdCFQH8zPU3JdKNGwAa4c6979r"); - assertValidAddress("STGvWjZdkwDeNoYa73cqMrAFFYm5xtJndc"); - assertValidAddress("SVPZMBgDxBVDRisdDZGD1XQwyAz8RBbo3J"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("SVPZMBgDxBVDRisdDZGD1XQwyAz8RBbo3R"); - assertInvalidAddress("mipcBbFg9gMiCh81Kj8tqqdgoZub1ZJRfn"); - assertInvalidAddress("XLfvvLuwjUrz2kf5gghEmUPFE3vFvwfEiL"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/StelliteTest.java b/assets/src/test/java/bisq/asset/coins/StelliteTest.java deleted file mode 100644 index 2ea2ec9b95d..00000000000 --- a/assets/src/test/java/bisq/asset/coins/StelliteTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class StelliteTest extends AbstractAssetTest { - - public StelliteTest() { - super(new Stellite()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("Se3x7sVdvUnMMn2KoYLyYVHMJGRoB2R3V8K3LYuHAiEXgVac7vsmFiXUC8dSpJnjXDfwytKsQJV6HFH8MjwPagTJ2Aha46RZM"); - assertValidAddress("Se3F51UzpbVVnQRx2VNbcjfBoQJfeuyFF353i1jLnCZda9yVN3vy8csbYCESBvf38TFkchH1C1tMY6XHkC8L678K2vLsVZVMU"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("Se3x7svUnMMn2KoYLyYVHMJGRoB2R3V8K3LYuHAiEXgVac7vsmFiXUC8dSpJnjXDfwytKsQJV6HFH8MjwPagTJ2Aha46RZM"); - assertInvalidAddress("SX45GjRnvqheAgCpx4nJeKRjDtS5tYawxEP1GaTj79dTEm21Dtdxex6EHyDqBpofoDqW9k9uQWtkGgbbF8kiRSZ27AksBg7G111"); - assertInvalidAddress("Se3F51UzpbVVnQRx2VNbcjfBoQJfeuyFF353i1jLnCZda9yVN3vy8csbYCESBvf38TFkchH1C1tMY6XHkC8L678K2vLsVZVMUII"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/StrayacoinTest.java b/assets/src/test/java/bisq/asset/coins/StrayacoinTest.java deleted file mode 100644 index 514bf0dac9c..00000000000 --- a/assets/src/test/java/bisq/asset/coins/StrayacoinTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class StrayacoinTest extends AbstractAssetTest { - - public StrayacoinTest() { - super(new Strayacoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("SZHa3vS9ctDJwx3BziaqgN3zQMkYpgyP7f"); - assertValidAddress("SefAdKgyqdg7wd1emhFynPs44d1b2Ca2U1"); - assertValidAddress("SSw6555umxHsPZgE96KoyiEVY3CDuJRBQc"); - assertValidAddress("SYwJ6aXQkmt3ExuaXBSCmyiHRn8fUpxXUi"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("DNkkfdUvkCDiywYE98MTVp9nQJTgeZAiFr"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/TamadcoinTest.java b/assets/src/test/java/bisq/asset/coins/TamadcoinTest.java deleted file mode 100644 index 32989a1c7b2..00000000000 --- a/assets/src/test/java/bisq/asset/coins/TamadcoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class TamadcoinTest extends AbstractAssetTest { - - public TamadcoinTest() { - super(new Tamadcoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("axRpWzdirPe7njtxevGCzhUoDZnsa3ncdHyiebYcDqGwXR6R5CyAa79c3SBHoiuQCYa6aUoARJ3b7FyeGHKDJLoq2es9JwJXd"); - assertValidAddress("axR311K1J6GRmCXmFaegZdc7v4Nv5f3c5Hv6bK84txRMGqeNbuVrr15c3SBHoiuQCYa6aUoARJ3b7FyeGHKDJLoq2es5dqYJy"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("axxB2nfaZ4WLJYXo1p3oGT7NJW2FozRem4YeXj53cbtYA8LwBtusHEoc3SBHoiuQCYa6aUoAKDJLoq2es7hGxPk"); - assertInvalidAddress("asxbELtSdGgcLos9nW4A8aUezxNykDpoL1hARS2s3NaNWMMyJRSNhEfc3SBHoiuQCYa6aUoARJ3b7FyeGHKDJLoq2es7bfLJ1"); - assertInvalidAddress("SxRSb2PovsKLS4JaVXEdH4gQfEhCLFcykYUnsRPtxa"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/TerracoinTest.java b/assets/src/test/java/bisq/asset/coins/TerracoinTest.java deleted file mode 100644 index d28a802bb7b..00000000000 --- a/assets/src/test/java/bisq/asset/coins/TerracoinTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class TerracoinTest extends AbstractAssetTest { - - public TerracoinTest() { - super(new Terracoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("1Bys8pZaKo4GTWcpArMg92cBgYqij8mKXt"); - assertValidAddress("12Ycuof6g5GRyWy56eQ3NvJpwAM8z9pb4g"); - assertValidAddress("1DEBTTVCn1h9bQS9scVP6UjoSsjbtJBvXF"); - assertValidAddress("18s142HdWDfDQXYBpuyMvsU3KHwryLxnCr"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("18s142HdWDfDQXYBpyuMvsU3KHwryLxnCr"); - assertInvalidAddress("18s142HdWDfDQXYBpuyMvsU3KHwryLxnC"); - assertInvalidAddress("8s142HdWDfDQXYBpuyMvsU3KHwryLxnCr"); - assertInvalidAddress("18s142HdWDfDQXYBuyMvsU3KHwryLxnCr"); - assertInvalidAddress("1asdasd"); - assertInvalidAddress("asdasd"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/UbiqTest.java b/assets/src/test/java/bisq/asset/coins/UbiqTest.java deleted file mode 100644 index 013891329b5..00000000000 --- a/assets/src/test/java/bisq/asset/coins/UbiqTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class UbiqTest extends AbstractAssetTest { - - public UbiqTest() { - super(new Ubiq()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/VDinarTest.java b/assets/src/test/java/bisq/asset/coins/VDinarTest.java deleted file mode 100644 index 51f83b1bfa4..00000000000 --- a/assets/src/test/java/bisq/asset/coins/VDinarTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class VDinarTest extends AbstractAssetTest { - - public VDinarTest() { - super(new VDinar()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DG1KpSsSXd3uitgwHaA1i6T1Bj1hWEwAxB"); - assertValidAddress("DPEfTj1C9tTKEqkLPUwtUtCZHd7ViedBmZ"); - assertValidAddress("DLzjxv6Rk9hMYEFHBLqvyT8pkfS43u9Md5"); - assertValidAddress("DHexLqYt4ooDDnpmfEMSa1oJBbaZBxURZH"); - assertValidAddress("DHPybrRc2iqeE4aU8mmXKf8v38JTDyH2V9"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("3CDJNfdWX8m2NwuGUV3nhXHXEeLygMXoAj"); - assertInvalidAddress("DG1KpSsSXd3uitgwHaA1i6T1BjSHORTER"); - assertInvalidAddress("DG1KpSsSXd3uitgwHaA1i6T1Bj1hWLONGER"); - assertInvalidAddress("HG1KpSsSXd3uitgwHaA1i6T1Bj1hWEwAxB"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/WacoinTest.java b/assets/src/test/java/bisq/asset/coins/WacoinTest.java deleted file mode 100644 index 44768a1499d..00000000000 --- a/assets/src/test/java/bisq/asset/coins/WacoinTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class WacoinTest extends AbstractAssetTest { - - public WacoinTest() { - super(new Wacoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("WfEnB3VGrBqW7uamJMymymEwxMBYQKELKY"); - assertValidAddress("WTLWtNN5iJJQyTeMfZMMrfrDvdGZrYGP5U"); - assertValidAddress("WemK3MgwREsEaF4vdtYLxmMqAXp49C2LYQ"); - assertValidAddress("WZggcFY5cJdAxx9unBW5CVPAH8VLTxZ6Ym"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("abcde"); - assertInvalidAddress("mWvZ7nZAUzpRMFp2Bfjxz27Va47nUfB79E"); - assertInvalidAddress("WemK3MgwREsE23fgsadtYLxmMqAX9C2LYQ"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/WorldMobileCoinTest.java b/assets/src/test/java/bisq/asset/coins/WorldMobileCoinTest.java deleted file mode 100644 index 7bb059d50e8..00000000000 --- a/assets/src/test/java/bisq/asset/coins/WorldMobileCoinTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class WorldMobileCoinTest extends AbstractAssetTest { - - public WorldMobileCoinTest() { - super(new WorldMobileCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("wc1qke2es507uz0dcfx7eyvlfuemwys8xem48vp5rw"); - assertValidAddress("wc1qlwsfmqswjnnv20quv203lnksjrgsww3mjhd349"); - assertValidAddress("Wmpfed6ykt9YsFxhGri5KJvKc3r7BC1rVQ"); - assertValidAddress("WSSqzNJvc4X4xWW6WDyUk1oWEeLx45vyRh"); - assertValidAddress("XWJk3GEuNFEn3dGFCi7vTzVuydeGQA9Fnq"); - assertValidAddress("XG1Mc7XvvpR1wQvjeikZwHAjwLvCWQD35u"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("wc1qke2es507uz0dcfx7eyvlfuemwys8xem48vp5rx"); - assertInvalidAddress("Wmpfed6ykt9YsFxhGri5KJvKc3r7BC1rvq"); - assertInvalidAddress("XWJk3GEuNFEn3dGFCi7vTzVuydeGQA9FNQ"); - assertInvalidAddress("0123456789Abcdefghijklmnopqrstuvwxyz"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/WowneroTest.java b/assets/src/test/java/bisq/asset/coins/WowneroTest.java deleted file mode 100644 index 9a0d316185d..00000000000 --- a/assets/src/test/java/bisq/asset/coins/WowneroTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class WowneroTest extends AbstractAssetTest { - - public WowneroTest() { - super(new Wownero()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("Wo3MWeKwtA918DU4c69hVSNgejdWFCRCuWjShRY66mJkU2Hv58eygJWDJS1MNa2Ge5M1WjUkGHuLqHkweDxwZZU42d16v94mP"); - assertValidAddress("Wo4hqQ2xftk9UNDThFPWcQ4VtgC4Ciz7ES3XQ81qdfYjXe17kUxPSGGWwisoxYvZb5Y36DpGVKVLZXHhwjwB7TZr1evyvgMg2"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("Wo3MWeKwtA918DU4c69hVSNgejdWFCRCuWjShRY66mJkU2Hv58eygJWDJS1MNa2Ge5M1WjUkGHuLqHkweDxwZZU42d16v94"); - assertInvalidAddress("Wo3MWeKwtA918DU4c69hVSNgejdWFCRCuWjShRY66mJkU2Hv58eygJWDJS1MNa2Ge5M1WjUkGHuLqHkweDxwZZU42d16v94mP69"); - assertInvalidAddress("694hqQ2xftk9UNDThFPWcQ4VtgC4Ciz7ES3XQ81qdfYjXe17kUxPSGGWwisoxYvZb5Y36DpGVKVLZXHhwjwB7TZr1evyvgMg2"); - assertInvalidAddress("W14hqQ2xftk9UNDThFPWcQ4VtgC4Ciz7ES3XQ81qdfYjXe17kUxPSGGWwisoxYvZb5Y36DpGVKVLZXHhwjwB7TZr1evyvgMg2"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/XuezTest.java b/assets/src/test/java/bisq/asset/coins/XuezTest.java deleted file mode 100644 index 48a01e7389b..00000000000 --- a/assets/src/test/java/bisq/asset/coins/XuezTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class XuezTest extends AbstractAssetTest { - - public XuezTest() { - super(new Xuez()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("XR2vhweAd6iyJcE7bTc89JdthXL7rLwjUt"); - assertValidAddress("XH1p4v6rzVWvWBCwYeVn5CEyPYrrYVWTih"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("tH1p4v6rzVWvWBCwYeVn5CEyPYrrYVWTih"); - assertInvalidAddress("38NwrYsD1HxQW5zfLT0QcUUXGMPvQgzTSn"); - assertInvalidAddress("0123456789"); - assertInvalidAddress("6H1p4v6rzVWvWBCwYeVn"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/YentenTest.java b/assets/src/test/java/bisq/asset/coins/YentenTest.java deleted file mode 100644 index e5a9efeea87..00000000000 --- a/assets/src/test/java/bisq/asset/coins/YentenTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class YentenTest extends AbstractAssetTest { - - public YentenTest() { - super(new Yenten()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("YTgSv7bk5x5p6te3uf3HbUwgnf7zEJM4Jn"); - assertValidAddress("YVz19KtQUfyTP4AJS8sbRBqi7dkGTL2ovd"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("YiTwGuv3opowtPF5w8LUWBXFmaxc9S68ha"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("YVZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO"); - assertInvalidAddress("YiTwGuv3opowtPF5w8LUWBlFmaxc9S68hz"); - assertInvalidAddress("YiTwGuv3opowtPF5w8LUWB0Fmaxc9S68hz"); - assertInvalidAddress("YiTwGuv3opowtPF5w8LUWBIFmaxc9S68hz"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/BetterBettingTest.java b/assets/src/test/java/bisq/asset/tokens/BetterBettingTest.java deleted file mode 100644 index 56107593d6e..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/BetterBettingTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class BetterBettingTest extends AbstractAssetTest { - - public BetterBettingTest() { - super(new BetterBetting()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/DaiStablecoinTest.java b/assets/src/test/java/bisq/asset/tokens/DaiStablecoinTest.java deleted file mode 100644 index d567cce57da..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/DaiStablecoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DaiStablecoinTest extends AbstractAssetTest { - - public DaiStablecoinTest() { - super(new DaiStablecoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/EllaismTest.java b/assets/src/test/java/bisq/asset/tokens/EllaismTest.java deleted file mode 100644 index c98ae2c881e..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/EllaismTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class EllaismTest extends AbstractAssetTest { - - public EllaismTest() { - super(new Ellaism()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a21"); - assertValidAddress("65767ec6d4d3d18a200842352485cdc37cbf3a21"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a216"); - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - assertInvalidAddress("65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/ExceedTest.java b/assets/src/test/java/bisq/asset/tokens/ExceedTest.java deleted file mode 100644 index 1a40fcd805d..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/ExceedTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ExceedTest extends AbstractAssetTest { - - public ExceedTest() { - super(new Exceed()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x76EB3aacCC812c3a09Cab6E3BdE1aD9e83848D0D"); - assertValidAddress("0x47fb54fdab801d02672fa39e4a3e0073c2182f4e"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/GeoCoinTest.java b/assets/src/test/java/bisq/asset/tokens/GeoCoinTest.java deleted file mode 100644 index 61254211c7f..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/GeoCoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class GeoCoinTest extends AbstractAssetTest { - - public GeoCoinTest() { - super(new GeoCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/GransTest.java b/assets/src/test/java/bisq/asset/tokens/GransTest.java deleted file mode 100644 index 28943e864ed..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/GransTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class GransTest extends AbstractAssetTest { - - public GransTest() { - super(new Grans()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/InternextTest.java b/assets/src/test/java/bisq/asset/tokens/InternextTest.java deleted file mode 100644 index 718bbd7e79f..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/InternextTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class InternextTest extends AbstractAssetTest { - - public InternextTest() { - super(new Internext()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/MovementTest.java b/assets/src/test/java/bisq/asset/tokens/MovementTest.java deleted file mode 100644 index c63e59e79b4..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/MovementTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class MovementTest extends AbstractAssetTest { - - public MovementTest() { - super(new Ellaism()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/MyceliumTokenTest.java b/assets/src/test/java/bisq/asset/tokens/MyceliumTokenTest.java deleted file mode 100644 index 4e268a26595..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/MyceliumTokenTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class MyceliumTokenTest extends AbstractAssetTest { - - public MyceliumTokenTest() { - super(new MyceliumToken()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a21"); - assertValidAddress("65767ec6d4d3d18a200842352485cdc37cbf3a21"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a216"); - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - assertInvalidAddress("65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/PascalCoinTest.java b/assets/src/test/java/bisq/asset/tokens/PascalCoinTest.java deleted file mode 100644 index d7ce0f05a91..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/PascalCoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class PascalCoinTest extends AbstractAssetTest { - - public PascalCoinTest() { - super(new PascalCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a21"); - assertValidAddress("65767ec6d4d3d18a200842352485cdc37cbf3a21"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a216"); - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - assertInvalidAddress("65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/PiedPiperCoinTest.java b/assets/src/test/java/bisq/asset/tokens/PiedPiperCoinTest.java deleted file mode 100644 index e839d9997c0..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/PiedPiperCoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class PiedPiperCoinTest extends AbstractAssetTest { - - public PiedPiperCoinTest() { - super(new PiedPiperCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/QwarkTest.java b/assets/src/test/java/bisq/asset/tokens/QwarkTest.java deleted file mode 100644 index fbf81e64b81..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/QwarkTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class QwarkTest extends AbstractAssetTest { - - public QwarkTest() { - super(new Qwark()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/RefTokenTest.java b/assets/src/test/java/bisq/asset/tokens/RefTokenTest.java deleted file mode 100644 index 23cc9a6f38e..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/RefTokenTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class RefTokenTest extends AbstractAssetTest { - - public RefTokenTest() { - super(new BetterBetting()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/SosCoinTest.java b/assets/src/test/java/bisq/asset/tokens/SosCoinTest.java deleted file mode 100644 index 7a105e40573..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/SosCoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class SosCoinTest extends AbstractAssetTest { - - public SosCoinTest() { - super(new SosCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/VerifyTest.java b/assets/src/test/java/bisq/asset/tokens/VerifyTest.java deleted file mode 100644 index 352771cb838..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/VerifyTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class VerifyTest extends AbstractAssetTest { - - public VerifyTest() { - super(new Verify()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a21"); - assertValidAddress("65767ec6d4d3d18a200842352485cdc37cbf3a21"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a216"); - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - assertInvalidAddress("65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/WildTokenTest.java b/assets/src/test/java/bisq/asset/tokens/WildTokenTest.java deleted file mode 100644 index d44c83d3cb6..00000000000 --- a/assets/src/test/java/bisq/asset/tokens/WildTokenTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class WildTokenTest extends AbstractAssetTest { - - public WildTokenTest() { - super(new WildToken()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/core/src/main/java/bisq/core/trade/statistics/TradeStatisticsManager.java b/core/src/main/java/bisq/core/trade/statistics/TradeStatisticsManager.java index b47cb5dad4f..3563e2d3e3b 100644 --- a/core/src/main/java/bisq/core/trade/statistics/TradeStatisticsManager.java +++ b/core/src/main/java/bisq/core/trade/statistics/TradeStatisticsManager.java @@ -294,6 +294,29 @@ private boolean isWarmingUp(String code) { // v0.8.0 Aug 22 2018 // none added + // v0.9.0 (Date TBD) + newlyAdded.add("ACM"); + newlyAdded.add("BTC2"); + newlyAdded.add("BLUR"); + newlyAdded.add("CHA"); + newlyAdded.add("CROAT"); + newlyAdded.add("DRGL"); + newlyAdded.add("ETHS"); + newlyAdded.add("GBK"); + newlyAdded.add("KEK"); + newlyAdded.add("LOKI"); + newlyAdded.add("MBGL"); + newlyAdded.add("NEOS"); + newlyAdded.add("PZDC"); + newlyAdded.add("QMCoin"); + newlyAdded.add("QRL"); + newlyAdded.add("RADS"); + newlyAdded.add("RYO"); + newlyAdded.add("SUB1X"); + newlyAdded.add("MAI"); + newlyAdded.add("TRTL"); + newlyAdded.add("ZER"); + return newlyAdded.contains(code); } }