@coinmasters/types
Advanced tools
Comparing version 4.7.56 to 4.7.57
@@ -68,3 +68,2 @@ /// <reference types="node" /> | ||
BCH = 8, | ||
BNB = 8, | ||
BSC = 18, | ||
@@ -94,3 +93,2 @@ BTC = 8, | ||
Base = "BASE", | ||
Binance = "BNB", | ||
BinanceSmartChain = "BSC", | ||
@@ -122,3 +120,2 @@ Bitcoin = "BTC", | ||
Base = "8453", | ||
Binance = "Binance-Chain-Tigris", | ||
BinanceSmartChain = "56", | ||
@@ -152,3 +149,2 @@ BinanceSmartChainHex = "0x38", | ||
BASE: ChainId; | ||
BNB: ChainId; | ||
BSC: ChainId; | ||
@@ -180,3 +176,2 @@ BTC: ChainId; | ||
BASE: ChainId; | ||
BNB: ChainId; | ||
BSC: ChainId; | ||
@@ -208,3 +203,2 @@ BTC: ChainId; | ||
BASE: RPCUrl; | ||
BNB: RPCUrl; | ||
BSC: RPCUrl; | ||
@@ -301,3 +295,3 @@ BTC: RPCUrl; | ||
export declare type CosmosChain = Chain.Cosmos | Chain.Osmosis | Chain.THORChain | Chain.Binance | Chain.Mayachain | Chain.Kujira; | ||
export declare type CosmosChain = Chain.Cosmos | Chain.Osmosis | Chain.THORChain | Chain.Mayachain | Chain.Kujira; | ||
@@ -311,3 +305,2 @@ export declare const CosmosChainList: CosmosChain[]; | ||
BCH = "m/44'/145'/0'/0/0", | ||
BNB = "m/44'/714'/0'/0/0", | ||
BSC = "m/44'/60'/0'/0/0", | ||
@@ -582,3 +575,2 @@ BTC = "m/84'/0'/0'/0/0", | ||
Avalanche = "https://avalanche-c-chain-rpc.publicnode.com", | ||
Binance = "https://binance.llamarpc.com", | ||
BinanceSmartChain = "https://binance.llamarpc.com", | ||
@@ -585,0 +577,0 @@ Base = "https://developer-access-mainnet.base.org", |
@@ -594,4 +594,4 @@ var f = Object.defineProperty; | ||
]; | ||
var B = /* @__PURE__ */ ((e) => (e.TC_SUPPORTED_TO_TC_SUPPORTED = "TC-TC", e.TC_SUPPORTED_TO_ETH = "TC-ERC20", e.TC_SUPPORTED_TO_AVAX = "TC-ARC20", e.TC_SUPPORTED_TO_BSC = "TC-BEP20", e.ETH_TO_TC_SUPPORTED = "ERC20-TC", e.ETH_TO_ETH = "ERC20-ERC20", e.ETH_TO_AVAX = "ERC20-ARC20", e.ETH_TO_BSC = "ERC20-BEP20", e.AVAX_TO_TC_SUPPORTED = "ARC20-TC", e.AVAX_TO_ETH = "ARC20-ERC20", e.AVAX_TO_AVAX = "ARC20-ARC20", e.AVAX_TO_BSC = "ARC20-BEP20", e.BSC_TO_TC_SUPPORTED = "BEP20-TC", e.BSC_TO_ETH = "BEP20-ERC20", e.BSC_TO_AVAX = "BEP20-ARC20", e.BSC_TO_BSC = "BEP20-BEP20", e.GAIA_TO_OSMO = "OSMOSIS-IBC", e.MAYA_SUPPORTED_TO_MAYA_SUPPORTED = "MAYA_SUPPORTED_TO_MAYA_SUPPORTED", e.CHANGELLY = "CHANGELLY", e.RANGO = "RANGO", e))(B || {}); | ||
const P = { | ||
var P = /* @__PURE__ */ ((e) => (e.TC_SUPPORTED_TO_TC_SUPPORTED = "TC-TC", e.TC_SUPPORTED_TO_ETH = "TC-ERC20", e.TC_SUPPORTED_TO_AVAX = "TC-ARC20", e.TC_SUPPORTED_TO_BSC = "TC-BEP20", e.ETH_TO_TC_SUPPORTED = "ERC20-TC", e.ETH_TO_ETH = "ERC20-ERC20", e.ETH_TO_AVAX = "ERC20-ARC20", e.ETH_TO_BSC = "ERC20-BEP20", e.AVAX_TO_TC_SUPPORTED = "ARC20-TC", e.AVAX_TO_ETH = "ARC20-ERC20", e.AVAX_TO_AVAX = "ARC20-ARC20", e.AVAX_TO_BSC = "ARC20-BEP20", e.BSC_TO_TC_SUPPORTED = "BEP20-TC", e.BSC_TO_ETH = "BEP20-ERC20", e.BSC_TO_AVAX = "BEP20-ARC20", e.BSC_TO_BSC = "BEP20-BEP20", e.GAIA_TO_OSMO = "OSMOSIS-IBC", e.MAYA_SUPPORTED_TO_MAYA_SUPPORTED = "MAYA_SUPPORTED_TO_MAYA_SUPPORTED", e.CHANGELLY = "CHANGELLY", e.RANGO = "RANGO", e))(P || {}); | ||
const B = { | ||
AGG_SWAP: [ | ||
@@ -644,56 +644,56 @@ "ARC20-ARC20", | ||
var a; | ||
return ((a = Object.entries(P).find(([s, r]) => r.includes(e))) == null ? void 0 : a[0]) || null; | ||
return ((a = Object.entries(B).find(([s, r]) => r.includes(e))) == null ? void 0 : a[0]) || null; | ||
} | ||
var l = /* @__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))(l || {}), g = /* @__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))(g || {}), 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 l = /* @__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))(l || {}), g = /* @__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))(g || {}), 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 b = { | ||
[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." | ||
[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." | ||
}, y = (e, a) => { | ||
@@ -758,3 +758,3 @@ let s = b[e]; | ||
} | ||
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.Mayachain = "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.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.Mayachain = "MAYA", e.Optimism = "OP", e.Osmosis = "OSMO", e.Polygon = "MATIC", e.Ripple = "XRP", e.THORChain = "THOR", e.Zcash = "ZEC", e))(t || {}); | ||
function J(e) { | ||
@@ -768,4 +768,2 @@ switch (e) { | ||
return "BASE"; | ||
case "BNB": | ||
return "BNB"; | ||
case "BSC": | ||
@@ -815,3 +813,2 @@ return "BSC"; | ||
BSC: "eip155:56", | ||
BNB: "binance:bnb-beacon-chain", | ||
BCH: "bip122:000000000000000000651ef99cb9fcbe", | ||
@@ -836,7 +833,7 @@ BTC: "bip122:000000000019d6689c085ae165831e93", | ||
}, V = {}; | ||
for (const e in n) { | ||
const a = H[n[e]]; | ||
V[a] = n[e]; | ||
for (const e in t) { | ||
const a = H[t[e]]; | ||
V[a] = t[e]; | ||
} | ||
var R = /* @__PURE__ */ ((e) => (e.ARB = "0x0000000000000000000000000000000000000000", e.AVAX = "0x0000000000000000000000000000000000000000", e.ETH = "0x0000000000000000000000000000000000000000", e.BSC = "0x0000000000000000000000000000000000000000", e.MATIC = "0x0000000000000000000000000000000000001010", e.OP = "0x4200000000000000000000000000000000000042", e))(R || {}), 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 R = /* @__PURE__ */ ((e) => (e.ARB = "0x0000000000000000000000000000000000000000", e.AVAX = "0x0000000000000000000000000000000000000000", e.ETH = "0x0000000000000000000000000000000000000000", e.BSC = "0x0000000000000000000000000000000000000000", e.MATIC = "0x0000000000000000000000000000000000001010", e.OP = "0x4200000000000000000000000000000000000042", e))(R || {}), D = /* @__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.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))(D || {}); | ||
const j = { | ||
@@ -847,3 +844,2 @@ ARB: [44, 60, 0, 0, 0], | ||
BCH: [44, 145, 0, 0, 0], | ||
BNB: [44, 714, 0, 0, 0], | ||
BSC: [44, 60, 0, 0, 0], | ||
@@ -867,3 +863,3 @@ BTC: [84, 0, 0, 0, 0], | ||
}; | ||
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.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))(D || {}); | ||
var L = /* @__PURE__ */ ((e) => (e[e.ARB = 18] = "ARB", e[e.AVAX = 18] = "AVAX", e[e.BCH = 8] = "BCH", 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))(L || {}); | ||
const p = [ | ||
@@ -890,3 +886,2 @@ "ETH" | ||
"THOR", | ||
"BNB", | ||
"OSMO" | ||
@@ -896,3 +891,2 @@ /* Osmosis */ | ||
"AVAX", | ||
"BNB", | ||
"BSC", | ||
@@ -908,6 +902,6 @@ "BTC", | ||
]; | ||
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 || {}), E = /* @__PURE__ */ ((e) => (e.Arbitrum = "https://arb1.arbitrum.io/rpc", e.Avalanche = "https://avalanche-c-chain-rpc.publicnode.com", e.Binance = "https://binance.llamarpc.com", e.BinanceSmartChain = "https://binance.llamarpc.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://api.cosmos.shapeshift.com", 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://thornode.ninerealms.com", e.THORChainStagenet = "https://thornode.ninerealms.com", e))(E || {}), x = /* @__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.ninerealms.com", e.ThornodeStagenet = "https://thornode.ninerealms.com", e.ThorswapApi = "https://api.thorswap.net", e.ThorswapStatic = "https://static.thorswap.net", e))(x || {}); | ||
const d = Object.values(n), M = 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.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 || {}), E = /* @__PURE__ */ ((e) => (e.Arbitrum = "https://arb1.arbitrum.io/rpc", e.Avalanche = "https://avalanche-c-chain-rpc.publicnode.com", e.BinanceSmartChain = "https://binance.llamarpc.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://api.cosmos.shapeshift.com", 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://thornode.ninerealms.com", e.THORChainStagenet = "https://thornode.ninerealms.com", e))(E || {}), x = /* @__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.ninerealms.com", e.ThornodeStagenet = "https://thornode.ninerealms.com", e.ThorswapApi = "https://api.thorswap.net", e.ThorswapStatic = "https://static.thorswap.net", e))(x || {}); | ||
const d = Object.values(t), M = Object.keys(t), m = d.reduce( | ||
(e, a) => { | ||
const s = M.find((r) => n[r] === a); | ||
const s = M.find((r) => t[r] === a); | ||
return s && (e[a] = s), e; | ||
@@ -922,3 +916,3 @@ }, | ||
{} | ||
), ne = d.reduce( | ||
), te = d.reduce( | ||
(e, a) => { | ||
@@ -929,3 +923,3 @@ const s = `${m[a]}Hex`; | ||
{} | ||
), te = { | ||
), ne = { | ||
"0xa4b1": "ARB", | ||
@@ -937,3 +931,2 @@ 42161: "ARB", | ||
56: "BSC", | ||
"Binance-Chain-Tigris": "BNB", | ||
bitcoincash: "BCH", | ||
@@ -963,3 +956,2 @@ bitcoin: "BTC", | ||
BSC: "https://bscscan.com", | ||
BNB: "https://explorer.binance.org", | ||
BCH: "https://www.blockchain.com/bch", | ||
@@ -986,76 +978,76 @@ BTC: "https://blockstream.info", | ||
const X = [ | ||
n.Arbitrum, | ||
n.Avalanche, | ||
n.BinanceSmartChain, | ||
n.Bitcoin, | ||
n.BitcoinCash, | ||
n.Cosmos, | ||
n.Osmosis, | ||
n.Ripple, | ||
n.Dogecoin, | ||
n.Dash, | ||
n.Ethereum, | ||
n.Litecoin, | ||
n.Optimism, | ||
n.Polygon, | ||
n.THORChain | ||
t.Arbitrum, | ||
t.Avalanche, | ||
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 | ||
], se = { | ||
BRAVE: p, | ||
COINBASE_WEB: p, | ||
KEPLR: [n.Cosmos], | ||
KEPLR: [t.Cosmos], | ||
KEYSTORE: [ | ||
n.Arbitrum, | ||
n.Base, | ||
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.Base, | ||
t.Avalanche, | ||
t.BinanceSmartChain, | ||
t.Bitcoin, | ||
t.BitcoinCash, | ||
t.Cosmos, | ||
t.Dogecoin, | ||
t.Ethereum, | ||
t.Litecoin, | ||
t.Optimism, | ||
t.Polygon, | ||
t.THORChain | ||
], | ||
LEDGER: X, | ||
TREZOR: [ | ||
n.Bitcoin, | ||
n.BitcoinCash, | ||
n.Litecoin, | ||
n.Dogecoin, | ||
n.Ethereum | ||
t.Bitcoin, | ||
t.BitcoinCash, | ||
t.Litecoin, | ||
t.Dogecoin, | ||
t.Ethereum | ||
], | ||
KEEPKEY: [ | ||
n.Arbitrum, | ||
n.Avalanche, | ||
n.Base, | ||
n.BinanceSmartChain, | ||
n.Bitcoin, | ||
n.BitcoinCash, | ||
n.Cosmos, | ||
n.Osmosis, | ||
n.Ripple, | ||
n.Dogecoin, | ||
n.Dash, | ||
n.Mayachain, | ||
n.Ethereum, | ||
n.Litecoin, | ||
n.Optimism, | ||
n.Polygon, | ||
n.THORChain | ||
t.Arbitrum, | ||
t.Avalanche, | ||
t.Base, | ||
t.BinanceSmartChain, | ||
t.Bitcoin, | ||
t.BitcoinCash, | ||
t.Cosmos, | ||
t.Osmosis, | ||
t.Ripple, | ||
t.Dogecoin, | ||
t.Dash, | ||
t.Mayachain, | ||
t.Ethereum, | ||
t.Litecoin, | ||
t.Optimism, | ||
t.Polygon, | ||
t.THORChain | ||
], | ||
METAMASK_SHAPESHIFT: [ | ||
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 | ||
], | ||
@@ -1065,19 +1057,19 @@ METAMASK: p, | ||
XDEFI: [ | ||
n.Arbitrum, | ||
n.Avalanche, | ||
n.Binance, | ||
n.BinanceSmartChain, | ||
n.Bitcoin, | ||
n.BitcoinCash, | ||
n.Cosmos, | ||
n.Ripple, | ||
n.Dogecoin, | ||
n.Ethereum, | ||
n.Litecoin, | ||
n.Optimism, | ||
n.Polygon, | ||
n.THORChain | ||
t.Arbitrum, | ||
t.Avalanche, | ||
t.Binance, | ||
t.BinanceSmartChain, | ||
t.Bitcoin, | ||
t.BitcoinCash, | ||
t.Cosmos, | ||
t.Ripple, | ||
t.Dogecoin, | ||
t.Ethereum, | ||
t.Litecoin, | ||
t.Optimism, | ||
t.Polygon, | ||
t.THORChain | ||
], | ||
WALLETCONNECT: [ | ||
n.Ethereum | ||
t.Ethereum | ||
// Chain.BinanceSmartChain, | ||
@@ -1087,10 +1079,10 @@ // Chain.Avalanche, | ||
OKX: [ | ||
n.Ethereum, | ||
n.Avalanche, | ||
n.BinanceSmartChain, | ||
n.Bitcoin, | ||
n.Cosmos | ||
t.Ethereum, | ||
t.Avalanche, | ||
t.BinanceSmartChain, | ||
t.Bitcoin, | ||
t.Cosmos | ||
] | ||
}, ie = { | ||
KEEPKEY: [n.Bitcoin, n.Ethereum, n.Base] | ||
KEEPKEY: [t.Bitcoin, t.Ethereum, t.Base] | ||
}; | ||
@@ -1100,9 +1092,9 @@ export { | ||
x as ApiUrl, | ||
D as BaseDecimal, | ||
n as Chain, | ||
L as BaseDecimal, | ||
t as Chain, | ||
T as ChainId, | ||
te as ChainIdToChain, | ||
ne as ChainIdToChain, | ||
Q as ChainToChainId, | ||
ae as ChainToExplorerUrl, | ||
ne as ChainToHexChainId, | ||
te as ChainToHexChainId, | ||
H as ChainToNetworkId, | ||
@@ -1112,4 +1104,4 @@ ee as ChainToRPC, | ||
q as CosmosChainList, | ||
L as DerivationPath, | ||
t as ERROR_CODE, | ||
D as DerivationPath, | ||
n as ERROR_CODE, | ||
g as ERROR_MODULE, | ||
@@ -1123,5 +1115,5 @@ l as ERROR_TYPE, | ||
V as NetworkIdToChain, | ||
B as QuoteMode, | ||
P as QuoteMode, | ||
E as RPCUrl, | ||
P as SWAP_TYPES, | ||
B as SWAP_TYPES, | ||
W as TCAvalancheDepositABI, | ||
@@ -1128,0 +1120,0 @@ k as TCBscDepositABI, |
@@ -8,3 +8,3 @@ { | ||
"vite": "4.4.9", | ||
"@internal/config": "2.7.56" | ||
"@internal/config": "2.7.57" | ||
}, | ||
@@ -37,3 +37,3 @@ "eslintConfig": { | ||
"types": "./dist/index.d.ts", | ||
"version": "4.7.56", | ||
"version": "4.7.57", | ||
"scripts": { | ||
@@ -40,0 +40,0 @@ "build": "vite build", |
@@ -5,3 +5,2 @@ export enum Chain { | ||
Base = 'BASE', | ||
Binance = 'BNB', | ||
BinanceSmartChain = 'BSC', | ||
@@ -35,4 +34,2 @@ Bitcoin = 'BTC', | ||
return Chain.Base; | ||
case 'BNB': | ||
return Chain.Binance; | ||
case 'BSC': | ||
@@ -83,3 +80,2 @@ return Chain.BinanceSmartChain; | ||
[Chain.BinanceSmartChain]: 'eip155:56', | ||
[Chain.Binance]: 'binance:bnb-beacon-chain', | ||
[Chain.BitcoinCash]: 'bip122:000000000000000000651ef99cb9fcbe', | ||
@@ -129,3 +125,2 @@ [Chain.Bitcoin]: 'bip122:000000000019d6689c085ae165831e93', | ||
BCH = "m/44'/145'/0'/0/0", | ||
BNB = "m/44'/714'/0'/0/0", | ||
BSC = "m/44'/60'/0'/0/0", | ||
@@ -157,3 +152,2 @@ BTC = "m/84'/0'/0'/0/0", | ||
BCH: [44, 145, 0, 0, 0], | ||
BNB: [44, 714, 0, 0, 0], | ||
BSC: [44, 60, 0, 0, 0], | ||
@@ -182,3 +176,2 @@ BTC: [84, 0, 0, 0, 0], | ||
BCH = 8, | ||
BNB = 8, | ||
BSC = 18, | ||
@@ -246,3 +239,2 @@ BTC = 8, | ||
| Chain.THORChain | ||
| Chain.Binance | ||
| Chain.Mayachain | ||
@@ -254,3 +246,2 @@ | Chain.Kujira; | ||
Chain.THORChain, | ||
Chain.Binance, | ||
Chain.Osmosis, | ||
@@ -261,3 +252,2 @@ ]; | ||
Chain.Avalanche, | ||
Chain.Binance, | ||
Chain.BinanceSmartChain, | ||
@@ -279,3 +269,2 @@ Chain.Bitcoin, | ||
Base = '8453', | ||
Binance = 'Binance-Chain-Tigris', | ||
BinanceSmartChain = '56', | ||
@@ -309,3 +298,2 @@ BinanceSmartChainHex = '0x38', | ||
// Avalanche = 'https://daemon.avalanche.shapeshift.com/ext/bc/C/rpc', //BROKE?? | ||
Binance = 'https://binance.llamarpc.com', | ||
// BinanceSmartChain = 'https://bsc-dataseed.binance.org', | ||
@@ -391,3 +379,2 @@ BinanceSmartChain = 'https://binance.llamarpc.com', | ||
[ChainId.BinanceSmartChain]: Chain.BinanceSmartChain, | ||
[ChainId.Binance]: Chain.Binance, | ||
[ChainId.BitcoinCash]: Chain.BitcoinCash, | ||
@@ -418,3 +405,2 @@ [ChainId.Bitcoin]: Chain.Bitcoin, | ||
[Chain.BinanceSmartChain]: 'https://bscscan.com', | ||
[Chain.Binance]: 'https://explorer.binance.org', | ||
[Chain.BitcoinCash]: 'https://www.blockchain.com/bch', | ||
@@ -421,0 +407,0 @@ [Chain.Bitcoin]: 'https://blockstream.info', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
221479
3775