@toon-protocol/townhouse 0.8.0 → 0.10.0

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.
@@ -1,46 +0,0 @@
1
- import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
-
3
- // src/constants.ts
4
- var CONTAINER_PREFIX = "townhouse-";
5
- var NODE_BTP_PORT = 3e3;
6
- var DEFAULT_CONNECTOR_IMAGE = (
7
- // v3.8.1 — latest published connector (Mina settlement fix). Wires the
8
- // dual-party Mina payment-channel claim path (toon-protocol/connector#84 —
9
- // the on-chain `claimFromChannel` now passes the real counterparty balance,
10
- // salt, and both signatures instead of the single-sig/zeroed placeholders
11
- // that left Mina settlement un-claimable). EVM and Solana settlement are
12
- // unchanged. Patch over 3.8.0, which migrated local SQLite from
13
- // better-sqlite3 to libsql (toon-protocol/connector#79 — removed the
14
- // native-build failure on Node 24 that left the settlement/claim subsystem
15
- // silently un-wired → value-bearing packets auto-fulfilled instead of
16
- // claim-gated) AND made inbound per-packet claim validation relation-aware
17
- // (toon-protocol/connector#78 — a child node skips the inline-claim
18
- // requirement for PREPAREs forwarded from its parent, unblocking Story 50.3's
19
- // AC#1 kind:1 F06 "No payment channel claim attached" on the apex→child hop).
20
- // No breaking changes to the SDK/admin contract within 3.x (verified >=3.3.2
21
- // through 3.8.1 — see packages/sdk/CONNECTOR_MIGRATION.md). Digest resolved via
22
- // `docker buildx imagetools inspect` for tag 3.8.1. To bump: see
23
- // CONNECTOR_RELEASE_CONTRACT.md.
24
- "ghcr.io/toon-protocol/connector@sha256:d22a786f82cc928238b0ef14c6455d1238bd2f42744138cad8af81ca1747ff6e"
25
- );
26
- var ACCOUNT_INDEX_TOWN = 0;
27
- var ACCOUNT_INDEX_MILL = 1;
28
- var ACCOUNT_INDEX_DVM = 2;
29
- var ACCOUNT_INDEX_APEX = 3;
30
- var TOWN_HEALTH_PORT = 3100;
31
- var MILL_HEALTH_PORT = 3200;
32
- var DVM_HEALTH_PORT = 3400;
33
-
34
- export {
35
- CONTAINER_PREFIX,
36
- NODE_BTP_PORT,
37
- DEFAULT_CONNECTOR_IMAGE,
38
- ACCOUNT_INDEX_TOWN,
39
- ACCOUNT_INDEX_MILL,
40
- ACCOUNT_INDEX_DVM,
41
- ACCOUNT_INDEX_APEX,
42
- TOWN_HEALTH_PORT,
43
- MILL_HEALTH_PORT,
44
- DVM_HEALTH_PORT
45
- };
46
- //# sourceMappingURL=chunk-RCHQDZBZ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/constants.ts"],"sourcesContent":["/**\n * Shared constants for Townhouse package.\n *\n * Single source of truth for values used across multiple modules\n * (orchestrator, config-generator, CLI).\n */\n\n/** Container name prefix for all Townhouse-managed Docker containers */\nexport const CONTAINER_PREFIX = 'townhouse-';\n\n/** Internal BTP port exposed by node containers (Docker-internal only) */\nexport const NODE_BTP_PORT = 3000;\n\n/**\n * Default connector Docker image — digest-pinned per CONNECTOR_RELEASE_CONTRACT.md.\n *\n * To bump: capture a new digest by running the Story 45.1 publish workflow\n * against the desired connector tag, copy the resulting image-manifest.json\n * connector entry's digest, and update this constant + the contract canary\n * fixture. See packages/sdk/CONNECTOR_RELEASE_CONTRACT.md for the full bump\n * checklist + breaking-changes history.\n *\n * To read the human-readable tag for log output, consult dist/image-manifest.json:\n * manifest.images.connector.tag\n */\nexport const DEFAULT_CONNECTOR_IMAGE =\n // v3.8.1 — latest published connector (Mina settlement fix). Wires the\n // dual-party Mina payment-channel claim path (toon-protocol/connector#84 —\n // the on-chain `claimFromChannel` now passes the real counterparty balance,\n // salt, and both signatures instead of the single-sig/zeroed placeholders\n // that left Mina settlement un-claimable). EVM and Solana settlement are\n // unchanged. Patch over 3.8.0, which migrated local SQLite from\n // better-sqlite3 to libsql (toon-protocol/connector#79 — removed the\n // native-build failure on Node 24 that left the settlement/claim subsystem\n // silently un-wired → value-bearing packets auto-fulfilled instead of\n // claim-gated) AND made inbound per-packet claim validation relation-aware\n // (toon-protocol/connector#78 — a child node skips the inline-claim\n // requirement for PREPAREs forwarded from its parent, unblocking Story 50.3's\n // AC#1 kind:1 F06 \"No payment channel claim attached\" on the apex→child hop).\n // No breaking changes to the SDK/admin contract within 3.x (verified >=3.3.2\n // through 3.8.1 — see packages/sdk/CONNECTOR_MIGRATION.md). Digest resolved via\n // `docker buildx imagetools inspect` for tag 3.8.1. To bump: see\n // CONNECTOR_RELEASE_CONTRACT.md.\n 'ghcr.io/toon-protocol/connector@sha256:d22a786f82cc928238b0ef14c6455d1238bd2f42744138cad8af81ca1747ff6e';\n\n/**\n * HD wallet account indices per node type (Story 21.4, D21-008).\n * BIP-44 paths: m/44'/{coin}'/ACCOUNT'/0/0\n */\nexport const ACCOUNT_INDEX_TOWN = 0;\nexport const ACCOUNT_INDEX_MILL = 1;\nexport const ACCOUNT_INDEX_DVM = 2;\n/**\n * Apex (connector) settlement account. The apex is the parent connector\n * (`g.townhouse`) that signs settlement claims; its key is derived from the\n * operator mnemonic at this index so the operator never has to supply a raw\n * settlement key. Index 3 continues the town/mill/dvm sequence (and matches the\n * dev convention where the apex is Anvil account[3], 0x90F79bf6…).\n */\nexport const ACCOUNT_INDEX_APEX = 3;\n\n/** BLS health port exposed by each node container type (internal Docker port). */\nexport const TOWN_HEALTH_PORT = 3100;\nexport const MILL_HEALTH_PORT = 3200;\nexport const DVM_HEALTH_PORT = 3400;\n"],"mappings":";;;AAQO,IAAM,mBAAmB;AAGzB,IAAM,gBAAgB;AActB,IAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBX;AAAA;AAMK,IAAM,qBAAqB;AAC3B,IAAM,qBAAqB;AAC3B,IAAM,oBAAoB;AAQ1B,IAAM,qBAAqB;AAG3B,IAAM,mBAAmB;AACzB,IAAM,mBAAmB;AACzB,IAAM,kBAAkB;","names":[]}