Catalog npm
Back to packageRELEASE DETAILS

0.1.1

npm

@0xdivyanshh/tab-params

Frozen credit parameter sets for Tab. A published ceiling stays recomputable.

Published13 Sept 2026
Direct dependencies2
Transitive dependenciesNot calculated

README

Current package documentation

@0xdivyanshh/tab-params

Tier 0 · versioned constants · no I/O

Every tunable number in the credit product, behind a pinned MODEL_VERSION.

Tier multiples, base APRs, ramp steps and clamps, per-call and per-window caps, the 40% concentration cap, the 0.6 unattested discount, AGE_FULL_DAYS, hop limits for funding ancestry, starter tab parameters, window length, hold TTL, and the rounding direction for interest and ramp.

Why this is a package and not a config file

verify-ceiling recomputes a published ceiling and compares the hash. That only means something if the recomputation uses byte-identical parameters to the ones in force when the ceiling was published. So parameters must be versioned, importable, and published to HCS alongside every ceiling — not read from an environment variable that has since changed.

Every ceiling message carries the MODEL_VERSION it was computed under. Changing any number here is a version bump, and old versions stay in the package so historical ceilings remain verifiable.

Contents

FileHolds
src/versions/v1.tsthe v1 parameter set, frozen
src/index.tsMODEL_VERSION, the current set, and a lookup by version
src/schema.tszod schema for a parameter set, so a new version cannot omit a field

Invariants

  • Parameter sets are frozen once published. Add v2, never edit v1. A ceiling published under v1 must remain recomputable forever.
  • No parameter is read from the environment. The only exception is the demo-mode window length, and that is a documented override that appears in the config dump.
  • AGE_FULL_DAYS is tuned down for testnet and that is stated out loud. On a testnet every account is young, so a naive age factor rejects everyone. The tuned value goes in the config dump and is named in the demo video. The README is right that hiding a tuning knob reads worse than explaining it.
  • Rounding direction for interest accrual and the ramp factor is pinned here. Both compound. Two call sites rounding differently will diverge, and the divergence will be small enough to survive review and large enough to break verify-tab.

Definition of done

A snapshot test that fails if any v1 number changes — that is the whole point of the package. Plus a config-dump function the CLI can print, since the demo depends on being able to show every parameter in force.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
zod
Environment
{
  "local_name": "zod",
  "alias": false,
  "peer_metadata": null
}
^4.5.4runtime
@0xdivyanshh/tab-money
Environment
{
  "local_name": "@0xdivyanshh/tab-money",
  "alias": false,
  "peer_metadata": null
}
0.1.1runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "3452836f2315af6b51863dc7e301d59dfccb1ace",
  "tarball": "https://registry.npmjs.org/@0xdivyanshh/tab-params/-/tab-params-0.1.1.tgz",
  "fileCount": 26,
  "integrity": "sha512-1s2sIMv44PDPv72n+Adj8hn6376DJngfVi3zIU9n5iJC+fV5dzdPo0BKzyAIuiJo7+VzW6rFcoTWHowk3qrwqw==",
  "signatures": [
    {
      "sig": "MEUCIDGZ5loqizdka6r5+ucEq5ymT50hsUgzeTbz8eDcu3J8AiEA7RE6DSZRnngaHH/6kd7fcommBL5pst9SKCaQ4fqaePQ=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 54916
}

Repository

PENDING
0xnerd100/tab

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:05 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:01c3292afdb25380c3e7c7ec18b90944eb51ed198ea4ea1c991b6b8e995962cf

Other collected versions

0.1.013 SeptView all collected versions →