aboutsummaryrefslogtreecommitdiff
path: root/src/js/index.js
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2019-06-11 09:35:24 +1000
committerGitHub <noreply@github.com>2019-06-11 09:35:24 +1000
commit21e2e6c95158c720ce816f1df3a758217a8c2034 (patch)
treee16644532a3d873e8e95655661e0955ec080eb63 /src/js/index.js
parent22bb112ead9e32d1761cd80aba65ade61864cd6c (diff)
parent7f59c88dbceca330c6846f27c1423c8e7fe2009e (diff)
downloadBIP39-21e2e6c95158c720ce816f1df3a758217a8c2034.tar.gz
BIP39-21e2e6c95158c720ce816f1df3a758217a8c2034.tar.zst
BIP39-21e2e6c95158c720ce816f1df3a758217a8c2034.zip
Merge pull request #335 from onnateldome/master
ADD support MONK, LTCt, DOGEt
Diffstat (limited to 'src/js/index.js')
-rw-r--r--src/js/index.js26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 88b1e09..7e65434 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -980,11 +980,11 @@
980 address = bitcoinjs.bitcoin.address.fromOutputScript(scriptpubkey, network) 980 address = bitcoinjs.bitcoin.address.fromOutputScript(scriptpubkey, network)
981 } 981 }
982 } 982 }
983 983
984 if ((networks[DOM.network.val()].name == "CRW - Crown")) { 984 if ((networks[DOM.network.val()].name == "CRW - Crown")) {
985 address = bitcoinjs.bitcoin.networks.crown.toNewAddress(address); 985 address = bitcoinjs.bitcoin.networks.crown.toNewAddress(address);
986 } 986 }
987 987
988 addAddressToList(indexText, address, pubkey, privkey); 988 addAddressToList(indexText, address, pubkey, privkey);
989 if (isLast) { 989 if (isLast) {
990 hidePending(); 990 hidePending();
@@ -1960,6 +1960,13 @@
1960 }, 1960 },
1961 }, 1961 },
1962 { 1962 {
1963 name: "DOGEt - Dogecoin Testnet",
1964 onSelect: function() {
1965 network = bitcoinjs.bitcoin.networks.dogecointestnet;
1966 setHdCoin(1);
1967 },
1968 },
1969 {
1963 name: "DXN - DEXON", 1970 name: "DXN - DEXON",
1964 onSelect: function() { 1971 onSelect: function() {
1965 network = bitcoinjs.bitcoin.networks.bitcoin; 1972 network = bitcoinjs.bitcoin.networks.bitcoin;
@@ -2213,6 +2220,14 @@
2213 }, 2220 },
2214 }, 2221 },
2215 { 2222 {
2223 name: "LTCt - Litecoin Testnet",
2224 onSelect: function() {
2225 network = bitcoinjs.bitcoin.networks.litecointestnet;
2226 setHdCoin(1);
2227 DOM.litecoinLtubContainer.removeClass("hidden");
2228 },
2229 },
2230 {
2216 name: "LTZ - LitecoinZ", 2231 name: "LTZ - LitecoinZ",
2217 onSelect: function() { 2232 onSelect: function() {
2218 network = bitcoinjs.bitcoin.networks.litecoinz; 2233 network = bitcoinjs.bitcoin.networks.litecoinz;
@@ -2756,6 +2771,13 @@
2756 setHdCoin(121); 2771 setHdCoin(121);
2757 }, 2772 },
2758 }, 2773 },
2774 {
2775 name: "MONK - Monkey Project",
2776` onSelect: function() {
2777 network = bitcoinjs.bitcoin.networks.monkey;
2778 setHdCoin(214);
2779 },
2780 }
2759 ] 2781 ]
2760 2782
2761 var clients = [ 2783 var clients = [