"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.networkIdT3rnToMoralisChainId = exports.moralisChainIds = void 0;
exports.mapAssetNumberT3rnToAssetNameProvider = mapAssetNumberT3rnToAssetNameProvider;
exports.mapAssetNameProviderToAssetNumberT3rn = mapAssetNameProviderToAssetNumberT3rn;
exports.mapAssetNameT3rnToAssetNameProvider = mapAssetNameT3rnToAssetNameProvider;
const enums_1 = require("./enums");
function mapAssetNumberT3rnToAssetNameProvider(asset) {
    switch (asset) {
        case enums_1.AssetNumber.ETH: {
            return enums_1.AssetName.ETH;
        }
        case enums_1.AssetNumber.BNB: {
            return enums_1.AssetName.BNB;
        }
        case enums_1.AssetNumber.MON: {
            return enums_1.AssetName.MON;
        }
        case enums_1.AssetNumber.t3MON: {
            return enums_1.AssetName.MON;
        }
        case enums_1.AssetNumber.SEI: {
            return enums_1.AssetName.SEI;
        }
        case enums_1.AssetNumber.t3SEI: {
            return enums_1.AssetName.SEI;
        }
        case enums_1.AssetNumber.t3ETH: {
            return enums_1.AssetName.t3ETH;
        }
        case enums_1.AssetNumber.USDC: {
            return enums_1.AssetName.USDC;
        }
        case enums_1.AssetNumber.DAI: {
            return enums_1.AssetName.DAI;
        }
        case enums_1.AssetNumber.BTC: {
            return enums_1.AssetName.BTC;
        }
        case enums_1.AssetNumber.SOL: {
            return enums_1.AssetName.SOL;
        }
        case enums_1.AssetNumber.t3SOL: {
            return enums_1.AssetName.t3SOL;
        }
        case enums_1.AssetNumber.DOT: {
            return enums_1.AssetName.DOT;
        }
        case enums_1.AssetNumber.t3DOT: {
            return enums_1.AssetName.t3DOT;
        }
        case enums_1.AssetNumber.t3USD: {
            return enums_1.AssetName.t3USD;
        }
        case enums_1.AssetNumber.t3BTC: {
            return enums_1.AssetName.t3BTC;
        }
        case enums_1.AssetNumber.L0RN: {
            return enums_1.AssetName.L0RN;
        }
        case enums_1.AssetNumber.TRN: {
            return enums_1.AssetName.TRN;
        }
        case enums_1.AssetNumber.t3TIA: {
            return enums_1.AssetName.t3TIA;
        }
        case enums_1.AssetNumber.BRN: {
            return enums_1.AssetName.BRN;
        }
        case enums_1.AssetNumber.BERA: {
            return enums_1.AssetName.BERA;
        }
        default: {
            throw new Error(`Unsupported asset number: ${asset}`);
        }
    }
}
function mapAssetNameProviderToAssetNumberT3rn(asset) {
    switch (asset) {
        case 'eth': {
            return enums_1.AssetNumber.ETH;
        }
        case 'bnb': {
            return enums_1.AssetNumber.BNB;
        }
        case 'usdc': {
            return enums_1.AssetNumber.USDC;
        }
        case 'dai': {
            return enums_1.AssetNumber.DAI;
        }
        case 'optimism': {
            // TODO: return 'optimism' once supported
            return enums_1.AssetNumber.ETH;
        }
        case 'arbitrum': {
            // TODO: return 'arbitrum' once supported
            return enums_1.AssetNumber.ETH;
        }
        case 'btc': {
            return enums_1.AssetNumber.BTC;
        }
        case 't3btc': {
            return enums_1.AssetNumber.t3BTC;
        }
        case 't3usd': {
            return enums_1.AssetNumber.t3USD;
        }
        case 't3eth': {
            return enums_1.AssetNumber.t3ETH;
        }
        case 'sol': {
            return enums_1.AssetNumber.SOL;
        }
        case 'dot': {
            return enums_1.AssetNumber.DOT;
        }
        case 'mon': {
            return enums_1.AssetNumber.MON;
        }
        case 'sei': {
            return enums_1.AssetNumber.SEI;
        }
        case 't3mon': {
            return enums_1.AssetNumber.t3MON;
        }
        case 't3sei': {
            return enums_1.AssetNumber.t3SEI;
        }
        case 'trn': {
            return enums_1.AssetNumber.TRN;
        }
        case 'brn': {
            return enums_1.AssetNumber.BRN;
        }
        case 'bera': {
            return enums_1.AssetNumber.BERA;
        }
        case 'xdai': {
            return enums_1.AssetNumber.XDAI;
        }
        case 't3tia': {
            return enums_1.AssetNumber.t3TIA;
        }
        case 't3sol': {
            return enums_1.AssetNumber.t3SOL;
        }
        case 't3dot': {
            return enums_1.AssetNumber.t3DOT;
        }
        default: {
            throw new Error(`Invalid asset name ${asset}`);
        }
    }
}
function mapAssetNameT3rnToAssetNameProvider(assetName) {
    switch (assetName) {
        case 'eth': {
            return enums_1.AssetName.ETH;
        }
        case 'btc': {
            return enums_1.AssetName.BTC;
        }
        case 'bnb': {
            return enums_1.AssetName.BNB;
        }
        case 'dai': {
            return enums_1.AssetName.DAI;
        }
        case 'optimism': {
            return enums_1.AssetName.OPTIMISM;
        }
        case 'arbitrum': {
            return enums_1.AssetName.ARBITRUM;
        }
        case 'matic': {
            return enums_1.AssetName.MATIC;
        }
        case 'sol': {
            return enums_1.AssetName.SOL;
        }
        case 'dot': {
            return enums_1.AssetName.DOT;
        }
        case 'mon': {
            return enums_1.AssetName.MON;
        }
        case 'sei': {
            return enums_1.AssetName.SEI;
        }
        case 'usdc': {
            return enums_1.AssetName.USDC;
        }
        case 'usdt': {
            return enums_1.AssetName.USDT;
        }
        case 'trn': {
            return enums_1.AssetName.TRN;
        }
        case 'brn': {
            return enums_1.AssetName.BRN;
        }
        case 'lrn': {
            return enums_1.AssetName.L0RN;
        }
        case 't3dot': {
            return enums_1.AssetName.t3DOT;
        }
        case 't3btc': {
            return enums_1.AssetName.t3BTC;
        }
        case 't3sol': {
            return enums_1.AssetName.t3SOL;
        }
        case 't3usd': {
            return enums_1.AssetName.t3USD;
        }
        case 't3mon': {
            return enums_1.AssetName.t3MON;
        }
        case 't3sei': {
            return enums_1.AssetName.t3SEI;
        }
        case 't3eth': {
            return enums_1.AssetName.t3ETH;
        }
        case 't3tia': {
            return enums_1.AssetName.t3TIA;
        }
        case 'xdai': {
            return enums_1.AssetName.XDAI;
        }
        case 'bera': {
            return enums_1.AssetName.BERA;
        }
        default: {
            throw new Error(`Invalid asset name ${assetName} in mapAssetNameT3rnToAssetNameProvider`);
        }
    }
}
exports.moralisChainIds = {
    arbm: 42_161,
    basm: 8453,
    bscm: 56,
    blst: 81_457,
    blsm: 81_457,
    btcm: 100,
    ethm: 1,
    linm: 59_144,
    optm: 10,
    scrm: 534_352,
    unim: 130,
    unit: 1301,
    l3rn: 8453, // l3rn -> base
    mont: 8453, // monad -> base
    monm: 8453, // monad -> base
    seit: 8453, // sei -> base
    seim: 8453, // sei -> base
    t3rn: 8453, // t3rn -> base
    gnot: 8453, // t3rn -> base
    gnom: 8453, // t3rn -> base
    sklt: 8453, // t3rn -> base
    sklm: 8453, // t3rn -> base
    arbt: 42_161,
    bast: 84_532,
    bsct: 97,
    lint: 59_144,
    opst: 10,
    scrt: 534_351,
    sept: 11_155_111,
    l0rn: 8453, // l0rn -> base
    l1rn: 8453, // l1rn -> base
    l2rn: 8453, // l0rn -> base
    t1rn: 8453, // t1rn -> base
    t2rn: 8453, // t2rn -> base
    lol3: 1,
    lols: 1,
    lold: 1,
    zero: 404,
    ctim: 8453,
    ctit: 8453,
    lskt: 8453,
    lskm: 8453,
    abst: 8453,
    absm: 8453,
    bert: 8453,
    berm: 8453,
};
const networkIdT3rnToMoralisChainId = (networkId) => exports.moralisChainIds[networkId];
exports.networkIdT3rnToMoralisChainId = networkIdT3rnToMoralisChainId;
//# sourceMappingURL=mappings.js.map