@coinmasters/types
Advanced tools
Comparing version 4.4.2 to 4.4.3
@@ -591,3 +591,3 @@ /// <reference types="node" /> | ||
Litecoin = "https://node-router.thorswap.net/litecoin", | ||
Mayachain = "https://tendermint.mayachain.info", | ||
Mayachain = "https://mayanode.mayachain.info", | ||
MayaStagenet = "https://stagenet.tendermint.mayachain.info", | ||
@@ -594,0 +594,0 @@ Optimism = "https://mainnet.optimism.io", |
@@ -685,3 +685,3 @@ var f = Object.defineProperty; | ||
[t.ADDRESS_ALREADY_CLAIMED]: "Address {0} already claimed the airdrop." | ||
}, y = (e, a) => { | ||
}, u = (e, a) => { | ||
let s = D[e]; | ||
@@ -697,3 +697,3 @@ for (let r = 0; r < a.length; r++) | ||
module: c, | ||
code: o, | ||
code: d, | ||
message: _, | ||
@@ -706,5 +706,5 @@ type: N, | ||
}, | ||
displayMessageParams: u | ||
displayMessageParams: o | ||
}) { | ||
const A = _ || y(o, u || []) || ""; | ||
const A = _ || u(d, o || []) || ""; | ||
super(A); | ||
@@ -721,7 +721,7 @@ i(this, "status"); | ||
i(this, "displayMessageParams"); | ||
this.status = s, this.revision = r || "NO_REVISION", this.module = c, this.message = A, this.display = y(o, u || []), this.code = o, this.type = N || S.UNHANDLED_ERROR, this.options = { | ||
this.status = s, this.revision = r || "NO_REVISION", this.module = c, this.message = A, this.display = u(d, o || []), this.code = d, this.type = N || S.UNHANDLED_ERROR, this.options = { | ||
shouldLog: O || !0, | ||
shouldTrace: C || !0, | ||
shouldThrow: h || !1 | ||
}, this.displayMessageParams = u || [], this.options.shouldTrace && Error.captureStackTrace(this); | ||
}, this.displayMessageParams = o || [], this.options.shouldTrace && Error.captureStackTrace(this); | ||
} | ||
@@ -738,3 +738,3 @@ static fromErrorInfo(s) { | ||
get displayMessage() { | ||
return y(this.code, this.displayMessageParams || []); | ||
return u(this.code, this.displayMessageParams || []); | ||
} | ||
@@ -823,8 +823,8 @@ handle() { | ||
ZEC: "bip122:0000000000196a45" | ||
}, M = {}; | ||
}, v = {}; | ||
for (const e in n) { | ||
const a = x[n[e]]; | ||
M[a] = n[e]; | ||
v[a] = n[e]; | ||
} | ||
var v = /* @__PURE__ */ ((e) => (e.ARB = "0x0000000000000000000000000000000000000000", e.AVAX = "0x0000000000000000000000000000000000000000", e.ETH = "0x0000000000000000000000000000000000000000", e.BSC = "0x0000000000000000000000000000000000000000", e.MATIC = "0x0000000000000000000000000000000000001010", e.OP = "0x4200000000000000000000000000000000000042", e))(v || {}), G = /* @__PURE__ */ ((e) => (e.ARB = "m/44'/60'/0'/0/0", e.AVAX = "m/44'/60'/0'/0/0", e.BASE = "m/44'/60'/0'/0/0", e.BCH = "m/44'/145'/0'/0/0", e.BNB = "m/44'/714'/0'/0/0", e.BSC = "m/44'/60'/0'/0/0", e.BTC = "m/84'/0'/0'/0/0", e.DOGE = "m/44'/3'/0'/0/0", e.DASH = "m/44'/5'/0'/0/0", e.DGB = "m/44'/20'/0'/0/0", e.ETH = "m/44'/60'/0'/0/0", e.EOS = "m/44'/194'/0'/0/0", e.GAIA = "m/44'/118'/0'/0/0", e.KUJI = "m/44'/118'/0'/0/0", e.LTC = "m/84'/2'/0'/0/0", e.MATIC = "m/44'/60'/0'/0/0", e.MAYA = "m/44'/931'/0'/0/0", e.OP = "m/44'/60'/0'/0/0", e.OSMO = "m/44'/118'/0'/0/0", e.XRP = "m/44'/144'/0'/0/0", e.THOR = "m/44'/931'/0'/0/0", e.ZEC = "m/44'/133'/0'/0/0", e))(G || {}); | ||
var M = /* @__PURE__ */ ((e) => (e.ARB = "0x0000000000000000000000000000000000000000", e.AVAX = "0x0000000000000000000000000000000000000000", e.ETH = "0x0000000000000000000000000000000000000000", e.BSC = "0x0000000000000000000000000000000000000000", e.MATIC = "0x0000000000000000000000000000000000001010", e.OP = "0x4200000000000000000000000000000000000042", e))(M || {}), G = /* @__PURE__ */ ((e) => (e.ARB = "m/44'/60'/0'/0/0", e.AVAX = "m/44'/60'/0'/0/0", e.BASE = "m/44'/60'/0'/0/0", e.BCH = "m/44'/145'/0'/0/0", e.BNB = "m/44'/714'/0'/0/0", e.BSC = "m/44'/60'/0'/0/0", e.BTC = "m/84'/0'/0'/0/0", e.DOGE = "m/44'/3'/0'/0/0", e.DASH = "m/44'/5'/0'/0/0", e.DGB = "m/44'/20'/0'/0/0", e.ETH = "m/44'/60'/0'/0/0", e.EOS = "m/44'/194'/0'/0/0", e.GAIA = "m/44'/118'/0'/0/0", e.KUJI = "m/44'/118'/0'/0/0", e.LTC = "m/84'/2'/0'/0/0", e.MATIC = "m/44'/60'/0'/0/0", e.MAYA = "m/44'/931'/0'/0/0", e.OP = "m/44'/60'/0'/0/0", e.OSMO = "m/44'/118'/0'/0/0", e.XRP = "m/44'/144'/0'/0/0", e.THOR = "m/44'/931'/0'/0/0", e.ZEC = "m/44'/133'/0'/0/0", e))(G || {}); | ||
const ne = { | ||
@@ -855,3 +855,3 @@ ARB: [44, 60, 0, 0, 0], | ||
var U = /* @__PURE__ */ ((e) => (e[e.ARB = 18] = "ARB", 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.DASH = 8] = "DASH", e[e.DGB = 8] = "DGB", e[e.DOGE = 8] = "DOGE", e[e.ETH = 18] = "ETH", e[e.BASE = 18] = "BASE", e[e.EOS = 6] = "EOS", e[e.GAIA = 6] = "GAIA", e[e.KUJI = 6] = "KUJI", e[e.LTC = 8] = "LTC", e[e.MATIC = 18] = "MATIC", e[e.MAYA = 10] = "MAYA", e[e.OP = 18] = "OP", e[e.OSMO = 6] = "OSMO", e[e.XRP = 6] = "XRP", e[e.THOR = 8] = "THOR", e[e.ZEC = 8] = "ZEC", e))(U || {}); | ||
const T = [ | ||
const y = [ | ||
"ETH", | ||
@@ -893,4 +893,4 @@ "AVAX", | ||
]; | ||
var p = /* @__PURE__ */ ((e) => (e.Arbitrum = "42161", e.ArbitrumHex = "0xa4b1", e.Avalanche = "43114", e.AvalancheHex = "0xa86a", e.Base = "8453", e.Binance = "Binance-Chain-Tigris", e.BinanceSmartChain = "56", e.BinanceSmartChainHex = "0x38", e.Bitcoin = "bitcoin", e.BitcoinCash = "bitcoincash", e.Cosmos = "cosmoshub-4", e.Dash = "dash", e.Dogecoin = "dogecoin", e.Kujira = "kaiyo-1", e.Ethereum = "1", e.EthereumHex = "0x1", e.Litecoin = "litecoin", e.Mayachain = "mayachain-mainnet-v1", e.MayaStagenet = "mayachain-stagenet-v1", e.Optimism = "10", e.OptimismHex = "0xa", e.Osmosis = "osmosis-1", e.Polygon = "137", e.PolygonHex = "0x89", e.THORChain = "thorchain-mainnet-v1", e.THORChainStagenet = "thorchain-stagenet-v2", e))(p || {}), I = /* @__PURE__ */ ((e) => (e.Arbitrum = "https://arb1.arbitrum.io/rpc", e.Avalanche = "https://daemon.avalanche.shapeshift.com/ext/bc/C/rpc", e.Binance = "https://base.llamarpc.com", e.BinanceSmartChain = "https://daemon.bnbsmartchain.shapeshift.com", e.Base = "https://developer-access-mainnet.base.org", e.Bitcoin = "https://node-router.thorswap.net/bitcoin", e.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", e.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", e.Kujira = "https://rpc-kujira.synergynodes.com/", e.Dash = "https://dash.nownodes.io", e.Dogecoin = "https://node-router.thorswap.net/dogecoin", e.Ethereum = "https://daemon.ethereum.shapeshift.com", e.Litecoin = "https://node-router.thorswap.net/litecoin", e.Mayachain = "https://tendermint.mayachain.info", e.MayaStagenet = "https://stagenet.tendermint.mayachain.info", e.Optimism = "https://mainnet.optimism.io", e.Osmosis = "https://lcd-osmosis.keplr.app", e.Polygon = "https://polygon-rpc.com", e.Ripple = "https://xrplcluster.com", e.THORChain = "https://rpc.thorswap.net", e.THORChainStagenet = "https://stagenet-rpc.ninerealms.com", e))(I || {}), w = /* @__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))(w || {}); | ||
const d = Object.values(n), F = Object.keys(n), m = d.reduce( | ||
var T = /* @__PURE__ */ ((e) => (e.Arbitrum = "42161", e.ArbitrumHex = "0xa4b1", e.Avalanche = "43114", e.AvalancheHex = "0xa86a", e.Base = "8453", e.Binance = "Binance-Chain-Tigris", e.BinanceSmartChain = "56", e.BinanceSmartChainHex = "0x38", e.Bitcoin = "bitcoin", e.BitcoinCash = "bitcoincash", e.Cosmos = "cosmoshub-4", e.Dash = "dash", e.Dogecoin = "dogecoin", e.Kujira = "kaiyo-1", e.Ethereum = "1", e.EthereumHex = "0x1", e.Litecoin = "litecoin", e.Mayachain = "mayachain-mainnet-v1", e.MayaStagenet = "mayachain-stagenet-v1", e.Optimism = "10", e.OptimismHex = "0xa", e.Osmosis = "osmosis-1", e.Polygon = "137", e.PolygonHex = "0x89", e.THORChain = "thorchain-mainnet-v1", e.THORChainStagenet = "thorchain-stagenet-v2", e))(T || {}), I = /* @__PURE__ */ ((e) => (e.Arbitrum = "https://arb1.arbitrum.io/rpc", e.Avalanche = "https://daemon.avalanche.shapeshift.com/ext/bc/C/rpc", e.Binance = "https://base.llamarpc.com", e.BinanceSmartChain = "https://daemon.bnbsmartchain.shapeshift.com", e.Base = "https://developer-access-mainnet.base.org", e.Bitcoin = "https://node-router.thorswap.net/bitcoin", e.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", e.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", e.Kujira = "https://rpc-kujira.synergynodes.com/", e.Dash = "https://dash.nownodes.io", e.Dogecoin = "https://node-router.thorswap.net/dogecoin", e.Ethereum = "https://daemon.ethereum.shapeshift.com", e.Litecoin = "https://node-router.thorswap.net/litecoin", e.Mayachain = "https://mayanode.mayachain.info", e.MayaStagenet = "https://stagenet.tendermint.mayachain.info", e.Optimism = "https://mainnet.optimism.io", e.Osmosis = "https://lcd-osmosis.keplr.app", e.Polygon = "https://polygon-rpc.com", e.Ripple = "https://xrplcluster.com", e.THORChain = "https://rpc.thorswap.net", e.THORChainStagenet = "https://stagenet-rpc.ninerealms.com", e))(I || {}), w = /* @__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))(w || {}); | ||
const p = Object.values(n), F = Object.keys(n), m = p.reduce( | ||
(e, a) => { | ||
@@ -901,12 +901,12 @@ const s = F.find((r) => n[r] === a); | ||
{} | ||
), ie = d.reduce( | ||
(e, a) => (e[a] = p[m[a]], e), | ||
), ie = p.reduce( | ||
(e, a) => (e[a] = T[m[a]], e), | ||
{} | ||
), re = d.reduce( | ||
), re = p.reduce( | ||
(e, a) => (e[a] = I[m[a]], e), | ||
{} | ||
), pe = d.reduce( | ||
), pe = p.reduce( | ||
(e, a) => { | ||
const s = `${m[a]}Hex`; | ||
return e[a] = p[s], e; | ||
return e[a] = T[s], e; | ||
}, | ||
@@ -933,3 +933,3 @@ {} | ||
"mayachain-stagenet-v1": "MAYA", | ||
[p.Maya]: "MAYA", | ||
"mayachain-mainnet-v1": "MAYA", | ||
"0xa": "OP", | ||
@@ -986,4 +986,4 @@ 10: "OP", | ||
], ue = { | ||
BRAVE: T, | ||
COINBASE_WEB: T, | ||
BRAVE: y, | ||
COINBASE_WEB: y, | ||
KEPLR: [n.Cosmos], | ||
@@ -1047,3 +1047,3 @@ KEYSTORE: [ | ||
], | ||
TRUSTWALLET_WEB: T, | ||
TRUSTWALLET_WEB: y, | ||
XDEFI: [ | ||
@@ -1087,3 +1087,3 @@ n.Arbitrum, | ||
n as Chain, | ||
p as ChainId, | ||
T as ChainId, | ||
de as ChainIdToChain, | ||
@@ -1095,3 +1095,3 @@ ie as ChainToChainId, | ||
re as ChainToRPC, | ||
v as ContractAddress, | ||
M as ContractAddress, | ||
ae as CosmosChainList, | ||
@@ -1102,3 +1102,3 @@ G as DerivationPath, | ||
S as ERROR_TYPE, | ||
T as EVMChainList, | ||
y as EVMChainList, | ||
X as ErrorCode, | ||
@@ -1108,3 +1108,3 @@ Y as FeeOption, | ||
ne as NetworkDerivationPath, | ||
M as NetworkIdToChain, | ||
v as NetworkIdToChain, | ||
g as OSMOSIS_SWAP, | ||
@@ -1111,0 +1111,0 @@ P as QuoteMode, |
@@ -8,3 +8,3 @@ { | ||
"vite": "4.4.9", | ||
"@internal/config": "2.4.2" | ||
"@internal/config": "2.4.3" | ||
}, | ||
@@ -37,3 +37,3 @@ "eslintConfig": { | ||
"types": "./dist/index.d.ts", | ||
"version": "4.4.2", | ||
"version": "4.4.3", | ||
"scripts": { | ||
@@ -40,0 +40,0 @@ "build": "vite build", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
199497
3812