@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
|
@@ -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[]): {
|
|
@@ -243,6 +297,7 @@ export class AssetHistory_ extends Array<AssetHistory> {
|
|
|
243
297
|
export declare function _TransactionAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
244
298
|
new (...args: any[]): {
|
|
245
299
|
hash?: __.Key<_.Blake2b256>
|
|
300
|
+
txSeq?: number | null
|
|
246
301
|
blockHash?: _.Blake2b256 | null
|
|
247
302
|
blockHeight?: number | null
|
|
248
303
|
blockTime?: number | null
|
|
@@ -254,6 +309,8 @@ export declare function _TransactionAspect<TBase extends new (...args: any[]) =>
|
|
|
254
309
|
metadata?: __.Composition.of.many<TransactionMetadata_>
|
|
255
310
|
inputs?: __.Composition.of.many<TransactionInputs>
|
|
256
311
|
outputs?: __.Composition.of.many<TransactionOutputs>
|
|
312
|
+
certificates?: __.Composition.of.many<TransactionCertificates>
|
|
313
|
+
withdrawals?: __.Composition.of.many<TransactionWithdrawals>
|
|
257
314
|
hasMetadata?: boolean | null
|
|
258
315
|
hasInputs?: boolean | null
|
|
259
316
|
hasOutputs?: boolean | null
|
|
@@ -272,14 +329,16 @@ export class Transactions extends Array<Transaction> {
|
|
|
272
329
|
// entity 'TransactionInput'
|
|
273
330
|
export declare function _TransactionInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
274
331
|
new (...args: any[]): {
|
|
275
|
-
|
|
276
|
-
|
|
332
|
+
txSeq?: __.Key<number>
|
|
333
|
+
tx?: __.Association.to<Transaction> | null
|
|
277
334
|
inputIndex?: __.Key<number>
|
|
278
335
|
address?: __.Association.to<Address> | null
|
|
279
336
|
address_address?: _.Bech32 | null
|
|
280
337
|
utxoData_dataHash?: _.Blake2b256 | null
|
|
281
338
|
utxoData_inlineDatum?: string | null
|
|
282
339
|
utxoData_referenceScriptHash?: _.Blake2b256 | null
|
|
340
|
+
spentTxHash?: _.Blake2b256 | null
|
|
341
|
+
spentOutputIndex?: number | null
|
|
283
342
|
isCollateral?: boolean | null
|
|
284
343
|
isReference?: boolean | null
|
|
285
344
|
assets?: __.Composition.of.many<TransactionInputAssets>
|
|
@@ -300,8 +359,8 @@ export class TransactionInputs extends Array<TransactionInput> {
|
|
|
300
359
|
// entity 'TransactionOutput'
|
|
301
360
|
export declare function _TransactionOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
302
361
|
new (...args: any[]): {
|
|
303
|
-
|
|
304
|
-
|
|
362
|
+
txSeq?: __.Key<number>
|
|
363
|
+
tx?: __.Association.to<Transaction> | null
|
|
305
364
|
outputIndex?: __.Key<number>
|
|
306
365
|
address?: __.Association.to<Address> | null
|
|
307
366
|
address_address?: _.Bech32 | null
|
|
@@ -327,8 +386,8 @@ export class TransactionOutputs extends Array<TransactionOutput> {
|
|
|
327
386
|
export declare function _TransactionInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
328
387
|
new (...args: any[]): {
|
|
329
388
|
input?: __.Key<__.Association.to<TransactionInput>>
|
|
389
|
+
input_txSeq?: __.Key<number>
|
|
330
390
|
input_inputIndex?: __.Key<number>
|
|
331
|
-
input_tx_hash?: __.Key<_.Blake2b256>
|
|
332
391
|
unit?: __.Key<_.AssetUnit>
|
|
333
392
|
asset_quantity?: _.Lovelace | null
|
|
334
393
|
asset_policyId?: _.Blake2b224 | null
|
|
@@ -351,8 +410,8 @@ export class TransactionInputAssets extends Array<TransactionInputAsset> {
|
|
|
351
410
|
export declare function _TransactionOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
352
411
|
new (...args: any[]): {
|
|
353
412
|
output?: __.Key<__.Association.to<TransactionOutput>>
|
|
413
|
+
output_txSeq?: __.Key<number>
|
|
354
414
|
output_outputIndex?: __.Key<number>
|
|
355
|
-
output_tx_hash?: __.Key<_.Blake2b256>
|
|
356
415
|
unit?: __.Key<_.AssetUnit>
|
|
357
416
|
asset_quantity?: _.Lovelace | null
|
|
358
417
|
asset_policyId?: _.Blake2b224 | null
|
|
@@ -371,6 +430,172 @@ export class TransactionOutputAssets extends Array<TransactionOutputAsset> {
|
|
|
371
430
|
$count?: number
|
|
372
431
|
}
|
|
373
432
|
|
|
433
|
+
// entity 'TransactionCertificate'
|
|
434
|
+
export declare function _TransactionCertificateAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
435
|
+
new (...args: any[]): {
|
|
436
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
437
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
438
|
+
certIndex?: __.Key<number>
|
|
439
|
+
kind?: __.Key<string>
|
|
440
|
+
stakeAddress?: _.Bech32 | null
|
|
441
|
+
poolId?: _.Bech32 | null
|
|
442
|
+
drepId?: _.Bech32 | null
|
|
443
|
+
deposit?: _.Lovelace | null
|
|
444
|
+
epoch?: number | null
|
|
445
|
+
} & InstanceType<TBase>
|
|
446
|
+
readonly kind: 'entity';
|
|
447
|
+
readonly keys: __.KeysOf<TransactionCertificate>;
|
|
448
|
+
readonly elements: __.ElementsOf<TransactionCertificate>;
|
|
449
|
+
readonly actions: globalThis.Record<never, never>;
|
|
450
|
+
};
|
|
451
|
+
export class TransactionCertificate extends _TransactionCertificateAspect(__.Entity) {
|
|
452
|
+
}
|
|
453
|
+
export class TransactionCertificates extends Array<TransactionCertificate> {
|
|
454
|
+
$count?: number
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
// entity 'TransactionWithdrawal'
|
|
458
|
+
export declare function _TransactionWithdrawalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
459
|
+
new (...args: any[]): {
|
|
460
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
461
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
462
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
463
|
+
lovelace?: _.Lovelace | null
|
|
464
|
+
} & InstanceType<TBase>
|
|
465
|
+
readonly kind: 'entity';
|
|
466
|
+
readonly keys: __.KeysOf<TransactionWithdrawal>;
|
|
467
|
+
readonly elements: __.ElementsOf<TransactionWithdrawal>;
|
|
468
|
+
readonly actions: globalThis.Record<never, never>;
|
|
469
|
+
};
|
|
470
|
+
export class TransactionWithdrawal extends _TransactionWithdrawalAspect(__.Entity) {
|
|
471
|
+
}
|
|
472
|
+
export class TransactionWithdrawals extends Array<TransactionWithdrawal> {
|
|
473
|
+
$count?: number
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
// entity 'LedgerUTxO'
|
|
477
|
+
export declare function _LedgerUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
478
|
+
new (...args: any[]): {
|
|
479
|
+
txHash?: __.Key<_.Blake2b256>
|
|
480
|
+
outputIndex?: __.Key<number>
|
|
481
|
+
address?: _.Bech32 | null
|
|
482
|
+
stakeAddress?: _.Bech32 | null
|
|
483
|
+
addressType?: string | null
|
|
484
|
+
isScript?: boolean | null
|
|
485
|
+
lovelace?: _.Lovelace | null
|
|
486
|
+
createdSlot?: number | null
|
|
487
|
+
spentTxHash?: _.Blake2b256 | null
|
|
488
|
+
spentSlot?: number | null
|
|
489
|
+
utxo_dataHash?: _.Blake2b256 | null
|
|
490
|
+
utxo_inlineDatum?: string | null
|
|
491
|
+
utxo_referenceScriptHash?: _.Blake2b256 | null
|
|
492
|
+
hasAssets?: boolean | null
|
|
493
|
+
assets?: __.Composition.of.many<LedgerUTxOAssets>
|
|
494
|
+
} & InstanceType<TBase>
|
|
495
|
+
readonly kind: 'entity';
|
|
496
|
+
readonly keys: __.KeysOf<LedgerUTxO>;
|
|
497
|
+
readonly elements: __.ElementsOf<LedgerUTxO>;
|
|
498
|
+
readonly actions: globalThis.Record<never, never>;
|
|
499
|
+
};
|
|
500
|
+
export class LedgerUTxO extends _LedgerUTxOAspect(__.Entity) {
|
|
501
|
+
}
|
|
502
|
+
export class LedgerUTxOs extends Array<LedgerUTxO> {
|
|
503
|
+
$count?: number
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// entity 'LedgerUTxOAsset'
|
|
507
|
+
export declare function _LedgerUTxOAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
508
|
+
new (...args: any[]): {
|
|
509
|
+
utxo?: __.Key<__.Association.to<LedgerUTxO>>
|
|
510
|
+
utxo_txHash?: __.Key<_.Blake2b256>
|
|
511
|
+
utxo_outputIndex?: __.Key<number>
|
|
512
|
+
unit?: __.Key<_.AssetUnit>
|
|
513
|
+
asset_quantity?: _.Lovelace | null
|
|
514
|
+
asset_policyId?: _.Blake2b224 | null
|
|
515
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
516
|
+
asset_assetName?: string | null
|
|
517
|
+
asset_fingerprint?: string | null
|
|
518
|
+
} & InstanceType<TBase>
|
|
519
|
+
readonly kind: 'entity';
|
|
520
|
+
readonly keys: __.KeysOf<LedgerUTxOAsset>;
|
|
521
|
+
readonly elements: __.ElementsOf<LedgerUTxOAsset>;
|
|
522
|
+
readonly actions: globalThis.Record<never, never>;
|
|
523
|
+
};
|
|
524
|
+
export class LedgerUTxOAsset extends _LedgerUTxOAssetAspect(__.Entity) {
|
|
525
|
+
}
|
|
526
|
+
export class LedgerUTxOAssets extends Array<LedgerUTxOAsset> {
|
|
527
|
+
$count?: number
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
// entity 'LedgerAddress'
|
|
531
|
+
export declare function _LedgerAddressAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
532
|
+
new (...args: any[]): {
|
|
533
|
+
address?: __.Key<_.Bech32>
|
|
534
|
+
stakeAddress?: _.Bech32 | null
|
|
535
|
+
addressType?: string | null
|
|
536
|
+
isScript?: boolean | null
|
|
537
|
+
totalLovelace?: _.Lovelace | null
|
|
538
|
+
utxoCount?: number | null
|
|
539
|
+
firstSeenSlot?: number | null
|
|
540
|
+
lastActiveSlot?: number | null
|
|
541
|
+
assets?: __.Composition.of.many<LedgerAddressAssets>
|
|
542
|
+
utxos?: __.Association.to.many<LedgerUTxOs>
|
|
543
|
+
} & InstanceType<TBase>
|
|
544
|
+
readonly kind: 'entity';
|
|
545
|
+
readonly keys: __.KeysOf<LedgerAddress>;
|
|
546
|
+
readonly elements: __.ElementsOf<LedgerAddress>;
|
|
547
|
+
readonly actions: globalThis.Record<never, never>;
|
|
548
|
+
};
|
|
549
|
+
export class LedgerAddress extends _LedgerAddressAspect(__.Entity) {
|
|
550
|
+
}
|
|
551
|
+
export class LedgerAddresses extends Array<LedgerAddress> {
|
|
552
|
+
$count?: number
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
// entity 'LedgerAddressAsset'
|
|
556
|
+
export declare function _LedgerAddressAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
557
|
+
new (...args: any[]): {
|
|
558
|
+
address?: __.Key<__.Association.to<LedgerAddress>>
|
|
559
|
+
address_address?: __.Key<_.Bech32>
|
|
560
|
+
unit?: __.Key<_.AssetUnit>
|
|
561
|
+
asset_quantity?: _.Lovelace | null
|
|
562
|
+
asset_policyId?: _.Blake2b224 | null
|
|
563
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
564
|
+
asset_assetName?: string | null
|
|
565
|
+
asset_fingerprint?: string | null
|
|
566
|
+
} & InstanceType<TBase>
|
|
567
|
+
readonly kind: 'entity';
|
|
568
|
+
readonly keys: __.KeysOf<LedgerAddressAsset>;
|
|
569
|
+
readonly elements: __.ElementsOf<LedgerAddressAsset>;
|
|
570
|
+
readonly actions: globalThis.Record<never, never>;
|
|
571
|
+
};
|
|
572
|
+
export class LedgerAddressAsset extends _LedgerAddressAssetAspect(__.Entity) {
|
|
573
|
+
}
|
|
574
|
+
export class LedgerAddressAssets extends Array<LedgerAddressAsset> {
|
|
575
|
+
$count?: number
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
// entity 'LedgerAccount'
|
|
579
|
+
export declare function _LedgerAccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
580
|
+
new (...args: any[]): {
|
|
581
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
582
|
+
controlledAmount?: _.Lovelace | null
|
|
583
|
+
addressCount?: number | null
|
|
584
|
+
utxoCount?: number | null
|
|
585
|
+
lastActiveSlot?: number | null
|
|
586
|
+
addresses?: __.Association.to.many<LedgerAddresses>
|
|
587
|
+
} & InstanceType<TBase>
|
|
588
|
+
readonly kind: 'entity';
|
|
589
|
+
readonly keys: __.KeysOf<LedgerAccount>;
|
|
590
|
+
readonly elements: __.ElementsOf<LedgerAccount>;
|
|
591
|
+
readonly actions: globalThis.Record<never, never>;
|
|
592
|
+
};
|
|
593
|
+
export class LedgerAccount extends _LedgerAccountAspect(__.Entity) {
|
|
594
|
+
}
|
|
595
|
+
export class LedgerAccounts extends Array<LedgerAccount> {
|
|
596
|
+
$count?: number
|
|
597
|
+
}
|
|
598
|
+
|
|
374
599
|
// entity 'Account'
|
|
375
600
|
export declare function _AccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
376
601
|
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
|
-
*
|
|
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
|
|
200
|
-
* submitted
|
|
201
|
-
* pending | submitted
|
|
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
|
|
208
|
-
* submitted
|
|
209
|
-
* pending | submitted
|
|
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
|
|