"use strict";const i=require("./index-OO3WXYTB.js");class c extends Error{constructor(){super("Not supported")}}class l extends Error{constructor(){super("Not connected")}}exports.BaseFeatures=void 0;(function(e){e.SignTransaction="SignTransaction",e.SendTransaction="SendTransaction",e.SignAndSendTransaction="SignAndSendTransaction",e.SignMessage="SignMessage"})(exports.BaseFeatures||(exports.BaseFeatures={}));exports.WalletState=void 0;(function(e){e.Installed="Installed",e.NotDetected="NotDetected",e.Loadable="Loadable",e.Unsupported="Unsupported"})(exports.WalletState||(exports.WalletState={}));class I extends i.EventEmitter{getWalletState(){return exports.WalletState.Installed}supportsFeature(s){const o=this.getFeatures();return Array.isArray(s)?s.every(r=>o.includes(r)):o.includes(s)}}const t={unset:0,solana:1,ethereum:2,terra:3,bsc:4,polygon:5,avalanche:6,oasis:7,algorand:8,aurora:9,fantom:10,karura:11,acala:12,klaytn:13,celo:14,near:15,moonbeam:16,neon:17,terra2:18,injective:19,osmosis:20,sui:21,aptos:22,arbitrum:23,optimism:24,gnosis:25,pythnet:26,xpla:28,btc:29,base:30,sei:32,rootstock:33,scroll:34,mantle:35,blast:36,xlayer:37,linea:38,berachain:39,seievm:40,wormchain:3104,cosmoshub:4e3,evmos:4001,kujira:4002,neutron:4003,celestia:4004,stargaze:4005,seda:4006,dymension:4007,provenance:4008,sepolia:10002,arbitrum_sepolia:10003,base_sepolia:10004,optimism_sepolia:10005,holesky:10006,polygon_sepolia:10007};Object.entries(t).reduce((e,[s,o])=>(e[o]=s,e),{});const _=t.solana,u=t.terra,A=t.terra2,N=t.injective,p=t.sui,C=t.aptos,S=t.xpla,n=t.sei,a=t.wormchain,d=t.cosmoshub,m=t.evmos,H=t.kujira;function D(e){return e===u||e===A||e===N||e===S||e===n||e===a||e===d||e===m||e===H}exports.CHAIN_ID_APTOS=C;exports.CHAIN_ID_SEI=n;exports.CHAIN_ID_SOLANA=_;exports.CHAIN_ID_SUI=p;exports.CHAIN_ID_WORMCHAIN=a;exports.NotConnected=l;exports.NotSupported=c;exports.Wallet=I;exports.isCosmWasmChain=D;
