@odatano/core 2.0.0-rc.4 → 2.0.0-rc.40
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/CardanoBackendService/index.d.ts +357 -0
- package/@cds-models/CardanoBackendService/index.js +40 -0
- package/@cds-models/CardanoIndexerService/index.d.ts +194 -2
- package/@cds-models/CardanoIndexerService/index.js +25 -0
- package/@cds-models/CardanoODataService/index.d.ts +305 -7
- package/@cds-models/CardanoODataService/index.js +34 -0
- package/@cds-models/CardanoSignService/index.d.ts +28 -3
- package/@cds-models/CardanoSignService/index.js +3 -0
- package/@cds-models/CardanoTransactionService/index.d.ts +46 -13
- package/@cds-models/CardanoTransactionService/index.js +4 -0
- package/@cds-models/index.d.ts +72 -0
- package/@cds-models/index.js +12 -0
- package/@cds-models/odatano/cardano/index.d.ts +408 -7
- package/@cds-models/odatano/cardano/index.js +42 -0
- package/README.md +64 -5
- package/db/schema.cds +2297 -1633
- package/db/types.cds +114 -0
- package/package.json +27 -6
- package/scripts/migrate-slot-leader.mjs +104 -0
- package/scripts/migrate-txseq.mjs +147 -0
- package/src/index.d.ts +18 -11
- package/src/index.js +44 -14
- package/src/plugin.js +42 -52
- package/srv/blockchain/backends/blockfrost-backend.d.ts +29 -131
- package/srv/blockchain/backends/blockfrost-backend.js +53 -162
- package/srv/blockchain/backends/cardano-backend.d.ts +104 -158
- package/srv/blockchain/backends/cardano-backend.js +19 -5
- package/srv/blockchain/backends/koios-backend.d.ts +126 -60
- package/srv/blockchain/backends/koios-backend.js +376 -235
- package/srv/blockchain/backends/odatano-backend.d.ts +64 -0
- package/srv/blockchain/backends/odatano-backend.js +170 -0
- package/srv/blockchain/backends/ogmios-backend.d.ts +162 -94
- package/srv/blockchain/backends/ogmios-backend.js +556 -201
- 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 +87 -202
- package/srv/blockchain/cardano-client.js +210 -240
- package/srv/blockchain/cardano-indexer.d.ts +311 -242
- package/srv/blockchain/cardano-indexer.js +1238 -362
- package/srv/blockchain/cardano-tx-builder.d.ts +44 -81
- package/srv/blockchain/cardano-tx-builder.js +173 -132
- package/srv/blockchain/crawler/certificate-backfill.d.ts +67 -0
- package/srv/blockchain/crawler/certificate-backfill.js +169 -0
- package/srv/blockchain/crawler/crawler.d.ts +139 -54
- package/srv/blockchain/crawler/crawler.js +478 -96
- 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 +46 -28
- package/srv/blockchain/crawler/sync-state.js +128 -43
- package/srv/blockchain/crawler/transaction-backfill.d.ts +52 -0
- package/srv/blockchain/crawler/transaction-backfill.js +283 -0
- package/srv/blockchain/crawler/utxo-set-import.d.ts +78 -0
- package/srv/blockchain/crawler/utxo-set-import.js +363 -0
- package/srv/blockchain/ledger-state.d.ts +101 -0
- package/srv/blockchain/ledger-state.js +432 -0
- package/srv/blockchain/pending-spends.d.ts +28 -0
- package/srv/blockchain/pending-spends.js +89 -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 +14 -45
- package/srv/blockchain/signing/signature-verifier.js +73 -76
- package/srv/blockchain/signing/submission-finalizer.d.ts +9 -36
- package/srv/blockchain/signing/submission-finalizer.js +16 -49
- package/srv/blockchain/stored-chain.d.ts +33 -0
- package/srv/blockchain/stored-chain.js +234 -0
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts +111 -173
- package/srv/blockchain/transaction-building/buildooor-tx.js +649 -326
- package/srv/blockchain/transaction-building/caller-datums.d.ts +29 -0
- package/srv/blockchain/transaction-building/caller-datums.js +139 -0
- package/srv/blockchain/transaction-building/cardano-tx.d.ts +10 -35
- package/srv/blockchain/transaction-rows.d.ts +12 -0
- package/srv/blockchain/transaction-rows.js +43 -0
- package/srv/blockchain/wallet-worker/build-request.d.ts +4 -17
- package/srv/blockchain/wallet-worker/build-request.js +18 -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-backend-service.cds +52 -0
- package/srv/cardano-backend-service.d.ts +2 -0
- package/srv/cardano-backend-service.js +244 -0
- package/srv/cardano-indexer-service.cds +201 -73
- package/srv/cardano-indexer-service.js +280 -11
- package/srv/cardano-service.cds +65 -2
- package/srv/cardano-service.js +170 -129
- package/srv/cardano-sign-service.cds +200 -180
- package/srv/cardano-sign-service.js +57 -184
- package/srv/cardano-tx-service.cds +439 -370
- package/srv/cardano-tx-service.js +231 -190
- package/srv/cardano-ui.cds +16 -16
- package/srv/cardano-worker-service.js +7 -15
- package/srv/cbor/index.d.ts +1 -1
- package/srv/cbor/parse.d.ts +27 -0
- package/srv/cbor/parse.js +63 -2
- package/srv/server.d.ts +28 -86
- package/srv/server.js +132 -135
- 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 +922 -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 +30 -67
- package/srv/utils/const.js +32 -72
- 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 +94 -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 +20 -0
- package/srv/utils/epoch-slots.js +43 -0
- package/srv/utils/error-codes.d.ts +20 -73
- package/srv/utils/error-codes.js +19 -70
- package/srv/utils/errors.d.ts +50 -177
- package/srv/utils/errors.js +94 -218
- package/srv/utils/legacy-service-paths.d.ts +11 -0
- package/srv/utils/legacy-service-paths.js +58 -0
- package/srv/utils/liveness.d.ts +16 -0
- package/srv/utils/liveness.js +40 -0
- package/srv/utils/mappers.d.ts +128 -214
- package/srv/utils/mappers.js +354 -299
- package/srv/utils/network-context.js +2 -11
- package/srv/utils/pg-inline-json.d.ts +8 -0
- package/srv/utils/pg-inline-json.js +62 -0
- package/srv/utils/pg-order-nulls.d.ts +14 -0
- package/srv/utils/pg-order-nulls.js +56 -0
- package/srv/utils/plutus-placeholders.d.ts +23 -16
- package/srv/utils/plutus-placeholders.js +63 -27
- 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 +6 -16
- package/srv/utils/signing-helper.js +36 -60
- package/srv/utils/tx-build-helper.d.ts +28 -93
- package/srv/utils/tx-build-helper.js +75 -124
- package/srv/utils/tx-request-parsers.d.ts +101 -28
- package/srv/utils/tx-request-parsers.js +410 -43
- package/srv/utils/tx-utils.d.ts +4 -23
- package/srv/utils/tx-utils.js +12 -41
- package/srv/utils/types.d.ts +252 -179
- package/srv/utils/types.js +2 -6
- package/srv/utils/validators.d.ts +24 -90
- package/srv/utils/validators.js +50 -147
|
@@ -41,6 +41,7 @@ export default class {
|
|
|
41
41
|
static readonly GetAssetHistory: typeof GetAssetHistory;
|
|
42
42
|
static readonly GetAccountByStakeAddress: typeof GetAccountByStakeAddress;
|
|
43
43
|
static readonly GetTransactionByHash: typeof GetTransactionByHash;
|
|
44
|
+
static readonly GetTransactionConfirmations: typeof GetTransactionConfirmations;
|
|
44
45
|
static readonly GetMetadataByTxHash: typeof GetMetadataByTxHash;
|
|
45
46
|
static readonly GetAddressByBech32: typeof GetAddressByBech32;
|
|
46
47
|
static readonly GetUTxOsByAddress: typeof GetUTxOsByAddress;
|
|
@@ -185,6 +186,96 @@ export class Dreps extends Array<Drep> {
|
|
|
185
186
|
$count?: number
|
|
186
187
|
}
|
|
187
188
|
|
|
189
|
+
// entity 'PoolEpochSnapshot'
|
|
190
|
+
export declare function _PoolEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
191
|
+
new (...args: any[]): {
|
|
192
|
+
poolId?: __.Key<_.Bech32>
|
|
193
|
+
epoch?: __.Key<number>
|
|
194
|
+
snapshotSlot?: number | null
|
|
195
|
+
snapshotTime?: number | null
|
|
196
|
+
snapshotHash?: _.Blake2b256 | null
|
|
197
|
+
source?: string | null
|
|
198
|
+
blocksMinted?: number | null
|
|
199
|
+
blocksEpoch?: number | null
|
|
200
|
+
liveStake?: _.Lovelace | null
|
|
201
|
+
liveSize?: (number | string) | null
|
|
202
|
+
liveSaturation?: (number | string) | null
|
|
203
|
+
liveDelegators?: number | null
|
|
204
|
+
activeStake?: _.Lovelace | null
|
|
205
|
+
activeSize?: (number | string) | null
|
|
206
|
+
pledge?: _.Lovelace | null
|
|
207
|
+
margin?: (number | string) | null
|
|
208
|
+
fixedCost?: _.Lovelace | null
|
|
209
|
+
} & InstanceType<TBase>
|
|
210
|
+
readonly kind: 'entity';
|
|
211
|
+
readonly keys: __.KeysOf<PoolEpochSnapshot>;
|
|
212
|
+
readonly elements: __.ElementsOf<PoolEpochSnapshot>;
|
|
213
|
+
readonly actions: globalThis.Record<never, never>;
|
|
214
|
+
};
|
|
215
|
+
export class PoolEpochSnapshot extends _PoolEpochSnapshotAspect(__.Entity) {
|
|
216
|
+
}
|
|
217
|
+
export class PoolEpochSnapshots extends Array<PoolEpochSnapshot> {
|
|
218
|
+
$count?: number
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// entity 'DrepEpochSnapshot'
|
|
222
|
+
export declare function _DrepEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
223
|
+
new (...args: any[]): {
|
|
224
|
+
drepId?: __.Key<_.Bech32>
|
|
225
|
+
epoch?: __.Key<number>
|
|
226
|
+
snapshotSlot?: number | null
|
|
227
|
+
snapshotTime?: number | null
|
|
228
|
+
snapshotHash?: _.Blake2b256 | null
|
|
229
|
+
source?: string | null
|
|
230
|
+
deposit?: _.Lovelace | null
|
|
231
|
+
expiresEpoch?: number | null
|
|
232
|
+
delegatorCount?: number | null
|
|
233
|
+
amount?: _.Lovelace | null
|
|
234
|
+
hasScript?: boolean | null
|
|
235
|
+
lastActiveEpoch?: number | null
|
|
236
|
+
retired?: boolean | null
|
|
237
|
+
expired?: boolean | null
|
|
238
|
+
} & InstanceType<TBase>
|
|
239
|
+
readonly kind: 'entity';
|
|
240
|
+
readonly keys: __.KeysOf<DrepEpochSnapshot>;
|
|
241
|
+
readonly elements: __.ElementsOf<DrepEpochSnapshot>;
|
|
242
|
+
readonly actions: globalThis.Record<never, never>;
|
|
243
|
+
};
|
|
244
|
+
export class DrepEpochSnapshot extends _DrepEpochSnapshotAspect(__.Entity) {
|
|
245
|
+
}
|
|
246
|
+
export class DrepEpochSnapshots extends Array<DrepEpochSnapshot> {
|
|
247
|
+
$count?: number
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// entity 'EpochLedgerSnapshot'
|
|
251
|
+
export declare function _EpochLedgerSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
252
|
+
new (...args: any[]): {
|
|
253
|
+
epoch?: __.Key<number>
|
|
254
|
+
snapshotSlot?: number | null
|
|
255
|
+
snapshotTime?: number | null
|
|
256
|
+
snapshotHash?: _.Blake2b256 | null
|
|
257
|
+
source?: string | null
|
|
258
|
+
treasury?: _.Lovelace | null
|
|
259
|
+
reserves?: _.Lovelace | null
|
|
260
|
+
totalSupply?: _.Lovelace | null
|
|
261
|
+
liveStake?: _.Lovelace | null
|
|
262
|
+
activeStake?: _.Lovelace | null
|
|
263
|
+
poolCount?: number | null
|
|
264
|
+
drepCount?: number | null
|
|
265
|
+
drepAbstainStake?: _.Lovelace | null
|
|
266
|
+
drepNoConfidenceStake?: _.Lovelace | null
|
|
267
|
+
} & InstanceType<TBase>
|
|
268
|
+
readonly kind: 'entity';
|
|
269
|
+
readonly keys: __.KeysOf<EpochLedgerSnapshot>;
|
|
270
|
+
readonly elements: __.ElementsOf<EpochLedgerSnapshot>;
|
|
271
|
+
readonly actions: globalThis.Record<never, never>;
|
|
272
|
+
};
|
|
273
|
+
export class EpochLedgerSnapshot extends _EpochLedgerSnapshotAspect(__.Entity) {
|
|
274
|
+
}
|
|
275
|
+
export class EpochLedgerSnapshots extends Array<EpochLedgerSnapshot> {
|
|
276
|
+
$count?: number
|
|
277
|
+
}
|
|
278
|
+
|
|
188
279
|
// entity 'Asset'
|
|
189
280
|
export declare function _AssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
190
281
|
new (...args: any[]): {
|
|
@@ -243,6 +334,7 @@ export class AssetHistory_ extends Array<AssetHistory> {
|
|
|
243
334
|
export declare function _TransactionAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
244
335
|
new (...args: any[]): {
|
|
245
336
|
hash?: __.Key<_.Blake2b256>
|
|
337
|
+
txSeq?: number | null
|
|
246
338
|
blockHash?: _.Blake2b256 | null
|
|
247
339
|
blockHeight?: number | null
|
|
248
340
|
blockTime?: number | null
|
|
@@ -254,6 +346,8 @@ export declare function _TransactionAspect<TBase extends new (...args: any[]) =>
|
|
|
254
346
|
metadata?: __.Composition.of.many<TransactionMetadata_>
|
|
255
347
|
inputs?: __.Composition.of.many<TransactionInputs>
|
|
256
348
|
outputs?: __.Composition.of.many<TransactionOutputs>
|
|
349
|
+
certificates?: __.Composition.of.many<TransactionCertificates>
|
|
350
|
+
withdrawals?: __.Composition.of.many<TransactionWithdrawals>
|
|
257
351
|
hasMetadata?: boolean | null
|
|
258
352
|
hasInputs?: boolean | null
|
|
259
353
|
hasOutputs?: boolean | null
|
|
@@ -272,14 +366,16 @@ export class Transactions extends Array<Transaction> {
|
|
|
272
366
|
// entity 'TransactionInput'
|
|
273
367
|
export declare function _TransactionInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
274
368
|
new (...args: any[]): {
|
|
275
|
-
|
|
276
|
-
|
|
369
|
+
txSeq?: __.Key<number>
|
|
370
|
+
tx?: __.Association.to<Transaction> | null
|
|
277
371
|
inputIndex?: __.Key<number>
|
|
278
372
|
address?: __.Association.to<Address> | null
|
|
279
373
|
address_address?: _.Bech32 | null
|
|
280
374
|
utxoData_dataHash?: _.Blake2b256 | null
|
|
281
375
|
utxoData_inlineDatum?: string | null
|
|
282
376
|
utxoData_referenceScriptHash?: _.Blake2b256 | null
|
|
377
|
+
spentTxHash?: _.Blake2b256 | null
|
|
378
|
+
spentOutputIndex?: number | null
|
|
283
379
|
isCollateral?: boolean | null
|
|
284
380
|
isReference?: boolean | null
|
|
285
381
|
assets?: __.Composition.of.many<TransactionInputAssets>
|
|
@@ -300,8 +396,8 @@ export class TransactionInputs extends Array<TransactionInput> {
|
|
|
300
396
|
// entity 'TransactionOutput'
|
|
301
397
|
export declare function _TransactionOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
302
398
|
new (...args: any[]): {
|
|
303
|
-
|
|
304
|
-
|
|
399
|
+
txSeq?: __.Key<number>
|
|
400
|
+
tx?: __.Association.to<Transaction> | null
|
|
305
401
|
outputIndex?: __.Key<number>
|
|
306
402
|
address?: __.Association.to<Address> | null
|
|
307
403
|
address_address?: _.Bech32 | null
|
|
@@ -327,8 +423,8 @@ export class TransactionOutputs extends Array<TransactionOutput> {
|
|
|
327
423
|
export declare function _TransactionInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
328
424
|
new (...args: any[]): {
|
|
329
425
|
input?: __.Key<__.Association.to<TransactionInput>>
|
|
426
|
+
input_txSeq?: __.Key<number>
|
|
330
427
|
input_inputIndex?: __.Key<number>
|
|
331
|
-
input_tx_hash?: __.Key<_.Blake2b256>
|
|
332
428
|
unit?: __.Key<_.AssetUnit>
|
|
333
429
|
asset_quantity?: _.Lovelace | null
|
|
334
430
|
asset_policyId?: _.Blake2b224 | null
|
|
@@ -351,8 +447,8 @@ export class TransactionInputAssets extends Array<TransactionInputAsset> {
|
|
|
351
447
|
export declare function _TransactionOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
352
448
|
new (...args: any[]): {
|
|
353
449
|
output?: __.Key<__.Association.to<TransactionOutput>>
|
|
450
|
+
output_txSeq?: __.Key<number>
|
|
354
451
|
output_outputIndex?: __.Key<number>
|
|
355
|
-
output_tx_hash?: __.Key<_.Blake2b256>
|
|
356
452
|
unit?: __.Key<_.AssetUnit>
|
|
357
453
|
asset_quantity?: _.Lovelace | null
|
|
358
454
|
asset_policyId?: _.Blake2b224 | null
|
|
@@ -371,6 +467,198 @@ export class TransactionOutputAssets extends Array<TransactionOutputAsset> {
|
|
|
371
467
|
$count?: number
|
|
372
468
|
}
|
|
373
469
|
|
|
470
|
+
// entity 'TransactionCertificate'
|
|
471
|
+
export declare function _TransactionCertificateAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
472
|
+
new (...args: any[]): {
|
|
473
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
474
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
475
|
+
certIndex?: __.Key<number>
|
|
476
|
+
kind?: __.Key<string>
|
|
477
|
+
stakeAddress?: _.Bech32 | null
|
|
478
|
+
poolId?: _.Bech32 | null
|
|
479
|
+
drepId?: _.Bech32 | null
|
|
480
|
+
deposit?: _.Lovelace | null
|
|
481
|
+
epoch?: number | null
|
|
482
|
+
} & InstanceType<TBase>
|
|
483
|
+
readonly kind: 'entity';
|
|
484
|
+
readonly keys: __.KeysOf<TransactionCertificate>;
|
|
485
|
+
readonly elements: __.ElementsOf<TransactionCertificate>;
|
|
486
|
+
readonly actions: globalThis.Record<never, never>;
|
|
487
|
+
};
|
|
488
|
+
export class TransactionCertificate extends _TransactionCertificateAspect(__.Entity) {
|
|
489
|
+
}
|
|
490
|
+
export class TransactionCertificates extends Array<TransactionCertificate> {
|
|
491
|
+
$count?: number
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
// entity 'TransactionWithdrawal'
|
|
495
|
+
export declare function _TransactionWithdrawalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
496
|
+
new (...args: any[]): {
|
|
497
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
498
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
499
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
500
|
+
lovelace?: _.Lovelace | null
|
|
501
|
+
} & InstanceType<TBase>
|
|
502
|
+
readonly kind: 'entity';
|
|
503
|
+
readonly keys: __.KeysOf<TransactionWithdrawal>;
|
|
504
|
+
readonly elements: __.ElementsOf<TransactionWithdrawal>;
|
|
505
|
+
readonly actions: globalThis.Record<never, never>;
|
|
506
|
+
};
|
|
507
|
+
export class TransactionWithdrawal extends _TransactionWithdrawalAspect(__.Entity) {
|
|
508
|
+
}
|
|
509
|
+
export class TransactionWithdrawals extends Array<TransactionWithdrawal> {
|
|
510
|
+
$count?: number
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
// entity 'TransactionRedeemer'
|
|
514
|
+
export declare function _TransactionRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
515
|
+
new (...args: any[]): {
|
|
516
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
517
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
518
|
+
purpose?: __.Key<string>
|
|
519
|
+
redeemerIndex?: __.Key<number>
|
|
520
|
+
data?: string | null
|
|
521
|
+
mem?: number | null
|
|
522
|
+
steps?: number | null
|
|
523
|
+
spentTxHash?: _.Blake2b256 | null
|
|
524
|
+
spentOutputIndex?: number | null
|
|
525
|
+
policyId?: _.Blake2b224 | null
|
|
526
|
+
} & InstanceType<TBase>
|
|
527
|
+
readonly kind: 'entity';
|
|
528
|
+
readonly keys: __.KeysOf<TransactionRedeemer>;
|
|
529
|
+
readonly elements: __.ElementsOf<TransactionRedeemer>;
|
|
530
|
+
readonly actions: globalThis.Record<never, never>;
|
|
531
|
+
};
|
|
532
|
+
export class TransactionRedeemer extends _TransactionRedeemerAspect(__.Entity) {
|
|
533
|
+
}
|
|
534
|
+
export class TransactionRedeemers extends Array<TransactionRedeemer> {
|
|
535
|
+
$count?: number
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
// entity 'LedgerUTxO'
|
|
539
|
+
export declare function _LedgerUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
540
|
+
new (...args: any[]): {
|
|
541
|
+
txHash?: __.Key<_.Blake2b256>
|
|
542
|
+
outputIndex?: __.Key<number>
|
|
543
|
+
address?: _.Bech32 | null
|
|
544
|
+
stakeAddress?: _.Bech32 | null
|
|
545
|
+
addressType?: string | null
|
|
546
|
+
isScript?: boolean | null
|
|
547
|
+
lovelace?: _.Lovelace | null
|
|
548
|
+
createdSlot?: number | null
|
|
549
|
+
spentTxHash?: _.Blake2b256 | null
|
|
550
|
+
spentSlot?: number | null
|
|
551
|
+
utxo_dataHash?: _.Blake2b256 | null
|
|
552
|
+
utxo_inlineDatum?: string | null
|
|
553
|
+
utxo_referenceScriptHash?: _.Blake2b256 | null
|
|
554
|
+
hasAssets?: boolean | null
|
|
555
|
+
assets?: __.Composition.of.many<LedgerUTxOAssets>
|
|
556
|
+
} & InstanceType<TBase>
|
|
557
|
+
readonly kind: 'entity';
|
|
558
|
+
readonly keys: __.KeysOf<LedgerUTxO>;
|
|
559
|
+
readonly elements: __.ElementsOf<LedgerUTxO>;
|
|
560
|
+
readonly actions: globalThis.Record<never, never>;
|
|
561
|
+
};
|
|
562
|
+
export class LedgerUTxO extends _LedgerUTxOAspect(__.Entity) {
|
|
563
|
+
}
|
|
564
|
+
export class LedgerUTxOs extends Array<LedgerUTxO> {
|
|
565
|
+
$count?: number
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// entity 'LedgerUTxOAsset'
|
|
569
|
+
export declare function _LedgerUTxOAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
570
|
+
new (...args: any[]): {
|
|
571
|
+
utxo?: __.Key<__.Association.to<LedgerUTxO>>
|
|
572
|
+
utxo_txHash?: __.Key<_.Blake2b256>
|
|
573
|
+
utxo_outputIndex?: __.Key<number>
|
|
574
|
+
unit?: __.Key<_.AssetUnit>
|
|
575
|
+
asset_quantity?: _.Lovelace | null
|
|
576
|
+
asset_policyId?: _.Blake2b224 | null
|
|
577
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
578
|
+
asset_assetName?: string | null
|
|
579
|
+
asset_fingerprint?: string | null
|
|
580
|
+
} & InstanceType<TBase>
|
|
581
|
+
readonly kind: 'entity';
|
|
582
|
+
readonly keys: __.KeysOf<LedgerUTxOAsset>;
|
|
583
|
+
readonly elements: __.ElementsOf<LedgerUTxOAsset>;
|
|
584
|
+
readonly actions: globalThis.Record<never, never>;
|
|
585
|
+
};
|
|
586
|
+
export class LedgerUTxOAsset extends _LedgerUTxOAssetAspect(__.Entity) {
|
|
587
|
+
}
|
|
588
|
+
export class LedgerUTxOAssets extends Array<LedgerUTxOAsset> {
|
|
589
|
+
$count?: number
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
// entity 'LedgerAddress'
|
|
593
|
+
export declare function _LedgerAddressAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
594
|
+
new (...args: any[]): {
|
|
595
|
+
address?: __.Key<_.Bech32>
|
|
596
|
+
stakeAddress?: _.Bech32 | null
|
|
597
|
+
paymentCredential?: string | null
|
|
598
|
+
addressType?: string | null
|
|
599
|
+
isScript?: boolean | null
|
|
600
|
+
totalLovelace?: _.Lovelace | null
|
|
601
|
+
utxoCount?: number | null
|
|
602
|
+
firstSeenSlot?: number | null
|
|
603
|
+
lastActiveSlot?: number | null
|
|
604
|
+
assets?: __.Composition.of.many<LedgerAddressAssets>
|
|
605
|
+
utxos?: __.Association.to.many<LedgerUTxOs>
|
|
606
|
+
} & InstanceType<TBase>
|
|
607
|
+
readonly kind: 'entity';
|
|
608
|
+
readonly keys: __.KeysOf<LedgerAddress>;
|
|
609
|
+
readonly elements: __.ElementsOf<LedgerAddress>;
|
|
610
|
+
readonly actions: globalThis.Record<never, never>;
|
|
611
|
+
};
|
|
612
|
+
export class LedgerAddress extends _LedgerAddressAspect(__.Entity) {
|
|
613
|
+
}
|
|
614
|
+
export class LedgerAddresses extends Array<LedgerAddress> {
|
|
615
|
+
$count?: number
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
// entity 'LedgerAddressAsset'
|
|
619
|
+
export declare function _LedgerAddressAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
620
|
+
new (...args: any[]): {
|
|
621
|
+
address?: __.Key<__.Association.to<LedgerAddress>>
|
|
622
|
+
address_address?: __.Key<_.Bech32>
|
|
623
|
+
unit?: __.Key<_.AssetUnit>
|
|
624
|
+
asset_quantity?: _.AssetAmount | null
|
|
625
|
+
asset_policyId?: _.Blake2b224 | null
|
|
626
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
627
|
+
asset_assetName?: string | null
|
|
628
|
+
asset_fingerprint?: string | null
|
|
629
|
+
} & InstanceType<TBase>
|
|
630
|
+
readonly kind: 'entity';
|
|
631
|
+
readonly keys: __.KeysOf<LedgerAddressAsset>;
|
|
632
|
+
readonly elements: __.ElementsOf<LedgerAddressAsset>;
|
|
633
|
+
readonly actions: globalThis.Record<never, never>;
|
|
634
|
+
};
|
|
635
|
+
export class LedgerAddressAsset extends _LedgerAddressAssetAspect(__.Entity) {
|
|
636
|
+
}
|
|
637
|
+
export class LedgerAddressAssets extends Array<LedgerAddressAsset> {
|
|
638
|
+
$count?: number
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
// entity 'LedgerAccount'
|
|
642
|
+
export declare function _LedgerAccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
643
|
+
new (...args: any[]): {
|
|
644
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
645
|
+
controlledAmount?: _.Lovelace | null
|
|
646
|
+
addressCount?: number | null
|
|
647
|
+
utxoCount?: number | null
|
|
648
|
+
lastActiveSlot?: number | null
|
|
649
|
+
addresses?: __.Association.to.many<LedgerAddresses>
|
|
650
|
+
} & InstanceType<TBase>
|
|
651
|
+
readonly kind: 'entity';
|
|
652
|
+
readonly keys: __.KeysOf<LedgerAccount>;
|
|
653
|
+
readonly elements: __.ElementsOf<LedgerAccount>;
|
|
654
|
+
readonly actions: globalThis.Record<never, never>;
|
|
655
|
+
};
|
|
656
|
+
export class LedgerAccount extends _LedgerAccountAspect(__.Entity) {
|
|
657
|
+
}
|
|
658
|
+
export class LedgerAccounts extends Array<LedgerAccount> {
|
|
659
|
+
$count?: number
|
|
660
|
+
}
|
|
661
|
+
|
|
374
662
|
// entity 'Account'
|
|
375
663
|
export declare function _AccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
376
664
|
new (...args: any[]): {
|
|
@@ -440,7 +728,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
|
|
|
440
728
|
address?: __.Key<__.Association.to<Address>>
|
|
441
729
|
address_address?: __.Key<_.Bech32>
|
|
442
730
|
unit?: __.Key<_.AssetUnit>
|
|
443
|
-
asset_quantity?: _.
|
|
731
|
+
asset_quantity?: _.AssetAmount | null
|
|
444
732
|
asset_policyId?: _.Blake2b224 | null
|
|
445
733
|
asset_assetNameHex?: _.HexBytes | null
|
|
446
734
|
asset_assetName?: string | null
|
|
@@ -696,6 +984,16 @@ export declare const GetTransactionByHash: {
|
|
|
696
984
|
kind: 'action'
|
|
697
985
|
}
|
|
698
986
|
|
|
987
|
+
export declare const GetTransactionConfirmations: {
|
|
988
|
+
// positional
|
|
989
|
+
(txHash: _.Blake2b256 | null): globalThis.Promise<_.TransactionConfirmations | null> | _.TransactionConfirmations | null
|
|
990
|
+
// named
|
|
991
|
+
({txHash}: {txHash?: _.Blake2b256 | null}): globalThis.Promise<_.TransactionConfirmations | null> | _.TransactionConfirmations | null
|
|
992
|
+
// metadata (do not use)
|
|
993
|
+
__parameters: {txHash?: _.Blake2b256 | null}, __returns: globalThis.Promise<_.TransactionConfirmations | null> | _.TransactionConfirmations | null, __self: never
|
|
994
|
+
kind: 'action'
|
|
995
|
+
}
|
|
996
|
+
|
|
699
997
|
export declare const GetMetadataByTxHash: {
|
|
700
998
|
// positional
|
|
701
999
|
(txHash: _.Blake2b256 | null): globalThis.Promise<Array<TransactionMetadata>> | Array<TransactionMetadata>
|
|
@@ -19,6 +19,15 @@ 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 }})
|
|
28
|
+
// EpochLedgerSnapshots
|
|
29
|
+
module.exports.EpochLedgerSnapshot = createEntityProxy(['CardanoODataService', 'EpochLedgerSnapshots'], { target: { is_singular: true } })
|
|
30
|
+
module.exports.EpochLedgerSnapshots = createEntityProxy(['CardanoODataService', 'EpochLedgerSnapshots'], { target: { is_singular: false }})
|
|
22
31
|
// Assets
|
|
23
32
|
module.exports.Asset = createEntityProxy(['CardanoODataService', 'Assets'], { target: { is_singular: true } })
|
|
24
33
|
module.exports.Assets = createEntityProxy(['CardanoODataService', 'Assets'], { target: { is_singular: false }})
|
|
@@ -40,6 +49,30 @@ module.exports.TransactionInputAssets = createEntityProxy(['CardanoODataService'
|
|
|
40
49
|
// TransactionOutputAssets
|
|
41
50
|
module.exports.TransactionOutputAsset = createEntityProxy(['CardanoODataService', 'TransactionOutputAssets'], { target: { is_singular: true } })
|
|
42
51
|
module.exports.TransactionOutputAssets = createEntityProxy(['CardanoODataService', 'TransactionOutputAssets'], { target: { is_singular: false }})
|
|
52
|
+
// TransactionCertificates
|
|
53
|
+
module.exports.TransactionCertificate = createEntityProxy(['CardanoODataService', 'TransactionCertificates'], { target: { is_singular: true } })
|
|
54
|
+
module.exports.TransactionCertificates = createEntityProxy(['CardanoODataService', 'TransactionCertificates'], { target: { is_singular: false }})
|
|
55
|
+
// TransactionWithdrawals
|
|
56
|
+
module.exports.TransactionWithdrawal = createEntityProxy(['CardanoODataService', 'TransactionWithdrawals'], { target: { is_singular: true } })
|
|
57
|
+
module.exports.TransactionWithdrawals = createEntityProxy(['CardanoODataService', 'TransactionWithdrawals'], { target: { is_singular: false }})
|
|
58
|
+
// TransactionRedeemers
|
|
59
|
+
module.exports.TransactionRedeemer = createEntityProxy(['CardanoODataService', 'TransactionRedeemers'], { target: { is_singular: true } })
|
|
60
|
+
module.exports.TransactionRedeemers = createEntityProxy(['CardanoODataService', 'TransactionRedeemers'], { target: { is_singular: false }})
|
|
61
|
+
// LedgerUTxOs
|
|
62
|
+
module.exports.LedgerUTxO = createEntityProxy(['CardanoODataService', 'LedgerUTxOs'], { target: { is_singular: true } })
|
|
63
|
+
module.exports.LedgerUTxOs = createEntityProxy(['CardanoODataService', 'LedgerUTxOs'], { target: { is_singular: false }})
|
|
64
|
+
// LedgerUTxOAssets
|
|
65
|
+
module.exports.LedgerUTxOAsset = createEntityProxy(['CardanoODataService', 'LedgerUTxOAssets'], { target: { is_singular: true } })
|
|
66
|
+
module.exports.LedgerUTxOAssets = createEntityProxy(['CardanoODataService', 'LedgerUTxOAssets'], { target: { is_singular: false }})
|
|
67
|
+
// LedgerAddresses
|
|
68
|
+
module.exports.LedgerAddress = createEntityProxy(['CardanoODataService', 'LedgerAddresses'], { target: { is_singular: true } })
|
|
69
|
+
module.exports.LedgerAddresses = createEntityProxy(['CardanoODataService', 'LedgerAddresses'], { target: { is_singular: false }})
|
|
70
|
+
// LedgerAddressAssets
|
|
71
|
+
module.exports.LedgerAddressAsset = createEntityProxy(['CardanoODataService', 'LedgerAddressAssets'], { target: { is_singular: true } })
|
|
72
|
+
module.exports.LedgerAddressAssets = createEntityProxy(['CardanoODataService', 'LedgerAddressAssets'], { target: { is_singular: false }})
|
|
73
|
+
// LedgerAccounts
|
|
74
|
+
module.exports.LedgerAccount = createEntityProxy(['CardanoODataService', 'LedgerAccounts'], { target: { is_singular: true } })
|
|
75
|
+
module.exports.LedgerAccounts = createEntityProxy(['CardanoODataService', 'LedgerAccounts'], { target: { is_singular: false }})
|
|
43
76
|
// Accounts
|
|
44
77
|
module.exports.Account = createEntityProxy(['CardanoODataService', 'Accounts'], { target: { is_singular: true } })
|
|
45
78
|
module.exports.Accounts = createEntityProxy(['CardanoODataService', 'Accounts'], { target: { is_singular: false }})
|
|
@@ -75,6 +108,7 @@ module.exports.GetAssetInfo = 'GetAssetInfo'
|
|
|
75
108
|
module.exports.GetAssetHistory = 'GetAssetHistory'
|
|
76
109
|
module.exports.GetAccountByStakeAddress = 'GetAccountByStakeAddress'
|
|
77
110
|
module.exports.GetTransactionByHash = 'GetTransactionByHash'
|
|
111
|
+
module.exports.GetTransactionConfirmations = 'GetTransactionConfirmations'
|
|
78
112
|
module.exports.GetMetadataByTxHash = 'GetMetadataByTxHash'
|
|
79
113
|
module.exports.GetAddressByBech32 = 'GetAddressByBech32'
|
|
80
114
|
module.exports.GetUTxOsByAddress = 'GetUTxOsByAddress'
|
|
@@ -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;
|
|
@@ -89,6 +92,7 @@ export declare function _TransactionBuildAspect<TBase extends new (...args: any[
|
|
|
89
92
|
createdAt?: number | null
|
|
90
93
|
inputs?: __.Composition.of.many<TransactionBuildInputs>
|
|
91
94
|
outputs?: __.Composition.of.many<TransactionBuildOutputs>
|
|
95
|
+
redeemers?: __.Composition.of.many<TransactionBuildRedeemers>
|
|
92
96
|
submission?: __.Association.to<TransactionSubmission> | null
|
|
93
97
|
hasInputs?: boolean | null
|
|
94
98
|
hasOutputs?: boolean | null
|
|
@@ -251,6 +255,27 @@ export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {
|
|
|
251
255
|
$count?: number
|
|
252
256
|
}
|
|
253
257
|
|
|
258
|
+
// entity 'TransactionBuildRedeemer'
|
|
259
|
+
export declare function _TransactionBuildRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
260
|
+
new (...args: any[]): {
|
|
261
|
+
build?: __.Key<__.Association.to<TransactionBuild>>
|
|
262
|
+
build_id?: __.Key<string>
|
|
263
|
+
tag?: __.Key<string>
|
|
264
|
+
redeemerIndex?: __.Key<number>
|
|
265
|
+
mem?: number | null
|
|
266
|
+
steps?: number | null
|
|
267
|
+
} & InstanceType<TBase>
|
|
268
|
+
readonly kind: 'entity';
|
|
269
|
+
readonly keys: __.KeysOf<TransactionBuildRedeemer>;
|
|
270
|
+
readonly elements: __.ElementsOf<TransactionBuildRedeemer>;
|
|
271
|
+
readonly actions: globalThis.Record<never, never>;
|
|
272
|
+
};
|
|
273
|
+
export class TransactionBuildRedeemer extends _TransactionBuildRedeemerAspect(__.Entity) {
|
|
274
|
+
}
|
|
275
|
+
export class TransactionBuildRedeemers extends Array<TransactionBuildRedeemer> {
|
|
276
|
+
$count?: number
|
|
277
|
+
}
|
|
278
|
+
|
|
254
279
|
// entity 'TransactionSubmissionError'
|
|
255
280
|
export declare function _TransactionSubmissionErrorAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
256
281
|
new (...args: any[]): {
|
|
@@ -306,7 +331,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
|
|
|
306
331
|
address?: __.Key<__.Association.to<Address>>
|
|
307
332
|
address_address?: __.Key<_.Bech32>
|
|
308
333
|
unit?: __.Key<_.AssetUnit>
|
|
309
|
-
asset_quantity?: _.
|
|
334
|
+
asset_quantity?: _.AssetAmount | null
|
|
310
335
|
asset_policyId?: _.Blake2b224 | null
|
|
311
336
|
asset_assetNameHex?: _.HexBytes | null
|
|
312
337
|
asset_assetName?: string | null
|
|
@@ -28,6 +28,9 @@ module.exports.TransactionBuildInputs = createEntityProxy(['CardanoSignService',
|
|
|
28
28
|
// TransactionBuildOutputs
|
|
29
29
|
module.exports.TransactionBuildOutput = createEntityProxy(['CardanoSignService', 'TransactionBuildOutputs'], { target: { is_singular: true } })
|
|
30
30
|
module.exports.TransactionBuildOutputs = createEntityProxy(['CardanoSignService', 'TransactionBuildOutputs'], { target: { is_singular: false }})
|
|
31
|
+
// TransactionBuildRedeemers
|
|
32
|
+
module.exports.TransactionBuildRedeemer = createEntityProxy(['CardanoSignService', 'TransactionBuildRedeemers'], { target: { is_singular: true } })
|
|
33
|
+
module.exports.TransactionBuildRedeemers = createEntityProxy(['CardanoSignService', 'TransactionBuildRedeemers'], { target: { is_singular: false }})
|
|
31
34
|
// TransactionSubmissionErrors
|
|
32
35
|
module.exports.TransactionSubmissionError = createEntityProxy(['CardanoSignService', 'TransactionSubmissionErrors'], { target: { is_singular: true } })
|
|
33
36
|
module.exports.TransactionSubmissionErrors = createEntityProxy(['CardanoSignService', 'TransactionSubmissionErrors'], { target: { is_singular: false }})
|