@odatano/core 1.7.10 → 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.
- package/LICENSE +1 -24
- package/README.md +102 -96
- package/config/preview/cardano-node/config.json +0 -1
- package/config/preview/cardano-node/peer-snapshot.json +890 -0
- package/config/preview/cardano-node/topology.json +18 -13
- package/package.json +9 -10
- package/prod.mtaext +17 -0
- package/prod.mtaext.example +27 -0
- package/review.md +42 -0
- package/srv/blockchain/cardano-client.d.ts.map +1 -1
- package/srv/blockchain/cardano-tx-builder.js +3 -3
- package/srv/blockchain/cardano-tx-builder.js.map +1 -1
- package/srv/blockchain/signing/signature-verifier.d.ts.map +1 -1
- package/srv/blockchain/signing/signature-verifier.js +70 -79
- package/srv/blockchain/signing/signature-verifier.js.map +1 -1
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts.map +1 -1
- package/srv/blockchain/transaction-building/buildooor-tx.js +24 -4
- package/srv/blockchain/transaction-building/buildooor-tx.js.map +1 -1
- package/srv/cardano-service.js +1 -1
- package/srv/cardano-service.js.map +1 -1
- package/srv/cardano-sign-service.cds +5 -0
- package/srv/cardano-sign-service.js +2 -3
- package/srv/cardano-sign-service.js.map +1 -1
- package/srv/cardano-tx-service.cds +8 -0
- package/srv/cardano-tx-service.js +19 -2
- package/srv/cardano-tx-service.js.map +1 -1
- package/srv/server.d.ts.map +1 -1
- package/srv/server.js +25 -32
- package/srv/server.js.map +1 -1
- package/srv/utils/plutus-placeholders.d.ts.map +1 -1
- package/srv/utils/plutus-placeholders.js +2 -3
- package/srv/utils/plutus-placeholders.js.map +1 -1
- package/srv/utils/signing-helper.d.ts.map +1 -1
- package/srv/utils/signing-helper.js +6 -47
- package/srv/utils/signing-helper.js.map +1 -1
- package/srv/utils/tx-build-helper.d.ts.map +1 -1
- package/srv/utils/tx-build-helper.js +19 -43
- package/srv/utils/tx-build-helper.js.map +1 -1
- package/srv/blockchain/backends/gerolamo-backend.d.ts.map +0 -1
- package/srv/blockchain/backends/gerolamo-backend.js +0 -321
- package/srv/blockchain/backends/gerolamo-backend.js.map +0 -1
- package/srv/blockchain/transaction-building/csl-tx.d.ts.map +0 -1
- package/srv/blockchain/transaction-building/csl-tx.js +0 -922
- package/srv/blockchain/transaction-building/csl-tx.js.map +0 -1
- package/srv/blockchain/transaction-building/tx-builder-registry.d.ts.map +0 -1
- package/srv/blockchain/transaction-building/tx-builder-registry.js +0 -69
- 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
|
-
|
|
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
|
-

|
|
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)
|
|
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
|
-
[](https://github.com/ODATANO/ODATANO/actions/workflows/test.yaml)
|
|
10
|
-
[](https://codecov.io/gh/ODATANO/ODATANO)
|
|
11
|
-
[
|
|
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
|
-
```
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
docker
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
|
86
|
-
|
|
87
|
-
| [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
1
|
+

|
|
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
|
+
[](https://github.com/ODATANO/ODATANO/actions/workflows/test.yaml)
|
|
10
|
+
[](https://codecov.io/gh/ODATANO/ODATANO)
|
|
11
|
+
[](https://www.npmjs.com/package/@odatano/core)
|
|
12
|
+
[](https://www.npmjs.com/package/@odatano/core)
|
|
13
|
+
[](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,
|