@odatano/core 2.0.0-rc.50 → 2.0.0-rc.51

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.
Files changed (151) hide show
  1. package/@cds-models/CardanoBackendService/index.d.ts +14 -3
  2. package/@cds-models/CardanoBackendService/index.js +1 -0
  3. package/@cds-models/CardanoIndexerService/index.d.ts +98 -0
  4. package/@cds-models/CardanoIndexerService/index.js +10 -0
  5. package/@cds-models/CardanoODataService/index.d.ts +3 -0
  6. package/@cds-models/CardanoSignService/index.d.ts +13 -0
  7. package/@cds-models/CardanoSignService/index.js +1 -0
  8. package/@cds-models/CardanoTransactionService/index.d.ts +12 -0
  9. package/@cds-models/CardanoTransactionService/index.js +1 -0
  10. package/@cds-models/CardanoWorkerService/index.d.ts +28 -0
  11. package/@cds-models/CardanoWorkerService/index.js +2 -0
  12. package/@cds-models/index.d.ts +13 -3
  13. package/@cds-models/index.js +4 -3
  14. package/@cds-models/odatano/cardano/index.d.ts +14 -0
  15. package/README.md +45 -149
  16. package/db/schema.cds +63 -10
  17. package/db/types.cds +10 -0
  18. package/package.json +7 -44
  19. package/scripts/deploy-schema.mjs +113 -0
  20. package/scripts/migrate-schema.mjs +209 -15
  21. package/srv/blockchain/backends/blockfrost-backend.d.ts +2 -4
  22. package/srv/blockchain/backends/blockfrost-backend.js +61 -45
  23. package/srv/blockchain/backends/call-signal.d.ts +7 -0
  24. package/srv/blockchain/backends/call-signal.js +22 -0
  25. package/srv/blockchain/backends/cardano-backend.d.ts +6 -3
  26. package/srv/blockchain/backends/koios-backend.d.ts +9 -6
  27. package/srv/blockchain/backends/koios-backend.js +145 -207
  28. package/srv/blockchain/backends/odatano-backend.d.ts +2 -1
  29. package/srv/blockchain/backends/odatano-backend.js +51 -9
  30. package/srv/blockchain/backends/ogmios-backend.d.ts +1 -2
  31. package/srv/blockchain/backends/ogmios-backend.js +82 -48
  32. package/srv/blockchain/cardano-client.d.ts +15 -5
  33. package/srv/blockchain/cardano-client.js +143 -71
  34. package/srv/blockchain/cardano-indexer.d.ts +27 -16
  35. package/srv/blockchain/cardano-indexer.js +223 -102
  36. package/srv/blockchain/circuit-breaker.d.ts +1 -0
  37. package/srv/blockchain/circuit-breaker.js +6 -0
  38. package/srv/blockchain/crawler/account-snapshots.js +22 -2
  39. package/srv/blockchain/crawler/asset-decimals-backfill.d.ts +2 -0
  40. package/srv/blockchain/crawler/asset-decimals-backfill.js +29 -29
  41. package/srv/blockchain/crawler/asset-registry-backfill.d.ts +3 -0
  42. package/srv/blockchain/crawler/asset-registry-backfill.js +4 -0
  43. package/srv/blockchain/crawler/asset-slice-backfill.d.ts +35 -0
  44. package/srv/blockchain/crawler/asset-slice-backfill.js +149 -0
  45. package/srv/blockchain/crawler/certificate-backfill.d.ts +4 -0
  46. package/srv/blockchain/crawler/certificate-backfill.js +15 -3
  47. package/srv/blockchain/crawler/crawler.d.ts +22 -1
  48. package/srv/blockchain/crawler/crawler.js +223 -24
  49. package/srv/blockchain/crawler/credential-backfill.d.ts +2 -0
  50. package/srv/blockchain/crawler/credential-backfill.js +43 -66
  51. package/srv/blockchain/crawler/input-asset-copies.d.ts +4 -4
  52. package/srv/blockchain/crawler/input-asset-copies.js +17 -27
  53. package/srv/blockchain/crawler/key-pages.d.ts +12 -0
  54. package/srv/blockchain/crawler/key-pages.js +48 -0
  55. package/srv/blockchain/crawler/metadata-position-backfill.d.ts +6 -0
  56. package/srv/blockchain/crawler/metadata-position-backfill.js +23 -19
  57. package/srv/blockchain/crawler/output-datum-backfill.d.ts +3 -1
  58. package/srv/blockchain/crawler/output-datum-backfill.js +8 -18
  59. package/srv/blockchain/crawler/sync-state.d.ts +5 -1
  60. package/srv/blockchain/crawler/sync-state.js +63 -106
  61. package/srv/blockchain/crawler/transaction-backfill.d.ts +2 -0
  62. package/srv/blockchain/crawler/transaction-backfill.js +6 -13
  63. package/srv/blockchain/crawler/utxo-set-import.js +2 -2
  64. package/srv/blockchain/crawler/window-plan.d.ts +31 -0
  65. package/srv/blockchain/crawler/window-plan.js +59 -0
  66. package/srv/blockchain/ledger-state.d.ts +2 -2
  67. package/srv/blockchain/ledger-state.js +139 -37
  68. package/srv/blockchain/signing/external-signer.js +5 -5
  69. package/srv/blockchain/signing/failed-recheck.d.ts +17 -0
  70. package/srv/blockchain/signing/failed-recheck.js +135 -0
  71. package/srv/blockchain/signing/landing-proof.d.ts +60 -0
  72. package/srv/blockchain/signing/landing-proof.js +224 -0
  73. package/srv/blockchain/signing/signature-verifier.js +10 -13
  74. package/srv/blockchain/signing/submission-finalizer.d.ts +17 -3
  75. package/srv/blockchain/signing/submission-finalizer.js +90 -29
  76. package/srv/blockchain/stored-chain.d.ts +1 -2
  77. package/srv/blockchain/stored-chain.js +36 -15
  78. package/srv/blockchain/transaction-building/buildooor-tx.js +16 -10
  79. package/srv/blockchain/transaction-presence.d.ts +8 -1
  80. package/srv/blockchain/transaction-presence.js +12 -12
  81. package/srv/blockchain/wallet-worker/build-request.d.ts +6 -6
  82. package/srv/blockchain/wallet-worker/build-request.js +35 -365
  83. package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +23 -2
  84. package/srv/blockchain/wallet-worker/confirmation-tracker.js +140 -23
  85. package/srv/blockchain/wallet-worker/invalidation.d.ts +35 -0
  86. package/srv/blockchain/wallet-worker/invalidation.js +128 -0
  87. package/srv/blockchain/wallet-worker/job-store.d.ts +28 -2
  88. package/srv/blockchain/wallet-worker/job-store.js +107 -80
  89. package/srv/blockchain/wallet-worker/wallet-worker.d.ts +21 -2
  90. package/srv/blockchain/wallet-worker/wallet-worker.js +241 -57
  91. package/srv/cardano-agent-service.cds +1 -1
  92. package/srv/cardano-agent-service.js +8 -0
  93. package/srv/cardano-backend-service.cds +4 -1
  94. package/srv/cardano-backend-service.js +26 -9
  95. package/srv/cardano-indexer-service.cds +448 -387
  96. package/srv/cardano-indexer-service.js +226 -281
  97. package/srv/cardano-service.cds +7 -5
  98. package/srv/cardano-service.js +404 -69
  99. package/srv/cardano-sign-service.cds +11 -1
  100. package/srv/cardano-sign-service.js +161 -108
  101. package/srv/cardano-tx-service.cds +15 -4
  102. package/srv/cardano-tx-service.js +105 -604
  103. package/srv/cardano-worker-service.cds +25 -2
  104. package/srv/cardano-worker-service.js +56 -4
  105. package/srv/config.d.ts +4 -0
  106. package/srv/config.js +10 -0
  107. package/srv/server.js +5 -7
  108. package/srv/utils/agent-access.d.ts +4 -2
  109. package/srv/utils/agent-access.js +26 -7
  110. package/srv/utils/agent-grants.d.ts +1 -1
  111. package/srv/utils/agent-grants.js +7 -8
  112. package/srv/utils/agent-token-auth.js +45 -5
  113. package/srv/utils/build-request.d.ts +52 -0
  114. package/srv/utils/build-request.js +487 -0
  115. package/srv/utils/collections.d.ts +1 -0
  116. package/srv/utils/collections.js +11 -0
  117. package/srv/utils/const.d.ts +10 -2
  118. package/srv/utils/const.js +13 -6
  119. package/srv/utils/crypto.js +5 -4
  120. package/srv/utils/db-indexes.d.ts +5 -1
  121. package/srv/utils/db-indexes.js +79 -14
  122. package/srv/utils/db-kind.d.ts +23 -0
  123. package/srv/utils/db-kind.js +42 -0
  124. package/srv/utils/detached-run.d.ts +41 -0
  125. package/srv/utils/detached-run.js +101 -0
  126. package/srv/utils/epoch-slots.d.ts +1 -0
  127. package/srv/utils/epoch-slots.js +7 -0
  128. package/srv/utils/error-codes.d.ts +4 -0
  129. package/srv/utils/error-codes.js +4 -0
  130. package/srv/utils/errors.d.ts +10 -1
  131. package/srv/utils/errors.js +51 -9
  132. package/srv/utils/lease.d.ts +20 -0
  133. package/srv/utils/lease.js +62 -0
  134. package/srv/utils/mappers.d.ts +9 -0
  135. package/srv/utils/mappers.js +57 -67
  136. package/srv/utils/navigation.d.ts +17 -0
  137. package/srv/utils/navigation.js +52 -0
  138. package/srv/utils/network-context.d.ts +0 -1
  139. package/srv/utils/network-context.js +8 -3
  140. package/srv/utils/pg-inline-json.js +3 -3
  141. package/srv/utils/pg-order-nulls.js +3 -3
  142. package/srv/utils/resolution.d.ts +13 -0
  143. package/srv/utils/resolution.js +47 -0
  144. package/srv/utils/row-values.d.ts +7 -0
  145. package/srv/utils/row-values.js +27 -0
  146. package/srv/utils/tx-build-helper.d.ts +15 -0
  147. package/srv/utils/tx-build-helper.js +28 -13
  148. package/srv/utils/types.d.ts +35 -43
  149. package/srv/utils/types.js +1 -17
  150. package/srv/utils/validators.d.ts +2 -2
  151. package/srv/utils/validators.js +14 -25
@@ -21,6 +21,7 @@ export default class {
21
21
  static readonly IsUtxoUnspent: typeof IsUtxoUnspent;
22
22
  static readonly GetUnspentOutputs: typeof GetUnspentOutputs;
23
23
  static readonly GetAccount: typeof GetAccount;
24
+ static readonly IsRewardAccountRegistered: typeof IsRewardAccountRegistered;
24
25
  static readonly GetPool: typeof GetPool;
25
26
  static readonly GetPoolIds: typeof GetPoolIds;
26
27
  static readonly GetPools: typeof GetPools;
@@ -98,11 +99,11 @@ export declare const GetNextBlocks: {
98
99
 
99
100
  export declare const GetBlockTransactions: {
100
101
  // positional
101
- (blockHash: string | null): globalThis.Promise<string | null> | string | null
102
+ (blockHash: string | null, txCount: number | null): globalThis.Promise<string | null> | string | null
102
103
  // named
103
- ({blockHash}: {blockHash?: string | null}): globalThis.Promise<string | null> | string | null
104
+ ({blockHash, txCount}: {blockHash?: string | null, txCount?: number | null}): globalThis.Promise<string | null> | string | null
104
105
  // metadata (do not use)
105
- __parameters: {blockHash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
106
+ __parameters: {blockHash?: string | null, txCount?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
106
107
  kind: 'action'
107
108
  }
108
109
 
@@ -226,6 +227,16 @@ export declare const GetAccount: {
226
227
  kind: 'action'
227
228
  }
228
229
 
230
+ export declare const IsRewardAccountRegistered: {
231
+ // positional
232
+ (stakeAddress: string | null): globalThis.Promise<string | null> | string | null
233
+ // named
234
+ ({stakeAddress}: {stakeAddress?: string | null}): globalThis.Promise<string | null> | string | null
235
+ // metadata (do not use)
236
+ __parameters: {stakeAddress?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
237
+ kind: 'action'
238
+ }
239
+
229
240
  export declare const GetPool: {
230
241
  // positional
231
242
  (poolId: string | null): globalThis.Promise<string | null> | string | null
@@ -25,6 +25,7 @@ module.exports.GetCredentialUtxos = 'GetCredentialUtxos'
25
25
  module.exports.IsUtxoUnspent = 'IsUtxoUnspent'
26
26
  module.exports.GetUnspentOutputs = 'GetUnspentOutputs'
27
27
  module.exports.GetAccount = 'GetAccount'
28
+ module.exports.IsRewardAccountRegistered = 'IsRewardAccountRegistered'
28
29
  module.exports.GetPool = 'GetPool'
29
30
  module.exports.GetPoolIds = 'GetPoolIds'
30
31
  module.exports.GetPools = 'GetPools'
@@ -14,13 +14,33 @@ export default class {
14
14
  static readonly backfillPaymentCredentials: typeof backfillPaymentCredentials;
15
15
  static readonly backfillOutputDatums: typeof backfillOutputDatums;
16
16
  static readonly backfillMetadataPositions: typeof backfillMetadataPositions;
17
+ static readonly backfillAssetSlices: typeof backfillAssetSlices;
18
+ static readonly recheckFailedSubmits: typeof recheckFailedSubmits;
17
19
  static readonly backfillEpochs: typeof backfillEpochs;
18
20
  static readonly pruneInputAssetCopies: typeof pruneInputAssetCopies;
19
21
  static readonly restoreInputAssetCopies: typeof restoreInputAssetCopies;
22
+ static readonly cancelMaintenance: typeof cancelMaintenance;
20
23
  static readonly backfillAssetDecimals: typeof backfillAssetDecimals;
21
24
  static readonly backfillAssetRegistry: typeof backfillAssetRegistry;
22
25
  }
23
26
 
27
+ // enum
28
+ export const MaintenanceRun: {
29
+ certificateBackfill: "certificateBackfill",
30
+ transactionBackfill: "transactionBackfill",
31
+ credentialBackfill: "credentialBackfill",
32
+ decimalsBackfill: "decimalsBackfill",
33
+ registryBackfill: "registryBackfill",
34
+ datumBackfill: "datumBackfill",
35
+ metadataBackfill: "metadataBackfill",
36
+ epochBackfill: "epochBackfill",
37
+ failedRecheck: "failedRecheck",
38
+ sliceBackfill: "sliceBackfill",
39
+ copyPrune: "copyPrune",
40
+ copyRestore: "copyRestore",
41
+ }
42
+ export type MaintenanceRun = "certificateBackfill" | "transactionBackfill" | "credentialBackfill" | "decimalsBackfill" | "registryBackfill" | "datumBackfill" | "metadataBackfill" | "epochBackfill" | "failedRecheck" | "sliceBackfill" | "copyPrune" | "copyRestore"
43
+
24
44
  // entity 'SyncState'
25
45
  export declare function _SyncStateAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
26
46
  new (...args: any[]): {
@@ -47,6 +67,7 @@ export declare function _SyncStateAspect<TBase extends new (...args: any[]) => o
47
67
  utxoAppliedSlot?: number | null
48
68
  utxoSetError?: string | null
49
69
  leaseUntil?: __.CdsTimestamp | null
70
+ nodeBehindSince?: __.CdsTimestamp | null
50
71
  } & InstanceType<TBase>
51
72
  readonly kind: 'entity';
52
73
  readonly keys: __.KeysOf<SyncState>;
@@ -95,6 +116,7 @@ export declare function _CrawlerStatusAspect<TBase extends new (...args: any[])
95
116
  consecutiveErrors?: number | null
96
117
  lastIndexedAt?: __.CdsTimestamp | null
97
118
  stalled?: boolean | null
119
+ nodeBehindSince?: __.CdsTimestamp | null
98
120
  utxoSet?: UtxoSetStatus | null
99
121
  certificateBackfill?: CertificateBackfillStatus | null
100
122
  transactionBackfill?: TransactionBackfillStatus | null
@@ -103,7 +125,9 @@ export declare function _CrawlerStatusAspect<TBase extends new (...args: any[])
103
125
  registryBackfill?: RegistryBackfillStatus | null
104
126
  datumBackfill?: DatumBackfillStatus | null
105
127
  metadataBackfill?: MetadataBackfillStatus | null
128
+ sliceBackfill?: AssetSliceBackfillStatus | null
106
129
  epochBackfill?: EpochBackfillStatus | null
130
+ failedRecheck?: FailedRecheckStatus | null
107
131
  copyPrune?: InputCopyPruneStatus | null
108
132
  copyRestore?: InputCopyRestoreStatus | null
109
133
  epochSnapshots?: EpochSnapshotStatus | null
@@ -144,6 +168,7 @@ export declare function _CertificateBackfillStatusAspect<TBase extends new (...a
144
168
  toSlot?: string | null
145
169
  atSlot?: string | null
146
170
  blocks?: number | null
171
+ transactions?: number | null
147
172
  certificates?: number | null
148
173
  withdrawals?: number | null
149
174
  removed?: number | null
@@ -290,6 +315,26 @@ export declare function _EpochBackfillStatusAspect<TBase extends new (...args: a
290
315
  export class EpochBackfillStatus extends _EpochBackfillStatusAspect(__.Entity) {
291
316
  }
292
317
 
318
+ // entity 'FailedRecheckStatus'
319
+ export declare function _FailedRecheckStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
320
+ new (...args: any[]): {
321
+ status?: string | null
322
+ submissions?: number | null
323
+ requests?: number | null
324
+ jobs?: number | null
325
+ restored?: number | null
326
+ startedAt?: __.CdsTimestamp | null
327
+ finishedAt?: __.CdsTimestamp | null
328
+ error?: string | null
329
+ } & InstanceType<TBase>
330
+ readonly kind: 'type';
331
+ readonly keys: __.KeysOf<FailedRecheckStatus>;
332
+ readonly elements: __.ElementsOf<FailedRecheckStatus>;
333
+ readonly actions: globalThis.Record<never, never>;
334
+ };
335
+ export class FailedRecheckStatus extends _FailedRecheckStatusAspect(__.Entity) {
336
+ }
337
+
293
338
  // entity 'InputCopyPruneStatus'
294
339
  export declare function _InputCopyPruneStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
295
340
  new (...args: any[]): {
@@ -350,6 +395,29 @@ export declare function _MetadataBackfillStatusAspect<TBase extends new (...args
350
395
  export class MetadataBackfillStatus extends _MetadataBackfillStatusAspect(__.Entity) {
351
396
  }
352
397
 
398
+ // entity 'AssetSliceBackfillStatus'
399
+ export declare function _AssetSliceBackfillStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
400
+ new (...args: any[]): {
401
+ status?: string | null
402
+ table?: string | null
403
+ outputs?: number | null
404
+ inputs?: number | null
405
+ ledgerUtxos?: number | null
406
+ ledgerAddresses?: number | null
407
+ utxoSlices?: number | null
408
+ addressSlices?: number | null
409
+ startedAt?: __.CdsTimestamp | null
410
+ finishedAt?: __.CdsTimestamp | null
411
+ error?: string | null
412
+ } & InstanceType<TBase>
413
+ readonly kind: 'type';
414
+ readonly keys: __.KeysOf<AssetSliceBackfillStatus>;
415
+ readonly elements: __.ElementsOf<AssetSliceBackfillStatus>;
416
+ readonly actions: globalThis.Record<never, never>;
417
+ };
418
+ export class AssetSliceBackfillStatus extends _AssetSliceBackfillStatusAspect(__.Entity) {
419
+ }
420
+
353
421
  // entity 'BackfillResult'
354
422
  export declare function _BackfillResultAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
355
423
  new (...args: any[]): {
@@ -567,6 +635,26 @@ export declare const backfillOutputDatums: {
567
635
  }
568
636
 
569
637
  export declare const backfillMetadataPositions: {
638
+ // positional
639
+ (fromSlot: number | null, toSlot: number | null): globalThis.Promise<BackfillResult | null> | BackfillResult | null
640
+ // named
641
+ ({fromSlot, toSlot}: {fromSlot?: number | null, toSlot?: number | null}): globalThis.Promise<BackfillResult | null> | BackfillResult | null
642
+ // metadata (do not use)
643
+ __parameters: {fromSlot?: number | null, toSlot?: number | null}, __returns: globalThis.Promise<BackfillResult | null> | BackfillResult | null, __self: never
644
+ kind: 'action'
645
+ }
646
+
647
+ export declare const backfillAssetSlices: {
648
+ // positional
649
+ (): globalThis.Promise<BackfillResult | null> | BackfillResult | null
650
+ // named
651
+ ({}: globalThis.Record<never, never>): globalThis.Promise<BackfillResult | null> | BackfillResult | null
652
+ // metadata (do not use)
653
+ __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<BackfillResult | null> | BackfillResult | null, __self: never
654
+ kind: 'action'
655
+ }
656
+
657
+ export declare const recheckFailedSubmits: {
570
658
  // positional
571
659
  (): globalThis.Promise<BackfillResult | null> | BackfillResult | null
572
660
  // named
@@ -606,6 +694,16 @@ export declare const restoreInputAssetCopies: {
606
694
  kind: 'action'
607
695
  }
608
696
 
697
+ export declare const cancelMaintenance: {
698
+ // positional
699
+ (run: MaintenanceRun): globalThis.Promise<BackfillResult | null> | BackfillResult | null
700
+ // named
701
+ ({run}: {run: MaintenanceRun}): globalThis.Promise<BackfillResult | null> | BackfillResult | null
702
+ // metadata (do not use)
703
+ __parameters: {run: MaintenanceRun}, __returns: globalThis.Promise<BackfillResult | null> | BackfillResult | null, __self: never
704
+ kind: 'action'
705
+ }
706
+
609
707
  export declare const backfillAssetDecimals: {
610
708
  // positional
611
709
  (): globalThis.Promise<BackfillResult | null> | BackfillResult | null
@@ -37,6 +37,9 @@ module.exports.__Array_DatumBackfillStatus_ = createEntityProxy(['CardanoIndexer
37
37
  // EpochBackfillStatus
38
38
  module.exports.EpochBackfillStatus = createEntityProxy(['CardanoIndexerService', 'EpochBackfillStatus'], { target: { is_singular: true } })
39
39
  module.exports.__Array_EpochBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'EpochBackfillStatus'], { target: { is_singular: false }})
40
+ // FailedRecheckStatus
41
+ module.exports.FailedRecheckStatus = createEntityProxy(['CardanoIndexerService', 'FailedRecheckStatus'], { target: { is_singular: true } })
42
+ module.exports.__Array_FailedRecheckStatus_ = createEntityProxy(['CardanoIndexerService', 'FailedRecheckStatus'], { target: { is_singular: false }})
40
43
  // InputCopyPruneStatus
41
44
  module.exports.InputCopyPruneStatus = createEntityProxy(['CardanoIndexerService', 'InputCopyPruneStatus'], { target: { is_singular: true } })
42
45
  module.exports.__Array_InputCopyPruneStatus_ = createEntityProxy(['CardanoIndexerService', 'InputCopyPruneStatus'], { target: { is_singular: false }})
@@ -46,6 +49,9 @@ module.exports.__Array_InputCopyRestoreStatus_ = createEntityProxy(['CardanoInde
46
49
  // MetadataBackfillStatus
47
50
  module.exports.MetadataBackfillStatus = createEntityProxy(['CardanoIndexerService', 'MetadataBackfillStatus'], { target: { is_singular: true } })
48
51
  module.exports.__Array_MetadataBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'MetadataBackfillStatus'], { target: { is_singular: false }})
52
+ // AssetSliceBackfillStatus
53
+ module.exports.AssetSliceBackfillStatus = createEntityProxy(['CardanoIndexerService', 'AssetSliceBackfillStatus'], { target: { is_singular: true } })
54
+ module.exports.__Array_AssetSliceBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'AssetSliceBackfillStatus'], { target: { is_singular: false }})
49
55
  // BackfillResult
50
56
  module.exports.BackfillResult = createEntityProxy(['CardanoIndexerService', 'BackfillResult'], { target: { is_singular: true } })
51
57
  module.exports.__Array_BackfillResult_ = createEntityProxy(['CardanoIndexerService', 'BackfillResult'], { target: { is_singular: false }})
@@ -79,9 +85,13 @@ module.exports.backfillTransactions = 'backfillTransactions'
79
85
  module.exports.backfillPaymentCredentials = 'backfillPaymentCredentials'
80
86
  module.exports.backfillOutputDatums = 'backfillOutputDatums'
81
87
  module.exports.backfillMetadataPositions = 'backfillMetadataPositions'
88
+ module.exports.backfillAssetSlices = 'backfillAssetSlices'
89
+ module.exports.recheckFailedSubmits = 'recheckFailedSubmits'
82
90
  module.exports.backfillEpochs = 'backfillEpochs'
83
91
  module.exports.pruneInputAssetCopies = 'pruneInputAssetCopies'
84
92
  module.exports.restoreInputAssetCopies = 'restoreInputAssetCopies'
93
+ module.exports.cancelMaintenance = 'cancelMaintenance'
85
94
  module.exports.backfillAssetDecimals = 'backfillAssetDecimals'
86
95
  module.exports.backfillAssetRegistry = 'backfillAssetRegistry'
87
96
  // enums
97
+ module.exports.MaintenanceRun ??= { certificateBackfill: "certificateBackfill", transactionBackfill: "transactionBackfill", credentialBackfill: "credentialBackfill", decimalsBackfill: "decimalsBackfill", registryBackfill: "registryBackfill", datumBackfill: "datumBackfill", metadataBackfill: "metadataBackfill", epochBackfill: "epochBackfill", failedRecheck: "failedRecheck", sliceBackfill: "sliceBackfill", copyPrune: "copyPrune", copyRestore: "copyRestore" }
@@ -67,6 +67,7 @@ export declare function _BlockAspect<TBase extends new (...args: any[]) => objec
67
67
  size?: number | null
68
68
  txCount?: number | null
69
69
  fees?: _.Lovelace | null
70
+ previousHash?: string | null
70
71
  } & InstanceType<TBase>
71
72
  readonly kind: 'entity';
72
73
  readonly keys: __.KeysOf<Block>;
@@ -92,6 +93,7 @@ export declare function _EpochAspect<TBase extends new (...args: any[]) => objec
92
93
  output?: string | null
93
94
  fees?: _.Lovelace | null
94
95
  activeStake?: _.Lovelace | null
96
+ final?: boolean | null
95
97
  } & InstanceType<TBase>
96
98
  readonly kind: 'entity';
97
99
  readonly keys: __.KeysOf<Epoch>;
@@ -713,6 +715,7 @@ export declare function _AccountAspect<TBase extends new (...args: any[]) => obj
713
715
  drepId_drepId?: _.Bech32 | null
714
716
  Address?: __.Composition.of.many<Addresses>
715
717
  hasAddresses?: boolean | null
718
+ addressCount?: number | null
716
719
  } & InstanceType<TBase>
717
720
  readonly kind: 'entity';
718
721
  readonly keys: __.KeysOf<Account>;
@@ -12,6 +12,7 @@ export default class {
12
12
  static readonly GetSigningRequestsByAddress: typeof GetSigningRequestsByAddress;
13
13
  static readonly SignWithHsm: typeof SignWithHsm;
14
14
  static readonly SignAndSubmitWithHsm: typeof SignAndSubmitWithHsm;
15
+ static readonly ResolveSigningRequest: typeof ResolveSigningRequest;
15
16
  static readonly GetHsmStatus: typeof GetHsmStatus;
16
17
  }
17
18
 
@@ -113,6 +114,7 @@ export declare function _TransactionSubmissionAspect<TBase extends new (...args:
113
114
  status?: _.SubmissionStatus | null
114
115
  errorCode?: string | null
115
116
  errorMessage?: string | null
117
+ resolution?: string | null
116
118
  retryCount?: number | null
117
119
  errors?: __.Composition.of.many<TransactionSubmissionErrors>
118
120
  hasErrors?: boolean | null
@@ -152,6 +154,7 @@ export declare function _SigningRequestAspect<TBase extends new (...args: any[])
152
154
  submission?: __.Association.to<TransactionSubmission> | null
153
155
  submission_id?: string | null
154
156
  errorMessage?: string | null
157
+ resolution?: string | null
155
158
  } & InstanceType<TBase>
156
159
  readonly kind: 'entity';
157
160
  readonly keys: __.KeysOf<SigningRequest>;
@@ -520,6 +523,16 @@ export declare const SignAndSubmitWithHsm: {
520
523
  kind: 'action'
521
524
  }
522
525
 
526
+ export declare const ResolveSigningRequest: {
527
+ // positional
528
+ (signingRequestId: string, outcome: _.ResolvedOutcome, txHash: string | null, note: string | null): globalThis.Promise<SigningRequest | null> | SigningRequest | null
529
+ // named
530
+ ({signingRequestId, outcome, txHash, note}: {signingRequestId: string, outcome: _.ResolvedOutcome, txHash?: string | null, note?: string | null}): globalThis.Promise<SigningRequest | null> | SigningRequest | null
531
+ // metadata (do not use)
532
+ __parameters: {signingRequestId: string, outcome: _.ResolvedOutcome, txHash?: string | null, note?: string | null}, __returns: globalThis.Promise<SigningRequest | null> | SigningRequest | null, __self: never
533
+ kind: 'action'
534
+ }
535
+
523
536
  export declare const GetHsmStatus: {
524
537
  // positional
525
538
  (): globalThis.Promise<{ connected?: boolean | null, keyId?: string | null, keyLabel?: string | null, publicKeyHash?: string | null, cardanoAddress?: string | null, } | null> | { connected?: boolean | null, keyId?: string | null, keyLabel?: string | null, publicKeyHash?: string | null, cardanoAddress?: string | null, } | null
@@ -62,5 +62,6 @@ module.exports.GetSigningRequest = 'GetSigningRequest'
62
62
  module.exports.GetSigningRequestsByAddress = 'GetSigningRequestsByAddress'
63
63
  module.exports.SignWithHsm = 'SignWithHsm'
64
64
  module.exports.SignAndSubmitWithHsm = 'SignAndSubmitWithHsm'
65
+ module.exports.ResolveSigningRequest = 'ResolveSigningRequest'
65
66
  module.exports.GetHsmStatus = 'GetHsmStatus'
66
67
  // enums
@@ -4,6 +4,7 @@ import * as __ from './../_';
4
4
  import * as _odatano_cardano from './../odatano/cardano';
5
5
 
6
6
  export default class {
7
+ static readonly ResolveSubmission: typeof ResolveSubmission;
7
8
  static readonly BuildSimpleAdaTransaction: typeof BuildSimpleAdaTransaction;
8
9
  static readonly BuildTransactionWithMetadata: typeof BuildTransactionWithMetadata;
9
10
  static readonly BuildMultiAssetTransaction: typeof BuildMultiAssetTransaction;
@@ -188,6 +189,7 @@ export declare function _TransactionSubmissionAspect<TBase extends new (...args:
188
189
  status?: _.SubmissionStatus | null
189
190
  errorCode?: string | null
190
191
  errorMessage?: string | null
192
+ resolution?: string | null
191
193
  retryCount?: number | null
192
194
  errors?: __.Composition.of.many<TransactionSubmissionErrors>
193
195
  hasErrors?: boolean | null
@@ -392,6 +394,16 @@ export class UTxOAssets extends Array<UTxOAsset> {
392
394
  }
393
395
 
394
396
 
397
+ export declare const ResolveSubmission: {
398
+ // positional
399
+ (submissionId: string, outcome: _.ResolvedOutcome, txHash: string | null, note: string | null): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
400
+ // named
401
+ ({submissionId, outcome, txHash, note}: {submissionId: string, outcome: _.ResolvedOutcome, txHash?: string | null, note?: string | null}): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
402
+ // metadata (do not use)
403
+ __parameters: {submissionId: string, outcome: _.ResolvedOutcome, txHash?: string | null, note?: string | null}, __returns: globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null, __self: never
404
+ kind: 'action'
405
+ }
406
+
395
407
  export declare const BuildSimpleAdaTransaction: {
396
408
  // positional
397
409
  (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
@@ -48,6 +48,7 @@ module.exports.UTxOAsset = createEntityProxy(['CardanoTransactionService', 'UTxO
48
48
  module.exports.UTxOAssets = createEntityProxy(['CardanoTransactionService', 'UTxOAssets'], { target: { is_singular: false }})
49
49
  // events
50
50
  // actions
51
+ module.exports.ResolveSubmission = 'ResolveSubmission'
51
52
  module.exports.BuildSimpleAdaTransaction = 'BuildSimpleAdaTransaction'
52
53
  module.exports.BuildTransactionWithMetadata = 'BuildTransactionWithMetadata'
53
54
  module.exports.BuildMultiAssetTransaction = 'BuildMultiAssetTransaction'
@@ -7,6 +7,7 @@ export default class {
7
7
  static readonly CancelJob: typeof CancelJob;
8
8
  static readonly GetJobStatus: typeof GetJobStatus;
9
9
  static readonly GetWorkerStatus: typeof GetWorkerStatus;
10
+ static readonly ResolveJob: typeof ResolveJob;
10
11
  static readonly PauseWorker: typeof PauseWorker;
11
12
  static readonly ResumeWorker: typeof ResumeWorker;
12
13
  }
@@ -37,6 +38,11 @@ export declare function _WalletJobAspect<TBase extends new (...args: any[]) => o
37
38
  createdAt?: __.CdsTimestamp | null
38
39
  createdBy?: string | null
39
40
  finishedAt?: __.CdsTimestamp | null
41
+ resolution?: string | null
42
+ invalidationTxHash?: string | null
43
+ invalidationTxCbor?: string | null
44
+ invalidationSentAt?: __.CdsTimestamp | null
45
+ spendsNoWalletUtxo?: boolean | null
40
46
  } & InstanceType<TBase>
41
47
  readonly kind: 'entity';
42
48
  readonly keys: __.KeysOf<WalletJob>;
@@ -103,6 +109,8 @@ export declare function _JobStatusAspect<TBase extends new (...args: any[]) => o
103
109
  submittedAt?: __.CdsTimestamp | null
104
110
  confirmedAt?: __.CdsTimestamp | null
105
111
  finishedAt?: __.CdsTimestamp | null
112
+ resolution?: string | null
113
+ invalidationTxHash?: string | null
106
114
  } & InstanceType<TBase>
107
115
  readonly kind: 'type';
108
116
  readonly keys: __.KeysOf<JobStatus>;
@@ -120,6 +128,7 @@ export declare function _WorkerStatusAspect<TBase extends new (...args: any[]) =
120
128
  executing?: Array<string>
121
129
  awaitingConfirmation?: number | null
122
130
  pendingJobs?: number | null
131
+ unresolvedJobs?: number | null
123
132
  } & InstanceType<TBase>
124
133
  readonly kind: 'type';
125
134
  readonly keys: __.KeysOf<WorkerStatus>;
@@ -147,6 +156,15 @@ export declare class jobFailed {
147
156
  errorCode: string | null
148
157
  errorMessage: string | null
149
158
  }
159
+ // event
160
+ export declare class jobUnresolved {
161
+ readonly kind: 'event';
162
+ jobId: string | null
163
+ walletId: string | null
164
+ kind: string | null
165
+ txHash: string | null
166
+ errorMessage: string | null
167
+ }
150
168
 
151
169
  export declare const SubmitWalletJob: {
152
170
  // positional
@@ -188,6 +206,16 @@ export declare const GetWorkerStatus: {
188
206
  kind: 'function'
189
207
  }
190
208
 
209
+ export declare const ResolveJob: {
210
+ // positional
211
+ (jobId: string, outcome: _.ResolvedOutcome, txHash: string | null, note: string | null): globalThis.Promise<JobStatus | null> | JobStatus | null
212
+ // named
213
+ ({jobId, outcome, txHash, note}: {jobId: string, outcome: _.ResolvedOutcome, txHash?: string | null, note?: string | null}): globalThis.Promise<JobStatus | null> | JobStatus | null
214
+ // metadata (do not use)
215
+ __parameters: {jobId: string, outcome: _.ResolvedOutcome, txHash?: string | null, note?: string | null}, __returns: globalThis.Promise<JobStatus | null> | JobStatus | null, __self: never
216
+ kind: 'action'
217
+ }
218
+
191
219
  export declare const PauseWorker: {
192
220
  // positional
193
221
  (): globalThis.Promise<boolean | null> | boolean | null
@@ -22,11 +22,13 @@ module.exports.__Array_WorkerStatus_ = createEntityProxy(['CardanoWorkerService'
22
22
  // events
23
23
  module.exports.jobConfirmed = 'CardanoWorkerService.jobConfirmed'
24
24
  module.exports.jobFailed = 'CardanoWorkerService.jobFailed'
25
+ module.exports.jobUnresolved = 'CardanoWorkerService.jobUnresolved'
25
26
  // actions
26
27
  module.exports.SubmitWalletJob = 'SubmitWalletJob'
27
28
  module.exports.CancelJob = 'CancelJob'
28
29
  module.exports.GetJobStatus = 'GetJobStatus'
29
30
  module.exports.GetWorkerStatus = 'GetWorkerStatus'
31
+ module.exports.ResolveJob = 'ResolveJob'
30
32
  module.exports.PauseWorker = 'PauseWorker'
31
33
  module.exports.ResumeWorker = 'ResumeWorker'
32
34
  // enums
@@ -21,8 +21,9 @@ export const SubmissionStatus: {
21
21
  submitted: "submitted",
22
22
  confirmed: "confirmed",
23
23
  failed: "failed",
24
+ unresolved: "unresolved",
24
25
  }
25
- export type SubmissionStatus = "pending" | "submitted" | "confirmed" | "failed"
26
+ export type SubmissionStatus = "pending" | "submitted" | "confirmed" | "failed" | "unresolved"
26
27
 
27
28
  // enum
28
29
  export const SigningStatus: {
@@ -33,8 +34,9 @@ export const SigningStatus: {
33
34
  submitted: "submitted",
34
35
  expired: "expired",
35
36
  failed: "failed",
37
+ unresolved: "unresolved",
36
38
  }
37
- export type SigningStatus = "pending" | "signed" | "verified" | "submitting" | "submitted" | "expired" | "failed"
39
+ export type SigningStatus = "pending" | "signed" | "verified" | "submitting" | "submitted" | "expired" | "failed" | "unresolved"
38
40
 
39
41
  // enum
40
42
  export const CrawlSyncStatus: {
@@ -63,8 +65,16 @@ export const WalletJobStatus: {
63
65
  confirmed: "confirmed",
64
66
  failed: "failed",
65
67
  cancelled: "cancelled",
68
+ unresolved: "unresolved",
66
69
  }
67
- export type WalletJobStatus = "pending" | "building" | "submitting" | "submitted" | "confirmed" | "failed" | "cancelled"
70
+ export type WalletJobStatus = "pending" | "building" | "submitting" | "submitted" | "confirmed" | "failed" | "cancelled" | "unresolved"
71
+
72
+ // enum
73
+ export const ResolvedOutcome: {
74
+ confirmed: "confirmed",
75
+ failed: "failed",
76
+ }
77
+ export type ResolvedOutcome = "confirmed" | "failed"
68
78
 
69
79
  // enum
70
80
  export const WalletJobKind: {
@@ -39,11 +39,12 @@ module.exports.__Array_ParsedTransaction_ = createEntityProxy(['', 'ParsedTransa
39
39
  // events
40
40
  // actions
41
41
  // enums
42
- module.exports.SubmissionStatus ??= { pending: "pending", submitted: "submitted", confirmed: "confirmed", failed: "failed" }
43
- module.exports.SigningStatus ??= { pending: "pending", signed: "signed", verified: "verified", submitting: "submitting", submitted: "submitted", expired: "expired", failed: "failed" }
42
+ module.exports.SubmissionStatus ??= { pending: "pending", submitted: "submitted", confirmed: "confirmed", failed: "failed", unresolved: "unresolved" }
43
+ module.exports.SigningStatus ??= { pending: "pending", signed: "signed", verified: "verified", submitting: "submitting", submitted: "submitted", expired: "expired", failed: "failed", unresolved: "unresolved" }
44
44
  module.exports.CrawlSyncStatus ??= { stopped: "stopped", syncing: "syncing", synced: "synced", error: "error" }
45
45
  module.exports.ReorgStatus ??= { detected: "detected", rolling_back: "rolling_back", reindexing: "reindexing", completed: "completed" }
46
- module.exports.WalletJobStatus ??= { pending: "pending", building: "building", submitting: "submitting", submitted: "submitted", confirmed: "confirmed", failed: "failed", cancelled: "cancelled" }
46
+ module.exports.WalletJobStatus ??= { pending: "pending", building: "building", submitting: "submitting", submitted: "submitted", confirmed: "confirmed", failed: "failed", cancelled: "cancelled", unresolved: "unresolved" }
47
+ module.exports.ResolvedOutcome ??= { confirmed: "confirmed", failed: "failed" }
47
48
  module.exports.WalletJobKind ??= { simpleAda: "simpleAda", metadata: "metadata", multiAsset: "multiAsset", mint: "mint", plutusSpend: "plutusSpend", payout: "payout", submitSigned: "submitSigned" }
48
49
  module.exports.WorkerSignerType ??= { hsm: "hsm", software: "software" }
49
50
  module.exports.CardanoNetwork ??= { mainnet: "mainnet", preview: "preview", preprod: "preprod" }
@@ -42,6 +42,8 @@ export declare function _BlockAspect<TBase extends new (...args: any[]) => objec
42
42
  size?: number | null
43
43
  txCount?: number | null
44
44
  fees?: _.Lovelace | null
45
+ previousHash?: string | null
46
+ withdrawalsReported?: boolean | null
45
47
  } & InstanceType<TBase>
46
48
  readonly kind: 'entity';
47
49
  readonly keys: __.KeysOf<Block>;
@@ -67,6 +69,7 @@ export declare function _EpochAspect<TBase extends new (...args: any[]) => objec
67
69
  output?: string | null
68
70
  fees?: _.Lovelace | null
69
71
  activeStake?: _.Lovelace | null
72
+ final?: boolean | null
70
73
  } & InstanceType<TBase>
71
74
  readonly kind: 'entity';
72
75
  readonly keys: __.KeysOf<Epoch>;
@@ -252,6 +255,7 @@ export declare function _AssetAspect<TBase extends new (...args: any[]) => objec
252
255
  registryDescription?: string | null
253
256
  registryUrl?: string | null
254
257
  registryLogo?: string | null
258
+ firstSeenSlot?: number | null
255
259
  } & InstanceType<ReturnType<typeof _._temporalAspect<TBase>>>
256
260
  readonly kind: 'entity';
257
261
  readonly keys: __.KeysOf<Asset>;
@@ -441,6 +445,8 @@ export declare function _AccountAspect<TBase extends new (...args: any[]) => obj
441
445
  drepId_drepId?: _.Bech32 | null
442
446
  Address?: __.Composition.of.many<Addresses>
443
447
  hasAddresses?: boolean | null
448
+ addressCount?: number | null
449
+ addressList?: string | null
444
450
  } & InstanceType<ReturnType<typeof _._temporalAspect<TBase>>>
445
451
  readonly kind: 'entity';
446
452
  readonly keys: __.KeysOf<Account>;
@@ -1076,6 +1082,7 @@ export declare function _TransactionSubmissionAspect<TBase extends new (...args:
1076
1082
  status?: _.SubmissionStatus | null
1077
1083
  errorCode?: string | null
1078
1084
  errorMessage?: string | null
1085
+ resolution?: string | null
1079
1086
  retryCount?: number | null
1080
1087
  errors?: __.Composition.of.many<TransactionSubmissionErrors>
1081
1088
  hasErrors?: boolean | null
@@ -1200,6 +1207,7 @@ export declare function _SigningRequestAspect<TBase extends new (...args: any[])
1200
1207
  submission?: __.Association.to<TransactionSubmission> | null
1201
1208
  submission_id?: string | null
1202
1209
  errorMessage?: string | null
1210
+ resolution?: string | null
1203
1211
  } & InstanceType<TBase>
1204
1212
  readonly kind: 'entity';
1205
1213
  readonly keys: __.KeysOf<SigningRequest>;
@@ -1264,6 +1272,7 @@ export declare function _CardanoSyncStateAspect<TBase extends new (...args: any[
1264
1272
  utxoAppliedSlot?: number | null
1265
1273
  utxoSetError?: string | null
1266
1274
  leaseUntil?: __.CdsTimestamp | null
1275
+ nodeBehindSince?: __.CdsTimestamp | null
1267
1276
  } & InstanceType<TBase>
1268
1277
  readonly kind: 'entity';
1269
1278
  readonly keys: __.KeysOf<CardanoSyncState>;
@@ -1352,6 +1361,11 @@ export declare function _CardanoWalletJobAspect<TBase extends new (...args: any[
1352
1361
  createdAt?: __.CdsTimestamp | null
1353
1362
  createdBy?: string | null
1354
1363
  finishedAt?: __.CdsTimestamp | null
1364
+ resolution?: string | null
1365
+ invalidationTxHash?: string | null
1366
+ invalidationTxCbor?: string | null
1367
+ invalidationSentAt?: __.CdsTimestamp | null
1368
+ spendsNoWalletUtxo?: boolean | null
1355
1369
  } & InstanceType<TBase>
1356
1370
  readonly kind: 'entity';
1357
1371
  readonly keys: __.KeysOf<CardanoWalletJob>;