@odatano/core 2.0.0-rc.4 → 2.0.0-rc.41

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 (166) hide show
  1. package/@cds-models/CardanoAgentService/index.d.ts +251 -0
  2. package/@cds-models/CardanoAgentService/index.js +36 -0
  3. package/@cds-models/CardanoBackendService/index.d.ts +357 -0
  4. package/@cds-models/CardanoBackendService/index.js +40 -0
  5. package/@cds-models/CardanoIndexerService/index.d.ts +194 -2
  6. package/@cds-models/CardanoIndexerService/index.js +25 -0
  7. package/@cds-models/CardanoODataService/index.d.ts +305 -7
  8. package/@cds-models/CardanoODataService/index.js +34 -0
  9. package/@cds-models/CardanoSignService/index.d.ts +28 -3
  10. package/@cds-models/CardanoSignService/index.js +3 -0
  11. package/@cds-models/CardanoTransactionService/index.d.ts +46 -13
  12. package/@cds-models/CardanoTransactionService/index.js +4 -0
  13. package/@cds-models/index.d.ts +72 -0
  14. package/@cds-models/index.js +12 -0
  15. package/@cds-models/odatano/cardano/index.d.ts +408 -7
  16. package/@cds-models/odatano/cardano/index.js +42 -0
  17. package/README.md +64 -5
  18. package/db/schema.cds +2297 -1633
  19. package/db/types.cds +114 -0
  20. package/package.json +27 -6
  21. package/scripts/migrate-slot-leader.mjs +104 -0
  22. package/scripts/migrate-txseq.mjs +147 -0
  23. package/src/index.d.ts +18 -11
  24. package/src/index.js +44 -14
  25. package/src/plugin.js +42 -52
  26. package/srv/blockchain/backends/blockfrost-backend.d.ts +29 -131
  27. package/srv/blockchain/backends/blockfrost-backend.js +53 -162
  28. package/srv/blockchain/backends/cardano-backend.d.ts +104 -158
  29. package/srv/blockchain/backends/cardano-backend.js +19 -5
  30. package/srv/blockchain/backends/koios-backend.d.ts +126 -60
  31. package/srv/blockchain/backends/koios-backend.js +376 -235
  32. package/srv/blockchain/backends/odatano-backend.d.ts +64 -0
  33. package/srv/blockchain/backends/odatano-backend.js +170 -0
  34. package/srv/blockchain/backends/ogmios-backend.d.ts +162 -94
  35. package/srv/blockchain/backends/ogmios-backend.js +556 -201
  36. package/srv/blockchain/backends/ogmios-frame-guard.d.ts +32 -0
  37. package/srv/blockchain/backends/ogmios-frame-guard.js +142 -0
  38. package/srv/blockchain/cardano-client.d.ts +87 -202
  39. package/srv/blockchain/cardano-client.js +210 -240
  40. package/srv/blockchain/cardano-indexer.d.ts +311 -242
  41. package/srv/blockchain/cardano-indexer.js +1238 -362
  42. package/srv/blockchain/cardano-tx-builder.d.ts +44 -81
  43. package/srv/blockchain/cardano-tx-builder.js +173 -132
  44. package/srv/blockchain/crawler/certificate-backfill.d.ts +67 -0
  45. package/srv/blockchain/crawler/certificate-backfill.js +169 -0
  46. package/srv/blockchain/crawler/crawler.d.ts +139 -54
  47. package/srv/blockchain/crawler/crawler.js +478 -96
  48. package/srv/blockchain/crawler/hooks.d.ts +3 -14
  49. package/srv/blockchain/crawler/index.d.ts +5 -0
  50. package/srv/blockchain/crawler/index.js +35 -7
  51. package/srv/blockchain/crawler/sync-state.d.ts +46 -28
  52. package/srv/blockchain/crawler/sync-state.js +128 -43
  53. package/srv/blockchain/crawler/transaction-backfill.d.ts +52 -0
  54. package/srv/blockchain/crawler/transaction-backfill.js +283 -0
  55. package/srv/blockchain/crawler/utxo-set-import.d.ts +78 -0
  56. package/srv/blockchain/crawler/utxo-set-import.js +363 -0
  57. package/srv/blockchain/ledger-state.d.ts +101 -0
  58. package/srv/blockchain/ledger-state.js +432 -0
  59. package/srv/blockchain/pending-spends.d.ts +28 -0
  60. package/srv/blockchain/pending-spends.js +89 -0
  61. package/srv/blockchain/signing/cose-verifier.d.ts +5 -12
  62. package/srv/blockchain/signing/cose-verifier.js +6 -12
  63. package/srv/blockchain/signing/external-signer.d.ts +16 -113
  64. package/srv/blockchain/signing/external-signer.js +19 -122
  65. package/srv/blockchain/signing/hsm-signer.d.ts +13 -45
  66. package/srv/blockchain/signing/hsm-signer.js +23 -63
  67. package/srv/blockchain/signing/signature-verifier.d.ts +14 -45
  68. package/srv/blockchain/signing/signature-verifier.js +73 -76
  69. package/srv/blockchain/signing/submission-finalizer.d.ts +9 -36
  70. package/srv/blockchain/signing/submission-finalizer.js +16 -49
  71. package/srv/blockchain/stored-chain.d.ts +33 -0
  72. package/srv/blockchain/stored-chain.js +234 -0
  73. package/srv/blockchain/transaction-building/buildooor-tx.d.ts +111 -173
  74. package/srv/blockchain/transaction-building/buildooor-tx.js +649 -326
  75. package/srv/blockchain/transaction-building/caller-datums.d.ts +29 -0
  76. package/srv/blockchain/transaction-building/caller-datums.js +139 -0
  77. package/srv/blockchain/transaction-building/cardano-tx.d.ts +10 -35
  78. package/srv/blockchain/transaction-rows.d.ts +12 -0
  79. package/srv/blockchain/transaction-rows.js +43 -0
  80. package/srv/blockchain/wallet-worker/build-request.d.ts +4 -17
  81. package/srv/blockchain/wallet-worker/build-request.js +18 -23
  82. package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +25 -17
  83. package/srv/blockchain/wallet-worker/confirmation-tracker.js +87 -41
  84. package/srv/blockchain/wallet-worker/index.js +2 -8
  85. package/srv/blockchain/wallet-worker/job-store.d.ts +36 -103
  86. package/srv/blockchain/wallet-worker/job-store.js +0 -0
  87. package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +4 -20
  88. package/srv/blockchain/wallet-worker/lease-heartbeat.js +4 -20
  89. package/srv/blockchain/wallet-worker/signers.d.ts +6 -19
  90. package/srv/blockchain/wallet-worker/signers.js +3 -8
  91. package/srv/blockchain/wallet-worker/wallet-worker.d.ts +15 -71
  92. package/srv/blockchain/wallet-worker/wallet-worker.js +40 -91
  93. package/srv/cardano-agent-service.cds +146 -0
  94. package/srv/cardano-agent-service.d.ts +2 -0
  95. package/srv/cardano-agent-service.js +12 -0
  96. package/srv/cardano-backend-service.cds +52 -0
  97. package/srv/cardano-backend-service.d.ts +2 -0
  98. package/srv/cardano-backend-service.js +244 -0
  99. package/srv/cardano-indexer-service.cds +201 -73
  100. package/srv/cardano-indexer-service.js +280 -11
  101. package/srv/cardano-service.cds +65 -2
  102. package/srv/cardano-service.js +170 -129
  103. package/srv/cardano-sign-service.cds +200 -180
  104. package/srv/cardano-sign-service.js +57 -184
  105. package/srv/cardano-tx-service.cds +439 -370
  106. package/srv/cardano-tx-service.js +231 -190
  107. package/srv/cardano-ui.cds +16 -16
  108. package/srv/cardano-worker-service.js +7 -15
  109. package/srv/cbor/index.d.ts +1 -1
  110. package/srv/cbor/parse.d.ts +27 -0
  111. package/srv/cbor/parse.js +63 -2
  112. package/srv/server.d.ts +28 -86
  113. package/srv/server.js +132 -135
  114. package/srv/utils/agent-grants-config.d.ts +37 -0
  115. package/srv/utils/agent-grants-config.js +138 -0
  116. package/srv/utils/agent-grants.d.ts +262 -0
  117. package/srv/utils/agent-grants.js +922 -0
  118. package/srv/utils/agent-token-auth.d.ts +16 -0
  119. package/srv/utils/agent-token-auth.js +78 -0
  120. package/srv/utils/backend-request-handler.d.ts +2 -16
  121. package/srv/utils/backend-request-handler.js +3 -18
  122. package/srv/utils/collections.d.ts +4 -8
  123. package/srv/utils/collections.js +4 -8
  124. package/srv/utils/const.d.ts +30 -67
  125. package/srv/utils/const.js +32 -72
  126. package/srv/utils/crypto.d.ts +3 -12
  127. package/srv/utils/crypto.js +5 -18
  128. package/srv/utils/db-indexes.d.ts +25 -0
  129. package/srv/utils/db-indexes.js +94 -0
  130. package/srv/utils/db-sanitize.d.ts +27 -0
  131. package/srv/utils/db-sanitize.js +85 -0
  132. package/srv/utils/epoch-slots.d.ts +20 -0
  133. package/srv/utils/epoch-slots.js +43 -0
  134. package/srv/utils/error-codes.d.ts +20 -73
  135. package/srv/utils/error-codes.js +19 -70
  136. package/srv/utils/errors.d.ts +50 -177
  137. package/srv/utils/errors.js +94 -218
  138. package/srv/utils/legacy-service-paths.d.ts +11 -0
  139. package/srv/utils/legacy-service-paths.js +58 -0
  140. package/srv/utils/liveness.d.ts +16 -0
  141. package/srv/utils/liveness.js +40 -0
  142. package/srv/utils/mappers.d.ts +128 -214
  143. package/srv/utils/mappers.js +354 -299
  144. package/srv/utils/network-context.js +2 -11
  145. package/srv/utils/pg-inline-json.d.ts +8 -0
  146. package/srv/utils/pg-inline-json.js +62 -0
  147. package/srv/utils/pg-order-nulls.d.ts +14 -0
  148. package/srv/utils/pg-order-nulls.js +56 -0
  149. package/srv/utils/plutus-placeholders.d.ts +23 -16
  150. package/srv/utils/plutus-placeholders.js +63 -27
  151. package/srv/utils/rate-limiter.d.ts +46 -0
  152. package/srv/utils/rate-limiter.js +116 -0
  153. package/srv/utils/service-events.d.ts +2 -22
  154. package/srv/utils/service-events.js +3 -23
  155. package/srv/utils/signing-helper.d.ts +6 -16
  156. package/srv/utils/signing-helper.js +36 -60
  157. package/srv/utils/tx-build-helper.d.ts +28 -93
  158. package/srv/utils/tx-build-helper.js +75 -124
  159. package/srv/utils/tx-request-parsers.d.ts +101 -28
  160. package/srv/utils/tx-request-parsers.js +410 -43
  161. package/srv/utils/tx-utils.d.ts +4 -23
  162. package/srv/utils/tx-utils.js +12 -41
  163. package/srv/utils/types.d.ts +252 -179
  164. package/srv/utils/types.js +2 -6
  165. package/srv/utils/validators.d.ts +24 -90
  166. package/srv/utils/validators.js +50 -147
@@ -0,0 +1,40 @@
1
+ // This is an automatically generated file. Please do not change its contents manually!
2
+ const { createEntityProxy } = require('./../_')
3
+ // service
4
+ const CardanoBackendService = { name: 'CardanoBackendService' }
5
+ module.exports = CardanoBackendService
6
+ module.exports.CardanoBackendService = CardanoBackendService
7
+ // events
8
+ // actions
9
+ module.exports.GetTransaction = 'GetTransaction'
10
+ module.exports.GetTransactionsBatch = 'GetTransactionsBatch'
11
+ module.exports.GetTransactionMetadata = 'GetTransactionMetadata'
12
+ module.exports.GetBlock = 'GetBlock'
13
+ module.exports.GetBlockByHeight = 'GetBlockByHeight'
14
+ module.exports.GetNextBlocks = 'GetNextBlocks'
15
+ module.exports.GetBlockTransactions = 'GetBlockTransactions'
16
+ module.exports.GetLatestBlock = 'GetLatestBlock'
17
+ module.exports.GetCurrentSlot = 'GetCurrentSlot'
18
+ module.exports.GetEpoch = 'GetEpoch'
19
+ module.exports.GetLatestEpoch = 'GetLatestEpoch'
20
+ module.exports.GetAddress = 'GetAddress'
21
+ module.exports.GetAddressUtxos = 'GetAddressUtxos'
22
+ module.exports.GetAddressTransactions = 'GetAddressTransactions'
23
+ module.exports.GetAddressTransactionHashes = 'GetAddressTransactionHashes'
24
+ module.exports.GetCredentialUtxos = 'GetCredentialUtxos'
25
+ module.exports.IsUtxoUnspent = 'IsUtxoUnspent'
26
+ module.exports.GetUnspentOutputs = 'GetUnspentOutputs'
27
+ module.exports.GetAccount = 'GetAccount'
28
+ module.exports.GetPool = 'GetPool'
29
+ module.exports.GetPoolIds = 'GetPoolIds'
30
+ module.exports.GetPools = 'GetPools'
31
+ module.exports.GetDrep = 'GetDrep'
32
+ module.exports.GetDrepIds = 'GetDrepIds'
33
+ module.exports.GetDreps = 'GetDreps'
34
+ module.exports.GetAssetInfo = 'GetAssetInfo'
35
+ module.exports.GetAssetHistory = 'GetAssetHistory'
36
+ module.exports.GetNetworkInformation = 'GetNetworkInformation'
37
+ module.exports.GetProtocolParameters = 'GetProtocolParameters'
38
+ module.exports.EvaluateTransaction = 'EvaluateTransaction'
39
+ module.exports.SubmitTransaction = 'SubmitTransaction'
40
+ // enums
@@ -10,13 +10,23 @@ import * as __ from './../_';
10
10
  * - status function + pause/resume actions delegating to the crawler singleton
11
11
  *
12
12
  * Security note: see CardanoODataService (cardano-service.cds) for the rationale on
13
- * service-level auth. pause/resume are operational actions — gate behind a dedicated
14
- * Admin scope. Read-only status and audit data remain available to authenticated users.
13
+ * auth. pause/resume are operational actions — gate behind a dedicated Admin scope.
14
+ * Read-only status and audit data remain available to authenticated users.
15
+ *
16
+ * Deliberately NO service-level @requires: CAP checks a service-level requirement
17
+ * on every request BEFORE the operation's own annotation, so an operation-level
18
+ * `@requires: 'any'` can never open a single function on an otherwise
19
+ * authenticated service (anonymous callers get the 401 challenge first). The
20
+ * requirement therefore sits on each element, and getLiveness() alone is 'any'.
15
21
  */
16
22
  export default class {
17
23
  static readonly getStatus: typeof getStatus;
24
+ static readonly getLiveness: typeof getLiveness;
18
25
  static readonly pauseCrawler: typeof pauseCrawler;
19
26
  static readonly resumeCrawler: typeof resumeCrawler;
27
+ static readonly importUtxoSet: typeof importUtxoSet;
28
+ static readonly backfillCertificates: typeof backfillCertificates;
29
+ static readonly backfillTransactions: typeof backfillTransactions;
20
30
  }
21
31
 
22
32
  // entity 'SyncState'
@@ -38,6 +48,12 @@ export declare function _SyncStateAspect<TBase extends new (...args: any[]) => o
38
48
  consecutiveErrors?: number | null
39
49
  desiredRunning?: boolean | null
40
50
  leaseOwner?: string | null
51
+ utxoSetStatus?: string | null
52
+ utxoAnchorSlot?: number | null
53
+ utxoAnchorHash?: _.Blake2b256 | null
54
+ utxoSetImportedAt?: __.CdsTimestamp | null
55
+ utxoAppliedSlot?: number | null
56
+ utxoSetError?: string | null
41
57
  leaseUntil?: __.CdsTimestamp | null
42
58
  } & InstanceType<TBase>
43
59
  readonly kind: 'entity';
@@ -79,11 +95,16 @@ export declare function _CrawlerStatusAspect<TBase extends new (...args: any[])
79
95
  new (...args: any[]): {
80
96
  running?: boolean | null
81
97
  syncStatus?: string | null
98
+ source?: string | null
82
99
  lastSlot?: string | null
83
100
  lastHeight?: string | null
84
101
  tipHeight?: string | null
85
102
  syncProgress?: string | null
86
103
  consecutiveErrors?: number | null
104
+ utxoSet?: UtxoSetStatus | null
105
+ certificateBackfill?: CertificateBackfillStatus | null
106
+ transactionBackfill?: TransactionBackfillStatus | null
107
+ epochSnapshots?: EpochSnapshotStatus | null
87
108
  } & InstanceType<TBase>
88
109
  readonly kind: 'type';
89
110
  readonly keys: __.KeysOf<CrawlerStatus>;
@@ -93,6 +114,137 @@ export declare function _CrawlerStatusAspect<TBase extends new (...args: any[])
93
114
  export class CrawlerStatus extends _CrawlerStatusAspect(__.Entity) {
94
115
  }
95
116
 
117
+ // entity 'EpochSnapshotStatus'
118
+ export declare function _EpochSnapshotStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
119
+ new (...args: any[]): {
120
+ enabled?: boolean | null
121
+ source?: string | null
122
+ lastEpoch?: number | null
123
+ lastSource?: string | null
124
+ lastSlot?: string | null
125
+ } & InstanceType<TBase>
126
+ readonly kind: 'type';
127
+ readonly keys: __.KeysOf<EpochSnapshotStatus>;
128
+ readonly elements: __.ElementsOf<EpochSnapshotStatus>;
129
+ readonly actions: globalThis.Record<never, never>;
130
+ };
131
+ export class EpochSnapshotStatus extends _EpochSnapshotStatusAspect(__.Entity) {
132
+ }
133
+
134
+ // entity 'CertificateBackfillStatus'
135
+ export declare function _CertificateBackfillStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
136
+ new (...args: any[]): {
137
+ status?: string | null
138
+ fromSlot?: string | null
139
+ toSlot?: string | null
140
+ atSlot?: string | null
141
+ blocks?: number | null
142
+ certificates?: number | null
143
+ withdrawals?: number | null
144
+ startedAt?: __.CdsTimestamp | null
145
+ finishedAt?: __.CdsTimestamp | null
146
+ error?: string | null
147
+ } & InstanceType<TBase>
148
+ readonly kind: 'type';
149
+ readonly keys: __.KeysOf<CertificateBackfillStatus>;
150
+ readonly elements: __.ElementsOf<CertificateBackfillStatus>;
151
+ readonly actions: globalThis.Record<never, never>;
152
+ };
153
+ export class CertificateBackfillStatus extends _CertificateBackfillStatusAspect(__.Entity) {
154
+ }
155
+
156
+ // entity 'TransactionBackfillStatus'
157
+ export declare function _TransactionBackfillStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
158
+ new (...args: any[]): {
159
+ status?: string | null
160
+ fromSlot?: string | null
161
+ toSlot?: string | null
162
+ atSlot?: string | null
163
+ blocks?: number | null
164
+ transactions?: number | null
165
+ inputs?: number | null
166
+ redeemers?: number | null
167
+ rewritten?: number | null
168
+ skipped?: number | null
169
+ startedAt?: __.CdsTimestamp | null
170
+ finishedAt?: __.CdsTimestamp | null
171
+ error?: string | null
172
+ } & InstanceType<TBase>
173
+ readonly kind: 'type';
174
+ readonly keys: __.KeysOf<TransactionBackfillStatus>;
175
+ readonly elements: __.ElementsOf<TransactionBackfillStatus>;
176
+ readonly actions: globalThis.Record<never, never>;
177
+ };
178
+ export class TransactionBackfillStatus extends _TransactionBackfillStatusAspect(__.Entity) {
179
+ }
180
+
181
+ // entity 'CertificateBackfillResult'
182
+ export declare function _CertificateBackfillResultAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
183
+ new (...args: any[]): {
184
+ accepted?: boolean | null
185
+ fromSlot?: string | null
186
+ toSlot?: string | null
187
+ message?: string | null
188
+ } & InstanceType<TBase>
189
+ readonly kind: 'type';
190
+ readonly keys: __.KeysOf<CertificateBackfillResult>;
191
+ readonly elements: __.ElementsOf<CertificateBackfillResult>;
192
+ readonly actions: globalThis.Record<never, never>;
193
+ };
194
+ export class CertificateBackfillResult extends _CertificateBackfillResultAspect(__.Entity) {
195
+ }
196
+
197
+ // entity 'UtxoSetStatus'
198
+ export declare function _UtxoSetStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
199
+ new (...args: any[]): {
200
+ enabled?: boolean | null
201
+ status?: string | null
202
+ anchorSlot?: string | null
203
+ anchorHash?: string | null
204
+ importedAt?: __.CdsTimestamp | null
205
+ error?: string | null
206
+ } & InstanceType<TBase>
207
+ readonly kind: 'type';
208
+ readonly keys: __.KeysOf<UtxoSetStatus>;
209
+ readonly elements: __.ElementsOf<UtxoSetStatus>;
210
+ readonly actions: globalThis.Record<never, never>;
211
+ };
212
+ export class UtxoSetStatus extends _UtxoSetStatusAspect(__.Entity) {
213
+ }
214
+
215
+ // entity 'UtxoSetImportResult'
216
+ export declare function _UtxoSetImportResultAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
217
+ new (...args: any[]): {
218
+ accepted?: boolean | null
219
+ anchorSlot?: string | null
220
+ anchorHash?: string | null
221
+ message?: string | null
222
+ } & InstanceType<TBase>
223
+ readonly kind: 'type';
224
+ readonly keys: __.KeysOf<UtxoSetImportResult>;
225
+ readonly elements: __.ElementsOf<UtxoSetImportResult>;
226
+ readonly actions: globalThis.Record<never, never>;
227
+ };
228
+ export class UtxoSetImportResult extends _UtxoSetImportResultAspect(__.Entity) {
229
+ }
230
+
231
+ // entity 'Liveness'
232
+ export declare function _LivenessAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
233
+ new (...args: any[]): {
234
+ status?: string | null
235
+ timestamp?: __.CdsTimestamp | null
236
+ uptime?: number | null
237
+ version?: string | null
238
+ network?: string | null
239
+ } & InstanceType<TBase>
240
+ readonly kind: 'type';
241
+ readonly keys: __.KeysOf<Liveness>;
242
+ readonly elements: __.ElementsOf<Liveness>;
243
+ readonly actions: globalThis.Record<never, never>;
244
+ };
245
+ export class Liveness extends _LivenessAspect(__.Entity) {
246
+ }
247
+
96
248
  // event
97
249
  export declare class blockIndexed {
98
250
  readonly kind: 'event';
@@ -121,6 +273,16 @@ export declare const getStatus: {
121
273
  kind: 'function'
122
274
  }
123
275
 
276
+ export declare const getLiveness: {
277
+ // positional
278
+ (): globalThis.Promise<Liveness | null> | Liveness | null
279
+ // named
280
+ ({}: globalThis.Record<never, never>): globalThis.Promise<Liveness | null> | Liveness | null
281
+ // metadata (do not use)
282
+ __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<Liveness | null> | Liveness | null, __self: never
283
+ kind: 'function'
284
+ }
285
+
124
286
  export declare const pauseCrawler: {
125
287
  // positional
126
288
  (): globalThis.Promise<boolean | null> | boolean | null
@@ -139,4 +301,34 @@ export declare const resumeCrawler: {
139
301
  // metadata (do not use)
140
302
  __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<boolean | null> | boolean | null, __self: never
141
303
  kind: 'action'
304
+ }
305
+
306
+ export declare const importUtxoSet: {
307
+ // positional
308
+ (source: string | null, filePath: string | null, anchorSlot: number | null, anchorHash: string | null): globalThis.Promise<UtxoSetImportResult | null> | UtxoSetImportResult | null
309
+ // named
310
+ ({source, filePath, anchorSlot, anchorHash}: {source?: string | null, filePath?: string | null, anchorSlot?: number | null, anchorHash?: string | null}): globalThis.Promise<UtxoSetImportResult | null> | UtxoSetImportResult | null
311
+ // metadata (do not use)
312
+ __parameters: {source?: string | null, filePath?: string | null, anchorSlot?: number | null, anchorHash?: string | null}, __returns: globalThis.Promise<UtxoSetImportResult | null> | UtxoSetImportResult | null, __self: never
313
+ kind: 'action'
314
+ }
315
+
316
+ export declare const backfillCertificates: {
317
+ // positional
318
+ (fromSlot: number | null, toSlot: number | null): globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null
319
+ // named
320
+ ({fromSlot, toSlot}: {fromSlot?: number | null, toSlot?: number | null}): globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null
321
+ // metadata (do not use)
322
+ __parameters: {fromSlot?: number | null, toSlot?: number | null}, __returns: globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null, __self: never
323
+ kind: 'action'
324
+ }
325
+
326
+ export declare const backfillTransactions: {
327
+ // positional
328
+ (fromSlot: number | null, toSlot: number | null): globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null
329
+ // named
330
+ ({fromSlot, toSlot}: {fromSlot?: number | null, toSlot?: number | null}): globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null
331
+ // metadata (do not use)
332
+ __parameters: {fromSlot?: number | null, toSlot?: number | null}, __returns: globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null, __self: never
333
+ kind: 'action'
142
334
  }
@@ -13,11 +13,36 @@ module.exports.ReorgLog_ = createEntityProxy(['CardanoIndexerService', 'ReorgLog
13
13
  // CrawlerStatus
14
14
  module.exports.CrawlerStatus = createEntityProxy(['CardanoIndexerService', 'CrawlerStatus'], { target: { is_singular: true } })
15
15
  module.exports.__Array_CrawlerStatus_ = createEntityProxy(['CardanoIndexerService', 'CrawlerStatus'], { target: { is_singular: false }})
16
+ // EpochSnapshotStatus
17
+ module.exports.EpochSnapshotStatus = createEntityProxy(['CardanoIndexerService', 'EpochSnapshotStatus'], { target: { is_singular: true } })
18
+ module.exports.__Array_EpochSnapshotStatus_ = createEntityProxy(['CardanoIndexerService', 'EpochSnapshotStatus'], { target: { is_singular: false }})
19
+ // CertificateBackfillStatus
20
+ module.exports.CertificateBackfillStatus = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillStatus'], { target: { is_singular: true } })
21
+ module.exports.__Array_CertificateBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillStatus'], { target: { is_singular: false }})
22
+ // TransactionBackfillStatus
23
+ module.exports.TransactionBackfillStatus = createEntityProxy(['CardanoIndexerService', 'TransactionBackfillStatus'], { target: { is_singular: true } })
24
+ module.exports.__Array_TransactionBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'TransactionBackfillStatus'], { target: { is_singular: false }})
25
+ // CertificateBackfillResult
26
+ module.exports.CertificateBackfillResult = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillResult'], { target: { is_singular: true } })
27
+ module.exports.__Array_CertificateBackfillResult_ = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillResult'], { target: { is_singular: false }})
28
+ // UtxoSetStatus
29
+ module.exports.UtxoSetStatus = createEntityProxy(['CardanoIndexerService', 'UtxoSetStatus'], { target: { is_singular: true } })
30
+ module.exports.__Array_UtxoSetStatus_ = createEntityProxy(['CardanoIndexerService', 'UtxoSetStatus'], { target: { is_singular: false }})
31
+ // UtxoSetImportResult
32
+ module.exports.UtxoSetImportResult = createEntityProxy(['CardanoIndexerService', 'UtxoSetImportResult'], { target: { is_singular: true } })
33
+ module.exports.__Array_UtxoSetImportResult_ = createEntityProxy(['CardanoIndexerService', 'UtxoSetImportResult'], { target: { is_singular: false }})
34
+ // Liveness
35
+ module.exports.Liveness = createEntityProxy(['CardanoIndexerService', 'Liveness'], { target: { is_singular: true } })
36
+ module.exports.__Array_Liveness_ = createEntityProxy(['CardanoIndexerService', 'Liveness'], { target: { is_singular: false }})
16
37
  // events
17
38
  module.exports.blockIndexed = 'CardanoIndexerService.blockIndexed'
18
39
  module.exports.reorg = 'CardanoIndexerService.reorg'
19
40
  // actions
20
41
  module.exports.getStatus = 'getStatus'
42
+ module.exports.getLiveness = 'getLiveness'
21
43
  module.exports.pauseCrawler = 'pauseCrawler'
22
44
  module.exports.resumeCrawler = 'resumeCrawler'
45
+ module.exports.importUtxoSet = 'importUtxoSet'
46
+ module.exports.backfillCertificates = 'backfillCertificates'
47
+ module.exports.backfillTransactions = 'backfillTransactions'
23
48
  // enums