diff options
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 45 | ||||
-rw-r--r-- | src/js/index.js | 28 | ||||
-rw-r--r-- | tests/spec/tests.js | 29 |
3 files changed, 102 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 1a28628..ac9f315 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1649,3 +1649,48 @@ bitcoinjs.bitcoin.networks.wagerr = { | |||
1649 | scriptHash: 0x3f, | 1649 | scriptHash: 0x3f, |
1650 | wif: 0xc7 | 1650 | wif: 0xc7 |
1651 | }; | 1651 | }; |
1652 | |||
1653 | bitcoinjs.bitcoin.networks.bitcoinsv = { | ||
1654 | messagePrefix: 'unused', | ||
1655 | bip32: { | ||
1656 | public: 0x0488b21e, | ||
1657 | private: 0x0488ade4 | ||
1658 | }, | ||
1659 | pubKeyHash: 0x00, | ||
1660 | scriptHash: 0x05, | ||
1661 | wif: 0x80 | ||
1662 | }; | ||
1663 | |||
1664 | bitcoinjs.bitcoin.networks.monkeyproject = { | ||
1665 | messagePrefix: 'Monkey Signed Message:\n', | ||
1666 | bip32: { | ||
1667 | public: 0x0488b21e, | ||
1668 | private: 0x0488dde4 | ||
1669 | }, | ||
1670 | pubKeyHash: 0x33, | ||
1671 | scriptHash: 0x1c, | ||
1672 | wif: 0x37 | ||
1673 | }; | ||
1674 | |||
1675 | bitcoinjs.bitcoin.networks.rapids = { | ||
1676 | messagePrefix: 'DarkNet Signed Message:\n', | ||
1677 | bip32: { | ||
1678 | public: 0x0488b21e, | ||
1679 | private: 0x0488ade4 | ||
1680 | }, | ||
1681 | pubKeyHash: 0x3d, | ||
1682 | scriptHash: 0x06, | ||
1683 | wif: 0x2e | ||
1684 | }; | ||
1685 | |||
1686 | bitcoinjs.bitcoin.networks.aryacoin = { | ||
1687 | messagePrefix: '\x18Aryacoin Signed Message:\n', | ||
1688 | bech32: 'arya', | ||
1689 | bip32: { | ||
1690 | public: 0x0488B21E, | ||
1691 | private: 0x0488ADE4, | ||
1692 | }, | ||
1693 | pubKeyHash: 0x17, | ||
1694 | scriptHash: 0x6f, | ||
1695 | wif: 0x97 | ||
1696 | }; | ||
diff --git a/src/js/index.js b/src/js/index.js index deb88d4..fff1e40 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1697,6 +1697,13 @@ | |||
1697 | }, | 1697 | }, |
1698 | }, | 1698 | }, |
1699 | { | 1699 | { |
1700 | name: "ARYA - Aryacoin", | ||
1701 | onSelect: function() { | ||
1702 | network = bitcoinjs.bitcoin.networks.aryacoin; | ||
1703 | setHdCoin(357); | ||
1704 | }, | ||
1705 | }, | ||
1706 | { | ||
1700 | name: "AUR - Auroracoin", | 1707 | name: "AUR - Auroracoin", |
1701 | onSelect: function() { | 1708 | onSelect: function() { |
1702 | network = bitcoinjs.bitcoin.networks.auroracoin; | 1709 | network = bitcoinjs.bitcoin.networks.auroracoin; |
@@ -1830,6 +1837,13 @@ | |||
1830 | }, | 1837 | }, |
1831 | }, | 1838 | }, |
1832 | { | 1839 | { |
1840 | name: "BSV - BitcoinSV", | ||
1841 | onSelect: function() { | ||
1842 | network = bitcoinjs.bitcoin.networks.bitcoinsv; | ||
1843 | setHdCoin(236); | ||
1844 | }, | ||
1845 | }, | ||
1846 | { | ||
1833 | name: "BTCZ - Bitcoinz", | 1847 | name: "BTCZ - Bitcoinz", |
1834 | onSelect: function() { | 1848 | onSelect: function() { |
1835 | network = bitcoinjs.bitcoin.networks.bitcoinz; | 1849 | network = bitcoinjs.bitcoin.networks.bitcoinz; |
@@ -2345,6 +2359,13 @@ | |||
2345 | }, | 2359 | }, |
2346 | }, | 2360 | }, |
2347 | { | 2361 | { |
2362 | name: "MONK - Monkey Project", | ||
2363 | onSelect: function() { | ||
2364 | network = bitcoinjs.bitcoin.networks.monkeyproject, | ||
2365 | setHdCoin(214); | ||
2366 | }, | ||
2367 | }, | ||
2368 | { | ||
2348 | name: "MUSIC - Musicoin", | 2369 | name: "MUSIC - Musicoin", |
2349 | segwitAvailable: false, | 2370 | segwitAvailable: false, |
2350 | onSelect: function() { | 2371 | onSelect: function() { |
@@ -2551,6 +2572,13 @@ | |||
2551 | }, | 2572 | }, |
2552 | }, | 2573 | }, |
2553 | { | 2574 | { |
2575 | name: "RPD - Rapids", | ||
2576 | onSelect: function() { | ||
2577 | network = bitcoinjs.bitcoin.networks.rapids; | ||
2578 | setHdCoin(320); | ||
2579 | }, | ||
2580 | }, | ||
2581 | { | ||
2554 | name: "RVN - Ravencoin", | 2582 | name: "RVN - Ravencoin", |
2555 | onSelect: function() { | 2583 | onSelect: function() { |
2556 | network = bitcoinjs.bitcoin.networks.ravencoin; | 2584 | network = bitcoinjs.bitcoin.networks.ravencoin; |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 76f5297..0901311 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -732,6 +732,13 @@ it('Allows selection of Asiacoin', function(done) { | |||
732 | }; | 732 | }; |
733 | testNetwork(done, params); | 733 | testNetwork(done, params); |
734 | }); | 734 | }); |
735 | it('Allows selection of Aryacoin', function(done) { | ||
736 | var params = { | ||
737 | selectText: "ARYA - Aryacoin", | ||
738 | firstAddress: "Abr6gX25KaU9BpwD34UfsL3A4n89NvYYSf", | ||
739 | }; | ||
740 | testNetwork(done, params); | ||
741 | }); | ||
735 | it('Allows selection of Auroracoin', function(done) { | 742 | it('Allows selection of Auroracoin', function(done) { |
736 | var params = { | 743 | var params = { |
737 | selectText: "AUR - Auroracoin", | 744 | selectText: "AUR - Auroracoin", |
@@ -774,6 +781,13 @@ it('Allows selection of Bitcoin Private', function(done) { | |||
774 | }; | 781 | }; |
775 | testNetwork(done, params); | 782 | testNetwork(done, params); |
776 | }); | 783 | }); |
784 | it('Allows selection of Bitcoin SV', function(done) { | ||
785 | var params = { | ||
786 | selectText: "BSV - BitcoinSV", | ||
787 | firstAddress: "1N4mgtE5yxifch9jWs7Sds6oVqxdy2t576", | ||
788 | }; | ||
789 | testNetwork(done, params); | ||
790 | }); | ||
777 | it('Allows selection of Bitcoinz', function(done) { | 791 | it('Allows selection of Bitcoinz', function(done) { |
778 | var params = { | 792 | var params = { |
779 | selectText: "BTCZ - Bitcoinz", | 793 | selectText: "BTCZ - Bitcoinz", |
@@ -1180,6 +1194,13 @@ it('Allows selection of Putincoin', function(done) { | |||
1180 | }; | 1194 | }; |
1181 | testNetwork(done, params); | 1195 | testNetwork(done, params); |
1182 | }); | 1196 | }); |
1197 | it('Allows selection of Rapids', function(done) { | ||
1198 | var params = { | ||
1199 | selectText: "RPD - Rapids", | ||
1200 | firstAddress: "Ri8XxUdZaXS5LqxmFJcFEjFinkaMbmhSUp", | ||
1201 | }; | ||
1202 | testNetwork(done, params); | ||
1203 | }); | ||
1183 | it('Allows selection of Ravencoin', function(done) { | 1204 | it('Allows selection of Ravencoin', function(done) { |
1184 | var params = { | 1205 | var params = { |
1185 | selectText: "RVN - Ravencoin", | 1206 | selectText: "RVN - Ravencoin", |
@@ -1411,6 +1432,14 @@ it('Allows selection of MIX', function(done) { | |||
1411 | }; | 1432 | }; |
1412 | testNetwork(done, params); | 1433 | testNetwork(done, params); |
1413 | }); | 1434 | }); |
1435 | it('Allows selection of Monkey Project', function(done) { | ||
1436 | var params = { | ||
1437 | selectText: "MONK - Monkey Project", | ||
1438 | firstAddress: "MnLrcnnUzKnf7TzufjRe5DLZqQJz18oYyu", | ||
1439 | }; | ||
1440 | testNetwork(done, params); | ||
1441 | }); | ||
1442 | |||
1414 | it('Allows selection of Musicoin', function(done) { | 1443 | it('Allows selection of Musicoin', function(done) { |
1415 | var params = { | 1444 | var params = { |
1416 | selectText: "MUSIC - Musicoin", | 1445 | selectText: "MUSIC - Musicoin", |