"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseTokens = exports.getToken = exports.tokens = void 0;
const utils_1 = require("ethers/lib/utils");
const bscmainnet_1 = __importDefault(require("./bscmainnet"));
const bsctestnet_1 = __importDefault(require("./bsctestnet"));
const hardhat_1 = __importDefault(require("./hardhat"));
exports.tokens = {
    hardhat: hardhat_1.default,
    bsctestnet: bsctestnet_1.default,
    bscmainnet: bscmainnet_1.default,
    sepolia: {},
    ethereum: {},
    opbnbtestnet: {},
    opbnbmainnet: {},
    arbitrumsepolia: {},
    arbitrumone: {},
    opsepolia: {},
    opmainnet: {},
    basesepolia: {},
    basemainnet: {},
    unichainsepolia: {},
    unichainmainnet: {},
    berachainbepolia: {},
    zksyncsepolia: {},
    zksyncmainnet: {},
};
const getToken = (chain, token) => {
    return exports.tokens[chain][token];
};
exports.getToken = getToken;
const parseTokens = (amount, chain, token) => {
    return (0, utils_1.parseUnits)(amount, (0, exports.getToken)(chain, token).decimals);
};
exports.parseTokens = parseTokens;
