@fairmint/open-captable-protocol-daml-js 0.3.34 → 0.3.36
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/README.md +6 -2
- package/package.json +35 -20
package/README.md
CHANGED
|
@@ -54,14 +54,18 @@ the source of truth for current versions, dependencies, and automation.
|
|
|
54
54
|
|
|
55
55
|
## Build and validate
|
|
56
56
|
|
|
57
|
+
Requires Node.js 22+ (see `@fairmint/canton-dev-tools`).
|
|
58
|
+
|
|
57
59
|
```bash
|
|
58
|
-
git submodule update --init --recursive
|
|
59
60
|
npm install
|
|
60
|
-
|
|
61
|
+
npx canton-dev-tools install-dpm-sdks
|
|
61
62
|
npm run build
|
|
62
63
|
npm test
|
|
63
64
|
```
|
|
64
65
|
|
|
66
|
+
`npm run build` syncs Splice DARs, generates `CapTable.daml`, runs `prepare-build` into
|
|
67
|
+
`generated/build/`, then builds with `dpm`. No Splice git submodule is required.
|
|
68
|
+
|
|
65
69
|
When generated bindings or the published npm surface are affected, also run:
|
|
66
70
|
|
|
67
71
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/open-captable-protocol-daml-js",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.36",
|
|
4
4
|
"description": "Open CapTable Protocol (OpenCapTable-v34) DAML contracts with generated JavaScript bindings. Other Fairmint DAML packages live in @fairmint/daml-js.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"daml",
|
|
@@ -54,34 +54,40 @@
|
|
|
54
54
|
"published-dars/OpenCapTable.dar"
|
|
55
55
|
],
|
|
56
56
|
"scripts": {
|
|
57
|
-
"backup-dar": "
|
|
58
|
-
"
|
|
57
|
+
"backup-dar": "canton-dev-tools backup-dar",
|
|
58
|
+
"prebuild": "npm run sync-splice-dars && npm run generate-captable && npm run prepare-build",
|
|
59
|
+
"build": "cd generated/build && PATH=\"$HOME/.dpm/bin:$PATH\" dpm build --all",
|
|
59
60
|
"build:npm-runtime-lib": "tsc -p tsconfig.npm-runtime.json",
|
|
60
61
|
"build:ts": "tsc",
|
|
61
|
-
"check:dar-
|
|
62
|
-
"check:dar-version-policy": "tsx scripts/check-dar-version-policy.ts",
|
|
62
|
+
"check:dar-version-policy": "canton-dev-tools check-dar-version-policy",
|
|
63
63
|
"check:schema-gaps": "tsx scripts/schema-gap-checker/check-schema-gaps.ts",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
64
|
+
"precheck-upgrade-compat": "npm run sync-splice-dars",
|
|
65
|
+
"check-upgrade-compat": "canton-dev-tools check-upgrade-compat",
|
|
66
|
+
"clean": "npm run prepare-build && for pkg in OpenCapTable-v34 Test; do (cd generated/build/$pkg && PATH=\"$HOME/.dpm/bin:$PATH\" dpm clean); done",
|
|
67
|
+
"codegen": "tsx scripts/codegen-js.ts",
|
|
67
68
|
"create-factory:ocp": "npm run codegen && tsx scripts/create-ocp-factory.ts --network devnet && tsx scripts/create-ocp-factory.ts --network mainnet",
|
|
68
69
|
"fix": "npm run lint:fix && npm run format:fix",
|
|
69
70
|
"format": "prettier --check .",
|
|
70
71
|
"format:fix": "prettier --write .",
|
|
72
|
+
"generate-captable": "tsx scripts/codegen/generate-captable.ts",
|
|
71
73
|
"lint": "eslint .",
|
|
72
|
-
"
|
|
74
|
+
"prelint:daml": "npm run sync-splice-dars",
|
|
75
|
+
"lint:daml": "if [ ! -f generated/build/multi-package.yaml ]; then npm run prepare-build || exit 1; fi; EXIT_CODE=0; for pkg in OpenCapTable-v34 Test; do echo \"Linting $pkg...\"; (cd generated/build/$pkg && PATH=\"$HOME/.dpm/bin:$PATH\" dpm damlc lint) || EXIT_CODE=1; done; exit $EXIT_CODE",
|
|
73
76
|
"lint:fix": "eslint . --fix",
|
|
74
77
|
"package:manifest": "npm run package:prep && npm pack --dry-run --json --ignore-scripts > /tmp/npm-pack.json 2>/dev/null && jq -r '.[0].files[].path' /tmp/npm-pack.json | sort | tsx scripts/collapse-manifest.ts > generated/npm-manifest.txt",
|
|
75
78
|
"package:prep": "npm run codegen && npm run update-version && tsx scripts/bundle-dependencies.ts && tsx scripts/create-package-index.ts && tsx scripts/create-root-index.ts && tsx scripts/fix-splice-refs.ts && npm run build:npm-runtime-lib",
|
|
76
79
|
"package:publish": "npm run package:manifest && npm publish",
|
|
80
|
+
"prepare-build": "canton-dev-tools prepare-build",
|
|
77
81
|
"prepare-release": "tsx scripts/prepare-release.ts",
|
|
78
82
|
"release:detect-factory-need": "tsx scripts/detect-factory-need.ts",
|
|
79
83
|
"release:parse-tag": "tsx scripts/parse-release-tag.ts",
|
|
80
84
|
"remove-participant-dar": "tsx scripts/remove-participant-dar.ts",
|
|
81
85
|
"prereplay-ocf:localnet": "tsx scripts/link-local-ocp-bindings.ts",
|
|
82
86
|
"replay-ocf:localnet": "tsx scripts/replay-ocf-database-on-localnet.ts",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
87
|
+
"sync-splice-dars": "canton-dev-tools sync-splice-dars",
|
|
88
|
+
"pretest": "npm run sync-splice-dars && npm run generate-captable",
|
|
89
|
+
"test": "npm run prepare-build && cd generated/build && PATH=\"$HOME/.dpm/bin:$PATH\" dpm build --all && cd Test && PATH=\"$HOME/.dpm/bin:$PATH\" dpm test --show-coverage --color --coverage-ignore-choice splice-amulet:.*",
|
|
90
|
+
"test:dar-version-policy": "tsx scripts/test/dar-version-policy.test.ts",
|
|
85
91
|
"test:factory-recovery": "tsx --test scripts/create-ocp-factory.test.ts",
|
|
86
92
|
"test:imports": "tsx scripts/test-imports.ts",
|
|
87
93
|
"pretest:localnet-traffic": "tsx scripts/link-local-ocp-bindings.ts",
|
|
@@ -90,7 +96,7 @@
|
|
|
90
96
|
"update-version": "tsx scripts/update-generated-package.ts",
|
|
91
97
|
"upgrade-package": "tsx scripts/upgrade-package.ts",
|
|
92
98
|
"upload-dar": "tsx scripts/upload-dar.ts",
|
|
93
|
-
"verify-dars": "
|
|
99
|
+
"verify-dars": "canton-dev-tools verify-dars",
|
|
94
100
|
"verify-merged-lib": "tsx scripts/verify-merged-lib-runtime.ts",
|
|
95
101
|
"verify-package": "tsx scripts/verify-package-imports.ts && npm run verify-merged-lib && npm run test:imports && npm run test:replay-ocf",
|
|
96
102
|
"vet-package-allow-incompatible-upgrade": "tsx scripts/vet-package-allow-incompatible-upgrade.ts"
|
|
@@ -103,30 +109,30 @@
|
|
|
103
109
|
"dependencies": {
|
|
104
110
|
"@daml/ledger": "2.10.4",
|
|
105
111
|
"@daml/types": "3.5.2",
|
|
106
|
-
"@fairmint/canton-node-sdk": "0.0.
|
|
112
|
+
"@fairmint/canton-node-sdk": "0.0.250"
|
|
107
113
|
},
|
|
108
114
|
"devDependencies": {
|
|
109
|
-
"@fairmint/canton-dev-tools": "0.1.
|
|
115
|
+
"@fairmint/canton-dev-tools": "0.1.5",
|
|
110
116
|
"@open-captable-protocol/canton": "0.8.4",
|
|
111
|
-
"@types/node": "26.1.
|
|
112
|
-
"@types/pg": "8.
|
|
117
|
+
"@types/node": "26.1.2",
|
|
118
|
+
"@types/pg": "8.20.3",
|
|
113
119
|
"@typescript-eslint/eslint-plugin": "8.62.1",
|
|
114
120
|
"@typescript-eslint/parser": "8.62.1",
|
|
115
121
|
"@typescript-eslint/utils": "8.62.1",
|
|
116
|
-
"eslint": "10.
|
|
122
|
+
"eslint": "10.8.0",
|
|
117
123
|
"eslint-config-prettier": "10.1.8",
|
|
118
124
|
"eslint-import-resolver-node": "0.4.0",
|
|
119
125
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
120
126
|
"eslint-plugin-import-x": "4.17.1",
|
|
121
127
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
122
128
|
"handlebars": "4.7.9",
|
|
123
|
-
"pg": "8.
|
|
124
|
-
"prettier": "3.9.
|
|
129
|
+
"pg": "8.22.0",
|
|
130
|
+
"prettier": "3.9.6",
|
|
125
131
|
"prettier-plugin-jsdoc": "1.8.1",
|
|
126
132
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
127
133
|
"prettier-plugin-packagejson": "3.0.2",
|
|
128
134
|
"ts-node": "10.9.2",
|
|
129
|
-
"tsx": "4.
|
|
135
|
+
"tsx": "4.23.5",
|
|
130
136
|
"typescript": "6.0.3",
|
|
131
137
|
"yaml": "2.9.0"
|
|
132
138
|
},
|
|
@@ -134,7 +140,16 @@
|
|
|
134
140
|
"@daml/ledger": "2.10.4",
|
|
135
141
|
"@daml/types": "3.5.2"
|
|
136
142
|
},
|
|
143
|
+
"engines": {
|
|
144
|
+
"node": ">=22"
|
|
145
|
+
},
|
|
137
146
|
"publishConfig": {
|
|
138
147
|
"access": "public"
|
|
148
|
+
},
|
|
149
|
+
"cantonDevTools": {
|
|
150
|
+
"darVersionPolicyWatchPaths": [
|
|
151
|
+
"scripts/codegen/",
|
|
152
|
+
"package.json"
|
|
153
|
+
]
|
|
139
154
|
}
|
|
140
155
|
}
|