var s=(t,a,e)=>new Promise((i,r)=>{var p=o=>{try{c(e.next(o))}catch(d){r(d)}},n=o=>{try{c(e.throw(o))}catch(d){r(d)}},c=o=>o.done?i(o.value):Promise.resolve(o.value).then(p,n);c((e=e.apply(t,a)).next())});import x from"axios";import{createContext as l,useMemo as k}from"react";import{jsx as f}from"react/jsx-runtime";var u=l(void 0),v="production";var m=v==="development"?"https://solana-api.bandit.network/api":"https://solana-sage-claim.bandit.network/api";var I=(t,a,e,i,r,p)=>s(void 0,null,function*(){try{let{data:n}=yield x.post(`${m}/transaction`,{holderAddress:t,curiousMintAddress:a,dabblerMintAddress:e,degenMintAddress:i,serializedMintTransaction:r,isSolGas:p});return n}catch(n){throw n}}),D=()=>s(void 0,null,function*(){try{let{data:t}=yield x.get(`${m}/price?from=SOL&to=BAT`);return t}catch(t){throw t}});export{D as getBatPrice,I as getSageTransactions};
