{prettyAmount(entry.available)} { " "} {Amounts.isNonZero(entry.pendingIncoming) ? this.formatPending(entry.pendingIncoming) : [] }
); }); if (listing.length > 0) { return{i18n.parts`Bank requested reserve (${abbrev(d.reservePub)}) for ${prettyAmount( d.requestedAmount)}.`}
); case "confirm-reserve": { // FIXME: eventually remove compat fix let exchange = d.exchangeBaseUrl ? URI(d.exchangeBaseUrl).host() : "??"; let amount = prettyAmount(d.requestedAmount); let pub = abbrev(d.reservePub); return ({i18n.parts`Started to withdraw ${amount} from ${exchange} (${pub}).`}
); } case "offer-contract": { let link = chrome.extension.getURL("view-contract.html"); let linkElem = {abbrev(d.contractHash)}; let merchantElem = {abbrev(d.merchantName, 15)}; return ({i18n.parts`Merchant ${merchantElem} offered contract ${linkElem}.`}
); } case "depleted-reserve": { let exchange = d.exchangeBaseUrl ? URI(d.exchangeBaseUrl).host() : "??"; let amount = prettyAmount(d.requestedAmount); let pub = abbrev(d.reservePub); return ({i18n.parts`Withdrew ${amount} from ${exchange} (${pub}).`}
); } case "pay": { let url = substituteFulfillmentUrl(d.fulfillmentUrl, {H_contract: d.contractHash}); let merchantElem = {abbrev(d.merchantName, 15)}; let fulfillmentLinkElem = view product; return ({i18n.parts`Paid ${prettyAmount(d.amount)} to merchant ${merchantElem}. (${fulfillmentLinkElem})`}
); } default: return (i18n`Unknown event (${historyItem.type})`
); } } class WalletHistory extends preact.Component{i18n`Your wallet has no events recorded.`}
} } function reload() { try { chrome.runtime.reload(); window.close(); } catch (e) { // Functionality missing in firefox, ignore! } } function confirmReset() { if (confirm("Do you want to IRREVOCABLY DESTROY everything inside your" + " wallet and LOSE ALL YOUR COINS?")) { chrome.runtime.sendMessage({type: "reset"}); window.close(); } } function WalletDebug(props: any) { return (Debug tools: