From b6ba76580fa6c3819b0f94d3c0721ab362c5489b Mon Sep 17 00:00:00 2001 From: erciccione Date: Wed, 17 Aug 2022 15:31:14 +0200 Subject: [PATCH] disable cryptocurrencies currently not listed --- .../main/java/bisq/asset/coins/Actinium.java | 38 ------ .../main/java/bisq/asset/coins/Adeptio.java | 55 -------- .../src/main/java/bisq/asset/coins/Aeon.java | 28 ----- .../main/java/bisq/asset/coins/Amitycoin.java | 28 ----- .../main/java/bisq/asset/coins/Animecoin.java | 35 ------ .../src/main/java/bisq/asset/coins/Arqma.java | 30 ----- .../main/java/bisq/asset/coins/Askcoin.java | 28 ----- .../java/bisq/asset/coins/Australiacash.java | 35 ------ .../src/main/java/bisq/asset/coins/Beam.java | 39 ------ .../main/java/bisq/asset/coins/BitDaric.java | 29 ----- .../java/bisq/asset/coins/BitcoinRhodium.java | 38 ------ .../main/java/bisq/asset/coins/Bitmark.java | 36 ------ .../main/java/bisq/asset/coins/Bitzec.java | 29 ----- .../src/main/java/bisq/asset/coins/Blur.java | 30 ----- .../java/bisq/asset/coins/BurntBlackCoin.java | 33 ----- .../java/bisq/asset/coins/CRowdCLassic.java | 29 ----- .../main/java/bisq/asset/coins/CTSCoin.java | 35 ------ .../src/main/java/bisq/asset/coins/Cash2.java | 30 ----- .../main/java/bisq/asset/coins/Chaucha.java | 38 ------ .../main/java/bisq/asset/coins/CloakCoin.java | 28 ----- .../java/bisq/asset/coins/Counterparty.java | 36 ------ .../main/java/bisq/asset/coins/Credits.java | 55 -------- .../src/main/java/bisq/asset/coins/Croat.java | 28 ----- .../src/main/java/bisq/asset/coins/DSTRA.java | 55 -------- .../main/java/bisq/asset/coins/DarkPay.java | 35 ------ .../src/main/java/bisq/asset/coins/Dash.java | 35 ------ .../main/java/bisq/asset/coins/Decred.java | 36 ------ .../main/java/bisq/asset/coins/DeepOnion.java | 53 -------- .../main/java/bisq/asset/coins/Dextro.java | 56 --------- .../main/java/bisq/asset/coins/Dogecoin.java | 36 ------ .../main/java/bisq/asset/coins/Doichain.java | 36 ------ .../src/main/java/bisq/asset/coins/Donu.java | 55 -------- .../java/bisq/asset/coins/Dragonglass.java | 30 ----- .../main/java/bisq/asset/coins/Emercoin.java | 36 ------ .../src/main/java/bisq/asset/coins/Ergo.java | 53 -------- .../java/bisq/asset/coins/EtherClassic.java | 29 ----- .../main/java/bisq/asset/coins/Faircoin.java | 38 ------ .../main/java/bisq/asset/coins/FourtyTwo.java | 28 ----- .../main/java/bisq/asset/coins/Fujicoin.java | 35 ------ .../main/java/bisq/asset/coins/Galilel.java | 35 ------ .../java/bisq/asset/coins/GambleCoin.java | 56 --------- .../main/java/bisq/asset/coins/Genesis.java | 55 -------- .../src/main/java/bisq/asset/coins/Grin.java | 30 ----- .../src/main/java/bisq/asset/coins/Hatch.java | 35 ------ .../main/java/bisq/asset/coins/Helium.java | 37 ------ .../main/java/bisq/asset/coins/Horizen.java | 69 ----------- .../main/java/bisq/asset/coins/IdaPay.java | 56 --------- .../main/java/bisq/asset/coins/Iridium.java | 25 ---- .../main/java/bisq/asset/coins/Kekcoin.java | 39 ------ .../bisq/asset/coins/KnowYourDeveloper.java | 35 ------ .../src/main/java/bisq/asset/coins/Kore.java | 35 ------ .../main/java/bisq/asset/coins/Krypton.java | 28 ----- .../java/bisq/asset/coins/LBRYCredits.java | 36 ------ .../java/bisq/asset/coins/LiquidBitcoin.java | 30 ----- .../java/bisq/asset/coins/LitecoinPlus.java | 37 ------ .../main/java/bisq/asset/coins/LitecoinZ.java | 29 ----- .../src/main/java/bisq/asset/coins/Lytix.java | 37 ------ .../main/java/bisq/asset/coins/Masari.java | 30 ----- .../src/main/java/bisq/asset/coins/Mask.java | 27 ---- .../src/main/java/bisq/asset/coins/Mile.java | 75 ----------- .../main/java/bisq/asset/coins/MirQuiX.java | 28 ----- .../src/main/java/bisq/asset/coins/MoX.java | 28 ----- .../java/bisq/asset/coins/MobitGlobal.java | 55 -------- .../java/bisq/asset/coins/MonetaryUnit.java | 55 -------- .../src/main/java/bisq/asset/coins/Myce.java | 36 ------ .../main/java/bisq/asset/coins/Namecoin.java | 36 ------ .../main/java/bisq/asset/coins/Navcoin.java | 35 ------ .../src/main/java/bisq/asset/coins/Ndau.java | 37 ------ .../src/main/java/bisq/asset/coins/Noir.java | 27 ---- .../java/bisq/asset/coins/NoteBlockchain.java | 27 ---- .../src/main/java/bisq/asset/coins/PENG.java | 28 ----- .../src/main/java/bisq/asset/coins/PIVX.java | 55 -------- .../src/main/java/bisq/asset/coins/PZDC.java | 55 -------- .../main/java/bisq/asset/coins/ParsiCoin.java | 30 ----- .../main/java/bisq/asset/coins/Particl.java | 52 -------- .../main/java/bisq/asset/coins/Persona.java | 28 ----- .../main/java/bisq/asset/coins/Pinkcoin.java | 38 ------ .../main/java/bisq/asset/coins/Plenteum.java | 28 ----- .../main/java/bisq/asset/coins/QMCoin.java | 55 -------- .../src/main/java/bisq/asset/coins/Qbase.java | 37 ------ .../java/bisq/asset/coins/Qwertycoin.java | 30 ----- .../main/java/bisq/asset/coins/Radium.java | 39 ------ .../src/main/java/bisq/asset/coins/Remix.java | 28 ----- .../src/main/java/bisq/asset/coins/Ryo.java | 28 ----- .../src/main/java/bisq/asset/coins/SUB1X.java | 55 -------- .../java/bisq/asset/coins/SiaPrimeCoin.java | 28 ----- .../main/java/bisq/asset/coins/Siafund.java | 37 ------ .../main/java/bisq/asset/coins/SixEleven.java | 51 -------- .../src/main/java/bisq/asset/coins/Solo.java | 30 ----- .../main/java/bisq/asset/coins/SpaceCash.java | 28 ----- .../java/bisq/asset/coins/Spectrecoin.java | 38 ------ .../main/java/bisq/asset/coins/Starwels.java | 28 ----- .../src/main/java/bisq/asset/coins/TEO.java | 28 ----- .../java/bisq/asset/coins/TurtleCoin.java | 28 ----- .../bisq/asset/coins/UnitedCommunityCoin.java | 56 --------- .../java/bisq/asset/coins/Unobtanium.java | 36 ------ .../main/java/bisq/asset/coins/VARIUS.java | 28 ----- .../src/main/java/bisq/asset/coins/Veil.java | 54 -------- .../main/java/bisq/asset/coins/Vertcoin.java | 35 ------ .../src/main/java/bisq/asset/coins/WORX.java | 28 ----- .../main/java/bisq/asset/coins/Webchain.java | 29 ----- .../main/java/bisq/asset/coins/WrkzCoin.java | 28 ----- .../src/main/java/bisq/asset/coins/XDR.java | 28 ----- .../src/main/java/bisq/asset/coins/Zcash.java | 31 ----- .../src/main/java/bisq/asset/coins/Zcoin.java | 38 ------ .../main/java/bisq/asset/coins/ZelCash.java | 29 ----- .../src/main/java/bisq/asset/coins/Zero.java | 42 ------- .../java/bisq/asset/coins/ZeroClassic.java | 29 ----- .../main/java/bisq/asset/coins/uPlexa.java | 30 ----- .../META-INF/services/bisq.asset.Asset | 117 ------------------ .../java/bisq/asset/coins/ActiniumTest.java | 49 -------- .../java/bisq/asset/coins/AdeptioTest.java | 47 ------- .../test/java/bisq/asset/coins/AeonTest.java | 44 ------- .../java/bisq/asset/coins/AmitycoinTest.java | 48 ------- .../java/bisq/asset/coins/AnimecoinTest.java | 44 ------- .../test/java/bisq/asset/coins/ArqmaTest.java | 44 ------- .../java/bisq/asset/coins/AskcoinTest.java | 48 ------- .../bisq/asset/coins/AustraliacashTest.java | 43 ------- .../test/java/bisq/asset/coins/BeamTest.java | 41 ------ .../java/bisq/asset/coins/BitDaricTest.java | 36 ------ .../bisq/asset/coins/BitcoinRhodiumTest.java | 43 ------- .../java/bisq/asset/coins/BitmarkTest.java | 43 ------- .../java/bisq/asset/coins/BitzecTest.java | 43 ------- .../test/java/bisq/asset/coins/BlurTest.java | 44 ------- .../bisq/asset/coins/BurntBlackCoinTest.java | 46 ------- .../bisq/asset/coins/CRowdCLassicTest.java | 44 ------- .../java/bisq/asset/coins/CTSCoinTest.java | 43 ------- .../test/java/bisq/asset/coins/Cash2Test.java | 108 ---------------- .../java/bisq/asset/coins/ChauchaTest.java | 43 ------- .../java/bisq/asset/coins/CloakCoinTest.java | 49 -------- .../bisq/asset/coins/CounterpartyTest.java | 41 ------ .../java/bisq/asset/coins/CreditsTest.java | 46 ------- .../test/java/bisq/asset/coins/CroatTest.java | 47 ------- .../test/java/bisq/asset/coins/DSTRATest.java | 44 ------- .../java/bisq/asset/coins/DarkPayTest.java | 45 ------- .../test/java/bisq/asset/coins/DashTest.java | 44 ------- .../java/bisq/asset/coins/DecredTest.java | 43 ------- .../java/bisq/asset/coins/DeepOnionTest.java | 44 ------- .../java/bisq/asset/coins/DextroTest.java | 43 ------- .../java/bisq/asset/coins/DogecoinTest.java | 43 ------- .../java/bisq/asset/coins/DoichainTest.java | 42 ------- .../test/java/bisq/asset/coins/DonuTest.java | 46 ------- .../bisq/asset/coins/DragonglassTest.java | 45 ------- .../java/bisq/asset/coins/EmercoinTest.java | 44 ------- .../test/java/bisq/asset/coins/ErgoTest.java | 47 ------- .../bisq/asset/coins/EtherClassicTest.java | 42 ------- .../java/bisq/asset/coins/FaircoinTest.java | 41 ------ .../java/bisq/asset/coins/FourtyTwoTest.java | 44 ------- .../java/bisq/asset/coins/FujicoinTest.java | 44 ------- .../java/bisq/asset/coins/GalilelTest.java | 43 ------- .../java/bisq/asset/coins/GambleCoinTest.java | 45 ------- .../java/bisq/asset/coins/GenesisTest.java | 47 ------- .../test/java/bisq/asset/coins/GrinTest.java | 77 ------------ .../test/java/bisq/asset/coins/HatchTest.java | 44 ------- .../java/bisq/asset/coins/HeliumTest.java | 43 ------- .../java/bisq/asset/coins/HorizenTest.java | 45 ------- .../java/bisq/asset/coins/IdaPayTest.java | 45 ------- .../java/bisq/asset/coins/IridiumTest.java | 42 ------- .../java/bisq/asset/coins/KekcoinTest.java | 43 ------- .../asset/coins/KnowYourDeveloperTest.java | 43 ------- .../test/java/bisq/asset/coins/KoreTest.java | 43 ------- .../java/bisq/asset/coins/KryptonTest.java | 48 ------- .../bisq/asset/coins/LBRYCreditsTest.java | 48 ------- .../bisq/asset/coins/LiquidBitcoinTest.java | 40 ------ .../bisq/asset/coins/LitecoinPlusTest.java | 42 ------- .../java/bisq/asset/coins/LitecoinZTest.java | 43 ------- .../test/java/bisq/asset/coins/LytixTest.java | 47 ------- .../java/bisq/asset/coins/MasariTest.java | 44 ------- .../test/java/bisq/asset/coins/MaskTest.java | 46 ------- .../test/java/bisq/asset/coins/MileTest.java | 62 ---------- .../java/bisq/asset/coins/MirQuiXTest.java | 45 ------- .../test/java/bisq/asset/coins/MoXTest.java | 48 ------- .../bisq/asset/coins/MobitGlobalTest.java | 44 ------- .../bisq/asset/coins/MonetaryUnitTest.java | 46 ------- .../test/java/bisq/asset/coins/MyceTest.java | 42 ------- .../java/bisq/asset/coins/NamecoinTest.java | 45 ------- .../java/bisq/asset/coins/NavcoinTest.java | 44 ------- .../test/java/bisq/asset/coins/NdauTest.java | 50 -------- .../test/java/bisq/asset/coins/NoirTest.java | 43 ------- .../bisq/asset/coins/NoteBlockchainTest.java | 43 ------- .../test/java/bisq/asset/coins/PENGTest.java | 45 ------- .../test/java/bisq/asset/coins/PIVXTest.java | 47 ------- .../test/java/bisq/asset/coins/PZDCTest.java | 49 -------- .../java/bisq/asset/coins/ParsiCoinTest.java | 48 ------- .../java/bisq/asset/coins/ParticlTest.java | 44 ------- .../java/bisq/asset/coins/PersonaTest.java | 49 -------- .../java/bisq/asset/coins/PinkcoinTest.java | 43 ------- .../java/bisq/asset/coins/PlenteumTest.java | 48 ------- .../java/bisq/asset/coins/QMCoinTest.java | 49 -------- .../test/java/bisq/asset/coins/QbaseTest.java | 28 ----- .../java/bisq/asset/coins/QwertycoinTest.java | 56 --------- .../java/bisq/asset/coins/RadiumTest.java | 45 ------- .../test/java/bisq/asset/coins/RemixTest.java | 47 ------- .../test/java/bisq/asset/coins/RyoTest.java | 50 -------- .../test/java/bisq/asset/coins/SUB1XTest.java | 48 ------- .../bisq/asset/coins/SiaPrimeCoinTest.java | 45 ------- .../java/bisq/asset/coins/SiafundTest.java | 42 ------- .../java/bisq/asset/coins/SixElevenTest.java | 44 ------- .../test/java/bisq/asset/coins/SoloTest.java | 44 ------- .../java/bisq/asset/coins/SpaceCashTest.java | 44 ------- .../bisq/asset/coins/SpectrecoinTest.java | 43 ------- .../java/bisq/asset/coins/StarwelsTest.java | 43 ------- .../test/java/bisq/asset/coins/TEOTest.java | 45 ------- .../java/bisq/asset/coins/TurtleCoinTest.java | 48 ------- .../asset/coins/UnitedCommunityCoinTest.java | 43 ------- .../java/bisq/asset/coins/UnobtaniumTest.java | 41 ------ .../java/bisq/asset/coins/VARIUSTest.java | 43 ------- .../test/java/bisq/asset/coins/VeilTest.java | 45 ------- .../java/bisq/asset/coins/VertcoinTest.java | 43 ------- .../test/java/bisq/asset/coins/WORXTest.java | 45 ------- .../java/bisq/asset/coins/WebchainTest.java | 46 ------- .../java/bisq/asset/coins/WrkzCoinTest.java | 46 ------- .../test/java/bisq/asset/coins/XDRTest.java | 63 ---------- .../test/java/bisq/asset/coins/ZcashTest.java | 43 ------- .../test/java/bisq/asset/coins/ZcoinTest.java | 41 ------ .../java/bisq/asset/coins/ZelCashTest.java | 43 ------- .../bisq/asset/coins/ZeroClassicTest.java | 43 ------- .../test/java/bisq/asset/coins/ZeroTest.java | 43 ------- .../java/bisq/asset/coins/uPlexaTest.java | 48 ------- .../bisq/asset/tokens/AugmintEuroTest.java | 42 ------- .../bisq/asset/tokens/DaiStablecoinTest.java | 42 ------- .../bisq/asset/tokens/EtherStoneTest.java | 42 ------- .../java/bisq/asset/tokens/TrueUSDTest.java | 42 ------- .../java/bisq/asset/tokens/USDCoinTest.java | 42 ------- .../bisq/asset/tokens/VectorspaceAITest.java | 42 ------- 225 files changed, 9393 deletions(-) delete mode 100644 assets/src/main/java/bisq/asset/coins/Actinium.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Adeptio.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Aeon.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Amitycoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Animecoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Arqma.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Askcoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Australiacash.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Beam.java delete mode 100644 assets/src/main/java/bisq/asset/coins/BitDaric.java delete mode 100644 assets/src/main/java/bisq/asset/coins/BitcoinRhodium.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Bitmark.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Bitzec.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Blur.java delete mode 100644 assets/src/main/java/bisq/asset/coins/BurntBlackCoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/CRowdCLassic.java delete mode 100644 assets/src/main/java/bisq/asset/coins/CTSCoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Cash2.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Chaucha.java delete mode 100644 assets/src/main/java/bisq/asset/coins/CloakCoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Counterparty.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Credits.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Croat.java delete mode 100644 assets/src/main/java/bisq/asset/coins/DSTRA.java delete mode 100644 assets/src/main/java/bisq/asset/coins/DarkPay.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Dash.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Decred.java delete mode 100644 assets/src/main/java/bisq/asset/coins/DeepOnion.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Dextro.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Dogecoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Doichain.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Donu.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Dragonglass.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Emercoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Ergo.java delete mode 100644 assets/src/main/java/bisq/asset/coins/EtherClassic.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Faircoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/FourtyTwo.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Fujicoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Galilel.java delete mode 100644 assets/src/main/java/bisq/asset/coins/GambleCoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Genesis.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Grin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Hatch.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Helium.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Horizen.java delete mode 100644 assets/src/main/java/bisq/asset/coins/IdaPay.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Iridium.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Kekcoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/KnowYourDeveloper.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Kore.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Krypton.java delete mode 100644 assets/src/main/java/bisq/asset/coins/LBRYCredits.java delete mode 100644 assets/src/main/java/bisq/asset/coins/LiquidBitcoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/LitecoinPlus.java delete mode 100644 assets/src/main/java/bisq/asset/coins/LitecoinZ.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Lytix.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Masari.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Mask.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Mile.java delete mode 100644 assets/src/main/java/bisq/asset/coins/MirQuiX.java delete mode 100644 assets/src/main/java/bisq/asset/coins/MoX.java delete mode 100644 assets/src/main/java/bisq/asset/coins/MobitGlobal.java delete mode 100644 assets/src/main/java/bisq/asset/coins/MonetaryUnit.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Myce.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Namecoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Navcoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Ndau.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Noir.java delete mode 100644 assets/src/main/java/bisq/asset/coins/NoteBlockchain.java delete mode 100644 assets/src/main/java/bisq/asset/coins/PENG.java delete mode 100644 assets/src/main/java/bisq/asset/coins/PIVX.java delete mode 100644 assets/src/main/java/bisq/asset/coins/PZDC.java delete mode 100644 assets/src/main/java/bisq/asset/coins/ParsiCoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Particl.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Persona.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Pinkcoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Plenteum.java delete mode 100644 assets/src/main/java/bisq/asset/coins/QMCoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Qbase.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Qwertycoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Radium.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Remix.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Ryo.java delete mode 100644 assets/src/main/java/bisq/asset/coins/SUB1X.java delete mode 100644 assets/src/main/java/bisq/asset/coins/SiaPrimeCoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Siafund.java delete mode 100644 assets/src/main/java/bisq/asset/coins/SixEleven.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Solo.java delete mode 100644 assets/src/main/java/bisq/asset/coins/SpaceCash.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Spectrecoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Starwels.java delete mode 100644 assets/src/main/java/bisq/asset/coins/TEO.java delete mode 100644 assets/src/main/java/bisq/asset/coins/TurtleCoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/UnitedCommunityCoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Unobtanium.java delete mode 100644 assets/src/main/java/bisq/asset/coins/VARIUS.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Veil.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Vertcoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/WORX.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Webchain.java delete mode 100644 assets/src/main/java/bisq/asset/coins/WrkzCoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/XDR.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Zcash.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Zcoin.java delete mode 100644 assets/src/main/java/bisq/asset/coins/ZelCash.java delete mode 100644 assets/src/main/java/bisq/asset/coins/Zero.java delete mode 100644 assets/src/main/java/bisq/asset/coins/ZeroClassic.java delete mode 100644 assets/src/main/java/bisq/asset/coins/uPlexa.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ActiniumTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/AdeptioTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/AeonTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/AmitycoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/AnimecoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ArqmaTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/AskcoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/AustraliacashTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/BeamTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/BitDaricTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/BitcoinRhodiumTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/BitmarkTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/BitzecTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/BlurTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/BurntBlackCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/CRowdCLassicTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/CTSCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/Cash2Test.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ChauchaTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/CloakCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/CounterpartyTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/CreditsTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/CroatTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/DSTRATest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/DarkPayTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/DashTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/DecredTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/DeepOnionTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/DextroTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/DogecoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/DoichainTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/DonuTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/DragonglassTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/EmercoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ErgoTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/EtherClassicTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/FaircoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/FourtyTwoTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/FujicoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/GalilelTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/GambleCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/GenesisTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/GrinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/HatchTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/HeliumTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/HorizenTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/IdaPayTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/IridiumTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/KekcoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/KnowYourDeveloperTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/KoreTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/KryptonTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/LBRYCreditsTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/LiquidBitcoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/LitecoinPlusTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/LitecoinZTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/LytixTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/MasariTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/MaskTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/MileTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/MirQuiXTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/MoXTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/MobitGlobalTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/MonetaryUnitTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/MyceTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/NamecoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/NavcoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/NdauTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/NoirTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/NoteBlockchainTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/PENGTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/PIVXTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/PZDCTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ParsiCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ParticlTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/PersonaTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/PinkcoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/PlenteumTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/QMCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/QbaseTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/QwertycoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/RadiumTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/RemixTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/RyoTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/SUB1XTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/SiaPrimeCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/SiafundTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/SixElevenTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/SoloTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/SpaceCashTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/SpectrecoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/StarwelsTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/TEOTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/TurtleCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/UnitedCommunityCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/UnobtaniumTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/VARIUSTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/VeilTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/VertcoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/WORXTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/WebchainTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/WrkzCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/XDRTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ZcashTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ZcoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ZelCashTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ZeroClassicTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/ZeroTest.java delete mode 100644 assets/src/test/java/bisq/asset/coins/uPlexaTest.java delete mode 100644 assets/src/test/java/bisq/asset/tokens/AugmintEuroTest.java delete mode 100644 assets/src/test/java/bisq/asset/tokens/DaiStablecoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/tokens/EtherStoneTest.java delete mode 100644 assets/src/test/java/bisq/asset/tokens/TrueUSDTest.java delete mode 100644 assets/src/test/java/bisq/asset/tokens/USDCoinTest.java delete mode 100644 assets/src/test/java/bisq/asset/tokens/VectorspaceAITest.java diff --git a/assets/src/main/java/bisq/asset/coins/Actinium.java b/assets/src/main/java/bisq/asset/coins/Actinium.java deleted file mode 100644 index acfb80f50f..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Actinium.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Actinium extends Coin { - - public Actinium() { - super("Actinium", "ACM", new Base58AddressValidator(new ActiniumParams())); - } - - - public static class ActiniumParams extends NetworkParametersAdapter { - - public ActiniumParams() { - addressHeader = 53; - p2shHeader = 55; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Adeptio.java b/assets/src/main/java/bisq/asset/coins/Adeptio.java deleted file mode 100644 index 7d387c4520..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Adeptio.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Adeptio extends Coin { - - public Adeptio() { - super("Adeptio", "ADE", new AdeptioAddressValidator()); - } - - - public static class AdeptioAddressValidator extends Base58AddressValidator { - - public AdeptioAddressValidator() { - super(new AdeptioParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[A][a-km-zA-HJ-NP-Z1-9]{24,33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class AdeptioParams extends NetworkParametersAdapter { - - public AdeptioParams() { - addressHeader = 23; - p2shHeader = 16; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Aeon.java b/assets/src/main/java/bisq/asset/coins/Aeon.java deleted file mode 100644 index e252e91ed3..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Aeon.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.CryptoNoteAddressValidator; - -public class Aeon extends Coin { - - public Aeon() { - super("Aeon", "AEON", new CryptoNoteAddressValidator(0xB2, 0x06B8)); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Amitycoin.java b/assets/src/main/java/bisq/asset/coins/Amitycoin.java deleted file mode 100644 index 40bab26056..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Amitycoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Amitycoin extends Coin { - - public Amitycoin() { - super("Amitycoin", "AMIT", new RegexAddressValidator("^amit[1-9A-Za-z^OIl]{94}")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Animecoin.java b/assets/src/main/java/bisq/asset/coins/Animecoin.java deleted file mode 100644 index f2af6b8e76..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Animecoin.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Animecoin extends Coin { - public Animecoin() { - super("Animecoin", "ANI", new Base58AddressValidator(new AnimecoinMainNetParams())); - } - - public static class AnimecoinMainNetParams extends NetworkParametersAdapter { - public AnimecoinMainNetParams() { - this.addressHeader = 23; - this.p2shHeader = 9; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Arqma.java b/assets/src/main/java/bisq/asset/coins/Arqma.java deleted file mode 100644 index 6331ade3d5..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Arqma.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.CryptoNoteAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.arq.msg") -public class Arqma extends Coin { - - public Arqma() { - super("Arqma", "ARQ", new CryptoNoteAddressValidator(0x2cca, 0x6847)); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Askcoin.java b/assets/src/main/java/bisq/asset/coins/Askcoin.java deleted file mode 100644 index bf77a61de2..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Askcoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Askcoin extends Coin { - - public Askcoin() { - super("Askcoin", "ASK", new RegexAddressValidator("^[1-9][0-9]{0,11}")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Australiacash.java b/assets/src/main/java/bisq/asset/coins/Australiacash.java deleted file mode 100644 index 33c18a28f1..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Australiacash.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Australiacash extends Coin { - public Australiacash() { - super("Australiacash", "AUS", new Base58AddressValidator(new AustraliacashParams())); - } - public static class AustraliacashParams extends NetworkParametersAdapter { - - public AustraliacashParams() { - addressHeader = 23; - p2shHeader = 5; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Beam.java b/assets/src/main/java/bisq/asset/coins/Beam.java deleted file mode 100644 index 4f1dfb2bd6..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Beam.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -/** - * Here is info from a Beam developer regarding validation. - * - * Well, unfortunately the range length is quite large. The BbsChannel is 64 bit = 8 bytes, the pubkey is 32 bytes. - * So, the length may be up to 80 chars. The minimum length "theoretically" can also drop to a small length, if the - * channel==0, and the pubkey starts with many zeroes (very unlikely, but possible). So, besides being up to 80 chars - * lower-case hex there's not much can be tested. A more robust test would also check if the pubkey is indeed valid, - * but it's a more complex test, requiring cryptographic code. - * - */ -@AltCoinAccountDisclaimer("account.altcoin.popup.beam.msg") -public class Beam extends Coin { - public Beam() { - super("Beam", "BEAM", new RegexAddressValidator("^([0-9a-f]{1,80})$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/BitDaric.java b/assets/src/main/java/bisq/asset/coins/BitDaric.java deleted file mode 100644 index 3d6692d11a..0000000000 --- a/assets/src/main/java/bisq/asset/coins/BitDaric.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class BitDaric extends Coin { - - public BitDaric() { - super("BitDaric", "DARX", new RegexAddressValidator("^[R][a-km-zA-HJ-NP-Z1-9]{25,34}$")); - } -} - diff --git a/assets/src/main/java/bisq/asset/coins/BitcoinRhodium.java b/assets/src/main/java/bisq/asset/coins/BitcoinRhodium.java deleted file mode 100644 index 2b63f69430..0000000000 --- a/assets/src/main/java/bisq/asset/coins/BitcoinRhodium.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class BitcoinRhodium extends Coin { - - public BitcoinRhodium() { - super("Bitcoin Rhodium", "XRC", new Base58AddressValidator(new BitcoinRhodiumParams())); - } - - public static class BitcoinRhodiumParams extends NetworkParametersAdapter { - - public BitcoinRhodiumParams() { - addressHeader = 61; - p2shHeader = 123; - } - } -} - diff --git a/assets/src/main/java/bisq/asset/coins/Bitmark.java b/assets/src/main/java/bisq/asset/coins/Bitmark.java deleted file mode 100644 index 9141bd8d21..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Bitmark.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Bitmark extends Coin { - - public static class BitmarkParams extends NetworkParametersAdapter { - public BitmarkParams() { - addressHeader = 85; - p2shHeader = 5; - } - } - - public Bitmark() { - super("Bitmark", "BTM", new Base58AddressValidator(new BitmarkParams())); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Bitzec.java b/assets/src/main/java/bisq/asset/coins/Bitzec.java deleted file mode 100644 index 0c7233ed31..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Bitzec.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Bitzec extends Coin { - - public Bitzec() { - super("Bitzec", "BZC", new RegexAddressValidator("^t.*", "validation.altcoin.zAddressesNotSupported")); - } - -} diff --git a/assets/src/main/java/bisq/asset/coins/Blur.java b/assets/src/main/java/bisq/asset/coins/Blur.java deleted file mode 100644 index f431379e2a..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Blur.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.CryptoNoteAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.blur.msg") -public class Blur extends Coin { - - public Blur() { - super("Blur", "BLUR", new CryptoNoteAddressValidator(0x1e4d, 0x2195)); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/BurntBlackCoin.java b/assets/src/main/java/bisq/asset/coins/BurntBlackCoin.java deleted file mode 100644 index c141fe5191..0000000000 --- a/assets/src/main/java/bisq/asset/coins/BurntBlackCoin.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.blk-burnt.msg") -public class BurntBlackCoin extends Coin { - public static final short PAYLOAD_LIMIT = 15000; - - public BurntBlackCoin() { - super("Burnt BlackCoin", - "BLK-BURNT", - new RegexAddressValidator(String.format("(?:[0-9a-z]{2}?){1,%d}+", 2 * PAYLOAD_LIMIT))); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/CRowdCLassic.java b/assets/src/main/java/bisq/asset/coins/CRowdCLassic.java deleted file mode 100644 index a70ee8602e..0000000000 --- a/assets/src/main/java/bisq/asset/coins/CRowdCLassic.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class CRowdCLassic extends Coin { - - public CRowdCLassic() { - super("CRowdCLassic", "CRCL", new RegexAddressValidator("^[C][a-zA-Z0-9]{33}$")); - } -} - \ No newline at end of file diff --git a/assets/src/main/java/bisq/asset/coins/CTSCoin.java b/assets/src/main/java/bisq/asset/coins/CTSCoin.java deleted file mode 100644 index a8eafdfc51..0000000000 --- a/assets/src/main/java/bisq/asset/coins/CTSCoin.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class CTSCoin extends Coin { - public CTSCoin() { - super("CTSCoin", "CTSC", new Base58AddressValidator(new CtscMainNetParams())); - } - - public static class CtscMainNetParams extends NetworkParametersAdapter { - public CtscMainNetParams() { - this.addressHeader = 66; - this.p2shHeader = 16; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Cash2.java b/assets/src/main/java/bisq/asset/coins/Cash2.java deleted file mode 100644 index 37ce1daa6e..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Cash2.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.CryptoNoteAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.cash2.msg") -public class Cash2 extends Coin { - - public Cash2() { - super("Cash2", "CASH2", new CryptoNoteAddressValidator(false, 0x6)); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Chaucha.java b/assets/src/main/java/bisq/asset/coins/Chaucha.java deleted file mode 100644 index 43aa8de93f..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Chaucha.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Chaucha extends Coin { - - public Chaucha() { - super("Chaucha", "CHA", new Base58AddressValidator(new ChauchaParams())); - } - - public static class ChauchaParams extends NetworkParametersAdapter { - - public ChauchaParams() { - addressHeader = 88; - p2shHeader = 50; - } - } -} - diff --git a/assets/src/main/java/bisq/asset/coins/CloakCoin.java b/assets/src/main/java/bisq/asset/coins/CloakCoin.java deleted file mode 100644 index 9059e62dab..0000000000 --- a/assets/src/main/java/bisq/asset/coins/CloakCoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class CloakCoin extends Coin { - - public CloakCoin() { - super("CloakCoin", "CLOAK", new RegexAddressValidator("^[B|C][a-km-zA-HJ-NP-Z1-9]{33}|^smY[a-km-zA-HJ-NP-Z1-9]{99}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Counterparty.java b/assets/src/main/java/bisq/asset/coins/Counterparty.java deleted file mode 100644 index 4cca3572dd..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Counterparty.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.I18n; -import bisq.asset.RegexAddressValidator; - -public class Counterparty extends Coin { - - public Counterparty() { - super("Counterparty", "XCP", new XcpAddressValidator()); - } - - public static class XcpAddressValidator extends RegexAddressValidator { - - public XcpAddressValidator() { - super("^[1][a-zA-Z0-9]{33}", I18n.DISPLAY_STRINGS.getString("account.altcoin.popup.validation.XCP")); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Credits.java b/assets/src/main/java/bisq/asset/coins/Credits.java deleted file mode 100644 index d1a8f3d59a..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Credits.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -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 Base58AddressValidator { - - 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; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Croat.java b/assets/src/main/java/bisq/asset/coins/Croat.java deleted file mode 100644 index 84c25372bd..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Croat.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Croat extends Coin { - - public Croat() { - super("Croat", "CROAT", new RegexAddressValidator("^C[1-9A-HJ-NP-Za-km-z]{94}")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/DSTRA.java b/assets/src/main/java/bisq/asset/coins/DSTRA.java deleted file mode 100644 index 661696b0ec..0000000000 --- a/assets/src/main/java/bisq/asset/coins/DSTRA.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class DSTRA extends Coin { - - public DSTRA() { - super("DSTRA", "DST", new DSTRAAddressValidator()); - } - - - public static class DSTRAAddressValidator extends Base58AddressValidator { - - public DSTRAAddressValidator() { - super(new DSTRAParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[D][a-km-zA-HJ-NP-Z1-9]{33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class DSTRAParams extends NetworkParametersAdapter { - - public DSTRAParams() { - addressHeader = 30; - p2shHeader = 33; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/DarkPay.java b/assets/src/main/java/bisq/asset/coins/DarkPay.java deleted file mode 100644 index 598e105a5b..0000000000 --- a/assets/src/main/java/bisq/asset/coins/DarkPay.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class DarkPay extends Coin { - public DarkPay() { - super("DarkPay", "D4RK", new Base58AddressValidator(new DarkPayMainNetParams())); - } - - public static class DarkPayMainNetParams extends NetworkParametersAdapter { - public DarkPayMainNetParams() { - this.addressHeader = 31; - this.p2shHeader = 60; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Dash.java b/assets/src/main/java/bisq/asset/coins/Dash.java deleted file mode 100644 index f1bcbb402d..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Dash.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Dash extends Coin { - public Dash() { - super("Dash", "DASH", new Base58AddressValidator(new DashMainNetParams()), Network.MAINNET); - } - - public static class DashMainNetParams extends NetworkParametersAdapter { - public DashMainNetParams() { - this.addressHeader = 76; - this.p2shHeader = 16; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Decred.java b/assets/src/main/java/bisq/asset/coins/Decred.java deleted file mode 100644 index 4c5fdea350..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Decred.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.I18n; -import bisq.asset.RegexAddressValidator; - -public class Decred extends Coin { - - public Decred() { - super("Decred", "DCR", new DcrAddressValidator()); - } - - public static class DcrAddressValidator extends RegexAddressValidator { - - public DcrAddressValidator() { - super("^[Dk|Ds|De|DS|Dc|Pm][a-zA-Z0-9]{24,34}", I18n.DISPLAY_STRINGS.getString("account.altcoin.popup.validation.DCR")); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/DeepOnion.java b/assets/src/main/java/bisq/asset/coins/DeepOnion.java deleted file mode 100644 index 641fea2723..0000000000 --- a/assets/src/main/java/bisq/asset/coins/DeepOnion.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class DeepOnion extends Coin { - public DeepOnion() { - super("DeepOnion", "ONION", new DeepOnionAddressValidator()); - } - - public static class DeepOnionAddressValidator extends Base58AddressValidator { - - public DeepOnionAddressValidator() { - super(new DeepOnionParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[D][a-km-zA-HJ-NP-Z1-9]{24,33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - public static class DeepOnionParams extends NetworkParametersAdapter { - - public DeepOnionParams() { - super(); - addressHeader = 31; - p2shHeader = 78; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Dextro.java b/assets/src/main/java/bisq/asset/coins/Dextro.java deleted file mode 100644 index 06858d777f..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Dextro.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Dextro extends Coin { - - public Dextro() { - super("Dextro", "DXO", new Base58AddressValidator(new DextroParams())); - } - - - public static class DextroAddressValidator extends Base58AddressValidator { - - public DextroAddressValidator() { - super(new DextroParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[D][a-km-zA-HJ-NP-Z1-9]{33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class DextroParams extends NetworkParametersAdapter { - - public DextroParams() { - super(); - addressHeader = 30; - p2shHeader = 90; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Dogecoin.java b/assets/src/main/java/bisq/asset/coins/Dogecoin.java deleted file mode 100644 index e49733d81d..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Dogecoin.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Dogecoin extends Coin { - - public Dogecoin() { - super("Dogecoin", "DOGE", new Base58AddressValidator(new DogecoinMainNetParams()), Network.MAINNET); - } - - public static class DogecoinMainNetParams extends NetworkParametersAdapter { - public DogecoinMainNetParams() { - this.addressHeader = 30; - this.p2shHeader = 22; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Doichain.java b/assets/src/main/java/bisq/asset/coins/Doichain.java deleted file mode 100644 index 2f9557bb54..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Doichain.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Doichain extends Coin { - - public Doichain() { - super("Doichain", "DOI", new Base58AddressValidator(new DoichainParams())); - } - - public static class DoichainParams extends NetworkParametersAdapter { - public DoichainParams() { - addressHeader = 52; - p2shHeader = 13; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Donu.java b/assets/src/main/java/bisq/asset/coins/Donu.java deleted file mode 100644 index 66c0053da0..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Donu.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Donu extends Coin { - - public Donu() { - super("Donu", "DONU", new DonuAddressValidator()); - } - - - public static class DonuAddressValidator extends Base58AddressValidator { - - public DonuAddressValidator() { - super(new DonuParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[N][a-km-zA-HJ-NP-Z1-9]{24,33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class DonuParams extends NetworkParametersAdapter { - - public DonuParams() { - addressHeader = 53; - p2shHeader = 5; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Dragonglass.java b/assets/src/main/java/bisq/asset/coins/Dragonglass.java deleted file mode 100644 index 48fadf9118..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Dragonglass.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.drgl.msg") -public class Dragonglass extends Coin { - - public Dragonglass() { - super("Dragonglass", "DRGL", new RegexAddressValidator("^(dRGL)[1-9A-HJ-NP-Za-km-z]{94}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Emercoin.java b/assets/src/main/java/bisq/asset/coins/Emercoin.java deleted file mode 100644 index b9c1a42040..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Emercoin.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Emercoin extends Coin { - - public Emercoin() { - super("Emercoin", "EMC", new Base58AddressValidator(new EmercoinMainNetParams()), Network.MAINNET); - } - - public static class EmercoinMainNetParams extends NetworkParametersAdapter { - public EmercoinMainNetParams() { - this.addressHeader = 33; - this.p2shHeader = 92; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Ergo.java b/assets/src/main/java/bisq/asset/coins/Ergo.java deleted file mode 100644 index 512c829a97..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Ergo.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.AddressValidator; -import bisq.asset.Coin; - -import java.util.Arrays; - -import org.bitcoinj.core.Base58; -import org.bitcoinj.core.AddressFormatException; - -public class Ergo extends Coin { - - public Ergo() { - super("Ergo", "ERG", new ErgoAddressValidator()); - } - - public static class ErgoAddressValidator implements AddressValidator { - - @Override - public AddressValidationResult validate(String address) { - try { - byte[] decoded = Base58.decode(address); - if (decoded.length < 4) { - return AddressValidationResult.invalidAddress("Input too short: " + decoded.length); - } - if (decoded[0] != 1 && decoded[0] != 2 && decoded[0] != 3) { - return AddressValidationResult.invalidAddress("Invalid prefix"); - } - } catch (AddressFormatException e) { - return AddressValidationResult.invalidAddress(e); - } - return AddressValidationResult.validAddress(); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/EtherClassic.java b/assets/src/main/java/bisq/asset/coins/EtherClassic.java deleted file mode 100644 index 324dcc8243..0000000000 --- a/assets/src/main/java/bisq/asset/coins/EtherClassic.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.EtherAddressValidator; -import bisq.asset.I18n; - -public class EtherClassic extends Coin { - - public EtherClassic() { - super("Ether Classic", "ETC", new EtherAddressValidator(I18n.DISPLAY_STRINGS.getString("account.altcoin.popup.validation.ETC"))); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Faircoin.java b/assets/src/main/java/bisq/asset/coins/Faircoin.java deleted file mode 100644 index 3f438752dd..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Faircoin.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Faircoin extends Coin { - - public Faircoin() { - super("Faircoin", "FAIR", new Base58AddressValidator(new Faircoin.FaircoinParams())); - } - - public static class FaircoinParams extends NetworkParametersAdapter { - - public FaircoinParams() { - addressHeader = 95; - p2shHeader = 36; - } - } - -} diff --git a/assets/src/main/java/bisq/asset/coins/FourtyTwo.java b/assets/src/main/java/bisq/asset/coins/FourtyTwo.java deleted file mode 100644 index 846425f61f..0000000000 --- a/assets/src/main/java/bisq/asset/coins/FourtyTwo.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.CryptoNoteAddressValidator; - -public class FourtyTwo extends Coin { - - public FourtyTwo() { - super("FourtyTwo", "FRTY", new CryptoNoteAddressValidator(0x1cbd67, 0x13271817)); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Fujicoin.java b/assets/src/main/java/bisq/asset/coins/Fujicoin.java deleted file mode 100644 index adbd72ccb1..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Fujicoin.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Fujicoin extends Coin { - public Fujicoin() { - super("Fujicoin", "FJC", new Base58AddressValidator(new FujicoinParams())); - } - public static class FujicoinParams extends NetworkParametersAdapter { - - public FujicoinParams() { - addressHeader = 36; - p2shHeader = 16; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Galilel.java b/assets/src/main/java/bisq/asset/coins/Galilel.java deleted file mode 100644 index 37b22bab1b..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Galilel.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Galilel extends Coin { - public Galilel() { - super("Galilel", "GALI", new Base58AddressValidator(new GalilelMainNetParams())); - } - - public static class GalilelMainNetParams extends NetworkParametersAdapter { - public GalilelMainNetParams() { - this.addressHeader = 68; - this.p2shHeader = 16; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/GambleCoin.java b/assets/src/main/java/bisq/asset/coins/GambleCoin.java deleted file mode 100644 index 7759c7e621..0000000000 --- a/assets/src/main/java/bisq/asset/coins/GambleCoin.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class GambleCoin extends Coin { - - public GambleCoin() { - super("GambleCoin", "GMCN", new GambleCoinAddressValidator()); - } - - - public static class GambleCoinAddressValidator extends Base58AddressValidator { - - public GambleCoinAddressValidator() { - super(new GambleCoinParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[C][a-km-zA-HJ-NP-Z1-9]{33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class GambleCoinParams extends NetworkParametersAdapter { - - public GambleCoinParams() { - super(); - addressHeader = 28; - p2shHeader = 18; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Genesis.java b/assets/src/main/java/bisq/asset/coins/Genesis.java deleted file mode 100644 index 3674e89ba3..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Genesis.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.*; - -public class Genesis extends Coin { - - public Genesis() { - super("Genesis", "GENX", new GenesisAddressValidator()); - } - - public static class GenesisAddressValidator extends Base58AddressValidator { - - public GenesisAddressValidator() { - super(new GenesisParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (address.startsWith("S")) { - return super.validate(address); - }else if (address.startsWith("genx")){ - return AddressValidationResult.invalidAddress("Bech32 GENX addresses are not supported on bisq"); - }else if (address.startsWith("C")){ - return AddressValidationResult.invalidAddress("Legacy GENX addresses are not supported on bisq"); - } - return AddressValidationResult.invalidStructure(); - } - } - - public static class GenesisParams extends NetworkParametersAdapter { - - public GenesisParams() { - addressHeader = 28; - p2shHeader = 63; - } - } -} - diff --git a/assets/src/main/java/bisq/asset/coins/Grin.java b/assets/src/main/java/bisq/asset/coins/Grin.java deleted file mode 100644 index 064196bef7..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Grin.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.GrinAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.grin.msg") -public class Grin extends Coin { - - public Grin() { - super("Grin", "GRIN", new GrinAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Hatch.java b/assets/src/main/java/bisq/asset/coins/Hatch.java deleted file mode 100644 index 1210131c9e..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Hatch.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Hatch extends Coin { - public Hatch() { - super("Hatch", "HATCH", new Base58AddressValidator(new HatchMainNetParams()), Network.MAINNET); - } - - public static class HatchMainNetParams extends NetworkParametersAdapter { - public HatchMainNetParams() { - this.addressHeader = 76; - this.p2shHeader = 16; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Helium.java b/assets/src/main/java/bisq/asset/coins/Helium.java deleted file mode 100644 index bd1eff9e95..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Helium.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Helium extends Coin { - - public Helium() { - super("Helium", "HLM", new Base58AddressValidator(new HeliumParams())); - } - - public static class HeliumParams extends NetworkParametersAdapter { - - public HeliumParams() { - addressHeader = 63; - p2shHeader = 5; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Horizen.java b/assets/src/main/java/bisq/asset/coins/Horizen.java deleted file mode 100644 index 86793204b6..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Horizen.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.AddressValidator; -import bisq.asset.Coin; - -import org.bitcoinj.core.AddressFormatException; -import org.bitcoinj.core.Base58; - -public class Horizen extends Coin { - - public Horizen() { - super("Horizen", "ZEN", new HorizenAddressValidator()); - } - - - public static class HorizenAddressValidator implements AddressValidator { - - @Override - public AddressValidationResult validate(String address) { - byte[] byteAddress; - try { - // Get the non Base58 form of the address and the bytecode of the first two bytes - byteAddress = Base58.decodeChecked(address); - } catch (AddressFormatException e) { - // Unhandled Exception (probably a checksum error) - return AddressValidationResult.invalidAddress(e); - } - int version0 = byteAddress[0] & 0xFF; - int version1 = byteAddress[1] & 0xFF; - - // We only support public ("zn" (0x20,0x89), "t1" (0x1C,0xB8)) - // and multisig ("zs" (0x20,0x96), "t3" (0x1C,0xBD)) addresses - - // Fail for private addresses - if (version0 == 0x16 && version1 == 0x9A) - // Address starts with "zc" - return AddressValidationResult.invalidAddress("", "validation.altcoin.zAddressesNotSupported"); - - if (version0 == 0x1C && (version1 == 0xB8 || version1 == 0xBD)) - // "t1" or "t3" address - return AddressValidationResult.validAddress(); - - if (version0 == 0x20 && (version1 == 0x89 || version1 == 0x96)) - // "zn" or "zs" address - return AddressValidationResult.validAddress(); - - // Unknown Type - return AddressValidationResult.invalidStructure(); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/IdaPay.java b/assets/src/main/java/bisq/asset/coins/IdaPay.java deleted file mode 100644 index d2bbcfbd88..0000000000 --- a/assets/src/main/java/bisq/asset/coins/IdaPay.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class IdaPay extends Coin { - - public IdaPay() { - super("IdaPay", "IDA", new IdaPayAddressValidator()); - } - - - public static class IdaPayAddressValidator extends Base58AddressValidator { - - public IdaPayAddressValidator() { - super(new IdaPayParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[CD][a-km-zA-HJ-NP-Z1-9]{33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class IdaPayParams extends NetworkParametersAdapter { - - public IdaPayParams() { - super(); - addressHeader = 29; - p2shHeader = 36; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Iridium.java b/assets/src/main/java/bisq/asset/coins/Iridium.java deleted file mode 100644 index 2d3c086a1b..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Iridium.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ -package bisq.asset.coins; -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Iridium extends Coin { - public Iridium() { - super("Iridium", "IRD", new RegexAddressValidator("^ir[1-9A-Za-z^OIl]{95}")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Kekcoin.java b/assets/src/main/java/bisq/asset/coins/Kekcoin.java deleted file mode 100644 index be1edc8ef7..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Kekcoin.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Kekcoin extends Coin { - - public Kekcoin() { - super("Kekcoin", "KEK", new Base58AddressValidator(new KekcoinParams())); - } - - - public static class KekcoinParams extends NetworkParametersAdapter { - - public KekcoinParams() { - super(); - addressHeader = 45; - p2shHeader = 88; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/KnowYourDeveloper.java b/assets/src/main/java/bisq/asset/coins/KnowYourDeveloper.java deleted file mode 100644 index 5e4bcad883..0000000000 --- a/assets/src/main/java/bisq/asset/coins/KnowYourDeveloper.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class KnowYourDeveloper extends Coin { - public KnowYourDeveloper() { - super("Know Your Developer", "KYDC", new Base58AddressValidator(new KydMainNetParams())); - } - - public static class KydMainNetParams extends NetworkParametersAdapter { - public KydMainNetParams() { - this.addressHeader = 78; - this.p2shHeader = 85; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Kore.java b/assets/src/main/java/bisq/asset/coins/Kore.java deleted file mode 100644 index 2872660d65..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Kore.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Kore extends Coin { - public Kore() { - super("Kore", "KORE", new Base58AddressValidator(new KoreMainNetParams())); - } - - public static class KoreMainNetParams extends NetworkParametersAdapter { - public KoreMainNetParams() { - this.addressHeader = 45; - this.p2shHeader = 85; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Krypton.java b/assets/src/main/java/bisq/asset/coins/Krypton.java deleted file mode 100644 index 659523c539..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Krypton.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Krypton extends Coin { - - public Krypton() { - super("Krypton", "ZOD", new RegexAddressValidator("^QQQ[1-9A-Za-z^OIl]{95}")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/LBRYCredits.java b/assets/src/main/java/bisq/asset/coins/LBRYCredits.java deleted file mode 100644 index 1159d81084..0000000000 --- a/assets/src/main/java/bisq/asset/coins/LBRYCredits.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class LBRYCredits extends Coin { - - public LBRYCredits() { - super("LBRY Credits", "LBC", new Base58AddressValidator(new LBRYCreditsMainNetParams()), Network.MAINNET); - } - - public static class LBRYCreditsMainNetParams extends NetworkParametersAdapter { - public LBRYCreditsMainNetParams() { - this.addressHeader = 0x55; - this.p2shHeader = 0x7a; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/LiquidBitcoin.java b/assets/src/main/java/bisq/asset/coins/LiquidBitcoin.java deleted file mode 100644 index 6112ea0285..0000000000 --- a/assets/src/main/java/bisq/asset/coins/LiquidBitcoin.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.LiquidBitcoinAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.liquidbitcoin.msg") -public class LiquidBitcoin extends Coin { - - public LiquidBitcoin() { - super("Liquid Bitcoin", "L-BTC", new LiquidBitcoinAddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/LitecoinPlus.java b/assets/src/main/java/bisq/asset/coins/LitecoinPlus.java deleted file mode 100644 index 3fd60f2044..0000000000 --- a/assets/src/main/java/bisq/asset/coins/LitecoinPlus.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class LitecoinPlus extends Coin { - - public LitecoinPlus() { - super("LitecoinPlus", "LCP", new Base58AddressValidator(new LitecoinPlusMainNetParams())); - } - - public static class LitecoinPlusMainNetParams extends NetworkParametersAdapter { - public LitecoinPlusMainNetParams() { - this.addressHeader = 75; - this.p2shHeader = 8; - } - } -} - diff --git a/assets/src/main/java/bisq/asset/coins/LitecoinZ.java b/assets/src/main/java/bisq/asset/coins/LitecoinZ.java deleted file mode 100644 index ae63ba8010..0000000000 --- a/assets/src/main/java/bisq/asset/coins/LitecoinZ.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class LitecoinZ extends Coin { - - public LitecoinZ() { - super("LitecoinZ", "LTZ", new RegexAddressValidator("^L.*", "validation.altcoin.ltz.zAddressesNotSupported")); - } - -} diff --git a/assets/src/main/java/bisq/asset/coins/Lytix.java b/assets/src/main/java/bisq/asset/coins/Lytix.java deleted file mode 100644 index d358b34a6e..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Lytix.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Lytix extends Coin { - - public Lytix() { - super("Lytix", "LYTX", new Base58AddressValidator(new LytixParams())); - } - - public static class LytixParams extends NetworkParametersAdapter { - - public LytixParams() { - addressHeader = 19; - p2shHeader = 11; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Masari.java b/assets/src/main/java/bisq/asset/coins/Masari.java deleted file mode 100644 index 075f9da265..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Masari.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.CryptoNoteAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.msr.msg") -public class Masari extends Coin { - - public Masari() { - super("Masari", "MSR", new CryptoNoteAddressValidator(28, 52)); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Mask.java b/assets/src/main/java/bisq/asset/coins/Mask.java deleted file mode 100644 index f26219ba3a..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Mask.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.CryptoNoteAddressValidator; - -public class Mask extends Coin { - public Mask() { - super("Mask", "MASK", new CryptoNoteAddressValidator(123, 206)); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Mile.java b/assets/src/main/java/bisq/asset/coins/Mile.java deleted file mode 100644 index 0bebd78f57..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Mile.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.AddressValidator; -import bisq.asset.Coin; - -import org.bitcoinj.core.AddressFormatException; -import org.bitcoinj.core.Base58; - -import java.util.Arrays; -import java.util.zip.CRC32; -import java.util.zip.Checksum; - -public class Mile extends Coin { - - public Mile() { - super("Mile", "MILE", new MileAddressValidator()); - } - - - /** - * Mile address - base58(32 bytes of public key + 4 bytes of crc32) - */ - public static class MileAddressValidator implements AddressValidator { - public MileAddressValidator() { - } - - @Override - public AddressValidationResult validate(String address) { - byte[] decoded; - - try { - decoded = Base58.decode(address); - } catch (AddressFormatException e) { - return AddressValidationResult.invalidAddress(e.getMessage()); - } - if (decoded.length != 32 + 4) - return AddressValidationResult.invalidAddress("Invalid address"); - - byte[] data = Arrays.copyOfRange(decoded, 0, decoded.length - 4); - byte[] addrChecksum = Arrays.copyOfRange(decoded, decoded.length - 4, decoded.length); - - Checksum checksum = new CRC32(); - checksum.update(data, 0, data.length); - long checksumValue = checksum.getValue(); - - if ((byte)(checksumValue & 0xff) != addrChecksum[0] || - (byte)((checksumValue >> 8) & 0xff) != addrChecksum[1] || - (byte)((checksumValue >> 16) & 0xff) != addrChecksum[2] || - (byte)((checksumValue >> 24) & 0xff) != addrChecksum[3]) - { - return AddressValidationResult.invalidAddress("Invalid address checksum"); - } - - return AddressValidationResult.validAddress(); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/MirQuiX.java b/assets/src/main/java/bisq/asset/coins/MirQuiX.java deleted file mode 100644 index da967be762..0000000000 --- a/assets/src/main/java/bisq/asset/coins/MirQuiX.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class MirQuiX extends Coin { - - public MirQuiX() { - super("MirQuiX", "MQX", new RegexAddressValidator("^[M][a-km-zA-HJ-NP-Z1-9]{33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/MoX.java b/assets/src/main/java/bisq/asset/coins/MoX.java deleted file mode 100644 index 214ec22d85..0000000000 --- a/assets/src/main/java/bisq/asset/coins/MoX.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class MoX extends Coin { - - public MoX() { - super("MoX", "MOX", new RegexAddressValidator("^X[1-9A-Za-z^OIl]{96}")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/MobitGlobal.java b/assets/src/main/java/bisq/asset/coins/MobitGlobal.java deleted file mode 100644 index a54ce3114d..0000000000 --- a/assets/src/main/java/bisq/asset/coins/MobitGlobal.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class MobitGlobal extends Coin { - - public MobitGlobal() { - super("MobitGlobal", "MBGL", new MobitGlobalAddressValidator()); - } - - - public static class MobitGlobalAddressValidator extends Base58AddressValidator { - - public MobitGlobalAddressValidator() { - super(new MobitGlobalParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[M][a-zA-Z1-9]{33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class MobitGlobalParams extends NetworkParametersAdapter { - - public MobitGlobalParams() { - addressHeader = 50; - p2shHeader = 110; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/MonetaryUnit.java b/assets/src/main/java/bisq/asset/coins/MonetaryUnit.java deleted file mode 100644 index eb5d9c4205..0000000000 --- a/assets/src/main/java/bisq/asset/coins/MonetaryUnit.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class MonetaryUnit extends Coin { - - public MonetaryUnit() { - super("MonetaryUnit", "MUE", new MonetaryUnitAddressValidator()); - } - - - public static class MonetaryUnitAddressValidator extends Base58AddressValidator { - - public MonetaryUnitAddressValidator() { - super(new MonetaryUnitParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[7][a-km-zA-HJ-NP-Z1-9]{24,33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class MonetaryUnitParams extends NetworkParametersAdapter { - - public MonetaryUnitParams() { - addressHeader = 16; - p2shHeader = 76; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Myce.java b/assets/src/main/java/bisq/asset/coins/Myce.java deleted file mode 100644 index 4ff5748469..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Myce.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Myce extends Coin { - - public Myce() { - super("Myce", "YCE", new Base58AddressValidator(new MyceParams())); - } - - public static class MyceParams extends NetworkParametersAdapter { - public MyceParams() { - addressHeader = 50; - p2shHeader = 85; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Namecoin.java b/assets/src/main/java/bisq/asset/coins/Namecoin.java deleted file mode 100644 index 429193866c..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Namecoin.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.I18n; -import bisq.asset.RegexAddressValidator; - -public class Namecoin extends Coin { - - public Namecoin() { - super("Namecoin", "NMC", new NmcAddressValidator()); - } - - public static class NmcAddressValidator extends RegexAddressValidator { - - public NmcAddressValidator() { - super("^[NM][a-zA-Z0-9]{33}$", I18n.DISPLAY_STRINGS.getString("account.altcoin.popup.validation.NMC")); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Navcoin.java b/assets/src/main/java/bisq/asset/coins/Navcoin.java deleted file mode 100644 index 2c58790c04..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Navcoin.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Navcoin extends Coin { - public Navcoin() { - super("Navcoin", "NAV", new Base58AddressValidator(new NavcoinParams())); - } - - public static class NavcoinParams extends NetworkParametersAdapter { - public NavcoinParams() { - this.addressHeader = 53; - this.p2shHeader = 85; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Ndau.java b/assets/src/main/java/bisq/asset/coins/Ndau.java deleted file mode 100644 index e7faae5e68..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Ndau.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -/* - * Copyright © 2019 Oneiro NA, Inc. - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - - -public class Ndau extends Coin { - - public Ndau() { - // note: ndau addresses contain an internal checksum which was deemed too complicated to include here. - // this regex performs superficial validation, but there is a large space of addresses marked valid - // by this regex which are not in fact valid ndau addresses. For actual ndau address validation, - // use the Address class in github.com/oneiro-ndev/ndauj (java) or github.com/oneiro-ndev/ndaumath/pkg/address (go). - super("ndau", "XND", new RegexAddressValidator("nd[anexbm][abcdefghijkmnpqrstuvwxyz23456789]{45}")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Noir.java b/assets/src/main/java/bisq/asset/coins/Noir.java deleted file mode 100644 index f65c481d22..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Noir.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Noir extends Coin { - public Noir() { - super("Noir", "NOR", new RegexAddressValidator("^[Z][_A-z0-9]*([_A-z0-9])*$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/NoteBlockchain.java b/assets/src/main/java/bisq/asset/coins/NoteBlockchain.java deleted file mode 100644 index 8398659554..0000000000 --- a/assets/src/main/java/bisq/asset/coins/NoteBlockchain.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class NoteBlockchain extends Coin { - public NoteBlockchain() { - super("NoteBlockchain", "NTBC", new RegexAddressValidator("^[N][a-km-zA-HJ-NP-Z1-9]{26,33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/PENG.java b/assets/src/main/java/bisq/asset/coins/PENG.java deleted file mode 100644 index 4a975a1137..0000000000 --- a/assets/src/main/java/bisq/asset/coins/PENG.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class PENG extends Coin { - - public PENG() { - super("PENG Coin", "PENG", new RegexAddressValidator("^[P][a-km-zA-HJ-NP-Z1-9]{33}$")); - } -} \ No newline at end of file diff --git a/assets/src/main/java/bisq/asset/coins/PIVX.java b/assets/src/main/java/bisq/asset/coins/PIVX.java deleted file mode 100644 index 6a2020b2a1..0000000000 --- a/assets/src/main/java/bisq/asset/coins/PIVX.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class PIVX extends Coin { - - public PIVX() { - super("PIVX", "PIVX", new PIVXAddressValidator()); - } - - - public static class PIVXAddressValidator extends Base58AddressValidator { - - public PIVXAddressValidator() { - super(new PIVXParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[D][a-km-zA-HJ-NP-Z1-9]{24,33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class PIVXParams extends NetworkParametersAdapter { - - public PIVXParams() { - addressHeader = 30; - p2shHeader = 13; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/PZDC.java b/assets/src/main/java/bisq/asset/coins/PZDC.java deleted file mode 100644 index 47c09dd60b..0000000000 --- a/assets/src/main/java/bisq/asset/coins/PZDC.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class PZDC extends Coin { - - public PZDC() { - super("PZDC", "PZDC", new PZDCAddressValidator()); - } - - - public static class PZDCAddressValidator extends Base58AddressValidator { - - public PZDCAddressValidator() { - super(new PZDCParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[P][a-km-zA-HJ-NP-Z1-9]{24,33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class PZDCParams extends NetworkParametersAdapter { - - public PZDCParams() { - addressHeader = 55; - p2shHeader = 13; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/ParsiCoin.java b/assets/src/main/java/bisq/asset/coins/ParsiCoin.java deleted file mode 100644 index 9794366240..0000000000 --- a/assets/src/main/java/bisq/asset/coins/ParsiCoin.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.CryptoNoteAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.pars.msg") -public class ParsiCoin extends Coin { - - public ParsiCoin() { - super("ParsiCoin", "PARS", new CryptoNoteAddressValidator(false, 0x90004)); - } -} \ No newline at end of file diff --git a/assets/src/main/java/bisq/asset/coins/Particl.java b/assets/src/main/java/bisq/asset/coins/Particl.java deleted file mode 100644 index 44a2fb081c..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Particl.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; -import bisq.asset.AddressValidationResult; - - -public class Particl extends Coin { - public Particl() { - super("Particl", "PART", new ParticlMainNetAddressValidator()); - } - - public static class ParticlMainNetParams extends NetworkParametersAdapter { - public ParticlMainNetParams() { - this.addressHeader = 56; - this.p2shHeader = 60; - } - } - public static class ParticlMainNetAddressValidator extends Base58AddressValidator { - - public ParticlMainNetAddressValidator() { - super(new ParticlMainNetParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[RP][a-km-zA-HJ-NP-Z1-9]{25,34}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - -} diff --git a/assets/src/main/java/bisq/asset/coins/Persona.java b/assets/src/main/java/bisq/asset/coins/Persona.java deleted file mode 100644 index 9fcad5212c..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Persona.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Persona extends Coin { - - public Persona() { - super("Persona", "PRSN", new RegexAddressValidator("^[P][a-km-zA-HJ-NP-Z1-9]{33}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Pinkcoin.java b/assets/src/main/java/bisq/asset/coins/Pinkcoin.java deleted file mode 100644 index f4889ac9bc..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Pinkcoin.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Pinkcoin extends Coin { - - public Pinkcoin() { - super("Pinkcoin", "PINK", new Base58AddressValidator(new PinkcoinParams())); - } - - - public static class PinkcoinParams extends NetworkParametersAdapter { - - public PinkcoinParams() { - addressHeader = 3; - p2shHeader = 28; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Plenteum.java b/assets/src/main/java/bisq/asset/coins/Plenteum.java deleted file mode 100644 index 668a628d12..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Plenteum.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Plenteum extends Coin { - - public Plenteum() { - super("Plenteum", "PLE", new RegexAddressValidator("^PLe[1-9A-Za-z^OIl]{95}")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/QMCoin.java b/assets/src/main/java/bisq/asset/coins/QMCoin.java deleted file mode 100644 index 9bcf6540aa..0000000000 --- a/assets/src/main/java/bisq/asset/coins/QMCoin.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class QMCoin extends Coin { - - public QMCoin() { - super("QMCoin", "QMCoin", new QMCoinAddressValidator()); - } - - - public static class QMCoinAddressValidator extends Base58AddressValidator { - - public QMCoinAddressValidator() { - super(new QMCoinParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[Q][a-km-zA-HJ-NP-Z1-9]{24,33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class QMCoinParams extends NetworkParametersAdapter { - - public QMCoinParams() { - addressHeader = 58; - p2shHeader = 120; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Qbase.java b/assets/src/main/java/bisq/asset/coins/Qbase.java deleted file mode 100644 index 1cc57e540c..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Qbase.java +++ /dev/null @@ -1,37 +0,0 @@ -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Qbase extends Coin { - public Qbase() { - super("Qbase", "QBS", new Qbase.QbaseAddressValidator()); - } - - - public static class QbaseAddressValidator extends Base58AddressValidator { - - public QbaseAddressValidator() { - super(new Qbase.QbaseParams()); - } - - @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 QbaseParams extends NetworkParametersAdapter { - - public QbaseParams() { - addressHeader = 25; - p2shHeader = 5; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Qwertycoin.java b/assets/src/main/java/bisq/asset/coins/Qwertycoin.java deleted file mode 100644 index cdb22fbe39..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Qwertycoin.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.CryptoNoteAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.qwertycoin.msg") -public class Qwertycoin extends Coin { - - public Qwertycoin() { - super("Qwertycoin", "QWC", new CryptoNoteAddressValidator(false, 0x14820c)); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Radium.java b/assets/src/main/java/bisq/asset/coins/Radium.java deleted file mode 100644 index 5aea7378cc..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Radium.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Radium extends Coin { - - public Radium() { - super("Radium", "RADS", new Base58AddressValidator(new RadiumParams())); - } - - - public static class RadiumParams extends NetworkParametersAdapter { - - public RadiumParams() { - super(); - addressHeader = 76; - p2shHeader = 58; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Remix.java b/assets/src/main/java/bisq/asset/coins/Remix.java deleted file mode 100644 index 03d83cb268..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Remix.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Remix extends Coin { - - public Remix() { - super("Remix", "RMX", new RegexAddressValidator("^((REMXi|SubRM)[1-9A-HJ-NP-Za-km-z]{94})$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Ryo.java b/assets/src/main/java/bisq/asset/coins/Ryo.java deleted file mode 100644 index a03ce59630..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Ryo.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Ryo extends Coin { - - public Ryo() { - super("Ryo", "RYO", new RegexAddressValidator("^((RYoL|RYoS)[1-9A-HJ-NP-Za-km-z]{95}|(RYoK)[1-9A-HJ-NP-Za-km-z]{51})$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/SUB1X.java b/assets/src/main/java/bisq/asset/coins/SUB1X.java deleted file mode 100644 index 2c948db791..0000000000 --- a/assets/src/main/java/bisq/asset/coins/SUB1X.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class SUB1X extends Coin { - - public SUB1X() { - super("SUB1X", "SUB1X", new SUB1XAddressValidator()); - } - - - public static class SUB1XAddressValidator extends Base58AddressValidator { - - public SUB1XAddressValidator() { - super(new SUB1XParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[Z][a-km-zA-HJ-NP-Z1-9]{24,33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class SUB1XParams extends NetworkParametersAdapter { - - public SUB1XParams() { - addressHeader = 80; - p2shHeader = 13; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/SiaPrimeCoin.java b/assets/src/main/java/bisq/asset/coins/SiaPrimeCoin.java deleted file mode 100644 index 28e6e6854d..0000000000 --- a/assets/src/main/java/bisq/asset/coins/SiaPrimeCoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class SiaPrimeCoin extends Coin { - - public SiaPrimeCoin() { - super("SiaPrimeCoin", "SCP", new RegexAddressValidator("^([0-9a-z]{76})$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Siafund.java b/assets/src/main/java/bisq/asset/coins/Siafund.java deleted file mode 100644 index 5eea8715fe..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Siafund.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.I18n; -import bisq.asset.RegexAddressValidator; - -public class Siafund extends Coin { - - public Siafund() { - super("Siafund", "SF", new SfAddressValidator()); - } - - public static class SfAddressValidator extends RegexAddressValidator { - - public SfAddressValidator() { - super("^[0-9a-fA-F]{76}$", I18n.DISPLAY_STRINGS.getString("account.altcoin.popup.validation.XCP")); - } - } - -} diff --git a/assets/src/main/java/bisq/asset/coins/SixEleven.java b/assets/src/main/java/bisq/asset/coins/SixEleven.java deleted file mode 100644 index 928876dc4c..0000000000 --- a/assets/src/main/java/bisq/asset/coins/SixEleven.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class SixEleven extends Coin { - - public SixEleven() { - super("SixEleven", "SIL", new SixElevenAddressValidator()); - } - - public static class SixElevenAddressValidator extends Base58AddressValidator { - - public SixElevenAddressValidator() { - super(new SixEleven.SixElevenChainParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[MN][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - public static class SixElevenChainParams extends NetworkParametersAdapter { - public SixElevenChainParams() { - addressHeader = 52; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Solo.java b/assets/src/main/java/bisq/asset/coins/Solo.java deleted file mode 100644 index 45922b1006..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Solo.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.CryptoNoteAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.solo.msg") -public class Solo extends Coin { - - public Solo() { - super("Solo", "XSL", new CryptoNoteAddressValidator(13975, 23578)); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/SpaceCash.java b/assets/src/main/java/bisq/asset/coins/SpaceCash.java deleted file mode 100644 index 5d3bf10616..0000000000 --- a/assets/src/main/java/bisq/asset/coins/SpaceCash.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class SpaceCash extends Coin { - - public SpaceCash() { - super("SpaceCash", "SPACE", new RegexAddressValidator("^([0-9a-z]{76})$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Spectrecoin.java b/assets/src/main/java/bisq/asset/coins/Spectrecoin.java deleted file mode 100644 index 7e31703750..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Spectrecoin.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Spectrecoin extends Coin { - - public Spectrecoin() { - super("Spectrecoin", "XSPEC", new Base58AddressValidator(new SpectrecoinParams())); - } - - - public static class SpectrecoinParams extends NetworkParametersAdapter { - - public SpectrecoinParams() { - addressHeader = 63; - p2shHeader = 136; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Starwels.java b/assets/src/main/java/bisq/asset/coins/Starwels.java deleted file mode 100644 index e2cc7de2ef..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Starwels.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; - -public class Starwels extends Coin { - - public Starwels() { - super("Starwels", "USDH", new Base58AddressValidator()); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/TEO.java b/assets/src/main/java/bisq/asset/coins/TEO.java deleted file mode 100644 index 9e91e863de..0000000000 --- a/assets/src/main/java/bisq/asset/coins/TEO.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class TEO extends Coin { - - public TEO() { - super("Trust Ether reOrigin", "TEO", new RegexAddressValidator("^0x[0-9a-fA-F]{40}$")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/TurtleCoin.java b/assets/src/main/java/bisq/asset/coins/TurtleCoin.java deleted file mode 100644 index c43aa57da3..0000000000 --- a/assets/src/main/java/bisq/asset/coins/TurtleCoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class TurtleCoin extends Coin { - - public TurtleCoin() { - super("TurtleCoin", "TRTL", new RegexAddressValidator("^TRTL[1-9A-Za-z^OIl]{95}")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/UnitedCommunityCoin.java b/assets/src/main/java/bisq/asset/coins/UnitedCommunityCoin.java deleted file mode 100644 index 8b0ed8a393..0000000000 --- a/assets/src/main/java/bisq/asset/coins/UnitedCommunityCoin.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class UnitedCommunityCoin extends Coin { - - public UnitedCommunityCoin() { - super("UnitedCommunityCoin", "UCC", new UnitedCommunityCoinAddressValidator()); - } - - - public static class UnitedCommunityCoinAddressValidator extends Base58AddressValidator { - - public UnitedCommunityCoinAddressValidator() { - super(new UnitedCommunityCoinParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (!address.matches("^[U][a-km-zA-HJ-NP-Z1-9]{33}$")) - return AddressValidationResult.invalidStructure(); - - return super.validate(address); - } - } - - - public static class UnitedCommunityCoinParams extends NetworkParametersAdapter { - - public UnitedCommunityCoinParams() { - super(); - addressHeader = 68; - p2shHeader = 18; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/Unobtanium.java b/assets/src/main/java/bisq/asset/coins/Unobtanium.java deleted file mode 100644 index c243659d32..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Unobtanium.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.I18n; -import bisq.asset.RegexAddressValidator; - -public class Unobtanium extends Coin { - - public Unobtanium() { - super("Unobtanium", "UNO", new UnoAddressValidator()); - } - - public static class UnoAddressValidator extends RegexAddressValidator { - - public UnoAddressValidator() { - super("^[u]?[a-zA-Z0-9]{33}", I18n.DISPLAY_STRINGS.getString("account.altcoin.popup.validation.UNO")); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/VARIUS.java b/assets/src/main/java/bisq/asset/coins/VARIUS.java deleted file mode 100644 index 96ad5eafb5..0000000000 --- a/assets/src/main/java/bisq/asset/coins/VARIUS.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class VARIUS extends Coin { - - public VARIUS() { - super("VARIUS Coin", "VARIUS", new RegexAddressValidator("^[V][a-km-zA-HJ-NP-Z1-9]{33}$")); - } -} \ No newline at end of file diff --git a/assets/src/main/java/bisq/asset/coins/Veil.java b/assets/src/main/java/bisq/asset/coins/Veil.java deleted file mode 100644 index b0df4452b9..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Veil.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.*; - -public class Veil extends Coin { - - public Veil() { - super("Veil", "VEIL", new VeilAddressValidator()); - } - - public static class VeilAddressValidator extends Base58AddressValidator { - - public VeilAddressValidator() { - super(new VeilParams()); - } - - @Override - public AddressValidationResult validate(String address) { - if (address.startsWith("V")) { - return super.validate(address); - }else if (address.startsWith("bv")){ - // TODO: Add bech32 support - return AddressValidationResult.invalidAddress("Bech32 addresses not supported on bisq"); - } - return AddressValidationResult.invalidStructure(); - } - } - - public static class VeilParams extends NetworkParametersAdapter { - - public VeilParams() { - addressHeader = 70; - p2shHeader = 5; - } - } -} - diff --git a/assets/src/main/java/bisq/asset/coins/Vertcoin.java b/assets/src/main/java/bisq/asset/coins/Vertcoin.java deleted file mode 100644 index 4637703525..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Vertcoin.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Base58AddressValidator; -import bisq.asset.Coin; -import bisq.asset.NetworkParametersAdapter; - -public class Vertcoin extends Coin { - public Vertcoin() { - super("Vertcoin", "VTC", new Base58AddressValidator(new VertcoinMainNetParams())); - } - - public static class VertcoinMainNetParams extends NetworkParametersAdapter { - public VertcoinMainNetParams() { - this.addressHeader = 71; - this.p2shHeader = 5; - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/WORX.java b/assets/src/main/java/bisq/asset/coins/WORX.java deleted file mode 100644 index 31d99067be..0000000000 --- a/assets/src/main/java/bisq/asset/coins/WORX.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class WORX extends Coin { - - public WORX() { - super("WORX Coin", "WORX", new RegexAddressValidator("^[W][a-km-zA-HJ-NP-Z1-9]{33}$")); - } -} \ No newline at end of file diff --git a/assets/src/main/java/bisq/asset/coins/Webchain.java b/assets/src/main/java/bisq/asset/coins/Webchain.java deleted file mode 100644 index 07c29afd76..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Webchain.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class Webchain extends Coin { - - public Webchain() { - super("Webchain", "WEB", new RegexAddressValidator("^0x[0-9a-fA-F]{40}$")); - } -} - diff --git a/assets/src/main/java/bisq/asset/coins/WrkzCoin.java b/assets/src/main/java/bisq/asset/coins/WrkzCoin.java deleted file mode 100644 index 660e091512..0000000000 --- a/assets/src/main/java/bisq/asset/coins/WrkzCoin.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class WrkzCoin extends Coin { - - public WrkzCoin() { - super("WrkzCoin", "WRKZ", new RegexAddressValidator("^Wrkz[1-9A-Za-z^OIl]{94}")); - } -} diff --git a/assets/src/main/java/bisq/asset/coins/XDR.java b/assets/src/main/java/bisq/asset/coins/XDR.java deleted file mode 100644 index 6e3e77e7ec..0000000000 --- a/assets/src/main/java/bisq/asset/coins/XDR.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; - -public class XDR extends Coin { - - public XDR() { - super("XDR", "XDR0", new Mile.MileAddressValidator()); - } - -} diff --git a/assets/src/main/java/bisq/asset/coins/Zcash.java b/assets/src/main/java/bisq/asset/coins/Zcash.java deleted file mode 100644 index 2ed5fa4e09..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Zcash.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.ZEC.msg") -public class Zcash extends Coin { - - public Zcash() { - super("Zcash", "ZEC", new RegexAddressValidator("^t.*", "validation.altcoin.zAddressesNotSupported")); - } - -} diff --git a/assets/src/main/java/bisq/asset/coins/Zcoin.java b/assets/src/main/java/bisq/asset/coins/Zcoin.java deleted file mode 100644 index 80d51d062a..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Zcoin.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.I18n; -import bisq.asset.RegexAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.XZC.msg") -public class Zcoin extends Coin { - - public Zcoin() { - super("Zcoin", "XZC", new XzcAddressValidator()); - } - - public static class XzcAddressValidator extends RegexAddressValidator { - - public XzcAddressValidator() { - super("^a?[a-zA-Z0-9]{33}", I18n.DISPLAY_STRINGS.getString("account.altcoin.popup.validation.XZC")); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/ZelCash.java b/assets/src/main/java/bisq/asset/coins/ZelCash.java deleted file mode 100644 index 99ba8b5821..0000000000 --- a/assets/src/main/java/bisq/asset/coins/ZelCash.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class ZelCash extends Coin { - - public ZelCash() { - super("ZelCash", "ZEL", new RegexAddressValidator("^t.*", "validation.altcoin.zAddressesNotSupported")); - } - -} diff --git a/assets/src/main/java/bisq/asset/coins/Zero.java b/assets/src/main/java/bisq/asset/coins/Zero.java deleted file mode 100644 index 7f73698791..0000000000 --- a/assets/src/main/java/bisq/asset/coins/Zero.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AddressValidationResult; -import bisq.asset.AddressValidator; -import bisq.asset.Coin; - -public class Zero extends Coin { - - public Zero() { - super("Zero", "ZER", new ZeroAddressValidator()); - } - - - public static class ZeroAddressValidator implements AddressValidator { - - @Override - public AddressValidationResult validate(String address) { - // We only support t addresses (transparent transactions) - if (!address.startsWith("t1")) - return AddressValidationResult.invalidAddress("", "validation.altcoin.zAddressesNotSupported"); - - return AddressValidationResult.validAddress(); - } - } -} diff --git a/assets/src/main/java/bisq/asset/coins/ZeroClassic.java b/assets/src/main/java/bisq/asset/coins/ZeroClassic.java deleted file mode 100644 index 6d17a3c858..0000000000 --- a/assets/src/main/java/bisq/asset/coins/ZeroClassic.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -public class ZeroClassic extends Coin { - - public ZeroClassic() { - super("ZeroClassic", "ZERC", new RegexAddressValidator("^t.*", "validation.altcoin.zAddressesNotSupported")); - } - -} diff --git a/assets/src/main/java/bisq/asset/coins/uPlexa.java b/assets/src/main/java/bisq/asset/coins/uPlexa.java deleted file mode 100644 index 3746ddeb7e..0000000000 --- a/assets/src/main/java/bisq/asset/coins/uPlexa.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AltCoinAccountDisclaimer; -import bisq.asset.Coin; -import bisq.asset.RegexAddressValidator; - -@AltCoinAccountDisclaimer("account.altcoin.popup.upx.msg") -public class uPlexa extends Coin { - - public uPlexa() { - super("uPlexa", "UPX", new RegexAddressValidator("^((UPX)[1-9A-Za-z^OIl]{95}|(UPi)[1-9A-Za-z^OIl]{106}|(UmV|UmW)[1-9A-Za-z^OIl]{94})$")); - } -} diff --git a/assets/src/main/resources/META-INF/services/bisq.asset.Asset b/assets/src/main/resources/META-INF/services/bisq.asset.Asset index e17bf173e5..1d07a198fa 100644 --- a/assets/src/main/resources/META-INF/services/bisq.asset.Asset +++ b/assets/src/main/resources/META-INF/services/bisq.asset.Asset @@ -2,125 +2,8 @@ # Contents are sorted according to the output of `sort --ignore-case --dictionary-order`. # See bisq.asset.Asset and bisq.asset.AssetRegistry for further details. # See https://bisq.network/list-asset for complete instructions. -bisq.asset.coins.Actinium -bisq.asset.coins.Adeptio -bisq.asset.coins.Aeon -bisq.asset.coins.Amitycoin -bisq.asset.coins.Animecoin -bisq.asset.coins.Arqma -bisq.asset.coins.Askcoin -bisq.asset.coins.Australiacash -bisq.asset.coins.Beam bisq.asset.coins.Bitcoin$Mainnet -bisq.asset.coins.Bitcoin$Regtest -bisq.asset.coins.BitcoinRhodium -bisq.asset.coins.Bitcoin$Testnet bisq.asset.coins.BitcoinCash -bisq.asset.coins.BitDaric -bisq.asset.coins.Bitmark -bisq.asset.coins.Bitzec -bisq.asset.coins.Blur -bisq.asset.coins.BurntBlackCoin -bisq.asset.coins.Cash2 -bisq.asset.coins.Chaucha -bisq.asset.coins.CloakCoin -bisq.asset.coins.Counterparty -bisq.asset.coins.Credits -bisq.asset.coins.Croat -bisq.asset.coins.CRowdCLassic -bisq.asset.coins.CTSCoin -bisq.asset.coins.DarkPay -bisq.asset.coins.Dash -bisq.asset.coins.Decred -bisq.asset.coins.DeepOnion -bisq.asset.coins.Dextro -bisq.asset.coins.Dogecoin -bisq.asset.coins.Doichain -bisq.asset.coins.Donu -bisq.asset.coins.Dragonglass -bisq.asset.coins.DSTRA -bisq.asset.coins.Emercoin -bisq.asset.coins.Ergo bisq.asset.coins.Ether -bisq.asset.coins.EtherClassic -bisq.asset.coins.Faircoin -bisq.asset.coins.FourtyTwo -bisq.asset.coins.Fujicoin -bisq.asset.coins.Galilel -bisq.asset.coins.GambleCoin -bisq.asset.coins.Genesis -bisq.asset.coins.Grin -bisq.asset.coins.Hatch -bisq.asset.coins.Helium -bisq.asset.coins.Horizen -bisq.asset.coins.IdaPay -bisq.asset.coins.Iridium -bisq.asset.coins.Kekcoin -bisq.asset.coins.KnowYourDeveloper -bisq.asset.coins.Kore -bisq.asset.coins.Krypton -bisq.asset.coins.LBRYCredits -bisq.asset.coins.LiquidBitcoin bisq.asset.coins.Litecoin -bisq.asset.coins.LitecoinPlus -bisq.asset.coins.LitecoinZ -bisq.asset.coins.Lytix -bisq.asset.coins.Masari -bisq.asset.coins.Mask -bisq.asset.coins.Mile -bisq.asset.coins.MirQuiX -bisq.asset.coins.MobitGlobal bisq.asset.coins.Monero -bisq.asset.coins.MonetaryUnit -bisq.asset.coins.MoX -bisq.asset.coins.Myce -bisq.asset.coins.Namecoin -bisq.asset.coins.Navcoin -bisq.asset.coins.Ndau -bisq.asset.coins.Noir -bisq.asset.coins.NoteBlockchain -bisq.asset.coins.ParsiCoin -bisq.asset.coins.Particl -bisq.asset.coins.PENG -bisq.asset.coins.Persona -bisq.asset.coins.Pinkcoin -bisq.asset.coins.PIVX -bisq.asset.coins.Plenteum -bisq.asset.coins.PZDC -bisq.asset.coins.Qbase -bisq.asset.coins.QMCoin -bisq.asset.coins.Qwertycoin -bisq.asset.coins.Radium -bisq.asset.coins.Remix -bisq.asset.coins.Ryo -bisq.asset.coins.Siafund -bisq.asset.coins.SiaPrimeCoin -bisq.asset.coins.SixEleven -bisq.asset.coins.Solo -bisq.asset.coins.SpaceCash -bisq.asset.coins.Spectrecoin -bisq.asset.coins.Starwels -bisq.asset.coins.SUB1X -bisq.asset.coins.TEO -bisq.asset.coins.TurtleCoin -bisq.asset.coins.UnitedCommunityCoin -bisq.asset.coins.Unobtanium -bisq.asset.coins.uPlexa -bisq.asset.coins.VARIUS -bisq.asset.coins.Veil -bisq.asset.coins.Vertcoin -bisq.asset.coins.Webchain -bisq.asset.coins.WORX -bisq.asset.coins.WrkzCoin -bisq.asset.coins.XDR -bisq.asset.coins.Zcash -bisq.asset.coins.Zcoin -bisq.asset.coins.ZelCash -bisq.asset.coins.Zero -bisq.asset.coins.ZeroClassic -bisq.asset.tokens.AugmintEuro -bisq.asset.tokens.DaiStablecoin -bisq.asset.tokens.EtherStone -bisq.asset.tokens.TrueUSD -bisq.asset.tokens.USDCoin -bisq.asset.tokens.VectorspaceAI diff --git a/assets/src/test/java/bisq/asset/coins/ActiniumTest.java b/assets/src/test/java/bisq/asset/coins/ActiniumTest.java deleted file mode 100644 index ba5d4b9d55..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ActiniumTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ActiniumTest extends AbstractAssetTest { - - public ActiniumTest() { - super(new Actinium()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("NLzB9iUGJ8GaKSn9GfVKfd55QVRdNdz9FK"); - assertValidAddress("NSz7PKmo1sLQYtFuZjTQ1zZXhPQtHLScKT"); - assertValidAddress("NTFtsh4Ff2ijPNsnQAUf5fKTp7DJaGxSZK"); - assertValidAddress("PLRiNpnTzWqufAoRFN1u9zBstHqjyM2qgB"); - assertValidAddress("PMFpWHR2AbBwaR4G2rA5nWB1F7cbZWua5Z"); - assertValidAddress("P9XE6tupGocWnsNgoUxRPzASYAPVAyu2T8"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("MgTFtsh4Ff2ijPNsnQAUf5fKTp7DJaGxSZK"); - assertInvalidAddress("F9z7PKmo1sLQYtFuZjTQ1zZXhPQtHLScKT"); - assertInvalidAddress("16Ftsh4Ff2ijPNsnQAUf5fKTp7DJaGxSZK"); - assertInvalidAddress("Z6Ftsh7LfGijPVzmQAUf5fKTp7DJaGxSZK"); - assertInvalidAddress("G5Fmxy4Ff2ijLjsnQAUf5fKTp7DJaGxACV"); - assertInvalidAddress("D4Hmqy4Ff2ijXYsnQAUf5fKTp7DJaGxBhJ"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/AdeptioTest.java b/assets/src/test/java/bisq/asset/coins/AdeptioTest.java deleted file mode 100644 index 8e5eda3517..0000000000 --- a/assets/src/test/java/bisq/asset/coins/AdeptioTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class AdeptioTest extends AbstractAssetTest { - - public AdeptioTest() { - super(new Adeptio()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("AP7rSyQMZRek9HGy9QB1bpung69xViesN7"); - assertValidAddress("AWVXtnMo4pS2vBSNrBPLVvMgYvJGD6gSXk"); - assertValidAddress("AHq8sM8DEeFoZXeDkaimfCLtnMuuSWXFE7"); - assertValidAddress("ANG52tPNJuVknLQiLUdzVFoZ3vyo8UzkDL"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("aP7rSyQMZRek9HGy9QB1bpung69xViesN7"); - assertInvalidAddress("DAeiBSH4nudXgoxS4kY6uhTPobc7AlrWDA"); - assertInvalidAddress("BGhVYBXk511m8TPvQA6YokzxdpdhRE3sG6"); - assertInvalidAddress("AZt2Kuy9cWFbTc888HNphppkuCTNyqu5PY"); - assertInvalidAddress("AbosH98t3TRKzyNb8pPQV9boupVcBAX6of"); - assertInvalidAddress("DTPAqTryNRCE2FgsxzohTtJXfCBIDnG6Rc"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/AeonTest.java b/assets/src/test/java/bisq/asset/coins/AeonTest.java deleted file mode 100644 index 927da08597..0000000000 --- a/assets/src/test/java/bisq/asset/coins/AeonTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - - package bisq.asset.coins; - - import bisq.asset.AbstractAssetTest; - import org.junit.Test; - - public class AeonTest extends AbstractAssetTest { - - public AeonTest() { - super(new Aeon()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("WmsSXcudnpRFjXr5qZzEY5AF64J6CpFKHYXJS92rF9WjHVjQvJxrmSGNQnSfwwJtGGeUMKvLYn5nz2yL9f6M4FN51Z5r8zt4C"); - assertValidAddress("XnY88EywrSDKiQkeeoq261dShCcz1vEDwgk3Wxz77AWf9JBBtDRMTD9Fe3BMFAVyMPY1sP44ovKKpi4UrAR26o661aAcATQ1k"); - assertValidAddress("Wmu42kYBnVJgDhBUPEtK5dicGPEtQLDUVWTHW74GYvTv1Zrki2DWqJuWKcWV4GVcqnEMgb1ZiufinCi7WXaGAmiM2Bugn9yTx"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("WmsSXcudnpRFjXr5qZzEY5AF64J6CpFKHYXJS92rF9WjHVjQvJxrmSGNQnSfwwJtGGeUMKvLYn5nz2yL9f6M4FN51Z5r8zt4"); - assertInvalidAddress("XnY88EywrSDKiQkeeoq261dShCcz1vEDwgk3Wxz77AWf9JBBtDRMTD9Fe3BMFAVyMPY1sP44ovKKpi4UrAR26o661aAcATQ1kZz"); - assertInvalidAddress("XaY88EywrSDKiQkeeoq261dShCcz1vEDwgk3Wxz77AWf9JBBtDRMTD9Fe3BMFAVyMPY1sP44ovKKpi4UrAR26o661aAcATQ1k"); - assertInvalidAddress("Wmu42kYBnVJgDhBUPEtK5dicGPEtQLDUVWTHW74GYv#vZrki2DWqJuWKcWV4GVcqnEMgb1ZiufinCi7WXaGAmiM2Bugn9yTx"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/AmitycoinTest.java b/assets/src/test/java/bisq/asset/coins/AmitycoinTest.java deleted file mode 100644 index 66c7a8edc0..0000000000 --- a/assets/src/test/java/bisq/asset/coins/AmitycoinTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class AmitycoinTest extends AbstractAssetTest { - - public AmitycoinTest() { - super(new Amitycoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("amitMgDfvfUZ2CP1g1SEJQSN4n7qK4d45hqXSDtiFMwE5uo7DnSihknJzcEG9WtFc26fnhDHK6ydjBDKe6wjCoGt4RiP18a5Zb"); - assertValidAddress("amitUnFFwApLG9btiPWRgTjRCQUj9kZjQJ8kH3ZraSsCU4yzX4AzgaoP8jkgXhp5c5jQT3idFJChAPYzA2EydJ5A4bShqrEixa"); - assertValidAddress("amitAcVJTUZKJtYYsosMXJBQeEbt3ZV9qSvoQ1EqkvA45MRUaYWECYNKyRZ82BvLM9MPD2Gpud3DbGzGsStKnZ9x5yKVPVGJUa"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("amitAcVJTUZKJtYYsosMXJBQeEbt3ZV9qSvoQ1EqkvA45MRUaYWECYNKyRZ82BvLM9MPD2Gpud3DbGzGsStKnZ9"); - assertInvalidAddress("amitAcVJTUZKJtYYsosMXJBQeEbt3ZV9qSvoQ1EqkvA45MRUaYWECYNKyRZ82BvLM9MPD2Gpud3DbGzGsStKnZ9x5yKVPVGJUaljashfeafh"); - assertInvalidAddress(""); - assertInvalidAddress("amitAcVJTUZKJtYYsosMXJBQeEbt3ZV9qSvoQ1EqkvA45MRUaYWECY#RoPOWRwpsx1F"); - assertInvalidAddress("amitAcVJTUZKJtYYsosMXJByRZ82BvLM9MPD2Gpud3DbGzGsStKnZ9x5yKVPVGJUaJbc2q4C4fWN$C4fWNLoDLDvADvpjNYdt3sdRB434UidKXimQQn"); - assertInvalidAddress("dsfkjasd56yaSDdguaw"); - assertInvalidAddress("KEKlulzlksadfwe"); - assertInvalidAddress("HOleeSheetdsdjqwqwpoo3"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/AnimecoinTest.java b/assets/src/test/java/bisq/asset/coins/AnimecoinTest.java deleted file mode 100644 index 4bc9e08660..0000000000 --- a/assets/src/test/java/bisq/asset/coins/AnimecoinTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class AnimecoinTest extends AbstractAssetTest { - - public AnimecoinTest() { - super(new Animecoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("Aa6TDuudiNh7DRzs11wEzZWiw9QBZY3Qw1"); - assertValidAddress("AdsdUhnPsJwg5NvAuyxs4EsaE2GoSHohoq"); - assertValidAddress("4s2peLxJJ2atz1tnAKpFshnVPKTmR312fr"); - - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("aa6TDuudiNh7DRzs11wEzZWiw9QBZY3Qw1"); - assertInvalidAddress("3s2peLxJJ2atz1tnAKpFshnVPKTmR312fr"); - assertInvalidAddress("ANNPzjj2ZYEhpyJ6p6sWeH1JXbkCSmNSd#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ArqmaTest.java b/assets/src/test/java/bisq/asset/coins/ArqmaTest.java deleted file mode 100644 index 2b907c3ac3..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ArqmaTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - - package bisq.asset.coins; - - import bisq.asset.AbstractAssetTest; - import org.junit.Test; - - public class ArqmaTest extends AbstractAssetTest { - - public ArqmaTest() { - super(new Arqma()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("ar3ZLUTSac5DhxhyLJB11gcXWLYPKJchg7c8hoaKmqchC9TtHEdXzxGgt2vzCLUYwtSvkJQTXNCjzCR7KZiFUySV138PEopVC"); - assertValidAddress("aRS3V2hXuVAGAb5XWcDvN7McsSyqrEZ3XWyfMdEDCqioWNmVUuoKyNxDo7rwPCg55Ugb6KHXLN7hLZEGcnZzbm8M7uJ9YdVpeN"); - assertValidAddress("ar3mXR6SQeC3P9Dmq2LGsAeq5eDvjiNnYaywtqdNzixe6xLr38DiNVaaRKMkAQkR3NV3TuVAwAwEGH3QDgXJF3th1RwxABa9a"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("ar3ZLUTSac5DhxhyLJB11gcXWLYPKJchg7c8hoaKmqchC9TtHEdXzxGgt2vzCLUYwtSvkJQTXNCjzCR7KZiFUySV138PEopV"); - assertInvalidAddress("aRS3V2hXuVAGAb5XWcDvN7McsSyqrEZ3XWyfMdEDCqioWNmVUuoKyNxDo7rwPCg55Ugb6KHXLN7hLZEGcnZzbm8M7uJ9YdVpeNZz"); - assertInvalidAddress("aRV3V2hXuVAGAb5XWcDvN7McsSyqrEZ3XWyfMdEDCqioWNmVUuoKyNxDo7rwPCg55Ugb6KHXLN7hLZEGcnZzbm8M7uJ9YdVpeN"); - assertInvalidAddress("ar3mXR6SQeC3P9Dmq2LGsAeq5eDvjiNnYaywtqdNzi#exLr38DiNVaaRKMkAQkR3NV3TuVAwAwEGH3QDgXJF3th1RwxABa9a"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/AskcoinTest.java b/assets/src/test/java/bisq/asset/coins/AskcoinTest.java deleted file mode 100644 index d56a5d93da..0000000000 --- a/assets/src/test/java/bisq/asset/coins/AskcoinTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class AskcoinTest extends AbstractAssetTest { - - public AskcoinTest() { - super(new Askcoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("1"); - assertValidAddress("123"); - assertValidAddress("876982302333"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0"); - assertInvalidAddress("038292"); - assertInvalidAddress(""); - assertInvalidAddress("000232320382"); - assertInvalidAddress("1298934567890"); - assertInvalidAddress("123abc5ab"); - assertInvalidAddress("null"); - assertInvalidAddress("xidjfwi23ii0"); - } -} \ No newline at end of file diff --git a/assets/src/test/java/bisq/asset/coins/AustraliacashTest.java b/assets/src/test/java/bisq/asset/coins/AustraliacashTest.java deleted file mode 100644 index 383d2fa149..0000000000 --- a/assets/src/test/java/bisq/asset/coins/AustraliacashTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class AustraliacashTest extends AbstractAssetTest { - - public AustraliacashTest() { - super(new Australiacash()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("AYf2TGCoQ15HatyE99R3q9jVcXHLx1zRWW"); - assertValidAddress("Aahw1A79we2jUbTaamP5YALh21GSxiWTZa"); - assertValidAddress("ALp3R9W3QsCdqaNNcULySXN31dYvfvDkRU"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1ALp3R9W3QsCdqaNNcULySXN31dYvfvDkRU"); - assertInvalidAddress("ALp3R9W3QsCdrqaNNcULySXN31dYvfvDkRU"); - assertInvalidAddress("ALp3R9W3QsCdqaNNcULySXN31dYvfvDkRU#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BeamTest.java b/assets/src/test/java/bisq/asset/coins/BeamTest.java deleted file mode 100644 index 0c20c0df51..0000000000 --- a/assets/src/test/java/bisq/asset/coins/BeamTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class BeamTest extends AbstractAssetTest { - - public BeamTest() { - super(new Beam()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("4a0e54b24d5fdf06891a8eaa57b4b3ac16731e932a64da8ec768083495d624f1"); - assertValidAddress("c7776e6d3fd3d9cc66f9e61b943e6d99473b16418ee93f3d5f6b70824cdb7f0a9"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("114a0e54b24d5fdf06891a8eaa57b4b3ac16731e932a64da8ec768083495d624f1111111111111111"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BitDaricTest.java b/assets/src/test/java/bisq/asset/coins/BitDaricTest.java deleted file mode 100644 index 7ab901339d..0000000000 --- a/assets/src/test/java/bisq/asset/coins/BitDaricTest.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ -package bisq.asset.coins; -import bisq.asset.AbstractAssetTest; -import org.junit.Test; -public class BitDaricTest extends AbstractAssetTest { - public BitDaricTest() { - super(new BitDaric()); - } - @Test - public void testValidAddresses() { - assertValidAddress("RKWuQUtmV3em1MyB7QKdshgDEAwKQXuifa"); - assertValidAddress("RG9YuDw7fa21a8h4E3Z2z2tgHrFNN27NnG"); - } - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - assertInvalidAddress("38NwrYsD1HxQW5zfLT0QcUUXGMPvQgzTSn"); - assertInvalidAddress("8tP9rh3SH6n9cSLmV22vnSNNw56LKGpLrB"); - assertInvalidAddress("8Zbvjr"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BitcoinRhodiumTest.java b/assets/src/test/java/bisq/asset/coins/BitcoinRhodiumTest.java deleted file mode 100644 index a1bf980d90..0000000000 --- a/assets/src/test/java/bisq/asset/coins/BitcoinRhodiumTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class BitcoinRhodiumTest extends AbstractAssetTest { - - public BitcoinRhodiumTest() { - super(new BitcoinRhodium()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("RiMBe4uDXPzTxgKUEwqQobp2o7dqBDYM6S"); - assertValidAddress("RqvpFWRTSKo2QEMH89rNhs3C7CCmRRYKmg"); - assertValidAddress("Rhxz2uF9HaE2ync4eDetjkdhkS5qMXMQzz"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("Rhxz2uF9HaE2ync4eDetjkdhkS5qMXMQvdvdfbFzz"); - assertInvalidAddress("fqvpFWRTSKo2QEMH89rNhs3C7CCmRRYKmg"); - assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzDsxUSLSH#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BitmarkTest.java b/assets/src/test/java/bisq/asset/coins/BitmarkTest.java deleted file mode 100644 index 1f6346d8cb..0000000000 --- a/assets/src/test/java/bisq/asset/coins/BitmarkTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class BitmarkTest extends AbstractAssetTest { - - public BitmarkTest() { - super(new Bitmark()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("bMigVohTEiA3gxhFWpDJBrZ14j2RnDkWCs"); - assertValidAddress("bKMivcHXMNfs3P3AaTtyhDiZ7s8Nw3ek6L"); - assertValidAddress("bXUYGzbV8v6pLZtkYDL3feyrRFFnc37e3H"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("bMigVohTEiA3gxhFWpDJBrZ14j2RnDkWCt"); - assertInvalidAddress("F9z7PKmo1sLQYtFuZjTQ1zZXhPQtHLScKT"); - assertInvalidAddress("16Ftsh4Ff2ijPNsnQAUf5fKTp7DJaGxSZK"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BitzecTest.java b/assets/src/test/java/bisq/asset/coins/BitzecTest.java deleted file mode 100644 index 386532e18e..0000000000 --- a/assets/src/test/java/bisq/asset/coins/BitzecTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class BitzecTest extends AbstractAssetTest { - - public BitzecTest() { - super(new Bitzec()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("t1K6LGT7z2uNTLxag6eK6XwGNpdkHbncBaK"); - assertValidAddress("t1ZjdqCGEkqL9nZ8fk9R6KA7bqNvXaVLUpF"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - assertInvalidAddress("38NwrYsD1HxQW5zfLT0QcUUXGMPvQgzTSn"); - assertInvalidAddress("8tP9rh3SH6n9cSLmV22vnSNNw56LKGpLrB"); - assertInvalidAddress("8Zbvjr"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BlurTest.java b/assets/src/test/java/bisq/asset/coins/BlurTest.java deleted file mode 100644 index 826493e9d7..0000000000 --- a/assets/src/test/java/bisq/asset/coins/BlurTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - - package bisq.asset.coins; - - import bisq.asset.AbstractAssetTest; - import org.junit.Test; - - public class BlurTest extends AbstractAssetTest { - - public BlurTest() { - super(new Blur()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("bL3W1g1d12sbxQDTQ6q8bgU2bBp2rkfFFKfNvQuUQTHqgQHRaxKTHqK5Nqdm53BU3ibPnsqbdYAnnJMyqJ6FfN9m3CSZSNqDE"); - assertValidAddress("bL2zBGUBDkQdyYasdoAdvQCxWLa9Mk5Q1PW8Zk7S38vx9xu7T7NMPPWNfieXqUyswo544ZSB3C1n9jLMfsUvR6p91rnrSdx9h"); - assertValidAddress("Ry49oErHtqyHucxADDT2DfEJ9pRv2ciSpKV9XseCuWmx1PK1CZi4gbPKxhWBdtvLJNNc94c4yDutmZrD3WrsHPYV1nvE9X4Cc"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("bl4E2BCFY31DPLjeqF6Gu7TEUM5v2JwpmudFX64AubQtFDYEPBvgvQPzidaawDhjAmHeZSw92wEBnUfdfY5144Sad2ZCknZzC"); - assertInvalidAddress("Ry49oErHtqyHucxADDT2DfEJ9pRv2ciSpKV9XseCuWmx1PK1CZi4gbPKxhWBdtvLJNNc94c4yDutmZrD3WrsHPYV1nvE9X40"); - assertInvalidAddress("bLNHRh8pFh5Y14bhBVAoD4cvqHyoPsQJqB3dr49zoF6bNDFrts96tuuj#RoUKWRwpTHmYt4Kf78FES7LCXAXKXFf6bMsx1sdgz"); - assertInvalidAddress("82zBGUBDkQdyYasdoAdvQCxWLa9Mk5Q1PW#8Zk7S38vx9xu7T7NMPPWNfieXqUyswo544ZSB3C1n9jLMfsUvR6p91rnrSdxwd"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/BurntBlackCoinTest.java b/assets/src/test/java/bisq/asset/coins/BurntBlackCoinTest.java deleted file mode 100644 index a7a2be4b4e..0000000000 --- a/assets/src/test/java/bisq/asset/coins/BurntBlackCoinTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import java.util.Collections; -import org.junit.Test; - -public class BurntBlackCoinTest extends AbstractAssetTest { - - public BurntBlackCoinTest() { - super(new BurntBlackCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("4b"); - assertValidAddress("536865206d616b657320796f75206275726e207769746820612077617665206f66206865722068616e64"); - String longAddress = String.join("", Collections.nCopies(2 * BurntBlackCoin.PAYLOAD_LIMIT, "af")); - assertValidAddress(longAddress); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("AF"); - assertInvalidAddress("afa"); - assertInvalidAddress("B4Wa1C8zFgkSY4daLg8jWnxuKpw7UmWFoo"); - String tooLongAddress = String.join("", Collections.nCopies(2 * BurntBlackCoin.PAYLOAD_LIMIT + 1, "af")); - assertInvalidAddress(tooLongAddress); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/CRowdCLassicTest.java b/assets/src/test/java/bisq/asset/coins/CRowdCLassicTest.java deleted file mode 100644 index 99db5cc98e..0000000000 --- a/assets/src/test/java/bisq/asset/coins/CRowdCLassicTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class CRowdCLassicTest extends AbstractAssetTest { - - public CRowdCLassicTest() { - super(new CRowdCLassic()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("CfvddKQHdd975N5XQgmpVGTuK9mumvDBQo"); - assertValidAddress("CU7pAhQjw2mjgQEAkxpsvAmeLU4Gs7ogQb"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0xmnuL9poRmnuLd55bzKe7t48xtYv2bRES"); - assertInvalidAddress("cvaAgcLKrno2AC7kYhHVDC"); - assertInvalidAddress("19p49poRmnuLdnu55bzKe7t48xtYv2bRES"); - assertInvalidAddress("csabbfjqwr12fbdf2gvffbdb12vdssdcaa"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/CTSCoinTest.java b/assets/src/test/java/bisq/asset/coins/CTSCoinTest.java deleted file mode 100644 index 9706088a69..0000000000 --- a/assets/src/test/java/bisq/asset/coins/CTSCoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class CTSCoinTest extends AbstractAssetTest { - - public CTSCoinTest() { - super(new CTSCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("Ti6S7JhtxKjSytZDmyMV4pVNVAPeiVsnpT"); - assertValidAddress("TwzRDeNSPcJvquuGu7WxxH3RhXBR1VPYHZ"); - assertValidAddress("TgYGQJd5TEzDRkyXt1tCvUnrbWBu38C8YK"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("ti6S7JhtxKjSytZDmyMV4pVNVAPeiVsnpT"); - assertInvalidAddress("2i6S7JhtxKjSytZDmyMV4pVNVAPeiVsnpT"); - assertInvalidAddress("Ti6S7JhtxKjSytZDmyMV4pVNVAPeiVsnp#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/Cash2Test.java b/assets/src/test/java/bisq/asset/coins/Cash2Test.java deleted file mode 100644 index 3c89d7cb90..0000000000 --- a/assets/src/test/java/bisq/asset/coins/Cash2Test.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import org.junit.Test; - -public class Cash2Test extends AbstractAssetTest { - - public Cash2Test() { - super(new Cash2()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("21mCcygjJivUzYW4TMTeHbEfv3Fq9NnMGEeChYcVNa3cUcRrVvy3K6mD6oMZ99fv6DQq53hbWB8Td36oVbipR7Yk6bovyL7"); - assertValidAddress("22nnHUyz7DScf3QLL27NsuAxFiuVnfDWUaDF38a35aa3CEPp2zDgcEGLfBkCdu2ohzKt7mVNfNa2NDNZHSoFWa5j3kY9os6"); - assertValidAddress("232Vo5FGYWRHhKmJ3Vz8CRCTy25RJyLJQ8wQo8mUDtZJiGLqQqPgzPJSivKR1ux9GNizSSRh6ACMR74i4qREuQrRK6KF3XH"); - assertValidAddress("247r4orbN2jcXtnSSEBxxdJgRNxexjHZRUiE3aPU7ZL4AoRF6eVh9eY3GQTi2rNuw4PSbZzttoaJPWfJnbUnJ4ZSL8tYppR"); - assertValidAddress("25vJ3RnYBveVqavx1eZshSYc5Rn9YaFWcJ2q2WouT17DMouujdDiAT3MnE7C49hdmF84zbv1TG8mTNcchuTx6L2sBXkjFgw"); - assertValidAddress("26UfQDRNs5X7FFoTrfZXFv5Phze2aotTkGPB5iwDpaM3iXQrhX87e5eUGRbiSzVbb53yuA1jpHG5xiieVkYkrhnSBCJCWHU"); - assertValidAddress("27yDdygjMcLHPRh6iiEQDqZcb6dXYWDpiRhUYZbo3ztGTtEKG72FH7mUtRevHn4rdCX51MHLJMc2afycbSrouoXoGJkA8KE"); - assertValidAddress("28t4qvTKmt34kscL3raEx9EBFjBF9t4JadFpL7vq4GsTj4PSt1mEXW36ENBZgJfW3FRJoBGP47yhj7S9CRSCXEPdVrTBG4m"); - assertValidAddress("295wF4wHgFMGsP67t3te2e2ihruA1V5Bu9KBtrVrMRky9Wwt1mZhwFANpUTCiwuxHAV7cnWhx4y9bMN4esfZXAFJ59YrG9U"); - assertValidAddress("2AZqafQ7tXmgui7ReiGdqsCqKnWVPC4uJ4RDag7pspk5jCA5dQ7ysoNeMGTQss8D4jQhp2ySvvD7XZ8JeNNgHTgULErC5BA"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("09s5NiYva6XS9bhhVc6jKYgXsH9wuHhZhWsqyAoPoWPUEiwEo9AZCDNbksvknyvZk73zwhHWSiXdgcDGLyhk5teEM7yxTgk"); - assertInvalidAddress("15a2NPZy7Xe2WZt3nKMZBsBpgNdevnKfy6PLk99eCjYw5fWQ5nu4uM6LerRBvVKTJpdGp2acZ25X3QDPHc7ocTxz1WfN2Za"); - assertInvalidAddress("34B8imA1UH29uR6PHiGpcz9MYdnL3rku27gGeLosn5XuSedFC7jPBmzaB9DoxmDA5VUZa5hPv6PSe3tJH2MJhBktMEJXaZ8"); - assertInvalidAddress("45Ghz2JRTTrLh8Z4bm6QhzZxVbq7LPiKbgjjhHPNDvVXZAJLop91zRu9A7wJMjyrU89uF7QpZB5kHhniuGZ88MJv7jRZXNi"); - assertInvalidAddress("58FFmFEGcS52mTWmhAskaKSSiX1BnHo8YcDjuhPdYBpWT9Q6ZCDz54k6cs3jPF2nk6desb1T6vRfHLfthiNf561qPct2SY1"); - assertInvalidAddress("67rMF5ve4nt2wTHYJ1pZ6j3o2YP5KDBnE7GDxnr6bpem9WcqeHzw9yKWXvtxYdpDXCBbLiX9nm97r4aEtnXq8YNb9WPn15f"); - assertInvalidAddress("798Qr9sWTprQ2sH2y5PGpfV3RAnFxUsJYY2a2VA9GjZ3MiyScD8VEh8ifWk4toYRCcbLZmRJw2dSsJBJAJ1Ava8WBzW7J12"); - assertInvalidAddress("85CQSLDNNKR4HGHwhtsxhm8jheYEvk6ngf44AhqCRWDV2XsaTHr6ittDuyfCjinAP1SzBqnVJfqNhYGDJLzxq4Y7FBVofXV"); - assertInvalidAddress("9AeKW87bkao59oadmTXGf8Jv7sMYByPrKahRbnmZEmGzRgoxGRbWqmmXuPDW6jPJSUAdpZRZn6E5B9935LtWD5gHAPpZQAh"); - assertInvalidAddress("AATHHjFhvpWXksjxJri6yaRkjTAGML2wQ7B2srLFSFXCfQy4C4UdLx5gMLBaxtfvjLe54ZfdSyRDyH94gH9Z17WpSeoBnG6"); - assertInvalidAddress("B1NiHMasw7bQsTyGLYGWh3RyUtvfJtzPyKj7NoGxMr9nJwZ4Un7vzM69EV2xpduUYEf3YMFPF58QvBmttLrUoJYDJzdVWXY"); - assertInvalidAddress("C4ak4b51DGLhGm9sPCXzHe88r9J6bWbJo5LzG4jBVjfBKhqmiQseAUcPkeSwNeNZWtVxSHuTNAk8tRZCbpZcY1rZGvGrEqZ"); - assertInvalidAddress("D8NnxEjgt5LcKLHEydcB7eUhQ1RUMSaHwN6f4w7rYcNH35ti897AAbtAk5Yon72oUee5t45ByaM651ytVVYhDtAFGfuhPBL"); - assertInvalidAddress("E3LDMVt5dzdW9NfnUT7cmUBWjeTuKiYD6Uuq6LB1ETVaJLFwrEZekxLAtLhbcSwPQg2kPeTYG4gZJMK5qmSqTUoDKUvaR7N"); - assertInvalidAddress("F3Jj7vhhZSrWRJirVT3tVSQroPzFdFxB2ChN5276kXEP93We6KJ532ZMQAj136yrrG4exJYtcYVfNZQNGNnV2rkh2bwetrP"); - assertInvalidAddress("G4Lo9KzkK9LUpKL1n6StdrYG2oBKuTqaUEyHekA9jxy7T3VZj4og91CKtfBbuiPVgzYYhL7vpDsk4fDFpyrQ8k18LovPrw7"); - assertInvalidAddress("H1Sv8KX7bnxEXmo6fh4x2y9pfiftbxnsx1QM6bhBjWgwaEqNBeyPdqi1mQKB6JSZqU1u4oEQcsUFY8yyTeP9Jh3s2jZ6qVc"); - assertInvalidAddress("I5wP79cd9oz4Pw2Gdj5Youi5J2Jft1QRwBdtRdx7bFe782Gxacw9hCpQ3jbyqs5U18EWiuzpJaAgiGrwD3aC17He7vWRxQM"); - assertInvalidAddress("J7icdECeckdDAofi9aBLwMZDvLnABZiT6XHFTu115E2pe3GqqBkFPL9dtbRUMrL5ZicQ6JMs2VamZNYyCWNt9jkEJvE4Fir"); - assertInvalidAddress("K7vZECGxgqcgtLTcbyVH9d4z68Z3SYgJFD3jiyrimiiR87qqVQUXdoTciVr6JQCMSY3qNxk1SDqVFAmv7dFbhWA6AJBtQq1"); - assertInvalidAddress("L5zCC9MAJVqXEogZ8YZFAHFN3Pp9J47vi3bXKV3tvP69FoSNzpsCgBHATYpJY7Aho958RyvbwxMDYFNqK5UiFe6WKy8xxQC"); - assertInvalidAddress("M6kpYUXiyT7TBraQqtbxuZRtAzb9Px8vz7FWtBtM2UwqP68jYGoKENeDs8u6SGK7msXevM97AaB3ZYM9pk55uXSf9dbu8BD"); - assertInvalidAddress("N8FMot8AeSzBNeNGzAwXb8eN3rNmb8neUWWL7epoVE6mSJdQ87p1byWcs6NTLQkJUkgUx7t51WhfKSQcJFrZq9EBPcWsQmP"); - assertInvalidAddress("O4c4hCkAWf7RbVXsiZu4v9S9BQ5KdWZWreykUpHdMAFxYerg4xsg4KPCoR5bq9z9ahMKb3sHuHW627zCdcBRPLe8Ft2qvDp"); - assertInvalidAddress("P6PhpdMqmcgAwV8iRjcoboFprEHgrPgYEYLzjaeU5HvRJAXu1yzWM1Q3D9zxvju6bwEv54Sccdp2S33HPx1s86uGSsZ9K8Q"); - assertInvalidAddress("Q8DP7okc13sjL7Hens8obs3mgpKyXzteccUHpuRhDyRsfxyFx8KNeBdGUNHYxWcc4pVk4gdUQq9hiZhw5K8m4pxC5rtRXo1"); - assertInvalidAddress("R9xFn1dKj6Rdsp6ZwCkpfDC2n98HHLa6M7DmV47qkYhm9vbeer1bbPoJopG4DYhspgNmTpbwe2nco3o7AsaMrT4D6MQaVxg"); - assertInvalidAddress("S89QzLjkGJiFaYdb83wrQEEtMNBizmaiz3kHYUmwZURm5mbDcGLEnBpGrqSuJVxQjHE4cpiqFF1A6Gk2ZB2uwDUb1nms8Dg"); - assertInvalidAddress("T7iiGq9NExdRwgUV6WcT58DPWA8SL8VyDdBEqY6vG8mwHedpWzU1e1Z7k5wc8DL7nyWfCYFsZKn2KcP5DXwYcvwRB9Xy4zG"); - assertInvalidAddress("U2Ec4PmgrMuVahrYGAkS5jhisb1w8b63ra33t5eoY2e5V9syeyhqU8xUqSLe22WrxMYk4gve6isGb7EpU7RLrRGzANDVUtz"); - assertInvalidAddress("V4U3d86FzU3bKvgjNNs4fuGDNRYQFoLx3XAKKtq4SiwbPLwmTpo9P2jMbwvby4YZmPCkTu6RgAdv1XispG1qtnT64Vbkn6W"); - assertInvalidAddress("W1JeT4tzGAw4b9EiLsH1pC3dWLzTSGGaaVAGux1z8PuqCH8ziEmEMDZeEhcnxgjz8n27bS7oUvb1UcUYbYTHt5jaKwicC1x"); - assertInvalidAddress("X5EAA2wJRhC3QomYEgu6NMg7AW77LfjcxhhK7YHT94XnRwGsEWmNW71Ct3UiNLbs3ab1xiWVfu4ymF3enZ19hgfM93Xp2dz"); - assertInvalidAddress("Y3YWhEp25gw1gpVtdWxdyd9Fgj5quPGuy6hC9h8knpC58YPtB4TxpZEfhb9cRgXezxCXnq1GTmQ49TCQ3CsJ8gFW3q4WN95"); - assertInvalidAddress("Z6q1WzvdPpZhiCEqzugGSPM5b39S6cdn64DtF6FcvtFg4d9hNaxXevvbkEYM8GwEH4ihW98pd6SVkR8meDu21oDbPgncEz9"); - assertInvalidAddress("a6GQ2ZBomH5WojBELhHSmQXmgNDecv65ebzhhMMkmxZVhiJxRixh29ZJ7oQK4Yg8FF4qjYMv1ykA4JA7n6KoWy18DJPaUVs"); - assertInvalidAddress("b4jmgQskiHLW8PtdX3X662eMLN2hnAnTzJsu4PLbggomVuhVFuGaUWEDntQSzpcKXgReLZAeYGEaYWPpFsTgmwEpLhEfN4m"); - assertInvalidAddress("c9Nc2eUQXBnR2PpcRrKqbA2A4DSEeLDt7LhYy4aKmvCr6JCRGtXZxrePTJpbMC83MyR8W2KCCfVwfhygpLa437DBC2NQpYH"); - assertInvalidAddress("dA5bw23DkMoXpYXbX8aPncW8ZgHKyPLngJkJS7tGPegjZycvquRKktFFf46n3VFxfrLT2UnrCkBE4LrqbWnDfRUW6Nfut6g"); - assertInvalidAddress("e49CqpKzaDG8yV6rNRuQ2VVrZi8FCTVJ4b2C5AsVkqNtGFGKCBAjTeDFhWkGJvLfFTNDUkxsgQ9bP41Uhx5G3gdCB4k6oVJ"); - assertInvalidAddress("f6x8ajQFtUReSoNYvCc7RjXpzZRngNaUU6xTAc6YvFsw8uTzwL4WDuM71cuBAW5oNAQrBjmPQmBZV8DYav6bAEVQQR7mLh2"); - assertInvalidAddress("g1Pdnp4qJ4qYPu11EEBeUhTU7Bb3b7k1Rg8hAxAqJf2XDncBqrePPrNGsgqaLeRdpBFfsZRCHTabpHvQWMzUsiLNJGFvGnR"); - assertInvalidAddress("h3DzqGR97GwWe7G3YC7D4mgCA7b68zMQmAq4r559JtcAjbG1GeXvjedTnHys9aS9vL9iG8djvVeZMdVi4S8Kc6oX2Zovt8r"); - assertInvalidAddress("iALCRLmNc8WSzbyjri4dgw9iaL6a2Uf3QYsUwsXseJfb7FCQnUgGja2ATbYpLREQTxc5VLvExQpwqFsmvhdvpx5VEVAgmyJ"); - assertInvalidAddress("j3bKBtupDeZcauKPMvzBLWHnHFn5q6ZVxDCZdvmvXJ7sgT5cQKQ8iJgARzJQ1SpzSKLwb6Kx8EVebbv4d9Y4o8AcKSQgWyx"); - assertInvalidAddress("k1u7EQDv25yGG67XtWkCSDYsbSpHFwTKESVpAxM8XSPqFrYDWPQV8KWReVmPR4piLtByikCpTgvWW5tXaxrfSuRXKo8DwWh"); - assertInvalidAddress("l6kW6xriMLxTTJBHdErywLZHQp6HchZwmZLXM4GyTfV3GFsZ7rF9JzrLx7ykNe75bqjii4b3kVX7SU98AEZmfyExNQFnZTm"); - assertInvalidAddress("m5hY6yRHGDKbjYbZiveah4DntcKbGAaqnLR5QWnF8hFP7NDouKXcFPKfWX7q8jaXdKKTJsi3Aec36Lbz4rapaxB7PKtM4mw"); - assertInvalidAddress("n9kXzy9NJhS5txFKQzh88XFFx7vi8XoLGc1UMXp7uFdK5NoaABPvemWRGm4zb6VNqgh786Q9ch1muayCQnszr8YzRYrxwWE"); - assertInvalidAddress("o7bZkG5wPryY1Ld3TPhcjECcDFeP63neFD5cA1iXC8ZPJtBsAwXFFsdbyR9eV7oKp8bB26TKWyjU86ibaJVg9RtoR5Hr18N"); - assertInvalidAddress("p37iEL6AWJaZm357fSqgQPQLzFigpuzTT9wTmUaGM7VfEzf9qmcZjP76y8bnN51bjqBKsMYPF7XLxA87vMhGAiAe5jdBhtX"); - assertInvalidAddress("q6TkiMru8ELSdXeX1DWquJ9WH7yxjFC3QdGovpUZYG7v2nCDhCxyDdz8CcqpRaqzf55xg8suNHbVAgNaUVCeCv1yETsaFJq"); - assertInvalidAddress("r9HCvadnFDSjDUAqhzorvaZmPeRqKgGG5GUnr3ph2zQteQ3TgGEvq6oiK2H967UUoUJKCH9yXmfuX3oDiyHNm2xaP7ZcPqa"); - assertInvalidAddress("s7XmwW4Q2hdN4VqEcES8KnXGTaE7Dq2w4gsjzDfBAQKWZ3S45DGBSpwb32o7Y1STZvQDtxPKVXtgbScjWizvpbC8SNYcabo"); - assertInvalidAddress("t5ZmMnkKCU8h44srsPYr5JVkvDhHBZG44QQYE2gEbUhTN4orqDgiKnMTyQYPj3XC1M5bST42rNUfR9LuWpGvkJmoCZaFvYJ"); - assertInvalidAddress("uARGu2zWWtu9k9pb1TK6zmS1ASnNVX1Kj9H3nRq6MGGhLcNshUHML4gid6grswb3aaVq47t5qqre41isaExKFDGRD9LCUHG"); - assertInvalidAddress("v1tYtfLchdzUrJow8RqMbGcH1ZAtWzSUmJHaQnrG1EypRkktGDo3tqXdk5yby64rgJjBgmMjJJ6NkRWsukHi9RTQ3XQBbqB"); - assertInvalidAddress("w4Q6hafxurmZWPSHpmp8R2GSxYiAw5DJQ3fcS9irCF3zKRnYarXLxfQPd5t24rEyYRCDAUSV1DL7CTY5guRE6dk4FgXrw5H"); - assertInvalidAddress("x7o5bwgPr1JMLMZQX8RoDT6JYfD7GwFanQa3QcMsUNbaj3siUp5i5okZxF237s5MhjWmWxWyVDxNvTq1c9MXSnQJHpNKq4d"); - assertInvalidAddress("yAENYbDcrf49FUHHDdSbtCF4EEG6LxxjvE7CsusYoi6bQUoUCfqH9yqjbuTP8i8e5vPYzWqLj1VpdMSZ4DQdhhUB8MtdvcL"); - assertInvalidAddress("z2kefw5QxZ9CmzdPCnFD766oaJ1yU1NXr5WwD2xZTpTFAGL8HRjzUzmXkdo2fqiiZyiTVAYMfxMtfJvo5QLEkHUnJEPmps4"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ChauchaTest.java b/assets/src/test/java/bisq/asset/coins/ChauchaTest.java deleted file mode 100644 index 9ea56a8405..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ChauchaTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ChauchaTest extends AbstractAssetTest { - - public ChauchaTest() { - super(new Chaucha()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("cTC7AodMWM4fXsG1TDu4JLn2qKQoMg4F9N"); - assertValidAddress("caWnffHrx8wkQqcSVJ7wpRvN1E7Ztz7kPP"); - assertValidAddress("ciWwaG4trw1vQZSL4F4phQqznK4NgZURdQ"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1cTC7AodMWM4fXsG1TDu4JLn2qKQoMg4F9N"); - assertInvalidAddress("cTC7AodMWM4fXsG1TDu4JLn2qKQoMg4F9XN"); - assertInvalidAddress("cTC7AodMWM4fXsG1TDu4JLn2qKQoMg4F9N#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/CloakCoinTest.java b/assets/src/test/java/bisq/asset/coins/CloakCoinTest.java deleted file mode 100644 index 8b7097fd00..0000000000 --- a/assets/src/test/java/bisq/asset/coins/CloakCoinTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class CloakCoinTest extends AbstractAssetTest { - - public CloakCoinTest() { - super(new CloakCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("C3MwbThsvquwA4Yg6recThXpAhR2hvRKws"); - assertValidAddress("B6MwbThsvquwA4Yg6recThXpAhR2hvKRsz"); - assertValidAddress("BCA31xPpijxiCuTQeYMpMTQsTH1m2jTg5t"); - assertValidAddress("smYmLVV33zExmaFyVp3AUjU3fJMK5E93kwzDfMnPLnEBQ7BoHZkSQhCP92hZz7Hm24yavCceNeQm8RHekqdvrhFe8gX7EdXNwnhQgQ"); - - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1sA31xPpijxiCuTQeYMpMTQsTH1m2jTgtS"); - assertInvalidAddress("BsA31xPpijxiCuTQeYMpMTQsTH1m2jTgtSd"); - assertInvalidAddress("bech3ThsvquwA4Yg6recThXpAhR2hvRKws"); - assertInvalidAddress("smYmLYcVVzExmaFyVp3AUjU3fJMK5E93kwzDfMnPLnEBQ7BoHZkSQhCP92hZz7Hm24yavCceNeQm8RHekqdv"); - assertInvalidAddress("C3MwbThsvquwA4Yg6recThXpAhR2hvRKw"); - assertInvalidAddress(" B6MwbThsvquwA4Yg6recThXpAhR2hvKRsz"); - assertInvalidAddress("B6MwbThsvquwA4Yg6recThXpAhR2hvKRsz "); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/CounterpartyTest.java b/assets/src/test/java/bisq/asset/coins/CounterpartyTest.java deleted file mode 100644 index b777214b0a..0000000000 --- a/assets/src/test/java/bisq/asset/coins/CounterpartyTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -public class CounterpartyTest extends AbstractAssetTest { - - public CounterpartyTest() { - super(new Counterparty()); - } - - @Override - public void testValidAddresses() { - assertValidAddress("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"); - assertValidAddress("1KBbojKRf1YnJKp1YK5eEz9TWlS4pFEbwS"); - assertValidAddress("1AtLN6BMlW0Rwj800LNcBBR2o0k0sYVuIN"); - } - - @Override - public void testInvalidAddresses() { - assertInvalidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQerY"); - assertInvalidAddress("122FRU9f3fx7Hty641DRK6S3sbf3"); - assertInvalidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQerY"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/CreditsTest.java b/assets/src/test/java/bisq/asset/coins/CreditsTest.java deleted file mode 100644 index 68ecacf4de..0000000000 --- a/assets/src/test/java/bisq/asset/coins/CreditsTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class CreditsTest extends AbstractAssetTest { - - public CreditsTest() { - super(new Credits()); - } - - - @Test - public void testValidAddresses() { - assertValidAddress("CfXBhPhSxx1wqxGQCryfgn6iU1M1XFUuCo"); - assertValidAddress("CMde7YERCFWkCL2W5i8uyJmnpCVj8Chhww"); - assertValidAddress("CcbqU3MLZuGAED2CuhUkquyJxKaSJqv6Vb"); - assertValidAddress("CKaig5pznaUgiLqe6WkoCNGagNMhNLtqhK"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1fXBhPhSxx1wqxGQCryfgn6iU1M1XFUuCo32"); - assertInvalidAddress("CMde7YERCFWkCL2W5i8uyJmnpCVj8Chh"); - assertInvalidAddress("CcbqU3MLZuGAED2CuhUkquyJxKaSJqv6V6#"); - assertInvalidAddress("bKaig5pznaUgiLqe6WkoCNGagNMhNLtqhKkggg"); - } -} \ No newline at end of file diff --git a/assets/src/test/java/bisq/asset/coins/CroatTest.java b/assets/src/test/java/bisq/asset/coins/CroatTest.java deleted file mode 100644 index 8d7798a303..0000000000 --- a/assets/src/test/java/bisq/asset/coins/CroatTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class CroatTest extends AbstractAssetTest { - - public CroatTest() { - super(new Croat()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("CsZ46x2mzB3GhjrC2Lt7oZ4Efmj8USUjVM7Bdz8B8EF6bQwN84NzSti7RwLZcFoZG5NR1iaiZY8GP2KwumVc1jGzHLvBzAv"); - assertValidAddress("CjxZDcoWCsx1wmYkmJcFpSTgqpjoFGRW9dQT8JqgwvkBaU6Q3X4MJ4QjVkNUM7GHp6NjYaTrKeH4bSRTK3mCYsHf2818vzv"); - assertValidAddress("CoCJje3bcEH2dkvb5suRy2ZiBtPBeBqWaY9sbMLEtqEvDn969eDx1zqV4FP8erJSJFK5Br6GheGnJJG7BDtG9XFbFcMkUJU"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("ZsZ46x2mzB3GhjrC2Lt7oZ4Efmj8USUjVM7Bdz8B8EF6bQwN84NzSti7RwLZcFoZG5NR1iaiZY8GP2KwumVc1jGzHLvBzAv"); - assertInvalidAddress(""); - assertInvalidAddress("CjxZDcoWCsx1wmYkmJcFpSTgqpjoFGRW9dQT8JqgwvkBaU6Q3X4MJ4QjV#NUM7GHp6NjYaTrKeH4bSRTK3mCYsHf2818vzv"); - assertInvalidAddress("CoCJje3bcEH2dkvb5suRy2ZiBtPBeBqWaY9sbMLEtqEvDn969eDx1zqV4FP8erJSJFK5Br6GheGnJJG7BDtG9XFbFcMkUJUuuuuuuuu"); - assertInvalidAddress("CsZ46x2mzB3GhjrC2Lt7oZ4Efmj8USUjVM7Bdz8B8EF6bQwN84NzSti7RwLZcFoZG5NR1iaiZY8GP2KwumVc1jGzHLvBzAv11111111"); - assertInvalidAddress("CjxZDcoWCsx1wmYkmJcFpSTgqpjoFGRW9dQT8JqgwvkBaU6Q3X4MJ4QjVkNUM7GHp6NjYaTrKeH4bSRTK3m"); - assertInvalidAddress("CjxZDcoWCsx1wmYkmJcFpSTgqpjoFGRW9dQT8JqgwvkBaU6Q3X4MJ4QjVkNUM7GHp6NjYaTrKeH4bSRTK3mCYsHf2818vzv$%"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DSTRATest.java b/assets/src/test/java/bisq/asset/coins/DSTRATest.java deleted file mode 100644 index ac924dcf3a..0000000000 --- a/assets/src/test/java/bisq/asset/coins/DSTRATest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DSTRATest extends AbstractAssetTest { - - public DSTRATest() { - super(new DSTRA()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DGiwGS8n3tJZuKxUdWF6MyTYvv6xgDcyd7"); - assertValidAddress("DQcAKx5bFoeRwAEHE4EHQykyq8u2M1pwFa"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("DGiwGS8n3tJZuKxUdWF6MyTYvv6xgDcyd77"); - assertInvalidAddress("DGiwGS8n3tJZuKxUdWF6MyTYvv6xgDcyd"); - assertInvalidAddress("dGiwGS8n3tJZuKxUdWF6MyTYvv6xgDcyd7"); - assertInvalidAddress("FGiwGS8n3tJZuKxUdWF6MyTYvv6xgDcyd7"); - assertInvalidAddress("fGiwGS8n3tJZuKxUdWF6MyTYvv6xgDcyd7"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DarkPayTest.java b/assets/src/test/java/bisq/asset/coins/DarkPayTest.java deleted file mode 100644 index 644b088d10..0000000000 --- a/assets/src/test/java/bisq/asset/coins/DarkPayTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DarkPayTest extends AbstractAssetTest { - - public DarkPayTest() { - super(new DarkPay()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DXSi43hpVRjy1yGF3Vh3nnCK6ydwyWxVAD"); - assertValidAddress("DmHHAyocykozeW8fwJxPbn1o83dT4fDtoR"); - assertValidAddress("RSBxWDDMNxCKtnHvqf8Dsif5sm52ik36rW"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("DXSi43hpVRjy1yGF3Vh3nnCK6ydwyWxVAd"); - assertInvalidAddress("DmHHAyocykozeW888888fwJxPbn1o83dT4fDtoR"); - assertInvalidAddress("RSBxWDDMNxCKtnHvqf8Dsif5sm52ik35rW#"); - assertInvalidAddress("3GyEtTwXhxbjBtmAR3CtzeayAyshtvd44P"); - assertInvalidAddress("1CnXYrivw7pJy3asKftp41wRPgBggF9fBw"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DashTest.java b/assets/src/test/java/bisq/asset/coins/DashTest.java deleted file mode 100644 index 3097400043..0000000000 --- a/assets/src/test/java/bisq/asset/coins/DashTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DashTest extends AbstractAssetTest { - - public DashTest() { - super(new Dash()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("XjNms118hx6dGyBqsrVMTbzMUmxDVijk7Y"); - assertValidAddress("XjNPzWfzGiY1jHUmwn9JDSVMsTs6EtZQMc"); - assertValidAddress("XnaJzoAKTNa67Fpt1tLxD5bFMcyN4tCvTT"); - - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1XnaJzoAKTNa67Fpt1tLxD5bFMcyN4tCvTT"); - assertInvalidAddress("XnaJzoAKTNa67Fpt1tLxD5bFMcyN4tCvTTd"); - assertInvalidAddress("XnaJzoAKTNa67Fpt1tLxD5bFMcyN4tCvTT#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DecredTest.java b/assets/src/test/java/bisq/asset/coins/DecredTest.java deleted file mode 100644 index 411fa7dfc3..0000000000 --- a/assets/src/test/java/bisq/asset/coins/DecredTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -public class DecredTest extends AbstractAssetTest { - - public DecredTest() { - super(new Decred()); - } - - @Override - public void testValidAddresses() { - // TODO Auto-generated method stub - assertValidAddress("Dcur2mcGjmENx4DhNqDctW5wJCVyT3Qeqkx"); - assertValidAddress("Dsur2mcGjmENx4DhNqDctW5wJCVyT3Qeqkx"); - assertValidAddress("Deur2mcGjmENx4DhNqDctW5wJCVyT3Qeqkx"); - } - - @Override - public void testInvalidAddresses() { - // TODO Auto-generated method stub - assertInvalidAddress("aHu897ivzmeFuLNB6956X6gyGeVNHUBRgD"); - assertInvalidAddress("a1HwTdCmQV3NspP2QqCGpehoFpi8NY4Zg3"); - assertInvalidAddress("aHu897ivzmeFuLNB6956X6gyGeVNHUBRgD"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DeepOnionTest.java b/assets/src/test/java/bisq/asset/coins/DeepOnionTest.java deleted file mode 100644 index 3962d4cbe5..0000000000 --- a/assets/src/test/java/bisq/asset/coins/DeepOnionTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DeepOnionTest extends AbstractAssetTest { - - public DeepOnionTest() { - super(new DeepOnion()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DYQLyJ1CcxJyRBujtKdv2JDkQEkEkAzNNA"); - assertValidAddress("DW7YKfPgm7fdTNGyyaSVfQhY7ccBoeVK5D"); - assertValidAddress("DsA31xPpijxiCuTQeYMpMTQsTH1m2jTgtS"); - - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1sA31xPpijxiCuTQeYMpMTQsTH1m2jTgtS"); - assertInvalidAddress("DsA31xPpijxiCuTQeYMpMTQsTH1m2jTgtSd"); - assertInvalidAddress("DsA31xPpijxiCuTQeYMpMTQsTH1m2jTgt#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DextroTest.java b/assets/src/test/java/bisq/asset/coins/DextroTest.java deleted file mode 100644 index 398a6279ce..0000000000 --- a/assets/src/test/java/bisq/asset/coins/DextroTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DextroTest extends AbstractAssetTest { - - public DextroTest() { - super(new Dextro()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DP9LSAMzxNAuSei1GH3pppMjDqBhNrSGov"); - assertValidAddress("D8HwxDXPJhrSYonPF7YbCGENkM88cAYKb5"); - assertValidAddress("DLhJt6UfwMtWLGMH3ADzjqaLaGG6Bz96Bz"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("DP9LSAMzxNAuSei1GH3pppMjDqBhNrSG0v"); - assertInvalidAddress("DP9LSAMzxNAuSei1GH3pppMjDqBhNrSGovx"); - assertInvalidAddress("DP9LSAMzxNAuSei1GH3pppMjDqBhNrSG#v"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DogecoinTest.java b/assets/src/test/java/bisq/asset/coins/DogecoinTest.java deleted file mode 100644 index 03b7143e49..0000000000 --- a/assets/src/test/java/bisq/asset/coins/DogecoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DogecoinTest extends AbstractAssetTest { - - public DogecoinTest() { - super(new Dogecoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DEa7damK8MsbdCJztidBasZKVsDLJifWfE"); - assertValidAddress("DNkkfdUvkCDiywYE98MTVp9nQJTgeZAiFr"); - assertValidAddress("DDWUYQ3GfMDj8hkx8cbnAMYkTzzAunAQxg"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1DDWUYQ3GfMDj8hkx8cbnAMYkTzzAunAQxg"); - assertInvalidAddress("DDWUYQ3GfMDj8hkx8cbnAMYkTzzAunAQxgs"); - assertInvalidAddress("DDWUYQ3GfMDj8hkx8cbnAMYkTzzAunAQxg#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DoichainTest.java b/assets/src/test/java/bisq/asset/coins/DoichainTest.java deleted file mode 100644 index e959f19a3e..0000000000 --- a/assets/src/test/java/bisq/asset/coins/DoichainTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import org.junit.Test; -import bisq.asset.AbstractAssetTest; - -public class DoichainTest extends AbstractAssetTest { - - public DoichainTest() { - super(new Doichain()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("NGHV9LstnZfrkGx5QJmYhEepbzc66W7LN5"); - assertValidAddress("N4jeY9YhU49qHN5wUv7HBxeVZrFg32XFy7"); - assertValidAddress("6a6xk7Ff6XbgrNWhSwn7nM394KZJNt7JuV"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("NGHV9LstnZfrkGx5QJmYhEepbzc66W7LN5x"); - assertInvalidAddress("16iWWt1uoG8Dct56Cq6eKHFxvGSDha46Lo"); - assertInvalidAddress("38BFQkc9CdyJUxQK8PhebnDcA1tRRwLDW4"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DonuTest.java b/assets/src/test/java/bisq/asset/coins/DonuTest.java deleted file mode 100644 index 68eb218303..0000000000 --- a/assets/src/test/java/bisq/asset/coins/DonuTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DonuTest extends AbstractAssetTest { - - public DonuTest() { - super(new Donu()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("NS5cGWdERahJ11pn12GoV5Jb7nsLzdr3kP"); - assertValidAddress("NU7nCzyQiAtTxzXLnDsJu4NhwQqrnPyJZj"); - assertValidAddress("NeeAy35aQirpmTARHEXpP8uTmpPCcSD9Qn"); - assertValidAddress("NScgetCW5bqDTVWFH3EYNMtTo5RcvDxD6B"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("NScgetCW5bqDTVWFH3EYNMtTo5Rc#DxD6B"); - assertInvalidAddress("NeeAy35a0irpmTARHEXpP8uTmpPCcSD9Qn"); - assertInvalidAddress("neeAy35aQirpmTARHEXpP8uTmpPCcSD9Qn"); - assertInvalidAddress("NScgetCWRcvDxD6B"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/DragonglassTest.java b/assets/src/test/java/bisq/asset/coins/DragonglassTest.java deleted file mode 100644 index aaaa7e5475..0000000000 --- a/assets/src/test/java/bisq/asset/coins/DragonglassTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DragonglassTest extends AbstractAssetTest { - - public DragonglassTest() { - super(new Dragonglass()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("dRGLhxvCtLk1vfSD3WmFzyTN5ph2gZYvkZfxvLSrcdry95x4PPJrCKBTKDEFZYTw4bCGqoiaUWxNd8B41vqXaTY72Vi2XcvikX"); - assertValidAddress("dRGLjS5v91tDd4GDZeahUj95nkXSNQs5DMY1YStLN2hSNWD67iZh7ED7oDw841Kx6oUYouZaXmBNFcqSptNZ4dL94CbZbF53jt"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("dRGLjS5v91tDd4GDZeahUj95nkXSNQs5DMY1YStLN2hSNWD67iZh7ED7oDw841Kx6oUYouZaXmBNFcqSptNZ4dL94CbZbF53j"); - assertInvalidAddress("dRGLjS5v91tDd4GDZeahUj95nkXSNQs5DMY1YStLN2hSNWD67iZh7ED7oDw841Ko6oUYouZaXmBNFcqSptNZ4dL94oUCifk4048"); - assertInvalidAddress("DRGLhxvCtLk1vfSD3WmFzyTN5ph2gZYvkZfxvLSrcdry95x4PPJrCKBTKDEFZYTw4bCGqoiaUWxNd8B41vqXaTY72Vi2XcvikX"); - assertInvalidAddress("drglhxvCtLk1vfSD3WmFzyTN5ph2gZYvkZfxvLSrcdry95x4PPJrCKBTKDEFZYTw4bCGqoiaUWxNd8B41vqXaTY72Vi2XcvikX"); - assertInvalidAddress("dRgLjS5v91tDd4GDZeahUj95nkXSNQs5DMY1YStLN2hSNWD67iZh7ED7oDw841Kx6oUYouZaXmBNFcqSptNZ4dL94CbZbF53jt"); - assertInvalidAddress("dRGlhxvCtLk1vfSD3WmFzyTN5ph2gZYvkZfxvLSrcdry95x4PPJrCKBTKDEFZYTw4bCGqoiaUWxNd8B41vqXaTY72Vi2XcvikX"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/EmercoinTest.java b/assets/src/test/java/bisq/asset/coins/EmercoinTest.java deleted file mode 100644 index 5a53fd0319..0000000000 --- a/assets/src/test/java/bisq/asset/coins/EmercoinTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class EmercoinTest extends AbstractAssetTest { - - public EmercoinTest() { - super(new Emercoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("EedXjU95QcVHLEFAs5EKNT9UWqAWXTyuhD"); // Regular p2pkh address - assertValidAddress("EHNiED27Un5yKHHsGFDsQipCH4TdsTo5xb"); // Regular p2pkh address - assertValidAddress("eMERCoinFunera1AddressXXXXXXYDAYke"); // Dummy p2sh address - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("19rem1SSWTphjsFLmcNEAvnfHaBFuDMMae"); // Valid BTC - assertInvalidAddress("EedXjU95QcVHLEFAs5EKNT9UWqAWXTyuhE"); // Invalid EMC address - assertInvalidAddress("DDWUYQ3GfMDj8hkx8cbnAMYkTzzAunAQxg"); // Valid DOGE - - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ErgoTest.java b/assets/src/test/java/bisq/asset/coins/ErgoTest.java deleted file mode 100644 index 25b2d2efd8..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ErgoTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ErgoTest extends AbstractAssetTest { - - public ErgoTest() { - super(new Ergo()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("9fRAWhdxEsTcdb8PhGNrZfwqa65zfkuYHAMmkQLcic1gdLSV5vA"); - assertValidAddress("25qGdVWg2yyYho8uC1pLtc7KxFn4nEEAwD"); - assertValidAddress("23NL9a8ngN28ovtLiKLgHexcdTKBbUMLhH"); - assertValidAddress("7bwdkU5V8"); - assertValidAddress("BxKBaHkvrTvLZrDcZjcsxsF7aSsrN73ijeFZXtbj4CXZHHcvBtqSxQ"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("9fRAWhdxEsTcdb8PhGNrZfwqa65zfkuYHAMmkQLcic1gdLSV5vAaa"); - assertInvalidAddress("25qGdVWg2yyYho8uC1pLtc7KxFn4nEEAwDaa"); - assertInvalidAddress("23NL9a8ngN28ovtLiKLgHexcdTKBbUMLhHaa"); - assertInvalidAddress("7bwdkU5V8aa"); - assertInvalidAddress("BxKBaHkvrTvLZrDcZjcsxsF7aSsrN73ijeFZXtbj4CXZHHcvBtqSxQ#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/EtherClassicTest.java b/assets/src/test/java/bisq/asset/coins/EtherClassicTest.java deleted file mode 100644 index fd54ed1e34..0000000000 --- a/assets/src/test/java/bisq/asset/coins/EtherClassicTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -public class EtherClassicTest extends AbstractAssetTest { - - public EtherClassicTest() { - super(new EtherClassic()); - } - - @Override - public void testValidAddresses() { - assertValidAddress("0x353c13b940aa5eed75aa97d477954289e7880bb8"); - assertValidAddress("0x9f5304DA62A5408416Ea58A17a92611019bD5ce3"); - assertValidAddress("0x180826b05452ce96E157F0708c43381Fee64a6B8"); - - } - - @Override - public void testInvalidAddresses() { - assertInvalidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQerY"); - assertInvalidAddress("N22FRU9f3fx7Hty641D5cg95kRK6S3sbf3"); - assertInvalidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQerY"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/FaircoinTest.java b/assets/src/test/java/bisq/asset/coins/FaircoinTest.java deleted file mode 100644 index d6fc5d4e05..0000000000 --- a/assets/src/test/java/bisq/asset/coins/FaircoinTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -public class FaircoinTest extends AbstractAssetTest { - - public FaircoinTest() { - super(new Faircoin()); - } - - @Override - public void testValidAddresses() { - assertValidAddress("fLsJC1Njap5NxSArYr5wCJbKBbTQfWikY6"); - assertValidAddress("FZHzHraqjty2Co7TinwcsBtPKoz5ANvgRd"); - assertValidAddress("fHbXBBBjU1xxEVmWEtAEwXnoBDxxsxfvxg"); - } - - @Override - public void testInvalidAddresses() { - assertInvalidAddress("FLsJC1Njap5NxSArYr5wCJbKBbTQfWikY6"); - assertInvalidAddress("fZHzHraqjty2Co7TinwcsBtPKoz5ANvgRd"); - assertInvalidAddress("1HbXBBBjU1xxEVmWEtAEwXnoBDxxsxfvxg"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/FourtyTwoTest.java b/assets/src/test/java/bisq/asset/coins/FourtyTwoTest.java deleted file mode 100644 index 7b3296d20d..0000000000 --- a/assets/src/test/java/bisq/asset/coins/FourtyTwoTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import org.junit.Test; - -public class FourtyTwoTest extends AbstractAssetTest { - - public FourtyTwoTest() { - super(new FourtyTwo()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("foUrDvc6vtJYMvqpx4oydJjL445udJ83M8rAqpkF8hEcbyLCp5MhvLaLGXtVYkqVXDG8YEpGBU7F241FtWXVCFEK7EMgnjrsM8"); - assertValidAddress("foUrFDEDkMGjV4HJzgYqSHhPTFaHfcpLM4WGZjYQZyrcCgyZs32QweCZEysK8eNxgsWdXv3YBP8QWDDWBAPu55eJ6gLf2TubwG"); - assertValidAddress("SNakeyQFcEacGHFaCgj4VpdfM3VTsFDygNHswx3CtKpn8uD1DmrbFwfM11cSyv3CZrNNWh4AALYuGS4U4pxYPHTiBn2DUJASoQw4B"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("fUrDvc6vtJYMvqpx4oydJjL445udJ83M8rAqpkF8hEcbyLCp5MhvLaLGXtVYkqVXDG8YEpGBU7F241FtWXVCFEK7EMgnjrsM8"); - assertInvalidAddress("UrFDEDkMGjV4HJzgYqSHhPTFaHfcpLM4WGZjYQZyrcCgyZs32QweCZEysK8eNxgsWdXv3YBP8QWDDWBAPu55eJ6gLf2TubwG"); - assertInvalidAddress("keyQFcEacGHFaCgj4VpdfM3VTsFDygNHswx3CtKpn8uD1DmrbFwfM11cSyv3CZrNNWh4AALYuGS4U4pxYPHTiBn2DUJASoQw4B!"); - assertInvalidAddress("akeyQFcEacGHFaCgj4VpdfM3VTsFDygNHswx3CtKpn8uD1DmrbFwfM11cSyv3CZrNNWh4AALYuGS4U4pxYPHTiBn2DUJASoQw4B"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/FujicoinTest.java b/assets/src/test/java/bisq/asset/coins/FujicoinTest.java deleted file mode 100644 index 3a57f4afb2..0000000000 --- a/assets/src/test/java/bisq/asset/coins/FujicoinTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class FujicoinTest extends AbstractAssetTest { - - public FujicoinTest() { - super(new Fujicoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("FpEbvwxhmer2zSvqh61JtLiffu8Tk2abdo"); - assertValidAddress("7gcLWi78MFJ9akMzTAiug3uArvPch5LB6q"); - assertValidAddress("FrjN1LLWJj1DWVooBCdybBvmaEAqxMuuq8"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - assertInvalidAddress("FpEbvwxhmer2zSvqh61JtLiffu8Tk2abda"); - assertInvalidAddress("7gcLWi78MFJ9akMzTAiug3uArvPch5LB6a"); - assertInvalidAddress("fc1q3s2fc2xqgush29urtfdj0vhcj96h8424zyl6wa"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/GalilelTest.java b/assets/src/test/java/bisq/asset/coins/GalilelTest.java deleted file mode 100644 index ced0fe575a..0000000000 --- a/assets/src/test/java/bisq/asset/coins/GalilelTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class GalilelTest extends AbstractAssetTest { - - public GalilelTest() { - super(new Galilel()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("UVwXGh5B1NZbYdgWThqf2cLdkEupVXEVNi"); - assertValidAddress("UbNJbC1hZgBH5tQ4HyrrQMEPswKxwwfziw"); - assertValidAddress("UgqDDV8aekEXFP7BWLmTNpSQfk7uVk1jCF"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1UgqDDV8aekEXFP7BWLmTNpSQfk7uVk1jCF"); - assertInvalidAddress("UgqDDV8aekEXFP7BWLmTNpSQfk7uVk1jCFd"); - assertInvalidAddress("UgqDDV8aekEXFP7BWLmTNpSQfk7uVk1jCF#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/GambleCoinTest.java b/assets/src/test/java/bisq/asset/coins/GambleCoinTest.java deleted file mode 100644 index 8d3cb0ff7b..0000000000 --- a/assets/src/test/java/bisq/asset/coins/GambleCoinTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class GambleCoinTest extends AbstractAssetTest { - - public GambleCoinTest() { - super(new GambleCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("CKWCoP2Cog4gU3ARzNqGEqwDxNZNVEpPJP"); - assertValidAddress("CJmvkF84bW93o5E7RFe4VzWMSt4WcKo1nv"); - assertValidAddress("Caz2He7kZ8ir52CgAmQywCjm5hRjo3gLwT"); - assertValidAddress("CM2fRpzpxqyRvaWxtptEmRzpGCFE1qCA3V"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("CKWCoP2C0g4gU3ARzNqGEqwDxNZNVEpPJP"); - assertInvalidAddress("CJmvkF84bW93o5E7RFe4VzWMSt4WcKo1nvx"); - assertInvalidAddress("Caz2He7kZ8ir52CgAmQywC#m5hRjo3gLwT"); - assertInvalidAddress("DM2fRpzpxqyRvaWxtptEmRzpGCFE1qCA3V"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/GenesisTest.java b/assets/src/test/java/bisq/asset/coins/GenesisTest.java deleted file mode 100644 index e4ff35cacf..0000000000 --- a/assets/src/test/java/bisq/asset/coins/GenesisTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import org.junit.Test; - -public class GenesisTest extends AbstractAssetTest { - - public GenesisTest() { - super(new Genesis()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("STE5agX1VkUKZRTHBFufkQu6JtNP1QYJcd"); // Standard SegWit - assertValidAddress("SNMcFfcFkes6bWR5dviWQQAL4SYQg8T4Vu"); // Standard SegWit - assertValidAddress("SfMmJJdg8uDHK6ajurBNksry7zu3KHdbPv"); // Standard SegWit - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("genx1q5dlyjsktuztnwzs85as7vslqfddcmenhfc0ehl"); // Bech32 - assertInvalidAddress("genx1qxc0hp76tx9hse2evt8dx2k686nx42ljel5nenr"); // Bech32 - assertInvalidAddress("CT747k1CThgCxk4xRPQeJP6pyKiTfzRM1R"); // valid but unsupported legacy - assertInvalidAddress("CbGwkAWfLXjU2esjomFzJfKAFdUiKQjJUd"); // valid but unsupported legacy - assertInvalidAddress("0213ba949e295aabda252662ffed7c4c0906"); // random garbage - assertInvalidAddress("BwyzAAjVwV2mhR2WQ8SfXhHyUDoy4VL16zBc"); // random garbage - assertInvalidAddress("EpGQR83U34JRszcGENjegZLCoDLTwG6YWLBN7jVC"); // random garbage - assertInvalidAddress("Xp3Gv2JiP487Z8SULctveCKNM1ffpz5b3n"); // random garbage - } -} diff --git a/assets/src/test/java/bisq/asset/coins/GrinTest.java b/assets/src/test/java/bisq/asset/coins/GrinTest.java deleted file mode 100644 index bba409f129..0000000000 --- a/assets/src/test/java/bisq/asset/coins/GrinTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class GrinTest extends AbstractAssetTest { - - public GrinTest() { - super(new Grin()); - } - - @Test - public void testValidAddresses() { - // grinbox - assertValidAddress("gVvk7rLBg3r3qoWYL3VsREnBbooT7nynxx5HtDvUWCJUaNCnddvY"); - assertValidAddress("grinbox://gVtWzX5NTLCBkyNV19QVdnLXue13heAVRD36sfkGD6xpqy7k7e4a"); - assertValidAddress("gVw9TWimGFXRjoDXWhWxeNQbu84ZpLkvnenkKvA5aJeDo31eM5tC@somerelay.com"); - assertValidAddress("gVw9TWimGFXRjoDXWhWxeNQbu84ZpLkvnenkKvA5aJeDo31eM5tC@somerelay.com:1220"); - assertValidAddress("grinbox://gVwjSsYW5vvHpK4AunJ5piKhhQTV6V3Jb818Uqs6PdC3SsB36AsA@somerelay.com"); - assertValidAddress("grinbox://gVwjSsYW5vvHpK4AunJ5piKhhQTV6V3Jb818Uqs6PdC3SsB36AsA@somerelay.com:1220"); - } - - @Test - public void testInvalidAddresses() { - // valid IP:port addresses but not supported in Bisq - assertInvalidAddress("0.0.0.0:8080"); - assertInvalidAddress("173.194.34.134:8080"); - assertInvalidAddress("127.0.0.1:8080"); - assertInvalidAddress("192.168.0.1:8080"); - assertInvalidAddress("18.101.25.153:8080"); - assertInvalidAddress("173.194.34.134:1"); - assertInvalidAddress("173.194.34.134:11"); - assertInvalidAddress("173.194.34.134:1111"); - assertInvalidAddress("173.194.34.134:65535"); - - // invalid IP:port addresses - assertInvalidAddress("google.com"); - assertInvalidAddress("100.100.100.100"); - assertInvalidAddress(".100.100.100.100:1222"); - assertInvalidAddress("100..100.100.100:1222."); - assertInvalidAddress("100.100.100.100.:1222"); - assertInvalidAddress("999.999.999.999:1222"); - assertInvalidAddress("256.256.256.256:1222"); - assertInvalidAddress("256.100.100.100.100:1222"); - assertInvalidAddress("123.123.123:1222"); - assertInvalidAddress("http://123.123.123:1222"); - assertInvalidAddress("1000.2.3.4:1222"); - assertInvalidAddress("999.2.3.4:1222"); - // too large port - assertInvalidAddress("173.194.34.134:65536"); - - assertInvalidAddress("gVvk7rLBg3r3qoWYL3VsREnBbooT7nynxx5HtDvUWCJUaNCnddvY1111"); - assertInvalidAddress("grinbox:/gVtWzX5NTLCBkyNV19QVdnLXue13heAVRD36sfkGD6xpqy7k7e4a"); - assertInvalidAddress("gVw9TWimGFXRjoDXWhWxeNQbu84ZpLkvnenkKvA5aJeDo31eM5tC@somerelay.com."); - assertInvalidAddress("gVw9TWimGFXRjoDXWhWxeNQbu84ZpLkvnenkKvA5aJeDo31eM5tC@somerelay.com:1220a"); - assertInvalidAddress("grinbox://gVwjSsYW5vvHpK4AunJ5piKhhQTV6V3Jb818Uqs6PdC3SsB36AsAsomerelay.com"); - assertInvalidAddress("grinbox://gVwjSsYW5vvHpK4AunJ5piKhhQTV6V3Jb818Uqs6PdC3SsB36AsA@somerelay.com1220"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/HatchTest.java b/assets/src/test/java/bisq/asset/coins/HatchTest.java deleted file mode 100644 index c0d1bdabc8..0000000000 --- a/assets/src/test/java/bisq/asset/coins/HatchTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class HatchTest extends AbstractAssetTest { - - public HatchTest() { - super(new Hatch()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("XgUfhrcfKWTVprA1GGhTggAA3VVQy1xqNp"); - assertValidAddress("Xo88XjP8RD2w3k7Fd16UT62y3oNcjbv4bz"); - assertValidAddress("XrA7ZGDLQkiLwUsfKT6y6tLrYjsvRLrZQG"); - - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1XrA7ZGDLQkiLwUsfKT6y6tLrYjsvRLrZQG"); - assertInvalidAddress("XrA7ZGDLQkiLwUsfKT6y6tLrYjsvRLrZQGd"); - assertInvalidAddress("XrA7ZGDLQkiLwUsfKT6y6tLrYjsvRLrZQG#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/HeliumTest.java b/assets/src/test/java/bisq/asset/coins/HeliumTest.java deleted file mode 100644 index 7cbf0f078a..0000000000 --- a/assets/src/test/java/bisq/asset/coins/HeliumTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class HeliumTest extends AbstractAssetTest { - - public HeliumTest() { - super(new Helium()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("SPSXRJSwzGKxSiYXePf1vnkk4v9WKVLhZp"); - assertValidAddress("SbzXDLmMfWDJZ1wEikUVAMbAzM2UnaSt4g"); - assertValidAddress("Sd14293Zhxxur2Pim7NkjxPGVaJTjGR5qY"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1PSXRJSwzGKxSiYXePf1vnkk4v9WKVLhZp"); - assertInvalidAddress("SPSXRJSwzGKxSiYXePf1vnkk4v9WKVLhZpp"); - assertInvalidAddress("SPSSPSSPSGKxSiYXePf1vnkk4v9WKVLhZp"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/HorizenTest.java b/assets/src/test/java/bisq/asset/coins/HorizenTest.java deleted file mode 100644 index 8d4bf2379e..0000000000 --- a/assets/src/test/java/bisq/asset/coins/HorizenTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class HorizenTest extends AbstractAssetTest { - - public HorizenTest() { - super(new Horizen()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("znk62Ey7ptTyHgYLaLDTEwhLF6uN1DXTBfa"); - assertValidAddress("znTqzi5rTXf6KJnX5tLaC5CMGHfeWJwy1c7"); - assertValidAddress("t1V9h2P9n4sYg629Xn4jVDPySJJxGmPb1HK"); - assertValidAddress("t3Ut4KUq2ZSMTPNE67pBU5LqYCi2q36KpXQ"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("zcKffBrza1cirFY47aKvXiV411NZMscf7zUY5bD1HwvkoQvKHgpxLYUHtMCLqBAeif1VwHmMjrMAKNrdCknCVqCzRNizHUq"); - assertInvalidAddress("AFTqzi5rTXf6KJnX5tLaC5CMGHfeWJwy1c7"); - assertInvalidAddress("zig-zag"); - assertInvalidAddress("0123456789"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/IdaPayTest.java b/assets/src/test/java/bisq/asset/coins/IdaPayTest.java deleted file mode 100644 index 81e273e78d..0000000000 --- a/assets/src/test/java/bisq/asset/coins/IdaPayTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class IdaPayTest extends AbstractAssetTest { - - public IdaPayTest() { - super(new IdaPay()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("Cj6A8JJvovgSTiMc4r6PaJPrfwQnwnHDpg"); - assertValidAddress("D4SEkXMAcxRBu2Gc1KpgcGunAu5rWttjRy"); - assertValidAddress("CopBThXxkziyQEG6WxEfx36Ty46DygzHTW"); - assertValidAddress("D3bEgYWDS7fxfu9y1zTSrcdP681w3MKw6W"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("Cj6A8JJv0vgSTiMc4r6PaJPrfwQnwnHDpg"); - assertInvalidAddress("D4SEkXMAcxxRBu2Gc1KpgcGunAu5rWttjRy"); - assertInvalidAddress("CopBThXxkziyQEG6WxEfx36Ty4#DygzHTW"); - assertInvalidAddress("13bEgYWDS7fxfu9y1zTSrcdP681w3MKw6W"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/IridiumTest.java b/assets/src/test/java/bisq/asset/coins/IridiumTest.java deleted file mode 100644 index 84c2b1316e..0000000000 --- a/assets/src/test/java/bisq/asset/coins/IridiumTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class IridiumTest extends AbstractAssetTest { - public IridiumTest() { - super(new Iridium()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("ir2oHYW7MbBQuMzTELg5o6FRqXNwWCU1wNzFsJG3VUCT9qMwayNsdwaQ85NHC3vLFSQ1eWtAPsYpvV4tXpnXKM9M377BW5KQ4"); - assertValidAddress("ir2PK6y3hjq9wLqdTQnPQ2FXhCJqJ1pKXNXezZUqeUWbTb3T74Xqiy1Yqwtkgri934C1E9Ba2quJDDh75nxDqEQj1K8i9DQXf"); - assertValidAddress("ir3steHWr1FRbtpjWWCAaxhzNggzJK6tqBy3qFw32YGV4CJdRsgYrpLifA7ivGdgZGNRKbRtYUp9GKvxnFSRFWTt2XuWunRYb"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("ir2oHYW7MbBQuMzTELg5o6FRqXNwWCU1wNzFsJG3VUCT9qMwayNsdwaQ85NHC3vLFSQ1eWtAPsYpvV4tXpnXKM9M377BW5KQ4t"); - assertInvalidAddress("ir2PK6y3hjq9wLqdTQnPQ2FXhCJqJ1pKXNXezZUqeUWb#Tb3T74Xqiy1Yqwtkgri934C1E9Ba2quJDDh75nxDqEQj1K8i9DQXf"); - assertInvalidAddress(""); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/KekcoinTest.java b/assets/src/test/java/bisq/asset/coins/KekcoinTest.java deleted file mode 100644 index bf79b555b3..0000000000 --- a/assets/src/test/java/bisq/asset/coins/KekcoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class KekcoinTest extends AbstractAssetTest { - - public KekcoinTest() { - super(new Kekcoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("KHWHFVU5ZMUfkiYEMMuXRDv1LjD2j1HJ2H"); - assertValidAddress("KSXQWsaKC9qL2e2RoeXNXY4FgQC6qUBpjD"); - assertValidAddress("KNVy3X1iuiF7Gz9a4fSYLF3RehN2yGkFvP"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1LgfapHEPhZbRF9pMd5WPT35hFXcZS1USrW"); - assertInvalidAddress("1K5B7SDcuZvd2oUTaW9d62gwqsZkteXqA4"); - assertInvalidAddress("1GckU1XSCknLBcTGnayBVRjNsDjxqopNav"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/KnowYourDeveloperTest.java b/assets/src/test/java/bisq/asset/coins/KnowYourDeveloperTest.java deleted file mode 100644 index af06af1681..0000000000 --- a/assets/src/test/java/bisq/asset/coins/KnowYourDeveloperTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class KnowYourDeveloperTest extends AbstractAssetTest { - - public KnowYourDeveloperTest() { - super(new KnowYourDeveloper()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("Yezk3yX7A8sMsgiLN1DKBzhBNuosZLxyxv"); - assertValidAddress("YY9YLd5RzEVZZjkm2fsaWmQ2QP9aHcnCu9"); - assertValidAddress("YeJowNuWXx2ZVthswT5cLMQtMapfr7L9ch"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("yezk3yX7A8sMsgiLN1DKBzhBNuosZLxyxv"); - assertInvalidAddress("yY9YLd5RzEVZZjkm2fsaWmQ2QP9aHcnCu9"); - assertInvalidAddress("yeJowNuWXx2ZVthswT5cLMQtMapfr7L9ch"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/KoreTest.java b/assets/src/test/java/bisq/asset/coins/KoreTest.java deleted file mode 100644 index 88b69ad449..0000000000 --- a/assets/src/test/java/bisq/asset/coins/KoreTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class KoreTest extends AbstractAssetTest { - - public KoreTest() { - super(new Kore()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("KViqqCDcdZn3DKJWGvmdUtmoDsxuGswzwU"); - assertValidAddress("KNnThWKeyJ5ibYL3JhuBacyjJxKXs2cXgv"); - assertValidAddress("bGcebbVyKD4PEBHeKRGX7cTydu1xRm63r4"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("KmVwB5dxph84tb15XqRUtfX1MfmP8WpWWW"); - assertInvalidAddress("Kt85555555555555c1QcQYE318zXqZUnjUB6fwjTrf1Xkb"); - assertInvalidAddress("33ny4vAPJHFu5Nic7uMHQrvCACYTKPFJ6r#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/KryptonTest.java b/assets/src/test/java/bisq/asset/coins/KryptonTest.java deleted file mode 100644 index 79e62a2cd4..0000000000 --- a/assets/src/test/java/bisq/asset/coins/KryptonTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class KryptonTest extends AbstractAssetTest { - - public KryptonTest() { - super(new Krypton()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("QQQ1LgQ1m8vX5tGrBZ2miS7A54Fmj5Qbij4UXT8nD4aqF75b1cpAauxVkjYaefcztV62UrDT1K9WHDeQWu4vpVXU2wezpshvex"); - assertValidAddress("QQQ1G56SKneSK1833tKjLH7E4ZgFwnqhqUb1HMHgYbnhaST56mukM1296jiYjTyTdMWnvH5FpWNAJWaQqwyPJHUR8qXRKBJy9o"); - assertValidAddress("QQQ1Bg61uUZhsNaTmUSZNcFgX2bk9wnAoYg9DSYZidDMJt7wVyccvMy8J7zRBoV5iT1pbraFUDWPQWWdXGPPws2P2ZGe8UzsaJ"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("QQQ1Bg61uUZhsNaTmUSZNcFgX2bk9wnAoYg9DSYZidDMJt7wVyccvMy8J7zRBoV5iT1pbraFUDWPQWWdXGPPws2P2ZGe8"); - assertInvalidAddress("11QQQ1Bg61uUZhsNaTmUSZNcFgX2bk9wnAoYg9DSYZidDMJt7wVyccvMy8J7zRBoV5iT1pbraFUDWPQWWdXGPPws2P2ZGe8UzsaJ"); - assertInvalidAddress(""); - assertInvalidAddress("#RoUKWRwpsx1F"); - assertInvalidAddress("YQQ1G56SKneSK1833tKjLH7E4ZgFwnqhqUb1HMHgYbnhaST56mukM1296jiYjTyTdMWnvH5FpWNAJWaQqwyPJHUR8qXRKBJy9o"); - assertInvalidAddress("3jyRo3rcp9fjdfjdSGpx"); - assertInvalidAddress("QQQ1G56SKneSK1833tKjLH7E4ZgFwnqhqUb1HMHgYbnhaST56mukM1296jiYjTyTdMWnvH5FpWNAJWaQqwyPJHUR8qXRKBJy9#"); - assertInvalidAddress("ZOD1Bg61uUZhsNaTmUSZNcFgX2bk9wnAoYg9DSYZidDMJt7wVyccvMy8J7zRBoV5iT1pbraFUDWPQWWdXGPPws2P2ZGe8UzsaJ"); - } -} \ No newline at end of file diff --git a/assets/src/test/java/bisq/asset/coins/LBRYCreditsTest.java b/assets/src/test/java/bisq/asset/coins/LBRYCreditsTest.java deleted file mode 100644 index 4c556f4a0e..0000000000 --- a/assets/src/test/java/bisq/asset/coins/LBRYCreditsTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class LBRYCreditsTest extends AbstractAssetTest { - - public LBRYCreditsTest() { - super(new LBRYCredits()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("bYqg2q19uWmp3waRwptzj6o8e9viHgcA9z"); - assertValidAddress("bZEnLbYb3D29Sbo8QJdiQ2PQ3En6em31gt"); - assertValidAddress("rQ26jd9mqdfPizHZUdyMjUPgK6rRANPjne"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("Don'tBeSilly"); - assertInvalidAddress("_rQ26jd9mqdfPizHZUdyMjUPgK6rRANPjne"); - assertInvalidAddress("mzYvN2WuVLyp6RZE94rzzvZwBDfCdCse6i"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - assertInvalidAddress("3EktnHQD7RiAE6uzMj2ZifT9YgRrkSgzQX"); - assertInvalidAddress("bYqg2q19uWmp3waRwptzj6o8e9viHgcA9a"); - assertInvalidAddress("bYqg2q19uWmp3waRwptzj6o8e9viHgcA9za"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/LiquidBitcoinTest.java b/assets/src/test/java/bisq/asset/coins/LiquidBitcoinTest.java deleted file mode 100644 index 6af7686993..0000000000 --- a/assets/src/test/java/bisq/asset/coins/LiquidBitcoinTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -public class LiquidBitcoinTest extends AbstractAssetTest { - - - public LiquidBitcoinTest() { - super(new LiquidBitcoin()); - } - - @Override - public void testValidAddresses() { - assertValidAddress("VJL6mu5gqT4pRzpd28Y6aXg9murwJpd25EBwMtrnCN82n6z6i5kMLKnN63nyaCgRuJWZu4EFFV7gp9Yb"); - assertValidAddress("Gq3AeVacy6EUWSJKsV4NScyYKvnM6Gf8We"); - } - - @Override - public void testInvalidAddresses() { - assertInvalidAddress("lq1qqgu6g99aa4y7fly26gwj3k69t2kgx8eshn8gqacsul9yhpcgtvweyzuqt6cn3fjawvwaluq6ls6t9qnvg4jgwffyycwmgqh0h"); //no native segwit address support - assertInvalidAddress("lq1qqgu6g99aa4y7fly26gwj3k69t2kgx8eshn8gqacsul9yhpcgtvweyzuqt6cn3fjawvwaluq6ls6t9qnvg4jgwffyycwmgqsdf"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/LitecoinPlusTest.java b/assets/src/test/java/bisq/asset/coins/LitecoinPlusTest.java deleted file mode 100644 index 356e930745..0000000000 --- a/assets/src/test/java/bisq/asset/coins/LitecoinPlusTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class LitecoinPlusTest extends AbstractAssetTest { - - public LitecoinPlusTest() { - super(new LitecoinPlus()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("XGnikpGiuDTaxq9vPfDF9m9VfTpv4SnNN5"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1LgfapHEPhZbRF9pMd5WPT35hFXcZS1USrW"); - assertInvalidAddress("LgfapHEPhZbdRF9pMd5WPT35hFXcZS1USrW"); - assertInvalidAddress("LgfapHEPhZbRF9pMd5WPT35hFXcZS1USrW#"); - } -} - diff --git a/assets/src/test/java/bisq/asset/coins/LitecoinZTest.java b/assets/src/test/java/bisq/asset/coins/LitecoinZTest.java deleted file mode 100644 index 3b8ae56ebf..0000000000 --- a/assets/src/test/java/bisq/asset/coins/LitecoinZTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class LitecoinZTest extends AbstractAssetTest { - - public LitecoinZTest() { - super(new LitecoinZ()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("L17opZaVcRK4h9MV4KhkCmzUBa56BxSRb8A"); - assertValidAddress("L1EjNbAPVtg8jE9EyvbsA7epibZ9j8bdYmV"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - assertInvalidAddress("38NwrYsD1HxQW5zfLT0QcUUXGMPvQgzTSn"); - assertInvalidAddress("8tP9rh3SH6n9cSLmV22vnSNNw56LKGpLrB"); - assertInvalidAddress("8Zbvjr"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/LytixTest.java b/assets/src/test/java/bisq/asset/coins/LytixTest.java deleted file mode 100644 index 1cc6a41b5d..0000000000 --- a/assets/src/test/java/bisq/asset/coins/LytixTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class LytixTest extends AbstractAssetTest { - - public LytixTest() { - super(new Lytix()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("8hTBZgtuexiUVMxCPcrPgMem7jurB2YJds"); - assertValidAddress("8hqgpDE5uSuyRrDMXo1w3y59SCxfv8sSsf"); - assertValidAddress("8wtCT2JHu4wd4JqCwxnWFQXhmggnwdjpSn"); - assertValidAddress("8pYVReruVqYdp6LRhsy63nuVgsg9Rx7FJT"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("6pYVReruVqYdp6LRhsy63nuVgsg9Rx7FJT"); - assertInvalidAddress("8mgfRRiHVxf4JZH3pvffuY6NrKhffh13Q"); - assertInvalidAddress("8j75cPWABNXdZ62u6ZfF4tDQ1tVdvJx2oh7"); - assertInvalidAddress("FryiHzNPFatNV15hTurq9iFWeHTrQhUhG6"); - assertInvalidAddress("8ryiHzNPFatNV15hTurq9iFWefffQhUhG6"); - assertInvalidAddress("8ryigz2PFatNV15hTurq9iFWeHTrQhUhG1"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MasariTest.java b/assets/src/test/java/bisq/asset/coins/MasariTest.java deleted file mode 100644 index 944c69279c..0000000000 --- a/assets/src/test/java/bisq/asset/coins/MasariTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - - package bisq.asset.coins; - - import bisq.asset.AbstractAssetTest; - import org.junit.Test; - - public class MasariTest extends AbstractAssetTest { - - public MasariTest() { - super(new Masari()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("5n9Y2vwnf8oKBhHxRAyjS9aS9j5hTPjtS8RKzMbD3tP95yxkQWbUHkFhLs2UsjgNxj28W6YzNL9WFeY91xPGFXAaUwyVm1h"); - assertValidAddress("9n1AVze3gmj3ZpEz5Xju92FRiqtmcnQhhXJK7yx9D9qrHRvjZftndVci8HCYFttFeD7ftAMUqUGxG8iA4Sn2eVz45R2NUJj"); - assertValidAddress("5iB4LfuyvA5HSJP5A1xUKGb8pw5NkywxSeRZPxzy1U7kT3wBmypemQUUzTiCwjy6PTSrJpAvxiNDSUEjNryt17C8RvPdEg3"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("5hJpeWa9aogfpY5Su8YmeYaeuD7pyQvSZURcNx26QskbSk9UdZ6cR4HR4YsdWRiBJfCZKLHRTfj7ojGUJ7N5j5hg4pGGCE"); - assertInvalidAddress("5kYyn6K8hRWg16nztTuvaZ6Jg3ytH84gjbUoEKjbMU4u659PKLpKuLWVSujFwJ1Qp3ZUxhcFHBXMQDmeAz46By3FRRkdaug2"); - assertInvalidAddress("4okMfbVrFXE4nF9dRKnVLiJi2xiMDDuSk6MJexpBaNgsLutSaBN7euR8TCf4Z1dqmG85GdQHrzSpYgX8Lf2VJnkaAk9MtQV"); - assertInvalidAddress("5jrE2mwcHkvZq9rQcvX1GCELnwAF6wwmJ4rhVdDP6y#326Gp6KSNbeWWb1sD2dmDZvczHFs8LGM1UjTQfQjjAu6S4eXGC5h"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MaskTest.java b/assets/src/test/java/bisq/asset/coins/MaskTest.java deleted file mode 100644 index 4c1af60386..0000000000 --- a/assets/src/test/java/bisq/asset/coins/MaskTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class MaskTest extends AbstractAssetTest { - - public MaskTest() { - super(new Mask()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("MbxYjp38aUXBuESwsFv8YmRvbQvMhNyJygU6ViLCjM4sUNqFjsHQim9dvzp9p8BVTjdsRkVNrC1Zy3NJRb18hav3CPe5eWn"); - assertValidAddress("MeGcanFnSr4bJFuNoHogCBdDCsqDrNu5njPc1Yh1DfsTUTL5dLbbtE119f4vztxXu6fFCKWRmpqjABdDyGrzMDkhTC38WwS"); - assertValidAddress("bTWEbW8kKVrZkDwyPs5t7BZXotMNyz5UY2QDJ6MjKT7ihA8kNKhoHDqPUiUB7jPxNpXLFkJsgL6TA1fo7yAzVUdm1hTopCocf"); - assertValidAddress("bTXejHgtfTLWzhyz9fHHBDKTWrsM8MKnebZCKeue8mbDWaKRhnQ8VisGRXUgTvUhsDiwX6PxeP5A22DFf5UVEk431Vjt8m3GM"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("MsopefFnSr4bJFuNoHogCBdDCsqDrNu5Pc1Yh1DfsTUTL5dLbbtE119f4vztxXu6fFCKWRmpqjABdDyGrzMDkhTC38gWw"); - assertInvalidAddress("MeGcanuyt4bJFuNoHogCBdDCsqDrNu5njPc1Yh1DfsTUTL5dLbbtE119f4vztxXu6fFCKWRmpqujABdDyGrzMDkhTC38WwSx"); - assertInvalidAddress("MrtcanFnSr4bJFuNoHogCBdDCsqDrNu5Pc1Yh1DfsTUTL5dLbbtE119f4vztxXu6fFCKWRmpqjABdDyGrzMDkhTC3rt4vb8Ww"); - assertInvalidAddress("bBXejHgtfTLWzhyz9fHKBDKTWrsM8MKnebZCKeue8mbDWaKRhnQ8VisGRXUgTvUhsDiwX6PxeP5A22DFf5UVEk431Vjt8m3GM"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MileTest.java b/assets/src/test/java/bisq/asset/coins/MileTest.java deleted file mode 100644 index 1561f7cff0..0000000000 --- a/assets/src/test/java/bisq/asset/coins/MileTest.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import org.junit.Test; - -public class MileTest extends AbstractAssetTest { - - public MileTest() { - super(new Mile()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("2WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQW"); - assertValidAddress("NTvSfK1Gr5Jg97UvJo2wvi7BTZo8KqJzgSL2FCGucF6nUH7yq"); - assertValidAddress("ztNdPsuyfDWt1ufCbDqaCDQH3FXvucXNZqVrdzsWvzDHPrkSh"); - assertValidAddress("jkvx3z98rJmuVKqMSktDpKTSBrsqJEtTBW1CBSWJEtchDGkDX"); - assertValidAddress("is2YXBxk91d4Lw4Pet7RoP8KAxCKFHUC6iQyaNgmac5ies6ko"); - assertValidAddress("2NNEr5YLniGxWajoeXiiAZPR68hJXncnhEmC4GWAaV5kwaLRcP"); - assertValidAddress("wGmjgRu8hgjgRsRV8k6h2puis1K9UQCTKWZEPa4yS8mrmJUpU"); - assertValidAddress("i8rc9oMunRtVbSxA4VBESxbYzHnfhP39aM5M1srtxVZ8oBiKD"); - assertValidAddress("vP4w8khXHFQ7cJ2BJNyPbJiV5kFfBHPVivHxKf5nyd8cEgB9U"); - assertValidAddress("QQQZZa46QJ3499RL8CatuqaUx4haKQGUuZ4ZE5SeL13Awkf6m"); - assertValidAddress("qqqfpHD3VbbyZXTHgCW2VX8jvoERcxanzQkCqVyHB8fRBszMn"); - assertValidAddress("BiSQkPqCCET4UovJASnnU1Hk5bnqBxBVi5bjA5wLZpN9HCA6A"); - assertValidAddress("bisqFm6Zbf6ULcpJqQ2ibn2adkL2E9iivQFTAP15Q18daQxnS"); - assertValidAddress("miLEgbhGv4ARoPG2kAhTCy8UGqBcFbsY6rr5tXq63nH8RyqcE"); - - - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQW"); - assertInvalidAddress("2WeY8JpRJgrvWQxbSPuyhsBMjtZMMN3cADEomPHh2bCkdZ7xQW"); - assertInvalidAddress("2WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQ1"); - assertInvalidAddress("2WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQ"); - assertInvalidAddress("WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQW"); - assertInvalidAddress("2WeY8JpRJgrvWQx"); - assertInvalidAddress("2WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQW1"); - assertInvalidAddress("milEgbhGv4ARoPG2kAhTCy8UGqBcFbsY6rr5tXq63nH8RyqcE"); - assertInvalidAddress("miLegbhGv4ARoPG2kAhTCy8UGqBcFbsY6rr5tXq63nH8RyqcE"); - assertInvalidAddress("1111111"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MirQuiXTest.java b/assets/src/test/java/bisq/asset/coins/MirQuiXTest.java deleted file mode 100644 index 53db34d889..0000000000 --- a/assets/src/test/java/bisq/asset/coins/MirQuiXTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class MirQuiXTest extends AbstractAssetTest { - - public MirQuiXTest() { - super(new MirQuiX()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("MCfFP5bFtN9riJiRRnH2QRkqCDqgNVC3FX"); - assertValidAddress("MEoLjNvFbNv63NtBW6eyYHUAGgLsJrpJbG"); - assertValidAddress("M84gmHb7mg4PMNBpVt3BeeAWVuKBmH6vtd"); - assertValidAddress("MNurUTgTSgg5ckmCcbjPrkgp7fekouLYgh"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("MCfFP5bFtN9riJiRRnH2QRkqCDqgNVC3FX2"); - assertInvalidAddress("MmEoLjNvFbNv63NtBW6eyYHUAGgLsJrpJbG"); - assertInvalidAddress("M84gmHb7mg4PMNBpVt3BeeAWVuKBmH63vtd"); - assertInvalidAddress("MNurUTgTSgg5ckmCcbjPrkgp7fekouLYfgh"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MoXTest.java b/assets/src/test/java/bisq/asset/coins/MoXTest.java deleted file mode 100644 index d16e1232d9..0000000000 --- a/assets/src/test/java/bisq/asset/coins/MoXTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import org.junit.Test; - -public class MoXTest extends AbstractAssetTest { - - public MoXTest() { - super(new MoX()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("XwoHEJVYYZEBXB99yPP1AWNYYTDLPGHZ11jTia4RWRpwbohuChbpPngF42RCoaKaJciCmhwdKWsBBQPt8Ci5dr9p3BejTRxXV"); - assertValidAddress("XwoG8c8N8VZQy9usuHj88DK5DsezY5YrkZoSCEKg8sFfhKLhFV2NwVMPFNogZkjpPw1RiV16JQ1Mg6ygYpntKADJ2kSRv21Lc"); - assertValidAddress("XwoABgJx6dt96eihXdGwj31AKqsN7dTbb1vMshfmj87YRYxmieBh8zHY26AYnwDE9Ce4Mg4eB4huEHYM26bEWrN72xa6zBf17"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("XwoHEJVYYZEBXB99yPP1AWNYYTDLPGHZ11jTia4RWRpwbohuChbpPngF42RCoaKaJciCmhwdKWsBBQPt8Ci5dr9p3BejTRxX"); - assertInvalidAddress("XwoHEJVYYZEBXB99yPP1AWNYYTDLPGHZ11jTia4RWRpwbohuChbpPngF42RCoaKaJciCmhwdKWsBBQPt8Ci5dr9p3BejTRxXVV"); - assertInvalidAddress("woHEJVYYZEBXB99yPP1AWNYYTDLPGHZ11jTia4RWRpwbohuChbpPngF42RCoaKaJciCmhwdKWsBBQPt8Ci5dr9p3BejTRxXVV"); - assertInvalidAddress("Xizx2PdSDC6B4xwcxr6ZsHAiShnj7XcXSEmf4GQRTmpDFum1MyohsekDvRQpN4eQwyZyCw4Hs2UKyJSygXwA2QhyGcS5NRVsYrM9t2SCPsxzT"); - assertInvalidAddress(""); - assertInvalidAddress("XwoHEJVYYZEBXB99yPP1AWNYYTDLPGHZ11jTia4RWRpwbohuChbpPngF42RCoaKaJciCmhwdKWsBBQPt8Ci5dr9p3BejTRxXV#aFejf"); - assertInvalidAddress("1jRo3rcp9fjdfjdSGpx"); - assertInvalidAddress("GDARp92UtmTWDjZatG8sdurzouheiuRRRTbbRtbr3atrHSXr9vJzjHq2TfPrjateDz9Wc8ZJKuDayqJ$%"); - assertInvalidAddress("F3xQ8Gv6xnvDhUrM57z71bfFvu9HeofXtXpZRLnrCN2s2cKvkQowrWjJTGz4676ymKvU4NzPY8Cadgsdhsdfhg4gfJwL2yhhkJ7"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MobitGlobalTest.java b/assets/src/test/java/bisq/asset/coins/MobitGlobalTest.java deleted file mode 100644 index d16499bbee..0000000000 --- a/assets/src/test/java/bisq/asset/coins/MobitGlobalTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class MobitGlobalTest extends AbstractAssetTest { - - public MobitGlobalTest() { - super(new MobitGlobal()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("MKDLXTdJs1AtAJhoRddLBSimXCE6SXbyMq"); - assertValidAddress("MGr2WYY9kSLPozEcsCWSEumXNX2AJXggUR"); - assertValidAddress("MUe1HzGqzcunR1wUxHTqX9cuQNMnEjiN7D"); - assertValidAddress("MWRqbYKkQcSvtHq4GFrPvYGf8GFGsLNPcE"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("AWGfbG22DNhgP2rsKfqyFxCwi1u68BbHAA1"); - assertInvalidAddress("AWGfbG22DNhgP2rsKfqyFxCwi1u68BbHAB"); - assertInvalidAddress("AWGfbG22DNhgP2rsKfqyFxCwi1u68BbHA#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MonetaryUnitTest.java b/assets/src/test/java/bisq/asset/coins/MonetaryUnitTest.java deleted file mode 100644 index ec27ac62ee..0000000000 --- a/assets/src/test/java/bisq/asset/coins/MonetaryUnitTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class MonetaryUnitTest extends AbstractAssetTest { - - public MonetaryUnitTest() { - super(new MonetaryUnit()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("7VjG4Vjnu488k14QdpxswKk1acVgySqV6c"); - assertValidAddress("7U42XyYEf7CsLsaq84mRxMaMfst7f3r4By"); - assertValidAddress("7hbLQSY9SnyHf1RwiTniMt8vT94x7pqJEr"); - assertValidAddress("7oM4HbCStpDQ8imocHPVjNWGVj9gg54erh"); - assertValidAddress("7SUheC6Xp12G9CCgoMJ2dT8e9zwnFRwjrU"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0U42XyYEf7CsLsaq84mRxMaMfst7f3r4By"); - assertInvalidAddress("#7VjG4Vjnu488k14QdpxswKk1acVgySqV6c"); - assertInvalidAddress("7SUheC6Xp12G9CCgoMJ2dT8e9zwnFRwjr"); - assertInvalidAddress("7AUheX6X"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/MyceTest.java b/assets/src/test/java/bisq/asset/coins/MyceTest.java deleted file mode 100644 index f35abac5fd..0000000000 --- a/assets/src/test/java/bisq/asset/coins/MyceTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import org.junit.Test; -import bisq.asset.AbstractAssetTest; - -public class MyceTest extends AbstractAssetTest { - - public MyceTest() { - super(new Myce()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("MCgtattGUWUBAV8n2JAa4uDWCRvbZeVcaD"); - assertValidAddress("MRV2dtuxwo8b1JSkwBXN3uGypJxp85Hbqn"); - assertValidAddress("MEUvfCySnAqzuNvbRh2SZCbSro8e2dxLYK"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("MCgtattGUWUBAV8n2JAa4uDWCRvbZeVcaDx"); - assertInvalidAddress("AUV2dtuxwo8b1JSkwBXN3uGypJxp85Hbqn"); - assertInvalidAddress("SEUvfCySnAqzuNvbRh2SZCbSro8e2dxLYK"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/NamecoinTest.java b/assets/src/test/java/bisq/asset/coins/NamecoinTest.java deleted file mode 100644 index ecf508b527..0000000000 --- a/assets/src/test/java/bisq/asset/coins/NamecoinTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import org.junit.Test; -import bisq.asset.AbstractAssetTest; - -public class NamecoinTest extends AbstractAssetTest { - - public NamecoinTest() { - super(new Namecoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("N7yhcPhzFduWXPc11AUK9zvtnsL6sgxmRs"); - assertValidAddress("N22FRU9f3fx7Hty641D5cg95kRK6S3sbf3"); - assertValidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQerY"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("N7yhcPhzFduWXPc11AUK9zvtnsL6sgxmRsx"); - assertInvalidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQer"); - assertInvalidAddress("bc1qus65zpte6qa2408qu3540lfcyj9cx7dphfcspn"); - assertInvalidAddress("3GyEtTwXhxbjBtmAR3CtzeayAyshtvd44P"); - assertInvalidAddress("1CnXYrivw7pJy3asKftp41wRPgBggF9fBw"); - } -} - diff --git a/assets/src/test/java/bisq/asset/coins/NavcoinTest.java b/assets/src/test/java/bisq/asset/coins/NavcoinTest.java deleted file mode 100644 index 2fe5d7ad3a..0000000000 --- a/assets/src/test/java/bisq/asset/coins/NavcoinTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class NavcoinTest extends AbstractAssetTest { - - public NavcoinTest() { - super(new Navcoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("NNR93HzmuhYKZ4Tnc9TGoD2DK6TVzXG9P7"); - assertValidAddress("NSm5NyCe5BFRuV3gFY5VcfhxWx7GTu9U9F"); - assertValidAddress("NaSdzJ64o8DQo5DMPexVrL4PYFCBZqcmsW"); - - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("NNR93HzmuhYKZ4Tnc9TGoD2DK6TVzXG9P"); - assertInvalidAddress("NNR93HzmuhYKZ4TnO9TGoD2DK6TVzXG9P8"); - assertInvalidAddress("NNR93HzmuhYKZ4Tnc9TGoD2DK6TVzXG9P71"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/NdauTest.java b/assets/src/test/java/bisq/asset/coins/NdauTest.java deleted file mode 100644 index 7ca21e5217..0000000000 --- a/assets/src/test/java/bisq/asset/coins/NdauTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -/* - * Copyright © 2019 Oneiro NA, Inc. - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class NdauTest extends AbstractAssetTest { - public NdauTest() {super(new Ndau());} - - @Test - public void testValidAddresses() { - assertValidAddress("ndaaacj4gbv5xgwikt6adcujqyvd37ksadj4mg9v3jqtbe9f"); - assertValidAddress("ndnbeju3vmcxf9n96rb652eaeri79anqz47budnw8vwv3nyv"); - assertValidAddress("ndeatpdkx5stu28n3v6pie96bma5k8pzbvbdpu8dchyn46nw"); - assertValidAddress("ndxix97gyubjrkqbu4a5m3kpxyz4qhap3c3ui7359pzskwv4"); - assertValidAddress("ndbjhkkcvj88beqcamr439z6d6icm5mjwth5r7vrgfbnxktr"); - assertValidAddress("ndmpdkab97bi4ea73scjh6xpt8njjjhha4rarpr2zzzrv88u"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("ndaaacj4gbv5xgwikt6adcujqyvd37ksadj4mg9v3jqtbe9"); - assertInvalidAddress("ndnbeju3vmcxf9n96rb652eaeri79anqz47budnw8vwv3nyvw"); - assertInvalidAddress("ndpatpdkx5stu28n3v6pie96bma5k8pzbvbdpu8dchyn46nw"); - assertInvalidAddress("ndx1x97gyubjrkqbu4a5m3kpxyz4qhap3c3ui7359pzskwv4"); - assertInvalidAddress("ndbjhklcvj88beqcamr439z6d6icm5mjwth5r7vrgfbnxktr"); - assertInvalidAddress("ndmpdkab97bi4ea73scjh6xpt8njjjhhaArarpr2zzzrv88u"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/NoirTest.java b/assets/src/test/java/bisq/asset/coins/NoirTest.java deleted file mode 100644 index 6a90c4ef82..0000000000 --- a/assets/src/test/java/bisq/asset/coins/NoirTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class NoirTest extends AbstractAssetTest { - - public NoirTest() { - super(new Noir()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("ZMZ6M64FiFjPjmzXRf7xBuyarorUmT8uyG"); - assertValidAddress("ZHoMM3vccwGrAQocmmp9ZHA7Gjg9Uqkok7"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("21HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSHa"); - assertInvalidAddress("ZHoMM3vccwGrAQocmmp9ZHA7Gjg9Uqkok7*"); - assertInvalidAddress("ZHoMM3vccwGrAQocmmp9ZHA7Gjg9Uqkok7#jHt5jtP"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/NoteBlockchainTest.java b/assets/src/test/java/bisq/asset/coins/NoteBlockchainTest.java deleted file mode 100644 index 9040dd5e2c..0000000000 --- a/assets/src/test/java/bisq/asset/coins/NoteBlockchainTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class NoteBlockchainTest extends AbstractAssetTest { - - public NoteBlockchainTest() { - super(new NoteBlockchain()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("NaeSp6oTDFiGBZejFyYJvuCaSqWMnMM44E"); - assertValidAddress("NPCz6bsSnksLUGbp11hbHFWqFuVweEgMWM"); - assertValidAddress("NMNA6oMBExWhYoVEcD2BbcL6qmQ6rs7GN2"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1NMNA6oMBExWhYoVEcD2BbcL6qmQ6rs7GN2"); - assertInvalidAddress("NMNA6oMBExyWhYoVEcD2BbcL6qmQ6rs7GN2"); - assertInvalidAddress("NMNA6oMBExWhYoVEcD2BbcL6qmQ6rs7GN2#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/PENGTest.java b/assets/src/test/java/bisq/asset/coins/PENGTest.java deleted file mode 100644 index ca5d2df5b8..0000000000 --- a/assets/src/test/java/bisq/asset/coins/PENGTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class PENGTest extends AbstractAssetTest { - - public PENGTest() { - super(new PENG()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("P9KqnVS9UpcJmLtCF1j4SV3fcccMuGEbhs"); - assertValidAddress("PUTXyY73s3HDvEzNJQekXMnjNjTrzFBzE2"); - assertValidAddress("PEfabj5DzRj6WBpc3jtVDorsVM5nddDxie"); - assertValidAddress("PAvXbSUAdCyd9MEtDPYYSmezmeLGL1HcjG"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("Pp9KqnVS9UpcJmLtCF1j4SV3fcccMuGEbhs"); - assertInvalidAddress("PqUTXyY73s3HDvEzNJQekXMnjNjTrzFBzE2"); - assertInvalidAddress("P8Efabj5DzRj6WBpc3jtVDorsVM5nddDxie"); - assertInvalidAddress("P9AvXbSUAdCyd9MEtDPYYSmezmeLGL1HcjG"); - } -} \ No newline at end of file diff --git a/assets/src/test/java/bisq/asset/coins/PIVXTest.java b/assets/src/test/java/bisq/asset/coins/PIVXTest.java deleted file mode 100644 index a85fc6d4a6..0000000000 --- a/assets/src/test/java/bisq/asset/coins/PIVXTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class PIVXTest extends AbstractAssetTest { - - public PIVXTest() { - super(new PIVX()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("DFJku78A14HYwPSzC5PtUmda7jMr5pbD2B"); - assertValidAddress("DAeiBSH4nudXgoxS4kY6uhTPobc7ALrWDA"); - assertValidAddress("DRbnCYbuMXdKU4y8dya9EnocL47gFjErWe"); - assertValidAddress("DTPAqTryNRCE2FgsxzohTtJXfCBCDnG6Rc"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("dFJku78A14HYwPSzC5PtUmda7jMr5pbD2B"); - assertInvalidAddress("DAeiBSH4nudXgoxS4kY6uhTPobc7AlrWDA"); - assertInvalidAddress("DRbnCYbuMXdKU4y8dya9EnocL47gFjErWeg"); - assertInvalidAddress("DTPAqTryNRCE2FgsxzohTtJXfCBODnG6Rc"); - assertInvalidAddress("DTPAqTryNRCE2FgsxzohTtJXfCB0DnG6Rc"); - assertInvalidAddress("DTPAqTryNRCE2FgsxzohTtJXfCBIDnG6Rc"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/PZDCTest.java b/assets/src/test/java/bisq/asset/coins/PZDCTest.java deleted file mode 100644 index 339641be20..0000000000 --- a/assets/src/test/java/bisq/asset/coins/PZDCTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class PZDCTest extends AbstractAssetTest { - - public PZDCTest() { - super(new PZDC()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("PNxERPUbkvCYeuJk44pH8bsdQJenvEWt5J"); - assertValidAddress("PCwCT1PkW2RsxT8jTb21vRnNDQGDRcWNkM"); - assertValidAddress("PPD3mYyS3vsHBkCrbCfrZyrwCGdr6EJHgG"); - assertValidAddress("PTQDhqksrocR7Z516zbpjuXSGVD37iu8gy"); - assertValidAddress("PXtABooQW1ED9NkARTiFcZv6xUnMmrbhpt"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("pGXsg0jSMzh1dSqggRvHjPvE3cnwvuXC7s"); - assertInvalidAddress("PKfRRcjwzKFq3dIqE9gq8Ztxn922W4GZhm"); - assertInvalidAddress("PKfRRcjwzKFq3d0qE9gq8Ztxn922W4GZhm"); - assertInvalidAddress("PKfRRcjwzKFq3dOqE9gq8Ztxn922W4GZhm"); - assertInvalidAddress("PKfRRcjwzKFq3dlqE9gq8Ztxn922W4GZhm"); - assertInvalidAddress("PXP75NnwDryYswQb9RaPFBchqLRSvBmDP"); - assertInvalidAddress("PKr3vQ7S"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ParsiCoinTest.java b/assets/src/test/java/bisq/asset/coins/ParsiCoinTest.java deleted file mode 100644 index 9bb6a31326..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ParsiCoinTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ParsiCoinTest extends AbstractAssetTest { - - public ParsiCoinTest() { - super(new ParsiCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("PARSGnjdcRG4gY9g4rMTFAEHZLGU7uK8YMiFY3Do1uzoMz4LMA6PqmdPp7ZxDu25b56RyhCevkWjbAMng532iFFj8L5RaPyT4s"); - assertValidAddress("PARSftfY5pwJaUFtaxThVgKY9Sepd4mG44WpyncbtAxTddwTvJ84GCgGfoxYjzG53kLhRm21ENWp3fx5bneArq1D815ZoWNVqA"); - assertValidAddress("PARSju1hCQ5GmXSRbca8weGYDn2pqCypgLyTrENqL4XU3mdEx1mZ2vR7osrVA2hHNGRJRA5pRENF2Q8Pee8BscHoABVrcfkWnx"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("1GfqxEuuFmwwHTFkch3Aq3frEBbdpYfWPP"); - assertInvalidAddress("PARsaUEu1c9HWPQx6WpCcjZNmpS3vMhN4Jws12KrccLhH9vzUw4racG3g7St2FKDYngjcnkNF3N2sKQJ5jv1NYqD2buCpmVKE"); - assertInvalidAddress("PArSeoCiQL2Rjyo9GR39boeLCTM6ou3zGiv8AuFFblGHfNasy5iKfvG6JgnksNby26J6i5sEorRcmG8gF2AxC8bYiHyDGEfD6hp8T9KfwjQxVa"); - assertInvalidAddress("PaRSaUEu1c9HWPQx6WpCcjZNmpS3vMhN4Jws12rccLhH9vzUw4racG3g7St2#FKDYngjcnkNF3N2sKQJ5jv1NYqD2buCpmVKE"); - assertInvalidAddress("pARSeoCiQL2Rjyo9GR39boeLCTM6ou3zGiv8AuFFby5iKfvG6JNby26J6i5s$&*orRcmG8gF2AxC8bYiHyDGEfD6hp8T9KfwjQxVa"); - assertInvalidAddress("hyrjMmPhaznQkJD6C9dcmbBH9y6r9vYAg2aTG9CHSzL1R89xrFi7wj1azmkXyLPiWDBeTCsKGMmr6JzygbP2ZGSN2JqWs1WcK"); - assertInvalidAddress("parsGnjdcRG4gY9g4rMTFAEHZLGU7uK8YMiFY3Do1uzoMz4LMA6PqmdPp7ZxDu25b56RyhCevkWjbAMng532iFFj8L5RaPyT"); - } -} \ No newline at end of file diff --git a/assets/src/test/java/bisq/asset/coins/ParticlTest.java b/assets/src/test/java/bisq/asset/coins/ParticlTest.java deleted file mode 100644 index bf44104b9a..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ParticlTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ParticlTest extends AbstractAssetTest { - - public ParticlTest() { - super(new Particl()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("PZdYWHgyhuG7NHVCzEkkx3dcLKurTpvmo6"); - assertValidAddress("RJAPhgckEgRGVPZa9WoGSWW24spskSfLTQ"); - assertValidAddress("PaqMewoBY4vufTkKeSy91su3CNwviGg4EK"); - assertValidAddress("PpWHwrkUKRYvbZbTic57YZ1zjmsV9X9Wu7"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/PersonaTest.java b/assets/src/test/java/bisq/asset/coins/PersonaTest.java deleted file mode 100644 index 92786b6e62..0000000000 --- a/assets/src/test/java/bisq/asset/coins/PersonaTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class PersonaTest extends AbstractAssetTest { - - public PersonaTest() { - super(new Persona()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("PV5PbsyhkM1RkN41QiSXy7cisbZ4kBzm51"); - assertValidAddress("PJACMZ2tMMZzQ8H9mWPHJcB7uYP47BM2zA"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("LJACMZ2tMMZzQ8H9mWPHJcB7uYP47BM2zA"); - assertInvalidAddress("TJACMZ2tMMZzQ8H9mWPHJcB7uYP47BM2zA"); - assertInvalidAddress("PJACMZ2tMMZzQ8H9mWPHJcB7uYP47BM2zAA"); - assertInvalidAddress("PlACMZ2tMMZzQ8H9mWPHJcB7uYP47BM2zA"); - assertInvalidAddress("PIACMZ2tMMZzQ8H9mWPHJcB7uYP47BM2zA"); - assertInvalidAddress("POACMZ2tMMZzQ8H9mWPHJcB7uYP47BM2zA"); - assertInvalidAddress("P0ACMZ2tMMZzQ8H9mWPHJcB7uYP47BM2zA"); - } -} - - diff --git a/assets/src/test/java/bisq/asset/coins/PinkcoinTest.java b/assets/src/test/java/bisq/asset/coins/PinkcoinTest.java deleted file mode 100644 index e9d14bee4e..0000000000 --- a/assets/src/test/java/bisq/asset/coins/PinkcoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class PinkcoinTest extends AbstractAssetTest { - - public PinkcoinTest() { - super(new Pinkcoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("2KZEgvipDn5EkDAFB8UR8nVXuKuKt8rmgH"); - assertValidAddress("2KVgwafcbw9LcJngqAzxu8UKpQSRwNhtTH"); - assertValidAddress("2TPDcXRRmvTxJQ4V8xNhP1KmrTmH9KKCkg"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("PPo1gCi4xoC87gZZsnU2Uj6vSgZAAD9com"); - assertInvalidAddress("z4Vg3S5pJEJY45tHX7u6X1r9tv2DEvCShi2"); - assertInvalidAddress("1dQT9U73rNmomYkkxQwcNYhfQr9yy4Ani"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/PlenteumTest.java b/assets/src/test/java/bisq/asset/coins/PlenteumTest.java deleted file mode 100644 index 68278e60bc..0000000000 --- a/assets/src/test/java/bisq/asset/coins/PlenteumTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class PlenteumTest extends AbstractAssetTest { - - public PlenteumTest() { - super(new Plenteum()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("PLeah9bvqxEDUWbRFqgNcYDeoL772WH9mcCQu9p29MC23NeCUkbVdUEfwDAtF8SgV81kf2hwCdpxqAJmC9k3nJsA7W4UThrufj"); - assertValidAddress("PLeavHTKHz9UcTCSCmd8eihuLxbsK9a7wSpfcYXPYY87JMpvYwwTH6Df32fRLc1r4rQMKoDLpTvywXx4FUVTggCR4jh9PEhvXb"); - assertValidAddress("PLeazd7iQEoFWJttR6353BMvs1cJfMqDmEUk2Z2XSoDdZigY5CbNLvrFUr7duvnEFdSKRdCQYTDkrcySYD1zaFtT9YMubRjHL2"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("PLev23ymatPTWgN1jncG33hMdJxZBLrBcCWQBGGGC14CFMUCq1nvxiV8d5cW92mmavzw542bpyjYXd8"); - assertInvalidAddress("PLeuxauCnCH7XZrSZSZw7XEEbkgrnZcaE1MK8wLtTYkF3g1J7nciYiaZDsTNYm2oDLTAM2JPq4rrlhVN5cXWpTPYh8P5wKbXNdoh"); - assertInvalidAddress(""); - assertInvalidAddress("PLev3xxpAFfXKwF5ond4sWDX3ATpZngT88KpPCCJKcuRjGktgp5HHTK2yV7NTo8687u5jwMigLmHaoFKho0OhVmF8WP9pVZhBL9kC#RoPOWRwpsx1F"); - assertInvalidAddress("PLeuwafXHTPzj1d2wc7c9X69r3qG1277ecnLnUaZ61M1YV5d3GYAs1Jbc2q4C4fWN$C4fWNLoDLDvADvpjNYdt3sdRB434UidKXimQQn"); - assertInvalidAddress("1jRo3rcp9fjdfjdSGpx"); - assertInvalidAddress("GDARp92UtmTWDjZatG8sduRockSteadyWasHere3atrHSXr9vJzjHq2TfPrjateDz9Wc8ZJKuDayqJ$%"); - assertInvalidAddress("F3xQ8Gv6xnvDhUrM57z71bfFvu9HeofXtXpZRLnrCN2s2cKvkQowrWjJTGz4676ymKvU4NzYT5Aadgsdhsdfhg4gfJwL2yhhkJ7"); - } -} \ No newline at end of file diff --git a/assets/src/test/java/bisq/asset/coins/QMCoinTest.java b/assets/src/test/java/bisq/asset/coins/QMCoinTest.java deleted file mode 100644 index 8889b816d1..0000000000 --- a/assets/src/test/java/bisq/asset/coins/QMCoinTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class QMCoinTest extends AbstractAssetTest { - - public QMCoinTest() { - super(new QMCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("QSXwS2opau1PYsvj4PrirPkP6LQHeKbQDx"); - assertValidAddress("QbvD8CPJwAmpQoE8CQhzcfWp1EAmT2E298"); - assertValidAddress("QUAzsb7nqp7XVsRy9vjaE4kTUpgP1pFeoL"); - assertValidAddress("QQDvVM2s3WYa8EZQS1s2esRkR4zmrjy94d"); - assertValidAddress("QgdkWtsy1inr9j8RUrqDeVnrJmhE28WnLX"); - assertValidAddress("Qii56aanBMiEPpjHoaE4zgEW4jPuhGjuj5"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("qSXwS2opau1PYsvj4PrirPkP6LQHeKbQDx"); - assertInvalidAddress("QbvD8CPJwAmpQoE8CQhzcfWp1EAmT2E2989"); - assertInvalidAddress("QUAzsb7nq07XVsRy9vjaE4kTUpgP1pFeoL"); - assertInvalidAddress("QQDvVM2s3WYa8EZQS1s2OsRkR4zmrjy94d"); - assertInvalidAddress("QgdkWtsy1inr9j8RUrqDIVnrJmhE28WnLX"); - assertInvalidAddress("Qii56aanBMiEPpjHoaE4lgEW4jPuhGjuj5"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/QbaseTest.java b/assets/src/test/java/bisq/asset/coins/QbaseTest.java deleted file mode 100644 index 31c43752af..0000000000 --- a/assets/src/test/java/bisq/asset/coins/QbaseTest.java +++ /dev/null @@ -1,28 +0,0 @@ -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class QbaseTest extends AbstractAssetTest { - public QbaseTest() { - super(new Qbase()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("BBrv1uUkQxpWayMvaVSw9Gr4X7CcdWUtcC"); - assertValidAddress("BNMFjkDk9qqcF2rtoAbqbqWiHa41GPkQ2G"); - assertValidAddress("B73WdFQXx8VGNg8h1BeJj6H2BEa1xrbtsT"); - assertValidAddress("BGq4DH2BnS4kFWuNNQqfmiDLZvjaWtvnWX"); - assertValidAddress("B9b8iTbVVcQrohrEnJ9ho4QUftHS3svB84"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("bBrv1uUkQxpWayMvaVSw9Gr4X7CcdWUtcC"); - assertInvalidAddress("B3rv1uUkQxpWayMvaVSw9Gr4X7CcdWUtcC"); - assertInvalidAddress("PXP75NnwDryYswQb9RaPFBchqLRSvBmDP"); - assertInvalidAddress("PKr3vQ7S"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/QwertycoinTest.java b/assets/src/test/java/bisq/asset/coins/QwertycoinTest.java deleted file mode 100644 index 11140b1c21..0000000000 --- a/assets/src/test/java/bisq/asset/coins/QwertycoinTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import org.junit.Test; - -public class QwertycoinTest extends AbstractAssetTest { - - public QwertycoinTest() { - super(new Qwertycoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("QWC1NStUeRB9hZiYH8sG5RAWEt7YycyB44YZnpZQBpgq4CLwmLw4vAk9tU3h7Td21NL9aMbLHxseDGKdEv3gRexo2QCodNEZWa"); - assertValidAddress("QWC1anUNJRo2HePBmenLFkGu8rnug4odGLCjHaCqAwMxboiZZS3Gv9ACLfn2zvcsGVcCc51eqZXB8Dot9X5qAt3F53F8BxjDrG"); - assertValidAddress("QWC1hgpbsxsPrpxH9H3wL771p4KdgS7vA369PQTiznHiCC3NjZxKJSmBtJPVCJBBUKE346FcPTsQ18W6fgiDzj762BHNgo2sir"); - assertValidAddress("QWC1YAvWpYBVs8XT2eSt2JV5iAJSdm8CwbQhDruuBeTzRNKSdtdK8Mn3WjaXQrFvjMMWWTf24x89p31mWppJN2Br9uiA5zdYQu"); - assertValidAddress("QWC1YzR91Zmcj7fpf1HRZhSfz6cgXbxqAVTjQTtrUV6Bfv1ysEzb78qgVojE7FuQWSRnVqSb3LyxP9nH2q4vWyo82Fonutfkzr"); - assertValidAddress("QWC1KYAwX6sRXK94HabKLCFNMjfC12KFC74cRjTgFtsD79VUBydTtMd3G2z4xLg2e1LKaXsTt3zkYibH3pBrAMjd5z5ConjRXn"); - assertValidAddress("QWC1ZgSyFwS3tUbmCRPGDBi224ynMZXgXCHxvQ5pEmtuZSCrmid4z1de1DWRjhZKRZXe4E5LYhtP6e7FmpN8R2MM2SHGFvg12z"); - assertValidAddress("QWC1W7223e83cBdseddQp461j49bhr7y4VHh8FTPs7qWArhpqBzNvrYR5QXyFtc3eRaoASo3QVhuT6ogAa6AHhgt4bVMUNpZGh"); - assertValidAddress("QWC1NgBcSwvXghUkEqGttNPSSmPEgEdknXELNLyTG444Fx3cKkV2oJ9iCwzySbps7y9BqqkWAKbkvdkA8FTspfdm29ScDzASK1"); - assertValidAddress("QWC1FVgbYqkafwnpW8KU2gKXLTKoraMXuEJ2c1yG6PNdesh6BA3Wq8d1mgRYqfsbCn53g5VLHuxyLT8CXnGRLxN64wHssuSa9D"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("QW009s5NiYva6XS9bhhVc6jKYgXsH9wuHhZhWsqyAoPoWPUEiwEo9AZCDNbksvknyvZk73zwhHWSiXdgcDGLyhk5teEM7yxTgk"); - assertInvalidAddress("WC115a2NPZy7Xe2WZt3nKMZBsBpgNdevnKfy6PLk99eCjYw5fWQ5nu4uM6LerRBvVKTJpdGp2acZ25X3QDPHc7ocTxz1WfN2Za"); - assertInvalidAddress("34BQWC8imA1UH29uR6PHiGpcz9MYdnL3rku27gGeLosn5XuSedFC7jPBmzaB9DoxmDA5VUZa5hPv6PSe3tJH2MJhBktMEJXaZ8"); - assertInvalidAddress("KWC45Ghz2JRTTrLh8Z4bm6QhzZxVbq7LPiKbgjjhHPNDvVXZAJLop91zRu9A7wJMjyrU89uF7QpZB5kHhniuGZ88MJv7jRZXNi"); - assertInvalidAddress("ABc58FFmFEGcS52mTWmhAskQaKSSiX1BnHo8YcDjuhPdYBpWT9Q6ZCDz54k6cs3jPF2nk6desb1T6vRfHLfthiNf561qPct2SY"); - assertInvalidAddress("2K267rMF5ve4nt2wTHYJ1pZ6j3o2YP5KDBnE7GDxnr6bpem9WcqeHzw9yKWXvtxYdpDXCBbLiX9nm97r4aEtnXq8YNb9WPn15f"); - assertInvalidAddress("798Qr9sWTprQ2sH2y5PGpfV3RAnFxUsJYY2a2VQWCA9GjZ3MiyScD8VEh8ifWk4toYRCcbLZmRJw2dSsJBJAJ1Ava8WBzW7J12"); - assertInvalidAddress("A2o85CQSLDNNKR4HGHwhtsxhm8jheYEvk6ngf44AhqCRWDV2XsaTHr6ittDuyfCjinAP1SzBqnVJfqNhYGDJLzxq4Y7FBVofXV"); - assertInvalidAddress("QW9AeKW87bkao59oadmTXGf8Jv7sMYByPrKahRbnmZEmGzRgoxGRbWqmmXuPDW6jPJSUAdpZRZn6E5B9935LtWD5gHAPpZQA"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/RadiumTest.java b/assets/src/test/java/bisq/asset/coins/RadiumTest.java deleted file mode 100644 index bacc2da78f..0000000000 --- a/assets/src/test/java/bisq/asset/coins/RadiumTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import org.junit.Test; - - - -import bisq.asset.AbstractAssetTest; - -public class RadiumTest extends AbstractAssetTest { - - public RadiumTest() { - super(new Radium()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("XfrvQw3Uv4oGgc535TYyBCT2uNU7ofHGDU"); - assertValidAddress("Xwgof4wf1t8TnQUJ2UokZRVwHxRt4t6Feb"); - assertValidAddress("Xep8KxEZUsCxQuvCfPdt2VHuHbp43nX7Pm"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1LgfapHEPhZbRF9pMd5WPT35hFXcZS1USrW"); - assertInvalidAddress("1K5B7SDcuZvd2oUTaW9d62gwqsZkteXqA4"); - assertInvalidAddress("1GckU1XSCknLBcTGnayBVRjNsDjxqopNav"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/RemixTest.java b/assets/src/test/java/bisq/asset/coins/RemixTest.java deleted file mode 100644 index 200db3c99f..0000000000 --- a/assets/src/test/java/bisq/asset/coins/RemixTest.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import org.junit.Test; - -public class RemixTest extends AbstractAssetTest { - - public RemixTest() { - super(new Remix()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("REMXisBbsyWKYdENidNhiP3bGaVwVgtescK2ZuJMtxed4TqJGH8VX57gMSTyfC43FULSM4XXzmj727SGjDNak16mGaYdban4o4m"); - assertValidAddress("REMXiqQhgfqWtZ1gfxP4iDbXEV4f8cUDFAp2Bz43PztJSJvv2mUqG4Z2YFBMauJV74YCDcJLyqkbCfsC55LNJhQfZxdiE5tGxKq"); - assertValidAddress("SubRM7BgZyGiccN3pKuRPrN52FraE9j7miu17MDwx6wWb7J6XWeDykk48JBZ3QVSXR7GJWr2RdpjK3YCRAUdTbfRL4wGAn7oggi"); - assertValidAddress("SubRM9N9dmoeawsXqNt94jVn6vSurYxxU3E6mEoMnzWvAMB7QjL3Zc9dmKTD64wE5ePFfACVLVLTZZa6GKVp6FuZ7Z9dJheMoJb"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("REMXiqQhgfqWtZ1gfxP4iDbXEV4f8cUDFAp2Bz43PztJSJvv2mUqG4Z2YFBMauJV74YCDcJLyqkbCfsC55LNJhQ"); - assertInvalidAddress("REMXIqQhgfqWtZ1gfxP4iDbXEV4f8cUDFApdfgdfgdfgdfgr4453453453444JV74YCDcJLyqkbCfsC55LNJhQfZxdiE5tGxKq"); - assertInvalidAddress("REMXiqQhgfqWtZ1gfxP4iDbXEV4f8cUDFAp2Bz43PztJS4dssdffffsdfsdfffffdfgdfgsaqkbCfsC4iDbXEV4f8cUDFAp2Bz"); - assertInvalidAddress("SubRM9N9dmoeawsXqNt94jVn6vSurYxxU3E6mEoMnzWvAMB7QL3Zc9dmKTD64wE5ePFfACVLVLTZZa6GKVp6FuZ7Z9dJheMo69"); - assertInvalidAddress("SubRM9N9dmoeawsXqNt94jdfsdfsdfsdfsdfsdfJb"); - assertInvalidAddress("SubrM9N9dmoeawsXqNt94jVn6vSfeet"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/RyoTest.java b/assets/src/test/java/bisq/asset/coins/RyoTest.java deleted file mode 100644 index 1366ee3910..0000000000 --- a/assets/src/test/java/bisq/asset/coins/RyoTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import org.junit.Test; - -public class RyoTest extends AbstractAssetTest { - - public RyoTest() { - super(new Ryo()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("RYoLsinT9duNEtHGqAUicJKD2cmGiB9gB6sqHqWvV6suB4TtPSR8ynyh2vVVvNyDE6g7WEaBxCG8GD1KM2ffWP7FLXgeJbNYrp2"); - assertValidAddress("RYoSrJ7ES1wGsikGHFm69SU6dTTKt8Vi6V7BoC3wsLcc1Y2CXgQkW7vHSe5uArGU9TjUC5RtvzhCycVDnPPbThTmZA8VqDzTPeM"); - assertValidAddress("RYoKst8YBCucSywKDshsywbjc5uCi8ybSUtWgvM3LfzaYe93d4qqpsJ"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("RYoLsinT9duNEtHGqAUicJKD2cmGiB9gB6sqHqWvV6suB4TtPSR8ynyh2vVVvNyDE6g7WEaBxCG8GD1KM2ffWP7FLXgeJbNYrp"); - assertInvalidAddress("RYoLsjCoYrxag2pPoDDTB4cRriKCNn8WjhY99kqjYuNTfE4MU2Yo1CPdpyK7PXpxDcAd5YDNerE6WCc4cVQvEbxLaHk4UcvbRp23"); - assertInvalidAddress("RYoLsinT9duNEtHGqAUicJKD2cmGiB9gB6sqHqWvV6suB4TtPSR8ynyh2vVVvNyDE6g7W!!!xCG8GD1KM2ffWP7FLXgeJbNYrp2"); - assertInvalidAddress("RYoSrJ7ES1IIIIIGHFm69SU6dTTKt8Vi6V7BoC3wsLcc1Y2CXgQkW7vHSe5uArGU9TjUC5RtvzhCycVDnPPbThTmZA8VqDzTPeM"); - assertInvalidAddress("RYoSrJ7ES1wGsikGHFm69SU6dTTKt8Vi6V7BoC3wsLcc1Y2CXgQkW7vHSe5uArGU9TjUC5RtvzhCycVDnPPbThTmZA8VqDzTPe"); - assertInvalidAddress("RYoSrJ7ES1wGsikGHFm69SU6dTTKt8Vi6V7BoC3wsLcc1Y2CXgQkW7vHSe5uArGU9TjUC5RtvzhCycVDnPPbThTmZA8VqDzTPeM1"); - assertInvalidAddress("RYoNsBB18NdcSywKDshsywbjc5uCi8ybSUtWgvM3LfzaYe93d6DEu3PcSywKDshsywbjc5uCi8ybSUtWgvM3LfzaYe93d96NjjvBCYU2SZD2of"); - assertInvalidAddress("RYoKst8YBCucSywKDshsywbjc5uCi8ybSUtWgvM3LfzaYe93d4qqpsJC"); - assertInvalidAddress("RYoKst8YBCucSywKDshsywbjc5uCi8ybSUtWgvM3LfzaYe93d4qqps"); - assertInvalidAddress("RYost8YBCucSywKDshsywbjc5uCi8ybSUtWgvM3LfzaYe93d4qqpsJ"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SUB1XTest.java b/assets/src/test/java/bisq/asset/coins/SUB1XTest.java deleted file mode 100644 index f9d134c641..0000000000 --- a/assets/src/test/java/bisq/asset/coins/SUB1XTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class SUB1XTest extends AbstractAssetTest { - - public SUB1XTest() { - super(new SUB1X()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("ZDxdoVuyosZ6vY3LZAP1Z4H4eXMq2ZpLH7"); - assertValidAddress("ZKi6EksPCZoMi6EGXS9vWVed4NeSov2ZS4"); - assertValidAddress("ZT29B3yDJq1jzkCTBs4LnraM3E854MAPRm"); - assertValidAddress("ZZeaSimQwza3CkFWTrRPQDamZcbntf2uMG"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("zKi6EksPCZoMi6EGXS9vWVed4NeSov2ZS4"); - assertInvalidAddress("ZDxdoVuyosZ6vY3LZAP1Z4H4eXMq2ZpAC7"); - assertInvalidAddress("ZKi6EksPCZoMi6EGXS9vWVedqwfov2ZS4"); - assertInvalidAddress("ZT29B3yDJq1jzkqwrwBs4LnraM3E854MAPRm"); - assertInvalidAddress("ZZeaSimQwza3CkFWTqwrfQDamZcbntf2uMG"); - assertInvalidAddress("Z23t23f"); - assertInvalidAddress("ZZeaSimQwza3CkFWTrRPQDavZcbnta2uMGA"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SiaPrimeCoinTest.java b/assets/src/test/java/bisq/asset/coins/SiaPrimeCoinTest.java deleted file mode 100644 index 93a3f79c83..0000000000 --- a/assets/src/test/java/bisq/asset/coins/SiaPrimeCoinTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class SiaPrimeCoinTest extends AbstractAssetTest { - - public SiaPrimeCoinTest() { - super(new SiaPrimeCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("d9fe1331ed2ae1bbdfe0e2942e84d74b7310648e5a5f14c4980ec2c6a19f08af6894b9060e83"); - assertValidAddress("205cf3be0f04397ee6cc1f52d8ae47f589a4ef5936949c158b2555df291efb87db2bbbca2031"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("205cf3be0f04397ee6cc1f52d8ae47f589a4ef5936949c158b2555df291efb87db2bbbca20311"); - assertInvalidAddress("205cf3be0f04397ee6cc1f52d8ae47f589a4ef5936949c158b2555df291efb87db2bbbca203"); - assertInvalidAddress("205cf3be0f04397ee6cc1f52d8ae47f589a4ef5936949c158b2555df291efb87db2bbbca2031#"); - assertInvalidAddress("bvQpKvb1SswwxVTuyZocHWCVsUeGq7MwoR"); - assertInvalidAddress("d9fe1331ed2ae1bbdfe0e2942e84d74b7310648e5a5f14c4980ec2c6a19f08af6894b9060E83"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SiafundTest.java b/assets/src/test/java/bisq/asset/coins/SiafundTest.java deleted file mode 100644 index f8655edab0..0000000000 --- a/assets/src/test/java/bisq/asset/coins/SiafundTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -public class SiafundTest extends AbstractAssetTest { - - public SiafundTest() { - super(new Siafund()); - } - - @Override - public void testValidAddresses() { - assertValidAddress("949f35966a9b5f329f7419f91a02301b71b9f776568b2c767842af22b408eb8662203a02ec53"); - assertValidAddress("4daae3005456559972f4902217ee8394a890e2afede6f0b49015e5cfaecdcb13f466f5543346"); - assertValidAddress("da4f7fdc0fa047851a9860b09bc9b1e7424333c977e53a5d8aad74f5843a20b7cfa77a7794ae"); - - } - - @Override - public void testInvalidAddresses() { - assertInvalidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQerY"); - assertInvalidAddress("N22FRU9f3fx7Hty641D5cg95kRK6S3sbf3"); - assertInvalidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQerY"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SixElevenTest.java b/assets/src/test/java/bisq/asset/coins/SixElevenTest.java deleted file mode 100644 index 69a70c629c..0000000000 --- a/assets/src/test/java/bisq/asset/coins/SixElevenTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import org.junit.Test; -import bisq.asset.AbstractAssetTest; - -public class SixElevenTest extends AbstractAssetTest { - - public SixElevenTest() { - super(new SixEleven()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("N7yhcPhzFduWXPc11AUK9zvtnsL6sgxmRs"); - assertValidAddress("N22FRU9f3fx7Hty641D5cg95kRK6S3sbf3"); - assertValidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQerY"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("N7yhcPhzFduWXPc11AUK9zvtnsL6sgxmRsx"); - assertInvalidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQer"); - assertInvalidAddress("bc1qus65zpte6qa2408qu3540lfcyj9cx7dphfcspn"); - assertInvalidAddress("3GyEtTwXhxbjBtmAR3CtzeayAyshtvd44P"); - assertInvalidAddress("1CnXYrivw7pJy3asKftp41wRPgBggF9fBw"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SoloTest.java b/assets/src/test/java/bisq/asset/coins/SoloTest.java deleted file mode 100644 index 77c1d69498..0000000000 --- a/assets/src/test/java/bisq/asset/coins/SoloTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - - package bisq.asset.coins; - - import bisq.asset.AbstractAssetTest; - import org.junit.Test; - - public class SoloTest extends AbstractAssetTest { - - public SoloTest() { - super(new Solo()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("SL3UVNhEHuaWK9PwhVgMZWD5yaL6VBC4xRuXLnLFWizxavKvSqbcSpH2fG3dT36uMJEQ6XoKBqvFLUnzWG4Rb5e11yqsioFy8"); - assertValidAddress("Ssy27ePzscCj4spPjgtc8NKGSud9eLFLHGEWNAo8PuC53NnWhDDTX17Cfo3BzFKdYZfU9ovtEYNtQ4ezTtPhAHEuAR5mF8dTqB"); - assertValidAddress("Ssy2WFFnmi3XYJz8UsXPKzHtUxFdVhdSuU3sBGmpTbTLQqpZEMPS8GB486Q8UCaskdbGzxJxwdJYobtJmEPwDawa5mXD5spNbs"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("SL3dqGkkFszKzjzyXSLkYB6X9uqad7ih3DJtTeB8hrzD9iaRjWAUHZ8FA3NErphWM00NzURSTL7FEZ9un9fgLYjK2f7mHRFBn"); - assertInvalidAddress("Ssy2WLjegYxS5P1djMSRmVG8EzXDfHyde6BiZRd3aDyVh1vjwUB2GJHfWhVsvg1i4TjWyGRC9rD4n3kCE2gPA9yx6K34AyzcMZ"); - assertInvalidAddress("Sl3UVNhEHuaWK9PwhVgMZWD5yaL6VBC4xRuXLnLFWizxavKvSXxXSpam8d3dMaDuMJEQ6XoKBqvFLUnzWG4Rb5e11yqsioFy8"); - assertInvalidAddress("Ssy2WFFnmi3XYJz8UsXPKzHtUxFdVhdSuU3sBGmpTbTLQLoLIghGooDdf6QTryaskdbGzxJxwdJYobtJmEPwDawa5mXD5spNbs"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SpaceCashTest.java b/assets/src/test/java/bisq/asset/coins/SpaceCashTest.java deleted file mode 100644 index 2b4fb99552..0000000000 --- a/assets/src/test/java/bisq/asset/coins/SpaceCashTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class SpaceCashTest extends AbstractAssetTest { - - public SpaceCashTest() { - super(new SpaceCash()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("d9fe1331ed2ae1bbdfe0e2942e84d74b7310648e5a5f14c4980ec2c6a19f08af6894b9060e83"); - assertValidAddress("205cf3be0f04397ee6cc1f52d8ae47f589a4ef5936949c158b2555df291efb87db2bbbca2031"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("205cf3be0f04397ee6cc1f52d8ae47f589a4ef5936949c158b2555df291efb87db2bbbca20311"); - assertInvalidAddress("205cf3be0f04397ee6cc1f52d8ae47f589a4ef5936949c158b2555df291efb87db2bbbca203"); - assertInvalidAddress("205cf3be0f04397ee6cc1f52d8ae47f589a4ef5936949c158b2555df291efb87db2bbbca2031#"); - assertInvalidAddress("bvQpKvb1SswwxVTuyZocHWCVsUeGq7MwoR"); - assertInvalidAddress("d9fe1331ed2ae1bbdfe0e2942e84d74b7310648e5a5f14c4980ec2c6a19f08af6894b9060E83"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/SpectrecoinTest.java b/assets/src/test/java/bisq/asset/coins/SpectrecoinTest.java deleted file mode 100644 index c7d7cff2b3..0000000000 --- a/assets/src/test/java/bisq/asset/coins/SpectrecoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class SpectrecoinTest extends AbstractAssetTest { - - public SpectrecoinTest() { - super(new Spectrecoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("SUZRHjTLSCr581qLsGqMqBD5f3oW2JHckn"); - assertValidAddress("SZ4S1oFfUa4a9s9Kg8bNRywucHiDZmcUuz"); - assertValidAddress("SdyjGEmgroK2vxBhkHE1MBUVRbUWpRAdVG"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYheO"); - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhek"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/StarwelsTest.java b/assets/src/test/java/bisq/asset/coins/StarwelsTest.java deleted file mode 100644 index e6d6090b08..0000000000 --- a/assets/src/test/java/bisq/asset/coins/StarwelsTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class StarwelsTest extends AbstractAssetTest { - - public StarwelsTest() { - super(new Starwels()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("1F7EixuiBdvi9bVxEPzAgJ11GRJsdH3ihh"); - assertValidAddress("17DdVnWvz3XZPvMYHmSRSycUgt2EEv29So"); - assertValidAddress("1HuoFLoGJQCLodNDH5oCXWaR1kL8DwksJX"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("21HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSHa"); - assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSHs"); - assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSH#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/TEOTest.java b/assets/src/test/java/bisq/asset/coins/TEOTest.java deleted file mode 100644 index de5909b047..0000000000 --- a/assets/src/test/java/bisq/asset/coins/TEOTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class TEOTest extends AbstractAssetTest { - - public TEOTest() { - super(new TEO()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x8d1ba0497c3e3db17143604ab7f5e93a3cbac68b"); - assertValidAddress("0x23c9c5ae8c854e9634a610af82924a5366a360a3"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("8d1ba0497c3e3db17143604ab7f5e93a3cbac68b"); - assertInvalidAddress("0x8d1ba0497c3e3db17143604ab7f5e93a3cbac68"); - assertInvalidAddress("0x8d1ba0497c3e3db17143604ab7f5e93a3cbac68k"); - assertInvalidAddress("098d1ba0497c3e3db17143604ab7f5e93a3cbac68b"); - assertInvalidAddress("098d1ba0497c3e3db17143604ab7f5e93a3cbac68b"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/TurtleCoinTest.java b/assets/src/test/java/bisq/asset/coins/TurtleCoinTest.java deleted file mode 100644 index 72435fc3f6..0000000000 --- a/assets/src/test/java/bisq/asset/coins/TurtleCoinTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class TurtleCoinTest extends AbstractAssetTest { - - public TurtleCoinTest() { - super(new TurtleCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("TRTLv2X775FNQmN8x2UC3TVzs6trRHwUAcQSL6RUyRXR6JjwFYP8XG8VTCsi7QgPcWBJUWJk2SwaMYvrMk37T4nFVLPigMXcsf8"); - assertValidAddress("TRTLuyTzuoDL9wvoq9VcyGW9Vrp2R3161V3hSa8nZUxAL4iqbTJfFhSXpsrQunXuCGAnA72cZgYGmP7a8zJ6RrwAf5rKjwhUEU8"); - assertValidAddress("TRTLv2YGSbTgmAkZDYvRM8X6bLcJXYr4qMDTXYth9ppc2rHfnNGXPcbBTWxfRxwPTnJvFX1txGh6j9tQ9spJs3US3WwvDzkGsXC"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("TRTLv23ymatPTWgN1jncG33hMdJxZBLrBcCWQBGGGC14CFMUCq1nvxiV8d5cW92mmavzw542bpyjYXd8"); - assertInvalidAddress("TRLuxauCnCH7XZrSZSZw7XEEbkgrnZcaE1MK8wLtTYkF3g1J7nciYiaZDsTNYm2oDLTAM2JPq4rrlhVN5cXWpTPYh8P5wKbXNdoh"); - assertInvalidAddress(""); - assertInvalidAddress("TRTLv3xxpAFfXKwF5ond4sWDX3AVgZngT88KpPCCJKcuRjGktgp5HHTK2yV7NTo8659u5jwMigLmHaoFKho0OhVmF8WP9pVZhBL9kC#RoUKWRwpsx1F"); - assertInvalidAddress("TRTLuwafXHTPzj1d2wc7c9X69r3qG1277ecnLnUaZ61M1YV5d3GYAs1Jbc2q4C4fWN$C4fWNLoDLDvADvpjNYdt3sdRB434UidKXimQQn"); - assertInvalidAddress("1jRo3rcp9fjdfjdSGpx"); - assertInvalidAddress("GDARp92UtmTWDjZatG8sduRockSteadyWasHere3atrHSXr9vJzjHq2TfPrjateDz9Wc8ZJKuDayqJ$%"); - assertInvalidAddress("F3xQ8Gv6xnvDhUrM57z71bfFvu9HeofXtXpZRLnrCN2s2cKvkQowrWjJTGz4676ymKvU4NzPY8Cadgsdhsdfhg4gfJwL2yhhkJ7"); - } -} \ No newline at end of file diff --git a/assets/src/test/java/bisq/asset/coins/UnitedCommunityCoinTest.java b/assets/src/test/java/bisq/asset/coins/UnitedCommunityCoinTest.java deleted file mode 100644 index 27945f3cc7..0000000000 --- a/assets/src/test/java/bisq/asset/coins/UnitedCommunityCoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class UnitedCommunityCoinTest extends AbstractAssetTest { - - public UnitedCommunityCoinTest() { - super(new UnitedCommunityCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("UX3DVuoiNR9Uwa22NLehu8yVKecjFKn4ii"); - assertValidAddress("URqRRRFY7D6drJCput5UjTRUQYEL8npUwk"); - assertValidAddress("Uha1WUkuYtW9Uapme2E46PBz2sBkM9qV9w"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("UX3DVuoiNR90wa22NLehu8yVKecjFKn4ii"); - assertInvalidAddress("URqRRRFY7D6drJCput5UjTRUQYaEL8npUwk"); - assertInvalidAddress("Uha1WUkuYtW9Uapme2E46PBz2$BkM9qV9w"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/UnobtaniumTest.java b/assets/src/test/java/bisq/asset/coins/UnobtaniumTest.java deleted file mode 100644 index 97716fd5b9..0000000000 --- a/assets/src/test/java/bisq/asset/coins/UnobtaniumTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -public class UnobtaniumTest extends AbstractAssetTest { - - public UnobtaniumTest() { - super(new Unobtanium()); - } - - @Override - public void testValidAddresses() { - assertValidAddress("uXN2S9Soj4dSL7fPAuQi9twdaFmtwYndVP"); - assertValidAddress("uZymbhuxhfvxzc5EDdqRWrrZKvabZibBu1"); - assertValidAddress("uKdudT6DwojHYsBE9JWM43hRV28Rmp1Zm1"); - } - - @Override - public void testInvalidAddresses() { - assertInvalidAddress("aHu897ivzmeFuLNB6956X6gyGeVNHUBRgD"); - assertInvalidAddress("a1HwTdCmQV3NspP2QqCGpehoFpi8NY4Zg3"); - assertInvalidAddress("aHu897ivzmeFuLNB6956X6gyGeVNHUBRgD"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/VARIUSTest.java b/assets/src/test/java/bisq/asset/coins/VARIUSTest.java deleted file mode 100644 index 897623988d..0000000000 --- a/assets/src/test/java/bisq/asset/coins/VARIUSTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import org.junit.Test; - -import bisq.asset.AbstractAssetTest; - -public class VARIUSTest extends AbstractAssetTest { - - public VARIUSTest() { - super(new VARIUS()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("VL85MGBCSfnSeiLxuQwXuvxHArzfr1574H"); - assertValidAddress("VBKxFQULC6bjzWdb2PhZyoRdePq8fs55fi"); - assertValidAddress("VXwmVvzX6KMqfkBJXRXu4VUbgzPhLKdBSq"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("xLfnSeiLxuQwXuvxHArzfr1574H"); - assertInvalidAddress("BBKzWdb2PhZyoRdePq8fs55fi"); - assertInvalidAddress("vXwmVvzX6KMqfkBJXRXu4VUbgzPhLKdBSq"); - } -} \ No newline at end of file diff --git a/assets/src/test/java/bisq/asset/coins/VeilTest.java b/assets/src/test/java/bisq/asset/coins/VeilTest.java deleted file mode 100644 index d17503716a..0000000000 --- a/assets/src/test/java/bisq/asset/coins/VeilTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import org.junit.Test; - -public class VeilTest extends AbstractAssetTest { - - public VeilTest() { - super(new Veil()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("VS2oF2pouKoLPJCjY8D7E1dStmUtitACu7"); - assertValidAddress("VV8VtpWTsYFBnhnvgQVnTvqoTx7XRRevte"); - assertValidAddress("VRZF4Am891FS224uuNirsrEugqMyg3VxjJ"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhemqq"); - assertInvalidAddress("3EktnHQD7RiAE6uzMj2ZifT9YgRrkSgzQX"); - assertInvalidAddress("DRbnCYbuMXdKU4y8dya9EnocL47gFjErWeg"); - assertInvalidAddress("DTPAqTryNRCE2FgsxzohTtJXfCBODnG6Rc"); - assertInvalidAddress("DTPAqTryNRCE2FgsxzohTtJXfCB0DnG6Rc"); - assertInvalidAddress("DTPAqTryNRCE2FgsxzohTtJXfCBIDnG6Rc"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/VertcoinTest.java b/assets/src/test/java/bisq/asset/coins/VertcoinTest.java deleted file mode 100644 index 7262f6d5d7..0000000000 --- a/assets/src/test/java/bisq/asset/coins/VertcoinTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class VertcoinTest extends AbstractAssetTest { - - public VertcoinTest() { - super(new Vertcoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("VmVwB5dxph84tbi5XqRUtfX1MfmP8WpWWL"); - assertValidAddress("Vt85c1QcQYE318zXqZUnjUB6fwjTrf1Xkb"); - assertValidAddress("33ny4vAPJHFu5Nic7uMHQrvCACYTKPFJ5p"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("VmVwB5dxph84tb15XqRUtfX1MfmP8WpWWW"); - assertInvalidAddress("Vt85555555555555c1QcQYE318zXqZUnjUB6fwjTrf1Xkb"); - assertInvalidAddress("33ny4vAPJHFu5Nic7uMHQrvCACYTKPFJ6r#"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/WORXTest.java b/assets/src/test/java/bisq/asset/coins/WORXTest.java deleted file mode 100644 index 3a1aa1955d..0000000000 --- a/assets/src/test/java/bisq/asset/coins/WORXTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class WORXTest extends AbstractAssetTest { - - public WORXTest() { - super(new WORX()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("WgeBjv4PkmNnsUZ6QqhhT3ynEaqr3xDWuS"); - assertValidAddress("WQDes3h9GBa72R9govQCic3f38m566Jydo"); - assertValidAddress("WeNnnz8KFgmipcLhpbXSM9HT37pSqqeVbk"); - assertValidAddress("WNzf7fZgc2frhBGqVvhVhYpSBMWd2WE6x5"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("WgeBjv4PksmNnsUZ6QqhhT3ynEaqr3xDWuS"); - assertInvalidAddress("W2QDes3h9GBa72R9govQCic3f38m566Jydo"); - assertInvalidAddress("WeNnnz8KFgmipcLhpbXSM9HT37pSqqeVbk3"); - assertInvalidAddress("WNzf7fZgc2frhBGqVvhVhYpSBMWd2WE6x54"); - } -} \ No newline at end of file diff --git a/assets/src/test/java/bisq/asset/coins/WebchainTest.java b/assets/src/test/java/bisq/asset/coins/WebchainTest.java deleted file mode 100644 index 382e0d0cae..0000000000 --- a/assets/src/test/java/bisq/asset/coins/WebchainTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class WebchainTest extends AbstractAssetTest { - - public WebchainTest() { - super(new Webchain()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x8d1ba0497c3e3db17143604ab7f5e93a3cbac68b"); - assertValidAddress("0x23c9c5ae8c854e9634a610af82924a5366a360a3"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("8d1ba0497c3e3db17143604ab7f5e93a3cbac68b"); - assertInvalidAddress("0x8d1ba0497c3e3db17143604ab7f5e93a3cbac68"); - assertInvalidAddress("0x8d1ba0497c3e3db17143604ab7f5e93a3cbac68k"); - assertInvalidAddress("098d1ba0497c3e3db17143604ab7f5e93a3cbac68b"); - assertInvalidAddress("098d1ba0497c3e3db17143604ab7f5e93a3cbac68b"); - } -} - diff --git a/assets/src/test/java/bisq/asset/coins/WrkzCoinTest.java b/assets/src/test/java/bisq/asset/coins/WrkzCoinTest.java deleted file mode 100644 index fe760f6188..0000000000 --- a/assets/src/test/java/bisq/asset/coins/WrkzCoinTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class WrkzCoinTest extends AbstractAssetTest { - - public WrkzCoinTest() { - super(new WrkzCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("WrkzjsomAAfH8kotfaTyVYfya7PNQt2oL4regF1VpTV9TSezdyxcQpRW2jGptwPP6zLgQUa7Lem1dBWfGM7LfJqs719UZhX9Hg"); - assertValidAddress("WrkzpRgV26G8p8FUfFzaYbd15Nmq3SsRSVbG8yPjvt4W4D5KBHTV2RHbzQVE1TAt1NV21Tp6xiFATJT8QXoxeEUQ8DPY1Zkjnf"); - assertValidAddress("WrkzmetNqgJG5SwtaVhyTxijdx6JGtUeHELTpwfgC9Ym1Ps4JdQtanXLK8Xk5TeMUTEbsmDJ8taXYiyYZpPHSg5X1wC8ij7fdG"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("WrkzQokcStLUSALE5Ra17v2n6ad65h8wL5vqABKkoWy7Xicz9znqPSgS2MRVkuYtRAaJiMFuyDCFF1oJgT7PHb8i9yM"); - assertInvalidAddress("WrkskixT63cYzLFmDoA5WN7RbihYBwbzJJmjR9zgjD3ZUotbFGBgv1RaUAu1fWWT4QeEEktQfZK9AFPh19t2U8uG49EH3WSVEn"); - assertInvalidAddress(""); - assertInvalidAddress("WrkzUAxg9TSdkh6tfh5pk84XgKeyNe8T4TvaSgk87kk6iCUEitkk2sk6wVtKJXk5BM3kwh2ftnkaVfBWfBPr8igZ2xkn#RoUxF"); - assertInvalidAddress("WrkzXTU4REbRijuLPpds2k4BhcBGgXFpeEaXKs49D7$PFuqBYpQw2tQbAApoQLAp2iWVsoxiPmcERXhHrhtCLnzL4ezB8kAbxH"); - assertInvalidAddress("cccd2bd37455350e7586cf9315c7f3acd3de56321aa356ff3391bd21f0bbf502"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/XDRTest.java b/assets/src/test/java/bisq/asset/coins/XDRTest.java deleted file mode 100644 index 438788c54a..0000000000 --- a/assets/src/test/java/bisq/asset/coins/XDRTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class XDRTest extends AbstractAssetTest { - - public XDRTest() { - super(new XDR()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("2WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQW"); - assertValidAddress("NTvSfK1Gr5Jg97UvJo2wvi7BTZo8KqJzgSL2FCGucF6nUH7yq"); - assertValidAddress("ztNdPsuyfDWt1ufCbDqaCDQH3FXvucXNZqVrdzsWvzDHPrkSh"); - assertValidAddress("jkvx3z98rJmuVKqMSktDpKTSBrsqJEtTBW1CBSWJEtchDGkDX"); - assertValidAddress("is2YXBxk91d4Lw4Pet7RoP8KAxCKFHUC6iQyaNgmac5ies6ko"); - assertValidAddress("2NNEr5YLniGxWajoeXiiAZPR68hJXncnhEmC4GWAaV5kwaLRcP"); - assertValidAddress("wGmjgRu8hgjgRsRV8k6h2puis1K9UQCTKWZEPa4yS8mrmJUpU"); - assertValidAddress("i8rc9oMunRtVbSxA4VBESxbYzHnfhP39aM5M1srtxVZ8oBiKD"); - assertValidAddress("vP4w8khXHFQ7cJ2BJNyPbJiV5kFfBHPVivHxKf5nyd8cEgB9U"); - assertValidAddress("QQQZZa46QJ3499RL8CatuqaUx4haKQGUuZ4ZE5SeL13Awkf6m"); - assertValidAddress("qqqfpHD3VbbyZXTHgCW2VX8jvoERcxanzQkCqVyHB8fRBszMn"); - assertValidAddress("BiSQkPqCCET4UovJASnnU1Hk5bnqBxBVi5bjA5wLZpN9HCA6A"); - assertValidAddress("bisqFm6Zbf6ULcpJqQ2ibn2adkL2E9iivQFTAP15Q18daQxnS"); - assertValidAddress("miLEgbhGv4ARoPG2kAhTCy8UGqBcFbsY6rr5tXq63nH8RyqcE"); - - - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("1WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQW"); - assertInvalidAddress("2WeY8JpRJgrvWQxbSPuyhsBMjtZMMN3cADEomPHh2bCkdZ7xQW"); - assertInvalidAddress("2WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQ1"); - assertInvalidAddress("2WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQ"); - assertInvalidAddress("WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQW"); - assertInvalidAddress("2WeY8JpRJgrvWQx"); - assertInvalidAddress("2WeY8JpRJgrvWQxbSPuyhsBMjtZMMN7cADEomPHh2bCkdZ7xQW1"); - assertInvalidAddress("milEgbhGv4ARoPG2kAhTCy8UGqBcFbsY6rr5tXq63nH8RyqcE"); - assertInvalidAddress("miLegbhGv4ARoPG2kAhTCy8UGqBcFbsY6rr5tXq63nH8RyqcE"); - assertInvalidAddress("1111111"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ZcashTest.java b/assets/src/test/java/bisq/asset/coins/ZcashTest.java deleted file mode 100644 index 32377209c7..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ZcashTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ZcashTest extends AbstractAssetTest { - - public ZcashTest() { - super(new Zcash()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("t1K6LGT7z2uNTLxag6eK6XwGNpdkHbncBaK"); - assertValidAddress("t1ZjdqCGEkqL9nZ8fk9R6KA7bqNvXaVLUpF"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - assertInvalidAddress("38NwrYsD1HxQW5zfLT0QcUUXGMPvQgzTSn"); - assertInvalidAddress("8tP9rh3SH6n9cSLmV22vnSNNw56LKGpLrB"); - assertInvalidAddress("8Zbvjr"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ZcoinTest.java b/assets/src/test/java/bisq/asset/coins/ZcoinTest.java deleted file mode 100644 index c01decc2eb..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ZcoinTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -public class ZcoinTest extends AbstractAssetTest { - - public ZcoinTest() { - super(new Zcoin()); - } - - @Override - public void testValidAddresses() { - assertValidAddress("aHu897ivzmeFuLNB6956X6gyGeVNHUBRgD"); - assertValidAddress("a1HwTdCmQV3NspP2QqCGpehoFpi8NY4Zg3"); - assertValidAddress("aHu897ivzmeFuLNB6956X6gyGeVNHUBRgD"); - } - - @Override - public void testInvalidAddresses() { - assertInvalidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQerY"); - assertInvalidAddress("N22FRU9f3fx7Hty641D5cg95kRK6S3sbf3"); - assertInvalidAddress("MxmFPEPzF19JFPU3VPrRXvUbPjMQXnQerY"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ZelCashTest.java b/assets/src/test/java/bisq/asset/coins/ZelCashTest.java deleted file mode 100644 index 2bbe04d1bf..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ZelCashTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ZelCashTest extends AbstractAssetTest { - - public ZelCashTest() { - super(new ZelCash()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("t1K6LGT7z2uNTLxag6eK6XwGNpdkHbncBaK"); - assertValidAddress("t1ZjdqCGEkqL9nZ8fk9R6KA7bqNvXaVLUpF"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - assertInvalidAddress("38NwrYsD1HxQW5zfLT0QcUUXGMPvQgzTSn"); - assertInvalidAddress("8tP9rh3SH6n9cSLmV22vnSNNw56LKGpLrB"); - assertInvalidAddress("8Zbvjr"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ZeroClassicTest.java b/assets/src/test/java/bisq/asset/coins/ZeroClassicTest.java deleted file mode 100644 index bfc18f0131..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ZeroClassicTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ZeroClassicTest extends AbstractAssetTest { - - public ZeroClassicTest() { - super(new ZeroClassic()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("t1PLfc14vCYaRz6Nv1zxpKXhn5W5h9vUdUE"); - assertValidAddress("t1MjXvaqL5X2CquP8hLmvyxCiJqCBzuMofS"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - assertInvalidAddress("38NwrYsD1HxQW5zfLT0QcUUXGMPvQgzTSn"); - assertInvalidAddress("8tP9rh3SH6n9cSLmV22vnSNNw56LKGpLrB"); - assertInvalidAddress("8Zbvjr"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/ZeroTest.java b/assets/src/test/java/bisq/asset/coins/ZeroTest.java deleted file mode 100644 index bfb9d11819..0000000000 --- a/assets/src/test/java/bisq/asset/coins/ZeroTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class ZeroTest extends AbstractAssetTest { - - public ZeroTest() { - super(new Zero()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("t1cZTNaKS6juH6tGEhCUZmZhtbYGeYeuTrK"); - assertValidAddress("t1ZBPYJwK2UPbshwcYWRiCq7vw8VPDYumWu"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem"); - assertInvalidAddress("38NwrYsD1HxQW5zfLT0QcUUXGMPvQgzTSn"); - assertInvalidAddress("8tP9rh3SH6n9cSLmV22vnSNNw56LKGpLrB"); - assertInvalidAddress("8Zbvjr"); - } -} diff --git a/assets/src/test/java/bisq/asset/coins/uPlexaTest.java b/assets/src/test/java/bisq/asset/coins/uPlexaTest.java deleted file mode 100644 index 265aac93ee..0000000000 --- a/assets/src/test/java/bisq/asset/coins/uPlexaTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.coins; - -import bisq.asset.AbstractAssetTest; -import org.junit.Test; - -public class uPlexaTest extends AbstractAssetTest { - - public uPlexaTest() { - super(new uPlexa()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("UPX1dz81hmfWc7AUhn16JATXJJgZeQZ4zLKA4tnHJHcdS5zoSaKQUoaGqDUQnTXecPL4mjJF1vkwRF3EEq5UJdSw8A84sXDjFP"); - assertValidAddress("UPi1S1uqRRNSgC26PjasZP8FwTBRwnAEmBnx5mAYsbGqRvsU46aficYEA3FAT621EuPeChyKQumS7j6jpF74zW9tLJMve8kUJLP5zUgR5ts8W"); - assertValidAddress("UmV7QTQs5Q47wMPggtuQSMTvuqNie1MRmbD4AG1xJXykZmxBG4P18p4CHqkV5sKDRXauXWbs76835PZoemQmPGJC1Dv2zdF43"); - assertValidAddress("UmWh1MthnAiRP4GuN3DEQxPt6kgeAZfJLUuX1krtufAj2XvUJxDYnuYTAQzEp25V2W8BAJQkfXj8yFNUqQphxddN35nRLnZeE"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress(""); - assertInvalidAddress("UPXLsinT9duNEtHGqAUicJKD2cmGiB9gB6sqHqWvV6suB4TtPSR8ynyh2vVVvNyDE6g7WEaBxCG8GD1KM2ffWPx7FLXgeJbNYrp"); - assertInvalidAddress("UPXsjCoYrxag2pPoDDTB4cRriKCNn8WjhY99kqjYuNdTfE4MU2Yo1CPdpyK7PXpxDcAd5YDNerE6WCc4cVQvEbxLaHk4UcvbRp2"); - assertInvalidAddress("UPXsinT9duNEtHGqAUicJKD2cmGiB9gB6sqHqWvV6suBx4TtPSR8ynyh2vVVvNyDE6g7W!!!xCG8GD1KM2ffWP7FLXgeJbNYrp2"); - assertInvalidAddress("UmVSrJ7ES1IIIIIGHFm69SU6dTTKt8Vi6V7BoC3wsLccd1Y2CXgQkW7vHSe5uArGU9TjUC5RtvzhCycVDnPPbThTmZA8VqDzTP"); - assertInvalidAddress("UmWrJ7ES1wGsikGHFm69SU6dTTKt8Vi6V7BoC3wsLcc1xY2CXgQkW7vHSe5uArGU9TjUC5RtvzhCycVDnPPbThTmZA8VqDzTPe"); - assertInvalidAddress("UPi12rJ7ES1wGsikGHFm69SU6dTTKt8Vi6V7BoC36sqHqWvwsLcc1Y2CXgQkW7vHSe5uArGU9TjUC5RtvzhCycVDnPPbThTmZA8VqDzTPeM1"); - assertInvalidAddress("UPisBB18NdcSywKDshsywbjc5uCi8ybSUtWgvM3LfzaYe93vd6DEu3PcSywKDshsywbjc5uCi8ybSUtWgvM3LfzaYe93d96NjjvBCYU2SZD2of"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/AugmintEuroTest.java b/assets/src/test/java/bisq/asset/tokens/AugmintEuroTest.java deleted file mode 100644 index 182df37537..0000000000 --- a/assets/src/test/java/bisq/asset/tokens/AugmintEuroTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class AugmintEuroTest extends AbstractAssetTest { - - public AugmintEuroTest() { - super(new AugmintEuro()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x0d81d9e21bd7c5bb095535624dcb0759e64b3899"); - assertValidAddress("0d81d9e21bd7c5bb095535624dcb0759e64b3899"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a216"); - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - assertInvalidAddress("65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/DaiStablecoinTest.java b/assets/src/test/java/bisq/asset/tokens/DaiStablecoinTest.java deleted file mode 100644 index f1f4be4411..0000000000 --- a/assets/src/test/java/bisq/asset/tokens/DaiStablecoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class DaiStablecoinTest extends AbstractAssetTest { - - public DaiStablecoinTest() { - super(new DaiStablecoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x2a65Aca4D5fC5B5C859090a6c34d164135398226"); - assertValidAddress("2a65Aca4D5fC5B5C859090a6c34d164135398226"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/EtherStoneTest.java b/assets/src/test/java/bisq/asset/tokens/EtherStoneTest.java deleted file mode 100644 index 99267cb032..0000000000 --- a/assets/src/test/java/bisq/asset/tokens/EtherStoneTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class EtherStoneTest extends AbstractAssetTest { - - public EtherStoneTest () { - super(new EtherStone()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0x0d81d9e21bd7c5bb095535624dcb0759e64b3899"); - assertValidAddress("0d81d9e21bd7c5bb095535624dcb0759e64b3899"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a216"); - assertInvalidAddress("0x65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - assertInvalidAddress("65767ec6d4d3d18a200842352485cdc37cbf3a2g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/TrueUSDTest.java b/assets/src/test/java/bisq/asset/tokens/TrueUSDTest.java deleted file mode 100644 index a88a3e87e9..0000000000 --- a/assets/src/test/java/bisq/asset/tokens/TrueUSDTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class TrueUSDTest extends AbstractAssetTest { - - public TrueUSDTest() { - super(new TrueUSD()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0xa23579c2f7b462e5fb2e92f8cf02971fe4de4f82"); - assertValidAddress("0xdb59b63738e27e6d689c9d72c92c7a12f22161bb"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/USDCoinTest.java b/assets/src/test/java/bisq/asset/tokens/USDCoinTest.java deleted file mode 100644 index 64d9316f8d..0000000000 --- a/assets/src/test/java/bisq/asset/tokens/USDCoinTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class USDCoinTest extends AbstractAssetTest { - - public USDCoinTest() { - super(new USDCoin()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0xb86bb5fc804768db34f1a37da8b719e19af9dffd"); - assertValidAddress("0xea82afd93ebfc4f6564f3e5bd823cdef710f75dd"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d1641353982266"); - assertInvalidAddress("0x2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - assertInvalidAddress("2a65Aca4D5fC5B5C859090a6c34d16413539822g"); - } -} diff --git a/assets/src/test/java/bisq/asset/tokens/VectorspaceAITest.java b/assets/src/test/java/bisq/asset/tokens/VectorspaceAITest.java deleted file mode 100644 index 780e068879..0000000000 --- a/assets/src/test/java/bisq/asset/tokens/VectorspaceAITest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of Haveno. - * - * Haveno 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. - * - * Haveno 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 Haveno. If not, see . - */ - -package bisq.asset.tokens; - -import bisq.asset.AbstractAssetTest; - -import org.junit.Test; - -public class VectorspaceAITest extends AbstractAssetTest { - - public VectorspaceAITest () { - super(new VectorspaceAI()); - } - - @Test - public void testValidAddresses() { - assertValidAddress("0xdd88dbdde30b684798881d4f3d9a3752d6c1dd71"); - assertValidAddress("dd88dbdde30b684798881d4f3d9a3752d6c1dd71"); - } - - @Test - public void testInvalidAddresses() { - assertInvalidAddress("0x2ecf455d8a2e6baf8d1039204c4f97efeddf27a82"); - assertInvalidAddress("0xh8wheG1jdka0c8b8263758chanbmshj2937zgab"); - assertInvalidAddress("h8wheG1jdka0c8b8263758chanbmshj2937zgab"); - } -}