List Radium (RADS)

Official Project URL: https://radiumcore.org/
Official Block Explorer URL: https://chainz.cryptoid.info/rads/
Update Params

Updated Base58 Params
This commit is contained in:
John P 2018-10-02 17:40:10 -04:00
parent 6873d03216
commit 5dafde8935
3 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,40 @@
/*
* 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 <http://www.gnu.org/licenses/>.
*/
package bisq.asset.coins;
import bisq.asset.Base58BitcoinAddressValidator;
import bisq.asset.Coin;
import bisq.asset.NetworkParametersAdapter;
public class Radium extends Coin {
public Radium() {
super("Radium", "RADS", new Base58BitcoinAddressValidator(new RadiumParams()));
}
public static class RadiumParams extends NetworkParametersAdapter {
public RadiumParams() {
super();
addressHeader = 76;
p2shHeader = 58;
acceptableAddressCodes = new int[]{addressHeader, p2shHeader};
}
}
}

View file

@ -94,6 +94,7 @@ bisq.asset.coins.PIVX
bisq.asset.coins.PostCoin
bisq.asset.coins.Pranacoin
bisq.asset.coins.PRiVCY
bisq.asset.coins.Radium
bisq.asset.coins.ReddCoin
bisq.asset.coins.Ringo
bisq.asset.coins.Roicoin

View file

@ -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 <http://www.gnu.org/licenses/>.
*/
package bisq.asset.coins;
import bisq.asset.AbstractAssetTest;
import org.junit.Test;
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");
}
}