@f5i23q999d/cow-sdk
Version:
<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>
45 lines • 1.98 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ALL_CHAINS_IDS = exports.ALL_CHAINS = exports.ADDITIONAL_TARGET_CHAINS_MAP = exports.ALL_SUPPORTED_CHAIN_IDS = exports.ALL_SUPPORTED_CHAINS = exports.ALL_SUPPORTED_CHAINS_MAP = void 0;
const types_1 = require("../types.js");
const mainnet_1 = require("../details/mainnet.js");
const gnosis_1 = require("../details/gnosis.js");
const arbitrum_1 = require("../details/arbitrum.js");
const base_1 = require("../details/base.js");
const sepolia_1 = require("../details/sepolia.js");
const optimism_1 = require("../details/optimism.js");
const polygon_1 = require("../details/polygon.js");
/**
* Details of all supported chains.
*/
exports.ALL_SUPPORTED_CHAINS_MAP = {
[types_1.SupportedChainId.MAINNET]: mainnet_1.mainnet,
[types_1.SupportedChainId.GNOSIS_CHAIN]: gnosis_1.gnosisChain,
[types_1.SupportedChainId.ARBITRUM_ONE]: arbitrum_1.arbitrumOne,
[types_1.SupportedChainId.BASE]: base_1.base,
[types_1.SupportedChainId.SEPOLIA]: sepolia_1.sepolia,
};
/**
* All supported chains.
*/
exports.ALL_SUPPORTED_CHAINS = Object.values(exports.ALL_SUPPORTED_CHAINS_MAP);
/**
* The list of supported chains.
*/
exports.ALL_SUPPORTED_CHAIN_IDS = exports.ALL_SUPPORTED_CHAINS.map((chain) => chain.id);
/**
* Maps a chain where you can bridge to, but not sell tokens from (not supported by CoW Protocol)
*/
exports.ADDITIONAL_TARGET_CHAINS_MAP = {
[types_1.AdditionalTargetChainId.OPTIMISM]: optimism_1.optimism,
[types_1.AdditionalTargetChainId.POLYGON]: polygon_1.polygon,
};
/**
* All chains (both supported by CoW Protocol, or chains where you can bridge to)
*/
exports.ALL_CHAINS = exports.ALL_SUPPORTED_CHAINS.concat(Object.values(exports.ADDITIONAL_TARGET_CHAINS_MAP));
/**
* All chain ids (both supported by CoW Protocol, or chains where you can bridge to)
*/
exports.ALL_CHAINS_IDS = exports.ALL_CHAINS.map((chain) => chain.id);
//# sourceMappingURL=index.js.map