UNPKG

@xlink-network/xlink-sdk

Version:
41 lines (40 loc) 1.38 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/utils/bigintHelpers.ts var bigintHelpers_exports = {}; __export(bigintHelpers_exports, { MAX_BIGINT: () => MAX_BIGINT, max: () => max, sum: () => sum }); module.exports = __toCommonJS(bigintHelpers_exports); var MAX_BIGINT = BigInt(Number.MAX_VALUE); function sum(nums) { return nums.reduce((acc, val) => acc + val, 0n); } function max(nums) { return nums.reduce((acc, val) => acc > val ? acc : val, 0n); } // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { MAX_BIGINT, max, sum }); //# sourceMappingURL=bigintHelpers.js.map