From 67f18e2a637a072bd4fc67f25ce59cff1bd2e3db Mon Sep 17 00:00:00 2001 From: Cryptarchist Date: Fri, 5 Jul 2019 18:54:47 +0100 Subject: Add support for Wagerr --- src/js/bitcoinjs-extensions.js | 11 +++++++++++ src/js/index.js | 7 +++++++ tests/spec/tests.js | 7 +++++++ 3 files changed, 25 insertions(+) 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 = { scriptHash: 0x4E, wif: 0x9F, }; + +bitcoinjs.bitcoin.networks.wagerr = { + messagePrefix: 'unused', + bip32: { + public: 0x022d2533, + private: 0x0221312b + }, + pubKeyHash: 0x49, + scriptHash: 0x3f, + wif: 0xc7 +}; diff --git a/src/js/index.js b/src/js/index.js index 9578146..19c9b84 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -2733,6 +2733,13 @@ setHdCoin(28); }, }, + { + name: "WGR - Wagerr", + onSelect: function() { + network = bitcoinjs.bitcoin.networks.wagerr; + setHdCoin(7825266); + }, + }, { name: "WC - Wincoin", onSelect: function() { diff --git a/tests/spec/tests.js b/tests/spec/tests.js index f69bca6..0634c8f 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -1529,6 +1529,13 @@ it('Allows selection of Stellar', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Wagerr', function(done) { + var params = { + selectText: "WGR - Wagerr", + firstAddress: "WYiVgQU39VcQxcnacoCiaZHZZLjDCJoS95", + }; + testNetwork(done, params); +}); // BIP39 seed is set from phrase it('Sets the bip39 seed from the prhase', function(done) { -- cgit v1.2.3