aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
-rw-r--r--tests/spec/tests.js7
3 files changed, 25 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 2443829..3d0c6bd 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1615,3 +1615,14 @@ bitcoinjs.bitcoin.networks.deeponion = {
1615 scriptHash: 0x4E, 1615 scriptHash: 0x4E,
1616 wif: 0x9F, 1616 wif: 0x9F,
1617}; 1617};
1618
1619bitcoinjs.bitcoin.networks.wagerr = {
1620 messagePrefix: 'unused',
1621 bip32: {
1622 public: 0x022d2533,
1623 private: 0x0221312b
1624 },
1625 pubKeyHash: 0x49,
1626 scriptHash: 0x3f,
1627 wif: 0xc7
1628};
diff --git a/src/js/index.js b/src/js/index.js
index 52b0db5..544e67d 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -2742,6 +2742,13 @@
2742 }, 2742 },
2743 }, 2743 },
2744 { 2744 {
2745 name: "WGR - Wagerr",
2746 onSelect: function() {
2747 network = bitcoinjs.bitcoin.networks.wagerr;
2748 setHdCoin(7825266);
2749 },
2750 },
2751 {
2745 name: "WC - Wincoin", 2752 name: "WC - Wincoin",
2746 onSelect: function() { 2753 onSelect: function() {
2747 network = bitcoinjs.bitcoin.networks.wincoin; 2754 network = bitcoinjs.bitcoin.networks.wincoin;
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index dd90a66..5e65714 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1536,6 +1536,13 @@ it('Allows selection of Stellar', function(done) {
1536 }; 1536 };
1537 testNetwork(done, params); 1537 testNetwork(done, params);
1538}); 1538});
1539it('Allows selection of Wagerr', function(done) {
1540 var params = {
1541 selectText: "WGR - Wagerr",
1542 firstAddress: "WYiVgQU39VcQxcnacoCiaZHZZLjDCJoS95",
1543 };
1544 testNetwork(done, params);
1545});
1539 1546
1540// BIP39 seed is set from phrase 1547// BIP39 seed is set from phrase
1541it('Sets the bip39 seed from the prhase', function(done) { 1548it('Sets the bip39 seed from the prhase', function(done) {