@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
|
@@ -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[]): {
|
|
@@ -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, extraOutputsJson: 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, extraOutputsJson, metadataJson, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, mintRedeemerJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, referenceInputsJson?: string | null, extraOutputsJson?: string | null, metadataJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
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, extraOutputsJson?: 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
|
|
|
@@ -13,6 +13,9 @@ module.exports.TransactionBuildInputs = createEntityProxy(['CardanoTransactionSe
|
|
|
13
13
|
// TransactionBuildOutputs
|
|
14
14
|
module.exports.TransactionBuildOutput = createEntityProxy(['CardanoTransactionService', 'TransactionBuildOutputs'], { target: { is_singular: true } })
|
|
15
15
|
module.exports.TransactionBuildOutputs = createEntityProxy(['CardanoTransactionService', 'TransactionBuildOutputs'], { target: { is_singular: false }})
|
|
16
|
+
// TransactionBuildRedeemers
|
|
17
|
+
module.exports.TransactionBuildRedeemer = createEntityProxy(['CardanoTransactionService', 'TransactionBuildRedeemers'], { target: { is_singular: true } })
|
|
18
|
+
module.exports.TransactionBuildRedeemers = createEntityProxy(['CardanoTransactionService', 'TransactionBuildRedeemers'], { target: { is_singular: false }})
|
|
16
19
|
// TransactionBuildInputAssets
|
|
17
20
|
module.exports.TransactionBuildInputAsset = createEntityProxy(['CardanoTransactionService', 'TransactionBuildInputAssets'], { target: { is_singular: true } })
|
|
18
21
|
module.exports.TransactionBuildInputAssets = createEntityProxy(['CardanoTransactionService', 'TransactionBuildInputAssets'], { target: { is_singular: false }})
|
|
@@ -53,6 +56,7 @@ module.exports.GetBuildDetails = 'GetBuildDetails'
|
|
|
53
56
|
module.exports.SubmitTransaction = 'SubmitTransaction'
|
|
54
57
|
module.exports.SubmitSignedTransaction = 'SubmitSignedTransaction'
|
|
55
58
|
module.exports.BuildPlutusSpendTransaction = 'BuildPlutusSpendTransaction'
|
|
59
|
+
module.exports.BuildPlutusTransaction = 'BuildPlutusTransaction'
|
|
56
60
|
module.exports.SetCollateral = 'SetCollateral'
|
|
57
61
|
module.exports.GetTransactionBuildsByAddress = 'GetTransactionBuildsByAddress'
|
|
58
62
|
module.exports.DeriveScriptAddress = 'DeriveScriptAddress'
|
package/@cds-models/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type Blake2b224 = string;
|
|
|
6
6
|
export type Blake2b256 = string;
|
|
7
7
|
export type HexBytes = string;
|
|
8
8
|
export type Lovelace = (number | string);
|
|
9
|
+
export type AssetAmount = (number | string);
|
|
9
10
|
export type AssetUnit = string;
|
|
10
11
|
export type MetadataLabel = string;
|
|
11
12
|
export type Bech32 = string;
|
|
@@ -181,6 +182,23 @@ export declare function _AssetSliceAspect<TBase extends new (...args: any[]) =>
|
|
|
181
182
|
export class AssetSlice extends _AssetSliceAspect(__.Entity) {
|
|
182
183
|
}
|
|
183
184
|
|
|
185
|
+
// entity 'AssetSumSlice'
|
|
186
|
+
export declare function _AssetSumSliceAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
187
|
+
new (...args: any[]): {
|
|
188
|
+
quantity?: AssetAmount | null
|
|
189
|
+
policyId?: Blake2b224 | null
|
|
190
|
+
assetNameHex?: HexBytes | null
|
|
191
|
+
assetName?: string | null
|
|
192
|
+
fingerprint?: string | null
|
|
193
|
+
} & InstanceType<TBase>
|
|
194
|
+
readonly kind: 'type';
|
|
195
|
+
readonly keys: __.KeysOf<AssetSumSlice>;
|
|
196
|
+
readonly elements: __.ElementsOf<AssetSumSlice>;
|
|
197
|
+
readonly actions: globalThis.Record<never, never>;
|
|
198
|
+
};
|
|
199
|
+
export class AssetSumSlice extends _AssetSumSliceAspect(__.Entity) {
|
|
200
|
+
}
|
|
201
|
+
|
|
184
202
|
// entity 'MetadataSlice'
|
|
185
203
|
export declare function _MetadataSliceAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
186
204
|
new (...args: any[]): {
|
|
@@ -210,6 +228,22 @@ export declare function _UTxODataSliceAspect<TBase extends new (...args: any[])
|
|
|
210
228
|
export class UTxODataSlice extends _UTxODataSliceAspect(__.Entity) {
|
|
211
229
|
}
|
|
212
230
|
|
|
231
|
+
// entity 'TransactionConfirmations'
|
|
232
|
+
export declare function _TransactionConfirmationsAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
233
|
+
new (...args: any[]): {
|
|
234
|
+
txHash?: Blake2b256 | null
|
|
235
|
+
blockHeight?: number | null
|
|
236
|
+
tipHeight?: number | null
|
|
237
|
+
confirmations?: number | null
|
|
238
|
+
} & InstanceType<TBase>
|
|
239
|
+
readonly kind: 'type';
|
|
240
|
+
readonly keys: __.KeysOf<TransactionConfirmations>;
|
|
241
|
+
readonly elements: __.ElementsOf<TransactionConfirmations>;
|
|
242
|
+
readonly actions: globalThis.Record<never, never>;
|
|
243
|
+
};
|
|
244
|
+
export class TransactionConfirmations extends _TransactionConfirmationsAspect(__.Entity) {
|
|
245
|
+
}
|
|
246
|
+
|
|
213
247
|
// entity 'ParsedInput'
|
|
214
248
|
export declare function _ParsedInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
215
249
|
new (...args: any[]): {
|
|
@@ -247,6 +281,7 @@ export declare function _ParsedOutputAspect<TBase extends new (...args: any[]) =
|
|
|
247
281
|
datumHash?: Blake2b256 | null
|
|
248
282
|
inlineDatumHex?: string | null
|
|
249
283
|
referenceScriptHex?: string | null
|
|
284
|
+
cborSize?: number | null
|
|
250
285
|
} & InstanceType<TBase>
|
|
251
286
|
readonly kind: 'type';
|
|
252
287
|
readonly keys: __.KeysOf<ParsedOutput>;
|
|
@@ -256,6 +291,34 @@ export declare function _ParsedOutputAspect<TBase extends new (...args: any[]) =
|
|
|
256
291
|
export class ParsedOutput extends _ParsedOutputAspect(__.Entity) {
|
|
257
292
|
}
|
|
258
293
|
|
|
294
|
+
// entity 'ParsedWithdrawal'
|
|
295
|
+
export declare function _ParsedWithdrawalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
296
|
+
new (...args: any[]): {
|
|
297
|
+
rewardAddress?: Bech32 | null
|
|
298
|
+
lovelace?: Lovelace | null
|
|
299
|
+
} & InstanceType<TBase>
|
|
300
|
+
readonly kind: 'type';
|
|
301
|
+
readonly keys: __.KeysOf<ParsedWithdrawal>;
|
|
302
|
+
readonly elements: __.ElementsOf<ParsedWithdrawal>;
|
|
303
|
+
readonly actions: globalThis.Record<never, never>;
|
|
304
|
+
};
|
|
305
|
+
export class ParsedWithdrawal extends _ParsedWithdrawalAspect(__.Entity) {
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
// entity 'ParsedCertificate'
|
|
309
|
+
export declare function _ParsedCertificateAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
310
|
+
new (...args: any[]): {
|
|
311
|
+
index?: number | null
|
|
312
|
+
type?: string | null
|
|
313
|
+
} & InstanceType<TBase>
|
|
314
|
+
readonly kind: 'type';
|
|
315
|
+
readonly keys: __.KeysOf<ParsedCertificate>;
|
|
316
|
+
readonly elements: __.ElementsOf<ParsedCertificate>;
|
|
317
|
+
readonly actions: globalThis.Record<never, never>;
|
|
318
|
+
};
|
|
319
|
+
export class ParsedCertificate extends _ParsedCertificateAspect(__.Entity) {
|
|
320
|
+
}
|
|
321
|
+
|
|
259
322
|
// entity 'ParsedWitnesses'
|
|
260
323
|
export declare function _ParsedWitnessesAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
261
324
|
new (...args: any[]): {
|
|
@@ -278,6 +341,7 @@ export declare function _ParsedTransactionAspect<TBase extends new (...args: any
|
|
|
278
341
|
new (...args: any[]): {
|
|
279
342
|
txHash?: Blake2b256 | null
|
|
280
343
|
network?: string | null
|
|
344
|
+
networkId?: number | null
|
|
281
345
|
inputs?: Array<ParsedInput>
|
|
282
346
|
outputs?: Array<ParsedOutput>
|
|
283
347
|
validityStart?: string | null
|
|
@@ -286,8 +350,16 @@ export declare function _ParsedTransactionAspect<TBase extends new (...args: any
|
|
|
286
350
|
mint?: Array<ParsedAsset>
|
|
287
351
|
metadataLabels?: Array<string>
|
|
288
352
|
collateral?: Array<ParsedInput>
|
|
353
|
+
referenceInputs?: Array<ParsedInput>
|
|
354
|
+
withdrawals?: Array<ParsedWithdrawal>
|
|
355
|
+
certificates?: Array<ParsedCertificate>
|
|
356
|
+
votingProcedures?: number | null
|
|
357
|
+
proposalProcedures?: number | null
|
|
358
|
+
treasuryDonation?: Lovelace | null
|
|
359
|
+
currentTreasuryValue?: Lovelace | null
|
|
289
360
|
requiredSigners?: Array<Blake2b224>
|
|
290
361
|
scriptDataHash?: Blake2b256 | null
|
|
362
|
+
isValid?: boolean | null
|
|
291
363
|
witnesses?: ParsedWitnesses | null
|
|
292
364
|
} & InstanceType<TBase>
|
|
293
365
|
readonly kind: 'type';
|
package/@cds-models/index.js
CHANGED
|
@@ -3,12 +3,18 @@ const { createEntityProxy } = require('./_')
|
|
|
3
3
|
// AssetSlice
|
|
4
4
|
module.exports.AssetSlice = createEntityProxy(['', 'AssetSlice'], { target: { is_singular: true } })
|
|
5
5
|
module.exports.__Array_AssetSlice_ = createEntityProxy(['', 'AssetSlice'], { target: { is_singular: false }})
|
|
6
|
+
// AssetSumSlice
|
|
7
|
+
module.exports.AssetSumSlice = createEntityProxy(['', 'AssetSumSlice'], { target: { is_singular: true } })
|
|
8
|
+
module.exports.__Array_AssetSumSlice_ = createEntityProxy(['', 'AssetSumSlice'], { target: { is_singular: false }})
|
|
6
9
|
// MetadataSlice
|
|
7
10
|
module.exports.MetadataSlice = createEntityProxy(['', 'MetadataSlice'], { target: { is_singular: true } })
|
|
8
11
|
module.exports.__Array_MetadataSlice_ = createEntityProxy(['', 'MetadataSlice'], { target: { is_singular: false }})
|
|
9
12
|
// UTxODataSlice
|
|
10
13
|
module.exports.UTxODataSlice = createEntityProxy(['', 'UTxODataSlice'], { target: { is_singular: true } })
|
|
11
14
|
module.exports.__Array_UTxODataSlice_ = createEntityProxy(['', 'UTxODataSlice'], { target: { is_singular: false }})
|
|
15
|
+
// TransactionConfirmations
|
|
16
|
+
module.exports.TransactionConfirmations = createEntityProxy(['', 'TransactionConfirmations'], { target: { is_singular: true } })
|
|
17
|
+
module.exports.__Array_TransactionConfirmations_ = createEntityProxy(['', 'TransactionConfirmations'], { target: { is_singular: false }})
|
|
12
18
|
// ParsedInput
|
|
13
19
|
module.exports.ParsedInput = createEntityProxy(['', 'ParsedInput'], { target: { is_singular: true } })
|
|
14
20
|
module.exports.__Array_ParsedInput_ = createEntityProxy(['', 'ParsedInput'], { target: { is_singular: false }})
|
|
@@ -18,6 +24,12 @@ module.exports.__Array_ParsedAsset_ = createEntityProxy(['', 'ParsedAsset'], { t
|
|
|
18
24
|
// ParsedOutput
|
|
19
25
|
module.exports.ParsedOutput = createEntityProxy(['', 'ParsedOutput'], { target: { is_singular: true } })
|
|
20
26
|
module.exports.__Array_ParsedOutput_ = createEntityProxy(['', 'ParsedOutput'], { target: { is_singular: false }})
|
|
27
|
+
// ParsedWithdrawal
|
|
28
|
+
module.exports.ParsedWithdrawal = createEntityProxy(['', 'ParsedWithdrawal'], { target: { is_singular: true } })
|
|
29
|
+
module.exports.__Array_ParsedWithdrawal_ = createEntityProxy(['', 'ParsedWithdrawal'], { target: { is_singular: false }})
|
|
30
|
+
// ParsedCertificate
|
|
31
|
+
module.exports.ParsedCertificate = createEntityProxy(['', 'ParsedCertificate'], { target: { is_singular: true } })
|
|
32
|
+
module.exports.__Array_ParsedCertificate_ = createEntityProxy(['', 'ParsedCertificate'], { target: { is_singular: false }})
|
|
21
33
|
// ParsedWitnesses
|
|
22
34
|
module.exports.ParsedWitnesses = createEntityProxy(['', 'ParsedWitnesses'], { target: { is_singular: true } })
|
|
23
35
|
module.exports.__Array_ParsedWitnesses_ = createEntityProxy(['', 'ParsedWitnesses'], { target: { is_singular: false }})
|