opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
13 lines • 526 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatFeeHistory = void 0;
function formatFeeHistory(feeHistory) {
return {
baseFeePerGas: feeHistory.baseFeePerGas.map((value) => BigInt(value)),
gasUsedRatio: feeHistory.gasUsedRatio,
oldestBlock: BigInt(feeHistory.oldestBlock),
reward: feeHistory.reward?.map((reward) => reward.map((value) => BigInt(value))),
};
}
exports.formatFeeHistory = formatFeeHistory;
//# sourceMappingURL=feeHistory.js.map
;