import n from"axios";import{createContext as p,useMemo as w}from"react";import{jsx as x}from"react/jsx-runtime";var u=p(void 0),i="production";var o=i==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var b=async(r,e,t)=>{try{return(await n.get(`${o}/collection/unstoppable/searchDomain?query=${e}&wallet_address=${t}`,{headers:{"X-API-KEY":r}})).data}catch(a){throw new Error(a)}},v=async(r,e)=>{try{return(await n.post(`${o}/collection/unstoppable/claim`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}},K=async(r,e)=>{try{return(await n.post(`${o}/collection/unstoppable/lockDomain`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}},Y=async(r,e,t,a)=>{try{return(await n.get(`${o}/collection/unstoppable/updatedPrice?domain=${e}&currency=${t}&wallet_address=${a}`,{headers:{"X-API-KEY":r}})).data}catch(s){throw s}},X=async(r,e)=>{try{return(await n.get(`${o}/collection/sns/searchDomain?=&query=${e}`,{headers:{"X-API-KEY":r}})).data}catch(t){throw new Error(t)}},k=async(r,e,t,a,s,d)=>{try{return(await n.post(`${o}/collection/sns/registerDomain`,{name:e,claimWallet:t,price:a,payUsing:s,space:d},{headers:{"X-API-KEY":r}})).data}catch(c){throw new Error(c)}},S=async(r,e,t)=>{try{return(await n.post(`${o}/collection/sns/claimDomain`,{name:e,transactionHash:t},{headers:{"X-API-KEY":r}})).data}catch(a){throw new Error(a)}},f=async(r,e)=>{try{return(await n.get(`${o}/collection/ens/searchDomains?query=${e}.eth`,{headers:{"X-API-KEY":r}})).data}catch(t){throw new Error(t)}},C=async(r,e)=>{try{return(await n.post(`${o}/collection/ens/claimDomain`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}},_=async(r,e)=>{try{return(await n.get(`${o}/collection/base/search-domains?query=${e}`,{headers:{"X-API-KEY":r}})).data}catch(t){throw new Error(t)}},q=async(r,e,t)=>{try{return(await n.post(`${o}/collection/base/register-domain`,{name:e,claimWallet:t},{headers:{"X-API-KEY":r}})).data}catch(a){throw new Error(a)}},B=async(r,e)=>{try{return(await n.post(`${o}/collection/base/claim-domain`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}};export{B as claimBnsDomain,v as claimDomain,C as claimEnsDomain,S as claimSnsDomain,_ as getBnsDomainSuggestions,b as getDomainSuggestions,f as getEnsDomainSuggestions,X as getSnsDomainSuggestions,K as lockDomain,Y as preLockDomain,q as registerBnsDomain,k as registerSnsDomain};
