@odatano/core 2.0.0-rc.5 → 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 (239) hide show
  1. package/@cds-models/CardanoAgentService/index.d.ts +99 -51
  2. package/@cds-models/CardanoAgentService/index.js +15 -0
  3. package/@cds-models/CardanoBackendService/index.d.ts +358 -0
  4. package/@cds-models/CardanoBackendService/index.js +41 -0
  5. package/@cds-models/CardanoIndexerService/index.d.ts +594 -11
  6. package/@cds-models/CardanoIndexerService/index.js +74 -0
  7. package/@cds-models/CardanoODataService/index.d.ts +417 -57
  8. package/@cds-models/CardanoODataService/index.js +42 -0
  9. package/@cds-models/CardanoSignService/index.d.ts +45 -19
  10. package/@cds-models/CardanoSignService/index.js +4 -0
  11. package/@cds-models/CardanoTransactionService/index.d.ts +70 -44
  12. package/@cds-models/CardanoTransactionService/index.js +5 -0
  13. package/@cds-models/CardanoWorkerService/index.d.ts +35 -22
  14. package/@cds-models/CardanoWorkerService/index.js +2 -0
  15. package/@cds-models/index.d.ts +114 -4
  16. package/@cds-models/index.js +20 -4
  17. package/@cds-models/odatano/cardano/index.d.ts +451 -32
  18. package/@cds-models/odatano/cardano/index.js +48 -0
  19. package/README.md +103 -167
  20. package/db/schema.cds +2455 -1705
  21. package/db/types.cds +456 -295
  22. package/package.json +41 -53
  23. package/scripts/deploy-schema.mjs +113 -0
  24. package/scripts/migrate-schema.mjs +528 -0
  25. package/scripts/migrate-slot-leader.mjs +96 -0
  26. package/src/index.d.ts +20 -21
  27. package/src/index.js +45 -31
  28. package/src/plugin.js +17 -35
  29. package/srv/blockchain/asset-decimals.d.ts +7 -0
  30. package/srv/blockchain/asset-decimals.js +91 -0
  31. package/srv/blockchain/backends/blockfrost-backend.d.ts +25 -137
  32. package/srv/blockchain/backends/blockfrost-backend.js +125 -215
  33. package/srv/blockchain/backends/call-signal.d.ts +7 -0
  34. package/srv/blockchain/backends/call-signal.js +22 -0
  35. package/srv/blockchain/backends/cardano-backend.d.ts +100 -189
  36. package/srv/blockchain/backends/cardano-backend.js +29 -5
  37. package/srv/blockchain/backends/koios-backend.d.ts +108 -170
  38. package/srv/blockchain/backends/koios-backend.js +488 -482
  39. package/srv/blockchain/backends/odatano-backend.d.ts +55 -0
  40. package/srv/blockchain/backends/odatano-backend.js +211 -0
  41. package/srv/blockchain/backends/ogmios-backend.d.ts +122 -190
  42. package/srv/blockchain/backends/ogmios-backend.js +683 -327
  43. package/srv/blockchain/backends/ogmios-frame-guard.d.ts +14 -0
  44. package/srv/blockchain/backends/ogmios-frame-guard.js +89 -0
  45. package/srv/blockchain/cardano-client.d.ts +71 -241
  46. package/srv/blockchain/cardano-client.js +354 -322
  47. package/srv/blockchain/cardano-indexer.d.ts +295 -283
  48. package/srv/blockchain/cardano-indexer.js +1690 -502
  49. package/srv/blockchain/cardano-tx-builder.d.ts +25 -89
  50. package/srv/blockchain/cardano-tx-builder.js +164 -140
  51. package/srv/blockchain/circuit-breaker.d.ts +2 -13
  52. package/srv/blockchain/circuit-breaker.js +11 -15
  53. package/srv/blockchain/crawler/account-snapshots.d.ts +29 -0
  54. package/srv/blockchain/crawler/account-snapshots.js +173 -0
  55. package/srv/blockchain/crawler/asset-decimals-backfill.d.ts +17 -0
  56. package/srv/blockchain/crawler/asset-decimals-backfill.js +56 -0
  57. package/srv/blockchain/crawler/asset-registry-backfill.d.ts +46 -0
  58. package/srv/blockchain/crawler/asset-registry-backfill.js +157 -0
  59. package/srv/blockchain/crawler/asset-slice-backfill.d.ts +35 -0
  60. package/srv/blockchain/crawler/asset-slice-backfill.js +149 -0
  61. package/srv/blockchain/crawler/certificate-backfill.d.ts +56 -0
  62. package/srv/blockchain/crawler/certificate-backfill.js +174 -0
  63. package/srv/blockchain/crawler/crawler.d.ts +125 -81
  64. package/srv/blockchain/crawler/crawler.js +738 -167
  65. package/srv/blockchain/crawler/credential-backfill.d.ts +30 -0
  66. package/srv/blockchain/crawler/credential-backfill.js +101 -0
  67. package/srv/blockchain/crawler/hooks.d.ts +2 -17
  68. package/srv/blockchain/crawler/index.d.ts +1 -8
  69. package/srv/blockchain/crawler/index.js +31 -17
  70. package/srv/blockchain/crawler/input-asset-copies.d.ts +34 -0
  71. package/srv/blockchain/crawler/input-asset-copies.js +161 -0
  72. package/srv/blockchain/crawler/key-pages.d.ts +12 -0
  73. package/srv/blockchain/crawler/key-pages.js +48 -0
  74. package/srv/blockchain/crawler/metadata-position-backfill.d.ts +22 -0
  75. package/srv/blockchain/crawler/metadata-position-backfill.js +59 -0
  76. package/srv/blockchain/crawler/output-datum-backfill.d.ts +41 -0
  77. package/srv/blockchain/crawler/output-datum-backfill.js +100 -0
  78. package/srv/blockchain/crawler/sync-state.d.ts +31 -47
  79. package/srv/blockchain/crawler/sync-state.js +135 -128
  80. package/srv/blockchain/crawler/transaction-backfill.d.ts +46 -0
  81. package/srv/blockchain/crawler/transaction-backfill.js +271 -0
  82. package/srv/blockchain/crawler/utxo-set-import.d.ts +66 -0
  83. package/srv/blockchain/crawler/utxo-set-import.js +399 -0
  84. package/srv/blockchain/crawler/window-plan.d.ts +31 -0
  85. package/srv/blockchain/crawler/window-plan.js +59 -0
  86. package/srv/blockchain/ledger-state.d.ts +62 -0
  87. package/srv/blockchain/ledger-state.js +521 -0
  88. package/srv/blockchain/pending-spends.d.ts +16 -0
  89. package/srv/blockchain/pending-spends.js +81 -0
  90. package/srv/blockchain/pool-metadata.d.ts +15 -0
  91. package/srv/blockchain/pool-metadata.js +132 -0
  92. package/srv/blockchain/request-coalescer.d.ts +2 -16
  93. package/srv/blockchain/request-coalescer.js +2 -16
  94. package/srv/blockchain/signing/cose-verifier.d.ts +3 -17
  95. package/srv/blockchain/signing/cose-verifier.js +146 -70
  96. package/srv/blockchain/signing/external-signer.d.ts +15 -115
  97. package/srv/blockchain/signing/external-signer.js +22 -131
  98. package/srv/blockchain/signing/failed-recheck.d.ts +17 -0
  99. package/srv/blockchain/signing/failed-recheck.js +135 -0
  100. package/srv/blockchain/signing/hsm-signer.d.ts +10 -54
  101. package/srv/blockchain/signing/hsm-signer.js +28 -79
  102. package/srv/blockchain/signing/landing-proof.d.ts +60 -0
  103. package/srv/blockchain/signing/landing-proof.js +224 -0
  104. package/srv/blockchain/signing/signature-verifier.d.ts +9 -47
  105. package/srv/blockchain/signing/signature-verifier.js +71 -87
  106. package/srv/blockchain/signing/submission-finalizer.d.ts +37 -45
  107. package/srv/blockchain/signing/submission-finalizer.js +280 -86
  108. package/srv/blockchain/stored-chain.d.ts +19 -0
  109. package/srv/blockchain/stored-chain.js +258 -0
  110. package/srv/blockchain/transaction-building/buildooor-tx.d.ts +31 -229
  111. package/srv/blockchain/transaction-building/buildooor-tx.js +663 -421
  112. package/srv/blockchain/transaction-building/cardano-tx.d.ts +9 -37
  113. package/srv/blockchain/transaction-presence.d.ts +12 -0
  114. package/srv/blockchain/transaction-presence.js +29 -0
  115. package/srv/blockchain/transaction-rows.d.ts +12 -0
  116. package/srv/blockchain/transaction-rows.js +44 -0
  117. package/srv/blockchain/wallet-worker/build-request.d.ts +8 -23
  118. package/srv/blockchain/wallet-worker/build-request.js +40 -353
  119. package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +27 -47
  120. package/srv/blockchain/wallet-worker/confirmation-tracker.js +158 -61
  121. package/srv/blockchain/wallet-worker/index.d.ts +1 -1
  122. package/srv/blockchain/wallet-worker/index.js +3 -11
  123. package/srv/blockchain/wallet-worker/invalidation.d.ts +35 -0
  124. package/srv/blockchain/wallet-worker/invalidation.js +128 -0
  125. package/srv/blockchain/wallet-worker/job-store.d.ts +58 -150
  126. package/srv/blockchain/wallet-worker/job-store.js +200 -273
  127. package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +2 -26
  128. package/srv/blockchain/wallet-worker/lease-heartbeat.js +6 -28
  129. package/srv/blockchain/wallet-worker/signers.d.ts +5 -24
  130. package/srv/blockchain/wallet-worker/signers.js +4 -12
  131. package/srv/blockchain/wallet-worker/wallet-worker.d.ts +29 -82
  132. package/srv/blockchain/wallet-worker/wallet-worker.js +334 -198
  133. package/srv/cardano-agent-service.cds +122 -84
  134. package/srv/cardano-agent-service.js +12 -9
  135. package/srv/cardano-backend-service.cds +81 -0
  136. package/srv/cardano-backend-service.d.ts +2 -0
  137. package/srv/cardano-backend-service.js +259 -0
  138. package/srv/cardano-indexer-service.cds +393 -18
  139. package/srv/cardano-indexer-service.d.ts +5 -1
  140. package/srv/cardano-indexer-service.js +477 -16
  141. package/srv/cardano-service.cds +426 -269
  142. package/srv/cardano-service.js +640 -217
  143. package/srv/cardano-sign-service.cds +211 -180
  144. package/srv/cardano-sign-service.js +210 -287
  145. package/srv/cardano-tx-service.cds +462 -370
  146. package/srv/cardano-tx-service.js +283 -800
  147. package/srv/cardano-ui.cds +16 -16
  148. package/srv/cardano-worker-service.cds +141 -125
  149. package/srv/cardano-worker-service.js +104 -61
  150. package/srv/cbor/cip68.d.ts +13 -0
  151. package/srv/cbor/cip68.js +56 -0
  152. package/srv/cbor/index.d.ts +3 -1
  153. package/srv/cbor/index.js +9 -1
  154. package/srv/cbor/parse.d.ts +30 -18
  155. package/srv/cbor/parse.js +44 -9
  156. package/srv/cbor/plutus-data-json.d.ts +20 -0
  157. package/srv/cbor/plutus-data-json.js +32 -0
  158. package/srv/config.d.ts +117 -0
  159. package/srv/config.js +419 -0
  160. package/srv/server.d.ts +15 -110
  161. package/srv/server.js +83 -405
  162. package/srv/utils/agent-access.d.ts +11 -0
  163. package/srv/utils/agent-access.js +86 -0
  164. package/srv/utils/agent-grants-config.d.ts +0 -46
  165. package/srv/utils/agent-grants-config.js +17 -85
  166. package/srv/utils/agent-grants.d.ts +106 -122
  167. package/srv/utils/agent-grants.js +538 -237
  168. package/srv/utils/agent-token-auth.d.ts +4 -99
  169. package/srv/utils/agent-token-auth.js +62 -186
  170. package/srv/utils/backend-request-handler.d.ts +3 -17
  171. package/srv/utils/backend-request-handler.js +3 -18
  172. package/srv/utils/build-request.d.ts +52 -0
  173. package/srv/utils/build-request.js +487 -0
  174. package/srv/utils/collections.d.ts +4 -10
  175. package/srv/utils/collections.js +14 -10
  176. package/srv/utils/const.d.ts +32 -75
  177. package/srv/utils/const.js +40 -80
  178. package/srv/utils/crypto.d.ts +3 -12
  179. package/srv/utils/crypto.js +11 -25
  180. package/srv/utils/db-indexes.d.ts +31 -0
  181. package/srv/utils/db-indexes.js +185 -0
  182. package/srv/utils/db-kind.d.ts +23 -0
  183. package/srv/utils/db-kind.js +42 -0
  184. package/srv/utils/db-sanitize.d.ts +20 -0
  185. package/srv/utils/db-sanitize.js +80 -0
  186. package/srv/utils/deep-json.d.ts +6 -0
  187. package/srv/utils/deep-json.js +240 -0
  188. package/srv/utils/detached-run.d.ts +41 -0
  189. package/srv/utils/detached-run.js +101 -0
  190. package/srv/utils/epoch-slots.d.ts +14 -0
  191. package/srv/utils/epoch-slots.js +45 -0
  192. package/srv/utils/error-codes.d.ts +26 -75
  193. package/srv/utils/error-codes.js +27 -72
  194. package/srv/utils/errors.d.ts +55 -187
  195. package/srv/utils/errors.js +161 -235
  196. package/srv/utils/lease.d.ts +20 -0
  197. package/srv/utils/lease.js +62 -0
  198. package/srv/utils/liveness.d.ts +12 -0
  199. package/srv/utils/liveness.js +35 -0
  200. package/srv/utils/mappers.d.ts +111 -223
  201. package/srv/utils/mappers.js +432 -371
  202. package/srv/utils/navigation.d.ts +17 -0
  203. package/srv/utils/navigation.js +52 -0
  204. package/srv/utils/network-context.d.ts +0 -1
  205. package/srv/utils/network-context.js +9 -15
  206. package/srv/utils/paging.d.ts +31 -0
  207. package/srv/utils/paging.js +43 -0
  208. package/srv/utils/pg-inline-json.d.ts +8 -0
  209. package/srv/utils/pg-inline-json.js +58 -0
  210. package/srv/utils/pg-order-nulls.d.ts +14 -0
  211. package/srv/utils/pg-order-nulls.js +54 -0
  212. package/srv/utils/plutus-placeholders.d.ts +16 -22
  213. package/srv/utils/plutus-placeholders.js +62 -33
  214. package/srv/utils/rate-limiter.d.ts +2 -21
  215. package/srv/utils/rate-limiter.js +5 -17
  216. package/srv/utils/readiness.d.ts +12 -0
  217. package/srv/utils/readiness.js +29 -0
  218. package/srv/utils/reference-script.d.ts +19 -0
  219. package/srv/utils/reference-script.js +84 -0
  220. package/srv/utils/resolution.d.ts +13 -0
  221. package/srv/utils/resolution.js +47 -0
  222. package/srv/utils/result-numbers.d.ts +15 -0
  223. package/srv/utils/result-numbers.js +61 -0
  224. package/srv/utils/row-values.d.ts +7 -0
  225. package/srv/utils/row-values.js +27 -0
  226. package/srv/utils/service-events.d.ts +0 -24
  227. package/srv/utils/service-events.js +3 -25
  228. package/srv/utils/signing-helper.d.ts +3 -20
  229. package/srv/utils/signing-helper.js +35 -64
  230. package/srv/utils/tx-build-helper.d.ts +25 -105
  231. package/srv/utils/tx-build-helper.js +108 -156
  232. package/srv/utils/tx-request-parsers.d.ts +82 -33
  233. package/srv/utils/tx-request-parsers.js +401 -49
  234. package/srv/utils/tx-utils.d.ts +3 -27
  235. package/srv/utils/tx-utils.js +32 -50
  236. package/srv/utils/types.d.ts +294 -232
  237. package/srv/utils/types.js +2 -22
  238. package/srv/utils/validators.d.ts +22 -92
  239. package/srv/utils/validators.js +60 -170
@@ -2,27 +2,12 @@
2
2
  import * as _ from './..';
3
3
  import * as __ from './../_';
4
4
 
5
- /**
6
- * Cardano Wallet Worker Service (v2.0)
7
- *
8
- * Control + observability surface for the wallet worker / job engine:
9
- * - job submission (async build → sign → submit → confirm from server-side wallets)
10
- * - job status polling + cancellation
11
- * - read-only projections of jobs and registered worker wallets
12
- * - pause/resume of the local worker instance (admin)
13
- *
14
- * Security note: SubmitWalletJob executes value transfers with server-held keys —
15
- * the service requires authentication throughout; control actions and foreign-job
16
- * visibility are gated behind the Admin role. Jobs on HSM-backed wallets addition-
17
- * ally require the configured hsm.requiresRole (HSM_REQUIRES_ROLE), the same gate
18
- * the synchronous SignWithHsm path enforces. Keys are NEVER accepted or exposed
19
- * through this surface.
20
- */
21
5
  export default class {
22
6
  static readonly SubmitWalletJob: typeof SubmitWalletJob;
23
7
  static readonly CancelJob: typeof CancelJob;
24
8
  static readonly GetJobStatus: typeof GetJobStatus;
25
9
  static readonly GetWorkerStatus: typeof GetWorkerStatus;
10
+ static readonly ResolveJob: typeof ResolveJob;
26
11
  static readonly PauseWorker: typeof PauseWorker;
27
12
  static readonly ResumeWorker: typeof ResumeWorker;
28
13
  }
@@ -53,6 +38,11 @@ export declare function _WalletJobAspect<TBase extends new (...args: any[]) => o
53
38
  createdAt?: __.CdsTimestamp | null
54
39
  createdBy?: string | null
55
40
  finishedAt?: __.CdsTimestamp | null
41
+ resolution?: string | null
42
+ invalidationTxHash?: string | null
43
+ invalidationTxCbor?: string | null
44
+ invalidationSentAt?: __.CdsTimestamp | null
45
+ spendsNoWalletUtxo?: boolean | null
56
46
  } & InstanceType<TBase>
57
47
  readonly kind: 'entity';
58
48
  readonly keys: __.KeysOf<WalletJob>;
@@ -72,6 +62,7 @@ export declare function _WorkerWalletAspect<TBase extends new (...args: any[]) =
72
62
  signerType?: _.WorkerSignerType | null
73
63
  address?: _.Bech32 | null
74
64
  publicKeyHash?: _.Blake2b224 | null
65
+ requiresRole?: string | null
75
66
  enabled?: boolean | null
76
67
  lastJobAt?: __.CdsTimestamp | null
77
68
  jobsConfirmed?: number | null
@@ -118,6 +109,8 @@ export declare function _JobStatusAspect<TBase extends new (...args: any[]) => o
118
109
  submittedAt?: __.CdsTimestamp | null
119
110
  confirmedAt?: __.CdsTimestamp | null
120
111
  finishedAt?: __.CdsTimestamp | null
112
+ resolution?: string | null
113
+ invalidationTxHash?: string | null
121
114
  } & InstanceType<TBase>
122
115
  readonly kind: 'type';
123
116
  readonly keys: __.KeysOf<JobStatus>;
@@ -135,6 +128,7 @@ export declare function _WorkerStatusAspect<TBase extends new (...args: any[]) =
135
128
  executing?: Array<string>
136
129
  awaitingConfirmation?: number | null
137
130
  pendingJobs?: number | null
131
+ unresolvedJobs?: number | null
138
132
  } & InstanceType<TBase>
139
133
  readonly kind: 'type';
140
134
  readonly keys: __.KeysOf<WorkerStatus>;
@@ -162,14 +156,23 @@ export declare class jobFailed {
162
156
  errorCode: string | null
163
157
  errorMessage: string | null
164
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
+ }
165
168
 
166
169
  export declare const SubmitWalletJob: {
167
170
  // positional
168
- (walletId: string | null, kind: string | null, requestJson: string | null, idempotencyKey: string | null, priority: number | null, notBefore: __.CdsTimestamp | null): globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null
171
+ (walletId: string | null, kind: _.WalletJobKind | null, requestJson: string | null, idempotencyKey: string | null, priority: number | null, notBefore: __.CdsTimestamp | null): globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null
169
172
  // named
170
- ({walletId, kind, requestJson, idempotencyKey, priority, notBefore}: {walletId?: string | null, kind?: string | null, requestJson?: string | null, idempotencyKey?: string | null, priority?: number | null, notBefore?: __.CdsTimestamp | null}): globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null
173
+ ({walletId, kind, requestJson, idempotencyKey, priority, notBefore}: {walletId?: string | null, kind?: _.WalletJobKind | null, requestJson?: string | null, idempotencyKey?: string | null, priority?: number | null, notBefore?: __.CdsTimestamp | null}): globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null
171
174
  // metadata (do not use)
172
- __parameters: {walletId?: string | null, kind?: string | null, requestJson?: string | null, idempotencyKey?: string | null, priority?: number | null, notBefore?: __.CdsTimestamp | null}, __returns: globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null, __self: never
175
+ __parameters: {walletId?: string | null, kind?: _.WalletJobKind | null, requestJson?: string | null, idempotencyKey?: string | null, priority?: number | null, notBefore?: __.CdsTimestamp | null}, __returns: globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null, __self: never
173
176
  kind: 'action'
174
177
  }
175
178
 
@@ -185,11 +188,11 @@ export declare const CancelJob: {
185
188
 
186
189
  export declare const GetJobStatus: {
187
190
  // positional
188
- (jobId: string | null): globalThis.Promise<JobStatus | null> | JobStatus | null
191
+ (jobId: string | null, waitMs: number | null): globalThis.Promise<JobStatus | null> | JobStatus | null
189
192
  // named
190
- ({jobId}: {jobId?: string | null}): globalThis.Promise<JobStatus | null> | JobStatus | null
193
+ ({jobId, waitMs}: {jobId?: string | null, waitMs?: number | null}): globalThis.Promise<JobStatus | null> | JobStatus | null
191
194
  // metadata (do not use)
192
- __parameters: {jobId?: string | null}, __returns: globalThis.Promise<JobStatus | null> | JobStatus | null, __self: never
195
+ __parameters: {jobId?: string | null, waitMs?: number | null}, __returns: globalThis.Promise<JobStatus | null> | JobStatus | null, __self: never
193
196
  kind: 'function'
194
197
  }
195
198
 
@@ -203,6 +206,16 @@ export declare const GetWorkerStatus: {
203
206
  kind: 'function'
204
207
  }
205
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
+
206
219
  export declare const PauseWorker: {
207
220
  // positional
208
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
@@ -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;
@@ -20,8 +21,9 @@ export const SubmissionStatus: {
20
21
  submitted: "submitted",
21
22
  confirmed: "confirmed",
22
23
  failed: "failed",
24
+ unresolved: "unresolved",
23
25
  }
24
- export type SubmissionStatus = "pending" | "submitted" | "confirmed" | "failed"
26
+ export type SubmissionStatus = "pending" | "submitted" | "confirmed" | "failed" | "unresolved"
25
27
 
26
28
  // enum
27
29
  export const SigningStatus: {
@@ -32,8 +34,9 @@ export const SigningStatus: {
32
34
  submitted: "submitted",
33
35
  expired: "expired",
34
36
  failed: "failed",
37
+ unresolved: "unresolved",
35
38
  }
36
- export type SigningStatus = "pending" | "signed" | "verified" | "submitting" | "submitted" | "expired" | "failed"
39
+ export type SigningStatus = "pending" | "signed" | "verified" | "submitting" | "submitted" | "expired" | "failed" | "unresolved"
37
40
 
38
41
  // enum
39
42
  export const CrawlSyncStatus: {
@@ -62,8 +65,16 @@ export const WalletJobStatus: {
62
65
  confirmed: "confirmed",
63
66
  failed: "failed",
64
67
  cancelled: "cancelled",
68
+ unresolved: "unresolved",
65
69
  }
66
- 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"
67
78
 
68
79
  // enum
69
80
  export const WalletJobKind: {
@@ -72,9 +83,10 @@ export const WalletJobKind: {
72
83
  multiAsset: "multiAsset",
73
84
  mint: "mint",
74
85
  plutusSpend: "plutusSpend",
86
+ payout: "payout",
75
87
  submitSigned: "submitSigned",
76
88
  }
77
- export type WalletJobKind = "simpleAda" | "metadata" | "multiAsset" | "mint" | "plutusSpend" | "submitSigned"
89
+ export type WalletJobKind = "simpleAda" | "metadata" | "multiAsset" | "mint" | "plutusSpend" | "payout" | "submitSigned"
78
90
 
79
91
  // enum
80
92
  export const WorkerSignerType: {
@@ -83,6 +95,30 @@ export const WorkerSignerType: {
83
95
  }
84
96
  export type WorkerSignerType = "hsm" | "software"
85
97
 
98
+ // enum
99
+ export const CardanoNetwork: {
100
+ mainnet: "mainnet",
101
+ preview: "preview",
102
+ preprod: "preprod",
103
+ }
104
+ export type CardanoNetwork = "mainnet" | "preview" | "preprod"
105
+
106
+ // enum
107
+ export const UtxoSetImportSource: {
108
+ ogmios: "ogmios",
109
+ file: "file",
110
+ aggregates: "aggregates",
111
+ scripts: "scripts",
112
+ }
113
+ export type UtxoSetImportSource = "ogmios" | "file" | "aggregates" | "scripts"
114
+
115
+ // enum
116
+ export const AssetRegistrySource: {
117
+ koios: "koios",
118
+ file: "file",
119
+ }
120
+ export type AssetRegistrySource = "koios" | "file"
121
+
86
122
  // the following represents the CDS aspect 'cuid'
87
123
  export declare function _cuidAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
88
124
  new (...args: any[]): {
@@ -181,6 +217,23 @@ export declare function _AssetSliceAspect<TBase extends new (...args: any[]) =>
181
217
  export class AssetSlice extends _AssetSliceAspect(__.Entity) {
182
218
  }
183
219
 
220
+ // entity 'AssetSumSlice'
221
+ export declare function _AssetSumSliceAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
222
+ new (...args: any[]): {
223
+ quantity?: AssetAmount | null
224
+ policyId?: Blake2b224 | null
225
+ assetNameHex?: HexBytes | null
226
+ assetName?: string | null
227
+ fingerprint?: string | null
228
+ } & InstanceType<TBase>
229
+ readonly kind: 'type';
230
+ readonly keys: __.KeysOf<AssetSumSlice>;
231
+ readonly elements: __.ElementsOf<AssetSumSlice>;
232
+ readonly actions: globalThis.Record<never, never>;
233
+ };
234
+ export class AssetSumSlice extends _AssetSumSliceAspect(__.Entity) {
235
+ }
236
+
184
237
  // entity 'MetadataSlice'
185
238
  export declare function _MetadataSliceAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
186
239
  new (...args: any[]): {
@@ -201,6 +254,9 @@ export declare function _UTxODataSliceAspect<TBase extends new (...args: any[])
201
254
  dataHash?: Blake2b256 | null
202
255
  inlineDatum?: string | null
203
256
  referenceScriptHash?: Blake2b256 | null
257
+ referenceScriptSize?: number | null
258
+ referenceScriptType?: string | null
259
+ paymentCredential?: string | null
204
260
  } & InstanceType<TBase>
205
261
  readonly kind: 'type';
206
262
  readonly keys: __.KeysOf<UTxODataSlice>;
@@ -210,6 +266,22 @@ export declare function _UTxODataSliceAspect<TBase extends new (...args: any[])
210
266
  export class UTxODataSlice extends _UTxODataSliceAspect(__.Entity) {
211
267
  }
212
268
 
269
+ // entity 'TransactionConfirmations'
270
+ export declare function _TransactionConfirmationsAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
271
+ new (...args: any[]): {
272
+ txHash?: Blake2b256 | null
273
+ blockHeight?: number | null
274
+ tipHeight?: number | null
275
+ confirmations?: number | null
276
+ } & InstanceType<TBase>
277
+ readonly kind: 'type';
278
+ readonly keys: __.KeysOf<TransactionConfirmations>;
279
+ readonly elements: __.ElementsOf<TransactionConfirmations>;
280
+ readonly actions: globalThis.Record<never, never>;
281
+ };
282
+ export class TransactionConfirmations extends _TransactionConfirmationsAspect(__.Entity) {
283
+ }
284
+
213
285
  // entity 'ParsedInput'
214
286
  export declare function _ParsedInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
215
287
  new (...args: any[]): {
@@ -247,6 +319,7 @@ export declare function _ParsedOutputAspect<TBase extends new (...args: any[]) =
247
319
  datumHash?: Blake2b256 | null
248
320
  inlineDatumHex?: string | null
249
321
  referenceScriptHex?: string | null
322
+ cborSize?: number | null
250
323
  } & InstanceType<TBase>
251
324
  readonly kind: 'type';
252
325
  readonly keys: __.KeysOf<ParsedOutput>;
@@ -256,6 +329,34 @@ export declare function _ParsedOutputAspect<TBase extends new (...args: any[]) =
256
329
  export class ParsedOutput extends _ParsedOutputAspect(__.Entity) {
257
330
  }
258
331
 
332
+ // entity 'ParsedWithdrawal'
333
+ export declare function _ParsedWithdrawalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
334
+ new (...args: any[]): {
335
+ rewardAddress?: Bech32 | null
336
+ lovelace?: Lovelace | null
337
+ } & InstanceType<TBase>
338
+ readonly kind: 'type';
339
+ readonly keys: __.KeysOf<ParsedWithdrawal>;
340
+ readonly elements: __.ElementsOf<ParsedWithdrawal>;
341
+ readonly actions: globalThis.Record<never, never>;
342
+ };
343
+ export class ParsedWithdrawal extends _ParsedWithdrawalAspect(__.Entity) {
344
+ }
345
+
346
+ // entity 'ParsedCertificate'
347
+ export declare function _ParsedCertificateAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
348
+ new (...args: any[]): {
349
+ index?: number | null
350
+ type?: string | null
351
+ } & InstanceType<TBase>
352
+ readonly kind: 'type';
353
+ readonly keys: __.KeysOf<ParsedCertificate>;
354
+ readonly elements: __.ElementsOf<ParsedCertificate>;
355
+ readonly actions: globalThis.Record<never, never>;
356
+ };
357
+ export class ParsedCertificate extends _ParsedCertificateAspect(__.Entity) {
358
+ }
359
+
259
360
  // entity 'ParsedWitnesses'
260
361
  export declare function _ParsedWitnessesAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
261
362
  new (...args: any[]): {
@@ -278,6 +379,7 @@ export declare function _ParsedTransactionAspect<TBase extends new (...args: any
278
379
  new (...args: any[]): {
279
380
  txHash?: Blake2b256 | null
280
381
  network?: string | null
382
+ networkId?: number | null
281
383
  inputs?: Array<ParsedInput>
282
384
  outputs?: Array<ParsedOutput>
283
385
  validityStart?: string | null
@@ -286,8 +388,16 @@ export declare function _ParsedTransactionAspect<TBase extends new (...args: any
286
388
  mint?: Array<ParsedAsset>
287
389
  metadataLabels?: Array<string>
288
390
  collateral?: Array<ParsedInput>
391
+ referenceInputs?: Array<ParsedInput>
392
+ withdrawals?: Array<ParsedWithdrawal>
393
+ certificates?: Array<ParsedCertificate>
394
+ votingProcedures?: number | null
395
+ proposalProcedures?: number | null
396
+ treasuryDonation?: Lovelace | null
397
+ currentTreasuryValue?: Lovelace | null
289
398
  requiredSigners?: Array<Blake2b224>
290
399
  scriptDataHash?: Blake2b256 | null
400
+ isValid?: boolean | null
291
401
  witnesses?: ParsedWitnesses | null
292
402
  } & InstanceType<TBase>
293
403
  readonly kind: 'type';
@@ -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 }})
@@ -27,10 +39,14 @@ module.exports.__Array_ParsedTransaction_ = createEntityProxy(['', 'ParsedTransa
27
39
  // events
28
40
  // actions
29
41
  // enums
30
- module.exports.SubmissionStatus ??= { pending: "pending", submitted: "submitted", confirmed: "confirmed", failed: "failed" }
31
- 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" }
32
44
  module.exports.CrawlSyncStatus ??= { stopped: "stopped", syncing: "syncing", synced: "synced", error: "error" }
33
45
  module.exports.ReorgStatus ??= { detected: "detected", rolling_back: "rolling_back", reindexing: "reindexing", completed: "completed" }
34
- module.exports.WalletJobStatus ??= { pending: "pending", building: "building", submitting: "submitting", submitted: "submitted", confirmed: "confirmed", failed: "failed", cancelled: "cancelled" }
35
- module.exports.WalletJobKind ??= { simpleAda: "simpleAda", metadata: "metadata", multiAsset: "multiAsset", mint: "mint", plutusSpend: "plutusSpend", submitSigned: "submitSigned" }
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" }
48
+ module.exports.WalletJobKind ??= { simpleAda: "simpleAda", metadata: "metadata", multiAsset: "multiAsset", mint: "mint", plutusSpend: "plutusSpend", payout: "payout", submitSigned: "submitSigned" }
36
49
  module.exports.WorkerSignerType ??= { hsm: "hsm", software: "software" }
50
+ module.exports.CardanoNetwork ??= { mainnet: "mainnet", preview: "preview", preprod: "preprod" }
51
+ module.exports.UtxoSetImportSource ??= { ogmios: "ogmios", file: "file", aggregates: "aggregates", scripts: "scripts" }
52
+ module.exports.AssetRegistrySource ??= { koios: "koios", file: "file" }