"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.urlForUniv2 = exports.urlForProtocol = void 0;
var urlForProtocol = function (protocol) {
    switch (protocol) {
        case 'UniswapV3_Optimism':
            return 'https://api.thegraph.com/subgraphs/name/ianlapham/optimism-post-regenesis';
        case 'UniswapV3_Arbitrum':
            return 'https://api.thegraph.com/subgraphs/name/ianlapham/arbitrum-minimal';
        case 'UniswapV3_Polygon':
            return 'https://api.thegraph.com/subgraphs/name/ianlapham/uniswap-v3-polygon';
        case 'Perpetual':
            return 'https://api.thegraph.com/subgraphs/name/perpetual-protocol/perpetual-v2-optimism';
        case 'UniswapV3':
            return 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3';
        case 'CamelotV3':
            return 'https://api.thegraph.com/subgraphs/name/camelotlabs/camelot-amm-v3';
        case 'ZyberSwap':
            return 'https://api.thegraph.com/subgraphs/name/iliaazhel/zyberswap-info';
        default:
            throw new Error("invalid protocol: ".concat(protocol));
    }
};
exports.urlForProtocol = urlForProtocol;
var urlForUniv2 = function (dex) {
    switch (dex) {
        case 'UniswapV2':
            return 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2';
        case 'Sushiswap_Arbitrum':
            return 'https://api.thegraph.com/subgraphs/name/sushiswap/arbitrum-exchange';
        case 'Camelot':
            return 'https://api.thegraph.com/subgraphs/name/camelotlabs/camelot-amm';
        case 'Velodrome':
            return 'https://api.thegraph.com/subgraphs/name/dmihal/velodrome';
        case '3xcalibur':
            return 'https://api.thegraph.com/subgraphs/name/revolver0cel0t/3xcalibur-arbitrum';
        default:
            throw new Error("invalid dex: ".concat(dex));
    }
};
exports.urlForUniv2 = urlForUniv2;
//# sourceMappingURL=urlForProtocol.js.map