UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

3 lines (2 loc) 544 B
import{a as r}from"./chunk-OGPJ5FKP.js";import{a as i}from"./chunk-6XFAVB4Z.js";import{a}from"./chunk-6OZDAYJV.js";import{m as o}from"./chunk-HBP5N4FR.js";o();var F=T=>{let u=T.map(e=>{let{isNft:l}=a(e.type);if(l){let{badgeText:n,tokenFormattedAmount:c,tokenLinkText:s}=r({token:e});return`${n!=null?`(${n}) `:""}${c} ${s}`}let{tokenFormattedAmount:k,tokenLinkText:p,token:t}=i({token:e}),m=t.collection?t.identifier:t.token;return`${k} ${p} (${m})`});return decodeURI(u.join("%0A"))};export{F as a}; //# sourceMappingURL=chunk-OFAVFKJP.js.map