"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BASE_API_URL = exports.getGameVersionType = exports.transformRewardArrayToObject = exports.RewardType = exports.NetworkId = void 0;
var NetworkId;
(function (NetworkId) {
    NetworkId["EthereumMainnet"] = "1";
    NetworkId["Kovan"] = "42";
    NetworkId["PolygonMainnet"] = "137";
    NetworkId["PolygonMumbai"] = "80001";
    NetworkId["CeloMainnet"] = "42220";
    NetworkId["CeloAlfajores"] = "44787";
})(NetworkId = exports.NetworkId || (exports.NetworkId = {}));
var RewardType;
(function (RewardType) {
    RewardType["Reward"] = "reward";
    RewardType["Incentive"] = "incentive";
    RewardType["Deposit"] = "deposit";
})(RewardType = exports.RewardType || (exports.RewardType = {}));
const transformRewardArrayToObject = (rewards) => {
    const playerReward = {};
    rewards.forEach(reward => {
        const { type } = reward;
        playerReward[type] = reward;
    });
    return playerReward;
};
exports.transformRewardArrayToObject = transformRewardArrayToObject;
const ContractVersions = ['2.0.0', '2.0.1', '2.0.2', '2.0.3'];
const getGameVersionType = (contractVersion) => ContractVersions.includes(contractVersion);
exports.getGameVersionType = getGameVersionType;
exports.BASE_API_URL = 'https://goodghosting-api.com/v1';
//# sourceMappingURL=halofi.game.constants.js.map