From 951351639c783a659a1c5862bf78f33ba4dfdd6d Mon Sep 17 00:00:00 2001 From: akrmn Date: Sun, 9 Sep 2018 23:56:03 +0200 Subject: [PATCH] add Bitmark --- .../main/java/bisq/asset/coins/Bitmark.java | 28 +++++++++++++++++++ .../META-INF/services/bisq.asset.Asset | 1 + .../java/bisq/asset/coins/BitmarkTest.java | 27 ++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 assets/src/main/java/bisq/asset/coins/Bitmark.java create mode 100644 assets/src/test/java/bisq/asset/coins/BitmarkTest.java diff --git a/assets/src/main/java/bisq/asset/coins/Bitmark.java b/assets/src/main/java/bisq/asset/coins/Bitmark.java new file mode 100644 index 00000000000..03af875f3b0 --- /dev/null +++ b/assets/src/main/java/bisq/asset/coins/Bitmark.java @@ -0,0 +1,28 @@ +/* + * 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.Coin; +import bisq.asset.DefaultAddressValidator; + +public class Bitmark extends Coin { + + public Bitmark() { + super("Bitmark", "BTM", new DefaultAddressValidator()); + } +} 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 6474d489c8e..d54527fc031 100644 --- a/assets/src/main/resources/META-INF/services/bisq.asset.Asset +++ b/assets/src/main/resources/META-INF/services/bisq.asset.Asset @@ -17,6 +17,7 @@ bisq.asset.coins.Bitcoin$Regtest bisq.asset.coins.Bitcoin$Testnet bisq.asset.coins.Bitcore bisq.asset.coins.BitDaric +bisq.asset.coins.Bitmark bisq.asset.coins.BitZeny bisq.asset.coins.BSQ$Mainnet bisq.asset.coins.BSQ$Regtest diff --git a/assets/src/test/java/bisq/asset/coins/BitmarkTest.java b/assets/src/test/java/bisq/asset/coins/BitmarkTest.java new file mode 100644 index 00000000000..480974aa2d3 --- /dev/null +++ b/assets/src/test/java/bisq/asset/coins/BitmarkTest.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.coins; + +import bisq.asset.AbstractAssetWithDefaultValidatorTest; + +public class BitmarkTest extends AbstractAssetWithDefaultValidatorTest { + + public BitmarkTest() { + super(new Bitmark()); + } +}