@odatano/core 2.0.0-rc.3 → 2.0.0-rc.30
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 +294 -7
- package/@cds-models/CardanoODataService/index.js +33 -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 +52 -19
- package/@cds-models/CardanoTransactionService/index.js +4 -0
- package/@cds-models/index.d.ts +18 -0
- package/@cds-models/index.js +3 -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 +677 -13
- package/db/types.cds +27 -0
- package/package.json +182 -173
- package/scripts/migrate-slot-leader.mjs +104 -0
- package/scripts/migrate-txseq.mjs +147 -0
- package/src/index.d.ts +11 -10
- package/src/index.js +28 -14
- package/src/plugin.js +39 -52
- package/srv/blockchain/backends/blockfrost-backend.d.ts +29 -131
- package/srv/blockchain/backends/blockfrost-backend.js +49 -160
- 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 +356 -217
- 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 +548 -197
- 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 +78 -205
- package/srv/blockchain/cardano-client.js +186 -242
- package/srv/blockchain/cardano-indexer.d.ts +302 -242
- package/srv/blockchain/cardano-indexer.js +1191 -362
- package/srv/blockchain/cardano-tx-builder.d.ts +43 -81
- package/srv/blockchain/cardano-tx-builder.js +177 -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 +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 -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 +108 -160
- package/srv/blockchain/transaction-building/buildooor-tx.js +620 -285
- package/srv/blockchain/transaction-building/caller-datums.d.ts +17 -0
- package/srv/blockchain/transaction-building/caller-datums.js +50 -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 +48 -24
- 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 +56 -1
- package/srv/cardano-service.js +52 -113
- package/srv/cardano-sign-service.cds +200 -180
- package/srv/cardano-sign-service.js +55 -173
- package/srv/cardano-tx-service.cds +439 -364
- package/srv/cardano-tx-service.js +305 -209
- package/srv/cardano-ui.cds +16 -16
- package/srv/cardano-worker-service.js +7 -15
- package/srv/cbor/parse.js +13 -1
- package/srv/server.d.ts +28 -86
- package/srv/server.js +127 -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 +13 -0
- package/srv/utils/epoch-slots.js +25 -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/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 +3 -18
- package/srv/utils/signing-helper.js +10 -32
- package/srv/utils/tx-build-helper.d.ts +26 -92
- package/srv/utils/tx-build-helper.js +68 -123
- package/srv/utils/tx-request-parsers.d.ts +107 -21
- package/srv/utils/tx-request-parsers.js +433 -34
- package/srv/utils/tx-utils.d.ts +4 -23
- package/srv/utils/tx-utils.js +12 -41
- package/srv/utils/types.d.ts +238 -169
- package/srv/utils/types.js +2 -6
- package/srv/utils/validators.d.ts +24 -90
- package/srv/utils/validators.js +50 -147
|
@@ -185,6 +185,96 @@ 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
|
+
snapshotHash?: _.Blake2b256 | null
|
|
196
|
+
source?: string | null
|
|
197
|
+
blocksMinted?: number | null
|
|
198
|
+
blocksEpoch?: number | null
|
|
199
|
+
liveStake?: _.Lovelace | null
|
|
200
|
+
liveSize?: (number | string) | null
|
|
201
|
+
liveSaturation?: (number | string) | null
|
|
202
|
+
liveDelegators?: number | null
|
|
203
|
+
activeStake?: _.Lovelace | null
|
|
204
|
+
activeSize?: (number | string) | null
|
|
205
|
+
pledge?: _.Lovelace | null
|
|
206
|
+
margin?: (number | string) | null
|
|
207
|
+
fixedCost?: _.Lovelace | null
|
|
208
|
+
} & InstanceType<TBase>
|
|
209
|
+
readonly kind: 'entity';
|
|
210
|
+
readonly keys: __.KeysOf<PoolEpochSnapshot>;
|
|
211
|
+
readonly elements: __.ElementsOf<PoolEpochSnapshot>;
|
|
212
|
+
readonly actions: globalThis.Record<never, never>;
|
|
213
|
+
};
|
|
214
|
+
export class PoolEpochSnapshot extends _PoolEpochSnapshotAspect(__.Entity) {
|
|
215
|
+
}
|
|
216
|
+
export class PoolEpochSnapshots extends Array<PoolEpochSnapshot> {
|
|
217
|
+
$count?: number
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// entity 'DrepEpochSnapshot'
|
|
221
|
+
export declare function _DrepEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
222
|
+
new (...args: any[]): {
|
|
223
|
+
drepId?: __.Key<_.Bech32>
|
|
224
|
+
epoch?: __.Key<number>
|
|
225
|
+
snapshotSlot?: number | null
|
|
226
|
+
snapshotTime?: number | null
|
|
227
|
+
snapshotHash?: _.Blake2b256 | null
|
|
228
|
+
source?: string | null
|
|
229
|
+
deposit?: _.Lovelace | null
|
|
230
|
+
expiresEpoch?: number | null
|
|
231
|
+
delegatorCount?: number | null
|
|
232
|
+
amount?: _.Lovelace | null
|
|
233
|
+
hasScript?: boolean | null
|
|
234
|
+
lastActiveEpoch?: number | null
|
|
235
|
+
retired?: boolean | null
|
|
236
|
+
expired?: boolean | null
|
|
237
|
+
} & InstanceType<TBase>
|
|
238
|
+
readonly kind: 'entity';
|
|
239
|
+
readonly keys: __.KeysOf<DrepEpochSnapshot>;
|
|
240
|
+
readonly elements: __.ElementsOf<DrepEpochSnapshot>;
|
|
241
|
+
readonly actions: globalThis.Record<never, never>;
|
|
242
|
+
};
|
|
243
|
+
export class DrepEpochSnapshot extends _DrepEpochSnapshotAspect(__.Entity) {
|
|
244
|
+
}
|
|
245
|
+
export class DrepEpochSnapshots extends Array<DrepEpochSnapshot> {
|
|
246
|
+
$count?: number
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// entity 'EpochLedgerSnapshot'
|
|
250
|
+
export declare function _EpochLedgerSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
251
|
+
new (...args: any[]): {
|
|
252
|
+
epoch?: __.Key<number>
|
|
253
|
+
snapshotSlot?: number | null
|
|
254
|
+
snapshotTime?: number | null
|
|
255
|
+
snapshotHash?: _.Blake2b256 | null
|
|
256
|
+
source?: string | null
|
|
257
|
+
treasury?: _.Lovelace | null
|
|
258
|
+
reserves?: _.Lovelace | null
|
|
259
|
+
totalSupply?: _.Lovelace | null
|
|
260
|
+
liveStake?: _.Lovelace | null
|
|
261
|
+
activeStake?: _.Lovelace | null
|
|
262
|
+
poolCount?: number | null
|
|
263
|
+
drepCount?: number | null
|
|
264
|
+
drepAbstainStake?: _.Lovelace | null
|
|
265
|
+
drepNoConfidenceStake?: _.Lovelace | null
|
|
266
|
+
} & InstanceType<TBase>
|
|
267
|
+
readonly kind: 'entity';
|
|
268
|
+
readonly keys: __.KeysOf<EpochLedgerSnapshot>;
|
|
269
|
+
readonly elements: __.ElementsOf<EpochLedgerSnapshot>;
|
|
270
|
+
readonly actions: globalThis.Record<never, never>;
|
|
271
|
+
};
|
|
272
|
+
export class EpochLedgerSnapshot extends _EpochLedgerSnapshotAspect(__.Entity) {
|
|
273
|
+
}
|
|
274
|
+
export class EpochLedgerSnapshots extends Array<EpochLedgerSnapshot> {
|
|
275
|
+
$count?: number
|
|
276
|
+
}
|
|
277
|
+
|
|
188
278
|
// entity 'Asset'
|
|
189
279
|
export declare function _AssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
190
280
|
new (...args: any[]): {
|
|
@@ -243,6 +333,7 @@ export class AssetHistory_ extends Array<AssetHistory> {
|
|
|
243
333
|
export declare function _TransactionAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
244
334
|
new (...args: any[]): {
|
|
245
335
|
hash?: __.Key<_.Blake2b256>
|
|
336
|
+
txSeq?: number | null
|
|
246
337
|
blockHash?: _.Blake2b256 | null
|
|
247
338
|
blockHeight?: number | null
|
|
248
339
|
blockTime?: number | null
|
|
@@ -254,6 +345,8 @@ export declare function _TransactionAspect<TBase extends new (...args: any[]) =>
|
|
|
254
345
|
metadata?: __.Composition.of.many<TransactionMetadata_>
|
|
255
346
|
inputs?: __.Composition.of.many<TransactionInputs>
|
|
256
347
|
outputs?: __.Composition.of.many<TransactionOutputs>
|
|
348
|
+
certificates?: __.Composition.of.many<TransactionCertificates>
|
|
349
|
+
withdrawals?: __.Composition.of.many<TransactionWithdrawals>
|
|
257
350
|
hasMetadata?: boolean | null
|
|
258
351
|
hasInputs?: boolean | null
|
|
259
352
|
hasOutputs?: boolean | null
|
|
@@ -272,14 +365,16 @@ export class Transactions extends Array<Transaction> {
|
|
|
272
365
|
// entity 'TransactionInput'
|
|
273
366
|
export declare function _TransactionInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
274
367
|
new (...args: any[]): {
|
|
275
|
-
|
|
276
|
-
|
|
368
|
+
txSeq?: __.Key<number>
|
|
369
|
+
tx?: __.Association.to<Transaction> | null
|
|
277
370
|
inputIndex?: __.Key<number>
|
|
278
371
|
address?: __.Association.to<Address> | null
|
|
279
372
|
address_address?: _.Bech32 | null
|
|
280
373
|
utxoData_dataHash?: _.Blake2b256 | null
|
|
281
374
|
utxoData_inlineDatum?: string | null
|
|
282
375
|
utxoData_referenceScriptHash?: _.Blake2b256 | null
|
|
376
|
+
spentTxHash?: _.Blake2b256 | null
|
|
377
|
+
spentOutputIndex?: number | null
|
|
283
378
|
isCollateral?: boolean | null
|
|
284
379
|
isReference?: boolean | null
|
|
285
380
|
assets?: __.Composition.of.many<TransactionInputAssets>
|
|
@@ -300,8 +395,8 @@ export class TransactionInputs extends Array<TransactionInput> {
|
|
|
300
395
|
// entity 'TransactionOutput'
|
|
301
396
|
export declare function _TransactionOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
302
397
|
new (...args: any[]): {
|
|
303
|
-
|
|
304
|
-
|
|
398
|
+
txSeq?: __.Key<number>
|
|
399
|
+
tx?: __.Association.to<Transaction> | null
|
|
305
400
|
outputIndex?: __.Key<number>
|
|
306
401
|
address?: __.Association.to<Address> | null
|
|
307
402
|
address_address?: _.Bech32 | null
|
|
@@ -327,8 +422,8 @@ export class TransactionOutputs extends Array<TransactionOutput> {
|
|
|
327
422
|
export declare function _TransactionInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
328
423
|
new (...args: any[]): {
|
|
329
424
|
input?: __.Key<__.Association.to<TransactionInput>>
|
|
425
|
+
input_txSeq?: __.Key<number>
|
|
330
426
|
input_inputIndex?: __.Key<number>
|
|
331
|
-
input_tx_hash?: __.Key<_.Blake2b256>
|
|
332
427
|
unit?: __.Key<_.AssetUnit>
|
|
333
428
|
asset_quantity?: _.Lovelace | null
|
|
334
429
|
asset_policyId?: _.Blake2b224 | null
|
|
@@ -351,8 +446,8 @@ export class TransactionInputAssets extends Array<TransactionInputAsset> {
|
|
|
351
446
|
export declare function _TransactionOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
352
447
|
new (...args: any[]): {
|
|
353
448
|
output?: __.Key<__.Association.to<TransactionOutput>>
|
|
449
|
+
output_txSeq?: __.Key<number>
|
|
354
450
|
output_outputIndex?: __.Key<number>
|
|
355
|
-
output_tx_hash?: __.Key<_.Blake2b256>
|
|
356
451
|
unit?: __.Key<_.AssetUnit>
|
|
357
452
|
asset_quantity?: _.Lovelace | null
|
|
358
453
|
asset_policyId?: _.Blake2b224 | null
|
|
@@ -371,6 +466,198 @@ export class TransactionOutputAssets extends Array<TransactionOutputAsset> {
|
|
|
371
466
|
$count?: number
|
|
372
467
|
}
|
|
373
468
|
|
|
469
|
+
// entity 'TransactionCertificate'
|
|
470
|
+
export declare function _TransactionCertificateAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
471
|
+
new (...args: any[]): {
|
|
472
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
473
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
474
|
+
certIndex?: __.Key<number>
|
|
475
|
+
kind?: __.Key<string>
|
|
476
|
+
stakeAddress?: _.Bech32 | null
|
|
477
|
+
poolId?: _.Bech32 | null
|
|
478
|
+
drepId?: _.Bech32 | null
|
|
479
|
+
deposit?: _.Lovelace | null
|
|
480
|
+
epoch?: number | null
|
|
481
|
+
} & InstanceType<TBase>
|
|
482
|
+
readonly kind: 'entity';
|
|
483
|
+
readonly keys: __.KeysOf<TransactionCertificate>;
|
|
484
|
+
readonly elements: __.ElementsOf<TransactionCertificate>;
|
|
485
|
+
readonly actions: globalThis.Record<never, never>;
|
|
486
|
+
};
|
|
487
|
+
export class TransactionCertificate extends _TransactionCertificateAspect(__.Entity) {
|
|
488
|
+
}
|
|
489
|
+
export class TransactionCertificates extends Array<TransactionCertificate> {
|
|
490
|
+
$count?: number
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// entity 'TransactionWithdrawal'
|
|
494
|
+
export declare function _TransactionWithdrawalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
495
|
+
new (...args: any[]): {
|
|
496
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
497
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
498
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
499
|
+
lovelace?: _.Lovelace | null
|
|
500
|
+
} & InstanceType<TBase>
|
|
501
|
+
readonly kind: 'entity';
|
|
502
|
+
readonly keys: __.KeysOf<TransactionWithdrawal>;
|
|
503
|
+
readonly elements: __.ElementsOf<TransactionWithdrawal>;
|
|
504
|
+
readonly actions: globalThis.Record<never, never>;
|
|
505
|
+
};
|
|
506
|
+
export class TransactionWithdrawal extends _TransactionWithdrawalAspect(__.Entity) {
|
|
507
|
+
}
|
|
508
|
+
export class TransactionWithdrawals extends Array<TransactionWithdrawal> {
|
|
509
|
+
$count?: number
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
// entity 'TransactionRedeemer'
|
|
513
|
+
export declare function _TransactionRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
514
|
+
new (...args: any[]): {
|
|
515
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
516
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
517
|
+
purpose?: __.Key<string>
|
|
518
|
+
redeemerIndex?: __.Key<number>
|
|
519
|
+
data?: string | null
|
|
520
|
+
mem?: number | null
|
|
521
|
+
steps?: number | null
|
|
522
|
+
spentTxHash?: _.Blake2b256 | null
|
|
523
|
+
spentOutputIndex?: number | null
|
|
524
|
+
policyId?: _.Blake2b224 | null
|
|
525
|
+
} & InstanceType<TBase>
|
|
526
|
+
readonly kind: 'entity';
|
|
527
|
+
readonly keys: __.KeysOf<TransactionRedeemer>;
|
|
528
|
+
readonly elements: __.ElementsOf<TransactionRedeemer>;
|
|
529
|
+
readonly actions: globalThis.Record<never, never>;
|
|
530
|
+
};
|
|
531
|
+
export class TransactionRedeemer extends _TransactionRedeemerAspect(__.Entity) {
|
|
532
|
+
}
|
|
533
|
+
export class TransactionRedeemers extends Array<TransactionRedeemer> {
|
|
534
|
+
$count?: number
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
// entity 'LedgerUTxO'
|
|
538
|
+
export declare function _LedgerUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
539
|
+
new (...args: any[]): {
|
|
540
|
+
txHash?: __.Key<_.Blake2b256>
|
|
541
|
+
outputIndex?: __.Key<number>
|
|
542
|
+
address?: _.Bech32 | null
|
|
543
|
+
stakeAddress?: _.Bech32 | null
|
|
544
|
+
addressType?: string | null
|
|
545
|
+
isScript?: boolean | null
|
|
546
|
+
lovelace?: _.Lovelace | null
|
|
547
|
+
createdSlot?: number | null
|
|
548
|
+
spentTxHash?: _.Blake2b256 | null
|
|
549
|
+
spentSlot?: number | null
|
|
550
|
+
utxo_dataHash?: _.Blake2b256 | null
|
|
551
|
+
utxo_inlineDatum?: string | null
|
|
552
|
+
utxo_referenceScriptHash?: _.Blake2b256 | null
|
|
553
|
+
hasAssets?: boolean | null
|
|
554
|
+
assets?: __.Composition.of.many<LedgerUTxOAssets>
|
|
555
|
+
} & InstanceType<TBase>
|
|
556
|
+
readonly kind: 'entity';
|
|
557
|
+
readonly keys: __.KeysOf<LedgerUTxO>;
|
|
558
|
+
readonly elements: __.ElementsOf<LedgerUTxO>;
|
|
559
|
+
readonly actions: globalThis.Record<never, never>;
|
|
560
|
+
};
|
|
561
|
+
export class LedgerUTxO extends _LedgerUTxOAspect(__.Entity) {
|
|
562
|
+
}
|
|
563
|
+
export class LedgerUTxOs extends Array<LedgerUTxO> {
|
|
564
|
+
$count?: number
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
// entity 'LedgerUTxOAsset'
|
|
568
|
+
export declare function _LedgerUTxOAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
569
|
+
new (...args: any[]): {
|
|
570
|
+
utxo?: __.Key<__.Association.to<LedgerUTxO>>
|
|
571
|
+
utxo_txHash?: __.Key<_.Blake2b256>
|
|
572
|
+
utxo_outputIndex?: __.Key<number>
|
|
573
|
+
unit?: __.Key<_.AssetUnit>
|
|
574
|
+
asset_quantity?: _.Lovelace | null
|
|
575
|
+
asset_policyId?: _.Blake2b224 | null
|
|
576
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
577
|
+
asset_assetName?: string | null
|
|
578
|
+
asset_fingerprint?: string | null
|
|
579
|
+
} & InstanceType<TBase>
|
|
580
|
+
readonly kind: 'entity';
|
|
581
|
+
readonly keys: __.KeysOf<LedgerUTxOAsset>;
|
|
582
|
+
readonly elements: __.ElementsOf<LedgerUTxOAsset>;
|
|
583
|
+
readonly actions: globalThis.Record<never, never>;
|
|
584
|
+
};
|
|
585
|
+
export class LedgerUTxOAsset extends _LedgerUTxOAssetAspect(__.Entity) {
|
|
586
|
+
}
|
|
587
|
+
export class LedgerUTxOAssets extends Array<LedgerUTxOAsset> {
|
|
588
|
+
$count?: number
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
// entity 'LedgerAddress'
|
|
592
|
+
export declare function _LedgerAddressAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
593
|
+
new (...args: any[]): {
|
|
594
|
+
address?: __.Key<_.Bech32>
|
|
595
|
+
stakeAddress?: _.Bech32 | null
|
|
596
|
+
paymentCredential?: string | null
|
|
597
|
+
addressType?: string | null
|
|
598
|
+
isScript?: boolean | null
|
|
599
|
+
totalLovelace?: _.Lovelace | null
|
|
600
|
+
utxoCount?: number | null
|
|
601
|
+
firstSeenSlot?: number | null
|
|
602
|
+
lastActiveSlot?: number | null
|
|
603
|
+
assets?: __.Composition.of.many<LedgerAddressAssets>
|
|
604
|
+
utxos?: __.Association.to.many<LedgerUTxOs>
|
|
605
|
+
} & InstanceType<TBase>
|
|
606
|
+
readonly kind: 'entity';
|
|
607
|
+
readonly keys: __.KeysOf<LedgerAddress>;
|
|
608
|
+
readonly elements: __.ElementsOf<LedgerAddress>;
|
|
609
|
+
readonly actions: globalThis.Record<never, never>;
|
|
610
|
+
};
|
|
611
|
+
export class LedgerAddress extends _LedgerAddressAspect(__.Entity) {
|
|
612
|
+
}
|
|
613
|
+
export class LedgerAddresses extends Array<LedgerAddress> {
|
|
614
|
+
$count?: number
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
// entity 'LedgerAddressAsset'
|
|
618
|
+
export declare function _LedgerAddressAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
619
|
+
new (...args: any[]): {
|
|
620
|
+
address?: __.Key<__.Association.to<LedgerAddress>>
|
|
621
|
+
address_address?: __.Key<_.Bech32>
|
|
622
|
+
unit?: __.Key<_.AssetUnit>
|
|
623
|
+
asset_quantity?: _.AssetAmount | null
|
|
624
|
+
asset_policyId?: _.Blake2b224 | null
|
|
625
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
626
|
+
asset_assetName?: string | null
|
|
627
|
+
asset_fingerprint?: string | null
|
|
628
|
+
} & InstanceType<TBase>
|
|
629
|
+
readonly kind: 'entity';
|
|
630
|
+
readonly keys: __.KeysOf<LedgerAddressAsset>;
|
|
631
|
+
readonly elements: __.ElementsOf<LedgerAddressAsset>;
|
|
632
|
+
readonly actions: globalThis.Record<never, never>;
|
|
633
|
+
};
|
|
634
|
+
export class LedgerAddressAsset extends _LedgerAddressAssetAspect(__.Entity) {
|
|
635
|
+
}
|
|
636
|
+
export class LedgerAddressAssets extends Array<LedgerAddressAsset> {
|
|
637
|
+
$count?: number
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
// entity 'LedgerAccount'
|
|
641
|
+
export declare function _LedgerAccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
642
|
+
new (...args: any[]): {
|
|
643
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
644
|
+
controlledAmount?: _.Lovelace | null
|
|
645
|
+
addressCount?: number | null
|
|
646
|
+
utxoCount?: number | null
|
|
647
|
+
lastActiveSlot?: number | null
|
|
648
|
+
addresses?: __.Association.to.many<LedgerAddresses>
|
|
649
|
+
} & InstanceType<TBase>
|
|
650
|
+
readonly kind: 'entity';
|
|
651
|
+
readonly keys: __.KeysOf<LedgerAccount>;
|
|
652
|
+
readonly elements: __.ElementsOf<LedgerAccount>;
|
|
653
|
+
readonly actions: globalThis.Record<never, never>;
|
|
654
|
+
};
|
|
655
|
+
export class LedgerAccount extends _LedgerAccountAspect(__.Entity) {
|
|
656
|
+
}
|
|
657
|
+
export class LedgerAccounts extends Array<LedgerAccount> {
|
|
658
|
+
$count?: number
|
|
659
|
+
}
|
|
660
|
+
|
|
374
661
|
// entity 'Account'
|
|
375
662
|
export declare function _AccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
376
663
|
new (...args: any[]): {
|
|
@@ -440,7 +727,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
|
|
|
440
727
|
address?: __.Key<__.Association.to<Address>>
|
|
441
728
|
address_address?: __.Key<_.Bech32>
|
|
442
729
|
unit?: __.Key<_.AssetUnit>
|
|
443
|
-
asset_quantity?: _.
|
|
730
|
+
asset_quantity?: _.AssetAmount | null
|
|
444
731
|
asset_policyId?: _.Blake2b224 | null
|
|
445
732
|
asset_assetNameHex?: _.HexBytes | null
|
|
446
733
|
asset_assetName?: string | null
|
|
@@ -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 }})
|
|
@@ -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 }})
|
|
@@ -22,6 +22,7 @@ export default class {
|
|
|
22
22
|
static readonly SubmitTransaction: typeof SubmitTransaction;
|
|
23
23
|
static readonly SubmitSignedTransaction: typeof SubmitSignedTransaction;
|
|
24
24
|
static readonly BuildPlutusSpendTransaction: typeof BuildPlutusSpendTransaction;
|
|
25
|
+
static readonly BuildPlutusTransaction: typeof BuildPlutusTransaction;
|
|
25
26
|
static readonly SetCollateral: typeof SetCollateral;
|
|
26
27
|
static readonly GetTransactionBuildsByAddress: typeof GetTransactionBuildsByAddress;
|
|
27
28
|
static readonly DeriveScriptAddress: typeof DeriveScriptAddress;
|
|
@@ -45,6 +46,7 @@ export declare function _TransactionBuildAspect<TBase extends new (...args: any[
|
|
|
45
46
|
createdAt?: number | null
|
|
46
47
|
inputs?: __.Composition.of.many<TransactionBuildInputs>
|
|
47
48
|
outputs?: __.Composition.of.many<TransactionBuildOutputs>
|
|
49
|
+
redeemers?: __.Composition.of.many<TransactionBuildRedeemers>
|
|
48
50
|
submission?: __.Association.to<TransactionSubmission> | null
|
|
49
51
|
hasInputs?: boolean | null
|
|
50
52
|
hasOutputs?: boolean | null
|
|
@@ -115,6 +117,27 @@ export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {
|
|
|
115
117
|
$count?: number
|
|
116
118
|
}
|
|
117
119
|
|
|
120
|
+
// entity 'TransactionBuildRedeemer'
|
|
121
|
+
export declare function _TransactionBuildRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
122
|
+
new (...args: any[]): {
|
|
123
|
+
build?: __.Key<__.Association.to<TransactionBuild>>
|
|
124
|
+
build_id?: __.Key<string>
|
|
125
|
+
tag?: __.Key<string>
|
|
126
|
+
redeemerIndex?: __.Key<number>
|
|
127
|
+
mem?: number | null
|
|
128
|
+
steps?: number | null
|
|
129
|
+
} & InstanceType<TBase>
|
|
130
|
+
readonly kind: 'entity';
|
|
131
|
+
readonly keys: __.KeysOf<TransactionBuildRedeemer>;
|
|
132
|
+
readonly elements: __.ElementsOf<TransactionBuildRedeemer>;
|
|
133
|
+
readonly actions: globalThis.Record<never, never>;
|
|
134
|
+
};
|
|
135
|
+
export class TransactionBuildRedeemer extends _TransactionBuildRedeemerAspect(__.Entity) {
|
|
136
|
+
}
|
|
137
|
+
export class TransactionBuildRedeemers extends Array<TransactionBuildRedeemer> {
|
|
138
|
+
$count?: number
|
|
139
|
+
}
|
|
140
|
+
|
|
118
141
|
// entity 'TransactionBuildInputAsset'
|
|
119
142
|
export declare function _TransactionBuildInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
120
143
|
new (...args: any[]): {
|
|
@@ -196,17 +219,17 @@ export declare function _TransactionSubmissionAspect<TBase extends new (...args:
|
|
|
196
219
|
};
|
|
197
220
|
/**
|
|
198
221
|
* TransactionSubmissions status flow:
|
|
199
|
-
* pending
|
|
200
|
-
* submitted
|
|
201
|
-
* pending | submitted
|
|
222
|
+
* pending -> [submit to chain] -> submitted (internal, in SubmitTransaction handler)
|
|
223
|
+
* submitted -> [CheckSubmissionStatus] confirmed | stays submitted (conditional)
|
|
224
|
+
* pending | submitted -> failed (blockchain error)
|
|
202
225
|
*/
|
|
203
226
|
export class TransactionSubmission extends _TransactionSubmissionAspect(__.Entity) {
|
|
204
227
|
}
|
|
205
228
|
/**
|
|
206
229
|
* TransactionSubmissions status flow:
|
|
207
|
-
* pending
|
|
208
|
-
* submitted
|
|
209
|
-
* pending | submitted
|
|
230
|
+
* pending -> [submit to chain] -> submitted (internal, in SubmitTransaction handler)
|
|
231
|
+
* submitted -> [CheckSubmissionStatus] confirmed | stays submitted (conditional)
|
|
232
|
+
* pending | submitted -> failed (blockchain error)
|
|
210
233
|
*/
|
|
211
234
|
export class TransactionSubmissions extends Array<TransactionSubmission> {
|
|
212
235
|
$count?: number
|
|
@@ -315,7 +338,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
|
|
|
315
338
|
address?: __.Key<__.Association.to<Address>>
|
|
316
339
|
address_address?: __.Key<_.Bech32>
|
|
317
340
|
unit?: __.Key<_.AssetUnit>
|
|
318
|
-
asset_quantity?: _.
|
|
341
|
+
asset_quantity?: _.AssetAmount | null
|
|
319
342
|
asset_policyId?: _.Blake2b224 | null
|
|
320
343
|
asset_assetNameHex?: _.HexBytes | null
|
|
321
344
|
asset_assetName?: string | null
|
|
@@ -390,11 +413,11 @@ export class UTxOAssets extends Array<UTxOAsset> {
|
|
|
390
413
|
|
|
391
414
|
export declare const BuildSimpleAdaTransaction: {
|
|
392
415
|
// positional
|
|
393
|
-
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, changeAddress: _.Bech32 | null, outputDatumJson: string | null, assetsJson: string | null, forceInputsJson: string | null, validatorScript: string | null, scriptParamsJson: string | null, lockOnScript: boolean | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
416
|
+
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, changeAddress: _.Bech32 | null, outputDatumJson: string | null, outputDatumCbor: string | null, ensureMinAda: boolean | null, assetsJson: string | null, forceInputsJson: string | null, protectInputsJson: string | null, validatorScript: string | null, scriptParamsJson: string | null, lockOnScript: boolean | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
394
417
|
// named
|
|
395
|
-
({senderAddress, recipientAddress, lovelaceAmount, changeAddress, outputDatumJson, assetsJson, forceInputsJson, validatorScript, scriptParamsJson, lockOnScript, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, assetsJson?: string | null, forceInputsJson?: string | null, validatorScript?: string | null, scriptParamsJson?: string | null, lockOnScript?: boolean | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
418
|
+
({senderAddress, recipientAddress, lovelaceAmount, changeAddress, outputDatumJson, outputDatumCbor, ensureMinAda, assetsJson, forceInputsJson, protectInputsJson, validatorScript, scriptParamsJson, lockOnScript, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, outputDatumCbor?: string | null, ensureMinAda?: boolean | null, assetsJson?: string | null, forceInputsJson?: string | null, protectInputsJson?: string | null, validatorScript?: string | null, scriptParamsJson?: string | null, lockOnScript?: boolean | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
396
419
|
// metadata (do not use)
|
|
397
|
-
__parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, assetsJson?: string | null, forceInputsJson?: string | null, validatorScript?: string | null, scriptParamsJson?: string | null, lockOnScript?: boolean | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
420
|
+
__parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, outputDatumCbor?: string | null, ensureMinAda?: boolean | null, assetsJson?: string | null, forceInputsJson?: string | null, protectInputsJson?: string | null, validatorScript?: string | null, scriptParamsJson?: string | null, lockOnScript?: boolean | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
398
421
|
kind: 'action'
|
|
399
422
|
}
|
|
400
423
|
|
|
@@ -410,21 +433,21 @@ export declare const BuildTransactionWithMetadata: {
|
|
|
410
433
|
|
|
411
434
|
export declare const BuildMultiAssetTransaction: {
|
|
412
435
|
// positional
|
|
413
|
-
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, assetsJson: string | null, changeAddress: _.Bech32 | null, outputDatumJson: string | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
436
|
+
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, assetsJson: string | null, changeAddress: _.Bech32 | null, outputDatumJson: string | null, outputDatumCbor: string | null, ensureMinAda: boolean | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
414
437
|
// named
|
|
415
|
-
({senderAddress, recipientAddress, lovelaceAmount, assetsJson, changeAddress, outputDatumJson, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, assetsJson?: string | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
438
|
+
({senderAddress, recipientAddress, lovelaceAmount, assetsJson, changeAddress, outputDatumJson, outputDatumCbor, ensureMinAda, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, assetsJson?: string | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, outputDatumCbor?: string | null, ensureMinAda?: boolean | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
416
439
|
// metadata (do not use)
|
|
417
|
-
__parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, assetsJson?: string | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
440
|
+
__parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, assetsJson?: string | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, outputDatumCbor?: string | null, ensureMinAda?: boolean | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
418
441
|
kind: 'action'
|
|
419
442
|
}
|
|
420
443
|
|
|
421
444
|
export declare const BuildMintTransaction: {
|
|
422
445
|
// 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
|
|
446
|
+
(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, protectInputsJson: 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
447
|
// 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
|
|
448
|
+
({senderAddress, recipientAddress, lovelaceAmount, mintActionsJson, mintingPolicyScript, changeAddress, requiredSignersJson, scriptParamsJson, inlineDatumJson, mintRedeemerJson, lockOnScript, forceInputsJson, protectInputsJson, 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, protectInputsJson?: 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
449
|
// 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
|
|
450
|
+
__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, protectInputsJson?: 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
451
|
kind: 'action'
|
|
429
452
|
}
|
|
430
453
|
|
|
@@ -460,11 +483,21 @@ export declare const SubmitSignedTransaction: {
|
|
|
460
483
|
|
|
461
484
|
export declare const BuildPlutusSpendTransaction: {
|
|
462
485
|
// positional
|
|
463
|
-
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, validatorScript: string | null, scriptTxHash: string | null, scriptOutputIndex: number | null, redeemerJson: string | null, datumJson: string | null, changeAddress: _.Bech32 | null, requiredSignersJson: string | null, scriptParamsJson: string | null, inlineDatumJson: string | null, lockOnScript: boolean | null, forceInputsJson: string | null, extraOutputsJson: string | null, mintActionsJson: string | null, mintingPolicyScript: string | null, mintRedeemerJson: string | null, referenceInputsJson: string | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
486
|
+
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, validatorScript: string | null, scriptTxHash: string | null, scriptOutputIndex: number | null, redeemerJson: string | null, datumJson: string | null, changeAddress: _.Bech32 | null, requiredSignersJson: string | null, scriptParamsJson: string | null, inlineDatumJson: string | null, lockOnScript: boolean | null, forceInputsJson: string | null, protectInputsJson: string | null, extraOutputsJson: string | null, mintActionsJson: string | null, mintingPolicyScript: string | null, mintRedeemerJson: string | null, referenceInputsJson: string | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
487
|
+
// named
|
|
488
|
+
({senderAddress, recipientAddress, lovelaceAmount, validatorScript, scriptTxHash, scriptOutputIndex, redeemerJson, datumJson, changeAddress, requiredSignersJson, scriptParamsJson, inlineDatumJson, lockOnScript, forceInputsJson, protectInputsJson, extraOutputsJson, mintActionsJson, mintingPolicyScript, mintRedeemerJson, referenceInputsJson, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, validatorScript?: string | null, scriptTxHash?: string | null, scriptOutputIndex?: number | null, redeemerJson?: string | null, datumJson?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, protectInputsJson?: string | null, extraOutputsJson?: string | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, mintRedeemerJson?: string | null, referenceInputsJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
489
|
+
// metadata (do not use)
|
|
490
|
+
__parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, validatorScript?: string | null, scriptTxHash?: string | null, scriptOutputIndex?: number | null, redeemerJson?: string | null, datumJson?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, protectInputsJson?: string | null, extraOutputsJson?: string | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, mintRedeemerJson?: string | null, referenceInputsJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
491
|
+
kind: 'action'
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export declare const BuildPlutusTransaction: {
|
|
495
|
+
// positional
|
|
496
|
+
(senderAddress: _.Bech32 | null, changeAddress: _.Bech32 | null, scriptInputsJson: string | null, outputsJson: string | null, referenceInputsJson: string | null, forceInputsJson: string | null, protectInputsJson: string | null, withdrawalsJson: string | null, certificatesJson: string | null, requiredSignersJson: string | null, mintActionsJson: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
464
497
|
// named
|
|
465
|
-
({senderAddress,
|
|
498
|
+
({senderAddress, changeAddress, scriptInputsJson, outputsJson, referenceInputsJson, forceInputsJson, protectInputsJson, withdrawalsJson, certificatesJson, requiredSignersJson, mintActionsJson, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, changeAddress?: _.Bech32 | null, scriptInputsJson?: string | null, outputsJson?: string | null, referenceInputsJson?: string | null, forceInputsJson?: string | null, protectInputsJson?: string | null, withdrawalsJson?: string | null, certificatesJson?: string | null, requiredSignersJson?: string | null, mintActionsJson?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
466
499
|
// metadata (do not use)
|
|
467
|
-
__parameters: {senderAddress?: _.Bech32 | null,
|
|
500
|
+
__parameters: {senderAddress?: _.Bech32 | null, changeAddress?: _.Bech32 | null, scriptInputsJson?: string | null, outputsJson?: string | null, referenceInputsJson?: string | null, forceInputsJson?: string | null, protectInputsJson?: string | null, withdrawalsJson?: string | null, certificatesJson?: string | null, requiredSignersJson?: string | null, mintActionsJson?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
468
501
|
kind: 'action'
|
|
469
502
|
}
|
|
470
503
|
|