From 9030d72088074b8d2598e2e53968e85ce112a684 Mon Sep 17 00:00:00 2001 From: Vectorspace AI Date: Tue, 29 Jan 2019 22:51:04 -0800 Subject: [PATCH] List VectorspaceAI (VXV) --- .../java/bisq/asset/tokens/VectorspaceAI.java | 27 ++++++++++++ .../META-INF/services/bisq.asset.Asset | 1 + .../bisq/asset/tokens/VectorspaceAITest.java | 42 +++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 assets/src/main/java/bisq/asset/tokens/VectorspaceAI.java create mode 100644 assets/src/test/java/bisq/asset/tokens/VectorspaceAITest.java diff --git a/assets/src/main/java/bisq/asset/tokens/VectorspaceAI.java b/assets/src/main/java/bisq/asset/tokens/VectorspaceAI.java new file mode 100644 index 0000000000..c080f848c6 --- /dev/null +++ b/assets/src/main/java/bisq/asset/tokens/VectorspaceAI.java @@ -0,0 +1,27 @@ +/* + * This file is part of Bisq. + * + * Bisq is free software: you can redistribute it and/or modify it + * under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * Bisq is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public + * License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with Bisq. If not, see . + */ + +package bisq.asset.tokens; + +import bisq.asset.Erc20Token; + +public class VectorspaceAI extends Erc20Token { + + public VectorspaceAI() { + super("VectorspaceAI", "VXV"); + } +} 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 aacd6ed911..ebb14ba7aa 100644 --- a/assets/src/main/resources/META-INF/services/bisq.asset.Asset +++ b/assets/src/main/resources/META-INF/services/bisq.asset.Asset @@ -72,3 +72,4 @@ bisq.asset.coins.ZelCash bisq.asset.coins.Zero bisq.asset.coins.ZeroOneCoin bisq.asset.tokens.EtherStone +bisq.asset.tokens.VectorspaceAI \ No newline at end of file diff --git a/assets/src/test/java/bisq/asset/tokens/VectorspaceAITest.java b/assets/src/test/java/bisq/asset/tokens/VectorspaceAITest.java new file mode 100644 index 0000000000..4e4e5e4cc4 --- /dev/null +++ b/assets/src/test/java/bisq/asset/tokens/VectorspaceAITest.java @@ -0,0 +1,42 @@ +/* + * This file is part of Bisq. + * + * Bisq is free software: you can redistribute it and/or modify it + * under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * Bisq is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public + * License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with Bisq. If not, see . + */ + +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"); + } +}