diff options
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 12 | ||||
-rw-r--r-- | src/js/index.js | 7 | ||||
-rw-r--r-- | tests/spec/tests.js | 7 |
3 files changed, 26 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 21a535a..b37f58f 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1616,6 +1616,7 @@ bitcoinjs.bitcoin.networks.deeponion = { | |||
1616 | wif: 0x9F, | 1616 | wif: 0x9F, |
1617 | }; | 1617 | }; |
1618 | 1618 | ||
1619 | |||
1619 | bitcoinjs.bitcoin.networks.cpuchain = { | 1620 | bitcoinjs.bitcoin.networks.cpuchain = { |
1620 | messagePrefix: 'x18CPUchain Signed Message:\n', | 1621 | messagePrefix: 'x18CPUchain Signed Message:\n', |
1621 | bip32: { | 1622 | bip32: { |
@@ -1626,3 +1627,14 @@ bitcoinjs.bitcoin.networks.cpuchain = { | |||
1626 | scriptHash: 0x1E, | 1627 | scriptHash: 0x1E, |
1627 | wif: 0x80, | 1628 | wif: 0x80, |
1628 | }; | 1629 | }; |
1630 | |||
1631 | bitcoinjs.bitcoin.networks.wagerr = { | ||
1632 | messagePrefix: 'unused', | ||
1633 | bip32: { | ||
1634 | public: 0x022d2533, | ||
1635 | private: 0x0221312b | ||
1636 | }, | ||
1637 | pubKeyHash: 0x49, | ||
1638 | scriptHash: 0x3f, | ||
1639 | wif: 0xc7 | ||
1640 | }; | ||
diff --git a/src/js/index.js b/src/js/index.js index 704d4e0..3afa598 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -2749,6 +2749,13 @@ | |||
2749 | }, | 2749 | }, |
2750 | }, | 2750 | }, |
2751 | { | 2751 | { |
2752 | name: "WGR - Wagerr", | ||
2753 | onSelect: function() { | ||
2754 | network = bitcoinjs.bitcoin.networks.wagerr; | ||
2755 | setHdCoin(7825266); | ||
2756 | }, | ||
2757 | }, | ||
2758 | { | ||
2752 | name: "WC - Wincoin", | 2759 | name: "WC - Wincoin", |
2753 | onSelect: function() { | 2760 | onSelect: function() { |
2754 | network = bitcoinjs.bitcoin.networks.wincoin; | 2761 | network = bitcoinjs.bitcoin.networks.wincoin; |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index f307312..91a9bec 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -1543,6 +1543,13 @@ it('Allows selection of Stellar', function(done) { | |||
1543 | }; | 1543 | }; |
1544 | testNetwork(done, params); | 1544 | testNetwork(done, params); |
1545 | }); | 1545 | }); |
1546 | it('Allows selection of Wagerr', function(done) { | ||
1547 | var params = { | ||
1548 | selectText: "WGR - Wagerr", | ||
1549 | firstAddress: "WYiVgQU39VcQxcnacoCiaZHZZLjDCJoS95", | ||
1550 | }; | ||
1551 | testNetwork(done, params); | ||
1552 | }); | ||
1546 | 1553 | ||
1547 | // BIP39 seed is set from phrase | 1554 | // BIP39 seed is set from phrase |
1548 | it('Sets the bip39 seed from the prhase', function(done) { | 1555 | it('Sets the bip39 seed from the prhase', function(done) { |