@thorswap-lib/types
Advanced tools
Comparing version 1.0.0-development.85 to 1.0.0-development.86
@@ -133,2 +133,3 @@ import { BigNumber } from '@ethersproject/bignumber'; | ||
BinanceSmartChain = "56", | ||
BinanceSmartChainHex = "0x38", | ||
Bitcoin = "bitcoin", | ||
@@ -135,0 +136,0 @@ Bitcoincash = "bitcoincash", |
var l = Object.defineProperty; | ||
var m = (e, n, t) => n in e ? l(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t; | ||
var a = (e, n, t) => (m(e, typeof n != "symbol" ? n + "" : n, t), t); | ||
var m = (e, t, n) => t in e ? l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n; | ||
var a = (e, t, n) => (m(e, typeof t != "symbol" ? t + "" : t, n), n); | ||
const O = [ | ||
@@ -445,3 +445,3 @@ { inputs: [], stateMutability: "nonpayable", type: "constructor" }, | ||
constructor({ | ||
status: t, | ||
status: n, | ||
module: d, | ||
@@ -461,3 +461,3 @@ code: u, | ||
a(this, "options"); | ||
this.status = t, this.module = d, this.message = s, this.code = u, this.type = r || i.UNHANDLED_ERROR, this.options = { | ||
this.status = n, this.module = d, this.message = s, this.code = u, this.type = r || i.UNHANDLED_ERROR, this.options = { | ||
shouldLog: y || !0, | ||
@@ -468,4 +468,4 @@ shouldTrace: T || !0, | ||
} | ||
static fromErrorInfo(t) { | ||
return new p(t); | ||
static fromErrorInfo(n) { | ||
return new p(n); | ||
} | ||
@@ -476,6 +476,6 @@ identifier() { | ||
handle() { | ||
const t = `[${this.type}.${this.module}]: ${this.message}`; | ||
if (this.options.shouldLog && console.error(t, ` | ||
const n = `[${this.type}.${this.module}]: ${this.message}`; | ||
if (this.options.shouldLog && console.error(n, ` | ||
`, this.stack || ""), this.options.shouldThrow) | ||
throw Error(t, { cause: this.stack }); | ||
throw Error(n, { cause: this.stack }); | ||
return this.returnErrorInfo(); | ||
@@ -514,3 +514,3 @@ } | ||
}; | ||
var g = /* @__PURE__ */ ((e) => (e[e.AVAX = 18] = "AVAX", e[e.BCH = 8] = "BCH", e[e.BNB = 8] = "BNB", e[e.BSC = 18] = "BSC", e[e.BTC = 8] = "BTC", e[e.DOGE = 8] = "DOGE", e[e.ETH = 18] = "ETH", e[e.GAIA = 6] = "GAIA", e[e.LTC = 8] = "LTC", e[e.THOR = 8] = "THOR", e))(g || {}), b = /* @__PURE__ */ ((e) => (e.Avalanche = "43114", e.AvalancheHex = "0xa86a", e.Binance = "Binance-Chain-Tigris", e.BinanceSmartChain = "56", e.Bitcoin = "bitcoin", e.Bitcoincash = "bitcoincash", e.Cosmos = "cosmoshub-4", e.Dogecoin = "dogecoin", e.Ethereum = "1", e.EthereumHex = "0x1", e.Litecoin = "litecoin", e.Thorchain = "thorchain-mainnet-v1", e.ThorchainStagenet = "thorchain-stagenet-v2", e))(b || {}), B = /* @__PURE__ */ ((e) => (e.Avalanche = "https://node-router.thorswap.net/avalanche-c", e.BinanceSmartChain = "https://bsc-dataseed.binance.org", e.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", e.Ethereum = "https://node-router.thorswap.net/ethereum", e.Litecoin = "https://node-router.thorswap.net/litecoin", e.Bitcoin = "https://node-router.thorswap.net/bitcoin", e.Dogecoin = "https://node-router.thorswap.net/dogecoin", e.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", e))(B || {}), x = /* @__PURE__ */ ((e) => (e.Thorswap = "https://api.thorswap.finance", e))(x || {}); | ||
var g = /* @__PURE__ */ ((e) => (e[e.AVAX = 18] = "AVAX", e[e.BCH = 8] = "BCH", e[e.BNB = 8] = "BNB", e[e.BSC = 18] = "BSC", e[e.BTC = 8] = "BTC", e[e.DOGE = 8] = "DOGE", e[e.ETH = 18] = "ETH", e[e.GAIA = 6] = "GAIA", e[e.LTC = 8] = "LTC", e[e.THOR = 8] = "THOR", e))(g || {}), b = /* @__PURE__ */ ((e) => (e.Avalanche = "43114", e.AvalancheHex = "0xa86a", e.Binance = "Binance-Chain-Tigris", e.BinanceSmartChain = "56", e.BinanceSmartChainHex = "0x38", e.Bitcoin = "bitcoin", e.Bitcoincash = "bitcoincash", e.Cosmos = "cosmoshub-4", e.Dogecoin = "dogecoin", e.Ethereum = "1", e.EthereumHex = "0x1", e.Litecoin = "litecoin", e.Thorchain = "thorchain-mainnet-v1", e.ThorchainStagenet = "thorchain-stagenet-v2", e))(b || {}), x = /* @__PURE__ */ ((e) => (e.Avalanche = "https://node-router.thorswap.net/avalanche-c", e.BinanceSmartChain = "https://bsc-dataseed.binance.org", e.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", e.Ethereum = "https://node-router.thorswap.net/ethereum", e.Litecoin = "https://node-router.thorswap.net/litecoin", e.Bitcoin = "https://node-router.thorswap.net/bitcoin", e.Dogecoin = "https://node-router.thorswap.net/dogecoin", e.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", e))(x || {}), B = /* @__PURE__ */ ((e) => (e.Thorswap = "https://api.thorswap.finance", e))(B || {}); | ||
const R = { | ||
@@ -541,3 +541,3 @@ AVAX: "https://node-router.thorswap.net/avalanche-c", | ||
BNB: "Binance-Chain-Tigris", | ||
BSC: "56", | ||
BSC: "0x38", | ||
BTC: "bitcoin", | ||
@@ -568,2 +568,6 @@ BCH: "bitcoincash", | ||
]: "BSC", | ||
[ | ||
"0x38" | ||
/* BinanceSmartChainHex */ | ||
]: "BSC", | ||
bitcoin: "BTC", | ||
@@ -600,3 +604,3 @@ bitcoincash: "BCH", | ||
p as ApiError, | ||
x as ApiUrl, | ||
B as ApiUrl, | ||
c as AssetSymbol, | ||
@@ -623,3 +627,3 @@ g as BaseDecimal, | ||
h as NetworkId, | ||
B as RPCUrl, | ||
x as RPCUrl, | ||
w as SUPPORTED_CHAINS, | ||
@@ -626,0 +630,0 @@ G as TCAvalancheDepositABI, |
@@ -36,3 +36,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "1.0.0-development.85", | ||
"version": "1.0.0-development.86", | ||
"scripts": { | ||
@@ -39,0 +39,0 @@ "build": "echo 'Build types 🛠'; vite build && echo 'Build succeeded types ✅'", |
@@ -94,2 +94,3 @@ export enum Chain { | ||
BinanceSmartChain = '56', | ||
BinanceSmartChainHex = '0x38', | ||
Bitcoin = 'bitcoin', | ||
@@ -148,3 +149,3 @@ Bitcoincash = 'bitcoincash', | ||
[Chain.Binance]: ChainId.Binance, | ||
[Chain.BinanceSmartChain]: ChainId.BinanceSmartChain, | ||
[Chain.BinanceSmartChain]: ChainId.BinanceSmartChainHex, | ||
[Chain.Bitcoin]: ChainId.Bitcoin, | ||
@@ -164,2 +165,3 @@ [Chain.BitcoinCash]: ChainId.Bitcoincash, | ||
[ChainId.BinanceSmartChain]: Chain.BinanceSmartChain, | ||
[ChainId.BinanceSmartChainHex]: Chain.BinanceSmartChain, | ||
[ChainId.Bitcoin]: Chain.Bitcoin, | ||
@@ -166,0 +168,0 @@ [ChainId.Bitcoincash]: Chain.BitcoinCash, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
207183
2449