@inversealtruism/cairnx-core 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@inversealtruism/cairnx-core",
3
+ "version": "0.1.8",
4
+ "description": "CairnX — tokens, atomic DvP trades and leased .csd names on Compute Substrate, as a pure deterministic convention library (Ordinals/Runes class). Ships the normative CONVENTION.md and the conformance vectors.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "LICENSE",
19
+ "README.md",
20
+ "CONVENTION.md",
21
+ "test/vectors"
22
+ ],
23
+ "dependencies": {
24
+ "@inversealtruism/csd-codec": "0.1.8"
25
+ },
26
+ "license": "MIT",
27
+ "sideEffects": false,
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/InverseAltruism/csd-sdk.git",
34
+ "directory": "packages/cairnx"
35
+ },
36
+ "homepage": "https://cairn-substrate.com/trade",
37
+ "scripts": {
38
+ "build": "tsup src/index.ts --format esm,cjs --dts --clean",
39
+ "test": "tsx test/vectors.test.ts && tsx test/name-decoy.test.ts"
40
+ }
41
+ }
@@ -0,0 +1,17 @@
1
+ # CairnX conformance artifacts
2
+
3
+ **`cases.json`** — language-neutral replay vectors: `{name, events, tipHeight, expectedState}`.
4
+ A third-party resolver is conformant iff, for every case, replaying `events` (already
5
+ consensus-normalized: height/pos/proposer/attester/paidTo as the chain provides them) at
6
+ `tipHeight` produces a canonical state JSON-equal to `expectedState`. Regenerate from the
7
+ reference implementation: `npx tsx test/vectors/gen.ts`. Run: `npx tsx test/vectors.test.ts`.
8
+
9
+ **`replay-hashes.json`** — sha256 of the canonical state of the REAL chain at each activation
10
+ height (+ a dated tip, informational). Any resolver refactor must reproduce these bit-for-bit:
11
+ `node scripts/conformance.mjs` verifies against the live indexer; `--update` re-pins (only
12
+ legitimate after an intentional canonical-format change, with the change documented here).
13
+
14
+ | format | what changed |
15
+ |---|---|
16
+ | 1 | initial pin (2026-06-12, tip 31083): localeCompare tiebreak, events log included in canonical state — RETIRED same day |
17
+ | 2 | 2026-06-12: ordinal (code-unit) comparison everywhere; canonical surface = data only (event log informational); CONVENTION §3/§5 made normative for both |