mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Merge pull request #1967 from ManfredKarrer/remove_not-traded-assets
Remove not traded assets
This commit is contained in:
commit
da8b5fcf9d
59 changed files with 9 additions and 2315 deletions
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
|
||||
public class Aquachain extends Coin {
|
||||
|
||||
public Aquachain() {
|
||||
super("Aquachain", "AQUA", new RegexAddressValidator("^(0x)?[0-9a-fA-F]{40}$"));
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AddressValidationResult;
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class BitCloud extends Coin {
|
||||
|
||||
public BitCloud() {
|
||||
super("BitCloud", "BTDX", new BitCloudAddressValidator());
|
||||
}
|
||||
|
||||
|
||||
public static class BitCloudAddressValidator extends Base58BitcoinAddressValidator {
|
||||
|
||||
public BitCloudAddressValidator() {
|
||||
super(new BitCloudParams());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AddressValidationResult validate(String address) {
|
||||
if (!address.matches("^[B][a-km-zA-HJ-NP-Z1-9]{25,34}$"))
|
||||
return AddressValidationResult.invalidStructure();
|
||||
|
||||
return super.validate(address);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class BitCloudParams extends NetworkParametersAdapter {
|
||||
|
||||
public BitCloudParams() {
|
||||
addressHeader = 25;
|
||||
p2shHeader = 5;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
|
||||
public class BitcoinCore extends Coin {
|
||||
|
||||
public BitcoinCore() {
|
||||
super("Bitcoin Core", "BTCC", new Base58BitcoinAddressValidator());
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class BitcoinInstant extends Coin {
|
||||
|
||||
public BitcoinInstant() {
|
||||
super("Bitcoin Instant", "BTI", new Base58BitcoinAddressValidator(new BitcoinInstantParams()));
|
||||
}
|
||||
|
||||
|
||||
public static class BitcoinInstantParams extends NetworkParametersAdapter {
|
||||
|
||||
public BitcoinInstantParams() {
|
||||
addressHeader = 0x66;
|
||||
p2shHeader = 0x05;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AddressValidationResult;
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class Credits extends Coin {
|
||||
|
||||
public Credits() {
|
||||
super("Credits", "CRDS", new CreditsAddressValidator());
|
||||
}
|
||||
|
||||
|
||||
public static class CreditsAddressValidator extends Base58BitcoinAddressValidator {
|
||||
|
||||
public CreditsAddressValidator() {
|
||||
super(new CreditsParams());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AddressValidationResult validate(String address) {
|
||||
if (!address.matches("^[C][a-km-zA-HJ-NP-Z1-9]{25,34}$"))
|
||||
return AddressValidationResult.invalidStructure();
|
||||
|
||||
return super.validate(address);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class CreditsParams extends NetworkParametersAdapter {
|
||||
|
||||
public CreditsParams() {
|
||||
addressHeader = 28;
|
||||
p2shHeader = 5;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AddressValidationResult;
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class Cryptonodes extends Coin {
|
||||
|
||||
public Cryptonodes() {
|
||||
super("Cryptonodes", "CNMC", new CryptonodesAddressValidator());
|
||||
}
|
||||
|
||||
|
||||
public static class CryptonodesAddressValidator extends Base58BitcoinAddressValidator {
|
||||
|
||||
public CryptonodesAddressValidator() {
|
||||
super(new CryptonodesParams());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AddressValidationResult validate(String address) {
|
||||
if (!address.matches("^[c][a-km-zA-HJ-NP-Z1-9]{25,34}$"))
|
||||
return AddressValidationResult.invalidStructure();
|
||||
|
||||
return super.validate(address);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class CryptonodesParams extends NetworkParametersAdapter {
|
||||
|
||||
public CryptonodesParams() {
|
||||
addressHeader = 88;
|
||||
p2shHeader = 16;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class DACash extends Coin {
|
||||
|
||||
public DACash() {
|
||||
super("DACash", "DAC", new Base58BitcoinAddressValidator(new DACashParams()));
|
||||
}
|
||||
|
||||
|
||||
public static class DACashParams extends NetworkParametersAdapter {
|
||||
|
||||
public DACashParams() {
|
||||
addressHeader = 0x1f;
|
||||
p2shHeader = 0x5a;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AddressValidationResult;
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class DRIP extends Coin {
|
||||
|
||||
public DRIP() {
|
||||
super("DRIP", "DRIP", new DRIPAddressValidator());
|
||||
}
|
||||
|
||||
|
||||
public static class DRIPAddressValidator extends Base58BitcoinAddressValidator {
|
||||
|
||||
public DRIPAddressValidator() {
|
||||
super(new DRIPParams());
|
||||
}
|
||||
|
||||
@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 DRIPParams extends NetworkParametersAdapter {
|
||||
|
||||
public DRIPParams() {
|
||||
addressHeader = 30;
|
||||
p2shHeader = 13;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -20,6 +20,7 @@ package bisq.asset.coins;
|
|||
import bisq.asset.Coin;
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
|
||||
// ICO token
|
||||
public class Dragonglass extends Coin {
|
||||
|
||||
public Dragonglass() {
|
||||
|
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
|
||||
public class Graft extends Coin {
|
||||
|
||||
public Graft() {
|
||||
super("Graft", "GRFT", new RegexAddressValidator("^G[0-9AB][1-9A-HJ-NP-Za-km-z]{93}$"));
|
||||
}
|
||||
}
|
||||
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
|
||||
public class Lobstex extends Coin {
|
||||
|
||||
public Lobstex() {
|
||||
super("Lobstex", "LOBS", new RegexAddressValidator("^L[1-9A-Za-z]{26,33}$"));
|
||||
}
|
||||
}
|
|
@ -20,6 +20,7 @@ package bisq.asset.coins;
|
|||
import bisq.asset.Coin;
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
|
||||
// ICO token
|
||||
public class Loki extends Coin {
|
||||
|
||||
public Loki() {
|
||||
|
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
|
||||
public class MaxCoin extends Coin {
|
||||
|
||||
public MaxCoin() {
|
||||
super("MaxCoin", "MAX", new RegexAddressValidator("^m[1-9A-Za-z]{26,33}$"));
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AddressValidationResult;
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class MegaCoin extends Coin {
|
||||
|
||||
public MegaCoin() {
|
||||
super("MegaCoin", "MEC", new MegaCoinAddressValidator());
|
||||
}
|
||||
|
||||
|
||||
public static class MegaCoinAddressValidator extends Base58BitcoinAddressValidator {
|
||||
|
||||
public MegaCoinAddressValidator() {
|
||||
super(new MegaCoinParams());
|
||||
}
|
||||
|
||||
@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 MegaCoinParams extends NetworkParametersAdapter {
|
||||
|
||||
public MegaCoinParams() {
|
||||
addressHeader = 50;
|
||||
p2shHeader = 5;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
|
||||
public class MicroCoin extends Coin {
|
||||
|
||||
public MicroCoin() {
|
||||
super("MicroCoin", "MCC", new RegexAddressValidator("([0-9]+\\-[0-9]{2})"));
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class Motion extends Coin {
|
||||
|
||||
public Motion() {
|
||||
super("Motion", "XMN", new Base58BitcoinAddressValidator(new MotionParams()));
|
||||
}
|
||||
|
||||
|
||||
public static class MotionParams extends NetworkParametersAdapter {
|
||||
|
||||
public MotionParams() {
|
||||
addressHeader = 50;
|
||||
p2shHeader = 18;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class Myriadcoin extends Coin {
|
||||
|
||||
public Myriadcoin() {
|
||||
super("Myriadcoin", "XMY", new Base58BitcoinAddressValidator(new MyriadcoinParams()));
|
||||
}
|
||||
|
||||
|
||||
public static class MyriadcoinParams extends NetworkParametersAdapter {
|
||||
|
||||
public MyriadcoinParams() {
|
||||
super();
|
||||
addressHeader = 50;
|
||||
p2shHeader = 9;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,30 +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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
|
||||
public class Nano extends Coin {
|
||||
|
||||
private static final String NANO_REGEX = "^(nano_|xrb_)[13456789abcdefghijkmnopqrstuwxyz]{60}";
|
||||
|
||||
public Nano() {
|
||||
super("Nano", "NANO", new RegexAddressValidator(NANO_REGEX));
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AddressValidationResult;
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class NewPowerCoin extends Coin {
|
||||
|
||||
public NewPowerCoin() {
|
||||
super("NewPowerCoin", "NPW", new NewPowerCoinAddressValidator());
|
||||
}
|
||||
|
||||
|
||||
public static class NewPowerCoinAddressValidator extends Base58BitcoinAddressValidator {
|
||||
|
||||
public NewPowerCoinAddressValidator() {
|
||||
super(new NewPoserCoinParams());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AddressValidationResult validate(String address) {
|
||||
if (!address.matches("^[N][a-km-zA-HJ-NP-Z1-9]{25,34}$"))
|
||||
return AddressValidationResult.invalidStructure();
|
||||
|
||||
return super.validate(address);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class NewPoserCoinParams extends NetworkParametersAdapter {
|
||||
|
||||
public NewPoserCoinParams() {
|
||||
addressHeader = 53;
|
||||
p2shHeader = 13;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,63 +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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AddressValidationResult;
|
||||
import bisq.asset.AddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
|
||||
public class Nimiq extends Coin {
|
||||
public Nimiq() {
|
||||
super("Nimiq", "NIM", new NimiqAddressValidator());
|
||||
}
|
||||
|
||||
/**
|
||||
* Nimiq Address validation code derived from the original JavaScript implementation
|
||||
*/
|
||||
public static class NimiqAddressValidator implements AddressValidator {
|
||||
@Override
|
||||
public AddressValidationResult validate(String address) {
|
||||
address = address.replace(" ", "");
|
||||
if (!address.matches("NQ[0-9]{2}[0-9A-HJ-NP-VXY]{32}")) {
|
||||
return AddressValidationResult.invalidStructure();
|
||||
}
|
||||
if (ibanCheck(address.substring(4) + address.substring(0, 4)) != 1) {
|
||||
return AddressValidationResult.invalidAddress("Checksum invalid");
|
||||
}
|
||||
return AddressValidationResult.validAddress();
|
||||
}
|
||||
|
||||
private int ibanCheck(String str) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (char c : str.toUpperCase().toCharArray()) {
|
||||
if (c >= 48 && c <= 57) {
|
||||
sb.append(c);
|
||||
} else {
|
||||
sb.append(Integer.toString(c - 55));
|
||||
}
|
||||
}
|
||||
String num = sb.toString();
|
||||
int tmp = 0;
|
||||
for (int i = 0; i < Math.ceil(num.length() / 6.0); i++) {
|
||||
tmp = Integer.parseInt(tmp + num.substring(i * 6, Math.min((i + 1) * 6, num.length()))) % 97;
|
||||
}
|
||||
|
||||
return tmp;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
/**
|
||||
* @deprecated for insufficent trading
|
||||
*/
|
||||
@Deprecated(since = "0.9.0")
|
||||
public class Obsidian extends Coin {
|
||||
|
||||
public Obsidian() {
|
||||
super("Obsidian", "ODN", new Base58BitcoinAddressValidator(new ObsidianParams()));
|
||||
}
|
||||
|
||||
|
||||
public static class ObsidianParams extends NetworkParametersAdapter {
|
||||
|
||||
public ObsidianParams() {
|
||||
addressHeader = 75;
|
||||
p2shHeader = 125;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class PRiVCY extends Coin {
|
||||
|
||||
public PRiVCY() {
|
||||
super("PRiVCY", "PRIV", new Base58BitcoinAddressValidator(new PRiVCYParams()));
|
||||
}
|
||||
|
||||
|
||||
public static class PRiVCYParams extends NetworkParametersAdapter {
|
||||
|
||||
public PRiVCYParams() {
|
||||
addressHeader = 55;
|
||||
p2shHeader = 78;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -20,6 +20,7 @@ package bisq.asset.coins;
|
|||
import bisq.asset.Coin;
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
|
||||
// ICO token
|
||||
public class QRL extends Coin {
|
||||
|
||||
public QRL() {
|
||||
|
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
|
||||
public class Triton extends Coin {
|
||||
|
||||
public Triton() {
|
||||
super("Triton", "TRIT", new RegexAddressValidator("^(T)[0-9A-Za-z]{96}$"));
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AddressValidationResult;
|
||||
import bisq.asset.Base58BitcoinAddressValidator;
|
||||
import bisq.asset.Coin;
|
||||
import bisq.asset.NetworkParametersAdapter;
|
||||
|
||||
public class Wavi extends Coin {
|
||||
|
||||
public Wavi() {
|
||||
super("Wavi", "WAVI", new WaviAddressValidator());
|
||||
}
|
||||
|
||||
|
||||
public static class WaviAddressValidator extends Base58BitcoinAddressValidator {
|
||||
|
||||
public WaviAddressValidator() {
|
||||
super(new WaviParams());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AddressValidationResult validate(String address) {
|
||||
if (!address.matches("^[W][a-km-zA-HJ-NP-Z1-9]{25,34}$"))
|
||||
return AddressValidationResult.invalidStructure();
|
||||
|
||||
return super.validate(address);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class WaviParams extends NetworkParametersAdapter {
|
||||
|
||||
public WaviParams() {
|
||||
addressHeader = 73;
|
||||
p2shHeader = 15;
|
||||
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -19,6 +19,7 @@ package bisq.asset.tokens;
|
|||
|
||||
import bisq.asset.Erc20Token;
|
||||
|
||||
// ICO token
|
||||
public class GreenBlockCoin extends Erc20Token {
|
||||
|
||||
public GreenBlockCoin() {
|
||||
|
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.tokens;
|
||||
|
||||
import bisq.asset.Erc20Token;
|
||||
|
||||
public class LikeCoin extends Erc20Token {
|
||||
|
||||
public LikeCoin() {
|
||||
super("LikeCoin", "LIKE");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.tokens;
|
||||
|
||||
import bisq.asset.Erc20Token;
|
||||
|
||||
public class Pix extends Erc20Token {
|
||||
|
||||
public Pix() {
|
||||
super("Pix", "PIX");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.tokens;
|
||||
|
||||
import bisq.asset.Erc20Token;
|
||||
|
||||
public class PixelPropertyToken extends Erc20Token {
|
||||
|
||||
public PixelPropertyToken() {
|
||||
super("PixelPropertyToken", "PXL");
|
||||
}
|
||||
}
|
|
@ -1,32 +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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* CryptoTari is a stellar token issued by account:
|
||||
* GD7UVDDJHJYKUXB4SJFIC6VJDQ4YADQCMRN3KLHJFV4H6NIUAEREVCO7
|
||||
* block explorer: https://stellarchain.io/
|
||||
*/
|
||||
|
||||
package bisq.asset.tokens;
|
||||
|
||||
import bisq.asset.RegexAddressValidator;
|
||||
import bisq.asset.Token;
|
||||
|
||||
public class Tari extends Token {
|
||||
|
||||
public Tari() {
|
||||
super("CryptoTari", "TARI", new RegexAddressValidator("^[a-zA-Z0-9]{56}$"));
|
||||
}
|
||||
}
|
|
@ -3,13 +3,9 @@
|
|||
# See bisq.asset.Asset and bisq.asset.AssetRegistry for further details.
|
||||
# See https://bisq.network/list-asset for complete instructions.
|
||||
bisq.asset.coins.Actinium
|
||||
bisq.asset.coins.Aquachain
|
||||
bisq.asset.coins.BitCloud
|
||||
bisq.asset.coins.Bitcoin2
|
||||
bisq.asset.coins.BitcoinCash
|
||||
bisq.asset.coins.BitcoinClashic
|
||||
bisq.asset.coins.BitcoinCore
|
||||
bisq.asset.coins.BitcoinInstant
|
||||
bisq.asset.coins.BitcoinRhodium
|
||||
bisq.asset.coins.Bitcoin$Mainnet
|
||||
bisq.asset.coins.Bitcoin$Regtest
|
||||
|
@ -21,45 +17,29 @@ bisq.asset.coins.BSQ$Testnet
|
|||
bisq.asset.coins.Byteball
|
||||
bisq.asset.coins.Chaucha
|
||||
bisq.asset.coins.Counterparty
|
||||
bisq.asset.coins.Credits
|
||||
bisq.asset.coins.Croat
|
||||
bisq.asset.coins.Cryptonodes
|
||||
bisq.asset.coins.DACash
|
||||
bisq.asset.coins.Dash$Mainnet
|
||||
bisq.asset.coins.Dash$Regtest
|
||||
bisq.asset.coins.Dash$Testnet
|
||||
bisq.asset.coins.Decred
|
||||
bisq.asset.coins.Dogecoin
|
||||
bisq.asset.coins.Dragonglass
|
||||
bisq.asset.coins.DRIP
|
||||
bisq.asset.coins.Ether
|
||||
bisq.asset.coins.EtherClassic
|
||||
bisq.asset.coins.FuturoCoin
|
||||
bisq.asset.coins.Graft
|
||||
bisq.asset.coins.Gridcoin
|
||||
bisq.asset.coins.Kekcoin
|
||||
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.Mask
|
||||
bisq.asset.coins.MaxCoin
|
||||
bisq.asset.coins.MegaCoin
|
||||
bisq.asset.coins.MicroCoin
|
||||
bisq.asset.coins.MobitGlobal
|
||||
bisq.asset.coins.Monero
|
||||
bisq.asset.coins.MonetaryUnit
|
||||
bisq.asset.coins.Motion
|
||||
bisq.asset.coins.MoX
|
||||
bisq.asset.coins.Myriadcoin
|
||||
bisq.asset.coins.Namecoin
|
||||
bisq.asset.coins.Nano
|
||||
bisq.asset.coins.Neos
|
||||
bisq.asset.coins.NewPowerCoin
|
||||
bisq.asset.coins.Nimiq
|
||||
bisq.asset.coins.PIVX
|
||||
bisq.asset.coins.PRiVCY
|
||||
bisq.asset.coins.PZDC
|
||||
bisq.asset.coins.QMCoin
|
||||
bisq.asset.coins.QRL
|
||||
|
@ -69,10 +49,8 @@ bisq.asset.coins.Siafund
|
|||
bisq.asset.coins.Spectrecoin
|
||||
bisq.asset.coins.Starwels
|
||||
bisq.asset.coins.SUB1X
|
||||
bisq.asset.coins.Triton
|
||||
bisq.asset.coins.TurtleCoin
|
||||
bisq.asset.coins.Unobtanium
|
||||
bisq.asset.coins.Wavi
|
||||
bisq.asset.coins.Zcash
|
||||
bisq.asset.coins.Zcoin
|
||||
bisq.asset.coins.ZenCash
|
||||
|
@ -80,7 +58,3 @@ bisq.asset.coins.Zero
|
|||
bisq.asset.coins.ZeroOneCoin
|
||||
bisq.asset.tokens.EtherStone
|
||||
bisq.asset.tokens.GreenBlockCoin
|
||||
bisq.asset.tokens.LikeCoin
|
||||
bisq.asset.tokens.Pix
|
||||
bisq.asset.tokens.PixelPropertyToken
|
||||
bisq.asset.tokens.Tari
|
||||
|
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class AquachainTest extends AbstractAssetTest {
|
||||
|
||||
public AquachainTest() {
|
||||
super(new Aquachain());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226");
|
||||
assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266");
|
||||
assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g");
|
||||
assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g");
|
||||
}
|
||||
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class BitCloudTest extends AbstractAssetTest {
|
||||
|
||||
public BitCloudTest() {
|
||||
super(new BitCloud());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("B7dtuCkeYcQQiTdr9wAK7HZtmvvrM24jEH");
|
||||
assertValidAddress("BGp8DmF5wwpaDUsK9Mi3SByTDuvgy6XJGS");
|
||||
assertValidAddress("BDL6jpyNge8VB8LL8dEDX1bxfZ3jHGYzS3");
|
||||
assertValidAddress("BKuvEvMrXmPFPC3YGGHHnZoTVYxeddxAjC");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq");
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO");
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek#");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class BitcoinCoreTest extends AbstractAssetTest {
|
||||
|
||||
public BitcoinCoreTest() {
|
||||
super(new BitcoinCore());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSH");
|
||||
assertValidAddress("1MEbUJ5v5MdDEqFJGz4SZp58KkaLdmXZ85");
|
||||
assertValidAddress("34dvotXMg5Gxc37TBVV2e5GUAfCFu7Ms4g");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("21HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSHa");
|
||||
assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSHs");
|
||||
assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSH#");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class BitcoinInstantTest extends AbstractAssetTest {
|
||||
|
||||
public BitcoinInstantTest() {
|
||||
super(new BitcoinInstant());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("iG4DCE2RKHH47FcguJsfKXKuF4sdQ519Tt");
|
||||
assertValidAddress("i83W3SJH4KVfb94kprXRVXaoLYajFsNeGx");
|
||||
assertValidAddress("iDpT25zn3um3kpQCE3ZuMK6gmHviixgFvQ");
|
||||
assertValidAddress("iNdhv889Gqp67qdgsTc8K9zBfmqXvGLrtc");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJXX");
|
||||
assertInvalidAddress("12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJ");
|
||||
assertInvalidAddress("12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJ#");
|
||||
assertInvalidAddress("12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX");
|
||||
assertInvalidAddress("iG4DCE2RKHH47FcguJsfKXKuF4sdQ519Ttt");
|
||||
assertInvalidAddress("iG4DCE2RKHH47FcguJsfKXKuF4sdQ519T");
|
||||
assertInvalidAddress("iG4DCE2RKHH47FcguJsfKXKuF4sdQ519T#");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
|
||||
public class CreditsTest extends AbstractAssetTest {
|
||||
|
||||
public CreditsTest() {
|
||||
super(new Credits());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("CfXBhPhSxx1wqxGQCryfgn6iU1M1XFUuCo");
|
||||
assertValidAddress("CMde7YERCFWkCL2W5i8uyJmnpCVj8Chhww");
|
||||
assertValidAddress("CcbqU3MLZuGAED2CuhUkquyJxKaSJqv6Vb");
|
||||
assertValidAddress("CKaig5pznaUgiLqe6WkoCNGagNMhNLtqhK");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("1fXBhPhSxx1wqxGQCryfgn6iU1M1XFUuCo32");
|
||||
assertInvalidAddress("CMde7YERCFWkCL2W5i8uyJmnpCVj8Chh");
|
||||
assertInvalidAddress("CcbqU3MLZuGAED2CuhUkquyJxKaSJqv6V6#");
|
||||
assertInvalidAddress("bKaig5pznaUgiLqe6WkoCNGagNMhNLtqhKkggg");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class CryptonodesTest extends AbstractAssetTest {
|
||||
|
||||
public CryptonodesTest() {
|
||||
super(new Cryptonodes());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("cmqiMdMJuXf3meR3Qxy9hhHS85tuTRMRbu");
|
||||
assertValidAddress("cjMRzBHViq7WGgJUuNdiuks39ZCMjyG7UT");
|
||||
assertValidAddress("cYXaTfAEMrvr3cZEQ3oUxKJuzbvBwgTR2e");
|
||||
assertValidAddress("cX38diq2mcFpBMEWbTRvyrdbiNBjyv2nq9");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq");
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO");
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek#");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class DACashTest extends AbstractAssetTest {
|
||||
|
||||
public DACashTest() {
|
||||
super(new DACash());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("DidkVmR8GaT3oQthbm6jVxG5R7LnLVAvKw");
|
||||
assertValidAddress("dWRZBGLhyYksy18w5wdUfEiydBnFm6cwNW");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("DidkVmR8GaT3oQthbm6jVxG5R7LnLVAvKwX");
|
||||
assertInvalidAddress("DidkVmR8GaT3oQthbm6jVxG5R7LnLVAvK");
|
||||
assertInvalidAddress("DidkVmR8GaT3oQthbm6jVxG5R7LnLVAvK#");
|
||||
assertInvalidAddress("XidkVmR8GaT3oQthbm6jVxG5R7LnLVAvKwX");
|
||||
assertInvalidAddress("yidkVmR8GaT3oQthbm6jVxG5R7LnLVAvKwX");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class DRIPTest extends AbstractAssetTest {
|
||||
|
||||
public DRIPTest() {
|
||||
super(new DRIP());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("DFJku78A14HYwPSzC5PtUmda7jMr5pbD2B");
|
||||
assertValidAddress("DAeiBSH4nudXgoxS4kY6uhTPobc7ALrWDA");
|
||||
assertValidAddress("DRbnCYbuMXdKU4y8dya9EnocL47gFjErWe");
|
||||
assertValidAddress("DTPAqTryNRCE2FgsxzohTtJXfCBCDnG6Rc");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq");
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO");
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek#");
|
||||
}
|
||||
}
|
|
@ -1,50 +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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
public class FuturoCoinTest extends AbstractAssetTest {
|
||||
|
||||
public FuturoCoinTest() {
|
||||
super(new FuturoCoin());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("FkWEKpguPvG3CbaLpg46Fka4ZCCh2zuUCZ");
|
||||
assertValidAddress("FZ6UhtneD6AciLywYWJSwmN3XgdoDGEjjF");
|
||||
assertValidAddress("FYjkqH1XVp4oF5PvFK5JJdC1Mb2eZAbGDk");
|
||||
assertValidAddress("FheRu8mY47PpUCx4kvjgsRQcLtoG9uDbT8");
|
||||
assertValidAddress("FYdmbRBJ3LBRATvj8E8CwjW7v1EkngTCDa");
|
||||
assertValidAddress("FaKWCQ662qG3nmy6bjWV5a4Mse6wfMFde6");
|
||||
assertValidAddress("FcXEfdEPj7BLnSGUjBTHFZomxEwWAo9nyv");
|
||||
assertValidAddress("Fd7gZ7dNJ1toY6TeWy3rf2dUvyRudggTLv");
|
||||
assertValidAddress("FbRXmJUDgf5URuVGyM223P8R2JArXSSm6u");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("FkWEKpguPvG3CbaLpg46Fka4ZCCh2zuUC2");
|
||||
assertInvalidAddress("FZ6UhtneD6AciLywYWJSwmN3XgdoDGEjjFdd");
|
||||
assertInvalidAddress("FYjkqH1XVp4oF5PvFK5JJdC1Mb2eZAb");
|
||||
assertInvalidAddress("FheRu8mY47PpUCx4kvjgsRQcLtoG9uDbT9");
|
||||
assertInvalidAddress("Fd7gZ7dNJ1toY6TeWy3rf2dUvyRudggTL");
|
||||
assertInvalidAddress("FbRXmJUDgf5URuVGyM223P8R2JArXSSm61");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class GraftTest extends AbstractAssetTest {
|
||||
|
||||
public GraftTest() {
|
||||
super(new Graft());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("G9Q2cPrRrYecQhsFqopQbiKqpJyzeDtxVWZb8Mytj65k538jxn8JTJ3aNvE7eQsBpYMKPN4pQBLFKALh6cZqL52RSgZWFmD");
|
||||
assertValidAddress("G5t9rcTchMDaEn4KyVLEo2adPbWjnRXCgBqVQpujcFU8PvdytNnZAVJHVHW2VEu2ELJEmgMqk1aznXA7i1vrVuqW6m7mg9Z");
|
||||
assertValidAddress("G6NHRh8pFh5Y14bhBVAoD4cvqHyoPsQJqB3dr49zoF6bNDFrts96tuujFRoUKWRwpTHmYt4Kf78FES7LCXAXKXFf6bMsx1F");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("GWQ2cPrRrYecQhsFqopQbiKqpJyzeDtxVWZb8Mytj65k538jxn8JTJ3aNvE7eQsBpYMKPN4pQBLFKALh6cZqL52RSgZWFmD");
|
||||
assertInvalidAddress("Z6NHRh8pFh5Y14bhBVAoD4cvqHyoPsQJqB3dr49zoF6bNDFrts96tuujFRoUKWRwpTHmYt4Kf78FES7LCXAXKXFf6bMsx1F");
|
||||
assertInvalidAddress("");
|
||||
assertInvalidAddress("G6NHRh8pFh5Y14bhBVAoD4cvqHyoPsQJqB3dr49zoF6bNDFrts96tuuj#RoUKWRwpTHmYt4Kf78FES7LCXAXKXFf6bMsx1F");
|
||||
assertInvalidAddress("G9Q2cPrRrYecQhsFqopQbiKqpJyzeDtxVWZb8Mytj65k538jxn8JTJ3aNvE7eQsBpYMKPN4pQBLFKALh6cZqL52RSgZWFmDdddddddddddd");
|
||||
assertInvalidAddress("G6NHRh8pFh5Y14bhBVAoD4cvqHyoPsQJqB3dr49zoF6bNDFrts96tuujFRoUKWRwpTHmYt4Kf78FES7LCXAXKXFf6bMsx1222222222");
|
||||
assertInvalidAddress("G5t9rcTchMDaEn4KyVLEo2adPbWjnRXCgBqVQpujcFU8PvdytNnZAVJHVHW2VEu2ELJEmgMqk1aznXA7i1vr");
|
||||
assertInvalidAddress("GDARp92UtmTWDjZatG8sduGTMu89ZasZjEyAwapnANNWCE2hJ4edcszj9hcZHdXr9vJzjHq2TfPrjateDz9Wc8ZJKuDayqJ$%");
|
||||
assertInvalidAddress("F3xQ8Gv6w1XE2SQcXBZEmpS5112RAPup7XRr7WkLG8aL98ZBsTAF5q4GdGrWjJTGz4676ymKvU4NzPY8Ca4gfJwL2yhhkJ7");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class LobstexTest extends AbstractAssetTest {
|
||||
|
||||
public LobstexTest() {
|
||||
super(new Lobstex());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("LbfvBwhBKK9EUnBEzCa4spT6RgEKXj3RoR");
|
||||
assertValidAddress("LMMLeypCrMzxytAUfTBpLDQ98eRx7hXRgD");
|
||||
assertValidAddress("LeGSV3RRb7zULou9XGZsUUGLLk3gPi41aV");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("LbfvBwhBKK9EUnBEzCa4spT6RgEKXj3RoRX");
|
||||
assertInvalidAddress("LbfvBwhBKK9EUnBEzCa4spT6Rg");
|
||||
assertInvalidAddress("LbfvBwhBKK9EUnBEzCa4spT6RgEKXj3Ro#");
|
||||
assertInvalidAddress("ObfvBwhBKK9EUnBEzCa4spT6RgEKXj3RoR");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class MaxCoinTest extends AbstractAssetTest {
|
||||
|
||||
public MaxCoinTest() {
|
||||
super(new MaxCoin());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("mJJGFhcf1PSxjxRG6DMyyi188UEXJbgZcY");
|
||||
assertValidAddress("mN1w6r2Mxkag6PU5PqpVfUdjBcgtSvp9zB");
|
||||
assertValidAddress("mPZ2HAnvJhtQysXMu8syMLNjADLkokcDhf");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("mcnZY6GyoMgkYAJWLLY95ehL9LQ4tKq4h99");
|
||||
assertInvalidAddress("mcnZY6GyoMgkYAJWLLY95ehL9L");
|
||||
assertInvalidAddress("1cnZY6GyoMgkYAJWLLY95ehL9LQ4tKq4h9");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class MegaCoinTest extends AbstractAssetTest {
|
||||
|
||||
public MegaCoinTest() {
|
||||
super(new MegaCoin());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("MWXQfp3wKnir6krS4SQFAxzv1AExpfFMbq");
|
||||
assertValidAddress("MEfn9iWMjowxQaNCZEbtT7A34pvnJGPZ44");
|
||||
assertValidAddress("MRaL1xTj5eAuxMR3xDPxLUG6RP3qR1ijuo");
|
||||
assertValidAddress("M9pCgxBES9EgoNxoUnXxrnaMqYUwZVMttM");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq");
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO");
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek#");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class MicroCoinTest extends AbstractAssetTest {
|
||||
|
||||
public MicroCoinTest() {
|
||||
super(new MicroCoin());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("0-10");
|
||||
assertValidAddress("80-80");
|
||||
assertValidAddress("5502-18");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("1QbFeFc3iqRYhemqq7VZNX1SN5NtKa8UQFxw");
|
||||
assertInvalidAddress("5502");
|
||||
assertInvalidAddress("24-1234");
|
||||
assertInvalidAddress("555-6");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class MotionTest extends AbstractAssetTest {
|
||||
|
||||
public MotionTest() {
|
||||
super(new Motion());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("MUQXDHrau4NbDJ93GcTP3q2JEb9dUpUz9n");
|
||||
assertValidAddress("MCi4PALzN9U2TL7UAQXJTEorJgYYKwzv7j");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("MidkVmR8GaT3oQthbm6jVxG5R7LnLVAvKwX");
|
||||
assertInvalidAddress("MidkVmR8GaT3oQthbm6jVxG5R7LnLVAvK");
|
||||
assertInvalidAddress("MidkVmR8GaT3oQthbm6jVxG5R7LnLVAvK#");
|
||||
assertInvalidAddress("XidkVmR8GaT3oQthbm6jVxG5R7LnLVAvKwX");
|
||||
assertInvalidAddress("yidkVmR8GaT3oQthbm6jVxG5R7LnLVAvKwX");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class MyriadcoinTest extends AbstractAssetTest {
|
||||
|
||||
public MyriadcoinTest() {
|
||||
super(new Myriadcoin());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("MHadFuyW1tp8SJ7fCxbFnxC2THXkuwE7uu");
|
||||
assertValidAddress("MCg3yZ15wnLQDSFguQLd2mQrCC1jL1MJU5");
|
||||
assertValidAddress("MCsTYDJNfXkafidZ7Nycw9wvV51vPGka9K");
|
||||
assertValidAddress("MQv8TxZvTUbN9d1KmDNrTku91Y5qhqbyfL");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("1Qv8TxZvTUbN9d1KmDNrTku91Y5qhqbyfL");
|
||||
assertInvalidAddress("bMQv8TxZvTUbN9d1KmDNrTku91Y5qhqbyfL");
|
||||
assertInvalidAddress("ms142HdWDfDQXYBpuyMvsU3KHwryLxnCr");
|
||||
assertInvalidAddress("3ASDA8s142HdWDfDQXYBuyMvsU3KHwryLxnCr");
|
||||
assertInvalidAddress("1ddhisads");
|
||||
assertInvalidAddress("Mu9hdahudadad");
|
||||
}
|
||||
}
|
|
@ -1,51 +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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
public class NanoTest extends AbstractAssetTest {
|
||||
|
||||
public NanoTest() {
|
||||
super(new Nano());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3");
|
||||
assertValidAddress("xrb_35jjmmmh81kydepzeuf9oec8hzkay7msr6yxagzxpcht7thwa5bus5tomgz9");
|
||||
assertValidAddress("xrb_1111111111111111111111111111111111111111111111111111hifc8npp");
|
||||
assertValidAddress("nano_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3");
|
||||
assertValidAddress("nano_35jjmmmh81kydepzeuf9oec8hzkay7msr6yxagzxpcht7thwa5bus5tomgz9");
|
||||
assertValidAddress("nano_1111111111111111111111111111111111111111111111111111hifc8npp");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("abc_1111111111111111111111111111111111111111111111111111hifc8npp"); // invalid prefix
|
||||
assertInvalidAddress("xrb_1211111111111111111111111111111111111111111111111111hifc8npp"); // invalid character
|
||||
assertInvalidAddress("XRB_1111111111111111111111111111111111111111111111111111HIFC8NPX"); // not lowercase
|
||||
assertInvalidAddress("xrb_1111111111111111111111111111111111111111111111111111111hifc8npp"); // too long
|
||||
assertInvalidAddress("xrb_11111111111111111111111111111111111111111111111hifc8npp"); // too short
|
||||
assertInvalidAddress("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"); // not a nano address
|
||||
assertInvalidAddress("just completely wrong"); // not an address
|
||||
// checksum tests
|
||||
// assertInvalidAddress("xrb_1111111111111111111111111111111111111111111111111111hifc8npx"); // invalid checksum
|
||||
// assertInvalidAddress("xrb_1311111111111111111111111111111111111111111111111111hifc8npp"); // invalid checksum
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class NewPowerCoinTest extends AbstractAssetTest {
|
||||
|
||||
public NewPowerCoinTest() {
|
||||
super(new NewPowerCoin());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("NXNc8LCAe2dHumQ9vTyogRXUzGw3PJHr55");
|
||||
assertValidAddress("NhWDeD4UaNK2Qj8oSKr9u7EAUkCFZxEsDr");
|
||||
assertValidAddress("NNTuHe4p5Xr8kyN2AJjJS9dcBoG1XQKkW6");
|
||||
assertValidAddress("NQebfM16pijp2KvFHTKQktD4y2cSKknQEg");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("1111111111111111111111111111111111");
|
||||
assertInvalidAddress("2222222222222222222222222222222222");
|
||||
assertInvalidAddress("3333333333333333333333333333333333");
|
||||
}
|
||||
}
|
|
@ -1,58 +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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
public class NimiqTest extends AbstractAssetTest {
|
||||
public NimiqTest() {
|
||||
super(new Nimiq());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("NQ09 VF5Y 1PKV MRM4 5LE1 55KV P6R2 GXYJ XYQF");
|
||||
assertValidAddress("NQ19YG5446TXEHGQD2R2V8XAJX84UFG0S0MC");
|
||||
|
||||
// Null address (burn)
|
||||
assertValidAddress("NQ07 0000 0000 0000 0000 0000 0000 0000 0000");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testInvalidAddresses() {
|
||||
// plain wrong
|
||||
assertInvalidAddress("0xcfb98637bcae43c13323eaa1731ced2b716962fd");
|
||||
assertInvalidAddress("12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX");
|
||||
|
||||
// invalid chars
|
||||
assertInvalidAddress("NQ62 VF5Y 1PKV MRM4 5LE1 55KV P6R2 GXYI XYQF");
|
||||
|
||||
// too short
|
||||
assertInvalidAddress("NQ07 0000 0000 0000 0000 0000 0000 0000 000");
|
||||
assertInvalidAddress("FR76 3000 4003 2000 0101 9471 656");
|
||||
|
||||
// not NQ
|
||||
assertInvalidAddress("US35 0000 0000 0000 0000 0000 0000 0000 0000");
|
||||
assertInvalidAddress("US37VF5Y1PKVMRM45LE155KVP6R2GXYJXYQF");
|
||||
|
||||
// invalid checksum
|
||||
assertInvalidAddress("NQ08 0000 0000 0000 0000 0000 0000 0000 0000");
|
||||
assertInvalidAddress("NQ08 VF5Y 1PKV MRM4 5LE1 55KV P6R2 GXYJ XYQF");
|
||||
assertInvalidAddress("NQ18YG5446TXEHGQD2R2V8XAJX84UFG0S0MC");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
@Ignore
|
||||
@Deprecated
|
||||
public class ObsidianTest extends AbstractAssetTest {
|
||||
|
||||
public ObsidianTest() {
|
||||
super(new Obsidian());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("XEfyuzk8yTp5eA9eVUeCW2PFbCFtNb6Jgv");
|
||||
assertValidAddress("XJegzjV2GK9CeQLNNcc5GVSSqTkv1XMxSF");
|
||||
assertValidAddress("XLfvvLuwjUrz2kf5gghEmUPFE3vFvwfEiL");
|
||||
assertValidAddress("XNC1e9TfUApfBsH9JCubioS5XGuwFLbsP4");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq");
|
||||
assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266");
|
||||
assertInvalidAddress("SSnwqFBiyqK1n4BV7kPX86iesev2NobhEo");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class PRiVCYTest extends AbstractAssetTest {
|
||||
|
||||
public PRiVCYTest() {
|
||||
super(new PRiVCY());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("PEVFjfwsjKcPTDGdbaticuuARwzb3PEUdc");
|
||||
assertValidAddress("PDwYxxuVi6buPTWypE1xCY65b58yedygAt");
|
||||
assertValidAddress("PMJQkfnW4nXYpaYsmFE1UMoqHeEF68kjU3");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("DEVFjfwsjKcPTDGdbaticuuARwzb3PEUdc");
|
||||
assertInvalidAddress("MJJGFhcf1PSxjxRG6DMyyi188UEXJbgZcY");
|
||||
assertInvalidAddress("ZMJQkfnW4nXYpaYsmFE1UMoqHeEF68kjU3");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class TritonTest extends AbstractAssetTest {
|
||||
|
||||
public TritonTest() {
|
||||
super(new Triton());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("Tvys67tHC2iUGoVWcKdT6bBxg8TRV826Tjf1NWosSDk4P6vDQ95WmTcXjCYGNsf9vZ9vbUeBeHVA5Qsv2yGP4KwV2jNcbzMqu");
|
||||
assertValidAddress("Tw1oBSkZRpH4PyiUk6NJ9yTwThBk39ybZ9vfVvEK8WkT9wyZFC64cNM6bFDcwPSc2s5fgPpYE1CMuA9VTdmqYY5u16vaAVASx");
|
||||
assertValidAddress("Tw1ZX9YXQD2Qm569E9nhTiho5NazHFY54GyQihpDYdWbguKibTpcuh6PHyuu5QhJoiQXGwvkfuY7wRWBq7PgiQuS11CbNVJrD");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("TWQ2cPrRrYecQhsFqopQbiKqpJyzeDtxVWZb8Mytj65k538jxn8JTJ3aNvE7eQsBpYMKPN4pQBLFKALh6cZqL52RSgZWFmD");
|
||||
assertInvalidAddress("Z6NHRh8pFh5Y14bhBVAoD4cvqHyoPsQJqB3dr49zoF6bNDFrts96tuujFRoUKWRwpTHmYt4Kf78FES7LCXAXKXFf6bMsx1F");
|
||||
assertInvalidAddress("");
|
||||
assertInvalidAddress("T6NHRh8pFh5Y14bhBVAoD4cvqHyoPsQJqB3dr49zoF6bNDFrts96tuuj#RoUKWRwpTHmYt4Kf78FES7LCXAXKXFf6bMsx1F");
|
||||
assertInvalidAddress("T9Q2cPrRrYecQhsFqopQbiKqpJyzeDtxVWZb8Mytj65k538jxn8JTJ3aNvE7eQsBpYMKPN4pQBLFKALh6cZqL52RSgZWFmDdddddddddddd");
|
||||
assertInvalidAddress("T6NHRh8pFh5Y14bhBVAoD4cvqHyoPsQJqB3dr49zoF6bNDFrts96tuujFRoUKWRwpTHmYt4Kf78FES7LCXAXKXFf6bMsx1222222222");
|
||||
assertInvalidAddress("T5t9rcTchMDaEn4KyVLEo2adPbWjnRXCgBqVQpujcFU8PvdytNnZAVJHVHW2VEu2ELJEmgMqk1aznXA7i1vr");
|
||||
assertInvalidAddress("JDARp92UtmTWDjZatG8sduGTMu89ZasZjEyAwapnANNWCE2hJ4edcszj9hcZHdXr9vJzjHq2TfPrjateDz9Wc8ZJKuDayqJ$%");
|
||||
assertInvalidAddress("T3xQ8Gv6w1XE2SQcXBZEmpS5112RAPup7XRr7WkLG8aL98ZBsTAF5q4GdGrWjJTGz4676ymKvU4NzPY8Ca4gfJwL2yhhkJ7");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.coins;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class WaviTest extends AbstractAssetTest {
|
||||
|
||||
public WaviTest() {
|
||||
super(new Wavi());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("WbdqBhmbkhYSYpjzKFuWRKhw7k1tN1oNrr");
|
||||
assertValidAddress("WU7HUe2RjxjKFWXmNVWyeYvByfWyefp8tZ");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("69dqBhmbkhYSYpjzKFuWRKhw7k1tN1oNrr");
|
||||
assertInvalidAddress("WbdqBhmbkhYSYpjzKFuWRKhw7k1tN1oNrr37");
|
||||
assertInvalidAddress("WU7HUe2RjxjKFWXmNVWyeYvByfWyefp869");
|
||||
assertInvalidAddress("Qc7HUe2RjxjKFWXmNVWyeYvByfWyefp8tZ");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.tokens;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class LikeCoinTest extends AbstractAssetTest {
|
||||
|
||||
public LikeCoinTest() {
|
||||
super(new LikeCoin());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226");
|
||||
assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266");
|
||||
assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g");
|
||||
assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.tokens;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class PixTest extends AbstractAssetTest {
|
||||
|
||||
public PixTest() {
|
||||
super(new Pix());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226");
|
||||
assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266");
|
||||
assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g");
|
||||
assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.tokens;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class PixelPropertyTokenTest extends AbstractAssetTest {
|
||||
|
||||
public PixelPropertyTokenTest() {
|
||||
super(new PixelPropertyToken());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226");
|
||||
assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266");
|
||||
assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g");
|
||||
assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g");
|
||||
}
|
||||
}
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.asset.tokens;
|
||||
|
||||
import bisq.asset.AbstractAssetTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class TariTest extends AbstractAssetTest {
|
||||
|
||||
public TariTest() {
|
||||
super(new Tari());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAddresses() {
|
||||
assertValidAddress("GCQQRNVHDV5JGDLK7XNVF5HAULPQIPOAAEXOT3Y6LXU6GGAGMN2QAE35");
|
||||
assertValidAddress("GBCDXRHIHVEUXXA6ZWCLXRSR3M6SJKHZOSOWMQIFM3ONXNJY2F3QY34K");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidAddresses() {
|
||||
assertInvalidAddress("");
|
||||
assertInvalidAddress("/../evil/GBCDXRHIHVEUXXA6ZWCLXRSR3M6SJKHZOSOWMQIFM3ONXDK");
|
||||
assertInvalidAddress("GCQQRNVHDV5JGDLK7XNVF5HAULPQIPOAAEXOT3Y6LXU6GGAGMN2QAE3");
|
||||
assertInvalidAddress("GCQQRNVHDV5JGDLK7XNVF5HAULPQIPOAAEXOT3Y6LXU6GGAGMN2QAE333");
|
||||
}
|
||||
}
|
|
@ -61,7 +61,7 @@ public class AssetTradeActivityCheck {
|
|||
|
||||
public void onAllServicesInitialized() {
|
||||
Date compareDate = new Date(new Date().getTime() - Duration.ofDays(120).toMillis());
|
||||
long minTradeAmount = Coin.parseCoin("0.001").value;
|
||||
long minTradeAmount = Coin.parseCoin("0.01").value;
|
||||
long minNumOfTrades = 3;
|
||||
|
||||
Map<String, Tuple2<Long, Integer>> tradeStatMap = new HashMap<>();
|
||||
|
@ -144,35 +144,6 @@ public class AssetTradeActivityCheck {
|
|||
private boolean isWarmingUp(String code) {
|
||||
Set<String> newlyAdded = new HashSet<>();
|
||||
|
||||
// v0.7.1 Jul 4 2018
|
||||
newlyAdded.add("ZOC");
|
||||
newlyAdded.add("AQUA");
|
||||
newlyAdded.add("BTDX");
|
||||
newlyAdded.add("BTCC");
|
||||
newlyAdded.add("BTI");
|
||||
newlyAdded.add("CRDS");
|
||||
newlyAdded.add("CNMC");
|
||||
newlyAdded.add("TARI");
|
||||
newlyAdded.add("DAC");
|
||||
newlyAdded.add("DRIP");
|
||||
newlyAdded.add("FTO");
|
||||
newlyAdded.add("GRFT");
|
||||
newlyAdded.add("LIKE");
|
||||
newlyAdded.add("LOBS");
|
||||
newlyAdded.add("MAX");
|
||||
newlyAdded.add("MEC");
|
||||
newlyAdded.add("MCC");
|
||||
newlyAdded.add("XMN");
|
||||
newlyAdded.add("XMY");
|
||||
newlyAdded.add("NANO");
|
||||
newlyAdded.add("NPW");
|
||||
newlyAdded.add("NIM");
|
||||
newlyAdded.add("PIX");
|
||||
newlyAdded.add("PXL");
|
||||
newlyAdded.add("PRIV");
|
||||
newlyAdded.add("TRIT");
|
||||
newlyAdded.add("WAVI");
|
||||
|
||||
// v0.8.0 Aug 22 2018
|
||||
// none added
|
||||
|
||||
|
@ -187,7 +158,10 @@ public class AssetTradeActivityCheck {
|
|||
newlyAdded.add("GBK");
|
||||
newlyAdded.add("KEK");
|
||||
newlyAdded.add("LOKI");
|
||||
newlyAdded.add("MASK");
|
||||
newlyAdded.add("MBGL");
|
||||
newlyAdded.add("MOX");
|
||||
newlyAdded.add("MUE");
|
||||
newlyAdded.add("NEOS");
|
||||
newlyAdded.add("PZDC");
|
||||
newlyAdded.add("QMCoin");
|
||||
|
@ -198,6 +172,7 @@ public class AssetTradeActivityCheck {
|
|||
newlyAdded.add("MAI");
|
||||
newlyAdded.add("TRTL");
|
||||
newlyAdded.add("ZER");
|
||||
newlyAdded.add("XRC");
|
||||
|
||||
return newlyAdded.contains(code);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue