aboutsummaryrefslogtreecommitdiff
path: root/src/js/index.js
diff options
context:
space:
mode:
authorPanagiotis David <panagiotis@coinomi.com>2019-06-06 21:45:57 +0300
committerPanagiotis David <onnateldome@gmail.com>2019-06-10 10:53:30 +0300
commitb85da0745a0bcf438c2ef19b72dd44d1b09ccd94 (patch)
treec9630b8cf78e816448f1ad229945b743714afb3e /src/js/index.js
parent22bb112ead9e32d1761cd80aba65ade61864cd6c (diff)
downloadBIP39-b85da0745a0bcf438c2ef19b72dd44d1b09ccd94.tar.gz
BIP39-b85da0745a0bcf438c2ef19b72dd44d1b09ccd94.tar.zst
BIP39-b85da0745a0bcf438c2ef19b72dd44d1b09ccd94.zip
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 = [