Workflow updating files of btcwallet

This commit is contained in:
RanchiMall Dev 2024-04-04 07:45:53 +00:00
parent 941a3ec340
commit c1467a48dd
5 changed files with 40 additions and 40 deletions

View File

@ -1155,7 +1155,7 @@
privateKeyConversionDescription = 'Convert ETH private key to corresponding FLO | BTC address & private key'; privateKeyConversionDescription = 'Convert ETH private key to corresponding FLO | BTC address & private key';
break; break;
} }
renderElem(getRef('pages_container'), html.for(getRef('pages_container'), convertingFrom)/*html*/` renderElem(getRef('pages_container'), html.node/*html*/`
<div id="convert" class="page flex flex-direction-column gap-1-5" data-sm-containment> <div id="convert" class="page flex flex-direction-column gap-1-5" data-sm-containment>
<sm-chips id="conversion_view_selector" onchange=${(e) => location.hash = `#/convert?from=${e.target.value}`}> <sm-chips id="conversion_view_selector" onchange=${(e) => location.hash = `#/convert?from=${e.target.value}`}>
<sm-chip value="flo" ?selected=${convertingFrom === 'flo'}>FLO</sm-chip> <sm-chip value="flo" ?selected=${convertingFrom === 'flo'}>FLO</sm-chip>
@ -1224,7 +1224,6 @@
const transactingAddresses = (receiver || sender || []) const transactingAddresses = (receiver || sender || [])
const transactingAddressesLinks = transactingAddresses const transactingAddressesLinks = transactingAddresses
.slice(0, 2).map(address => html`<a href="${`#/check_details?query=${address}`}" class="tx-participant wrap-around">${address}</a>`) .slice(0, 2).map(address => html`<a href="${`#/check_details?query=${address}`}" class="tx-participant wrap-around">${address}</a>`)
// block = null
const isUnconfirmed = block < 0 || block === null || block === undefined const isUnconfirmed = block < 0 || block === null || block === undefined
if (type === 'out') { if (type === 'out') {
transactionReceiver = html`Sent to ${transactingAddressesLinks}`; transactionReceiver = html`Sent to ${transactingAddressesLinks}`;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
btcwallet/scripts/floEthereum.min.js vendored Normal file
View File

@ -0,0 +1 @@
!function(EXPORTS){"use strict";const floEthereum="object"===typeof module?module.exports:window.floEthereum={};floEthereum.ethPrivateKeyFromWif=function(privateKey){return coinjs.wif2privkey(privateKey).privkey},floEthereum.ethAddressFromPrivateKey=function(privateKey,onlyEvenY=!1){var t1,t1_x,t1_y,t1_y_BigInt,t2,t3,groupOrder=BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F");return t1_x=(t1=bitjs.newPubkey(privateKey)).slice(2,66),t1_y=t1.slice(-64),onlyEvenY&&(t1_y_BigInt=BigInt("0x"+t1_y))%2n!==0n&&(t1_y=(t1_y_BigInt=(groupOrder-t1_y_BigInt)%groupOrder).toString(16)),t2=t1_x.toString(16)+t1_y.toString(16),t3=keccak.keccak_256(Crypto.util.hexToBytes(t2)),"0x"+keccak.extractLast20Bytes(t3)},floEthereum.ethAddressFromCompressedPublicKey=function(compressedPublicKey){var t2,t3;return t2=coinjs.compressedToUncompressed(compressedPublicKey).slice(2),t3=keccak.keccak_256(Crypto.util.hexToBytes(t2)),"0x"+keccak.extractLast20Bytes(t3)},floEthereum.ethAddressFromUncompressedPublicKey=function(unCompressedPublicKey){var t2,t3;return t2=unCompressedPublicKey.slice(2),t3=keccak.keccak_256(Crypto.util.hexToBytes(t2)),"0x"+keccak.extractLast20Bytes(t3)}}();