@odatano/core 2.0.0-rc.2 → 2.0.0-rc.21
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/CardanoAgentService/index.d.ts +251 -0
- package/@cds-models/CardanoAgentService/index.js +36 -0
- package/@cds-models/CardanoIndexerService/index.d.ts +139 -2
- package/@cds-models/CardanoIndexerService/index.js +18 -0
- package/@cds-models/CardanoODataService/index.d.ts +231 -6
- package/@cds-models/CardanoODataService/index.js +27 -0
- package/@cds-models/CardanoSignService/index.d.ts +5 -2
- package/@cds-models/CardanoTransactionService/index.d.ts +9 -9
- package/@cds-models/odatano/cardano/index.d.ts +323 -6
- package/@cds-models/odatano/cardano/index.js +33 -0
- package/README.md +195 -136
- package/db/schema.cds +2133 -1633
- package/package.json +181 -173
- package/scripts/migrate-slot-leader.mjs +104 -0
- package/scripts/migrate-txseq.mjs +147 -0
- package/src/index.d.ts +10 -10
- package/src/index.js +24 -14
- package/src/plugin.js +39 -52
- package/srv/blockchain/backends/blockfrost-backend.d.ts +29 -131
- package/srv/blockchain/backends/blockfrost-backend.js +45 -158
- package/srv/blockchain/backends/cardano-backend.d.ts +83 -158
- package/srv/blockchain/backends/cardano-backend.js +14 -5
- package/srv/blockchain/backends/koios-backend.d.ts +126 -60
- package/srv/blockchain/backends/koios-backend.js +293 -203
- package/srv/blockchain/backends/ogmios-backend.d.ts +69 -94
- package/srv/blockchain/backends/ogmios-backend.js +319 -185
- package/srv/blockchain/backends/ogmios-frame-guard.d.ts +32 -0
- package/srv/blockchain/backends/ogmios-frame-guard.js +142 -0
- package/srv/blockchain/cardano-client.d.ts +57 -204
- package/srv/blockchain/cardano-client.js +94 -226
- package/srv/blockchain/cardano-indexer.d.ts +176 -240
- package/srv/blockchain/cardano-indexer.js +615 -338
- package/srv/blockchain/cardano-tx-builder.d.ts +29 -82
- package/srv/blockchain/cardano-tx-builder.js +88 -128
- package/srv/blockchain/crawler/certificate-backfill.d.ts +45 -0
- package/srv/blockchain/crawler/certificate-backfill.js +150 -0
- package/srv/blockchain/crawler/crawler.d.ts +121 -53
- package/srv/blockchain/crawler/crawler.js +403 -89
- package/srv/blockchain/crawler/hooks.d.ts +3 -14
- package/srv/blockchain/crawler/index.d.ts +5 -0
- package/srv/blockchain/crawler/index.js +35 -7
- package/srv/blockchain/crawler/sync-state.d.ts +44 -28
- package/srv/blockchain/crawler/sync-state.js +115 -43
- package/srv/blockchain/crawler/utxo-set-import.d.ts +69 -0
- package/srv/blockchain/crawler/utxo-set-import.js +269 -0
- package/srv/blockchain/ledger-state.d.ts +80 -0
- package/srv/blockchain/ledger-state.js +383 -0
- package/srv/blockchain/signing/cose-verifier.d.ts +5 -12
- package/srv/blockchain/signing/cose-verifier.js +6 -12
- package/srv/blockchain/signing/external-signer.d.ts +16 -113
- package/srv/blockchain/signing/external-signer.js +19 -122
- package/srv/blockchain/signing/hsm-signer.d.ts +13 -45
- package/srv/blockchain/signing/hsm-signer.js +23 -63
- package/srv/blockchain/signing/signature-verifier.d.ts +8 -44
- package/srv/blockchain/signing/signature-verifier.js +13 -54
- package/srv/blockchain/signing/submission-finalizer.d.ts +9 -36
- package/srv/blockchain/signing/submission-finalizer.js +16 -48
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts +71 -160
- package/srv/blockchain/transaction-building/buildooor-tx.js +185 -260
- package/srv/blockchain/transaction-building/cardano-tx.d.ts +8 -34
- package/srv/blockchain/transaction-rows.d.ts +12 -0
- package/srv/blockchain/transaction-rows.js +42 -0
- package/srv/blockchain/wallet-worker/build-request.d.ts +4 -17
- package/srv/blockchain/wallet-worker/build-request.js +39 -23
- package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +25 -17
- package/srv/blockchain/wallet-worker/confirmation-tracker.js +87 -41
- package/srv/blockchain/wallet-worker/index.js +2 -8
- package/srv/blockchain/wallet-worker/job-store.d.ts +36 -103
- package/srv/blockchain/wallet-worker/job-store.js +0 -0
- package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +4 -20
- package/srv/blockchain/wallet-worker/lease-heartbeat.js +4 -20
- package/srv/blockchain/wallet-worker/signers.d.ts +6 -19
- package/srv/blockchain/wallet-worker/signers.js +3 -8
- package/srv/blockchain/wallet-worker/wallet-worker.d.ts +15 -71
- package/srv/blockchain/wallet-worker/wallet-worker.js +40 -91
- package/srv/cardano-agent-service.cds +146 -0
- package/srv/cardano-agent-service.d.ts +2 -0
- package/srv/cardano-agent-service.js +12 -0
- package/srv/cardano-indexer-service.cds +164 -73
- package/srv/cardano-indexer-service.js +156 -11
- package/srv/cardano-service.cds +45 -0
- package/srv/cardano-service.js +38 -96
- package/srv/cardano-sign-service.cds +200 -180
- package/srv/cardano-sign-service.js +55 -173
- package/srv/cardano-tx-service.cds +32 -26
- package/srv/cardano-tx-service.js +136 -196
- package/srv/cardano-worker-service.js +7 -15
- package/srv/server.d.ts +28 -86
- package/srv/server.js +95 -128
- package/srv/utils/agent-grants-config.d.ts +37 -0
- package/srv/utils/agent-grants-config.js +138 -0
- package/srv/utils/agent-grants.d.ts +262 -0
- package/srv/utils/agent-grants.js +914 -0
- package/srv/utils/agent-token-auth.d.ts +16 -0
- package/srv/utils/agent-token-auth.js +78 -0
- package/srv/utils/backend-request-handler.d.ts +2 -16
- package/srv/utils/backend-request-handler.js +3 -18
- package/srv/utils/collections.d.ts +4 -8
- package/srv/utils/collections.js +4 -8
- package/srv/utils/const.d.ts +19 -68
- package/srv/utils/const.js +20 -69
- package/srv/utils/crypto.d.ts +3 -12
- package/srv/utils/crypto.js +5 -18
- package/srv/utils/db-indexes.d.ts +25 -0
- package/srv/utils/db-indexes.js +93 -0
- package/srv/utils/db-sanitize.d.ts +27 -0
- package/srv/utils/db-sanitize.js +85 -0
- package/srv/utils/epoch-slots.d.ts +13 -0
- package/srv/utils/epoch-slots.js +25 -0
- package/srv/utils/error-codes.d.ts +18 -73
- package/srv/utils/error-codes.js +17 -70
- package/srv/utils/errors.d.ts +36 -179
- package/srv/utils/errors.js +62 -220
- package/srv/utils/liveness.d.ts +16 -0
- package/srv/utils/liveness.js +41 -0
- package/srv/utils/mappers.d.ts +89 -214
- package/srv/utils/mappers.js +289 -301
- package/srv/utils/network-context.js +2 -11
- package/srv/utils/pg-order-nulls.d.ts +14 -0
- package/srv/utils/pg-order-nulls.js +57 -0
- package/srv/utils/plutus-placeholders.d.ts +6 -18
- package/srv/utils/plutus-placeholders.js +6 -20
- package/srv/utils/rate-limiter.d.ts +46 -0
- package/srv/utils/rate-limiter.js +116 -0
- package/srv/utils/service-events.d.ts +2 -22
- package/srv/utils/service-events.js +3 -23
- package/srv/utils/signing-helper.d.ts +3 -18
- package/srv/utils/signing-helper.js +10 -32
- package/srv/utils/tx-build-helper.d.ts +18 -92
- package/srv/utils/tx-build-helper.js +32 -123
- package/srv/utils/tx-request-parsers.d.ts +14 -20
- package/srv/utils/tx-request-parsers.js +33 -20
- package/srv/utils/tx-utils.d.ts +4 -23
- package/srv/utils/tx-utils.js +12 -41
- package/srv/utils/types.d.ts +114 -169
- package/srv/utils/types.js +2 -6
- package/srv/utils/validators.d.ts +19 -89
- package/srv/utils/validators.js +31 -138
|
@@ -110,6 +110,60 @@ export class Pools extends Array<Pool> {
|
|
|
110
110
|
$count?: number
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
// entity 'PoolEpochSnapshot'
|
|
114
|
+
export declare function _PoolEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
115
|
+
new (...args: any[]): {
|
|
116
|
+
poolId?: __.Key<_.Bech32>
|
|
117
|
+
epoch?: __.Key<number>
|
|
118
|
+
snapshotSlot?: number | null
|
|
119
|
+
snapshotTime?: number | null
|
|
120
|
+
blocksMinted?: number | null
|
|
121
|
+
blocksEpoch?: number | null
|
|
122
|
+
liveStake?: _.Lovelace | null
|
|
123
|
+
liveSize?: (number | string) | null
|
|
124
|
+
liveSaturation?: (number | string) | null
|
|
125
|
+
liveDelegators?: number | null
|
|
126
|
+
activeStake?: _.Lovelace | null
|
|
127
|
+
activeSize?: (number | string) | null
|
|
128
|
+
pledge?: _.Lovelace | null
|
|
129
|
+
margin?: (number | string) | null
|
|
130
|
+
fixedCost?: _.Lovelace | null
|
|
131
|
+
} & InstanceType<TBase>
|
|
132
|
+
readonly kind: 'entity';
|
|
133
|
+
readonly keys: __.KeysOf<PoolEpochSnapshot>;
|
|
134
|
+
readonly elements: __.ElementsOf<PoolEpochSnapshot>;
|
|
135
|
+
readonly actions: globalThis.Record<never, never>;
|
|
136
|
+
};
|
|
137
|
+
export class PoolEpochSnapshot extends _PoolEpochSnapshotAspect(__.Entity) {
|
|
138
|
+
}
|
|
139
|
+
export class PoolEpochSnapshots extends Array<PoolEpochSnapshot> {
|
|
140
|
+
$count?: number
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// entity 'DrepEpochSnapshot'
|
|
144
|
+
export declare function _DrepEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
145
|
+
new (...args: any[]): {
|
|
146
|
+
drepId?: __.Key<_.Bech32>
|
|
147
|
+
epoch?: __.Key<number>
|
|
148
|
+
snapshotSlot?: number | null
|
|
149
|
+
snapshotTime?: number | null
|
|
150
|
+
amount?: _.Lovelace | null
|
|
151
|
+
hasScript?: boolean | null
|
|
152
|
+
lastActiveEpoch?: number | null
|
|
153
|
+
retired?: boolean | null
|
|
154
|
+
expired?: boolean | null
|
|
155
|
+
} & InstanceType<TBase>
|
|
156
|
+
readonly kind: 'entity';
|
|
157
|
+
readonly keys: __.KeysOf<DrepEpochSnapshot>;
|
|
158
|
+
readonly elements: __.ElementsOf<DrepEpochSnapshot>;
|
|
159
|
+
readonly actions: globalThis.Record<never, never>;
|
|
160
|
+
};
|
|
161
|
+
export class DrepEpochSnapshot extends _DrepEpochSnapshotAspect(__.Entity) {
|
|
162
|
+
}
|
|
163
|
+
export class DrepEpochSnapshots extends Array<DrepEpochSnapshot> {
|
|
164
|
+
$count?: number
|
|
165
|
+
}
|
|
166
|
+
|
|
113
167
|
// entity 'Asset'
|
|
114
168
|
export declare function _AssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
115
169
|
new (...args: any[]): {
|
|
@@ -333,6 +387,7 @@ export class Accounts extends Array<Account> {
|
|
|
333
387
|
export declare function _TransactionAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
334
388
|
new (...args: any[]): {
|
|
335
389
|
hash?: __.Key<_.Blake2b256>
|
|
390
|
+
txSeq?: number | null
|
|
336
391
|
blockHash?: _.Blake2b256 | null
|
|
337
392
|
blockHeight?: number | null
|
|
338
393
|
blockTime?: number | null
|
|
@@ -344,6 +399,8 @@ export declare function _TransactionAspect<TBase extends new (...args: any[]) =>
|
|
|
344
399
|
metadata?: __.Composition.of.many<TransactionMetadata_>
|
|
345
400
|
inputs?: __.Composition.of.many<TransactionInputs>
|
|
346
401
|
outputs?: __.Composition.of.many<TransactionOutputs>
|
|
402
|
+
certificates?: __.Composition.of.many<TransactionCertificates>
|
|
403
|
+
withdrawals?: __.Composition.of.many<TransactionWithdrawals>
|
|
347
404
|
hasMetadata?: boolean | null
|
|
348
405
|
hasInputs?: boolean | null
|
|
349
406
|
hasOutputs?: boolean | null
|
|
@@ -362,14 +419,16 @@ export class Transactions extends Array<Transaction> {
|
|
|
362
419
|
// entity 'TransactionInput'
|
|
363
420
|
export declare function _TransactionInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
364
421
|
new (...args: any[]): {
|
|
365
|
-
|
|
366
|
-
|
|
422
|
+
txSeq?: __.Key<number>
|
|
423
|
+
tx?: __.Association.to<Transaction> | null
|
|
367
424
|
inputIndex?: __.Key<number>
|
|
368
425
|
address?: __.Association.to<Address> | null
|
|
369
426
|
address_address?: _.Bech32 | null
|
|
370
427
|
utxoData_dataHash?: _.Blake2b256 | null
|
|
371
428
|
utxoData_inlineDatum?: string | null
|
|
372
429
|
utxoData_referenceScriptHash?: _.Blake2b256 | null
|
|
430
|
+
spentTxHash?: _.Blake2b256 | null
|
|
431
|
+
spentOutputIndex?: number | null
|
|
373
432
|
isCollateral?: boolean | null
|
|
374
433
|
isReference?: boolean | null
|
|
375
434
|
assets?: __.Composition.of.many<TransactionInputAssets>
|
|
@@ -391,8 +450,8 @@ export class TransactionInputs extends Array<TransactionInput> {
|
|
|
391
450
|
export declare function _TransactionInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
392
451
|
new (...args: any[]): {
|
|
393
452
|
input?: __.Key<__.Association.to<TransactionInput>>
|
|
453
|
+
input_txSeq?: __.Key<number>
|
|
394
454
|
input_inputIndex?: __.Key<number>
|
|
395
|
-
input_tx_hash?: __.Key<_.Blake2b256>
|
|
396
455
|
unit?: __.Key<_.AssetUnit>
|
|
397
456
|
asset_quantity?: _.Lovelace | null
|
|
398
457
|
asset_policyId?: _.Blake2b224 | null
|
|
@@ -411,11 +470,177 @@ export class TransactionInputAssets extends Array<TransactionInputAsset> {
|
|
|
411
470
|
$count?: number
|
|
412
471
|
}
|
|
413
472
|
|
|
414
|
-
// entity '
|
|
415
|
-
export declare function
|
|
473
|
+
// entity 'LedgerUTxO'
|
|
474
|
+
export declare function _LedgerUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
475
|
+
new (...args: any[]): {
|
|
476
|
+
txHash?: __.Key<_.Blake2b256>
|
|
477
|
+
outputIndex?: __.Key<number>
|
|
478
|
+
address?: _.Bech32 | null
|
|
479
|
+
stakeAddress?: _.Bech32 | null
|
|
480
|
+
addressType?: string | null
|
|
481
|
+
isScript?: boolean | null
|
|
482
|
+
lovelace?: _.Lovelace | null
|
|
483
|
+
createdSlot?: number | null
|
|
484
|
+
spentTxHash?: _.Blake2b256 | null
|
|
485
|
+
spentSlot?: number | null
|
|
486
|
+
utxo_dataHash?: _.Blake2b256 | null
|
|
487
|
+
utxo_inlineDatum?: string | null
|
|
488
|
+
utxo_referenceScriptHash?: _.Blake2b256 | null
|
|
489
|
+
hasAssets?: boolean | null
|
|
490
|
+
assets?: __.Composition.of.many<LedgerUTxOAssets>
|
|
491
|
+
} & InstanceType<TBase>
|
|
492
|
+
readonly kind: 'entity';
|
|
493
|
+
readonly keys: __.KeysOf<LedgerUTxO>;
|
|
494
|
+
readonly elements: __.ElementsOf<LedgerUTxO>;
|
|
495
|
+
readonly actions: globalThis.Record<never, never>;
|
|
496
|
+
};
|
|
497
|
+
export class LedgerUTxO extends _LedgerUTxOAspect(__.Entity) {
|
|
498
|
+
}
|
|
499
|
+
export class LedgerUTxOs extends Array<LedgerUTxO> {
|
|
500
|
+
$count?: number
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// entity 'LedgerUTxOAsset'
|
|
504
|
+
export declare function _LedgerUTxOAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
505
|
+
new (...args: any[]): {
|
|
506
|
+
utxo?: __.Key<__.Association.to<LedgerUTxO>>
|
|
507
|
+
utxo_txHash?: __.Key<_.Blake2b256>
|
|
508
|
+
utxo_outputIndex?: __.Key<number>
|
|
509
|
+
unit?: __.Key<_.AssetUnit>
|
|
510
|
+
asset_quantity?: _.Lovelace | null
|
|
511
|
+
asset_policyId?: _.Blake2b224 | null
|
|
512
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
513
|
+
asset_assetName?: string | null
|
|
514
|
+
asset_fingerprint?: string | null
|
|
515
|
+
} & InstanceType<TBase>
|
|
516
|
+
readonly kind: 'entity';
|
|
517
|
+
readonly keys: __.KeysOf<LedgerUTxOAsset>;
|
|
518
|
+
readonly elements: __.ElementsOf<LedgerUTxOAsset>;
|
|
519
|
+
readonly actions: globalThis.Record<never, never>;
|
|
520
|
+
};
|
|
521
|
+
export class LedgerUTxOAsset extends _LedgerUTxOAssetAspect(__.Entity) {
|
|
522
|
+
}
|
|
523
|
+
export class LedgerUTxOAssets extends Array<LedgerUTxOAsset> {
|
|
524
|
+
$count?: number
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
// entity 'LedgerAddress'
|
|
528
|
+
export declare function _LedgerAddressAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
529
|
+
new (...args: any[]): {
|
|
530
|
+
address?: __.Key<_.Bech32>
|
|
531
|
+
stakeAddress?: _.Bech32 | null
|
|
532
|
+
addressType?: string | null
|
|
533
|
+
isScript?: boolean | null
|
|
534
|
+
totalLovelace?: _.Lovelace | null
|
|
535
|
+
utxoCount?: number | null
|
|
536
|
+
firstSeenSlot?: number | null
|
|
537
|
+
lastActiveSlot?: number | null
|
|
538
|
+
assets?: __.Composition.of.many<LedgerAddressAssets>
|
|
539
|
+
utxos?: __.Association.to.many<LedgerUTxOs>
|
|
540
|
+
} & InstanceType<TBase>
|
|
541
|
+
readonly kind: 'entity';
|
|
542
|
+
readonly keys: __.KeysOf<LedgerAddress>;
|
|
543
|
+
readonly elements: __.ElementsOf<LedgerAddress>;
|
|
544
|
+
readonly actions: globalThis.Record<never, never>;
|
|
545
|
+
};
|
|
546
|
+
export class LedgerAddress extends _LedgerAddressAspect(__.Entity) {
|
|
547
|
+
}
|
|
548
|
+
export class LedgerAddresses extends Array<LedgerAddress> {
|
|
549
|
+
$count?: number
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
// entity 'LedgerAddressAsset'
|
|
553
|
+
export declare function _LedgerAddressAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
554
|
+
new (...args: any[]): {
|
|
555
|
+
address?: __.Key<__.Association.to<LedgerAddress>>
|
|
556
|
+
address_address?: __.Key<_.Bech32>
|
|
557
|
+
unit?: __.Key<_.AssetUnit>
|
|
558
|
+
asset_quantity?: _.Lovelace | null
|
|
559
|
+
asset_policyId?: _.Blake2b224 | null
|
|
560
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
561
|
+
asset_assetName?: string | null
|
|
562
|
+
asset_fingerprint?: string | null
|
|
563
|
+
} & InstanceType<TBase>
|
|
564
|
+
readonly kind: 'entity';
|
|
565
|
+
readonly keys: __.KeysOf<LedgerAddressAsset>;
|
|
566
|
+
readonly elements: __.ElementsOf<LedgerAddressAsset>;
|
|
567
|
+
readonly actions: globalThis.Record<never, never>;
|
|
568
|
+
};
|
|
569
|
+
export class LedgerAddressAsset extends _LedgerAddressAssetAspect(__.Entity) {
|
|
570
|
+
}
|
|
571
|
+
export class LedgerAddressAssets extends Array<LedgerAddressAsset> {
|
|
572
|
+
$count?: number
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
// entity 'LedgerAccount'
|
|
576
|
+
export declare function _LedgerAccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
577
|
+
new (...args: any[]): {
|
|
578
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
579
|
+
controlledAmount?: _.Lovelace | null
|
|
580
|
+
addressCount?: number | null
|
|
581
|
+
utxoCount?: number | null
|
|
582
|
+
lastActiveSlot?: number | null
|
|
583
|
+
addresses?: __.Association.to.many<LedgerAddresses>
|
|
584
|
+
} & InstanceType<TBase>
|
|
585
|
+
readonly kind: 'entity';
|
|
586
|
+
readonly keys: __.KeysOf<LedgerAccount>;
|
|
587
|
+
readonly elements: __.ElementsOf<LedgerAccount>;
|
|
588
|
+
readonly actions: globalThis.Record<never, never>;
|
|
589
|
+
};
|
|
590
|
+
export class LedgerAccount extends _LedgerAccountAspect(__.Entity) {
|
|
591
|
+
}
|
|
592
|
+
export class LedgerAccounts extends Array<LedgerAccount> {
|
|
593
|
+
$count?: number
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// entity 'TransactionCertificate'
|
|
597
|
+
export declare function _TransactionCertificateAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
416
598
|
new (...args: any[]): {
|
|
417
599
|
tx?: __.Key<__.Association.to<Transaction>>
|
|
418
600
|
tx_hash?: __.Key<_.Blake2b256>
|
|
601
|
+
certIndex?: __.Key<number>
|
|
602
|
+
kind?: __.Key<string>
|
|
603
|
+
stakeAddress?: _.Bech32 | null
|
|
604
|
+
poolId?: _.Bech32 | null
|
|
605
|
+
drepId?: _.Bech32 | null
|
|
606
|
+
deposit?: _.Lovelace | null
|
|
607
|
+
epoch?: number | null
|
|
608
|
+
} & InstanceType<TBase>
|
|
609
|
+
readonly kind: 'entity';
|
|
610
|
+
readonly keys: __.KeysOf<TransactionCertificate>;
|
|
611
|
+
readonly elements: __.ElementsOf<TransactionCertificate>;
|
|
612
|
+
readonly actions: globalThis.Record<never, never>;
|
|
613
|
+
};
|
|
614
|
+
export class TransactionCertificate extends _TransactionCertificateAspect(__.Entity) {
|
|
615
|
+
}
|
|
616
|
+
export class TransactionCertificates extends Array<TransactionCertificate> {
|
|
617
|
+
$count?: number
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
// entity 'TransactionWithdrawal'
|
|
621
|
+
export declare function _TransactionWithdrawalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
622
|
+
new (...args: any[]): {
|
|
623
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
624
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
625
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
626
|
+
lovelace?: _.Lovelace | null
|
|
627
|
+
} & InstanceType<TBase>
|
|
628
|
+
readonly kind: 'entity';
|
|
629
|
+
readonly keys: __.KeysOf<TransactionWithdrawal>;
|
|
630
|
+
readonly elements: __.ElementsOf<TransactionWithdrawal>;
|
|
631
|
+
readonly actions: globalThis.Record<never, never>;
|
|
632
|
+
};
|
|
633
|
+
export class TransactionWithdrawal extends _TransactionWithdrawalAspect(__.Entity) {
|
|
634
|
+
}
|
|
635
|
+
export class TransactionWithdrawals extends Array<TransactionWithdrawal> {
|
|
636
|
+
$count?: number
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
// entity 'TransactionOutput'
|
|
640
|
+
export declare function _TransactionOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
641
|
+
new (...args: any[]): {
|
|
642
|
+
txSeq?: __.Key<number>
|
|
643
|
+
tx?: __.Association.to<Transaction> | null
|
|
419
644
|
outputIndex?: __.Key<number>
|
|
420
645
|
address?: __.Association.to<Address> | null
|
|
421
646
|
address_address?: _.Bech32 | null
|
|
@@ -441,8 +666,8 @@ export class TransactionOutputs extends Array<TransactionOutput> {
|
|
|
441
666
|
export declare function _TransactionOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
442
667
|
new (...args: any[]): {
|
|
443
668
|
output?: __.Key<__.Association.to<TransactionOutput>>
|
|
669
|
+
output_txSeq?: __.Key<number>
|
|
444
670
|
output_outputIndex?: __.Key<number>
|
|
445
|
-
output_tx_hash?: __.Key<_.Blake2b256>
|
|
446
671
|
unit?: __.Key<_.AssetUnit>
|
|
447
672
|
asset_quantity?: _.Lovelace | null
|
|
448
673
|
asset_policyId?: _.Blake2b224 | null
|
|
@@ -859,6 +1084,12 @@ export declare function _CardanoSyncStateAspect<TBase extends new (...args: any[
|
|
|
859
1084
|
consecutiveErrors?: number | null
|
|
860
1085
|
desiredRunning?: boolean | null
|
|
861
1086
|
leaseOwner?: string | null
|
|
1087
|
+
utxoSetStatus?: string | null
|
|
1088
|
+
utxoAnchorSlot?: number | null
|
|
1089
|
+
utxoAnchorHash?: _.Blake2b256 | null
|
|
1090
|
+
utxoSetImportedAt?: __.CdsTimestamp | null
|
|
1091
|
+
utxoAppliedSlot?: number | null
|
|
1092
|
+
utxoSetError?: string | null
|
|
862
1093
|
leaseUntil?: __.CdsTimestamp | null
|
|
863
1094
|
} & InstanceType<TBase>
|
|
864
1095
|
readonly kind: 'entity';
|
|
@@ -958,3 +1189,89 @@ export class CardanoWalletJob extends _CardanoWalletJobAspect(__.Entity) {
|
|
|
958
1189
|
export class CardanoWalletJobs extends Array<CardanoWalletJob> {
|
|
959
1190
|
$count?: number
|
|
960
1191
|
}
|
|
1192
|
+
|
|
1193
|
+
// entity 'CardanoAgentGrant'
|
|
1194
|
+
export declare function _CardanoAgentGrantAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
1195
|
+
new (...args: any[]): {
|
|
1196
|
+
ID?: __.Key<string>
|
|
1197
|
+
userId?: string
|
|
1198
|
+
agentLabel?: string | null
|
|
1199
|
+
tokenHash?: string
|
|
1200
|
+
allowedActions?: string
|
|
1201
|
+
walletId?: string | null
|
|
1202
|
+
allowedJobKinds?: string | null
|
|
1203
|
+
maxJobsPerDay?: number | null
|
|
1204
|
+
jobsUsedToday?: number | null
|
|
1205
|
+
budgetWindow?: string | null
|
|
1206
|
+
validUntil?: __.CdsTimestamp | null
|
|
1207
|
+
isActive?: boolean | null
|
|
1208
|
+
revokedAt?: __.CdsTimestamp | null
|
|
1209
|
+
createdAt?: __.CdsTimestamp | null
|
|
1210
|
+
lastUsedAt?: __.CdsTimestamp | null
|
|
1211
|
+
} & InstanceType<TBase>
|
|
1212
|
+
readonly kind: 'entity';
|
|
1213
|
+
readonly keys: __.KeysOf<CardanoAgentGrant>;
|
|
1214
|
+
readonly elements: __.ElementsOf<CardanoAgentGrant>;
|
|
1215
|
+
readonly actions: globalThis.Record<never, never>;
|
|
1216
|
+
};
|
|
1217
|
+
/**
|
|
1218
|
+
* Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
|
|
1219
|
+
* instead of a full user. The token is a capability, not an identity — it is
|
|
1220
|
+
* stored as SHA-256 only, and a request carrying it runs as the principal
|
|
1221
|
+
* `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
|
|
1222
|
+
* (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
|
|
1223
|
+
* the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
|
|
1224
|
+
* Admin-only table: creation and revocation happen through CardanoAgentService
|
|
1225
|
+
* actions, a token request may read its own row only.
|
|
1226
|
+
*/
|
|
1227
|
+
export class CardanoAgentGrant extends _CardanoAgentGrantAspect(__.Entity) {
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
|
|
1231
|
+
* instead of a full user. The token is a capability, not an identity — it is
|
|
1232
|
+
* stored as SHA-256 only, and a request carrying it runs as the principal
|
|
1233
|
+
* `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
|
|
1234
|
+
* (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
|
|
1235
|
+
* the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
|
|
1236
|
+
* Admin-only table: creation and revocation happen through CardanoAgentService
|
|
1237
|
+
* actions, a token request may read its own row only.
|
|
1238
|
+
*/
|
|
1239
|
+
export class CardanoAgentGrants extends Array<CardanoAgentGrant> {
|
|
1240
|
+
$count?: number
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
// entity 'CardanoAgentGrantUsage'
|
|
1244
|
+
export declare function _CardanoAgentGrantUsageAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
1245
|
+
new (...args: any[]): {
|
|
1246
|
+
grant?: __.Key<__.Association.to<CardanoAgentGrant>>
|
|
1247
|
+
grant_ID?: __.Key<string>
|
|
1248
|
+
day?: __.Key<string>
|
|
1249
|
+
service?: __.Key<string>
|
|
1250
|
+
action?: __.Key<string>
|
|
1251
|
+
calls?: number | null
|
|
1252
|
+
refunded?: number | null
|
|
1253
|
+
} & InstanceType<TBase>
|
|
1254
|
+
readonly kind: 'entity';
|
|
1255
|
+
readonly keys: __.KeysOf<CardanoAgentGrantUsage>;
|
|
1256
|
+
readonly elements: __.ElementsOf<CardanoAgentGrantUsage>;
|
|
1257
|
+
readonly actions: globalThis.Record<never, never>;
|
|
1258
|
+
};
|
|
1259
|
+
/**
|
|
1260
|
+
* Daily per-action counters of admitted calls under a grant (feeds
|
|
1261
|
+
* CardanoAgentService.GetGrantUsage). Written by the enforcement hook next to
|
|
1262
|
+
* the daily budget: `calls + 1` when a call is admitted, `refunded + 1` when the
|
|
1263
|
+
* handler then refuses its input. Not exposed as an entity — the function is
|
|
1264
|
+
* the contract. A few dozen rows per grant and day at most; no retention job yet.
|
|
1265
|
+
*/
|
|
1266
|
+
export class CardanoAgentGrantUsage extends _CardanoAgentGrantUsageAspect(__.Entity) {
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Daily per-action counters of admitted calls under a grant (feeds
|
|
1270
|
+
* CardanoAgentService.GetGrantUsage). Written by the enforcement hook next to
|
|
1271
|
+
* the daily budget: `calls + 1` when a call is admitted, `refunded + 1` when the
|
|
1272
|
+
* handler then refuses its input. Not exposed as an entity — the function is
|
|
1273
|
+
* the contract. A few dozen rows per grant and day at most; no retention job yet.
|
|
1274
|
+
*/
|
|
1275
|
+
export class CardanoAgentGrantUsage_ extends Array<CardanoAgentGrantUsage> {
|
|
1276
|
+
$count?: number
|
|
1277
|
+
}
|
|
@@ -12,6 +12,12 @@ module.exports.Epochs = createEntityProxy(['odatano.cardano', 'Epochs'], { targe
|
|
|
12
12
|
// Pools
|
|
13
13
|
module.exports.Pool = createEntityProxy(['odatano.cardano', 'Pools'], { target: { is_singular: true } })
|
|
14
14
|
module.exports.Pools = createEntityProxy(['odatano.cardano', 'Pools'], { target: { is_singular: false }})
|
|
15
|
+
// PoolEpochSnapshots
|
|
16
|
+
module.exports.PoolEpochSnapshot = createEntityProxy(['odatano.cardano', 'PoolEpochSnapshots'], { target: { is_singular: true } })
|
|
17
|
+
module.exports.PoolEpochSnapshots = createEntityProxy(['odatano.cardano', 'PoolEpochSnapshots'], { target: { is_singular: false }})
|
|
18
|
+
// DrepEpochSnapshots
|
|
19
|
+
module.exports.DrepEpochSnapshot = createEntityProxy(['odatano.cardano', 'DrepEpochSnapshots'], { target: { is_singular: true } })
|
|
20
|
+
module.exports.DrepEpochSnapshots = createEntityProxy(['odatano.cardano', 'DrepEpochSnapshots'], { target: { is_singular: false }})
|
|
15
21
|
// Assets
|
|
16
22
|
module.exports.Asset = createEntityProxy(['odatano.cardano', 'Assets'], { target: { is_singular: true } })
|
|
17
23
|
module.exports.Assets = createEntityProxy(['odatano.cardano', 'Assets'], { target: { is_singular: false }})
|
|
@@ -45,6 +51,27 @@ module.exports.TransactionInputs = createEntityProxy(['odatano.cardano', 'Transa
|
|
|
45
51
|
// TransactionInputAssets
|
|
46
52
|
module.exports.TransactionInputAsset = createEntityProxy(['odatano.cardano', 'TransactionInputAssets'], { target: { is_singular: true } })
|
|
47
53
|
module.exports.TransactionInputAssets = createEntityProxy(['odatano.cardano', 'TransactionInputAssets'], { target: { is_singular: false }})
|
|
54
|
+
// LedgerUTxOs
|
|
55
|
+
module.exports.LedgerUTxO = createEntityProxy(['odatano.cardano', 'LedgerUTxOs'], { target: { is_singular: true } })
|
|
56
|
+
module.exports.LedgerUTxOs = createEntityProxy(['odatano.cardano', 'LedgerUTxOs'], { target: { is_singular: false }})
|
|
57
|
+
// LedgerUTxOAssets
|
|
58
|
+
module.exports.LedgerUTxOAsset = createEntityProxy(['odatano.cardano', 'LedgerUTxOAssets'], { target: { is_singular: true } })
|
|
59
|
+
module.exports.LedgerUTxOAssets = createEntityProxy(['odatano.cardano', 'LedgerUTxOAssets'], { target: { is_singular: false }})
|
|
60
|
+
// LedgerAddresses
|
|
61
|
+
module.exports.LedgerAddress = createEntityProxy(['odatano.cardano', 'LedgerAddresses'], { target: { is_singular: true } })
|
|
62
|
+
module.exports.LedgerAddresses = createEntityProxy(['odatano.cardano', 'LedgerAddresses'], { target: { is_singular: false }})
|
|
63
|
+
// LedgerAddressAssets
|
|
64
|
+
module.exports.LedgerAddressAsset = createEntityProxy(['odatano.cardano', 'LedgerAddressAssets'], { target: { is_singular: true } })
|
|
65
|
+
module.exports.LedgerAddressAssets = createEntityProxy(['odatano.cardano', 'LedgerAddressAssets'], { target: { is_singular: false }})
|
|
66
|
+
// LedgerAccounts
|
|
67
|
+
module.exports.LedgerAccount = createEntityProxy(['odatano.cardano', 'LedgerAccounts'], { target: { is_singular: true } })
|
|
68
|
+
module.exports.LedgerAccounts = createEntityProxy(['odatano.cardano', 'LedgerAccounts'], { target: { is_singular: false }})
|
|
69
|
+
// TransactionCertificates
|
|
70
|
+
module.exports.TransactionCertificate = createEntityProxy(['odatano.cardano', 'TransactionCertificates'], { target: { is_singular: true } })
|
|
71
|
+
module.exports.TransactionCertificates = createEntityProxy(['odatano.cardano', 'TransactionCertificates'], { target: { is_singular: false }})
|
|
72
|
+
// TransactionWithdrawals
|
|
73
|
+
module.exports.TransactionWithdrawal = createEntityProxy(['odatano.cardano', 'TransactionWithdrawals'], { target: { is_singular: true } })
|
|
74
|
+
module.exports.TransactionWithdrawals = createEntityProxy(['odatano.cardano', 'TransactionWithdrawals'], { target: { is_singular: false }})
|
|
48
75
|
// TransactionOutputs
|
|
49
76
|
module.exports.TransactionOutput = createEntityProxy(['odatano.cardano', 'TransactionOutputs'], { target: { is_singular: true } })
|
|
50
77
|
module.exports.TransactionOutputs = createEntityProxy(['odatano.cardano', 'TransactionOutputs'], { target: { is_singular: false }})
|
|
@@ -105,6 +132,12 @@ module.exports.CardanoWorkerWallets = createEntityProxy(['odatano.cardano', 'Car
|
|
|
105
132
|
// CardanoWalletJobs
|
|
106
133
|
module.exports.CardanoWalletJob = createEntityProxy(['odatano.cardano', 'CardanoWalletJobs'], { target: { is_singular: true } })
|
|
107
134
|
module.exports.CardanoWalletJobs = createEntityProxy(['odatano.cardano', 'CardanoWalletJobs'], { target: { is_singular: false }})
|
|
135
|
+
// CardanoAgentGrants
|
|
136
|
+
module.exports.CardanoAgentGrant = createEntityProxy(['odatano.cardano', 'CardanoAgentGrants'], { target: { is_singular: true } })
|
|
137
|
+
module.exports.CardanoAgentGrants = createEntityProxy(['odatano.cardano', 'CardanoAgentGrants'], { target: { is_singular: false }})
|
|
138
|
+
// CardanoAgentGrantUsage
|
|
139
|
+
module.exports.CardanoAgentGrantUsage = createEntityProxy(['odatano.cardano', 'CardanoAgentGrantUsage'], { target: { is_singular: true } })
|
|
140
|
+
module.exports.CardanoAgentGrantUsage_ = createEntityProxy(['odatano.cardano', 'CardanoAgentGrantUsage'], { target: { is_singular: false }})
|
|
108
141
|
// events
|
|
109
142
|
// actions
|
|
110
143
|
// enums
|