@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
3 lines (2 loc) • 1.21 kB
JavaScript
import{a as g}from"./chunk-FMIRA7YL.js";import{a as k}from"./chunk-RQ3IOPRD.js";import{a as h}from"./chunk-UN54QAEZ.js";import{a as p}from"./chunk-WVJETRW5.js";import{a as t}from"./chunk-NCHDT5N7.js";import{a as m}from"./chunk-RHY3XG6T.js";import{b as d}from"./chunk-H2RSGZDG.js";import{a as r}from"./chunk-2PGGQXUN.js";import{a as T}from"./chunk-44GMLLSU.js";import{a as s,b as a,m as c}from"./chunk-HBP5N4FR.js";c();function F({transaction:e,address:f,explorerAddress:n}){var i;let v=(i=e.tokenIdentifier)!=null?i:T(e.data).tokenId,o=k(e),y=g(e),l=h(f,e,o),I=m(e),S=p(e),u=t({explorerAddress:n,to:r.accountDetails(e.sender)}),L=t({explorerAddress:n,to:r.accountDetails(o)}),x=t({explorerAddress:n,to:r.senderShard(e.senderShard)}),D=t({explorerAddress:n,to:r.receiverShard(e.receiverShard)}),H=e.originalTxHash?`${e.originalTxHash}#${e.txHash}`:e.txHash,C=t({explorerAddress:n,to:r.transactionDetails(H)});return a(s({},e),{tokenIdentifier:v,receiver:o,receiverAssets:y,transactionDetails:{direction:l,method:I,transactionTokens:S,isContract:d(e.sender)},links:{senderLink:u,receiverLink:L,senderShardLink:x,receiverShardLink:D,transactionLink:C}})}export{F as a};
//# sourceMappingURL=chunk-M2C42WVN.js.map