@coinmasters/types
Advanced tools
Comparing version 4.0.2 to 4.1.0
@@ -299,24 +299,24 @@ /// <reference types="node" /> | ||
export declare enum DerivationPath { | ||
ARB = "m/44'/60'/0'/0", | ||
AVAX = "m/44'/60'/0'/0", | ||
BASE = "m/44'/60'/0'/0", | ||
BCH = "m/44'/145'/0'/0", | ||
BNB = "m/44'/714'/0'/0", | ||
BSC = "m/44'/60'/0'/0", | ||
BTC = "m/84'/0'/0'/0", | ||
DOGE = "m/44'/3'/0'/0", | ||
DASH = "m/44'/5'/0'/0", | ||
DGB = "m/44'/20'/0'/0", | ||
ETH = "m/44'/60'/0'/0", | ||
EOS = "m/44'/194'/0'/0", | ||
GAIA = "m/44'/118'/0'/0", | ||
KUJI = "m/44'/118'/0'/0", | ||
LTC = "m/84'/2'/0'/0", | ||
MATIC = "m/44'/60'/0'/0", | ||
MAYA = "m/44'/931'/0'/0", | ||
OP = "m/44'/60'/0'/0", | ||
OSMO = "m/44'/118'/0'/0", | ||
XRP = "m/44'/144'/0'/0", | ||
THOR = "m/44'/931'/0'/0", | ||
ZEC = "m/44'/133'/0'/0" | ||
ARB = "m/44'/60'/0'/0/0", | ||
AVAX = "m/44'/60'/0'/0/0", | ||
BASE = "m/44'/60'/0'/0/0", | ||
BCH = "m/44'/145'/0'/0/0", | ||
BNB = "m/44'/714'/0'/0/0", | ||
BSC = "m/44'/60'/0'/0/0", | ||
BTC = "m/84'/0'/0'/0/0", | ||
DOGE = "m/44'/3'/0'/0/0", | ||
DASH = "m/44'/5'/0'/0/0", | ||
DGB = "m/44'/20'/0'/0/0", | ||
ETH = "m/44'/60'/0'/0/0", | ||
EOS = "m/44'/194'/0'/0/0", | ||
GAIA = "m/44'/118'/0'/0/0", | ||
KUJI = "m/44'/118'/0'/0/0", | ||
LTC = "m/84'/2'/0'/0/0", | ||
MATIC = "m/44'/60'/0'/0/0", | ||
MAYA = "m/44'/931'/0'/0/0", | ||
OP = "m/44'/60'/0'/0/0", | ||
OSMO = "m/44'/118'/0'/0/0", | ||
XRP = "m/44'/144'/0'/0/0", | ||
THOR = "m/44'/931'/0'/0/0", | ||
ZEC = "m/44'/133'/0'/0/0" | ||
} | ||
@@ -570,2 +570,3 @@ | ||
BinanceSmartChain = "https://bsc-dataseed.binance.org", | ||
Base = "https://base.llamarpc.com", | ||
Bitcoin = "https://node-router.thorswap.net/bitcoin", | ||
@@ -582,4 +583,5 @@ BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", | ||
Optimism = "https://mainnet.optimism.io", | ||
Osmosis = "https://rpc-osmosis.keplr.app", | ||
Osmosis = "https://lcd-osmosis.keplr.app", | ||
Polygon = "https://polygon-rpc.com", | ||
Ripple = "https://xrplcluster.com", | ||
THORChain = "https://rpc.thorswap.net", | ||
@@ -586,0 +588,0 @@ THORChainStagenet = "https://stagenet-rpc.ninerealms.com" |
@@ -1,5 +0,5 @@ | ||
var C = Object.defineProperty; | ||
var B = (e, a, s) => a in e ? C(e, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[a] = s; | ||
var h = Object.defineProperty; | ||
var B = (e, a, s) => a in e ? h(e, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[a] = s; | ||
var r = (e, a, s) => (B(e, typeof a != "symbol" ? a + "" : a, s), s); | ||
const F = [ | ||
const X = [ | ||
{ inputs: [], stateMutability: "nonpayable", type: "constructor" }, | ||
@@ -684,3 +684,3 @@ { | ||
type: c, | ||
options: { shouldLog: O, shouldThrow: f, shouldTrace: h } = { | ||
options: { shouldLog: O, shouldThrow: f, shouldTrace: C } = { | ||
shouldLog: !0, | ||
@@ -706,3 +706,3 @@ shouldThrow: !0, | ||
shouldLog: O || !0, | ||
shouldTrace: h || !0, | ||
shouldTrace: C || !0, | ||
shouldThrow: f || !1 | ||
@@ -791,3 +791,3 @@ }, this.displayMessageParams = u || [], this.options.shouldTrace && Error.captureStackTrace(this); | ||
GAIA: "cosmos:cosmoshub-4", | ||
DASH: "bip122:dash-hash", | ||
DASH: "bip122:000007d91d1254d60e2dd1ae58038307", | ||
DGB: "bip122:digibytes-hash", | ||
@@ -803,3 +803,3 @@ DOGE: "bip122:00000000001a91e3dace36e2be3bf030", | ||
MATIC: "eip155:137", | ||
XRP: "ripple:unknown", | ||
XRP: "ripple:4109C6F2045FC7EFF4CDE8F9905D19C2", | ||
THOR: "cosmos:thorchain-mainnet-v1", | ||
@@ -812,3 +812,3 @@ ZEC: "bip122:0000000000196a45" | ||
} | ||
var x = /* @__PURE__ */ ((e) => (e.ARB = "0x0000000000000000000000000000000000000000", e.AVAX = "0x0000000000000000000000000000000000000000", e.ETH = "0x0000000000000000000000000000000000000000", e.BSC = "0x0000000000000000000000000000000000000000", e.MATIC = "0x0000000000000000000000000000000000001010", e.OP = "0x4200000000000000000000000000000000000042", e))(x || {}), R = /* @__PURE__ */ ((e) => (e.ARB = "m/44'/60'/0'/0", e.AVAX = "m/44'/60'/0'/0", e.BASE = "m/44'/60'/0'/0", e.BCH = "m/44'/145'/0'/0", e.BNB = "m/44'/714'/0'/0", e.BSC = "m/44'/60'/0'/0", e.BTC = "m/84'/0'/0'/0", e.DOGE = "m/44'/3'/0'/0", e.DASH = "m/44'/5'/0'/0", e.DGB = "m/44'/20'/0'/0", e.ETH = "m/44'/60'/0'/0", e.EOS = "m/44'/194'/0'/0", e.GAIA = "m/44'/118'/0'/0", e.KUJI = "m/44'/118'/0'/0", e.LTC = "m/84'/2'/0'/0", e.MATIC = "m/44'/60'/0'/0", e.MAYA = "m/44'/931'/0'/0", e.OP = "m/44'/60'/0'/0", e.OSMO = "m/44'/118'/0'/0", e.XRP = "m/44'/144'/0'/0", e.THOR = "m/44'/931'/0'/0", e.ZEC = "m/44'/133'/0'/0", e))(R || {}); | ||
var x = /* @__PURE__ */ ((e) => (e.ARB = "0x0000000000000000000000000000000000000000", e.AVAX = "0x0000000000000000000000000000000000000000", e.ETH = "0x0000000000000000000000000000000000000000", e.BSC = "0x0000000000000000000000000000000000000000", e.MATIC = "0x0000000000000000000000000000000000001010", e.OP = "0x4200000000000000000000000000000000000042", e))(x || {}), L = /* @__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))(L || {}); | ||
const $ = { | ||
@@ -838,3 +838,3 @@ ARB: [44, 60, 0, 0, 0], | ||
}; | ||
var L = /* @__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.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))(L || {}); | ||
var R = /* @__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.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))(R || {}); | ||
const T = [ | ||
@@ -877,3 +877,3 @@ "ETH", | ||
]; | ||
var m = /* @__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.Maya = "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))(m || {}), E = /* @__PURE__ */ ((e) => (e.Arbitrum = "https://arb1.arbitrum.io/rpc", e.Avalanche = "https://node-router.thorswap.net/avalanche-c", e.Binance = "https://base.llamarpc.com", 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.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://node-router.thorswap.net/ethereum", 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.Osmosis = "https://rpc-osmosis.keplr.app", e.Polygon = "https://polygon-rpc.com", e.THORChain = "https://rpc.thorswap.net", e.THORChainStagenet = "https://stagenet-rpc.ninerealms.com", e))(E || {}), D = /* @__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))(D || {}); | ||
var m = /* @__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.Maya = "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))(m || {}), E = /* @__PURE__ */ ((e) => (e.Arbitrum = "https://arb1.arbitrum.io/rpc", e.Avalanche = "https://node-router.thorswap.net/avalanche-c", e.Binance = "https://base.llamarpc.com", e.BinanceSmartChain = "https://bsc-dataseed.binance.org", e.Base = "https://base.llamarpc.com", 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://node-router.thorswap.net/ethereum", 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.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))(E || {}), D = /* @__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))(D || {}); | ||
const d = Object.values(n), M = Object.keys(n), l = d.reduce( | ||
@@ -1013,3 +1013,3 @@ (e, a) => { | ||
D as ApiUrl, | ||
L as BaseDecimal, | ||
R as BaseDecimal, | ||
n as Chain, | ||
@@ -1025,3 +1025,3 @@ m as ChainId, | ||
z as CosmosChainList, | ||
R as DerivationPath, | ||
L as DerivationPath, | ||
t as ERROR_CODE, | ||
@@ -1047,4 +1047,4 @@ b as ERROR_MODULE, | ||
re as availableChainsByWallet, | ||
F as erc20ABI, | ||
X as erc20ABI, | ||
j as getChainEnumValue | ||
}; |
@@ -7,4 +7,4 @@ { | ||
"ethers": "6.9.0", | ||
"vite": "4.5.0", | ||
"@internal/config": "2.0.1" | ||
"vite": "4.4.9", | ||
"@internal/config": "2.1.0" | ||
}, | ||
@@ -37,5 +37,6 @@ "eslintConfig": { | ||
"types": "./dist/index.d.ts", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"scripts": { | ||
"build": "vite build", | ||
"build:watch": "nodemon --watch src --exec 'pnpm run build'", | ||
"clean": "rm -rf dist vite.config.ts.* .turbo node_modules", | ||
@@ -42,0 +43,0 @@ "lint": "eslint ./ --ext .ts,.tsx --fix; tsc --noEmit", |
@@ -86,3 +86,3 @@ export enum Chain { | ||
[Chain.Cosmos]: 'cosmos:cosmoshub-4', | ||
[Chain.Dash]: 'bip122:dash-hash', | ||
[Chain.Dash]: 'bip122:000007d91d1254d60e2dd1ae58038307', | ||
[Chain.Digibyte]: 'bip122:digibytes-hash', | ||
@@ -98,3 +98,3 @@ [Chain.Dogecoin]: 'bip122:00000000001a91e3dace36e2be3bf030', | ||
[Chain.Polygon]: 'eip155:137', | ||
[Chain.Ripple]: 'ripple:unknown', | ||
[Chain.Ripple]: 'ripple:4109C6F2045FC7EFF4CDE8F9905D19C2', | ||
[Chain.THORChain]: 'cosmos:thorchain-mainnet-v1', | ||
@@ -124,24 +124,24 @@ [Chain.Zcash]: 'bip122:0000000000196a45', | ||
export enum DerivationPath { | ||
ARB = "m/44'/60'/0'/0", | ||
AVAX = "m/44'/60'/0'/0", | ||
BASE = "m/44'/60'/0'/0", | ||
BCH = "m/44'/145'/0'/0", | ||
BNB = "m/44'/714'/0'/0", | ||
BSC = "m/44'/60'/0'/0", | ||
BTC = "m/84'/0'/0'/0", | ||
DOGE = "m/44'/3'/0'/0", | ||
DASH = "m/44'/5'/0'/0", | ||
DGB = "m/44'/20'/0'/0", | ||
ETH = "m/44'/60'/0'/0", | ||
EOS = "m/44'/194'/0'/0", | ||
GAIA = "m/44'/118'/0'/0", | ||
KUJI = "m/44'/118'/0'/0", | ||
LTC = "m/84'/2'/0'/0", | ||
MATIC = "m/44'/60'/0'/0", | ||
MAYA = "m/44'/931'/0'/0", | ||
OP = "m/44'/60'/0'/0", | ||
OSMO = "m/44'/118'/0'/0", | ||
XRP = "m/44'/144'/0'/0", | ||
THOR = "m/44'/931'/0'/0", | ||
ZEC = "m/44'/133'/0'/0", | ||
ARB = "m/44'/60'/0'/0/0", | ||
AVAX = "m/44'/60'/0'/0/0", | ||
BASE = "m/44'/60'/0'/0/0", | ||
BCH = "m/44'/145'/0'/0/0", | ||
BNB = "m/44'/714'/0'/0/0", | ||
BSC = "m/44'/60'/0'/0/0", | ||
BTC = "m/84'/0'/0'/0/0", | ||
DOGE = "m/44'/3'/0'/0/0", | ||
DASH = "m/44'/5'/0'/0/0", | ||
DGB = "m/44'/20'/0'/0/0", | ||
ETH = "m/44'/60'/0'/0/0", | ||
EOS = "m/44'/194'/0'/0/0", | ||
GAIA = "m/44'/118'/0'/0/0", | ||
KUJI = "m/44'/118'/0'/0/0", | ||
LTC = "m/84'/2'/0'/0/0", | ||
MATIC = "m/44'/60'/0'/0/0", | ||
MAYA = "m/44'/931'/0'/0/0", | ||
OP = "m/44'/60'/0'/0/0", | ||
OSMO = "m/44'/118'/0'/0/0", | ||
XRP = "m/44'/144'/0'/0/0", | ||
THOR = "m/44'/931'/0'/0/0", | ||
ZEC = "m/44'/133'/0'/0/0", | ||
} | ||
@@ -294,2 +294,3 @@ | ||
BinanceSmartChain = 'https://bsc-dataseed.binance.org', | ||
Base = 'https://base.llamarpc.com', | ||
Bitcoin = 'https://node-router.thorswap.net/bitcoin', | ||
@@ -306,4 +307,5 @@ BitcoinCash = 'https://node-router.thorswap.net/bitcoin-cash', | ||
Optimism = 'https://mainnet.optimism.io', | ||
Osmosis = 'https://rpc-osmosis.keplr.app', | ||
Osmosis = 'https://lcd-osmosis.keplr.app', | ||
Polygon = 'https://polygon-rpc.com', | ||
Ripple = 'https://xrplcluster.com', | ||
THORChain = 'https://rpc.thorswap.net', | ||
@@ -310,0 +312,0 @@ THORChainStagenet = 'https://stagenet-rpc.ninerealms.com', |
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
192882
3628