UNPKG

@byzantine/vault-sdk

Version:

Byzantine Vault SDK for creating and managing vaults on Ethereum for restaking strategies

27 lines (26 loc) 1.01 kB
"use strict"; // This file is deprecated. Please use src/constants/networks.ts instead. // File kept temporarily for backward compatibility. Object.defineProperty(exports, "__esModule", { value: true }); exports.NETWORK_CONFIGS = void 0; exports.getNetworkConfig = getNetworkConfig; exports.isChainSupported = isChainSupported; const networks_1 = require("../constants/networks"); // Re-export the network configurations from constants/networks.ts exports.NETWORK_CONFIGS = networks_1.NETWORKS; /** * Get network configuration for a specific chain ID * @param chainId The chain ID to get configuration for * @returns The network configuration or undefined if not supported */ function getNetworkConfig(chainId) { return (0, networks_1.getNetworkConfig)(chainId); } /** * Check if a chain ID is supported * @param chainId The chain ID to check * @returns True if the chain ID is supported, false otherwise */ function isChainSupported(chainId) { return !!exports.NETWORK_CONFIGS[chainId]; }