var a=(r,e,t)=>new Promise((o,c)=>{var p=i=>{try{l(t.next(i))}catch(m){c(m)}},d=i=>{try{l(t.throw(i))}catch(m){c(m)}},l=i=>i.done?o(i.value):Promise.resolve(i.value).then(p,d);l((t=t.apply(r,e)).next())});import s from"axios";import{createContext as w,useMemo as P}from"react";import{jsx as g}from"react/jsx-runtime";var E=w(void 0),h="production";var n=h==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var X=(r,e,t)=>a(void 0,null,function*(){try{return(yield s.get(`${n}/collection/unstoppable/searchDomain?query=${e}&wallet_address=${t}`,{headers:{"X-API-KEY":r}})).data}catch(o){throw new Error(o)}}),S=(r,e)=>a(void 0,null,function*(){try{return(yield s.post(`${n}/collection/unstoppable/claim`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}}),f=(r,e)=>a(void 0,null,function*(){try{return(yield s.post(`${n}/collection/unstoppable/lockDomain`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}}),C=(r,e,t,o)=>a(void 0,null,function*(){try{return(yield s.get(`${n}/collection/unstoppable/updatedPrice?domain=${e}&currency=${t}&wallet_address=${o}`,{headers:{"X-API-KEY":r}})).data}catch(c){throw c}}),_=(r,e)=>a(void 0,null,function*(){try{return(yield s.get(`${n}/collection/sns/searchDomain?=&query=${e}`,{headers:{"X-API-KEY":r}})).data}catch(t){throw new Error(t)}}),q=(r,e,t,o,c,p)=>a(void 0,null,function*(){try{return(yield s.post(`${n}/collection/sns/registerDomain`,{name:e,claimWallet:t,price:o,payUsing:c,space:p},{headers:{"X-API-KEY":r}})).data}catch(d){throw new Error(d)}}),B=(r,e,t)=>a(void 0,null,function*(){try{return(yield s.post(`${n}/collection/sns/claimDomain`,{name:e,transactionHash:t},{headers:{"X-API-KEY":r}})).data}catch(o){throw new Error(o)}}),N=(r,e)=>a(void 0,null,function*(){try{return(yield s.get(`${n}/collection/ens/searchDomains?query=${e}.eth`,{headers:{"X-API-KEY":r}})).data}catch(t){throw new Error(t)}}),R=(r,e)=>a(void 0,null,function*(){try{return(yield s.post(`${n}/collection/ens/claimDomain`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}}),L=(r,e)=>a(void 0,null,function*(){try{return(yield s.get(`${n}/collection/base/search-domains?query=${e}`,{headers:{"X-API-KEY":r}})).data}catch(t){throw new Error(t)}}),H=(r,e,t)=>a(void 0,null,function*(){try{return(yield s.post(`${n}/collection/base/register-domain`,{name:e,claimWallet:t},{headers:{"X-API-KEY":r}})).data}catch(o){throw new Error(o)}}),M=(r,e)=>a(void 0,null,function*(){try{return(yield s.post(`${n}/collection/base/claim-domain`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}});export{M as claimBnsDomain,S as claimDomain,R as claimEnsDomain,B as claimSnsDomain,L as getBnsDomainSuggestions,X as getDomainSuggestions,N as getEnsDomainSuggestions,_ as getSnsDomainSuggestions,f as lockDomain,C as preLockDomain,H as registerBnsDomain,q as registerSnsDomain};
