@swapkit/core 1.0.0-rc.113 → 1.0.0-rc.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -658,21 +658,21 @@ const zn = [
658
658
  "OP",
659
659
  "MATIC"
660
660
  /* Polygon */
661
- ], ea = je, xt = [
661
+ ], ea = je, kt = [
662
662
  "BTC",
663
663
  "BCH",
664
664
  "DASH",
665
665
  "DOGE",
666
666
  "LTC"
667
667
  /* Litecoin */
668
- ], ta = xt, kt = [
668
+ ], ta = kt, xt = [
669
669
  "GAIA",
670
670
  "THOR",
671
671
  "BNB",
672
672
  "MAYA",
673
673
  "KUJI"
674
674
  /* Kujira */
675
- ], na = kt, St = [
675
+ ], na = xt, St = [
676
676
  "AVAX",
677
677
  "BNB",
678
678
  "BSC",
@@ -686,21 +686,21 @@ const zn = [
686
686
  /* THORChain */
687
687
  ], aa = St;
688
688
  var Re = /* @__PURE__ */ ((e) => (e.Arbitrum = "42161", e.ArbitrumHex = "0xa4b1", e.Avalanche = "43114", e.AvalancheHex = "0xa86a", e.Binance = "Binance-Chain-Tigris", e.BinanceSmartChain = "56", e.BinanceSmartChainHex = "0x38", e.Bitcoin = "bitcoin", e.BitcoinCash = "bitcoincash", e.Chainflip = "chainflip", e.Cosmos = "cosmoshub-4", e.Dash = "dash", e.Dogecoin = "dogecoin", e.Kujira = "kaiyo-1", e.Ethereum = "1", e.EthereumHex = "0x1", e.Litecoin = "litecoin", e.Maya = "mayachain-mainnet-v1", e.MayaStagenet = "mayachain-stagenet-v1", e.Optimism = "10", e.OptimismHex = "0xa", e.Polkadot = "polkadot", e.Polygon = "137", e.PolygonHex = "0x89", e.THORChain = "thorchain-mainnet-v1", e.THORChainStagenet = "thorchain-stagenet-v2", e))(Re || {}), Ke = /* @__PURE__ */ ((e) => (e.Arbitrum = "https://arb1.arbitrum.io/rpc", e.Avalanche = "https://node-router.thorswap.net/avalanche-c", e.Binance = "", e.BinanceSmartChain = "https://bsc-dataseed.binance.org", e.Bitcoin = "https://node-router.thorswap.net/bitcoin", e.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", e.Chainflip = "wss://mainnet-archive.chainflip.io", e.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", e.Dash = "https://node-router.thorswap.net/dash", e.Dogecoin = "https://node-router.thorswap.net/dogecoin", e.Ethereum = "https://node-router.thorswap.net/ethereum", e.Kujira = "https://rpc-kujira.synergynodes.com/", e.Litecoin = "https://node-router.thorswap.net/litecoin", e.Maya = "https://tendermint.mayachain.info", e.MayaStagenet = "https://stagenet.tendermint.mayachain.info", e.Optimism = "https://mainnet.optimism.io", e.Polkadot = "wss://rpc.polkadot.io", e.Polygon = "https://polygon-rpc.com", e.THORChain = "https://rpc.thorswap.net", e.THORChainStagenet = "https://stagenet-rpc.ninerealms.com", e))(Ke || {}), U = /* @__PURE__ */ ((e) => (e.Cosmos = "https://node-router.thorswap.net/cosmos/rest", e.Kujira = "https://lcd-kujira.synergynodes.com/", e.MayanodeMainnet = "https://mayanode.mayachain.info", e.MayanodeStagenet = "https://stagenet.mayanode.mayachain.info", e.ThornodeMainnet = "https://thornode.thorswap.net", e.ThornodeStagenet = "https://stagenet-thornode.ninerealms.com", e.ThorswapApi = "https://api.thorswap.net", e.ThorswapStatic = "https://static.thorswap.net", e))(U || {});
689
- const ce = Object.values(r), Rt = Object.keys(r), Ie = ce.reduce(
689
+ const ce = Object.values(r), Rt = Object.keys(r), Be = ce.reduce(
690
690
  (e, t) => {
691
691
  const n = Rt.find((a) => r[a] === t);
692
692
  return n && (e[t] = n), e;
693
693
  },
694
694
  {}
695
695
  ), Qe = ce.reduce(
696
- (e, t) => (e[t] = Re[Ie[t]], e),
696
+ (e, t) => (e[t] = Re[Be[t]], e),
697
697
  {}
698
- ), It = ce.reduce(
699
- (e, t) => (e[t] = Ke[Ie[t]], e),
698
+ ), Bt = ce.reduce(
699
+ (e, t) => (e[t] = Ke[Be[t]], e),
700
700
  {}
701
701
  ), ia = ce.reduce(
702
702
  (e, t) => {
703
- const n = `${Ie[t]}Hex`;
703
+ const n = `${Be[t]}Hex`;
704
704
  return e[t] = Re[n], e;
705
705
  },
706
706
  {}
@@ -752,14 +752,14 @@ const ce = Object.values(r), Rt = Object.keys(r), Ie = ce.reduce(
752
752
  MATIC: "https://polygonscan.com",
753
753
  THOR: "https://runescan.io"
754
754
  };
755
- var w = /* @__PURE__ */ ((e) => (e.BOND = "BOND", e.DEPOSIT = "+", e.LEAVE = "LEAVE", e.THORNAME_REGISTER = "~", e.UNBOND = "UNBOND", e.WITHDRAW = "-", e.OPEN_LOAN = "$+", e.CLOSE_LOAN = "$-", e))(w || {}), Y = /* @__PURE__ */ ((e) => (e.Average = "average", e.Fast = "fast", e.Fastest = "fastest", e))(Y || {}), Bt = /* @__PURE__ */ ((e) => (e.KEYSTORE = "KEYSTORE", e.KEEPKEY = "KEEPKEY", e.XDEFI = "XDEFI", e.METAMASK = "METAMASK", e.COINBASE_WEB = "COINBASE_WEB", e.TREZOR = "TREZOR", e.TRUSTWALLET_WEB = "TRUSTWALLET_WEB", e.LEDGER = "LEDGER", e.KEPLR = "KEPLR", e.OKX = "OKX", e.OKX_MOBILE = "OKX_MOBILE", e.BRAVE = "BRAVE", e.WALLETCONNECT = "WALLETCONNECT", e))(Bt || {}), Pt = /* @__PURE__ */ ((e) => (e[e.NoError = 36864] = "NoError", e[e.LockedDevice = 21781] = "LockedDevice", e[e.TC_NotFound = 65535] = "TC_NotFound", e))(Pt || {}), Ht = Object.defineProperty, Dt = (e, t, n) => t in e ? Ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, P = (e, t, n) => (Dt(e, typeof t != "symbol" ? t + "" : t, n), n), Ft = (e, t, n) => {
755
+ var w = /* @__PURE__ */ ((e) => (e.BOND = "BOND", e.DEPOSIT = "+", e.LEAVE = "LEAVE", e.THORNAME_REGISTER = "~", e.UNBOND = "UNBOND", e.WITHDRAW = "-", e.OPEN_LOAN = "$+", e.CLOSE_LOAN = "$-", e))(w || {}), Y = /* @__PURE__ */ ((e) => (e.Average = "average", e.Fast = "fast", e.Fastest = "fastest", e))(Y || {}), It = /* @__PURE__ */ ((e) => (e.KEYSTORE = "KEYSTORE", e.KEEPKEY = "KEEPKEY", e.XDEFI = "XDEFI", e.METAMASK = "METAMASK", e.COINBASE_WEB = "COINBASE_WEB", e.TREZOR = "TREZOR", e.TRUSTWALLET_WEB = "TRUSTWALLET_WEB", e.LEDGER = "LEDGER", e.KEPLR = "KEPLR", e.OKX = "OKX", e.OKX_MOBILE = "OKX_MOBILE", e.BRAVE = "BRAVE", e.WALLETCONNECT = "WALLETCONNECT", e))(It || {}), Pt = /* @__PURE__ */ ((e) => (e[e.NoError = 36864] = "NoError", e[e.LockedDevice = 21781] = "LockedDevice", e[e.TC_NotFound = 65535] = "TC_NotFound", e))(Pt || {}), Ht = Object.defineProperty, Dt = (e, t, n) => t in e ? Ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, P = (e, t, n) => (Dt(e, typeof t != "symbol" ? t + "" : t, n), n), Ft = (e, t, n) => {
756
756
  if (!t.has(e))
757
757
  throw TypeError("Cannot " + n);
758
758
  }, Z = (e, t, n) => {
759
759
  if (t.has(e))
760
760
  throw TypeError("Cannot add the same private member more than once");
761
761
  t instanceof WeakSet ? t.add(e) : t.set(e, n);
762
- }, E = (e, t, n) => (Ft(e, t, "access private method"), n), be = /* @__PURE__ */ ((e) => (e.Arbitrum = "ARB", e.Avalanche = "AVAX", e.Binance = "BNB", e.BinanceSmartChain = "BSC", e.Bitcoin = "BTC", e.BitcoinCash = "BCH", e.Cosmos = "GAIA", e.Dash = "DASH", e.Dogecoin = "DOGE", e.Ethereum = "ETH", e.Kujira = "KUJI", e.Litecoin = "LTC", e.Maya = "MAYA", e.Optimism = "OP", e.Polkadot = "DOT", e.Chainflip = "FLIP", e.Polygon = "MATIC", e.THORChain = "THOR", e))(be || {}), Be = /* @__PURE__ */ ((e) => (e.Arbitrum = "42161", e.ArbitrumHex = "0xa4b1", e.Avalanche = "43114", e.AvalancheHex = "0xa86a", e.Binance = "Binance-Chain-Tigris", e.BinanceSmartChain = "56", e.BinanceSmartChainHex = "0x38", e.Bitcoin = "bitcoin", e.BitcoinCash = "bitcoincash", e.Chainflip = "chainflip", e.Cosmos = "cosmoshub-4", e.Dash = "dash", e.Dogecoin = "dogecoin", e.Kujira = "kaiyo-1", e.Ethereum = "1", e.EthereumHex = "0x1", e.Litecoin = "litecoin", e.Maya = "mayachain-mainnet-v1", e.MayaStagenet = "mayachain-stagenet-v1", e.Optimism = "10", e.OptimismHex = "0xa", e.Polkadot = "polkadot", e.Polygon = "137", e.PolygonHex = "0x89", e.THORChain = "thorchain-mainnet-v1", e.THORChainStagenet = "thorchain-stagenet-v2", e))(Be || {}), Je = /* @__PURE__ */ ((e) => (e.Arbitrum = "https://arb1.arbitrum.io/rpc", e.Avalanche = "https://node-router.thorswap.net/avalanche-c", e.Binance = "", e.BinanceSmartChain = "https://bsc-dataseed.binance.org", e.Bitcoin = "https://node-router.thorswap.net/bitcoin", e.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", e.Chainflip = "wss://mainnet-archive.chainflip.io", e.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", e.Dash = "https://node-router.thorswap.net/dash", e.Dogecoin = "https://node-router.thorswap.net/dogecoin", e.Ethereum = "https://node-router.thorswap.net/ethereum", e.Kujira = "https://rpc-kujira.synergynodes.com/", e.Litecoin = "https://node-router.thorswap.net/litecoin", e.Maya = "https://tendermint.mayachain.info", e.MayaStagenet = "https://stagenet.tendermint.mayachain.info", e.Optimism = "https://mainnet.optimism.io", e.Polkadot = "wss://rpc.polkadot.io", e.Polygon = "https://polygon-rpc.com", e.THORChain = "https://rpc.thorswap.net", e.THORChainStagenet = "https://stagenet-rpc.ninerealms.com", e))(Je || {}), N = /* @__PURE__ */ ((e) => (e.Cosmos = "https://node-router.thorswap.net/cosmos/rest", e.Kujira = "https://lcd-kujira.synergynodes.com/", e.MayanodeMainnet = "https://mayanode.mayachain.info", e.MayanodeStagenet = "https://stagenet.mayanode.mayachain.info", e.ThornodeMainnet = "https://thornode.thorswap.net", e.ThornodeStagenet = "https://stagenet-thornode.ninerealms.com", e.ThorswapApi = "https://api.thorswap.net", e.ThorswapStatic = "https://static.thorswap.net", e))(N || {});
762
+ }, E = (e, t, n) => (Ft(e, t, "access private method"), n), be = /* @__PURE__ */ ((e) => (e.Arbitrum = "ARB", e.Avalanche = "AVAX", e.Binance = "BNB", e.BinanceSmartChain = "BSC", e.Bitcoin = "BTC", e.BitcoinCash = "BCH", e.Cosmos = "GAIA", e.Dash = "DASH", e.Dogecoin = "DOGE", e.Ethereum = "ETH", e.Kujira = "KUJI", e.Litecoin = "LTC", e.Maya = "MAYA", e.Optimism = "OP", e.Polkadot = "DOT", e.Chainflip = "FLIP", e.Polygon = "MATIC", e.THORChain = "THOR", e))(be || {}), Ie = /* @__PURE__ */ ((e) => (e.Arbitrum = "42161", e.ArbitrumHex = "0xa4b1", e.Avalanche = "43114", e.AvalancheHex = "0xa86a", e.Binance = "Binance-Chain-Tigris", e.BinanceSmartChain = "56", e.BinanceSmartChainHex = "0x38", e.Bitcoin = "bitcoin", e.BitcoinCash = "bitcoincash", e.Chainflip = "chainflip", e.Cosmos = "cosmoshub-4", e.Dash = "dash", e.Dogecoin = "dogecoin", e.Kujira = "kaiyo-1", e.Ethereum = "1", e.EthereumHex = "0x1", e.Litecoin = "litecoin", e.Maya = "mayachain-mainnet-v1", e.MayaStagenet = "mayachain-stagenet-v1", e.Optimism = "10", e.OptimismHex = "0xa", e.Polkadot = "polkadot", e.Polygon = "137", e.PolygonHex = "0x89", e.THORChain = "thorchain-mainnet-v1", e.THORChainStagenet = "thorchain-stagenet-v2", e))(Ie || {}), Je = /* @__PURE__ */ ((e) => (e.Arbitrum = "https://arb1.arbitrum.io/rpc", e.Avalanche = "https://node-router.thorswap.net/avalanche-c", e.Binance = "", e.BinanceSmartChain = "https://bsc-dataseed.binance.org", e.Bitcoin = "https://node-router.thorswap.net/bitcoin", e.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", e.Chainflip = "wss://mainnet-archive.chainflip.io", e.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", e.Dash = "https://node-router.thorswap.net/dash", e.Dogecoin = "https://node-router.thorswap.net/dogecoin", e.Ethereum = "https://node-router.thorswap.net/ethereum", e.Kujira = "https://rpc-kujira.synergynodes.com/", e.Litecoin = "https://node-router.thorswap.net/litecoin", e.Maya = "https://tendermint.mayachain.info", e.MayaStagenet = "https://stagenet.tendermint.mayachain.info", e.Optimism = "https://mainnet.optimism.io", e.Polkadot = "wss://rpc.polkadot.io", e.Polygon = "https://polygon-rpc.com", e.THORChain = "https://rpc.thorswap.net", e.THORChainStagenet = "https://stagenet-rpc.ninerealms.com", e))(Je || {}), N = /* @__PURE__ */ ((e) => (e.Cosmos = "https://node-router.thorswap.net/cosmos/rest", e.Kujira = "https://lcd-kujira.synergynodes.com/", e.MayanodeMainnet = "https://mayanode.mayachain.info", e.MayanodeStagenet = "https://stagenet.mayanode.mayachain.info", e.ThornodeMainnet = "https://thornode.thorswap.net", e.ThornodeStagenet = "https://stagenet-thornode.ninerealms.com", e.ThorswapApi = "https://api.thorswap.net", e.ThorswapStatic = "https://static.thorswap.net", e))(N || {});
763
763
  const fe = Object.values(be), Lt = Object.keys(be), Pe = fe.reduce(
764
764
  (e, t) => {
765
765
  const n = Lt.find((a) => be[a] === t);
@@ -768,7 +768,7 @@ const fe = Object.values(be), Lt = Object.keys(be), Pe = fe.reduce(
768
768
  {}
769
769
  );
770
770
  fe.reduce(
771
- (e, t) => (e[t] = Be[Pe[t]], e),
771
+ (e, t) => (e[t] = Ie[Pe[t]], e),
772
772
  {}
773
773
  );
774
774
  fe.reduce(
@@ -778,7 +778,7 @@ fe.reduce(
778
778
  fe.reduce(
779
779
  (e, t) => {
780
780
  const n = `${Pe[t]}Hex`;
781
- return e[t] = Be[n], e;
781
+ return e[t] = Ie[n], e;
782
782
  },
783
783
  {}
784
784
  );
@@ -1146,7 +1146,7 @@ const L = {
1146
1146
  ...t,
1147
1147
  headers: { ...it, ...t.headers, "x-api-key": e }
1148
1148
  });
1149
- }, x = {
1149
+ }, k = {
1150
1150
  get: (e, t) => qe().get(e, t).json(),
1151
1151
  post: (e, t) => qe().post(e, t).json()
1152
1152
  }, zt = ({ tokens: e, ...t }) => {
@@ -1155,25 +1155,25 @@ const L = {
1155
1155
  );
1156
1156
  for (const i of a)
1157
1157
  n.append("tokens", JSON.stringify(i));
1158
- return t.metadata && n.append("metadata", "true"), t.lookup && n.append("lookup", "true"), t.sparkline && n.append("sparkline", "true"), x.post(L.CachedPrices, {
1158
+ return t.metadata && n.append("metadata", "true"), t.lookup && n.append("lookup", "true"), t.sparkline && n.append("sparkline", "true"), k.post(L.CachedPrices, {
1159
1159
  body: n.toString(),
1160
1160
  headers: { "Content-Type": "application/x-www-form-urlencoded" }
1161
1161
  });
1162
1162
  }, pa = {
1163
1163
  getCachedPrices: zt,
1164
- getQuote: (e) => x.get(L.Quote, { searchParams: e }),
1165
- getGasRates: () => x.get(L.GasRates),
1166
- getTxnDetails: (e) => x.get(L.Txn, { searchParams: e }),
1167
- getTokenlistProviders: () => x.get(L.TokenlistProviders),
1168
- getTokenList: (e) => x.get(`${L.TokenList}/${e}.json`),
1169
- getThornameAddresses: (e) => x.get(`${L.Thorname}/${e}`),
1170
- getThornameRegisteredChains: (e) => x.get(`${L.Thorname}/chains/${e}`),
1171
- getThornameRlookup: (e, t) => x.get(`${L.Thorname}/rlookup`, { searchParams: { address: e, chain: t } })
1164
+ getQuote: (e) => k.get(L.Quote, { searchParams: e }),
1165
+ getGasRates: () => k.get(L.GasRates),
1166
+ getTxnDetails: (e) => k.get(L.Txn, { searchParams: e }),
1167
+ getTokenlistProviders: () => k.get(L.TokenlistProviders),
1168
+ getTokenList: (e) => k.get(`${L.TokenList}/${e}.json`),
1169
+ getThornameAddresses: (e) => k.get(`${L.Thorname}/${e}`),
1170
+ getThornameRegisteredChains: (e) => k.get(`${L.Thorname}/chains/${e}`),
1171
+ getThornameRlookup: (e, t) => k.get(`${L.Thorname}/rlookup`, { searchParams: { address: e, chain: t } })
1172
1172
  };
1173
1173
  var en = /* @__PURE__ */ ((e) => (e.SWAP_TC_TO_TC = "SWAP:TC-TC", e.SWAP_ETH_TO_TC = "SWAP:ERC20-TC", e.SWAP_TC_TO_ETH = "SWAP:TC-ERC20", e.SWAP_ETH_TO_ETH = "SWAP:ERC20-ERC20", e.SWAP_AVAX_TO_TC = "SWAP:AVAX-TC", e.SWAP_TC_TO_AVAX = "SWAP:TC-AVAX", e.SWAP_AVAX_TO_AVAX = "SWAP:AVAX-AVAX", e.SWAP_ETH_TO_AVAX = "SWAP:ETH-AVAX", e.SWAP_AVAX_TO_ETH = "SWAP:AVAX-ETH", e.SWAP_TC_TO_GAIA = "SWAP:TC-GAIA", e.SWAP_GAIA_TO_TC = "SWAP:GAIA-TC", e.SWAP_TC_TO_BNB = "SWAP:TC-BNB", e.SWAP_BNB_TO_TC = "SWAP:BNB-TC", e.SWAP_TC_TO_BTC = "SWAP:TC-BTC", e.SWAP_BTC_TO_TC = "SWAP:BTC-TC", e.SWAP_TC_TO_BCH = "SWAP:TC-BCH", e.SWAP_BCH_TO_TC = "SWAP:BCH-TC", e.SWAP_TC_TO_LTC = "SWAP:TC-LTC", e.SWAP_LTC_TO_TC = "SWAP:LTC-TC", e.SWAP_TC_TO_DOGE = "SWAP:TC-DOGE", e.SWAP_DOGE_TO_TC = "SWAP:DOGE-TC", e.TC_STATUS = "TC:STATUS", e.TC_TRANSFER = "TC:TRANSFER", e.TC_DEPOSIT = "TC:DEPOSIT", e.TC_SEND = "TC:SEND", e.TC_SWITCH = "TC:SWITCH", e.TC_LP_ADD = "TC:ADDLIQUIDITY", e.TC_LP_WITHDRAW = "TC:WITHDRAW", e.TC_TNS_CREATE = "TC:TNS-CREATE", e.TC_TNS_EXTEND = "TC:TNS-EXTEND", e.TC_TNS_UPDATE = "TC:TNS-UPDATE", e.TC_SAVINGS_ADD = "TC:ADDSAVINGS", e.TC_SAVINGS_WITHDRAW = "TC:WITHDRAWSAVINGS", e.TC_LENDING_OPEN = "TC:LENDINGOPEN", e.TC_LENDING_CLOSE = "TC:LENDINGCLOSE", e.ETH_APPROVAL = "ETH:APPROVAL", e.ETH_STATUS = "ETH:STATUS", e.ETH_TRANSFER_TO_TC = "ETH:TRANSFER:IN", e.ETH_TRANSFER_FROM_TC = "ETH:TRANSFER:OUT", e.AVAX_APPROVAL = "AVAX:APPROVAL", e.AVAX_STATUS = "AVAX:STATUS", e.AVAX_TRANSFER_TO_TC = "AVAX:TRANSFER:IN", e.AVAX_TRANSFER_FROM_TC = "AVAX:TRANSFER:OUT", e.BSC_APPROVAL = "BSC:APPROVAL", e.BSC_STATUS = "BSC:STATUS", e.BSC_TRANSFER_TO_TC = "BSC:TRANSFER:IN", e.BSC_TRANSFER_FROM_TC = "BSC:TRANSFER:OUT", e.APPROVAL = "APPROVAL", e.STATUS = "STATUS", e.TRANSFER_TO_TC = "TRANSFER:IN", e.TRANSFER_FROM_TC = "TRANSFER:OUT", e.UNSUPPORTED = "UNSUPPORTED", e.TC_LENDING = "TC:LENDING", e))(en || {}), tn = /* @__PURE__ */ ((e) => (e.PENDING = "pending", e.SUCCESS = "success", e.CANCELLED = "cancelled", e.REFUNDED = "refunded", e.REPLACED = "replaced", e.ERROR = "error", e.UNKNOWN = "unknown", e.NOT_STARTED = "not_started", e.NOT_FOUND = "not_found", e.RETRIES_EXCEEDED = "retries_exceeded", e.STREAMING = "streaming", e))(tn || {}), nn = /* @__PURE__ */ ((e) => (e[e.NOT_STARTED = 0] = "NOT_STARTED", e[e.SUCCESS = 1] = "SUCCESS", e[e.REFUNDED = 2] = "REFUNDED", e))(nn || {});
1174
1174
  const an = "0x313ce567", st = async ({ chain: e, to: t }) => {
1175
1175
  try {
1176
- const { result: n } = await x.post(It[e], {
1176
+ const { result: n } = await k.post(Bt[e], {
1177
1177
  headers: {
1178
1178
  accept: "*/*",
1179
1179
  "content-type": "application/json",
@@ -1296,6 +1296,13 @@ const an = "0x313ce567", st = async ({ chain: e, to: t }) => {
1296
1296
  const i = `${t}.${a}`;
1297
1297
  return !ln.test(i) && mn(i) && n !== "0";
1298
1298
  });
1299
+ async function oa(e) {
1300
+ const t = await import("@swapkit/tokens");
1301
+ for (const n of Object.values(t))
1302
+ for (const { identifier: a, chain: i, ...s } of n.tokens)
1303
+ if ("identifier" in e && a === e.identifier || "address" in s && "chain" in e && i === e.chain && s.address.toLowerCase() === e.contract.toLowerCase())
1304
+ return a;
1305
+ }
1299
1306
  function Tn({
1300
1307
  liquidityUnits: e,
1301
1308
  poolUnits: t,
@@ -1312,7 +1319,7 @@ function cn({
1312
1319
  const a = S(e), i = S(t), s = S(n), p = a.mul(s), u = i.mul(i).mul(2), y = i.mul(a).mul(2), o = a.mul(a), l = p.mul(u.sub(y).add(o)), b = i.mul(i).mul(i);
1313
1320
  return l.div(b);
1314
1321
  }
1315
- function oa({
1322
+ function da({
1316
1323
  percent: e,
1317
1324
  runeDepth: t,
1318
1325
  liquidityUnits: n,
@@ -1320,7 +1327,7 @@ function oa({
1320
1327
  }) {
1321
1328
  return Tn({ runeDepth: t, liquidityUnits: n, poolUnits: a }).mul(e);
1322
1329
  }
1323
- function da({
1330
+ function la({
1324
1331
  percent: e,
1325
1332
  assetDepth: t,
1326
1333
  liquidityUnits: n,
@@ -1342,7 +1349,7 @@ function bn({
1342
1349
  runeAmount: S(n).mul(e).div(t)
1343
1350
  };
1344
1351
  }
1345
- function la({
1352
+ function ma({
1346
1353
  liquidityUnits: e,
1347
1354
  poolUnits: t,
1348
1355
  runeDepth: n,
@@ -1355,7 +1362,7 @@ function la({
1355
1362
  )
1356
1363
  );
1357
1364
  }
1358
- function ma({
1365
+ function Ta({
1359
1366
  runeDepth: e,
1360
1367
  poolUnits: t,
1361
1368
  assetDepth: n,
@@ -1369,7 +1376,7 @@ function ma({
1369
1376
  const J = y.add(R);
1370
1377
  return R.div(J).getBaseValue("number");
1371
1378
  }
1372
- function Ta({
1379
+ function ca({
1373
1380
  runeAmount: e,
1374
1381
  assetAmount: t,
1375
1382
  runeDepth: n,
@@ -1380,7 +1387,7 @@ function Ta({
1380
1387
  const i = S(n), s = S(a), p = S(t), u = S(e), y = p.mul(i).sub(s.mul(u)), o = s.mul(u).add(i.mul(s));
1381
1388
  return Math.abs(y.div(o).getBaseValue("number"));
1382
1389
  }
1383
- const B = (e, t) => {
1390
+ const I = (e, t) => {
1384
1391
  switch (e) {
1385
1392
  case w.LEAVE:
1386
1393
  case w.BOND: {
@@ -1423,29 +1430,29 @@ const B = (e, t) => {
1423
1430
  return "";
1424
1431
  }
1425
1432
  };
1426
- function ca(e) {
1433
+ function ba(e) {
1427
1434
  if (e < 0)
1428
1435
  throw new Error("Invalid number of year");
1429
1436
  return 10 + e;
1430
1437
  }
1431
- function ba(e) {
1438
+ function fa(e) {
1432
1439
  if (e < 0)
1433
1440
  throw new Error("Invalid number of year");
1434
1441
  return Math.round((10 + e * 1.0512) * 1e10) / 1e10;
1435
1442
  }
1436
- function fa(e) {
1443
+ function ha(e) {
1437
1444
  if (e.length > 30)
1438
1445
  return !1;
1439
1446
  const t = /^[a-zA-Z0-9+_-]+$/g;
1440
1447
  return !!e.match(t);
1441
1448
  }
1442
- function ha(e) {
1449
+ function wa(e) {
1443
1450
  if (e.length > 30)
1444
1451
  return !1;
1445
1452
  const t = /^[a-zA-Z0-9+_-]+$/g;
1446
1453
  return !!e.match(t);
1447
1454
  }
1448
- function wa([e, t, n, a, i]) {
1455
+ function Aa([e, t, n, a, i]) {
1449
1456
  return `${e}'/${t}'/${n}'/${a}${typeof i != "number" ? "" : `/${i}`}`;
1450
1457
  }
1451
1458
  const We = [...Object.values(r), "TERRA"];
@@ -1480,14 +1487,14 @@ function he({
1480
1487
  );
1481
1488
  }
1482
1489
  var G, z, q, j, Ee, pt, ye, ge, de, Oe;
1483
- const hn = class xe {
1490
+ const hn = class ke {
1484
1491
  constructor(t) {
1485
1492
  Z(this, G), Z(this, q), Z(this, Ee), Z(this, ye), Z(this, de), P(this, "decimalMultiplier", 10n ** 8n), P(this, "bigIntValue", 0n), P(this, "decimal");
1486
1493
  const n = Se(t), a = typeof t == "object";
1487
1494
  this.decimal = a ? t.decimal : void 0, this.decimalMultiplier = a && "decimalMultiplier" in t ? t.decimalMultiplier : W(Math.max(ut(le(n)), this.decimal || 0)), E(this, Ee, pt).call(this, n);
1488
1495
  }
1489
1496
  static fromBigInt(t, n) {
1490
- return new xe({
1497
+ return new ke({
1491
1498
  decimal: n,
1492
1499
  value: he({ value: t, bigIntDecimal: n, decimal: n })
1493
1500
  });
@@ -1497,7 +1504,7 @@ const hn = class xe {
1497
1504
  from: n,
1498
1505
  to: a
1499
1506
  }) {
1500
- return xe.fromBigInt(
1507
+ return ke.fromBigInt(
1501
1508
  t.getBaseValue("bigint") * W(a) / W(n),
1502
1509
  a
1503
1510
  );
@@ -1677,7 +1684,7 @@ G = /* @__PURE__ */ new WeakSet(), z = function(e, ...t) {
1677
1684
  const n = t ? W(t) : this.decimalMultiplier, a = te(n), [i = "", s = ""] = e.split(".");
1678
1685
  return BigInt(`${i}${s.padEnd(a, "0")}`);
1679
1686
  };
1680
- let ke = hn;
1687
+ let xe = hn;
1681
1688
  const wn = Intl.NumberFormat("fullwide", {
1682
1689
  useGrouping: !1,
1683
1690
  maximumFractionDigits: 20
@@ -1694,7 +1701,7 @@ function ut(e) {
1694
1701
  function Se(e) {
1695
1702
  return typeof e == "object" ? "getValue" in e ? e.getValue("string") : e.value : e;
1696
1703
  }
1697
- class F extends ke {
1704
+ class F extends xe {
1698
1705
  eq(t) {
1699
1706
  return this.eqValue(t);
1700
1707
  }
@@ -1706,7 +1713,7 @@ class F extends ke {
1706
1713
  }
1707
1714
  }
1708
1715
  const K = /* @__PURE__ */ new Map();
1709
- class k extends ke {
1716
+ class x extends xe {
1710
1717
  constructor({
1711
1718
  value: t,
1712
1719
  decimal: n,
@@ -1755,7 +1762,7 @@ class k extends ke {
1755
1762
  decimal: g[a],
1756
1763
  identifier: t
1757
1764
  };
1758
- return new k({
1765
+ return new x({
1759
1766
  tax: p,
1760
1767
  value: Q(n, u),
1761
1768
  identifier: i ? t : y,
@@ -1763,12 +1770,12 @@ class k extends ke {
1763
1770
  });
1764
1771
  }
1765
1772
  static async fromStringWithBase(t, n = 0, a = g.THOR) {
1766
- const i = ke.shiftDecimals({
1773
+ const i = xe.shiftDecimals({
1767
1774
  value: F.fromBigInt(BigInt(n)),
1768
1775
  from: 0,
1769
1776
  to: a
1770
1777
  }).getBaseValue("string");
1771
- return (await k.fromString(t, n)).set(i);
1778
+ return (await x.fromString(t, n)).set(i);
1772
1779
  }
1773
1780
  static fromStringWithBaseSync(t, n = 0, a = g.THOR) {
1774
1781
  const { chain: i, isSynthetic: s } = ee(t), p = K.get(t.toUpperCase());
@@ -1778,7 +1785,7 @@ class k extends ke {
1778
1785
  decimal: g[i],
1779
1786
  identifier: t
1780
1787
  };
1781
- return new k({
1788
+ return new x({
1782
1789
  tax: u,
1783
1790
  value: Q(BigInt(n), a),
1784
1791
  identifier: o,
@@ -1793,11 +1800,11 @@ class k extends ke {
1793
1800
  decimal: g[a],
1794
1801
  identifier: t
1795
1802
  };
1796
- return new k({ tax: p, decimal: u, identifier: y, value: Q(n, u) });
1803
+ return new x({ tax: p, decimal: u, identifier: y, value: Q(n, u) });
1797
1804
  }
1798
1805
  static fromChainOrSignature(t, n = 0) {
1799
1806
  const { decimal: a, identifier: i } = on(t);
1800
- return new k({ value: Q(n, a), decimal: a, identifier: i });
1807
+ return new x({ value: Q(n, a), decimal: a, identifier: i });
1801
1808
  }
1802
1809
  static loadStaticAssets() {
1803
1810
  return new Promise(
@@ -1824,7 +1831,7 @@ class k extends ke {
1824
1831
  }
1825
1832
  }
1826
1833
  function _e(e) {
1827
- const t = k.fromChainOrSignature(e);
1834
+ const t = x.fromChainOrSignature(e);
1828
1835
  switch (e) {
1829
1836
  case r.Bitcoin:
1830
1837
  case r.Litecoin:
@@ -1847,13 +1854,13 @@ function _e(e) {
1847
1854
  async function Me(e, t = 0) {
1848
1855
  fn(e);
1849
1856
  const n = K.get(e.toUpperCase()), a = (n == null ? void 0 : n.decimal) || await un(ee(e));
1850
- return n || K.set(e.toUpperCase(), { identifier: e, decimal: a }), new k({ decimal: a, value: Q(t, a), identifier: e });
1857
+ return n || K.set(e.toUpperCase(), { identifier: e, decimal: a }), new x({ decimal: a, value: Q(t, a), identifier: e });
1851
1858
  }
1852
1859
  function ve(e, t = 0) {
1853
1860
  const [n, a] = e.split(".")[0].toUpperCase() === r.THORChain ? e.split(".").slice(1).join().split("/") : e.split("/");
1854
1861
  if (!(n && a))
1855
1862
  throw new Error("Invalid asset identifier");
1856
- return new k({
1863
+ return new x({
1857
1864
  decimal: 8,
1858
1865
  value: Q(t, 8),
1859
1866
  identifier: `${r.THORChain}.${n}/${a}`
@@ -2011,7 +2018,7 @@ const yt = ({ chain: e, txHash: t }) => {
2011
2018
  }
2012
2019
  };
2013
2020
  var gn = /* @__PURE__ */ ((e) => (e.Approve = "approve", e.CheckOnly = "checkOnly", e))(gn || {});
2014
- function Aa({
2021
+ function ga({
2015
2022
  stagenet: e,
2016
2023
  wallets: t,
2017
2024
  plugins: n,
@@ -2021,8 +2028,8 @@ function Aa({
2021
2028
  }) {
2022
2029
  const p = {}, u = {};
2023
2030
  for (const c of n) {
2024
- const { name: h, methods: I } = c({ wallets: p, stagenet: e });
2025
- u[h] = I;
2031
+ const { name: h, methods: B } = c({ wallets: p, stagenet: e });
2032
+ u[h] = B;
2026
2033
  }
2027
2034
  const y = t.reduce((c, h) => (c[h.connectMethodName] = h.connect({
2028
2035
  addChain: l,
@@ -2042,7 +2049,7 @@ function Aa({
2042
2049
  function b({
2043
2050
  assetValue: c,
2044
2051
  type: h = "checkOnly",
2045
- contractAddress: I
2052
+ contractAddress: B
2046
2053
  }) {
2047
2054
  const { address: O, chain: D, isGasAsset: mt, isSynthetic: Tt } = c, De = [r.Ethereum, r.Avalanche, r.BinanceSmartChain].includes(D);
2048
2055
  if (De && mt || !De || Tt)
@@ -2053,7 +2060,7 @@ function Aa({
2053
2060
  const Le = f(D);
2054
2061
  if (!(O && Le))
2055
2062
  throw new d("core_approve_asset_address_or_from_not_found");
2056
- const ct = I;
2063
+ const ct = B;
2057
2064
  return Fe({
2058
2065
  amount: c.getBaseValue("bigint"),
2059
2066
  assetAddress: O,
@@ -2079,16 +2086,16 @@ function Aa({
2079
2086
  return ot({ chain: c, address: h });
2080
2087
  }
2081
2088
  function C({ address: c, chain: h }) {
2082
- var I, O;
2083
- return (O = (I = T(h)) == null ? void 0 : I.validateAddress) == null ? void 0 : O.call(I, c);
2089
+ var B, O;
2090
+ return (O = (B = T(h)) == null ? void 0 : B.validateAddress) == null ? void 0 : O.call(B, c);
2084
2091
  }
2085
2092
  async function R(c, h) {
2086
- const I = [k.fromChainOrSignature(c)], O = T(c);
2093
+ const B = [x.fromChainOrSignature(c)], O = T(c);
2087
2094
  try {
2088
2095
  if (!O)
2089
2096
  throw new d("core_wallet_connection_not_found");
2090
2097
  const D = await (O == null ? void 0 : O.getBalance(O.address, h));
2091
- return O.balance = D != null && D.length ? D : I, O;
2098
+ return O.balance = D != null && D.length ? D : B, O;
2092
2099
  } catch (D) {
2093
2100
  throw new d("core_wallet_connection_not_found", D);
2094
2101
  }
@@ -5748,7 +5755,7 @@ const _n = [
5748
5755
  type: "function"
5749
5756
  },
5750
5757
  { stateMutability: "payable", type: "receive" }
5751
- ], xn = [
5758
+ ], kn = [
5752
5759
  {
5753
5760
  inputs: [
5754
5761
  { internalType: "address", name: "_factory", type: "address" },
@@ -6087,7 +6094,7 @@ const _n = [
6087
6094
  type: "function"
6088
6095
  },
6089
6096
  { stateMutability: "payable", type: "receive" }
6090
- ], kn = [
6097
+ ], xn = [
6091
6098
  {
6092
6099
  inputs: [
6093
6100
  { internalType: "address", name: "_factory", type: "address" },
@@ -7104,7 +7111,7 @@ const _n = [
7104
7111
  type: "function"
7105
7112
  },
7106
7113
  { stateMutability: "payable", type: "receive" }
7107
- ], In = [
7114
+ ], Bn = [
7108
7115
  {
7109
7116
  inputs: [
7110
7117
  { internalType: "address", name: "_factory", type: "address" },
@@ -7357,7 +7364,7 @@ const _n = [
7357
7364
  type: "function"
7358
7365
  },
7359
7366
  { stateMutability: "payable", type: "receive" }
7360
- ], Bn = [
7367
+ ], In = [
7361
7368
  {
7362
7369
  inputs: [
7363
7370
  { internalType: "address", name: "_weth", type: "address" },
@@ -7529,8 +7536,8 @@ const _n = [
7529
7536
  { stateMutability: "payable", type: "receive" }
7530
7537
  ], Pn = {
7531
7538
  // AVAX
7532
- ["0xE54Ca86531e17Ef3616d22Ca28b0D458b6C89106".toLowerCase()]: xn,
7533
- ["0xC22FBb3133dF781E6C25ea6acebe2D2Bb8CeA2f9".toLowerCase()]: Bn,
7539
+ ["0xE54Ca86531e17Ef3616d22Ca28b0D458b6C89106".toLowerCase()]: kn,
7540
+ ["0xC22FBb3133dF781E6C25ea6acebe2D2Bb8CeA2f9".toLowerCase()]: In,
7534
7541
  ["0x60aE616a2155Ee3d9A68541Ba4544862310933d4".toLowerCase()]: Sn,
7535
7542
  ["0x1111111254fb6c44bAC0beD2854e76F90643097d".toLowerCase()]: Ue,
7536
7543
  ["0x6131B5fae19EA4f9D964eAc0408E4408b66337b5".toLowerCase()]: $e,
@@ -7538,10 +7545,10 @@ const _n = [
7538
7545
  ["0x10ED43C718714eb63d5aA57B78B54704E256024E".toLowerCase()]: Xe,
7539
7546
  // ETH
7540
7547
  ["0x6131B5fae19EA4f9D964eAc0408E4408b66337b5".toLowerCase()]: $e,
7541
- ["0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f".toLowerCase()]: kn,
7548
+ ["0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f".toLowerCase()]: xn,
7542
7549
  ["0xEfF92A263d31888d860bD50809A8D171709b7b1c".toLowerCase()]: Xe,
7543
7550
  ["0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D".toLowerCase()]: Rn,
7544
- ["0xE592427A0AEce92De3Edee1F18E0157C05861564".toLowerCase()]: In,
7551
+ ["0xE592427A0AEce92De3Edee1F18E0157C05861564".toLowerCase()]: Bn,
7545
7552
  ["0x1111111254fb6c44bac0bed2854e76f90643097d".toLowerCase()]: Ue
7546
7553
  }, Hn = [
7547
7554
  {
@@ -8599,13 +8606,13 @@ const _n = [
8599
8606
  return [...J, ...we];
8600
8607
  }, Xn = (e) => {
8601
8608
  const t = e ? U.MayanodeStagenet : U.MayanodeMainnet;
8602
- return x.get(`${t}/mayachain/mimir`);
8609
+ return k.get(`${t}/mayachain/mimir`);
8603
8610
  }, Gn = (e) => {
8604
8611
  const t = e ? U.ThornodeStagenet : U.ThornodeMainnet;
8605
- return x.get(`${t}/thorchain/inbound_addresses`);
8612
+ return k.get(`${t}/thorchain/inbound_addresses`);
8606
8613
  }, jn = (e) => {
8607
8614
  const t = e ? U.ThornodeStagenet : U.ThornodeMainnet;
8608
- return x.get(`${t}/thorchain/mimir`);
8615
+ return k.get(`${t}/thorchain/mimir`);
8609
8616
  }, Ge = () => Object.values(r).reduce(
8610
8617
  (e, t) => (e[t] = null, e),
8611
8618
  {}
@@ -8623,7 +8630,7 @@ const _n = [
8623
8630
  }
8624
8631
  };
8625
8632
  var $, me, ae, H, ie, Te, se;
8626
- class ga {
8633
+ class _a {
8627
8634
  constructor({ stagenet: t } = {}) {
8628
8635
  m(this, "connectedChains", Ge());
8629
8636
  m(this, "connectedWallets", Ge());
@@ -8671,7 +8678,7 @@ class ga {
8671
8678
  if (Ct.includes(s)) {
8672
8679
  if (!a.calldata.fromAsset)
8673
8680
  throw new d("core_swap_asset_not_recognized");
8674
- const o = await k.fromString(a.calldata.fromAsset);
8681
+ const o = await x.fromString(a.calldata.fromAsset);
8675
8682
  if (!o)
8676
8683
  throw new d("core_swap_asset_not_recognized");
8677
8684
  const { address: l } = await A(this, $).call(this, o.chain), {
@@ -8718,7 +8725,7 @@ class ga {
8718
8725
  const a = this.getAddress(t);
8719
8726
  if (!a)
8720
8727
  return null;
8721
- const i = [k.fromChainOrSignature(t)], s = (p = this.connectedChains[t]) == null ? void 0 : p.walletType;
8728
+ const i = [x.fromChainOrSignature(t)], s = (p = this.connectedChains[t]) == null ? void 0 : p.walletType;
8722
8729
  try {
8723
8730
  const y = await ((u = this.getWallet(t)) == null ? void 0 : u.getBalance(a, n));
8724
8731
  return this.connectedChains[t] = {
@@ -8815,7 +8822,7 @@ class ga {
8815
8822
  try {
8816
8823
  a = await A(this, H).call(this, {
8817
8824
  assetValue: t,
8818
- memo: B(w.DEPOSIT, {
8825
+ memo: I(w.DEPOSIT, {
8819
8826
  ...n,
8820
8827
  address: this.getAddress(n.chain)
8821
8828
  })
@@ -8826,7 +8833,7 @@ class ga {
8826
8833
  try {
8827
8834
  i = await A(this, H).call(this, {
8828
8835
  assetValue: n,
8829
- memo: B(w.DEPOSIT, {
8836
+ memo: I(w.DEPOSIT, {
8830
8837
  ...n,
8831
8838
  address: this.getAddress(r.THORChain)
8832
8839
  })
@@ -8854,7 +8861,7 @@ class ga {
8854
8861
  try {
8855
8862
  M = await A(this, H).call(this, {
8856
8863
  assetValue: t,
8857
- memo: B(w.DEPOSIT, {
8864
+ memo: I(w.DEPOSIT, {
8858
8865
  chain: u,
8859
8866
  symbol: y,
8860
8867
  address: _
@@ -8867,7 +8874,7 @@ class ga {
8867
8874
  try {
8868
8875
  v = await A(this, H).call(this, {
8869
8876
  assetValue: n,
8870
- memo: B(w.DEPOSIT, {
8877
+ memo: I(w.DEPOSIT, {
8871
8878
  chain: u,
8872
8879
  symbol: y,
8873
8880
  address: f
@@ -8886,7 +8893,7 @@ class ga {
8886
8893
  }) => {
8887
8894
  if (i && !a)
8888
8895
  throw new d("core_transaction_add_liquidity_invalid_params");
8889
- const s = B(w.DEPOSIT, {
8896
+ const s = I(w.DEPOSIT, {
8890
8897
  chain: n.split(".")[0],
8891
8898
  symbol: n.split(".")[1],
8892
8899
  address: i ? a : ""
@@ -8900,7 +8907,7 @@ class ga {
8900
8907
  from: i,
8901
8908
  to: s
8902
8909
  }) => {
8903
- const p = s === "rune" && i !== "rune" ? k.fromChainOrSignature(r.THORChain) : i === "sym" && s === "sym" || i === "rune" || i === "asset" ? void 0 : n, u = _e(i === "asset" ? n.chain : r.THORChain), y = t || B(w.WITHDRAW, {
8910
+ const p = s === "rune" && i !== "rune" ? x.fromChainOrSignature(r.THORChain) : i === "sym" && s === "sym" || i === "rune" || i === "asset" ? void 0 : n, u = _e(i === "asset" ? n.chain : r.THORChain), y = t || I(w.WITHDRAW, {
8904
8911
  symbol: n.symbol,
8905
8912
  chain: n.chain,
8906
8913
  ticker: n.ticker,
@@ -8916,7 +8923,7 @@ class ga {
8916
8923
  percent: a,
8917
8924
  type: i
8918
8925
  }) => {
8919
- const s = i === "add" ? w.DEPOSIT : w.WITHDRAW, p = n || B(s, {
8926
+ const s = i === "add" ? w.DEPOSIT : w.WITHDRAW, p = n || I(s, {
8920
8927
  ticker: t.ticker,
8921
8928
  symbol: t.symbol,
8922
8929
  chain: t.chain,
@@ -8932,7 +8939,7 @@ class ga {
8932
8939
  type: i
8933
8940
  }) => A(this, H).call(this, {
8934
8941
  assetValue: t,
8935
- memo: n || B(i === "open" ? w.OPEN_LOAN : w.CLOSE_LOAN, {
8942
+ memo: n || I(i === "open" ? w.OPEN_LOAN : w.CLOSE_LOAN, {
8936
8943
  asset: t.toString(),
8937
8944
  minAmount: a.toString(),
8938
8945
  address: this.getAddress(t.chain)
@@ -8943,7 +8950,7 @@ class ga {
8943
8950
  assetValue: n,
8944
8951
  address: a
8945
8952
  }) => {
8946
- const i = t === "bond" ? w.BOND : t === "unbond" ? w.UNBOND : w.LEAVE, s = B(i, {
8953
+ const i = t === "bond" ? w.BOND : t === "unbond" ? w.UNBOND : w.LEAVE, s = I(i, {
8947
8954
  address: a,
8948
8955
  unbondAmount: t === "unbond" ? n.getBaseValue("number") : void 0
8949
8956
  });
@@ -8957,14 +8964,14 @@ class ga {
8957
8964
  ...n
8958
8965
  }) => A(this, ie).call(this, {
8959
8966
  assetValue: t,
8960
- memo: B(w.THORNAME_REGISTER, n)
8967
+ memo: I(w.THORNAME_REGISTER, n)
8961
8968
  }));
8962
8969
  m(this, "registerMayaname", ({
8963
8970
  assetValue: t,
8964
8971
  ...n
8965
8972
  }) => A(this, Te).call(this, {
8966
8973
  assetValue: t,
8967
- memo: B(w.THORNAME_REGISTER, n)
8974
+ memo: I(w.THORNAME_REGISTER, n)
8968
8975
  }));
8969
8976
  m(this, "extend", ({ wallets: t, config: n, apis: a = {}, rpcUrls: i = {} }) => {
8970
8977
  try {
@@ -9158,19 +9165,19 @@ export {
9158
9165
  L as ApiEndpoints,
9159
9166
  U as ApiUrl,
9160
9167
  gn as ApproveMode,
9161
- k as AssetValue,
9168
+ x as AssetValue,
9162
9169
  g as BaseDecimal,
9163
- ke as BigIntArithmetics,
9170
+ xe as BigIntArithmetics,
9164
9171
  r as Chain,
9165
9172
  Re as ChainId,
9166
9173
  sa as ChainIdToChain,
9167
9174
  Qe as ChainToChainId,
9168
9175
  Ye as ChainToExplorerUrl,
9169
9176
  ia as ChainToHexChainId,
9170
- It as ChainToRPC,
9177
+ Bt as ChainToRPC,
9171
9178
  Et as ContractAddress,
9172
9179
  na as CosmosChainList,
9173
- kt as CosmosChains,
9180
+ xt as CosmosChains,
9174
9181
  Ot as DerivationPath,
9175
9182
  ea as EVMChainList,
9176
9183
  je as EVMChains,
@@ -9180,14 +9187,14 @@ export {
9180
9187
  Zn as NetworkDerivationPath,
9181
9188
  _t as QuoteMode,
9182
9189
  Ke as RPCUrl,
9183
- x as RequestClient,
9190
+ k as RequestClient,
9184
9191
  vt as SWAP_IN,
9185
9192
  Ct as SWAP_OUT,
9186
9193
  nn as StreamingSwapProgressStatus,
9187
9194
  zn as SubstrateChains,
9188
- Aa as SwapKit,
9195
+ ga as SwapKit,
9189
9196
  pa as SwapKitApi,
9190
- ga as SwapKitCore,
9197
+ _a as SwapKitCore,
9191
9198
  d as SwapKitError,
9192
9199
  F as SwapKitNumber,
9193
9200
  At as TCAvalancheDepositABI,
@@ -9198,33 +9205,34 @@ export {
9198
9205
  en as TransactionType,
9199
9206
  tn as TxStatus,
9200
9207
  ta as UTXOChainList,
9201
- xt as UTXOChains,
9202
- Bt as WalletOption,
9208
+ kt as UTXOChains,
9209
+ It as WalletOption,
9203
9210
  ua as assetFromString,
9204
9211
  it as defaultRequestHeaders,
9205
- wa as derivationPathToString,
9212
+ Aa as derivationPathToString,
9206
9213
  Jn as erc20ABI,
9207
9214
  ya as filterAssets,
9215
+ oa as findAssetBy,
9208
9216
  he as formatBigIntToSafeValue,
9209
9217
  yn as gasFeeMultiplier,
9210
9218
  dn as getAssetType,
9211
9219
  cn as getAsymmetricAssetShare,
9212
- da as getAsymmetricAssetWithdrawAmount,
9220
+ la as getAsymmetricAssetWithdrawAmount,
9213
9221
  Tn as getAsymmetricRuneShare,
9214
- oa as getAsymmetricRuneWithdrawAmount,
9222
+ da as getAsymmetricRuneWithdrawAmount,
9215
9223
  on as getCommonAssetInfo,
9216
9224
  un as getDecimal,
9217
- ma as getEstimatedPoolShare,
9218
- Ta as getLiquiditySlippage,
9219
- ba as getMAYANameCost,
9220
- B as getMemoFor,
9225
+ Ta as getEstimatedPoolShare,
9226
+ ca as getLiquiditySlippage,
9227
+ fa as getMAYANameCost,
9228
+ I as getMemoFor,
9221
9229
  _e as getMinAmountByChain,
9222
9230
  bn as getSymmetricPoolShare,
9223
- la as getSymmetricWithdraw,
9224
- ca as getTHORNameCost,
9231
+ ma as getSymmetricWithdraw,
9232
+ ba as getTHORNameCost,
9225
9233
  rt as isGasAsset,
9226
9234
  ra as setRequestClientConfig,
9227
- ha as validateMAYAName,
9228
- fa as validateTHORName
9235
+ wa as validateMAYAName,
9236
+ ha as validateTHORName
9229
9237
  };
9230
9238
  //# sourceMappingURL=index.es.js.map