Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coinmasters/types

Package Overview
Dependencies
Maintainers
2
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coinmasters/types - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

283

dist/index.es.js

@@ -1,3 +0,3 @@

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 f = Object.defineProperty;
var B = (e, a, s) => a in e ? f(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);

@@ -618,55 +618,55 @@ const X = [

];
var S = /* @__PURE__ */ ((e) => (e.VALIDATION_ERROR = "VALIDATION_ERROR", e.REQUEST_PARAMETER_ERROR = "REQUEST_PARAMETER_ERROR", e.RESPONSE_PARSING_ERROR = "RESPONSE_PARSING_ERROR", e.UNSUPPORTED = "UNSUPPORTED", e.NOT_IMPLEMENTED = "NOT_IMPLEMENTED", e.INCOMPATIBLE_ASSETS_OPERATIONS = "INCOMPATIBLE_ASSETS_OPERATIONS", e.SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE", e.DOWN_FOR_MAINTENANCE = "DOWN_FOR_MAINTENANCE", e.MISSING_INBOUND_INFO = "MISSING_INBOUND_INFO", e.QUOTE_FETCHING_ERROR = "QUOTE_FETCHING_ERROR", e.AIRDROP_ERROR = "AIRDROP_ERROR", e.UNHANDLED_ERROR = "UNHANDLED_ERROR", e))(S || {}), b = /* @__PURE__ */ ((e) => (e.HEALTH_CONTROLLER = "1000", e.LIQUIDITY_CONTROLLER = "1001", e.PROVIDER_CONTROLLER = "1002", e.QUOTE_CONTROLLER = "1003", e.SWAP_CONTROLLER = "1004", e.UTIL_CONTROLLER = "1005", e.AIRDROP_CONTROLLER = "1006", e.PROVIDER = "2000", e.ASSET = "2001", e.TOKEN_LIST = "2002", e.QUOTE = "2100", e.QUOTE_TXN_DETAILS = "2101", e.THORCHAIN_PROVIDER = "3000", e.UNISWAPV2_ETH_PROVIDER = "3001", e.UNISWAPV3_ETH_PROVIDER = "3002", e.SUSHISWAP_ETH_PROVIDER = "3003", e.PANCAKESWAP_BSC_PROVIDER = "3004", e.PANCAKESWAP_ETH_PROVIDER = "3005", e.ONEINCH_ETH_PROVIDER = "3006", e.ONEINCH_BSC_PROVIDER = "3007", e.ONEINCH_AVAX_PROVIDER = "3008", e.ZEROX_ETH_PROVIDER = "3009", e.WOOFI_AVAX_PROVIDER = "3010", e.PANGOLIN_AVAX_PROVIDER = "3011", e.TRADERJOE_AVAX_PROVIDER = "3012", e.KYBER_ETH_PROVIDER = "3013", e.KYBER_AVAX_PROVIDER = "3014", e.WOOFI_BSC_PROVIDER = "3015", e.STARGATE_PROVIDER = "3016", e.PROVIDER_UTIL = "4000", e.TXN_DETAILS = "5000", e.AIRDROP_UTIL = "6000", e))(b || {}), t = /* @__PURE__ */ ((e) => (e.INVALID_INPUT_PARAMETERS = "1000", e.UNKNOWN_PROVIDERS = "1001", e.CANNOT_FIND_INBOUND_ADDRESS = "1002", e.NO_INBOUND_ADDRESSES = "1003", e.CHAIN_HALTED_OR_UNSUPPORTED = "1004", e.MISSING_INPUT_PARAMETER = "1005", e.INVALID_TYPE_GENERIC = "1100", e.INVALID_NUMBER_STRING = "1101", e.INVALID_NUMBER = "1102", e.INVALID_BOOLEAN = "1103", e.INVALID_OBJECT = "1104", e.INVALID_ARRAY = "1105", e.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2000", e.SELL_BUY_ASSETS_ARE_THE_SAME = "2001", e.MISSING_SOURCE_ADDRESS_FOR_SYNTH = "2002", e.AFF_ADDRESS_AND_BPS_OR_NEITHER = "2003", e.AFF_ADDRESS_TOO_LONG = "2004", e.AFF_BPS_INTEGER_0_100 = "2005", e.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN = "2006", e.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN = "2007", e.PREFERRED_PROFVIDER_NOT_SUPPORTED = "2008", e.DESTINATION_ADDRESS_SMART_CONTRACT = "2009", e.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2010", e.SOURCE_ADDRESS_SMART_CONTRACT = "2011", e.INVALID_PROVIDER = "2100", e.MISSING_CROSS_CHAIN_PROVIDER = "2101", e.MISSING_AVAX_PROVIDER = "2102", e.MISSING_BSC_PROVIDER = "2103", e.MISSING_ETH_PROVIDER = "2104", e.INVALID_PROVIDER_FOR_SWAP_OUT = "2105", e.MISSING_ARB_PROVIDER = "2106", e.INVALID_CHAIN = "2200", e.INVALID_ASSET = "2201", e.INVALID_ASSET_IDENTIFIER = "2202", e.UNSUPPORTED_CHAIN = "2204", e.UNSUPPORTED_ASSET = "2203", e.UNSUPPORTED_ASSET_FOR_SWAPOUT = "2205", e.INVALID_SOURCE_ADDRESS = "2300", e.INVALID_DESTINATION_ADDRESS = "2301", e.THORNODE_QUOTE_GENERIC_ERROR = "3000", e.NOT_ENOUGH_SYNTH_BALANCE = "3001", e.SYNTH_MINTING_CAP_REACHED = "3002", e.INVALID_QUOTE_MODE = "4000", e.NO_QUOTES = "4001", e.SERVICE_UNAVAILABLE_GENERIC = "5000", e.MISSING_GAS_DATA_GENERIC = "5100", e.MISSING_TOKEN_INFO_GENERIC = "5200", e.CANT_FIND_TOKEN_LIST = "5201", e.NO_PRICE = "5202", e.PRICE_IS_STALE = "5203", e.ADDRESS_NOT_WHITELISTED = "6000", e.ADDRESS_ALREADY_CLAIMED = "6001", e.TEMPORARY_ERROR = "9999", e))(t || {});
var S = /* @__PURE__ */ ((e) => (e.VALIDATION_ERROR = "VALIDATION_ERROR", e.REQUEST_PARAMETER_ERROR = "REQUEST_PARAMETER_ERROR", e.RESPONSE_PARSING_ERROR = "RESPONSE_PARSING_ERROR", e.UNSUPPORTED = "UNSUPPORTED", e.NOT_IMPLEMENTED = "NOT_IMPLEMENTED", e.INCOMPATIBLE_ASSETS_OPERATIONS = "INCOMPATIBLE_ASSETS_OPERATIONS", e.SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE", e.DOWN_FOR_MAINTENANCE = "DOWN_FOR_MAINTENANCE", e.MISSING_INBOUND_INFO = "MISSING_INBOUND_INFO", e.QUOTE_FETCHING_ERROR = "QUOTE_FETCHING_ERROR", e.AIRDROP_ERROR = "AIRDROP_ERROR", e.UNHANDLED_ERROR = "UNHANDLED_ERROR", e))(S || {}), b = /* @__PURE__ */ ((e) => (e.HEALTH_CONTROLLER = "1000", e.LIQUIDITY_CONTROLLER = "1001", e.PROVIDER_CONTROLLER = "1002", e.QUOTE_CONTROLLER = "1003", e.SWAP_CONTROLLER = "1004", e.UTIL_CONTROLLER = "1005", e.AIRDROP_CONTROLLER = "1006", e.PROVIDER = "2000", e.ASSET = "2001", e.TOKEN_LIST = "2002", e.QUOTE = "2100", e.QUOTE_TXN_DETAILS = "2101", e.THORCHAIN_PROVIDER = "3000", e.UNISWAPV2_ETH_PROVIDER = "3001", e.UNISWAPV3_ETH_PROVIDER = "3002", e.SUSHISWAP_ETH_PROVIDER = "3003", e.PANCAKESWAP_BSC_PROVIDER = "3004", e.PANCAKESWAP_ETH_PROVIDER = "3005", e.ONEINCH_ETH_PROVIDER = "3006", e.ONEINCH_BSC_PROVIDER = "3007", e.ONEINCH_AVAX_PROVIDER = "3008", e.ZEROX_ETH_PROVIDER = "3009", e.WOOFI_AVAX_PROVIDER = "3010", e.PANGOLIN_AVAX_PROVIDER = "3011", e.TRADERJOE_AVAX_PROVIDER = "3012", e.KYBER_ETH_PROVIDER = "3013", e.KYBER_AVAX_PROVIDER = "3014", e.WOOFI_BSC_PROVIDER = "3015", e.STARGATE_PROVIDER = "3016", e.PROVIDER_UTIL = "4000", e.TXN_DETAILS = "5000", e.AIRDROP_UTIL = "6000", e))(b || {}), n = /* @__PURE__ */ ((e) => (e.INVALID_INPUT_PARAMETERS = "1000", e.UNKNOWN_PROVIDERS = "1001", e.CANNOT_FIND_INBOUND_ADDRESS = "1002", e.NO_INBOUND_ADDRESSES = "1003", e.CHAIN_HALTED_OR_UNSUPPORTED = "1004", e.MISSING_INPUT_PARAMETER = "1005", e.INVALID_TYPE_GENERIC = "1100", e.INVALID_NUMBER_STRING = "1101", e.INVALID_NUMBER = "1102", e.INVALID_BOOLEAN = "1103", e.INVALID_OBJECT = "1104", e.INVALID_ARRAY = "1105", e.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2000", e.SELL_BUY_ASSETS_ARE_THE_SAME = "2001", e.MISSING_SOURCE_ADDRESS_FOR_SYNTH = "2002", e.AFF_ADDRESS_AND_BPS_OR_NEITHER = "2003", e.AFF_ADDRESS_TOO_LONG = "2004", e.AFF_BPS_INTEGER_0_100 = "2005", e.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN = "2006", e.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN = "2007", e.PREFERRED_PROFVIDER_NOT_SUPPORTED = "2008", e.DESTINATION_ADDRESS_SMART_CONTRACT = "2009", e.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2010", e.SOURCE_ADDRESS_SMART_CONTRACT = "2011", e.INVALID_PROVIDER = "2100", e.MISSING_CROSS_CHAIN_PROVIDER = "2101", e.MISSING_AVAX_PROVIDER = "2102", e.MISSING_BSC_PROVIDER = "2103", e.MISSING_ETH_PROVIDER = "2104", e.INVALID_PROVIDER_FOR_SWAP_OUT = "2105", e.MISSING_ARB_PROVIDER = "2106", e.INVALID_CHAIN = "2200", e.INVALID_ASSET = "2201", e.INVALID_ASSET_IDENTIFIER = "2202", e.UNSUPPORTED_CHAIN = "2204", e.UNSUPPORTED_ASSET = "2203", e.UNSUPPORTED_ASSET_FOR_SWAPOUT = "2205", e.INVALID_SOURCE_ADDRESS = "2300", e.INVALID_DESTINATION_ADDRESS = "2301", e.THORNODE_QUOTE_GENERIC_ERROR = "3000", e.NOT_ENOUGH_SYNTH_BALANCE = "3001", e.SYNTH_MINTING_CAP_REACHED = "3002", e.INVALID_QUOTE_MODE = "4000", e.NO_QUOTES = "4001", e.SERVICE_UNAVAILABLE_GENERIC = "5000", e.MISSING_GAS_DATA_GENERIC = "5100", e.MISSING_TOKEN_INFO_GENERIC = "5200", e.CANT_FIND_TOKEN_LIST = "5201", e.NO_PRICE = "5202", e.PRICE_IS_STALE = "5203", e.ADDRESS_NOT_WHITELISTED = "6000", e.ADDRESS_ALREADY_CLAIMED = "6001", e.TEMPORARY_ERROR = "9999", e))(n || {});
const V = {
[t.INVALID_INPUT_PARAMETERS]: "Invalid input parameters: {0}.",
[t.UNKNOWN_PROVIDERS]: "Unknown providers: {0}.",
[t.CANNOT_FIND_INBOUND_ADDRESS]: "Cannot find inbound address.",
[t.NO_INBOUND_ADDRESSES]: "No inbound addresses.",
[t.CHAIN_HALTED_OR_UNSUPPORTED]: "Chain {0} halted or unsupported.",
[t.MISSING_INPUT_PARAMETER]: "Missing input parameter: {0}.",
[t.INVALID_TYPE_GENERIC]: "Invalid type",
[t.INVALID_NUMBER_STRING]: "Invalid number string.",
[t.INVALID_NUMBER]: "Invalid number.",
[t.INVALID_BOOLEAN]: "Invalid boolean.",
[t.INVALID_OBJECT]: "Invalid object.",
[t.INVALID_ARRAY]: "Invalid array.",
[t.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER]: "Sell amount must be a positive integer.",
[t.SELL_BUY_ASSETS_ARE_THE_SAME]: "Sell and buy assets are the same.",
[t.MISSING_SOURCE_ADDRESS_FOR_SYNTH]: "Source address is required for synth quote.",
[t.AFF_ADDRESS_AND_BPS_OR_NEITHER]: "Must provide affiliateAddress and affiliateBasisPoints params, or neither.",
[t.AFF_ADDRESS_TOO_LONG]: "affiliateAddress too long: 3 characters max.",
[t.AFF_BPS_INTEGER_0_100]: "affiliateBasisPoints must be an integer between 0 and 100.",
[t.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN]: "Source address {0} invalid for sell chain.",
[t.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN]: "Destination address {0} invalid for buy chain.",
[t.PREFERRED_PROFVIDER_NOT_SUPPORTED]: "Preferred provider not supported.",
[t.DESTINATION_ADDRESS_SMART_CONTRACT]: "Destination address is a smart contract.",
[t.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER]: "Buy amount must be a positive integer.",
[t.INVALID_PROVIDER]: "Invalid provider {0}.",
[t.MISSING_CROSS_CHAIN_PROVIDER]: "Missing cross-chain provider.",
[t.MISSING_AVAX_PROVIDER]: "Missing AVAX provider.",
[t.MISSING_BSC_PROVIDER]: "Missing BSC provider.",
[t.MISSING_ETH_PROVIDER]: "Missing ETH provider.",
[t.MISSING_ARB_PROVIDER]: "Missing ARB provider.",
[t.INVALID_PROVIDER_FOR_SWAP_OUT]: "Invalid provider for swap out.",
[t.INVALID_CHAIN]: "Invalid chain {0}.",
[t.INVALID_ASSET]: "Invalid asset {0}.",
[t.UNSUPPORTED_CHAIN]: "Unsupported chain {0}.",
[t.UNSUPPORTED_ASSET]: "Unsupported asset {0}.",
[t.UNSUPPORTED_ASSET_FOR_SWAPOUT]: "Unsupported asset {0} for swap out.",
[t.THORNODE_QUOTE_GENERIC_ERROR]: "ThorNode quote generic error.",
[t.INVALID_SOURCE_ADDRESS]: "Invalid source address {0}",
[t.INVALID_DESTINATION_ADDRESS]: "Invalid destination address {0}",
[t.NOT_ENOUGH_SYNTH_BALANCE]: "Source address doesn't have enough synth balance for this quote.",
[t.SYNTH_MINTING_CAP_REACHED]: "Synth minting cap reached.",
[t.INVALID_QUOTE_MODE]: "Invalid quote mode.",
[t.NO_QUOTES]: "No quotes to service this request.",
[t.SERVICE_UNAVAILABLE_GENERIC]: "Service unavailable.",
[t.MISSING_GAS_DATA_GENERIC]: "Missing gas data.",
[t.MISSING_TOKEN_INFO_GENERIC]: "Missing token info.",
[t.CANT_FIND_TOKEN_LIST]: "Can't find tokenlist {0}.",
[t.NO_PRICE]: "No price for asset {0}.",
[t.PRICE_IS_STALE]: "Price is stale for asset {0}.",
[t.ADDRESS_NOT_WHITELISTED]: "Address {0} not whitelisted for airdrop.",
[t.ADDRESS_ALREADY_CLAIMED]: "Address {0} already claimed the airdrop."
}, y = (e, a) => {
[n.INVALID_INPUT_PARAMETERS]: "Invalid input parameters: {0}.",
[n.UNKNOWN_PROVIDERS]: "Unknown providers: {0}.",
[n.CANNOT_FIND_INBOUND_ADDRESS]: "Cannot find inbound address.",
[n.NO_INBOUND_ADDRESSES]: "No inbound addresses.",
[n.CHAIN_HALTED_OR_UNSUPPORTED]: "Chain {0} halted or unsupported.",
[n.MISSING_INPUT_PARAMETER]: "Missing input parameter: {0}.",
[n.INVALID_TYPE_GENERIC]: "Invalid type",
[n.INVALID_NUMBER_STRING]: "Invalid number string.",
[n.INVALID_NUMBER]: "Invalid number.",
[n.INVALID_BOOLEAN]: "Invalid boolean.",
[n.INVALID_OBJECT]: "Invalid object.",
[n.INVALID_ARRAY]: "Invalid array.",
[n.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER]: "Sell amount must be a positive integer.",
[n.SELL_BUY_ASSETS_ARE_THE_SAME]: "Sell and buy assets are the same.",
[n.MISSING_SOURCE_ADDRESS_FOR_SYNTH]: "Source address is required for synth quote.",
[n.AFF_ADDRESS_AND_BPS_OR_NEITHER]: "Must provide affiliateAddress and affiliateBasisPoints params, or neither.",
[n.AFF_ADDRESS_TOO_LONG]: "affiliateAddress too long: 3 characters max.",
[n.AFF_BPS_INTEGER_0_100]: "affiliateBasisPoints must be an integer between 0 and 100.",
[n.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN]: "Source address {0} invalid for sell chain.",
[n.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN]: "Destination address {0} invalid for buy chain.",
[n.PREFERRED_PROFVIDER_NOT_SUPPORTED]: "Preferred provider not supported.",
[n.DESTINATION_ADDRESS_SMART_CONTRACT]: "Destination address is a smart contract.",
[n.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER]: "Buy amount must be a positive integer.",
[n.INVALID_PROVIDER]: "Invalid provider {0}.",
[n.MISSING_CROSS_CHAIN_PROVIDER]: "Missing cross-chain provider.",
[n.MISSING_AVAX_PROVIDER]: "Missing AVAX provider.",
[n.MISSING_BSC_PROVIDER]: "Missing BSC provider.",
[n.MISSING_ETH_PROVIDER]: "Missing ETH provider.",
[n.MISSING_ARB_PROVIDER]: "Missing ARB provider.",
[n.INVALID_PROVIDER_FOR_SWAP_OUT]: "Invalid provider for swap out.",
[n.INVALID_CHAIN]: "Invalid chain {0}.",
[n.INVALID_ASSET]: "Invalid asset {0}.",
[n.UNSUPPORTED_CHAIN]: "Unsupported chain {0}.",
[n.UNSUPPORTED_ASSET]: "Unsupported asset {0}.",
[n.UNSUPPORTED_ASSET_FOR_SWAPOUT]: "Unsupported asset {0} for swap out.",
[n.THORNODE_QUOTE_GENERIC_ERROR]: "ThorNode quote generic error.",
[n.INVALID_SOURCE_ADDRESS]: "Invalid source address {0}",
[n.INVALID_DESTINATION_ADDRESS]: "Invalid destination address {0}",
[n.NOT_ENOUGH_SYNTH_BALANCE]: "Source address doesn't have enough synth balance for this quote.",
[n.SYNTH_MINTING_CAP_REACHED]: "Synth minting cap reached.",
[n.INVALID_QUOTE_MODE]: "Invalid quote mode.",
[n.NO_QUOTES]: "No quotes to service this request.",
[n.SERVICE_UNAVAILABLE_GENERIC]: "Service unavailable.",
[n.MISSING_GAS_DATA_GENERIC]: "Missing gas data.",
[n.MISSING_TOKEN_INFO_GENERIC]: "Missing token info.",
[n.CANT_FIND_TOKEN_LIST]: "Can't find tokenlist {0}.",
[n.NO_PRICE]: "No price for asset {0}.",
[n.PRICE_IS_STALE]: "Price is stale for asset {0}.",
[n.ADDRESS_NOT_WHITELISTED]: "Address {0} not whitelisted for airdrop.",
[n.ADDRESS_ALREADY_CLAIMED]: "Address {0} already claimed the airdrop."
}, u = (e, a) => {
let s = V[e];

@@ -682,6 +682,6 @@ for (let i = 0; i < a.length; i++)

module: _,
code: o,
code: d,
message: N,
type: c,
options: { shouldLog: O, shouldThrow: f, shouldTrace: C } = {
options: { shouldLog: O, shouldThrow: C, shouldTrace: h } = {
shouldLog: !0,

@@ -691,5 +691,5 @@ shouldThrow: !0,

},
displayMessageParams: u
displayMessageParams: o
}) {
const A = N || y(o, u || []) || "";
const A = N || u(d, o || []) || "";
super(A);

@@ -706,7 +706,7 @@ r(this, "status");

r(this, "displayMessageParams");
this.status = s, this.revision = i || "NO_REVISION", this.module = _, this.message = A, this.display = y(o, u || []), this.code = o, this.type = c || S.UNHANDLED_ERROR, this.options = {
this.status = s, this.revision = i || "NO_REVISION", this.module = _, this.message = A, this.display = u(d, o || []), this.code = d, this.type = c || S.UNHANDLED_ERROR, this.options = {
shouldLog: O || !0,
shouldTrace: C || !0,
shouldThrow: f || !1
}, this.displayMessageParams = u || [], this.options.shouldTrace && Error.captureStackTrace(this);
shouldTrace: h || !0,
shouldThrow: C || !1
}, this.displayMessageParams = o || [], this.options.shouldTrace && Error.captureStackTrace(this);
}

@@ -723,3 +723,3 @@ static fromErrorInfo(s) {

get displayMessage() {
return y(this.code, this.displayMessageParams || []);
return u(this.code, this.displayMessageParams || []);
}

@@ -734,3 +734,3 @@ handle() {

}
var n = /* @__PURE__ */ ((e) => (e.Arbitrum = "ARB", e.Avalanche = "AVAX", e.Base = "BASE", e.Binance = "BNB", e.BinanceSmartChain = "BSC", e.Bitcoin = "BTC", e.BitcoinCash = "BCH", e.Cosmos = "GAIA", e.Dash = "DASH", e.Digibyte = "DGB", e.Dogecoin = "DOGE", e.EOS = "EOS", e.Ethereum = "ETH", e.Kujira = "KUJI", e.Litecoin = "LTC", e.Maya = "MAYA", e.Optimism = "OP", e.Osmosis = "OSMO", e.Polygon = "MATIC", e.Ripple = "XRP", e.THORChain = "THOR", e.Zcash = "ZEC", e))(n || {});
var t = /* @__PURE__ */ ((e) => (e.Arbitrum = "ARB", e.Avalanche = "AVAX", e.Base = "BASE", e.Binance = "BNB", e.BinanceSmartChain = "BSC", e.Bitcoin = "BTC", e.BitcoinCash = "BCH", e.Cosmos = "GAIA", e.Dash = "DASH", e.Digibyte = "DGB", e.Dogecoin = "DOGE", e.EOS = "EOS", e.Ethereum = "ETH", e.Kujira = "KUJI", e.Litecoin = "LTC", e.Maya = "MAYA", e.Optimism = "OP", e.Osmosis = "OSMO", e.Polygon = "MATIC", e.Ripple = "XRP", e.THORChain = "THOR", e.Zcash = "ZEC", e))(t || {});
function j(e) {

@@ -810,7 +810,7 @@ switch (e) {

}, H = {};
for (const e in n) {
const a = P[n[e]];
H[a] = n[e];
for (const e in t) {
const a = P[t[e]];
H[a] = t[e];
}
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 || {});
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/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))(R || {});
const $ = {

@@ -840,4 +840,4 @@ ARB: [44, 60, 0, 0, 0],

};
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 = [
var D = /* @__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))(D || {});
const y = [
"ETH",

@@ -879,16 +879,16 @@ "AVAX",

];
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(
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 || {}), L = /* @__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))(L || {});
const p = Object.values(t), v = Object.keys(t), l = p.reduce(
(e, a) => {
const s = M.find((i) => n[i] === a);
const s = v.find((i) => t[i] === a);
return s && (e[a] = s), e;
},
{}
), ee = d.reduce(
), ee = p.reduce(
(e, a) => (e[a] = m[l[a]], e),
{}
), te = d.reduce(
), te = p.reduce(
(e, a) => (e[a] = E[l[a]], e),
{}
), ne = d.reduce(
), ne = p.reduce(
(e, a) => {

@@ -951,60 +951,77 @@ const s = `${l[a]}Hex`;

};
var v = /* @__PURE__ */ ((e) => (e[e.NoError = 36864] = "NoError", e))(v || {}), G = /* @__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))(G || {}), w = /* @__PURE__ */ ((e) => (e.Average = "average", e.Fast = "fast", e.Fastest = "fastest", e))(w || {}), U = /* @__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.BRAVE = "BRAVE", e.WALLETCONNECT = "WALLETCONNECT", e))(U || {});
const p = [
n.Arbitrum,
n.Avalanche,
n.Binance,
n.BinanceSmartChain,
n.Bitcoin,
n.BitcoinCash,
n.Cosmos,
n.Dogecoin,
n.Ethereum,
n.Litecoin,
n.Optimism,
n.Polygon,
n.THORChain
var M = /* @__PURE__ */ ((e) => (e[e.NoError = 36864] = "NoError", e))(M || {}), G = /* @__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))(G || {}), w = /* @__PURE__ */ ((e) => (e.Average = "average", e.Fast = "fast", e.Fastest = "fastest", e))(w || {}), U = /* @__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.BRAVE = "BRAVE", e.WALLETCONNECT = "WALLETCONNECT", e))(U || {});
const T = [
t.Arbitrum,
t.Avalanche,
t.Binance,
t.BinanceSmartChain,
t.Bitcoin,
t.BitcoinCash,
t.Cosmos,
t.Osmosis,
t.Ripple,
t.Dogecoin,
t.Dash,
t.Ethereum,
t.Litecoin,
t.Optimism,
t.Polygon,
t.THORChain
], re = {
BRAVE: T,
COINBASE_WEB: T,
KEPLR: [n.Cosmos],
KEYSTORE: p,
LEDGER: p,
BRAVE: y,
COINBASE_WEB: y,
KEPLR: [t.Cosmos],
KEYSTORE: [
t.Arbitrum,
t.Avalanche,
t.Binance,
t.BinanceSmartChain,
t.Bitcoin,
t.BitcoinCash,
t.Cosmos,
t.Dogecoin,
t.Ethereum,
t.Litecoin,
t.Optimism,
t.Polygon,
t.THORChain
],
LEDGER: T,
TREZOR: [
n.Bitcoin,
n.BitcoinCash,
n.Litecoin,
n.Dogecoin,
n.Ethereum
t.Bitcoin,
t.BitcoinCash,
t.Litecoin,
t.Dogecoin,
t.Ethereum
],
KEEPKEY: p,
KEEPKEY: T,
METAMASK: [
n.Arbitrum,
n.Avalanche,
n.BinanceSmartChain,
n.Bitcoin,
n.BitcoinCash,
n.Cosmos,
n.Dogecoin,
n.Ethereum,
n.Litecoin,
n.Optimism,
n.Polygon,
n.THORChain
t.Arbitrum,
t.Avalanche,
t.BinanceSmartChain,
t.Bitcoin,
t.BitcoinCash,
t.Cosmos,
t.Dogecoin,
t.Ethereum,
t.Litecoin,
t.Optimism,
t.Polygon,
t.THORChain
],
TRUSTWALLET_WEB: T,
XDEFI: p,
TRUSTWALLET_WEB: y,
XDEFI: T,
WALLETCONNECT: [
n.Ethereum,
n.Binance,
n.BinanceSmartChain,
n.Avalanche,
n.THORChain
t.Ethereum,
t.Binance,
t.BinanceSmartChain,
t.Avalanche,
t.THORChain
],
OKX: [
n.Ethereum,
n.Avalanche,
n.BinanceSmartChain,
n.Bitcoin,
n.Cosmos
t.Ethereum,
t.Avalanche,
t.BinanceSmartChain,
t.Bitcoin,
t.Cosmos
]

@@ -1015,5 +1032,5 @@ };

I as ApiError,
D as ApiUrl,
R as BaseDecimal,
n as Chain,
L as ApiUrl,
D as BaseDecimal,
t as Chain,
m as ChainId,

@@ -1028,8 +1045,8 @@ ae as ChainIdToChain,

z as CosmosChainList,
L as DerivationPath,
t as ERROR_CODE,
R as DerivationPath,
n as ERROR_CODE,
b as ERROR_MODULE,
S as ERROR_TYPE,
T as EVMChainList,
v as ErrorCode,
y as EVMChainList,
M as ErrorCode,
w as FeeOption,

@@ -1036,0 +1053,0 @@ G as MemoType,

@@ -8,3 +8,3 @@ {

"vite": "4.4.9",
"@internal/config": "2.1.0"
"@internal/config": "2.2.0"
},

@@ -37,3 +37,3 @@ "eslintConfig": {

"types": "./dist/index.d.ts",
"version": "4.1.0",
"version": "4.2.0",
"scripts": {

@@ -40,0 +40,0 @@ "build": "vite build",

@@ -33,3 +33,6 @@ import { Chain, EVMChainList } from './network';

Chain.Cosmos,
Chain.Osmosis,
Chain.Ripple,
Chain.Dogecoin,
Chain.Dash,
Chain.Ethereum,

@@ -46,3 +49,17 @@ Chain.Litecoin,

[WalletOption.KEPLR]: [Chain.Cosmos],
[WalletOption.KEYSTORE]: AllChainsSupported,
[WalletOption.KEYSTORE]: [
Chain.Arbitrum,
Chain.Avalanche,
Chain.Binance,
Chain.BinanceSmartChain,
Chain.Bitcoin,
Chain.BitcoinCash,
Chain.Cosmos,
Chain.Dogecoin,
Chain.Ethereum,
Chain.Litecoin,
Chain.Optimism,
Chain.Polygon,
Chain.THORChain,
],
[WalletOption.LEDGER]: AllChainsSupported,

@@ -49,0 +66,0 @@ [WalletOption.TREZOR]: [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc