UNPKG

@fractional-company/common

Version:
16 lines (15 loc) 544 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStartBlock = exports.START_BLOCK_NUMBERS = void 0; const chains_1 = require("../common/chains"); exports.START_BLOCK_NUMBERS = { [chains_1.CHAINS.MAINNET]: 12749923, [chains_1.CHAINS.GÖRLI]: 7802000, }; const getStartBlock = (chainId) => { if (!chainId || !parseInt(chainId)) { chainId = chains_1.CHAINS.MAINNET; } return exports.START_BLOCK_NUMBERS[parseInt(chainId)]; }; exports.getStartBlock = getStartBlock;