@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
3 lines (2 loc) • 816 B
JavaScript
import{a as d}from"./chunk-35N6HQAC.js";import{c as m,d as u,g as v,s as g}from"./chunk-ZR7YL3KO.js";import{a as r,m as f}from"./chunk-HBP5N4FR.js";f();g();import{Address as o,Transaction as O,TransactionOptions as I,TransactionPayload as l,TransactionVersion as a}from"@elrondnetwork/erdjs";function E(e){var s,t,p;let{data:n}=e,c=d(n!=null?n:"")?l.fromEncoded(n):new l(n),i=new O(r({value:e.value.valueOf(),data:c,nonce:e.nonce.valueOf(),receiver:new o(e.receiver),sender:new o(e.sender),gasLimit:(s=e.gasLimit.valueOf())!=null?s:m,gasPrice:(t=e.gasPrice.valueOf())!=null?t:u,chainID:e.chainID.valueOf(),version:new a((p=e.version)!=null?p:v)},e.options?{options:new I(e.options)}:{}));return i.applySignature({hex:()=>e.signature||""},new o(e.sender)),i}export{E as a};
//# sourceMappingURL=chunk-CTPLNYLR.js.map