"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.networkToAssetAddressOnMoralis = void 0;
const assetAddresses_1 = require("./assetAddresses");
const enums_1 = require("./enums");
const updateAddress = (assets, assetName, newAddress) => assets.map((assetAndAddress) => assetAndAddress.asset === assetName ? { ...assetAndAddress, address: newAddress } : assetAndAddress);
// Copy of assetAddresses with some addresses updated
// but some don't and need to be updated - specifically the native tokens
const assetAddressesMoralis = {
    ...assetAddresses_1.assetAddresses,
    arbm: updateAddress(assetAddresses_1.assetAddresses.arbm, enums_1.AssetName.ETH, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1'),
    basm: updateAddress(assetAddresses_1.assetAddresses.basm, enums_1.AssetName.ETH, '0x4200000000000000000000000000000000000006'),
    bscm: updateAddress(assetAddresses_1.assetAddresses.bscm, enums_1.AssetName.BNB, '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c'),
    blsm: updateAddress(assetAddresses_1.assetAddresses.blsm, enums_1.AssetName.ETH, '0x4300000000000000000000000000000000000004'),
    ethm: updateAddress(assetAddresses_1.assetAddresses.ethm, enums_1.AssetName.ETH, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2'),
    linm: updateAddress(assetAddresses_1.assetAddresses.ethm, enums_1.AssetName.ETH, '0x4186BFC76E2E237523CBC30FD220FE055156b41F'),
    optm: updateAddress(assetAddresses_1.assetAddresses.ethm, enums_1.AssetName.ETH, '0x4200000000000000000000000000000000000006'),
    arbt: updateAddress(assetAddresses_1.assetAddresses.arbt, enums_1.AssetName.ETH, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1'),
    bast: updateAddress(assetAddresses_1.assetAddresses.bast, enums_1.AssetName.ETH, '0x4200000000000000000000000000000000000006'),
    bsct: updateAddress(assetAddresses_1.assetAddresses.bsct, enums_1.AssetName.BNB, '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c'),
    blst: updateAddress(assetAddresses_1.assetAddresses.blst, enums_1.AssetName.ETH, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1'),
    lint: updateAddress(assetAddresses_1.assetAddresses.ethm, enums_1.AssetName.ETH, '0x4186BFC76E2E237523CBC30FD220FE055156b41F'),
};
exports.networkToAssetAddressOnMoralis = new Map(Object.entries(assetAddressesMoralis));
//# sourceMappingURL=assetAddressesMoralis.js.map