"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SPOKEPOOL_UPGRADE_BLOCKS = exports.CUSTOM_GAS_TOKENS = exports.STABLE_COIN_SYMBOLS = exports.BRIDGED_USDC_SYMBOLS = exports.UNDEFINED_MESSAGE_HASH = exports.EMPTY_MESSAGE = exports.DEFAULT_ARWEAVE_STORAGE_ADDRESS = exports.DEFAULT_SIMULATED_RELAYER_ADDRESS_TEST = exports.DEFAULT_SIMULATED_RELAYER_ADDRESS_SVM = exports.DEFAULT_SIMULATED_RELAYER_ADDRESS = exports.DEFAULT_CACHING_SAFE_LAG = exports.DEFAULT_CACHING_TTL = exports.PROTOCOL_DEFAULT_CHAIN_ID_INDICES = exports.ARWEAVE_TAG_APP_VERSION = exports.ARWEAVE_TAG_APP_NAME = exports.TRANSFER_THRESHOLD_MAX_CONFIG_STORE_VERSION = exports.HUBPOOL_CHAIN_ID = exports.SECONDS_PER_YEAR = exports.MAX_SAFE_DEPOSIT_ID = exports.MAX_SAFE_ALLOWANCE = exports.ZERO_BYTES = exports.ZERO_ADDRESS = exports.TOKEN_EQUIVALENCE_REMAPPING = exports.TOKEN_SYMBOLS_MAP = exports.TESTNET_CHAIN_IDs = exports.PRODUCTION_NETWORKS = exports.PUBLIC_NETWORKS = exports.OFT_NO_EID = exports.MAINNET_CHAIN_IDs = exports.CHAIN_IDs = exports.ChainFamily = exports.CCTP_NO_DOMAIN = void 0;
const ethers_1 = require("ethers");
const constants_1 = require("@across-protocol/constants");
var constants_2 = require("@across-protocol/constants");
Object.defineProperty(exports, "CCTP_NO_DOMAIN", { enumerable: true, get: function () { return constants_2.CCTP_NO_DOMAIN; } });
Object.defineProperty(exports, "ChainFamily", { enumerable: true, get: function () { return constants_2.ChainFamily; } });
Object.defineProperty(exports, "CHAIN_IDs", { enumerable: true, get: function () { return constants_2.CHAIN_IDs; } });
Object.defineProperty(exports, "MAINNET_CHAIN_IDs", { enumerable: true, get: function () { return constants_2.MAINNET_CHAIN_IDs; } });
Object.defineProperty(exports, "OFT_NO_EID", { enumerable: true, get: function () { return constants_2.OFT_NO_EID; } });
Object.defineProperty(exports, "PUBLIC_NETWORKS", { enumerable: true, get: function () { return constants_2.PUBLIC_NETWORKS; } });
Object.defineProperty(exports, "PRODUCTION_NETWORKS", { enumerable: true, get: function () { return constants_2.PRODUCTION_NETWORKS; } });
Object.defineProperty(exports, "TESTNET_CHAIN_IDs", { enumerable: true, get: function () { return constants_2.TESTNET_CHAIN_IDs; } });
Object.defineProperty(exports, "TOKEN_SYMBOLS_MAP", { enumerable: true, get: function () { return constants_2.TOKEN_SYMBOLS_MAP; } });
Object.defineProperty(exports, "TOKEN_EQUIVALENCE_REMAPPING", { enumerable: true, get: function () { return constants_2.TOKEN_EQUIVALENCE_REMAPPING; } });
exports.ZERO_ADDRESS = ethers_1.constants.AddressZero, exports.ZERO_BYTES = ethers_1.constants.HashZero;
exports.MAX_SAFE_ALLOWANCE = "79228162514264337593543950335";
exports.MAX_SAFE_DEPOSIT_ID = "4294967295";
exports.SECONDS_PER_YEAR = 31557600;
exports.HUBPOOL_CHAIN_ID = 1;
exports.TRANSFER_THRESHOLD_MAX_CONFIG_STORE_VERSION = 1;
exports.ARWEAVE_TAG_APP_NAME = "across-protocol";
exports.ARWEAVE_TAG_APP_VERSION = 4;
exports.PROTOCOL_DEFAULT_CHAIN_ID_INDICES = [1, 10, 137, 288, 42161];
exports.DEFAULT_CACHING_TTL = 60 * 60 * 24 * 7 * 2;
exports.DEFAULT_CACHING_SAFE_LAG = 60 * 60;
exports.DEFAULT_SIMULATED_RELAYER_ADDRESS = "0x07aE8551Be970cB1cCa11Dd7a11F47Ae82e70E67";
exports.DEFAULT_SIMULATED_RELAYER_ADDRESS_SVM = "E4bX4nCwe2GcKqt9NpofnXVrCeRp37PAMaiZtV9x3kxC";
exports.DEFAULT_SIMULATED_RELAYER_ADDRESS_TEST = "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D";
exports.DEFAULT_ARWEAVE_STORAGE_ADDRESS = "Z6hjBM8FHu90lYWB8o5jR1dfX92FlV2WBaND9xgp8Lg";
exports.EMPTY_MESSAGE = "0x";
exports.UNDEFINED_MESSAGE_HASH = "";
exports.BRIDGED_USDC_SYMBOLS = [
    constants_1.TOKEN_SYMBOLS_MAP["USDC.e"].symbol,
    constants_1.TOKEN_SYMBOLS_MAP.USDbC.symbol,
    constants_1.TOKEN_SYMBOLS_MAP.USDzC.symbol,
    constants_1.TOKEN_SYMBOLS_MAP["USDC-BNB"].symbol,
];
exports.STABLE_COIN_SYMBOLS = [
    ...exports.BRIDGED_USDC_SYMBOLS,
    constants_1.TOKEN_SYMBOLS_MAP.USDB.symbol,
    constants_1.TOKEN_SYMBOLS_MAP.USDC.symbol,
    constants_1.TOKEN_SYMBOLS_MAP.USDT.symbol,
    constants_1.TOKEN_SYMBOLS_MAP["USDT-BNB"].symbol,
    constants_1.TOKEN_SYMBOLS_MAP["USDT-SPOT"].symbol,
    constants_1.TOKEN_SYMBOLS_MAP.DAI.symbol,
    constants_1.TOKEN_SYMBOLS_MAP.GHO.symbol,
    constants_1.TOKEN_SYMBOLS_MAP.WGHO.symbol,
    constants_1.TOKEN_SYMBOLS_MAP.pathUSD.symbol,
];
const resolveCustomGasTokens = () => {
    const overrides = {
        [constants_1.CHAIN_IDs.LENS]: "GHO",
        [constants_1.CHAIN_IDs.LENS_SEPOLIA]: "GHO",
    };
    return Object.fromEntries(Object.keys(constants_1.PUBLIC_NETWORKS)
        .map(Number)
        .filter((chainId) => constants_1.PUBLIC_NETWORKS[chainId]?.family !== constants_1.ChainFamily.SVM)
        .map((chainId) => {
        const { nativeToken } = constants_1.PUBLIC_NETWORKS[chainId];
        return [chainId, overrides[chainId] ?? nativeToken];
    })
        .filter(([, nativeToken]) => nativeToken !== "ETH"));
};
exports.CUSTOM_GAS_TOKENS = resolveCustomGasTokens();
exports.SPOKEPOOL_UPGRADE_BLOCKS = {
    [constants_1.CHAIN_IDs.ARBITRUM]: 183082059,
    [constants_1.CHAIN_IDs.BASE]: 10874747,
    [constants_1.CHAIN_IDs.MAINNET]: 19277695,
    [constants_1.CHAIN_IDs.OPTIMISM]: 116469982,
    [constants_1.CHAIN_IDs.POLYGON]: 53793776,
    [constants_1.CHAIN_IDs.ZK_SYNC]: 27157340,
};
//# sourceMappingURL=constants.js.map