From f46ebac05a6eb0be1b00df547813061f56dc51b2 Mon Sep 17 00:00:00 2001 From: GoDigit <41197891+godigitio@users.noreply.github.com> Date: Wed, 14 Nov 2018 21:33:47 +0800 Subject: [PATCH 1/3] List GoDigit (GIT) --- .../main/java/bisq/asset/tokens/GoDigit.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 assets/src/main/java/bisq/asset/tokens/GoDigit.java diff --git a/assets/src/main/java/bisq/asset/tokens/GoDigit.java b/assets/src/main/java/bisq/asset/tokens/GoDigit.java new file mode 100644 index 00000000000..a637255dc84 --- /dev/null +++ b/assets/src/main/java/bisq/asset/tokens/GoDigit.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 GoDigit extends Erc20Token { + + public GoDigit() { + super("GoDigit", "GIT"); + } +} From 4e09f5f96ef88af95e4abae5d4eae311f725e9d9 Mon Sep 17 00:00:00 2001 From: GoDigit <41197891+godigitio@users.noreply.github.com> Date: Wed, 14 Nov 2018 21:38:38 +0800 Subject: [PATCH 2/3] List GoDigit (GIT) --- assets/src/main/resources/META-INF/services/bisq.asset.Asset | 1 + 1 file changed, 1 insertion(+) 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 95a18eaa688..66205ccd289 100644 --- a/assets/src/main/resources/META-INF/services/bisq.asset.Asset +++ b/assets/src/main/resources/META-INF/services/bisq.asset.Asset @@ -76,6 +76,7 @@ bisq.asset.coins.ZenCash bisq.asset.coins.Zero bisq.asset.coins.ZeroOneCoin bisq.asset.tokens.EtherStone +bisq.asset.tokens.GoDigit bisq.asset.tokens.GreenBlockCoin bisq.asset.tokens.LikeCoin bisq.asset.tokens.Pix From dfd4e7b61969b8b8ec944d23add77e2335a546b9 Mon Sep 17 00:00:00 2001 From: GoDigit <41197891+godigitio@users.noreply.github.com> Date: Sun, 18 Nov 2018 00:53:20 +0800 Subject: [PATCH 3/3] List GoDigit (GIT) --- .../java/bisq/asset/tokens/GoDigitTest.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 assets/src/test/java/bisq/asset/tokens/GoDigitTest.java diff --git a/assets/src/test/java/bisq/asset/tokens/GoDigitTest.java b/assets/src/test/java/bisq/asset/tokens/GoDigitTest.java new file mode 100644 index 00000000000..358a862c5fa --- /dev/null +++ b/assets/src/test/java/bisq/asset/tokens/GoDigitTest.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 GoDigitTest extends AbstractAssetTest { + + public GoDigitTest() { + super(new GoDigit()); + } + + @Test + public void testValidAddresses() { + assertValidAddress("0x1d0582fa759e4b9beab4f6f82cc539ac62c49250"); + assertValidAddress("1d0582fa759e4b9beab4f6f82cc539ac62c49250"); + } + + @Test + public void testInvalidAddresses() { + assertInvalidAddress("0x1d0582fa759e4b9beab4f6f82cc539ac62c492500"); + assertInvalidAddress("0x1d0582fa759e4b9beab4f6f82cc539ac62c4925g"); + assertInvalidAddress("1d0582fa759e4b9beab4f6f82cc539ac62c4925g"); + } +}