var w=Object.create;var p=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var f=(t,o)=>{for(var e in o)p(t,e,{get:o[e],enumerable:!0})},b=(t,o,e,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of k(o))!A.call(t,n)&&n!==e&&p(t,n,{get:()=>o[n],enumerable:!(a=P(o,n))||a.enumerable});return t};var y=(t,o,e)=>(e=t!=null?w(u(t)):{},b(o||!t||!t.__esModule?p(e,"default",{value:t,enumerable:!0}):e,t)),C=t=>b(p({},"__esModule",{value:!0}),t);var m=(t,o,e)=>new Promise((a,n)=>{var c=r=>{try{d(e.next(r))}catch(s){n(s)}},i=r=>{try{d(e.throw(r))}catch(s){n(s)}},d=r=>r.done?a(r.value):Promise.resolve(r.value).then(c,i);d((e=e.apply(t,o)).next())});var N={};f(N,{getBatPrice:()=>B,getSageTransactions:()=>g});module.exports=C(N);var l=y(require("axios"),1);var v=require("react"),S=require("react/jsx-runtime"),L=(0,v.createContext)(void 0),h="production";var x=h==="development"?"https://solana-api.bandit.network/api":"https://solana-sage-claim.bandit.network/api";var g=(t,o,e,a,n,c)=>m(void 0,null,function*(){try{let{data:i}=yield l.default.post(`${x}/transaction`,{holderAddress:t,curiousMintAddress:o,dabblerMintAddress:e,degenMintAddress:a,serializedMintTransaction:n,isSolGas:c});return i}catch(i){throw i}}),B=()=>m(void 0,null,function*(){try{let{data:t}=yield l.default.get(`${x}/price?from=SOL&to=BAT`);return t}catch(t){throw t}});0&&(module.exports={getBatPrice,getSageTransactions});
