UNPKG

@multiversx/sdk-dapp-swap

Version:

A library to hold the main logic for swapping between tokens on the MultiversX blockchain

3 lines (2 loc) 417 B
import{a as p}from"./chunk-6BHXHMTG.js";import{a as i}from"./chunk-RR47LRUI.js";import{b as o}from"./chunk-H2CUEYMD.js";import{f as e}from"./chunk-DKQLHRWP.js";e();var d=()=>{let{client:r}=o();if(!r)throw new Error("Swap GraphQL client not initialized");let{execute:t,isLoading:n}=i({query:p,queryOptions:{client:r}});return{wrapEgld:t,isWrapEgldLoading:n}};export{d as a}; //# sourceMappingURL=chunk-7BU6IV2U.js.map