diff --git a/archive.tar.sig b/archive.tar.sig new file mode 100644 index 00000000000..dfa4a7277e0 Binary files /dev/null and b/archive.tar.sig differ diff --git a/assets/src/main/java/bisq/asset/coins/Aevo.java b/assets/src/main/java/bisq/asset/coins/Aevo.java new file mode 100644 index 00000000000..e65a92a4d12 --- /dev/null +++ b/assets/src/main/java/bisq/asset/coins/Aevo.java @@ -0,0 +1,36 @@ +/* + * This file is part of Bisq. + * + * Bisq is free software: you can redistribute it and/or modify it + * under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * Bisq is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public + * License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with Bisq. If not, see . + */ + +package bisq.asset.coins; + +import bisq.asset.Base58BitcoinAddressValidator; +import bisq.asset.Coin; +import bisq.asset.NetworkParametersAdapter; + +public class Aevo extends Coin { + public Aevo() { + super("Aevo", "AEVO", new Base58BitcoinAddressValidator(new AevoMainNetParams())); + } + + public static class AevoMainNetParams extends NetworkParametersAdapter { + public AevoMainNetParams() { + this.addressHeader = 23; + this.p2shHeader = 85; + this.acceptableAddressCodes = new int[]{this.addressHeader, this.p2shHeader}; + } + } +} 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 c50ae587255..1587481ab50 100644 --- a/assets/src/main/resources/META-INF/services/bisq.asset.Asset +++ b/assets/src/main/resources/META-INF/services/bisq.asset.Asset @@ -5,6 +5,7 @@ bisq.asset.coins.Actinium bisq.asset.coins.Adeptio bisq.asset.coins.Aeon +bisq.asset.coins.Aevo bisq.asset.coins.Amitycoin bisq.asset.coins.Animecoin bisq.asset.coins.Arqma diff --git a/assets/src/test/java/bisq/asset/coins/AevoTest.java b/assets/src/test/java/bisq/asset/coins/AevoTest.java new file mode 100644 index 00000000000..ae65912693a --- /dev/null +++ b/assets/src/test/java/bisq/asset/coins/AevoTest.java @@ -0,0 +1,43 @@ +/* + * This file is part of Bisq. + * + * Bisq is free software: you can redistribute it and/or modify it + * under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * Bisq is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public + * License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with Bisq. If not, see . + */ + +package bisq.asset.coins; + +import bisq.asset.AbstractAssetTest; + +import org.junit.Test; + +public class AevoTest extends AbstractAssetTest { + + public AevoTest() { + super(new Aevo()); + } + + @Test + public void testValidAddresses() { + assertValidAddress("AaPWRqMdhPSj5DAjc17wSZDGYAppMnJmPh"); + assertValidAddress("AexQmSXnaF6ufnwEyHdkixUbQfeYP9vZuQ"); + assertValidAddress("AT1G4p6Lm2TqFh4GRQSX7HSDL1W6zonvcj"); + } + + @Test + public void testInvalidAddresses() { + assertInvalidAddress("AevODDV8aekEXFP7BWLmTNpSQfk7uVk1jCF"); + assertInvalidAddress("AADDDV8aekEXFP7BWLmTNpSQfk7uVk1jCFd"); + assertInvalidAddress("AecDDV8aekEXFP7BWLmTNpSQfk7uVk1jCF#"); + } +}