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 b37f58f..0658ae7 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1638,3 +1638,48 @@ bitcoinjs.bitcoin.networks.wagerr = { | |||
1638 | scriptHash: 0x3f, | 1638 | scriptHash: 0x3f, |
1639 | wif: 0xc7 | 1639 | wif: 0xc7 |
1640 | }; | 1640 | }; |
1641 | |||
1642 | bitcoinjs.bitcoin.networks.bitcoinsv = { | ||
1643 | messagePrefix: 'unused', | ||
1644 | bip32: { | ||
1645 | public: 0x0488b21e, | ||
1646 | private: 0x0488ade4 | ||
1647 | }, | ||
1648 | pubKeyHash: 0x00, | ||
1649 | scriptHash: 0x05, | ||
1650 | wif: 0x80 | ||
1651 | }; | ||
1652 | |||
1653 | bitcoinjs.bitcoin.networks.monkeyproject = { | ||
1654 | messagePrefix: 'Monkey Signed Message:\n', | ||
1655 | bip32: { | ||
1656 | public: 0x0488b21e, | ||
1657 | private: 0x0488dde4 | ||
1658 | }, | ||
1659 | pubKeyHash: 0x33, | ||
1660 | scriptHash: 0x1c, | ||
1661 | wif: 0x37 | ||
1662 | }; | ||
1663 | |||
1664 | bitcoinjs.bitcoin.networks.rapids = { | ||
1665 | messagePrefix: 'DarkNet Signed Message:\n', | ||
1666 | bip32: { | ||
1667 | public: 0x0488b21e, | ||
1668 | private: 0x0488ade4 | ||
1669 | }, | ||
1670 | pubKeyHash: 0x3d, | ||
1671 | scriptHash: 0x06, | ||
1672 | wif: 0x2e | ||
1673 | }; | ||
1674 | |||
1675 | bitcoinjs.bitcoin.networks.aryacoin = { | ||
1676 | messagePrefix: '\x18Aryacoin Signed Message:\n', | ||
1677 | bech32: 'arya', | ||
1678 | bip32: { | ||
1679 | public: 0x0488B21E, | ||
1680 | private: 0x0488ADE4, | ||
1681 | }, | ||
1682 | pubKeyHash: 0x17, | ||
1683 | scriptHash: 0x6f, | ||
1684 | wif: 0x97 | ||
1685 | }; | ||
diff --git a/src/js/index.js b/src/js/index.js index 4fac6f1..b3450d3 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; |
@@ -2338,6 +2352,13 @@ | |||
2338 | }, | 2352 | }, |
2339 | }, | 2353 | }, |
2340 | { | 2354 | { |
2355 | name: "MONK - Monkey Project", | ||
2356 | onSelect: function() { | ||
2357 | network = bitcoinjs.bitcoin.networks.monkeyproject, | ||
2358 | setHdCoin(214); | ||
2359 | }, | ||
2360 | }, | ||
2361 | { | ||
2341 | name: "MUSIC - Musicoin", | 2362 | name: "MUSIC - Musicoin", |
2342 | segwitAvailable: false, | 2363 | segwitAvailable: false, |
2343 | onSelect: function() { | 2364 | onSelect: function() { |
@@ -2544,6 +2565,13 @@ | |||
2544 | }, | 2565 | }, |
2545 | }, | 2566 | }, |
2546 | { | 2567 | { |
2568 | name: "RPD - Rapids", | ||
2569 | onSelect: function() { | ||
2570 | network = bitcoinjs.bitcoin.networks.rapids; | ||
2571 | setHdCoin(320); | ||
2572 | }, | ||
2573 | }, | ||
2574 | { | ||
2547 | name: "RVN - Ravencoin", | 2575 | name: "RVN - Ravencoin", |
2548 | onSelect: function() { | 2576 | onSelect: function() { |
2549 | network = bitcoinjs.bitcoin.networks.ravencoin; | 2577 | network = bitcoinjs.bitcoin.networks.ravencoin; |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 6f9fd4f..8b77b4a 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", |