@odatano/core 1.7.9 → 1.8.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.
Files changed (50) hide show
  1. package/LICENSE +1 -24
  2. package/README.md +102 -96
  3. package/config/preview/cardano-node/config.json +0 -1
  4. package/config/preview/cardano-node/peer-snapshot.json +890 -0
  5. package/config/preview/cardano-node/topology.json +18 -13
  6. package/package.json +9 -10
  7. package/prod.mtaext +17 -0
  8. package/prod.mtaext.example +27 -0
  9. package/review.md +42 -0
  10. package/src/index.d.ts.map +1 -1
  11. package/src/index.js +12 -2
  12. package/src/index.js.map +1 -1
  13. package/srv/blockchain/cardano-client.d.ts.map +1 -1
  14. package/srv/blockchain/cardano-tx-builder.js +3 -3
  15. package/srv/blockchain/cardano-tx-builder.js.map +1 -1
  16. package/srv/blockchain/signing/signature-verifier.d.ts.map +1 -1
  17. package/srv/blockchain/signing/signature-verifier.js +70 -79
  18. package/srv/blockchain/signing/signature-verifier.js.map +1 -1
  19. package/srv/blockchain/transaction-building/buildooor-tx.d.ts.map +1 -1
  20. package/srv/blockchain/transaction-building/buildooor-tx.js +24 -4
  21. package/srv/blockchain/transaction-building/buildooor-tx.js.map +1 -1
  22. package/srv/cardano-service.js +1 -1
  23. package/srv/cardano-service.js.map +1 -1
  24. package/srv/cardano-sign-service.cds +5 -0
  25. package/srv/cardano-sign-service.js +2 -3
  26. package/srv/cardano-sign-service.js.map +1 -1
  27. package/srv/cardano-tx-service.cds +8 -0
  28. package/srv/cardano-tx-service.js +19 -2
  29. package/srv/cardano-tx-service.js.map +1 -1
  30. package/srv/server.d.ts.map +1 -1
  31. package/srv/server.js +33 -32
  32. package/srv/server.js.map +1 -1
  33. package/srv/utils/plutus-placeholders.d.ts.map +1 -1
  34. package/srv/utils/plutus-placeholders.js +2 -3
  35. package/srv/utils/plutus-placeholders.js.map +1 -1
  36. package/srv/utils/signing-helper.d.ts.map +1 -1
  37. package/srv/utils/signing-helper.js +6 -47
  38. package/srv/utils/signing-helper.js.map +1 -1
  39. package/srv/utils/tx-build-helper.d.ts.map +1 -1
  40. package/srv/utils/tx-build-helper.js +19 -43
  41. package/srv/utils/tx-build-helper.js.map +1 -1
  42. package/srv/blockchain/backends/gerolamo-backend.d.ts.map +0 -1
  43. package/srv/blockchain/backends/gerolamo-backend.js +0 -321
  44. package/srv/blockchain/backends/gerolamo-backend.js.map +0 -1
  45. package/srv/blockchain/transaction-building/csl-tx.d.ts.map +0 -1
  46. package/srv/blockchain/transaction-building/csl-tx.js +0 -922
  47. package/srv/blockchain/transaction-building/csl-tx.js.map +0 -1
  48. package/srv/blockchain/transaction-building/tx-builder-registry.d.ts.map +0 -1
  49. package/srv/blockchain/transaction-building/tx-builder-registry.js +0 -69
  50. package/srv/blockchain/transaction-building/tx-builder-registry.js.map +0 -1
package/LICENSE CHANGED
@@ -173,29 +173,6 @@
173
173
  incurred by, or claims asserted against, such Contributor by reason
174
174
  of your accepting any such warranty or additional liability.
175
175
 
176
- END OF TERMS AND CONDITIONS
176
+ Copyright [2026] [Max Weber]
177
177
 
178
- APPENDIX: How to apply the Apache License to your work.
179
178
 
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
package/README.md CHANGED
@@ -1,96 +1,102 @@
1
- ![alt text](docs/assets/odatano_logo/logo_odatano_white.png)
2
-
3
- # Enterprise OData Services for the Cardano Blockchain
4
-
5
- Funded by [Cardano Catalyst Fund 14](https://projectcatalyst.io/funds/14/sponsored-by-leftovers/sap-cardano-odata-v4-api-with-cap-and-sap-cardano-sdk) — all four milestones completed and approved (April 2026).
6
-
7
- **ODATANO** is an SAP CAP–based service that exposes the Cardano blockchain via a standardized **OData V4** interface, enabling enterprise-grade read and write access with native transaction building.
8
-
9
- [![Tests](https://github.com/ODATANO/ODATANO/actions/workflows/test.yaml/badge.svg)](https://github.com/ODATANO/ODATANO/actions/workflows/test.yaml)
10
- [![Coverage](https://codecov.io/gh/ODATANO/ODATANO/branch/main/graph/badge.svg)](https://codecov.io/gh/ODATANO/ODATANO)
11
- [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue)]()
12
- [![CAP](https://img.shields.io/badge/SAP%20CAP-9.x-blue)]()
13
- [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
14
- [![npm version](https://img.shields.io/npm/v/@odatano/core)](https://www.npmjs.com/package/@odatano/core)
15
-
16
- ## Quick Start
17
-
18
- ### As CAP Plugin (recommended)
19
-
20
- Add ODATANO to any existing SAP CAP project:
21
-
22
- ```bash
23
- npm install @odatano/core @cap-js/sqlite
24
- ```
25
-
26
- ```json
27
- {
28
- "cds": {
29
- "requires": {
30
- "db": { "kind": "sqlite" },
31
- "odatano-core": {
32
- "network": "preview",
33
- "backends": ["blockfrost"],
34
- "blockfrostApiKey": "preview_your_api_key_here",
35
- "blockfrostCustomBackend": "",
36
- "txBuilders": ["buildooor"]
37
- }
38
- }
39
- }
40
- }
41
- ```
42
-
43
- ```bash
44
- cds deploy --to sqlite
45
- cds serve
46
- ```
47
-
48
- > **Self-hosted Blockfrost-compatible node?** (Dolos MiniBF, Demeter Self-Hosted)
49
- > Set `blockfrostCustomBackend` to the node's base URL (e.g. `http://localhost:3010/api/v0`).
50
- > When set, `blockfrostApiKey` becomes optional. See the [Backend Configuration Guide](docs/guides/BACKEND_CONFIGURATION.md#self-hosted-blockfrost-compatible-backends).
51
-
52
- ### Standalone
53
-
54
- Run ODATANO as a self-contained service (no host CAP project needed):
55
-
56
- ```bash
57
- git clone https://github.com/ODATANO/ODATANO && cd ODATANO
58
- npm ci
59
- cp .env.example .env # set BLOCKFROST_API_KEY, NETWORK, BACKENDS
60
- cds deploy --to sqlite
61
- cds serve
62
- ```
63
-
64
- Or with Docker:
65
-
66
- ```bash
67
- docker-compose up -d
68
- ```
69
-
70
- Service available at `http://localhost:4004`. See [Quick Start Guide](docs/QUICK_START.md) for full details.
71
-
72
- ## Dev Mode: Mocked Authentication
73
-
74
- > **Heads-up.** `cds serve` uses CAP's mocked auth: `@requires: 'authenticated-user'` accepts any Basic-Auth header against a mock user (`alice`, `bob`, …) — passwords are not checked. Anonymous requests get 401, but anyone reaching the port can authenticate.
75
- >
76
- > Production needs the `[production]` profile (`NODE_ENV=production`), which switches to `auth: xsuaa`. Don't expose a dev-mode instance. See the [Security Guide](docs/guides/SECURITY_GUIDE.md#authentication-xsuaa).
77
-
78
- ## Documentation
79
-
80
- | Guide | Description |
81
- |-------|-------------|
82
- | [Quick Start](docs/QUICK_START.md) | Get running in 5 minutes |
83
- | [User Guide](docs/guides/USER_GUIDE.md) | API usage, entities, and examples |
84
- | [Developer Guide](docs/guides/DEVELOPER_GUIDE.md) | Architecture and development |
85
- | [Transaction Workflow](docs/guides/TRANSACTION_WORKFLOW.md) | Build → Sign → Submit flow |
86
- | [Security Guide](docs/guides/SECURITY_GUIDE.md) | Authentication, signing security, HSM |
87
- | [Docker Deployment](docs/guides/DOCKER_DEPLOYMENT.md) | Container deployment |
88
-
89
- ## License
90
-
91
- Apache License 2.0 - see [LICENSE](LICENSE)
92
-
93
- ## Support
94
-
95
- - **Issues**: [GitHub Issues](https://github.com/ODATANO/ODATANO/issues)
96
- - **Project Lead**: Max Weber (max@maxalexweber.de)
1
+ ![alt text](docs/assets/odatano_logo/logo_odatano_white.png)
2
+
3
+ # Enterprise OData Services for the Cardano Blockchain
4
+
5
+ Funded by [Cardano Catalyst Fund 14](https://projectcatalyst.io/funds/14/sponsored-by-leftovers/sap-cardano-odata-v4-api-with-cap-and-sap-cardano-sdk) all four milestones completed and approved (April 2026).
6
+
7
+ **ODATANO** is an SAP CAP–based service that exposes the Cardano blockchain via a standardized **OData V4** interface, enabling enterprise-grade read and write access with native transaction building.
8
+
9
+ [![Tests](https://github.com/ODATANO/ODATANO/actions/workflows/test.yaml/badge.svg)](https://github.com/ODATANO/ODATANO/actions/workflows/test.yaml)
10
+ [![Coverage](https://codecov.io/gh/ODATANO/ODATANO/branch/main/graph/badge.svg)](https://codecov.io/gh/ODATANO/ODATANO)
11
+ [![npm version](https://img.shields.io/npm/v/@odatano/core?logo=npm)](https://www.npmjs.com/package/@odatano/core)
12
+ [![npm downloads](https://img.shields.io/npm/dt/@odatano/core?logo=npm&label=downloads&color=blue)](https://www.npmjs.com/package/@odatano/core)
13
+ [![License](https://img.shields.io/badge/license-Apache%202.0-yellow)](LICENSE)
14
+
15
+
16
+ ## Quick Start
17
+
18
+ ### As CAP Plugin (recommended)
19
+
20
+ Add ODATANO to any existing SAP CAP project:
21
+
22
+ ```bash
23
+ npm install @odatano/core @cap-js/sqlite
24
+ ```
25
+
26
+ ```json
27
+ {
28
+ "cds": {
29
+ "requires": {
30
+ "db": { "kind": "sqlite" },
31
+ "odatano-core": {
32
+ "network": "preview",
33
+ "backends": ["blockfrost"],
34
+ "blockfrostApiKey": "preview_your_api_key_here"
35
+ }
36
+ }
37
+ }
38
+ }
39
+ ```
40
+
41
+ ```bash
42
+ cds deploy --to sqlite
43
+ cds serve
44
+ ```
45
+
46
+ > **Self-hosted Blockfrost-compatible node?** (Dolos MiniBF, Demeter Self-Hosted)
47
+ > Set `blockfrostCustomBackend` to the node's base URL (e.g. `http://localhost:3010/api/v0`).
48
+ > When set, `blockfrostApiKey` becomes optional. See the [Backend Configuration Guide](docs/guides/BACKEND_CONFIGURATION.md#self-hosted-blockfrost-compatible-backends).
49
+
50
+ ### Standalone
51
+
52
+ Run ODATANO as a self-contained service (no host CAP project needed):
53
+
54
+ ```bash
55
+ git clone https://github.com/ODATANO/ODATANO && cd ODATANO
56
+ npm ci
57
+ cp .env.example .env # set BLOCKFROST_API_KEY, NETWORK, BACKENDS
58
+ cds deploy --to sqlite
59
+ cds serve
60
+ ```
61
+
62
+ Or with Docker — this brings up a local **cardano-node + Ogmios + ODATANO** stack
63
+ (Preview), with the service pre-wired to the local Ogmios backend:
64
+
65
+ ```bash
66
+ docker compose up -d # full stack
67
+ docker compose up -d cardano-node ogmios # just the chain backend (pre-sync)
68
+ docker compose logs -f ogmios # watch sync (/health: 202 syncing, 200 near tip)
69
+ ```
70
+
71
+ > First sync from genesis takes hours; the node DB persists in a Docker volume so
72
+ > restarts resume. Until Ogmios catches up, historical queries fall back to
73
+ > Blockfrost (set `BLOCKFROST_API_KEY`).
74
+
75
+ Service available at `http://localhost:4004`. See the [Quick Start Guide](docs/QUICK_START.md#local-ogmios--cardano-node-docker) for the local Ogmios stack and full details.
76
+
77
+ ## Dev Mode: Mocked Authentication
78
+
79
+ > **Heads-up.** `cds serve` uses CAP's mocked auth: `@requires: 'authenticated-user'` accepts any Basic-Auth header against a mock user (`alice`, `bob`, …) — passwords are not checked. Anonymous requests get 401, but anyone reaching the port can authenticate.
80
+ >
81
+ > Production needs the `[production]` profile (`NODE_ENV=production`), which switches to `auth: xsuaa`. Don't expose a dev-mode instance. See the [Security Guide](docs/guides/SECURITY_GUIDE.md#authentication-xsuaa).
82
+
83
+ ## Documentation
84
+
85
+ | Guide | Description |
86
+ |-------|-------------|
87
+ | [Quick Start](docs/QUICK_START.md) | Get running in 5 minutes |
88
+ | [User Guide](docs/guides/USER_GUIDE.md) | API usage, entities, and examples |
89
+ | [Developer Guide](docs/guides/DEVELOPER_GUIDE.md) | Architecture and development |
90
+ | [Transaction Workflow](docs/guides/TRANSACTION_WORKFLOW.md) | Build → Sign → Submit flow |
91
+ | [Security Guide](docs/guides/SECURITY_GUIDE.md) | Authentication, signing security, HSM |
92
+ | [Docker Deployment](docs/guides/DOCKER_DEPLOYMENT.md) | Container deployment |
93
+
94
+ ## License
95
+
96
+ Apache License 2.0 - see [LICENSE](LICENSE)
97
+
98
+ ## Support
99
+
100
+ - **Issues**: [GitHub Issues](https://github.com/ODATANO/ODATANO/issues)
101
+ - **Project Lead**: Max Weber
102
+ - **Contact**: info@odatano.dev
@@ -6,7 +6,6 @@
6
6
  "ConsensusMode": "GenesisMode",
7
7
  "ConwayGenesisFile": "conway-genesis.json",
8
8
  "ConwayGenesisHash": "9cc5084f02e27210eacba47af0872e3dba8946ad9460b6072d793e1d2f3987ef",
9
- "EnableP2P": false,
10
9
  "ExperimentalHardForksEnabled": false,
11
10
  "ExperimentalProtocolsEnabled": false,
12
11
  "LastKnownBlockVersion-Alt": 0,