Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ docs/

# Canton sandbox ports/ready file written by scripts/sandbox.sh
.canton-ports.json

# The registry's build output ships inside the npm package, so the rule that
# keeps it out of git lives here rather than beside it: npm applies a NESTED
# ignore file to the pack walk even for a path the root "files" allowlist
# names, while the allowlist does outrank this file. The glob is what makes an
# anchored root rule cover what the unanchored one beside the code covered, a
# dist directory at any depth under registry/, not only the compiler's own.
registry/**/dist
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ from that file.
- `dpm` (Digital Asset Package Manager) and a JDK 17+ on `PATH`
(`curl https://get.digitalasset.com/install/install.sh | sh`, then
`dpm install 3.4.11`).
- Node 18+ for the registry service, its test suites, and the seed script.
- Node 20+ for the registry service, its test suites, and the seed script.
- `git` + network access (setup clones `canton-network/splice`).

## Bumping Splice
Expand Down
2 changes: 1 addition & 1 deletion RUNBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ been re-probed since.

- `dpm` and a JDK 17+ on `PATH` (see `CLAUDE.md`)
- `deps/` vendored: `npm run setup`, or `bash scripts/fetch-dep.sh` directly
- Node 18+ for the seed script and the registry service
- Node 20+ for the seed script and the registry service

## 1. Start the sandbox

Expand Down
4 changes: 2 additions & 2 deletions SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ holding for any surplus, so no value is created or destroyed.

## 6. Registry HTTP service

A TypeScript service (Express, `express-openapi-validator`, pino; Node 18+) that
A TypeScript service (Express, `express-openapi-validator`, pino; Node 20+) that
validates incoming requests against the four CN Token Standard OpenAPI specs it
ships. Responses are covered by the unit suite rather than by runtime schema
validation. The service is **read-only**: it queries the JSON Ledger API for
Expand Down Expand Up @@ -470,7 +470,7 @@ The sandbox runs in the foreground, so the seed and the end-to-end suite go in a
second shell. The end-to-end suite creates everything it needs, so seeding is
only required if you also want to drive the service by hand.

Requirements: `dpm` and a JDK 17+ on `PATH` for the Daml build, Node 18+ for the
Requirements: `dpm` and a JDK 17+ on `PATH` for the Daml build, Node 20+ for the
service and its suites, and `git` plus network access for the initial vendoring.

---
Expand Down
14 changes: 10 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "canton-token-forge",
"version": "0.0.1",
"name": "@bootnodedev/canton-token-forge",
"version": "0.2.0",
"description": "A reusable, multi-instrument CIP-0056 (CN Token Standard) compliant token for demos and sandboxes",
"license": "MIT",
"type": "commonjs",
"type": "module",
"scripts": {
"setup": "bash scripts/fetch-dep.sh",
"clean": "rm -rf daml/canton-token-forge/.daml daml/canton-token-forge-test/.daml consumer-smoke/consumer/.daml consumer-smoke/consumer/vendor registry/dist",
Expand All @@ -16,6 +16,10 @@
"test:coverage": "npm run build:canton-token-forge && cd daml/canton-token-forge-test && LANG=C.UTF-8 dpm test --all --show-coverage --coverage-ignore-choice '^splice' --coverage-ignore-choice ':Archive$'",
"prepare": "tsc -p registry/tsconfig.json"
},
"repository": "github:BootNodeDev/canton-token-forge",
"engines": { "node": ">=20" },
"bin": { "canton-token-forge-registry": "registry/dist/index.js" },
"files": ["registry/dist", "registry/openapi", "registry/.env.example"],
"dependencies": {
"dotenv": "^16.4.5",
"express": "^4.19.2",
Expand Down
1 change: 0 additions & 1 deletion registry/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
dist
.env
.env.*
!.env.example
2 changes: 1 addition & 1 deletion registry/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"engines": {
"node": ">=18"
"node": ">=20"
},
"scripts": {
"build": "tsc -p tsconfig.json",
Expand Down
1 change: 1 addition & 0 deletions registry/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
import 'dotenv/config'
import { type Config, loadConfig } from './config.js'
import { HttpLedgerClient } from './ledger.js'
Expand Down
Loading