@odatano/core 2.0.0-rc.2 → 2.0.0-rc.20

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 (132) hide show
  1. package/@cds-models/CardanoAgentService/index.d.ts +251 -0
  2. package/@cds-models/CardanoAgentService/index.js +36 -0
  3. package/@cds-models/CardanoIndexerService/index.d.ts +139 -2
  4. package/@cds-models/CardanoIndexerService/index.js +18 -0
  5. package/@cds-models/CardanoODataService/index.d.ts +224 -0
  6. package/@cds-models/CardanoODataService/index.js +27 -0
  7. package/@cds-models/CardanoSignService/index.d.ts +5 -2
  8. package/@cds-models/CardanoTransactionService/index.d.ts +9 -9
  9. package/@cds-models/odatano/cardano/index.d.ts +316 -0
  10. package/@cds-models/odatano/cardano/index.js +33 -0
  11. package/README.md +195 -136
  12. package/db/schema.cds +2121 -1633
  13. package/package.json +179 -173
  14. package/src/index.d.ts +10 -10
  15. package/src/index.js +24 -14
  16. package/src/plugin.js +39 -52
  17. package/srv/blockchain/backends/blockfrost-backend.d.ts +29 -131
  18. package/srv/blockchain/backends/blockfrost-backend.js +45 -158
  19. package/srv/blockchain/backends/cardano-backend.d.ts +78 -158
  20. package/srv/blockchain/backends/cardano-backend.js +14 -5
  21. package/srv/blockchain/backends/koios-backend.d.ts +126 -60
  22. package/srv/blockchain/backends/koios-backend.js +292 -202
  23. package/srv/blockchain/backends/ogmios-backend.d.ts +59 -96
  24. package/srv/blockchain/backends/ogmios-backend.js +241 -153
  25. package/srv/blockchain/backends/ogmios-frame-guard.d.ts +32 -0
  26. package/srv/blockchain/backends/ogmios-frame-guard.js +142 -0
  27. package/srv/blockchain/cardano-client.d.ts +50 -205
  28. package/srv/blockchain/cardano-client.js +80 -224
  29. package/srv/blockchain/cardano-indexer.d.ts +146 -244
  30. package/srv/blockchain/cardano-indexer.js +442 -285
  31. package/srv/blockchain/cardano-tx-builder.d.ts +19 -84
  32. package/srv/blockchain/cardano-tx-builder.js +21 -107
  33. package/srv/blockchain/crawler/certificate-backfill.d.ts +45 -0
  34. package/srv/blockchain/crawler/certificate-backfill.js +150 -0
  35. package/srv/blockchain/crawler/crawler.d.ts +121 -53
  36. package/srv/blockchain/crawler/crawler.js +402 -82
  37. package/srv/blockchain/crawler/hooks.d.ts +3 -14
  38. package/srv/blockchain/crawler/index.d.ts +5 -0
  39. package/srv/blockchain/crawler/index.js +35 -7
  40. package/srv/blockchain/crawler/sync-state.d.ts +44 -28
  41. package/srv/blockchain/crawler/sync-state.js +115 -43
  42. package/srv/blockchain/crawler/utxo-set-import.d.ts +69 -0
  43. package/srv/blockchain/crawler/utxo-set-import.js +269 -0
  44. package/srv/blockchain/ledger-state.d.ts +80 -0
  45. package/srv/blockchain/ledger-state.js +383 -0
  46. package/srv/blockchain/signing/cose-verifier.d.ts +5 -12
  47. package/srv/blockchain/signing/cose-verifier.js +6 -12
  48. package/srv/blockchain/signing/external-signer.d.ts +16 -113
  49. package/srv/blockchain/signing/external-signer.js +19 -122
  50. package/srv/blockchain/signing/hsm-signer.d.ts +13 -45
  51. package/srv/blockchain/signing/hsm-signer.js +23 -63
  52. package/srv/blockchain/signing/signature-verifier.d.ts +8 -44
  53. package/srv/blockchain/signing/signature-verifier.js +13 -54
  54. package/srv/blockchain/signing/submission-finalizer.d.ts +9 -36
  55. package/srv/blockchain/signing/submission-finalizer.js +16 -48
  56. package/srv/blockchain/transaction-building/buildooor-tx.d.ts +71 -160
  57. package/srv/blockchain/transaction-building/buildooor-tx.js +185 -260
  58. package/srv/blockchain/transaction-building/cardano-tx.d.ts +8 -34
  59. package/srv/blockchain/wallet-worker/build-request.d.ts +4 -17
  60. package/srv/blockchain/wallet-worker/build-request.js +39 -23
  61. package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +25 -17
  62. package/srv/blockchain/wallet-worker/confirmation-tracker.js +87 -41
  63. package/srv/blockchain/wallet-worker/index.js +2 -8
  64. package/srv/blockchain/wallet-worker/job-store.d.ts +36 -103
  65. package/srv/blockchain/wallet-worker/job-store.js +0 -0
  66. package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +4 -20
  67. package/srv/blockchain/wallet-worker/lease-heartbeat.js +4 -20
  68. package/srv/blockchain/wallet-worker/signers.d.ts +6 -19
  69. package/srv/blockchain/wallet-worker/signers.js +3 -8
  70. package/srv/blockchain/wallet-worker/wallet-worker.d.ts +15 -71
  71. package/srv/blockchain/wallet-worker/wallet-worker.js +34 -90
  72. package/srv/cardano-agent-service.cds +146 -0
  73. package/srv/cardano-agent-service.d.ts +2 -0
  74. package/srv/cardano-agent-service.js +12 -0
  75. package/srv/cardano-indexer-service.cds +164 -73
  76. package/srv/cardano-indexer-service.js +156 -11
  77. package/srv/cardano-service.cds +45 -0
  78. package/srv/cardano-service.js +38 -96
  79. package/srv/cardano-sign-service.cds +200 -180
  80. package/srv/cardano-sign-service.js +55 -173
  81. package/srv/cardano-tx-service.cds +32 -26
  82. package/srv/cardano-tx-service.js +133 -195
  83. package/srv/cardano-worker-service.js +7 -15
  84. package/srv/server.d.ts +28 -86
  85. package/srv/server.js +95 -128
  86. package/srv/utils/agent-grants-config.d.ts +37 -0
  87. package/srv/utils/agent-grants-config.js +138 -0
  88. package/srv/utils/agent-grants.d.ts +262 -0
  89. package/srv/utils/agent-grants.js +914 -0
  90. package/srv/utils/agent-token-auth.d.ts +16 -0
  91. package/srv/utils/agent-token-auth.js +78 -0
  92. package/srv/utils/backend-request-handler.d.ts +2 -16
  93. package/srv/utils/backend-request-handler.js +3 -18
  94. package/srv/utils/collections.d.ts +4 -8
  95. package/srv/utils/collections.js +4 -8
  96. package/srv/utils/const.d.ts +19 -68
  97. package/srv/utils/const.js +20 -69
  98. package/srv/utils/crypto.d.ts +3 -12
  99. package/srv/utils/crypto.js +5 -18
  100. package/srv/utils/db-indexes.d.ts +25 -0
  101. package/srv/utils/db-indexes.js +89 -0
  102. package/srv/utils/db-sanitize.d.ts +27 -0
  103. package/srv/utils/db-sanitize.js +85 -0
  104. package/srv/utils/error-codes.d.ts +18 -73
  105. package/srv/utils/error-codes.js +17 -70
  106. package/srv/utils/errors.d.ts +34 -178
  107. package/srv/utils/errors.js +55 -217
  108. package/srv/utils/liveness.d.ts +16 -0
  109. package/srv/utils/liveness.js +41 -0
  110. package/srv/utils/mappers.d.ts +82 -210
  111. package/srv/utils/mappers.js +272 -293
  112. package/srv/utils/network-context.js +2 -11
  113. package/srv/utils/pg-order-nulls.d.ts +14 -0
  114. package/srv/utils/pg-order-nulls.js +57 -0
  115. package/srv/utils/plutus-placeholders.d.ts +6 -18
  116. package/srv/utils/plutus-placeholders.js +6 -20
  117. package/srv/utils/rate-limiter.d.ts +46 -0
  118. package/srv/utils/rate-limiter.js +116 -0
  119. package/srv/utils/service-events.d.ts +2 -22
  120. package/srv/utils/service-events.js +3 -23
  121. package/srv/utils/signing-helper.d.ts +3 -18
  122. package/srv/utils/signing-helper.js +10 -32
  123. package/srv/utils/tx-build-helper.d.ts +18 -92
  124. package/srv/utils/tx-build-helper.js +32 -123
  125. package/srv/utils/tx-request-parsers.d.ts +14 -20
  126. package/srv/utils/tx-request-parsers.js +33 -20
  127. package/srv/utils/tx-utils.d.ts +4 -23
  128. package/srv/utils/tx-utils.js +12 -41
  129. package/srv/utils/types.d.ts +112 -169
  130. package/srv/utils/types.js +2 -6
  131. package/srv/utils/validators.d.ts +19 -89
  132. package/srv/utils/validators.js +31 -138
@@ -185,6 +185,60 @@ export class Dreps extends Array<Drep> {
185
185
  $count?: number
186
186
  }
187
187
 
188
+ // entity 'PoolEpochSnapshot'
189
+ export declare function _PoolEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
190
+ new (...args: any[]): {
191
+ poolId?: __.Key<_.Bech32>
192
+ epoch?: __.Key<number>
193
+ snapshotSlot?: number | null
194
+ snapshotTime?: number | null
195
+ blocksMinted?: number | null
196
+ blocksEpoch?: number | null
197
+ liveStake?: _.Lovelace | null
198
+ liveSize?: (number | string) | null
199
+ liveSaturation?: (number | string) | null
200
+ liveDelegators?: number | null
201
+ activeStake?: _.Lovelace | null
202
+ activeSize?: (number | string) | null
203
+ pledge?: _.Lovelace | null
204
+ margin?: (number | string) | null
205
+ fixedCost?: _.Lovelace | null
206
+ } & InstanceType<TBase>
207
+ readonly kind: 'entity';
208
+ readonly keys: __.KeysOf<PoolEpochSnapshot>;
209
+ readonly elements: __.ElementsOf<PoolEpochSnapshot>;
210
+ readonly actions: globalThis.Record<never, never>;
211
+ };
212
+ export class PoolEpochSnapshot extends _PoolEpochSnapshotAspect(__.Entity) {
213
+ }
214
+ export class PoolEpochSnapshots extends Array<PoolEpochSnapshot> {
215
+ $count?: number
216
+ }
217
+
218
+ // entity 'DrepEpochSnapshot'
219
+ export declare function _DrepEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
220
+ new (...args: any[]): {
221
+ drepId?: __.Key<_.Bech32>
222
+ epoch?: __.Key<number>
223
+ snapshotSlot?: number | null
224
+ snapshotTime?: number | null
225
+ amount?: _.Lovelace | null
226
+ hasScript?: boolean | null
227
+ lastActiveEpoch?: number | null
228
+ retired?: boolean | null
229
+ expired?: boolean | null
230
+ } & InstanceType<TBase>
231
+ readonly kind: 'entity';
232
+ readonly keys: __.KeysOf<DrepEpochSnapshot>;
233
+ readonly elements: __.ElementsOf<DrepEpochSnapshot>;
234
+ readonly actions: globalThis.Record<never, never>;
235
+ };
236
+ export class DrepEpochSnapshot extends _DrepEpochSnapshotAspect(__.Entity) {
237
+ }
238
+ export class DrepEpochSnapshots extends Array<DrepEpochSnapshot> {
239
+ $count?: number
240
+ }
241
+
188
242
  // entity 'Asset'
189
243
  export declare function _AssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
190
244
  new (...args: any[]): {
@@ -254,6 +308,8 @@ export declare function _TransactionAspect<TBase extends new (...args: any[]) =>
254
308
  metadata?: __.Composition.of.many<TransactionMetadata_>
255
309
  inputs?: __.Composition.of.many<TransactionInputs>
256
310
  outputs?: __.Composition.of.many<TransactionOutputs>
311
+ certificates?: __.Composition.of.many<TransactionCertificates>
312
+ withdrawals?: __.Composition.of.many<TransactionWithdrawals>
257
313
  hasMetadata?: boolean | null
258
314
  hasInputs?: boolean | null
259
315
  hasOutputs?: boolean | null
@@ -280,6 +336,8 @@ export declare function _TransactionInputAspect<TBase extends new (...args: any[
280
336
  utxoData_dataHash?: _.Blake2b256 | null
281
337
  utxoData_inlineDatum?: string | null
282
338
  utxoData_referenceScriptHash?: _.Blake2b256 | null
339
+ spentTxHash?: _.Blake2b256 | null
340
+ spentOutputIndex?: number | null
283
341
  isCollateral?: boolean | null
284
342
  isReference?: boolean | null
285
343
  assets?: __.Composition.of.many<TransactionInputAssets>
@@ -371,6 +429,172 @@ export class TransactionOutputAssets extends Array<TransactionOutputAsset> {
371
429
  $count?: number
372
430
  }
373
431
 
432
+ // entity 'TransactionCertificate'
433
+ export declare function _TransactionCertificateAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
434
+ new (...args: any[]): {
435
+ tx?: __.Key<__.Association.to<Transaction>>
436
+ tx_hash?: __.Key<_.Blake2b256>
437
+ certIndex?: __.Key<number>
438
+ kind?: __.Key<string>
439
+ stakeAddress?: _.Bech32 | null
440
+ poolId?: _.Bech32 | null
441
+ drepId?: _.Bech32 | null
442
+ deposit?: _.Lovelace | null
443
+ epoch?: number | null
444
+ } & InstanceType<TBase>
445
+ readonly kind: 'entity';
446
+ readonly keys: __.KeysOf<TransactionCertificate>;
447
+ readonly elements: __.ElementsOf<TransactionCertificate>;
448
+ readonly actions: globalThis.Record<never, never>;
449
+ };
450
+ export class TransactionCertificate extends _TransactionCertificateAspect(__.Entity) {
451
+ }
452
+ export class TransactionCertificates extends Array<TransactionCertificate> {
453
+ $count?: number
454
+ }
455
+
456
+ // entity 'TransactionWithdrawal'
457
+ export declare function _TransactionWithdrawalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
458
+ new (...args: any[]): {
459
+ tx?: __.Key<__.Association.to<Transaction>>
460
+ tx_hash?: __.Key<_.Blake2b256>
461
+ stakeAddress?: __.Key<_.Bech32>
462
+ lovelace?: _.Lovelace | null
463
+ } & InstanceType<TBase>
464
+ readonly kind: 'entity';
465
+ readonly keys: __.KeysOf<TransactionWithdrawal>;
466
+ readonly elements: __.ElementsOf<TransactionWithdrawal>;
467
+ readonly actions: globalThis.Record<never, never>;
468
+ };
469
+ export class TransactionWithdrawal extends _TransactionWithdrawalAspect(__.Entity) {
470
+ }
471
+ export class TransactionWithdrawals extends Array<TransactionWithdrawal> {
472
+ $count?: number
473
+ }
474
+
475
+ // entity 'LedgerUTxO'
476
+ export declare function _LedgerUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
477
+ new (...args: any[]): {
478
+ txHash?: __.Key<_.Blake2b256>
479
+ outputIndex?: __.Key<number>
480
+ address?: _.Bech32 | null
481
+ stakeAddress?: _.Bech32 | null
482
+ addressType?: string | null
483
+ isScript?: boolean | null
484
+ lovelace?: _.Lovelace | null
485
+ createdSlot?: number | null
486
+ spentTxHash?: _.Blake2b256 | null
487
+ spentSlot?: number | null
488
+ utxo_dataHash?: _.Blake2b256 | null
489
+ utxo_inlineDatum?: string | null
490
+ utxo_referenceScriptHash?: _.Blake2b256 | null
491
+ hasAssets?: boolean | null
492
+ assets?: __.Composition.of.many<LedgerUTxOAssets>
493
+ } & InstanceType<TBase>
494
+ readonly kind: 'entity';
495
+ readonly keys: __.KeysOf<LedgerUTxO>;
496
+ readonly elements: __.ElementsOf<LedgerUTxO>;
497
+ readonly actions: globalThis.Record<never, never>;
498
+ };
499
+ export class LedgerUTxO extends _LedgerUTxOAspect(__.Entity) {
500
+ }
501
+ export class LedgerUTxOs extends Array<LedgerUTxO> {
502
+ $count?: number
503
+ }
504
+
505
+ // entity 'LedgerUTxOAsset'
506
+ export declare function _LedgerUTxOAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
507
+ new (...args: any[]): {
508
+ utxo?: __.Key<__.Association.to<LedgerUTxO>>
509
+ utxo_txHash?: __.Key<_.Blake2b256>
510
+ utxo_outputIndex?: __.Key<number>
511
+ unit?: __.Key<_.AssetUnit>
512
+ asset_quantity?: _.Lovelace | null
513
+ asset_policyId?: _.Blake2b224 | null
514
+ asset_assetNameHex?: _.HexBytes | null
515
+ asset_assetName?: string | null
516
+ asset_fingerprint?: string | null
517
+ } & InstanceType<TBase>
518
+ readonly kind: 'entity';
519
+ readonly keys: __.KeysOf<LedgerUTxOAsset>;
520
+ readonly elements: __.ElementsOf<LedgerUTxOAsset>;
521
+ readonly actions: globalThis.Record<never, never>;
522
+ };
523
+ export class LedgerUTxOAsset extends _LedgerUTxOAssetAspect(__.Entity) {
524
+ }
525
+ export class LedgerUTxOAssets extends Array<LedgerUTxOAsset> {
526
+ $count?: number
527
+ }
528
+
529
+ // entity 'LedgerAddress'
530
+ export declare function _LedgerAddressAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
531
+ new (...args: any[]): {
532
+ address?: __.Key<_.Bech32>
533
+ stakeAddress?: _.Bech32 | null
534
+ addressType?: string | null
535
+ isScript?: boolean | null
536
+ totalLovelace?: _.Lovelace | null
537
+ utxoCount?: number | null
538
+ firstSeenSlot?: number | null
539
+ lastActiveSlot?: number | null
540
+ assets?: __.Composition.of.many<LedgerAddressAssets>
541
+ utxos?: __.Association.to.many<LedgerUTxOs>
542
+ } & InstanceType<TBase>
543
+ readonly kind: 'entity';
544
+ readonly keys: __.KeysOf<LedgerAddress>;
545
+ readonly elements: __.ElementsOf<LedgerAddress>;
546
+ readonly actions: globalThis.Record<never, never>;
547
+ };
548
+ export class LedgerAddress extends _LedgerAddressAspect(__.Entity) {
549
+ }
550
+ export class LedgerAddresses extends Array<LedgerAddress> {
551
+ $count?: number
552
+ }
553
+
554
+ // entity 'LedgerAddressAsset'
555
+ export declare function _LedgerAddressAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
556
+ new (...args: any[]): {
557
+ address?: __.Key<__.Association.to<LedgerAddress>>
558
+ address_address?: __.Key<_.Bech32>
559
+ unit?: __.Key<_.AssetUnit>
560
+ asset_quantity?: _.Lovelace | null
561
+ asset_policyId?: _.Blake2b224 | null
562
+ asset_assetNameHex?: _.HexBytes | null
563
+ asset_assetName?: string | null
564
+ asset_fingerprint?: string | null
565
+ } & InstanceType<TBase>
566
+ readonly kind: 'entity';
567
+ readonly keys: __.KeysOf<LedgerAddressAsset>;
568
+ readonly elements: __.ElementsOf<LedgerAddressAsset>;
569
+ readonly actions: globalThis.Record<never, never>;
570
+ };
571
+ export class LedgerAddressAsset extends _LedgerAddressAssetAspect(__.Entity) {
572
+ }
573
+ export class LedgerAddressAssets extends Array<LedgerAddressAsset> {
574
+ $count?: number
575
+ }
576
+
577
+ // entity 'LedgerAccount'
578
+ export declare function _LedgerAccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
579
+ new (...args: any[]): {
580
+ stakeAddress?: __.Key<_.Bech32>
581
+ controlledAmount?: _.Lovelace | null
582
+ addressCount?: number | null
583
+ utxoCount?: number | null
584
+ lastActiveSlot?: number | null
585
+ addresses?: __.Association.to.many<LedgerAddresses>
586
+ } & InstanceType<TBase>
587
+ readonly kind: 'entity';
588
+ readonly keys: __.KeysOf<LedgerAccount>;
589
+ readonly elements: __.ElementsOf<LedgerAccount>;
590
+ readonly actions: globalThis.Record<never, never>;
591
+ };
592
+ export class LedgerAccount extends _LedgerAccountAspect(__.Entity) {
593
+ }
594
+ export class LedgerAccounts extends Array<LedgerAccount> {
595
+ $count?: number
596
+ }
597
+
374
598
  // entity 'Account'
375
599
  export declare function _AccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
376
600
  new (...args: any[]): {
@@ -19,6 +19,12 @@ module.exports.Pools = createEntityProxy(['CardanoODataService', 'Pools'], { tar
19
19
  // Dreps
20
20
  module.exports.Drep = createEntityProxy(['CardanoODataService', 'Dreps'], { target: { is_singular: true } })
21
21
  module.exports.Dreps = createEntityProxy(['CardanoODataService', 'Dreps'], { target: { is_singular: false }})
22
+ // PoolEpochSnapshots
23
+ module.exports.PoolEpochSnapshot = createEntityProxy(['CardanoODataService', 'PoolEpochSnapshots'], { target: { is_singular: true } })
24
+ module.exports.PoolEpochSnapshots = createEntityProxy(['CardanoODataService', 'PoolEpochSnapshots'], { target: { is_singular: false }})
25
+ // DrepEpochSnapshots
26
+ module.exports.DrepEpochSnapshot = createEntityProxy(['CardanoODataService', 'DrepEpochSnapshots'], { target: { is_singular: true } })
27
+ module.exports.DrepEpochSnapshots = createEntityProxy(['CardanoODataService', 'DrepEpochSnapshots'], { target: { is_singular: false }})
22
28
  // Assets
23
29
  module.exports.Asset = createEntityProxy(['CardanoODataService', 'Assets'], { target: { is_singular: true } })
24
30
  module.exports.Assets = createEntityProxy(['CardanoODataService', 'Assets'], { target: { is_singular: false }})
@@ -40,6 +46,27 @@ module.exports.TransactionInputAssets = createEntityProxy(['CardanoODataService'
40
46
  // TransactionOutputAssets
41
47
  module.exports.TransactionOutputAsset = createEntityProxy(['CardanoODataService', 'TransactionOutputAssets'], { target: { is_singular: true } })
42
48
  module.exports.TransactionOutputAssets = createEntityProxy(['CardanoODataService', 'TransactionOutputAssets'], { target: { is_singular: false }})
49
+ // TransactionCertificates
50
+ module.exports.TransactionCertificate = createEntityProxy(['CardanoODataService', 'TransactionCertificates'], { target: { is_singular: true } })
51
+ module.exports.TransactionCertificates = createEntityProxy(['CardanoODataService', 'TransactionCertificates'], { target: { is_singular: false }})
52
+ // TransactionWithdrawals
53
+ module.exports.TransactionWithdrawal = createEntityProxy(['CardanoODataService', 'TransactionWithdrawals'], { target: { is_singular: true } })
54
+ module.exports.TransactionWithdrawals = createEntityProxy(['CardanoODataService', 'TransactionWithdrawals'], { target: { is_singular: false }})
55
+ // LedgerUTxOs
56
+ module.exports.LedgerUTxO = createEntityProxy(['CardanoODataService', 'LedgerUTxOs'], { target: { is_singular: true } })
57
+ module.exports.LedgerUTxOs = createEntityProxy(['CardanoODataService', 'LedgerUTxOs'], { target: { is_singular: false }})
58
+ // LedgerUTxOAssets
59
+ module.exports.LedgerUTxOAsset = createEntityProxy(['CardanoODataService', 'LedgerUTxOAssets'], { target: { is_singular: true } })
60
+ module.exports.LedgerUTxOAssets = createEntityProxy(['CardanoODataService', 'LedgerUTxOAssets'], { target: { is_singular: false }})
61
+ // LedgerAddresses
62
+ module.exports.LedgerAddress = createEntityProxy(['CardanoODataService', 'LedgerAddresses'], { target: { is_singular: true } })
63
+ module.exports.LedgerAddresses = createEntityProxy(['CardanoODataService', 'LedgerAddresses'], { target: { is_singular: false }})
64
+ // LedgerAddressAssets
65
+ module.exports.LedgerAddressAsset = createEntityProxy(['CardanoODataService', 'LedgerAddressAssets'], { target: { is_singular: true } })
66
+ module.exports.LedgerAddressAssets = createEntityProxy(['CardanoODataService', 'LedgerAddressAssets'], { target: { is_singular: false }})
67
+ // LedgerAccounts
68
+ module.exports.LedgerAccount = createEntityProxy(['CardanoODataService', 'LedgerAccounts'], { target: { is_singular: true } })
69
+ module.exports.LedgerAccounts = createEntityProxy(['CardanoODataService', 'LedgerAccounts'], { target: { is_singular: false }})
43
70
  // Accounts
44
71
  module.exports.Account = createEntityProxy(['CardanoODataService', 'Accounts'], { target: { is_singular: true } })
45
72
  module.exports.Accounts = createEntityProxy(['CardanoODataService', 'Accounts'], { target: { is_singular: false }})
@@ -12,8 +12,11 @@ import * as _odatano_cardano from './../odatano/cardano';
12
12
  * - Submitting verified transactions to the blockchain and tracking submission status
13
13
  * - Providing actions for signing with a Hardware Security Module (HSM) and retrieving HSM status
14
14
  *
15
- * Security note: see CardanoODataService (cardano-service.cds) for the rationale
16
- * on service-level auth without per-resource ownership enforcement.
15
+ * Security note: see CardanoODataService (cardano-service.cds) for the rationale on auth
16
+ * without per-resource ownership enforcement. Deliberately NO service-level @requires:
17
+ * CAP checks it on every request BEFORE the operation annotation, which silenced the
18
+ * `any` on VerifyDataSignature (anonymous callers got the 401 challenge first). The
19
+ * requirement therefore sits on each element; VerifyDataSignature alone is public.
17
20
  */
18
21
  export default class {
19
22
  static readonly VerifySignature: typeof VerifySignature;
@@ -196,17 +196,17 @@ export declare function _TransactionSubmissionAspect<TBase extends new (...args:
196
196
  };
197
197
  /**
198
198
  * TransactionSubmissions status flow:
199
- * pending ──[submit to chain]──→ submitted (internal, in SubmitTransaction handler)
200
- * submitted ──[CheckSubmissionStatus]──→ confirmed | stays submitted (conditional)
201
- * pending | submitted ──→ failed (blockchain error)
199
+ * pending -> [submit to chain] -> submitted (internal, in SubmitTransaction handler)
200
+ * submitted -> [CheckSubmissionStatus] confirmed | stays submitted (conditional)
201
+ * pending | submitted -> failed (blockchain error)
202
202
  */
203
203
  export class TransactionSubmission extends _TransactionSubmissionAspect(__.Entity) {
204
204
  }
205
205
  /**
206
206
  * TransactionSubmissions status flow:
207
- * pending ──[submit to chain]──→ submitted (internal, in SubmitTransaction handler)
208
- * submitted ──[CheckSubmissionStatus]──→ confirmed | stays submitted (conditional)
209
- * pending | submitted ──→ failed (blockchain error)
207
+ * pending -> [submit to chain] -> submitted (internal, in SubmitTransaction handler)
208
+ * submitted -> [CheckSubmissionStatus] confirmed | stays submitted (conditional)
209
+ * pending | submitted -> failed (blockchain error)
210
210
  */
211
211
  export class TransactionSubmissions extends Array<TransactionSubmission> {
212
212
  $count?: number
@@ -420,11 +420,11 @@ export declare const BuildMultiAssetTransaction: {
420
420
 
421
421
  export declare const BuildMintTransaction: {
422
422
  // positional
423
- (senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, mintActionsJson: string | null, mintingPolicyScript: string | null, changeAddress: _.Bech32 | null, requiredSignersJson: string | null, scriptParamsJson: string | null, inlineDatumJson: string | null, mintRedeemerJson: string | null, lockOnScript: boolean | null, forceInputsJson: string | null, referenceInputsJson: string | null, metadataJson: string | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
423
+ (senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, mintActionsJson: string | null, mintingPolicyScript: string | null, changeAddress: _.Bech32 | null, requiredSignersJson: string | null, scriptParamsJson: string | null, inlineDatumJson: string | null, mintRedeemerJson: string | null, lockOnScript: boolean | null, forceInputsJson: string | null, referenceInputsJson: string | null, extraOutputsJson: string | null, metadataJson: string | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
424
424
  // named
425
- ({senderAddress, recipientAddress, lovelaceAmount, mintActionsJson, mintingPolicyScript, changeAddress, requiredSignersJson, scriptParamsJson, inlineDatumJson, mintRedeemerJson, lockOnScript, forceInputsJson, referenceInputsJson, metadataJson, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, mintRedeemerJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, referenceInputsJson?: string | null, metadataJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
425
+ ({senderAddress, recipientAddress, lovelaceAmount, mintActionsJson, mintingPolicyScript, changeAddress, requiredSignersJson, scriptParamsJson, inlineDatumJson, mintRedeemerJson, lockOnScript, forceInputsJson, referenceInputsJson, extraOutputsJson, metadataJson, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, mintRedeemerJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, referenceInputsJson?: string | null, extraOutputsJson?: string | null, metadataJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
426
426
  // metadata (do not use)
427
- __parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, mintRedeemerJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, referenceInputsJson?: string | null, metadataJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
427
+ __parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, mintRedeemerJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, referenceInputsJson?: string | null, extraOutputsJson?: string | null, metadataJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
428
428
  kind: 'action'
429
429
  }
430
430