@odatano/core 1.7.4 → 1.7.6

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 (87) hide show
  1. package/@cds-models/CardanoODataService/index.d.ts +254 -0
  2. package/@cds-models/CardanoODataService/index.d.ts.map +1 -1
  3. package/@cds-models/CardanoODataService/index.js +33 -1
  4. package/@cds-models/CardanoODataService/index.js.map +1 -1
  5. package/@cds-models/CardanoODataService/index.ts +97 -0
  6. package/@cds-models/CardanoSignService/index.d.ts +6 -0
  7. package/@cds-models/CardanoSignService/index.d.ts.map +1 -1
  8. package/@cds-models/CardanoSignService/index.js.map +1 -1
  9. package/@cds-models/CardanoSignService/index.ts +1 -0
  10. package/@cds-models/CardanoTransactionService/index.d.ts +6 -0
  11. package/@cds-models/CardanoTransactionService/index.d.ts.map +1 -1
  12. package/@cds-models/CardanoTransactionService/index.js.map +1 -1
  13. package/@cds-models/CardanoTransactionService/index.ts +1 -0
  14. package/@cds-models/index.d.ts +278 -0
  15. package/@cds-models/index.d.ts.map +1 -1
  16. package/@cds-models/index.js +56 -1
  17. package/@cds-models/index.js.map +1 -1
  18. package/@cds-models/index.ts +88 -0
  19. package/@cds-models/odatano/cardano/index.d.ts +200 -0
  20. package/@cds-models/odatano/cardano/index.d.ts.map +1 -1
  21. package/@cds-models/odatano/cardano/index.js +34 -2
  22. package/@cds-models/odatano/cardano/index.js.map +1 -1
  23. package/@cds-models/odatano/cardano/index.ts +51 -0
  24. package/README.md +85 -233
  25. package/db/schema.cds +104 -1
  26. package/db/types.cds +135 -0
  27. package/package.json +3 -3
  28. package/src/index.d.ts.map +1 -1
  29. package/src/index.js +4 -1
  30. package/src/index.js.map +1 -1
  31. package/srv/blockchain/backends/blockfrost-backend.d.ts.map +1 -1
  32. package/srv/blockchain/backends/blockfrost-backend.js +92 -2
  33. package/srv/blockchain/backends/blockfrost-backend.js.map +1 -1
  34. package/srv/blockchain/backends/cardano-backend.d.ts.map +1 -1
  35. package/srv/blockchain/backends/cardano-backend.js.map +1 -1
  36. package/srv/blockchain/backends/koios-backend.d.ts.map +1 -1
  37. package/srv/blockchain/backends/koios-backend.js +141 -12
  38. package/srv/blockchain/backends/koios-backend.js.map +1 -1
  39. package/srv/blockchain/backends/ogmios-backend.d.ts.map +1 -1
  40. package/srv/blockchain/backends/ogmios-backend.js +10 -0
  41. package/srv/blockchain/backends/ogmios-backend.js.map +1 -1
  42. package/srv/blockchain/cardano-client.d.ts.map +1 -1
  43. package/srv/blockchain/cardano-client.js +45 -0
  44. package/srv/blockchain/cardano-client.js.map +1 -1
  45. package/srv/blockchain/cardano-indexer.d.ts.map +1 -1
  46. package/srv/blockchain/cardano-indexer.js +81 -0
  47. package/srv/blockchain/cardano-indexer.js.map +1 -1
  48. package/srv/blockchain/cardano-tx-builder.d.ts.map +1 -1
  49. package/srv/blockchain/cardano-tx-builder.js +4 -0
  50. package/srv/blockchain/cardano-tx-builder.js.map +1 -1
  51. package/srv/blockchain/transaction-building/buildooor-tx.d.ts.map +1 -1
  52. package/srv/blockchain/transaction-building/buildooor-tx.js +9 -26
  53. package/srv/blockchain/transaction-building/buildooor-tx.js.map +1 -1
  54. package/srv/blockchain/transaction-building/csl-tx.d.ts.map +1 -1
  55. package/srv/blockchain/transaction-building/csl-tx.js +4 -2
  56. package/srv/blockchain/transaction-building/csl-tx.js.map +1 -1
  57. package/srv/cardano-service.cds +40 -1
  58. package/srv/cardano-service.js +61 -1
  59. package/srv/cardano-service.js.map +1 -1
  60. package/srv/cbor/index.d.ts.map +1 -0
  61. package/srv/cbor/index.js +6 -0
  62. package/srv/cbor/index.js.map +1 -0
  63. package/srv/cbor/parse.d.ts.map +1 -0
  64. package/srv/cbor/parse.js +106 -0
  65. package/srv/cbor/parse.js.map +1 -0
  66. package/srv/server.js +5 -1
  67. package/srv/server.js.map +1 -1
  68. package/srv/utils/const.d.ts.map +1 -1
  69. package/srv/utils/const.js +13 -2
  70. package/srv/utils/const.js.map +1 -1
  71. package/srv/utils/error-codes.d.ts.map +1 -1
  72. package/srv/utils/error-codes.js +7 -0
  73. package/srv/utils/error-codes.js.map +1 -1
  74. package/srv/utils/errors.d.ts.map +1 -1
  75. package/srv/utils/errors.js +4 -2
  76. package/srv/utils/errors.js.map +1 -1
  77. package/srv/utils/mappers.d.ts.map +1 -1
  78. package/srv/utils/mappers.js +56 -1
  79. package/srv/utils/mappers.js.map +1 -1
  80. package/srv/utils/tx-build-helper.d.ts.map +1 -1
  81. package/srv/utils/tx-build-helper.js +56 -8
  82. package/srv/utils/tx-build-helper.js.map +1 -1
  83. package/srv/utils/types.d.ts.map +1 -1
  84. package/srv/utils/types.js.map +1 -1
  85. package/srv/utils/validators.d.ts.map +1 -1
  86. package/srv/utils/validators.js +43 -6
  87. package/srv/utils/validators.js.map +1 -1
package/README.md CHANGED
@@ -1,233 +1,85 @@
1
- ![alt text](docs/assets/odatano_logo/logo_odatano_white.png)
2
-
3
- # Enterprise OData Services for the Cardano Blockchain
4
-
5
- **ODATANO** is an SAP CAP–based service that exposes the Cardano blockchain via a standardized **OData V4** interface, enabling seamless enterprise-grade read and write access.
6
- It provides unified REST/OData access to on-chain data while supporting native transaction building and submission directly from business applications.
7
- By abstracting blockchain complexity behind familiar SAP integration patterns, ODATANO allows enterprises to integrate Cardano into core processes securely, auditable, and at scale.
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
- ## Project Status
17
-
18
- **Funded by Cardano Catalyst Fund 14:** [Official Proposal](https://projectcatalyst.io/funds/14/sponsored-by-leftovers/sap-cardano-odata-v4-api-with-cap-and-sap-cardano-sdk)
19
-
20
- ### Milestone 1 (Completed January 2026) ✅
21
- Cardano read operations with multi-provider failover (Blockfrost → Koios), 18 Entities defining Cardano Core Components & 15 Blockchain Read Actions with comprehensive input validation, full OData V4 query support, lazy on-demand indexing with TTL-based refresh, 340 tests across 11 test suites, CI/CD with Codecov integration
22
-
23
- [Milestone 1: OData Service Foundation & Blockchain Read Access](https://milestones.projectcatalyst.io/projects/1400109/milestones/1)
24
-
25
- ### Milestone 2 (Completed February 2026) ✅
26
- Cardano transaction building with dual-builder architecture (CSL & Buildooor), 4 transaction types (simple transfers, token minting, multi-asset transfers, metadata), Ogmios live backend for protocol parameters & UTxO queries, 6 Transaction Actions with external signing workflow, full Build → Sign → Submit flow, 327 new tests & 6 new test suites, end-to-end Preview testnet examples & Postman collection
27
-
28
- [Milestone 2: Transaction Build & Submit](https://milestones.projectcatalyst.io/projects/1400109/milestones/2)
29
-
30
- ### Milestone 3 (Completed March 2026) ✅
31
- Extension of the transaction module & external workflow to export unsigned Cardano transactions via OData, enabling deterministic external signing (e.g. Cardano CLI or browser wallets) with full key separation and no private-key handling in the CAP service.
32
- Includes Plutus smart contract support (BuildPlutusSpendTransaction, SetCollateral), end-to-end external signer integration, SAP S/4HANA business process examples, enterprise use cases, a sample Fiori wallet viewer app, and comprehensive automated integration and security tests.
33
-
34
- [Milestone 3: External Signing & SAP Integration](https://milestones.projectcatalyst.io/projects/1400109/milestones/3)
35
-
36
- ### Final Milestone (Completed April 2026) ✅
37
- Final Release & Catalyst Closeout inkl a demonstration video of the TRACE Fiori App illustrating a concrete Integration use case for Supply Chain Tracking, accompanied by transparent community announcements. The milestone is closed with a formal Catalyst close-out report and a Catalyst close out video summarizing the results of the Project.
38
-
39
- [Final Milestone: Finalization, Advanced Use Cases & Project Close-Out](https://milestones.projectcatalyst.io/projects/1400109/milestones/4)
40
-
41
-
42
- ## Key Features
43
-
44
- - **OData V4 Protocol**: Full query support ($filter, $select, $expand, $top, $skip, $count, $orderby)
45
- - **Multi-Network Support**: Mainnet, Preview, and Preprod configurations
46
- - **Multi-Provider Architecture**: Blockfrost + Koios + Ogmios with automatic failover
47
- - **Transaction Building**: Cardano Serialization Library (CSL) & Buildooor for minting, ADA or Token transfers, and metadata transactions
48
- - **Lazy On-Demand Indexing**: TTL-based refresh for changing blockchain data for performance optimization
49
- - **Enterprise-Grade Validation**: Strict input validation and error handling
50
- - **HSM Signing**: Optional server-side transaction signing via PKCS#11 Hardware Security Modules (YubiHSM, AWS CloudHSM, Thales Luna)
51
- - **Comprehensive Testing**: 1285 tests across 31 test suites, 99% statement coverage
52
-
53
- ## Architecture Overview
54
-
55
- ![alt text](<docs/assets/architecture & flow diagramms/odatano-ad.png>)
56
-
57
- ## Quick Start
58
-
59
- ### Use as CAP Plugin (Recommended)
60
-
61
- Add ODATANO to any existing SAP CAP project:
62
-
63
- ```bash
64
- npm install @odatano/core @cap-js/sqlite
65
- ```
66
-
67
- Configure in your `package.json`:
68
-
69
- ```json
70
- {
71
- "cds": {
72
- "requires": {
73
- "db": { "kind": "sqlite" },
74
- "odatano-core": {
75
- "network": "preview",
76
- "backends": ["blockfrost"],
77
- "blockfrostApiKey": "preview_YOUR_KEY"
78
- }
79
- }
80
- }
81
- }
82
- ```
83
-
84
- ```bash
85
- cds watch
86
- # → CardanoODataService + CardanoTransactionService + CardanoSignService auto-registered
87
- # → /odata/v4/cardano-odata/, /odata/v4/cardano-transaction/, /odata/v4/cardano-sign/ ready
88
- ```
89
-
90
- ### Docker (Standalone)
91
-
92
- ```bash
93
- git clone https://github.com/ODATANO/ODATANO && cd ODATANO
94
- cp .env.example .env # Add your BLOCKFROST_API_KEY
95
- docker-compose up -d
96
- ```
97
-
98
- Service runs at `http://localhost:4004`
99
-
100
- ### Local Development (Standalone)
101
-
102
- ```bash
103
- git clone https://github.com/ODATANO/ODATANO && cd ODATANO
104
- npm ci
105
- cp .env.example .env # Add your BLOCKFROST_API_KEY
106
- cds deploy --to sqlite
107
- npm run cds:watch
108
- ```
109
-
110
- See [Quick Start Guide](docs/QUICK_START.md) for detailed setup instructions.
111
-
112
- ## Usage Examples
113
-
114
- **Read Operations (M1):**
115
- ```bash
116
- # Query transaction
117
- curl "http://localhost:4004/odata/v4/cardano-odata/Transactions('tx_hash')"
118
-
119
- # Address with OData expand for assets
120
- curl "http://localhost:4004/odata/v4/cardano-odata/Addresses('addr_test1...')?\$expand=assets"
121
- ```
122
-
123
- **Transaction Operations (M2):**
124
- ```bash
125
- # Build ADA transfer (returns buildId and unsigned CBOR)
126
- curl -X POST http://localhost:4004/odata/v4/cardano-transaction/BuildSimpleAdaTransaction \
127
- -H "Content-Type: application/json" \
128
- -d '{"senderAddress":"addr_test1...","recipientAddress":"addr_test1...","lovelaceAmount":10000000}'
129
-
130
- # Submit signed transaction (using buildId from build response)
131
- curl -X POST http://localhost:4004/odata/v4/cardano-transaction/SubmitTransaction \
132
- -H "Content-Type: application/json" \
133
- -d '{"buildId":"uuid-from-build-response","signedTxCbor":"84a400..."}'
134
- ```
135
-
136
- **External Signing Operations (M3):**
137
-
138
- ```bash
139
- # Create signing request (returns signing instructions and CLI commands)
140
- curl -X POST http://localhost:4004/odata/v4/cardano-sign/CreateSigningRequest \
141
- -H "Content-Type: application/json" \
142
- -d '{"buildId":"uuid-from-build-response"}'
143
-
144
- # Verify and submit externally signed transaction
145
- curl -X POST http://localhost:4004/odata/v4/cardano-sign/SubmitVerifiedTransaction \
146
- -H "Content-Type: application/json" \
147
- -d '{"signingRequestId":"signing-request-id","signedTxCbor":"84a400..."}'
148
- ```
149
-
150
- **HSM Signing Operations (M3):**
151
-
152
- ```bash
153
- # Check HSM connection status
154
- curl -X POST http://localhost:4004/odata/v4/cardano-sign/GetHsmStatus \
155
- -H "Content-Type: application/json" -d '{}'
156
-
157
- # Sign and submit with HSM in one step (automated, no external signer needed)
158
- curl -X POST http://localhost:4004/odata/v4/cardano-sign/SignAndSubmitWithHsm \
159
- -H "Content-Type: application/json" \
160
- -d '{"buildId":"uuid-from-build-response"}'
161
- ```
162
-
163
- See [User Guide](docs/guides/USER_GUIDE.md) for complete API reference.
164
-
165
- ## Testing
166
-
167
- ```bash
168
- npm test # Run all 1285 tests
169
- npm run test:coverage # With coverage report
170
- npm run test:integration # Integration tests only
171
- npm run test:unit # Unit tests only
172
- ```
173
-
174
- See [Test Documentation](test/README.md) for details.
175
-
176
- ## Documentation
177
-
178
- | Guide | Description |
179
- |-------|-------------|
180
- | [Quick Start](docs/QUICK_START.md) | Get running in 5 minutes |
181
- | [User Guide](docs/guides/USER_GUIDE.md) | API usage, entities, and examples |
182
- | [Developer Guide](docs/guides/DEVELOPER_GUIDE.md) | Architecture and development |
183
- | [Transaction Workflow](docs/guides/TRANSACTION_WORKFLOW.md) | Build → Sign → Submit flow (M2/M3) |
184
- | [Security Guide](docs/guides/SECURITY_GUIDE.md) | Authentication, signing security, HSM |
185
- | [Docker Deployment](docs/guides/DOCKER_DEPLOYMENT.md) | Container deployment |
186
- | [Data Model](docs/concepts%20&%20architecture/MM_DATAMODEL.md) | Entity relationships |
187
- | [Error Handling](docs/concepts%20&%20architecture/ERROR_HANDLING.md) | Error codes and handling |
188
- | [Test Documentation](test/README.md) | Test suite overview (1285 tests) |
189
-
190
- **Postman Collections:**
191
- - [M1 - Read Operations](scripts/ODATANO%20M1%20-%20Full%20Service%20Catalog.postman_collection.json)
192
- - [M2 - Transaction Operations](scripts/ODATANO%20M2%20-%20Full%20Service%20Catalog.postman_collection.json)
193
- - [M3 - Signing Operations](scripts/ODATANO%20M3%20-%20Full%20Service%20Catalog.postman_collection.json)
194
-
195
- ## API Overview
196
-
197
- ### Read Service (`/odata/v4/cardano-odata`) - M1
198
-
199
- **18 Entities:** NetworkInformation, Blocks, Epochs, Transactions, TransactionInputs, TransactionOutputs, TransactionInputAssets, TransactionOutputAssets, TransactionMetadata, Addresses, AddressAssets, AddressUTxOs, AddressTransactions, UTxOAssets, Pools, Accounts, Dreps, LedgerProtocolParameters
200
-
201
- **15 Actions:** GetNetworkInformation, GetBlockByHash, GetEpochByNumber, GetTransactionByHash, GetMetadataByTxHash, GetAddressByBech32, GetUTxOsByAddress, GetAssetsByAddress, GetPoolById, GetAccountByStakeAddress, GetDrepById, GetLatestTransactionsByAddress, GetLatestBlock, GetLatestEpoch, GetLedgerProtocolParameters
202
-
203
- ### Transaction Service (`/odata/v4/cardano-transaction`) - M2
204
-
205
- **8 Entities:** TransactionBuilds, TransactionBuildInputs, TransactionBuildOutputs, TransactionBuildInputAssets, TransactionBuildOutputAssets, TransactionSubmissions, TransactionSubmissionErrors, AddressTransactionBuilds
206
-
207
- **11 Actions:** BuildSimpleAdaTransaction, BuildTransactionWithMetadata, BuildMultiAssetTransaction, BuildMintTransaction, SubmitTransaction, SubmitSignedTransaction, GetBuildDetails, CheckSubmissionStatus, BuildPlutusSpendTransaction, SetCollateral, GetTransactionBuildsByAddress
208
-
209
- ### Signing Service (`/odata/v4/cardano-sign`) - M3
210
-
211
- **5 Entities:** SigningRequests, SignatureVerifications, AddressSigningRequests, TransactionBuilds, TransactionSubmissions
212
-
213
- **8 Actions:** CreateSigningRequest, GetSigningRequest, GetSigningRequestsByAddress, VerifySignature, SubmitVerifiedTransaction, SignWithHsm, SignAndSubmitWithHsm, GetHsmStatus
214
-
215
- See [User Guide](docs/guides/USER_GUIDE.md) for complete API reference with parameters.
216
-
217
- ## npm Package
218
-
219
- Published as [`@odatano/core`](https://www.npmjs.com/package/@odatano/core) on npm. See the [Developer Guide](docs/guides/DEVELOPER_GUIDE.md#plugin-architecture) for detailed plugin architecture documentation.
220
-
221
- ## Technology Stack
222
-
223
- SAP CAP 9.x | TypeScript 5.9 | Node.js 20.x/22.x | SQLite | Jest | Blockfrost | Koios | Ogmios | CSL | Buildooor | Docker
224
-
225
- ## License
226
-
227
- Apache License 2.0 - see [LICENSE](LICENSE)
228
-
229
- ## Support
230
-
231
- - **Issues**: [GitHub Issues](https://github.com/ODATANO/ODATANO/issues)
232
- - **Documentation**: [docs/](docs/)
233
- - **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
+ [![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
+ "txBuilders": ["buildooor"]
36
+ }
37
+ }
38
+ }
39
+ }
40
+ ```
41
+
42
+ ```bash
43
+ cds deploy --to sqlite
44
+ cds serve
45
+ ```
46
+
47
+ ### Standalone
48
+
49
+ Run ODATANO as a self-contained service (no host CAP project needed):
50
+
51
+ ```bash
52
+ git clone https://github.com/ODATANO/ODATANO && cd ODATANO
53
+ npm ci
54
+ cp .env.example .env # set BLOCKFROST_API_KEY, NETWORK, BACKENDS
55
+ cds deploy --to sqlite
56
+ cds serve
57
+ ```
58
+
59
+ Or with Docker:
60
+
61
+ ```bash
62
+ docker-compose up -d
63
+ ```
64
+
65
+ Service available at `http://localhost:4004`. See [Quick Start Guide](docs/QUICK_START.md) for full details.
66
+
67
+ ## Documentation
68
+
69
+ | Guide | Description |
70
+ |-------|-------------|
71
+ | [Quick Start](docs/QUICK_START.md) | Get running in 5 minutes |
72
+ | [User Guide](docs/guides/USER_GUIDE.md) | API usage, entities, and examples |
73
+ | [Developer Guide](docs/guides/DEVELOPER_GUIDE.md) | Architecture and development |
74
+ | [Transaction Workflow](docs/guides/TRANSACTION_WORKFLOW.md) | Build → Sign → Submit flow |
75
+ | [Security Guide](docs/guides/SECURITY_GUIDE.md) | Authentication, signing security, HSM |
76
+ | [Docker Deployment](docs/guides/DOCKER_DEPLOYMENT.md) | Container deployment |
77
+
78
+ ## License
79
+
80
+ Apache License 2.0 - see [LICENSE](LICENSE)
81
+
82
+ ## Support
83
+
84
+ - **Issues**: [GitHub Issues](https://github.com/ODATANO/ODATANO/issues)
85
+ - **Project Lead**: Max Weber (max@maxalexweber.de)
package/db/schema.cds CHANGED
@@ -1,5 +1,5 @@
1
1
  using {temporal, } from '@sap/cds/common';
2
- using {Lovelace, Blake2b256, Bech32, AssetUnit, AssetSlice, SigningStatus,SubmissionStatus, UTxODataSlice} from '../db/types';
2
+ using {Lovelace, Blake2b224, Blake2b256, HexBytes, Bech32, AssetUnit, AssetSlice, SigningStatus,SubmissionStatus, UTxODataSlice} from '../db/types';
3
3
 
4
4
  namespace odatano.cardano;
5
5
 
@@ -198,6 +198,105 @@ entity Pools {
198
198
  rewardAccount : String;
199
199
  }
200
200
 
201
+ @title : 'Asset Entity'
202
+ @description: 'Native-asset information entity (supply, mint history, CIP-25 + CIP-26 metadata)'
203
+ entity Assets : temporal {
204
+
205
+ @title : 'Asset Unit (Key)'
206
+ @description: 'Concatenation of policyId (56 hex) and assetNameHex (0-128 hex)'
207
+ key unit : AssetUnit;
208
+
209
+ @title : 'Policy ID'
210
+ @description: 'Blake2b-224 hash of the minting policy script (56-char hex)'
211
+ policyId : Blake2b224;
212
+
213
+ @title : 'Asset Name Hex'
214
+ @description: 'Asset name as hex string (0-32 bytes / 0-64 hex chars)'
215
+ assetNameHex : HexBytes;
216
+
217
+ @title : 'Asset Name'
218
+ @description: 'Asset name as UTF-8 string when decodable'
219
+ assetName : String(128);
220
+
221
+ @title : 'Asset Fingerprint'
222
+ @description: 'CIP-14 asset fingerprint (asset1...)'
223
+ fingerprint : String(44);
224
+
225
+ @title : 'Total Supply'
226
+ @description: 'Current total supply (BigInt-safe decimal string)'
227
+ totalSupply : String(40);
228
+
229
+ @title : 'Mint or Burn Count'
230
+ @description: 'Total number of mint/burn transactions for this asset'
231
+ mintOrBurnCount : Integer;
232
+
233
+ @title : 'Initial Mint Tx Hash'
234
+ @description: 'Hash of the transaction that first minted this asset'
235
+ initialMintTxHash : Blake2b256;
236
+
237
+ @title : 'Initial Mint Time'
238
+ @description: 'Unix timestamp of the initial mint (null when unavailable from backend, e.g. Blockfrost)'
239
+ initialMintTime : Integer64;
240
+
241
+ @title : 'On-Chain Metadata'
242
+ @description: 'CIP-25 on-chain metadata as JSON string (varies per minter)'
243
+ onchainMetadata : LargeString;
244
+
245
+ @title : 'Registry Name'
246
+ @description: 'CIP-26 off-chain registry: human-readable name'
247
+ registryName : String(128);
248
+
249
+ @title : 'Registry Ticker'
250
+ @description: 'CIP-26 off-chain registry: ticker symbol'
251
+ registryTicker : String(16);
252
+
253
+ @title : 'Registry Decimals'
254
+ @description: 'CIP-26 off-chain registry: decimal precision'
255
+ registryDecimals : Integer;
256
+
257
+ @title : 'Registry Description'
258
+ @description: 'CIP-26 off-chain registry: human-readable description'
259
+ registryDescription : LargeString;
260
+
261
+ @title : 'Registry URL'
262
+ @description: 'CIP-26 off-chain registry: project URL'
263
+ registryUrl : String(256);
264
+
265
+ @title : 'Registry Logo'
266
+ @description: 'CIP-26 off-chain registry: base64-encoded logo or URL'
267
+ registryLogo : LargeString;
268
+ }
269
+
270
+ @title : 'Asset History Entry'
271
+ @description: 'Mint or burn event for a native asset. Immutable on-chain — entries are never updated, only inserted. Free-standing (not a Composition) so history can be queried before/without the parent Assets row.'
272
+ @readonly
273
+ entity AssetHistory {
274
+
275
+ @title : 'Asset Unit (Key)'
276
+ @description: 'policyId + assetNameHex (concatenated hex)'
277
+ key unit : AssetUnit;
278
+
279
+ @title : 'Transaction Hash (Key)'
280
+ @description: 'Hash of the transaction that performed the mint or burn'
281
+ key txHash : Blake2b256;
282
+
283
+ @title : 'Action'
284
+ @description: 'mint or burn'
285
+ action : String(10);
286
+
287
+ @title : 'Quantity'
288
+ @description: 'Absolute mint/burn amount (BigInt-safe decimal string; always positive — sign info is in `action`)'
289
+ quantity : String(40);
290
+
291
+ @title : 'Block Time'
292
+ @description: 'Unix timestamp of the containing block (null when backend does not provide, e.g. Blockfrost without extra tx fetch)'
293
+ blockTime : Integer64;
294
+
295
+ @title : 'Block Height'
296
+ @description: 'Block height of the containing block (null when backend does not provide)'
297
+ blockHeight : Integer;
298
+ }
299
+
201
300
  @title : 'Drep Entity'
202
301
  @description: 'Drep information entity definition'
203
302
  entity Dreps {
@@ -255,6 +354,10 @@ entity Addresses : temporal {
255
354
  @description: 'Total lovelace on this address'
256
355
  totalLovelace : Lovelace;
257
356
 
357
+ @title : 'UTxO Count'
358
+ @description: 'Number of UTxOs at this address (pre-aggregated, no UTxO scan needed for status checks)'
359
+ utxoCount : Integer;
360
+
258
361
  @title : 'Address Transactions'
259
362
  @description : 'Composition of all transactions involving this address'
260
363
  transactions : Composition of many AddressTransactions
package/db/types.cds CHANGED
@@ -110,3 +110,138 @@ type SigningStatus : String(20) enum {
110
110
  expired = 'expired';
111
111
  failed = 'failed';
112
112
  }
113
+
114
+ // -----------------------------------------------------
115
+ // Parsed Transaction (ParseTransactionCbor action result)
116
+ // -----------------------------------------------------
117
+ @title : 'Parsed Transaction Input'
118
+ @description: 'A UTxO reference consumed by a parsed transaction'
119
+ type ParsedInput {
120
+ @title : 'UTxO Transaction Hash'
121
+ @description: 'The 32-byte hash of the transaction that produced this UTxO'
122
+ txHash : Blake2b256;
123
+
124
+ @title : 'UTxO Output Index'
125
+ @description: 'The output index within the producing transaction'
126
+ outputIndex : Integer;
127
+ }
128
+
129
+ @title : 'Parsed Asset'
130
+ @description: 'A single asset entry from a parsed transaction output or mint value'
131
+ type ParsedAsset {
132
+ @title : 'Asset Unit'
133
+ @description: 'Concatenation of policyId (56 hex) and assetNameHex (0-64 hex)'
134
+ unit : AssetUnit;
135
+
136
+ @title : 'Asset Quantity'
137
+ @description: 'Signed decimal string (BigInt-safe); negative entries indicate burns in a mint value'
138
+ quantity : String(40);
139
+ }
140
+
141
+ @title : 'Parsed Transaction Output'
142
+ @description: 'A single output of a parsed transaction'
143
+ type ParsedOutput {
144
+ @title : 'Output Address'
145
+ @description: 'Bech32 recipient address'
146
+ address : Bech32;
147
+
148
+ @title : 'Output Lovelace'
149
+ @description: 'ADA amount in lovelace (decimal string)'
150
+ lovelace : Lovelace;
151
+
152
+ @title : 'Output Assets'
153
+ @description: 'Native assets attached to the output'
154
+ assets : many ParsedAsset;
155
+
156
+ @title : 'Datum Hash'
157
+ @description: 'Blake2b-256 datum hash when the output references a datum by hash; null if inline or absent'
158
+ datumHash : Blake2b256;
159
+
160
+ @title : 'Inline Datum CBOR'
161
+ @description: 'Hex-encoded PlutusData CBOR when the output carries an inline datum; null otherwise'
162
+ inlineDatumHex : LargeString;
163
+
164
+ @title : 'Reference Script CBOR'
165
+ @description: 'Hex-encoded CIP-33 reference script CBOR when present; null otherwise'
166
+ referenceScriptHex : LargeString;
167
+ }
168
+
169
+ @title : 'Parsed Witness Counts'
170
+ @description: 'Counts of witness entries in a parsed transaction (no secrets included)'
171
+ type ParsedWitnesses {
172
+ @title : 'VKey Witness Count'
173
+ @description: 'Number of Ed25519 verification-key witnesses'
174
+ vkeyCount : Integer;
175
+
176
+ @title : 'Native Script Count'
177
+ @description: 'Number of native scripts in the witness set'
178
+ nativeScripts : Integer;
179
+
180
+ @title : 'Plutus Script Count'
181
+ @description: 'Total count of Plutus V1/V2/V3 scripts in the witness set'
182
+ plutusScripts : Integer;
183
+
184
+ @title : 'Plutus Data Count'
185
+ @description: 'Number of PlutusData entries attached as witnesses'
186
+ plutusData : Integer;
187
+
188
+ @title : 'Redeemer Count'
189
+ @description: 'Number of redeemers in the witness set'
190
+ redeemers : Integer;
191
+ }
192
+
193
+ @title : 'Parsed Transaction'
194
+ @description: 'Structured view of a hex-encoded transaction CBOR. Returned by the ParseTransactionCbor action.'
195
+ type ParsedTransaction {
196
+ @title : 'Transaction Body Hash'
197
+ @description: 'Blake2b-256 hash of the transaction body. Stable across signed/unsigned CBOR of the same body.'
198
+ txHash : Blake2b256;
199
+
200
+ @title : 'Network'
201
+ @description: '"mainnet" or "testnet" from the tx body network ID byte; null if absent. preview vs preprod cannot be distinguished from CBOR alone.'
202
+ network : String(10);
203
+
204
+ @title : 'Inputs'
205
+ @description: 'UTxOs consumed by the transaction'
206
+ inputs : many ParsedInput;
207
+
208
+ @title : 'Outputs'
209
+ @description: 'Outputs produced by the transaction'
210
+ outputs : many ParsedOutput;
211
+
212
+ @title : 'Validity Interval Start'
213
+ @description: 'Slot number at which the transaction becomes valid (decimal string); null if absent'
214
+ validityStart : String(20);
215
+
216
+ @title : 'Validity Interval End'
217
+ @description: 'TTL slot number after which the transaction becomes invalid (decimal string); null if absent'
218
+ validityEnd : String(20);
219
+
220
+ @title : 'Fee'
221
+ @description: 'Transaction fee in lovelace'
222
+ fee : Lovelace;
223
+
224
+ @title : 'Mint'
225
+ @description: 'Signed native-asset mint/burn entries; empty array if the tx does not mint'
226
+ mint : many ParsedAsset;
227
+
228
+ @title : 'Metadata Labels'
229
+ @description: 'Metadata labels (uint64 as decimal strings) present in the auxiliary data; full payload via GetMetadataByTxHash once submitted'
230
+ metadataLabels : many String;
231
+
232
+ @title : 'Collateral Inputs'
233
+ @description: 'Collateral UTxOs for phase-2 validation (empty when no Plutus scripts run)'
234
+ collateral : many ParsedInput;
235
+
236
+ @title : 'Required Signers'
237
+ @description: '28-byte Ed25519 key hashes listed in the tx body required_signers field'
238
+ requiredSigners : many Blake2b224;
239
+
240
+ @title : 'Script Data Hash'
241
+ @description: 'Blake2b-256 hash over datum/redeemer/costmodels section; null if no Plutus data is present'
242
+ scriptDataHash : Blake2b256;
243
+
244
+ @title : 'Witness Counts'
245
+ @description: 'Shape summary of the witness set (no secret material exposed)'
246
+ witnesses : ParsedWitnesses;
247
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odatano/core",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "SAP CAP plugin for Cardano blockchain OData V4 integration",
5
5
  "imports": {
6
6
  "#cds-models/*": "./@cds-models/*/index.js"
@@ -48,7 +48,7 @@
48
48
  "express": "^4",
49
49
  "jest": "^29.6.1",
50
50
  "mock-socket": "^9.3.1",
51
- "nock": "^14.0.10",
51
+ "nock": "^13.5.6",
52
52
  "ts-jest": "^29.4.5",
53
53
  "ts-node": "^10.9.2",
54
54
  "tsx": "^4.21.0",
@@ -148,4 +148,4 @@
148
148
  "url": "https://github.com/ODATANO/ODATANO/issues"
149
149
  },
150
150
  "homepage": "https://github.com/ODATANO/ODATANO#readme"
151
- }
151
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,EAAE,sBAAsB,E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B,CAAC;AAGnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,YAAY,EACV,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,GAChB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAMhD;AAED;;;GAGG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAI9C;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI;IAAE,WAAW,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAW3F"}
package/src/index.js CHANGED
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getHsmSigner = exports.shutdownAppContext = exports.loadHsmConfigFromEnv = exports.loadConfigFromEnv = exports.getCardanoTxBuilder = exports.getCardanoClient = exports.getCardanoIndexer = exports.getAppContext = exports.CardanoTransactionBuilder = exports.CardanoIndexer = exports.CardanoClient = void 0;
39
+ exports.parseTransaction = exports.getHsmSigner = exports.shutdownAppContext = exports.loadHsmConfigFromEnv = exports.loadConfigFromEnv = exports.getCardanoTxBuilder = exports.getCardanoClient = exports.getCardanoIndexer = exports.getAppContext = exports.CardanoTransactionBuilder = exports.CardanoIndexer = exports.CardanoClient = void 0;
40
40
  exports.initialize = initialize;
41
41
  exports.shutdown = shutdown;
42
42
  exports.getStatus = getStatus;
@@ -61,6 +61,9 @@ Object.defineProperty(exports, "shutdownAppContext", { enumerable: true, get: fu
61
61
  // Re-export HSM signer for programmatic access
62
62
  var hsm_signer_1 = require("../srv/blockchain/signing/hsm-signer");
63
63
  Object.defineProperty(exports, "getHsmSigner", { enumerable: true, get: function () { return hsm_signer_1.getHsmSigner; } });
64
+ // Re-export pure CBOR utilities (no CAP round-trip needed)
65
+ var cbor_1 = require("../srv/cbor");
66
+ Object.defineProperty(exports, "parseTransaction", { enumerable: true, get: function () { return cbor_1.parseTransaction; } });
64
67
  /**
65
68
  * Initialize the ODATANO plugin.
66
69
  * Loads configuration from cds.env.requires["odatano-core"] OR environment variables,
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,gCAMC;AAMD,4BAIC;AAKD,8BAWC;AA9DD,mDAA2B;AAE3B,MAAM,MAAM,GAAG,aAAG,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAElC,6DAA6D;AAC7D,mEAAiE;AAAxD,+GAAA,aAAa,OAAA;AAEtB,qEAAmE;AAA1D,iHAAA,cAAc,OAAA;AACvB,2EAAiF;AAAxE,+HAAA,yBAAyB,OAAA;AAElC,6BAA6B;AAC7B,wCAQuB;AAPrB,uGAAA,aAAa,OAAA;AACb,2GAAA,iBAAiB,OAAA;AACjB,0GAAA,gBAAgB,OAAA;AAChB,6GAAA,mBAAmB,OAAA;AACnB,2GAAA,iBAAiB,OAAA;AACjB,8GAAA,oBAAoB,OAAA;AACpB,4GAAA,kBAAkB,OAAA;AAGpB,+CAA+C;AAC/C,mEAAoE;AAA3D,0GAAA,YAAY,OAAA;AAGrB;;;;GAIG;AACI,KAAK,UAAU,UAAU;IAC9B,MAAM,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,GAAG,wDAAa,eAAe,GAAC,CAAC;IACxG,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;IACnC,MAAM,SAAS,GAAG,oBAAoB,EAAE,CAAC;IACzC,MAAM,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,CAAC,IAAI,CAAC,0BAA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