@odatano/core 1.7.4 → 1.7.7
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/@cds-models/CardanoODataService/index.d.ts +254 -0
- package/@cds-models/CardanoODataService/index.d.ts.map +1 -1
- package/@cds-models/CardanoODataService/index.js +33 -1
- package/@cds-models/CardanoODataService/index.js.map +1 -1
- package/@cds-models/CardanoODataService/index.ts +97 -0
- package/@cds-models/CardanoSignService/index.d.ts +6 -0
- package/@cds-models/CardanoSignService/index.d.ts.map +1 -1
- package/@cds-models/CardanoSignService/index.js.map +1 -1
- package/@cds-models/CardanoSignService/index.ts +1 -0
- package/@cds-models/CardanoTransactionService/index.d.ts +6 -0
- package/@cds-models/CardanoTransactionService/index.d.ts.map +1 -1
- package/@cds-models/CardanoTransactionService/index.js.map +1 -1
- package/@cds-models/CardanoTransactionService/index.ts +1 -0
- package/@cds-models/index.d.ts +278 -0
- package/@cds-models/index.d.ts.map +1 -1
- package/@cds-models/index.js +56 -1
- package/@cds-models/index.js.map +1 -1
- package/@cds-models/index.ts +88 -0
- package/@cds-models/odatano/cardano/index.d.ts +200 -0
- package/@cds-models/odatano/cardano/index.d.ts.map +1 -1
- package/@cds-models/odatano/cardano/index.js +34 -2
- package/@cds-models/odatano/cardano/index.js.map +1 -1
- package/@cds-models/odatano/cardano/index.ts +51 -0
- package/README.md +96 -233
- package/db/schema.cds +104 -1
- package/db/types.cds +135 -0
- package/package.json +2 -2
- package/src/index.d.ts.map +1 -1
- package/src/index.js +4 -1
- package/src/index.js.map +1 -1
- package/srv/blockchain/backends/blockfrost-backend.d.ts.map +1 -1
- package/srv/blockchain/backends/blockfrost-backend.js +105 -6
- package/srv/blockchain/backends/blockfrost-backend.js.map +1 -1
- package/srv/blockchain/backends/cardano-backend.d.ts.map +1 -1
- package/srv/blockchain/backends/cardano-backend.js.map +1 -1
- package/srv/blockchain/backends/koios-backend.d.ts.map +1 -1
- package/srv/blockchain/backends/koios-backend.js +141 -12
- package/srv/blockchain/backends/koios-backend.js.map +1 -1
- package/srv/blockchain/backends/ogmios-backend.d.ts.map +1 -1
- package/srv/blockchain/backends/ogmios-backend.js +10 -0
- package/srv/blockchain/backends/ogmios-backend.js.map +1 -1
- package/srv/blockchain/cardano-client.d.ts.map +1 -1
- package/srv/blockchain/cardano-client.js +46 -1
- package/srv/blockchain/cardano-client.js.map +1 -1
- package/srv/blockchain/cardano-indexer.d.ts.map +1 -1
- package/srv/blockchain/cardano-indexer.js +81 -0
- package/srv/blockchain/cardano-indexer.js.map +1 -1
- package/srv/blockchain/cardano-tx-builder.d.ts.map +1 -1
- package/srv/blockchain/cardano-tx-builder.js +4 -0
- package/srv/blockchain/cardano-tx-builder.js.map +1 -1
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts.map +1 -1
- package/srv/blockchain/transaction-building/buildooor-tx.js +9 -26
- package/srv/blockchain/transaction-building/buildooor-tx.js.map +1 -1
- package/srv/blockchain/transaction-building/csl-tx.d.ts.map +1 -1
- package/srv/blockchain/transaction-building/csl-tx.js +4 -2
- package/srv/blockchain/transaction-building/csl-tx.js.map +1 -1
- package/srv/cardano-service.cds +40 -1
- package/srv/cardano-service.js +61 -1
- package/srv/cardano-service.js.map +1 -1
- package/srv/cardano-tx-service.js +44 -40
- package/srv/cardano-tx-service.js.map +1 -1
- package/srv/cbor/index.d.ts.map +1 -0
- package/srv/cbor/index.js +6 -0
- package/srv/cbor/index.js.map +1 -0
- package/srv/cbor/parse.d.ts.map +1 -0
- package/srv/cbor/parse.js +106 -0
- package/srv/cbor/parse.js.map +1 -0
- package/srv/server.d.ts.map +1 -1
- package/srv/server.js +31 -5
- package/srv/server.js.map +1 -1
- package/srv/utils/const.d.ts.map +1 -1
- package/srv/utils/const.js +13 -2
- package/srv/utils/const.js.map +1 -1
- package/srv/utils/error-codes.d.ts.map +1 -1
- package/srv/utils/error-codes.js +7 -0
- package/srv/utils/error-codes.js.map +1 -1
- package/srv/utils/errors.d.ts.map +1 -1
- package/srv/utils/errors.js +4 -2
- package/srv/utils/errors.js.map +1 -1
- package/srv/utils/mappers.d.ts.map +1 -1
- package/srv/utils/mappers.js +56 -1
- package/srv/utils/mappers.js.map +1 -1
- package/srv/utils/tx-build-helper.d.ts.map +1 -1
- package/srv/utils/tx-build-helper.js +56 -8
- package/srv/utils/tx-build-helper.js.map +1 -1
- package/srv/utils/types.d.ts.map +1 -1
- package/srv/utils/types.js.map +1 -1
- package/srv/utils/validators.d.ts.map +1 -1
- package/srv/utils/validators.js +43 -6
- package/srv/utils/validators.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,233 +1,96 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# Enterprise OData Services for the Cardano Blockchain
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[](https://github.com/ODATANO/ODATANO/actions/workflows/test.yaml)
|
|
10
|
-
[](https://codecov.io/gh/ODATANO/ODATANO)
|
|
11
|
-
[]()
|
|
12
|
-
[]()
|
|
13
|
-
[](LICENSE)
|
|
14
|
-
[](https://www.npmjs.com/package/@odatano/core)
|
|
15
|
-
|
|
16
|
-
##
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+

|
|
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
|
+
[]()
|
|
12
|
+
[]()
|
|
13
|
+
[](LICENSE)
|
|
14
|
+
[](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)
|
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.
|
|
3
|
+
"version": "1.7.7",
|
|
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": "^
|
|
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",
|
package/src/index.d.ts.map
CHANGED
|
@@ -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,EAAE,MAAM,kCAAkC,CAAC;AAC1H,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAGjF,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
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,EAAE,MAAM,kCAAkC,CAAC;AAC1H,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAGjF,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,oBAAoB,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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,gCAMC;AAMD,4BAIC;AAKD,8BAWC;AAxED,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,2DAA2D;AAC3D,oCAA+C;AAAtC,wGAAA,gBAAgB,OAAA;AASzB;;;;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,0BAA0B,CAAC,CAAC;AAC1C,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,QAAQ;IAC5B,MAAM,EAAE,kBAAkB,EAAE,GAAG,wDAAa,eAAe,GAAC,CAAC;IAC7D,MAAM,kBAAkB,EAAE,CAAC;IAC3B,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,SAAgB,SAAS;IACvB,IAAI,CAAC;QACH,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;QACnD,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;QAC5B,OAAO;YACL,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,OAAO;SACnC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;IAChC,CAAC;AACH,CAAC"}
|