mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-23 02:42:17 +00:00
add SLP Token Type https://github.com/simpleledger/slp-specifications/blob/master/slp-token-type-1.md
This commit is contained in:
@@ -952,6 +952,13 @@
|
||||
address = bchaddr.toBitpayAddress(address);
|
||||
}
|
||||
}
|
||||
// Bitcoin Cash address format may vary
|
||||
if (networks[DOM.network.val()].name == "SLP - Simple Ledger Protocol") {
|
||||
var bchAddrType = DOM.bitcoinCashAddressType.filter(":checked").val();
|
||||
if (bchAddrType == "cashaddr") {
|
||||
address = bchaddr.toSlpAddress(address);
|
||||
}
|
||||
}
|
||||
// Segwit addresses are different
|
||||
if (isSegwit) {
|
||||
if (!segwitAvailable) {
|
||||
@@ -1718,7 +1725,7 @@
|
||||
network = bitcoinjs.bitcoin.networks.blocknode;
|
||||
setHdCoin(2941);
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "tBND - Blocknode Testnet",
|
||||
onSelect: function() {
|
||||
@@ -2486,6 +2493,13 @@
|
||||
setHdCoin(111);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "SLP - Simple Ledger Protocol",
|
||||
onSelect: function() {
|
||||
DOM.bitcoinCashAddressTypeContainer.removeClass("hidden");
|
||||
setHdCoin(245);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "SLR - Solarcoin",
|
||||
onSelect: function() {
|
||||
|
||||
Reference in New Issue
Block a user