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.0.0 to 4.0.1

40

dist/index.d.ts

@@ -53,3 +53,3 @@ /// <reference types="node" />

ThornodeStagenet = "https://stagenet-thornode.ninerealms.com",
ThorswapApi = "https://api.thorswap.finance",
ThorswapApi = "https://api.thorswap.net",
ThorswapStatic = "https://static.thorswap.net"

@@ -83,2 +83,3 @@ }

OP = 18,
OSMO = 6,
XRP = 6,

@@ -107,2 +108,3 @@ THOR = 8,

Optimism = "OP",
Osmosis = "OSMO",
Polygon = "MATIC",

@@ -136,2 +138,3 @@ Ripple = "XRP",

OptimismHex = "0xa",
Osmosis = "osmosis-1",
Polygon = "137",

@@ -163,2 +166,3 @@ PolygonHex = "0x89",

OP: ChainId;
OSMO: ChainId;
MATIC: ChainId;

@@ -190,2 +194,3 @@ XRP: ChainId;

OP: ChainId;
OSMO: ChainId;
MATIC: ChainId;

@@ -197,2 +202,4 @@ XRP: ChainId;

export declare const ChainToNetworkId: Record<Chain, string>;
export declare const ChainToRPC: {

@@ -216,2 +223,3 @@ ARB: RPCUrl;

OP: RPCUrl;
OSMO: RPCUrl;
MATIC: RPCUrl;

@@ -240,4 +248,8 @@ XRP: RPCUrl;

/**
* @required for BTC, LTC, DOGE & BCH
* @required for BTC, BCH, LTC, DOGE
*/
blockchairApiKey?: string;
/**
* @deprecated - use blockchairApiKey instead
*/
utxoApiKey?: string;

@@ -255,2 +267,14 @@ /**

};
/**
* @optional for KeepKey config
*/
keepkeyConfig?: {
apiKey: string;
pairingInfo: {
name: string;
imageUrl: string;
basePath: string;
url: string;
};
};
};

@@ -278,3 +302,3 @@

export declare type CosmosChain = Chain.Cosmos | Chain.THORChain | Chain.Binance | Chain.Maya | Chain.Kujira;
export declare type CosmosChain = Chain.Cosmos | Chain.Osmosis | Chain.THORChain | Chain.Binance | Chain.Maya | Chain.Kujira;

@@ -302,2 +326,3 @@ export declare const CosmosChainList: CosmosChain[];

OP = "m/44'/60'/0'/0",
OSMO = "m/44'/118'/0'/0",
XRP = "m/44'/144'/0'/0",

@@ -513,2 +538,4 @@ THOR = "m/44'/931'/0'/0",

export declare function getChainEnumValue(chainStr: any): Chain | undefined;
export declare enum MemoType {

@@ -527,2 +554,4 @@ BOND = "BOND",

export declare const NetworkIdToChain: Record<string, Chain>;
export declare enum QuoteMode {

@@ -563,2 +592,3 @@ TC_SUPPORTED_TO_TC_SUPPORTED = "TC-TC",

Optimism = "https://mainnet.optimism.io",
Osmosis = "https://rpc-osmosis.keplr.app",
Polygon = "https://polygon-rpc.com",

@@ -790,5 +820,7 @@ THORChain = "https://rpc.thorswap.net",

export declare const TCSupportedChainList: Chain[];
export declare type UTXOChain = Chain.Bitcoin | Chain.BitcoinCash | Chain.Dogecoin | Chain.Litecoin;
export declare const UTXOChainList: Chain[];
export declare const UTXOChainList: UTXOChain[];

@@ -795,0 +827,0 @@ export declare enum WalletOption {

242

dist/index.es.js

@@ -1,5 +0,5 @@

var g = Object.defineProperty;
var h = (e, n, a) => n in e ? g(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a;
var s = (e, n, a) => (h(e, typeof n != "symbol" ? n + "" : n, a), a);
const G = [
var O = Object.defineProperty;
var C = (e, n, a) => n in e ? O(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a;
var s = (e, n, a) => (C(e, typeof n != "symbol" ? n + "" : n, a), a);
const U = [
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },

@@ -102,3 +102,3 @@ {

}
], w = [
], X = [
{

@@ -278,3 +278,3 @@ inputs: [{ internalType: "address", name: "rune", type: "address" }],

}
], U = [
], F = [
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },

@@ -443,3 +443,3 @@ {

}
], F = [
], K = [
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },

@@ -597,4 +597,4 @@ {

];
var O = /* @__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))(O || {});
const X = [
var h = /* @__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))(h || {});
const k = [
"ERC20-ERC20",

@@ -604,3 +604,3 @@ "ARC20-ARC20",

/* BSC_TO_BSC */
], K = [
], Y = [
"ERC20-TC",

@@ -616,3 +616,3 @@ "ERC20-ARC20",

/* BSC_TO_AVAX */
], k = [
], W = [
"TC-TC",

@@ -624,4 +624,4 @@ "TC-ERC20",

];
var m = /* @__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))(m || {}), C = /* @__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))(C || {}), 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 || {});
const V = {
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 || {}), 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 || {});
const g = {
[t.INVALID_INPUT_PARAMETERS]: "Invalid input parameters: {0}.",

@@ -677,4 +677,4 @@ [t.UNKNOWN_PROVIDERS]: "Unknown providers: {0}.",

[t.ADDRESS_ALREADY_CLAIMED]: "Address {0} already claimed the airdrop."
}, u = (e, n) => {
let a = V[e];
}, y = (e, n) => {
let a = g[e];
for (let r = 0; r < n.length; r++)

@@ -688,7 +688,7 @@ a = a.replace(`{${r}}`, n[r]);

revision: r,
module: S,
module: I,
code: d,
message: _,
type: N,
options: { shouldLog: E, shouldThrow: c, shouldTrace: f } = {
message: E,
type: _,
options: { shouldLog: N, shouldThrow: c, shouldTrace: f } = {
shouldLog: !0,

@@ -698,6 +698,6 @@ shouldThrow: !0,

},
displayMessageParams: y
displayMessageParams: u
}) {
const l = _ || u(d, y || []) || "";
super(l);
const m = E || y(d, u || []) || "";
super(m);
s(this, "status");

@@ -713,7 +713,7 @@ s(this, "revision");

s(this, "displayMessageParams");
this.status = a, this.revision = r || "NO_REVISION", this.module = S, this.message = l, this.display = u(d, y || []), this.code = d, this.type = N || m.UNHANDLED_ERROR, this.options = {
shouldLog: E || !0,
this.status = a, this.revision = r || "NO_REVISION", this.module = I, this.message = m, this.display = y(d, u || []), this.code = d, this.type = _ || l.UNHANDLED_ERROR, this.options = {
shouldLog: N || !0,
shouldTrace: f || !0,
shouldThrow: c || !1
}, this.displayMessageParams = y || [], this.options.shouldTrace && Error.captureStackTrace(this);
}, this.displayMessageParams = u || [], this.options.shouldTrace && Error.captureStackTrace(this);
}

@@ -730,3 +730,3 @@ static fromErrorInfo(a) {

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

@@ -741,4 +741,83 @@ handle() {

}
var i = /* @__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.Polygon = "MATIC", e.Ripple = "XRP", e.THORChain = "THOR", e.Zcash = "ZEC", e))(i || {}), P = /* @__PURE__ */ ((e) => (e.ARB = "0x0000000000000000000000000000000000000000", e.AVAX = "0x0000000000000000000000000000000000000000", e.ETH = "0x0000000000000000000000000000000000000000", e.BSC = "0x0000000000000000000000000000000000000000", e.MATIC = "0x0000000000000000000000000000000000001010", e.OP = "0x4200000000000000000000000000000000000042", e))(P || {}), B = /* @__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.XRP = "m/44'/144'/0'/0", e.THOR = "m/44'/931'/0'/0", e.ZEC = "m/44'/133'/0'/0", e))(B || {});
const Y = {
var i = /* @__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))(i || {});
function Z(e) {
switch (e) {
case "ARB":
return "ARB";
case "AVAX":
return "AVAX";
case "BASE":
return "BASE";
case "BNB":
return "BNB";
case "BSC":
return "BSC";
case "BTC":
return "BTC";
case "BCH":
return "BCH";
case "GAIA":
return "GAIA";
case "DASH":
return "DASH";
case "DGB":
return "DGB";
case "DOGE":
return "DOGE";
case "EOS":
return "EOS";
case "ETH":
return "ETH";
case "KUJI":
return "KUJI";
case "LTC":
return "LTC";
case "MAYA":
return "MAYA";
case "OP":
return "OP";
case "OSMO":
return "OSMO";
case "MATIC":
return "MATIC";
case "XRP":
return "XRP";
case "THOR":
return "THOR";
case "ZEC":
return "ZEC";
default:
return;
}
}
const b = {
ARB: "eip155:42161",
AVAX: "eip155:43114",
BSC: "eip155:56",
BNB: "binance:bnb-beacon-chain",
BCH: "bip122:000000000000000000651ef99cb9fcbe",
BTC: "bip122:000000000019d6689c085ae165831e93",
BASE: "eip155:8453",
GAIA: "cosmos:cosmoshub-4",
DASH: "bip122:dash-hash",
DGB: "bip122:digibytes-hash",
DOGE: "bip122:00000000001a91e3dace36e2be3bf030",
KUJI: "cosmos:kaiyo-1",
EOS: "eos:cf057bbfb72640471fd910bcb67639c2",
ETH: "eip155:1",
LTC: "bip122:12a765e31ffd4059bada1e25190f6e98",
MAYA: "cosmos:maya-mainnet-v1",
OP: "eip155:10",
OSMO: "cosmos:osmosis-1",
MATIC: "eip155:137",
XRP: "ripple:unknown",
THOR: "cosmos:thorchain-mainnet-v1",
ZEC: "bip122:0000000000196a45"
}, V = {};
for (const e in i) {
const n = b[i[e]];
V[n] = i[e];
}
var P = /* @__PURE__ */ ((e) => (e.ARB = "0x0000000000000000000000000000000000000000", e.AVAX = "0x0000000000000000000000000000000000000000", e.ETH = "0x0000000000000000000000000000000000000000", e.BSC = "0x0000000000000000000000000000000000000000", e.MATIC = "0x0000000000000000000000000000000000001010", e.OP = "0x4200000000000000000000000000000000000042", e))(P || {}), H = /* @__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))(H || {});
const J = {
ARB: [44, 60, 0, 0, 0],

@@ -762,2 +841,3 @@ AVAX: [44, 60, 0, 0, 0],

OP: [44, 60, 0, 0, 0],
OSMO: [44, 118, 0, 0, 0],
XRP: [44, 144, 0, 0, 0],

@@ -767,4 +847,4 @@ THOR: [44, 931, 0, 0, 0],

};
var b = /* @__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.XRP = 6] = "XRP", e[e.THOR = 8] = "THOR", e[e.ZEC = 8] = "ZEC", e))(b || {});
const W = [
var x = /* @__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))(x || {});
const j = [
"ETH",

@@ -774,6 +854,7 @@ "AVAX",

"ARB",
// Chain.Base,
"OP",
"MATIC"
/* Polygon */
], Z = [
], $ = [
"BTC",

@@ -787,22 +868,35 @@ "BCH",

/* Zcash */
], j = [
], q = [
"GAIA",
"THOR",
"BNB"
/* Binance */
"BNB",
"OSMO"
/* Osmosis */
], z = [
"AVAX",
"BNB",
"BSC",
"BTC",
"BCH",
"GAIA",
"DOGE",
"ETH",
"LTC",
"THOR"
/* THORChain */
];
var o = /* @__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.Polygon = "137", e.PolygonHex = "0x89", e.THORChain = "thorchain-mainnet-v1", e.THORChainStagenet = "thorchain-stagenet-v2", e))(o || {}), I = /* @__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.Polygon = "https://polygon-rpc.com", e.THORChain = "https://rpc.thorswap.net", e.THORChainStagenet = "https://stagenet-rpc.ninerealms.com", e))(I || {}), 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.thorswap.net", e.ThornodeStagenet = "https://stagenet-thornode.ninerealms.com", e.ThorswapApi = "https://api.thorswap.finance", e.ThorswapStatic = "https://static.thorswap.net", e))(x || {});
const p = Object.values(i), H = Object.keys(i), T = p.reduce(
var o = /* @__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))(o || {}), S = /* @__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))(S || {}), 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 p = Object.values(i), L = Object.keys(i), T = p.reduce(
(e, n) => {
const a = H.find((r) => i[r] === n);
const a = L.find((r) => i[r] === n);
return a && (e[n] = a), e;
},
{}
), J = p.reduce(
), Q = p.reduce(
(e, n) => (e[n] = o[T[n]], e),
{}
), $ = p.reduce(
(e, n) => (e[n] = I[T[n]], e),
), ee = p.reduce(
(e, n) => (e[n] = S[T[n]], e),
{}
), q = p.reduce(
), te = p.reduce(
(e, n) => {

@@ -813,3 +907,3 @@ const a = `${T[n]}Hex`;

{}
), z = {
), ne = {
"0xa4b1": "ARB",

@@ -836,2 +930,3 @@ 42161: "ARB",

10: "OP",
"osmosis-1": "OSMO",
"0x89": "MATIC",

@@ -842,3 +937,3 @@ 137: "MATIC",

/* THORChain */
}, Q = {
}, ae = {
ARB: "https://arbiscan.io",

@@ -861,41 +956,46 @@ AVAX: "https://snowtrace.io",

OP: "https://optimistic.etherscan.io",
OSMO: "https://www.mintscan.io/osmosis",
MATIC: "https://polygonscan.com",
XRP: "https://xrpscan.com",
THOR: "https://viewblock.io/thorchain",
THOR: "https://runescan.io",
ZEC: "https://z.cash/ecosystem/zcash-explorer"
};
var L = /* @__PURE__ */ ((e) => (e[e.NoError = 36864] = "NoError", e))(L || {}), D = /* @__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))(D || {}), v = /* @__PURE__ */ ((e) => (e.Average = "average", e.Fast = "fast", e.Fastest = "fastest", e))(v || {}), R = /* @__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))(R || {});
var R = /* @__PURE__ */ ((e) => (e[e.NoError = 36864] = "NoError", e))(R || {}), M = /* @__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))(M || {}), v = /* @__PURE__ */ ((e) => (e.Average = "average", e.Fast = "fast", e.Fastest = "fastest", e))(v || {}), G = /* @__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))(G || {});
export {
X as AGG_SWAP,
k as AGG_SWAP,
A as ApiError,
x as ApiUrl,
b as BaseDecimal,
D as ApiUrl,
x as BaseDecimal,
i as Chain,
o as ChainId,
z as ChainIdToChain,
J as ChainToChainId,
Q as ChainToExplorerUrl,
q as ChainToHexChainId,
$ as ChainToRPC,
ne as ChainIdToChain,
Q as ChainToChainId,
ae as ChainToExplorerUrl,
te as ChainToHexChainId,
b as ChainToNetworkId,
ee as ChainToRPC,
P as ContractAddress,
j as CosmosChainList,
B as DerivationPath,
q as CosmosChainList,
H as DerivationPath,
t as ERROR_CODE,
C as ERROR_MODULE,
m as ERROR_TYPE,
W as EVMChainList,
L as ErrorCode,
B as ERROR_MODULE,
l as ERROR_TYPE,
j as EVMChainList,
R as ErrorCode,
v as FeeOption,
D as MemoType,
Y as NetworkDerivationPath,
O as QuoteMode,
I as RPCUrl,
K as SWAP_IN,
k as SWAP_OUT,
U as TCAvalancheDepositABI,
F as TCBscDepositABI,
w as TCEthereumVaultAbi,
Z as UTXOChainList,
R as WalletOption,
G as erc20ABI
M as MemoType,
J as NetworkDerivationPath,
V as NetworkIdToChain,
h as QuoteMode,
S as RPCUrl,
Y as SWAP_IN,
W as SWAP_OUT,
F as TCAvalancheDepositABI,
K as TCBscDepositABI,
X as TCEthereumVaultAbi,
z as TCSupportedChainList,
$ as UTXOChainList,
G as WalletOption,
U as erc20ABI,
Z as getChainEnumValue
};

@@ -5,6 +5,6 @@ {

"devDependencies": {
"@types/node": "20.5.9",
"ethers": "6.7.1",
"vite": "4.4.9",
"@internal/config": "2.0.0"
"@types/node": "20.10.0",
"ethers": "6.9.0",
"vite": "4.5.0",
"@internal/config": "2.0.1"
},

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

"types": "./dist/index.d.ts",
"version": "4.0.0",
"version": "4.0.1",
"scripts": {

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

@@ -35,4 +35,8 @@ import type { FixedNumber } from 'ethers';

/**
* @required for BTC, LTC, DOGE & BCH
* @required for BTC, BCH, LTC, DOGE
*/
blockchairApiKey?: string;
/**
* @deprecated - use blockchairApiKey instead
*/
utxoApiKey?: string;

@@ -50,2 +54,14 @@ /**

};
/**
* @optional for KeepKey config
*/
keepkeyConfig?: {
apiKey: string;
pairingInfo: {
name: string;
imageUrl: string;
basePath: string;
url: string;
};
};
};

@@ -52,0 +68,0 @@

@@ -19,2 +19,3 @@ export enum Chain {

Optimism = 'OP',
Osmosis = 'OSMO',
Polygon = 'MATIC',

@@ -25,2 +26,86 @@ Ripple = 'XRP',

}
export function getChainEnumValue(chainStr) {
switch (chainStr) {
case 'ARB':
return Chain.Arbitrum;
case 'AVAX':
return Chain.Avalanche;
case 'BASE':
return Chain.Base;
case 'BNB':
return Chain.Binance;
case 'BSC':
return Chain.BinanceSmartChain;
case 'BTC':
return Chain.Bitcoin;
case 'BCH':
return Chain.BitcoinCash;
case 'GAIA':
return Chain.Cosmos;
case 'DASH':
return Chain.Dash;
case 'DGB':
return Chain.Digibyte;
case 'DOGE':
return Chain.Dogecoin;
case 'EOS':
return Chain.EOS;
case 'ETH':
return Chain.Ethereum;
case 'KUJI':
return Chain.Kujira;
case 'LTC':
return Chain.Litecoin;
case 'MAYA':
return Chain.Maya;
case 'OP':
return Chain.Optimism;
case 'OSMO':
return Chain.Osmosis;
case 'MATIC':
return Chain.Polygon;
case 'XRP':
return Chain.Ripple;
case 'THOR':
return Chain.THORChain;
case 'ZEC':
return Chain.Zcash;
default:
return undefined;
}
}
export const ChainToNetworkId: Record<Chain, string> = {
[Chain.Arbitrum]: 'eip155:42161',
[Chain.Avalanche]: 'eip155:43114',
[Chain.BinanceSmartChain]: 'eip155:56',
[Chain.Binance]: 'binance:bnb-beacon-chain',
[Chain.BitcoinCash]: 'bip122:000000000000000000651ef99cb9fcbe',
[Chain.Bitcoin]: 'bip122:000000000019d6689c085ae165831e93',
[Chain.Base]: 'eip155:8453',
[Chain.Cosmos]: 'cosmos:cosmoshub-4',
[Chain.Dash]: 'bip122:dash-hash',
[Chain.Digibyte]: 'bip122:digibytes-hash',
[Chain.Dogecoin]: 'bip122:00000000001a91e3dace36e2be3bf030',
[Chain.Kujira]: 'cosmos:kaiyo-1',
[Chain.EOS]: 'eos:cf057bbfb72640471fd910bcb67639c2',
[Chain.Ethereum]: 'eip155:1',
[Chain.Litecoin]: 'bip122:12a765e31ffd4059bada1e25190f6e98',
[Chain.Maya]: 'cosmos:maya-mainnet-v1',
[Chain.Optimism]: 'eip155:10',
[Chain.Osmosis]: 'cosmos:osmosis-1',
[Chain.Polygon]: 'eip155:137',
[Chain.Ripple]: 'ripple:unknown',
[Chain.THORChain]: 'cosmos:thorchain-mainnet-v1',
[Chain.Zcash]: 'bip122:0000000000196a45',
};
// Inverse mapping from Network ID to Chain enum
export const NetworkIdToChain: Record<string, Chain> = {};
for (const chain in Chain) {
const networkId = ChainToNetworkId[Chain[chain]];
NetworkIdToChain[networkId] = Chain[chain];
}
type ChainNameType = keyof typeof Chain;

@@ -57,2 +142,3 @@

OP = "m/44'/60'/0'/0",
OSMO = "m/44'/118'/0'/0",
XRP = "m/44'/144'/0'/0",

@@ -84,2 +170,3 @@ THOR = "m/44'/931'/0'/0",

OP: [44, 60, 0, 0, 0],
OSMO: [44, 118, 0, 0, 0],
XRP: [44, 144, 0, 0, 0],

@@ -108,2 +195,3 @@ THOR: [44, 931, 0, 0, 0],

OP = 18,
OSMO = 6,
XRP = 6,

@@ -128,2 +216,3 @@ THOR = 8,

Chain.Arbitrum,
// Chain.Base,
Chain.Optimism,

@@ -135,3 +224,3 @@ Chain.Polygon,

export const UTXOChainList: Chain[] = [
export const UTXOChainList: UTXOChain[] = [
Chain.Bitcoin,

@@ -148,2 +237,3 @@ Chain.BitcoinCash,

| Chain.Cosmos
| Chain.Osmosis
| Chain.THORChain

@@ -154,4 +244,22 @@ | Chain.Binance

export const CosmosChainList: CosmosChain[] = [Chain.Cosmos, Chain.THORChain, Chain.Binance];
export const CosmosChainList: CosmosChain[] = [
Chain.Cosmos,
Chain.THORChain,
Chain.Binance,
Chain.Osmosis,
];
export const TCSupportedChainList = [
Chain.Avalanche,
Chain.Binance,
Chain.BinanceSmartChain,
Chain.Bitcoin,
Chain.BitcoinCash,
Chain.Cosmos,
Chain.Dogecoin,
Chain.Ethereum,
Chain.Litecoin,
Chain.THORChain,
];
export enum ChainId {

@@ -179,2 +287,3 @@ Arbitrum = '42161',

OptimismHex = '0xa',
Osmosis = 'osmosis-1',
Polygon = '137',

@@ -186,2 +295,3 @@ PolygonHex = '0x89',

//TODO move these to pioneer proxy
export enum RPCUrl {

@@ -203,2 +313,3 @@ Arbitrum = 'https://arb1.arbitrum.io/rpc',

Optimism = 'https://mainnet.optimism.io',
Osmosis = 'https://rpc-osmosis.keplr.app',
Polygon = 'https://polygon-rpc.com',

@@ -216,3 +327,3 @@ THORChain = 'https://rpc.thorswap.net',

ThornodeStagenet = 'https://stagenet-thornode.ninerealms.com',
ThorswapApi = 'https://api.thorswap.finance',
ThorswapApi = 'https://api.thorswap.net',
ThorswapStatic = 'https://static.thorswap.net',

@@ -283,2 +394,3 @@ }

[ChainId.Optimism]: Chain.Optimism,
[ChainId.Osmosis]: Chain.Osmosis,
[ChainId.PolygonHex]: Chain.Polygon,

@@ -308,6 +420,7 @@ [ChainId.Polygon]: Chain.Polygon,

[Chain.Optimism]: 'https://optimistic.etherscan.io',
[Chain.Osmosis]: 'https://www.mintscan.io/osmosis',
[Chain.Polygon]: 'https://polygonscan.com',
[Chain.Ripple]: 'https://xrpscan.com',
[Chain.THORChain]: 'https://viewblock.io/thorchain',
[Chain.THORChain]: 'https://runescan.io',
[Chain.Zcash]: 'https://z.cash/ecosystem/zcash-explorer',
};

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