]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Merge pull request #341 from Cryptarchist/support_wagerr
authoriancoleman <1281387+iancoleman@users.noreply.github.com>
Thu, 1 Aug 2019 00:00:06 +0000 (10:00 +1000)
committerGitHub <noreply@github.com>
Thu, 1 Aug 2019 00:00:06 +0000 (10:00 +1000)
Add support for Wagerr

src/js/bitcoinjs-extensions.js
src/js/index.js
tests/spec/tests.js

index 24438297fbc9dff88760cad717205d08a507b72d..3d0c6bd5fc8d4c375c791067fd5f49f19fd5619e 100644 (file)
@@ -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
+};
index 52b0db5d86f4f8ba3ea49dceaaaae6e5f6cbcc0c..544e67d19e1ba31b1120cc45364796daae01b108 100644 (file)
                 setHdCoin(28);
             },
         },
+        {
+            name: "WGR - Wagerr",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.wagerr;
+                setHdCoin(7825266);
+            },
+        },
         {
             name: "WC - Wincoin",
             onSelect: function() {
index dd90a667fc57bdbe642f7eb1bcc5174ec89f66c2..5e65714c96957a42d7582517a9a5e33cbcd4677f 100644 (file)
@@ -1536,6 +1536,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) {