CodeSampleX

Sample

math-intrinsics 1.1.0: abs, floor, isFinite

Verified sample for npm math-intrinsics 1.1.0: abs, floor, isFinite. The contract ran on node 22 · linux alpine/x64 · docker and passed: abs returns absolute…

sha256:55d75fdf72d550fb7c88a68807e78c293a5b5301f4d21faa43d7a8c2295d1765

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment node 22 linux x64 node 22 javascript npm 10

Verification-run environments

Environment Contract Stages Run
node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-19

Case

HOW
Goal
verify pkg:npm/math-intrinsics@1.1.0
Packages
Symbols
  • math-intrinsics/abs
  • math-intrinsics/floor
  • math-intrinsics/isFinite
  • math-intrinsics/isInteger
  • math-intrinsics/isNaN
  • math-intrinsics/isNegativeZero
  • math-intrinsics/max
  • math-intrinsics/min
  • math-intrinsics/mod
  • math-intrinsics/pow
  • math-intrinsics/round
  • math-intrinsics/sign
  • math-intrinsics/constants/maxArrayLength
  • math-intrinsics/constants/maxSafeInteger
  • math-intrinsics/constants/maxValue
Environment
node 22
Created
2026-08-18T17:55:30Z

Contract

  1. abs returns absolute value for positive, negative, and signed zero inputs
  2. floor returns the largest integer less than or equal to a given number
  3. isFinite returns true only for finite number primitives and false for non-numbers and infinities
  4. isInteger returns true for integer numbers and false for non-integers and non-numbers
  5. isNaN returns true exclusively for NaN and false for non-NaN values including strings
  6. isNegativeZero correctly distinguishes -0 from +0 and other values
  7. max and min compute multi-argument numeric extremums correctly
  8. mod computes mathematical positive modulo for positive and negative numbers
  9. pow computes exponentiation base to power
  10. round returns the value of a number rounded to the nearest integer
  11. sign returns correct numeric sign for positive, negative, zero, and infinity
  12. constants expose maxArrayLength, maxSafeInteger, and maxValue with exact standard numeric values

Files

  • PROMPT.md
  • csx.json
  • index.js
  • package-lock.json
  • package.json
  • spec.json
  • test/contract.js

Download the source artifact (tar.gz)

Origin Seeder

anonymous