@odatano/core 2.0.0-rc.23 → 2.0.0-rc.25

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 (80) hide show
  1. package/@cds-models/CardanoBackendService/index.d.ts +357 -0
  2. package/@cds-models/CardanoBackendService/index.js +40 -0
  3. package/@cds-models/CardanoIndexerService/index.d.ts +37 -0
  4. package/@cds-models/CardanoIndexerService/index.js +4 -0
  5. package/@cds-models/CardanoODataService/index.d.ts +27 -2
  6. package/@cds-models/CardanoODataService/index.js +3 -0
  7. package/@cds-models/CardanoSignService/index.d.ts +23 -1
  8. package/@cds-models/CardanoSignService/index.js +3 -0
  9. package/@cds-models/CardanoTransactionService/index.d.ts +34 -1
  10. package/@cds-models/CardanoTransactionService/index.js +4 -0
  11. package/@cds-models/index.d.ts +18 -0
  12. package/@cds-models/index.js +3 -0
  13. package/@cds-models/odatano/cardano/index.d.ts +49 -2
  14. package/@cds-models/odatano/cardano/index.js +6 -0
  15. package/db/schema.cds +74 -3
  16. package/db/types.cds +27 -0
  17. package/package.json +182 -181
  18. package/srv/blockchain/backends/blockfrost-backend.js +4 -2
  19. package/srv/blockchain/backends/cardano-backend.d.ts +0 -2
  20. package/srv/blockchain/backends/koios-backend.d.ts +1 -1
  21. package/srv/blockchain/backends/koios-backend.js +61 -14
  22. package/srv/blockchain/backends/odatano-backend.d.ts +64 -0
  23. package/srv/blockchain/backends/odatano-backend.js +166 -0
  24. package/srv/blockchain/backends/ogmios-backend.d.ts +12 -2
  25. package/srv/blockchain/backends/ogmios-backend.js +91 -21
  26. package/srv/blockchain/cardano-client.d.ts +23 -9
  27. package/srv/blockchain/cardano-client.js +77 -25
  28. package/srv/blockchain/cardano-indexer.d.ts +61 -15
  29. package/srv/blockchain/cardano-indexer.js +248 -79
  30. package/srv/blockchain/cardano-tx-builder.d.ts +11 -1
  31. package/srv/blockchain/cardano-tx-builder.js +59 -4
  32. package/srv/blockchain/crawler/certificate-backfill.d.ts +22 -0
  33. package/srv/blockchain/crawler/certificate-backfill.js +49 -30
  34. package/srv/blockchain/crawler/crawler.d.ts +3 -1
  35. package/srv/blockchain/crawler/crawler.js +12 -7
  36. package/srv/blockchain/crawler/sync-state.d.ts +3 -1
  37. package/srv/blockchain/crawler/sync-state.js +15 -2
  38. package/srv/blockchain/crawler/transaction-backfill.d.ts +52 -0
  39. package/srv/blockchain/crawler/transaction-backfill.js +283 -0
  40. package/srv/blockchain/crawler/utxo-set-import.d.ts +9 -0
  41. package/srv/blockchain/crawler/utxo-set-import.js +138 -47
  42. package/srv/blockchain/ledger-state.d.ts +16 -1
  43. package/srv/blockchain/ledger-state.js +38 -18
  44. package/srv/blockchain/pending-spends.d.ts +28 -0
  45. package/srv/blockchain/pending-spends.js +89 -0
  46. package/srv/blockchain/stored-chain.d.ts +33 -0
  47. package/srv/blockchain/stored-chain.js +234 -0
  48. package/srv/blockchain/transaction-building/buildooor-tx.d.ts +12 -3
  49. package/srv/blockchain/transaction-building/buildooor-tx.js +203 -21
  50. package/srv/blockchain/transaction-building/cardano-tx.d.ts +2 -1
  51. package/srv/blockchain/transaction-rows.d.ts +1 -1
  52. package/srv/blockchain/transaction-rows.js +2 -1
  53. package/srv/blockchain/wallet-worker/build-request.js +1 -1
  54. package/srv/cardano-backend-service.cds +52 -0
  55. package/srv/cardano-backend-service.d.ts +2 -0
  56. package/srv/cardano-backend-service.js +244 -0
  57. package/srv/cardano-indexer-service.cds +201 -176
  58. package/srv/cardano-indexer-service.js +104 -10
  59. package/srv/cardano-service.cds +5 -0
  60. package/srv/cardano-tx-service.cds +39 -0
  61. package/srv/cardano-tx-service.js +88 -14
  62. package/srv/server.js +20 -2
  63. package/srv/utils/agent-grants.js +8 -0
  64. package/srv/utils/const.d.ts +5 -0
  65. package/srv/utils/const.js +6 -1
  66. package/srv/utils/error-codes.d.ts +2 -0
  67. package/srv/utils/error-codes.js +2 -0
  68. package/srv/utils/errors.d.ts +7 -0
  69. package/srv/utils/errors.js +11 -1
  70. package/srv/utils/mappers.d.ts +24 -2
  71. package/srv/utils/mappers.js +49 -0
  72. package/srv/utils/pg-inline-json.d.ts +8 -0
  73. package/srv/utils/pg-inline-json.js +63 -0
  74. package/srv/utils/tx-build-helper.d.ts +2 -0
  75. package/srv/utils/tx-build-helper.js +12 -0
  76. package/srv/utils/tx-request-parsers.d.ts +46 -5
  77. package/srv/utils/tx-request-parsers.js +227 -16
  78. package/srv/utils/types.d.ts +59 -0
  79. package/srv/utils/validators.d.ts +5 -1
  80. package/srv/utils/validators.js +19 -9
@@ -0,0 +1,357 @@
1
+ // This is an automatically generated file. Please do not change its contents manually!
2
+ import * as __ from './../_';
3
+
4
+ /**
5
+ * Cardano Backend Service
6
+ *
7
+ * The data a CardanoBackend needs, for another ODATANO instance that uses this one as its
8
+ * backend (`backends: ["odatano"]`). Every operation answers the provider shape as a JSON
9
+ * string (`value`), so the caller maps it exactly like a Koios or Blockfrost answer.
10
+ * Stored blocks and transactions come from this instance's index; everything else goes
11
+ * through its own backends and crawled data, as the read service does. Nothing is persisted
12
+ * for the caller.
13
+ */
14
+ export default class {
15
+ static readonly GetTransaction: typeof GetTransaction;
16
+ static readonly GetTransactionsBatch: typeof GetTransactionsBatch;
17
+ static readonly GetTransactionMetadata: typeof GetTransactionMetadata;
18
+ static readonly GetBlock: typeof GetBlock;
19
+ static readonly GetBlockByHeight: typeof GetBlockByHeight;
20
+ static readonly GetNextBlocks: typeof GetNextBlocks;
21
+ static readonly GetBlockTransactions: typeof GetBlockTransactions;
22
+ static readonly GetLatestBlock: typeof GetLatestBlock;
23
+ static readonly GetCurrentSlot: typeof GetCurrentSlot;
24
+ static readonly GetEpoch: typeof GetEpoch;
25
+ static readonly GetLatestEpoch: typeof GetLatestEpoch;
26
+ static readonly GetAddress: typeof GetAddress;
27
+ static readonly GetAddressUtxos: typeof GetAddressUtxos;
28
+ static readonly GetAddressTransactions: typeof GetAddressTransactions;
29
+ static readonly GetAddressTransactionHashes: typeof GetAddressTransactionHashes;
30
+ static readonly GetCredentialUtxos: typeof GetCredentialUtxos;
31
+ static readonly IsUtxoUnspent: typeof IsUtxoUnspent;
32
+ static readonly GetUnspentOutputs: typeof GetUnspentOutputs;
33
+ static readonly GetAccount: typeof GetAccount;
34
+ static readonly GetPool: typeof GetPool;
35
+ static readonly GetPoolIds: typeof GetPoolIds;
36
+ static readonly GetPools: typeof GetPools;
37
+ static readonly GetDrep: typeof GetDrep;
38
+ static readonly GetDrepIds: typeof GetDrepIds;
39
+ static readonly GetDreps: typeof GetDreps;
40
+ static readonly GetAssetInfo: typeof GetAssetInfo;
41
+ static readonly GetAssetHistory: typeof GetAssetHistory;
42
+ static readonly GetNetworkInformation: typeof GetNetworkInformation;
43
+ static readonly GetProtocolParameters: typeof GetProtocolParameters;
44
+ static readonly EvaluateTransaction: typeof EvaluateTransaction;
45
+ static readonly SubmitTransaction: typeof SubmitTransaction;
46
+ }
47
+
48
+
49
+ export declare const GetTransaction: {
50
+ // positional
51
+ (hash: string | null): globalThis.Promise<string | null> | string | null
52
+ // named
53
+ ({hash}: {hash?: string | null}): globalThis.Promise<string | null> | string | null
54
+ // metadata (do not use)
55
+ __parameters: {hash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
56
+ kind: 'action'
57
+ }
58
+
59
+ export declare const GetTransactionsBatch: {
60
+ // positional
61
+ (hashes: string | null): globalThis.Promise<string | null> | string | null
62
+ // named
63
+ ({hashes}: {hashes?: string | null}): globalThis.Promise<string | null> | string | null
64
+ // metadata (do not use)
65
+ __parameters: {hashes?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
66
+ kind: 'action'
67
+ }
68
+
69
+ export declare const GetTransactionMetadata: {
70
+ // positional
71
+ (hash: string | null): globalThis.Promise<string | null> | string | null
72
+ // named
73
+ ({hash}: {hash?: string | null}): globalThis.Promise<string | null> | string | null
74
+ // metadata (do not use)
75
+ __parameters: {hash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
76
+ kind: 'action'
77
+ }
78
+
79
+ export declare const GetBlock: {
80
+ // positional
81
+ (hash: string | null): globalThis.Promise<string | null> | string | null
82
+ // named
83
+ ({hash}: {hash?: string | null}): globalThis.Promise<string | null> | string | null
84
+ // metadata (do not use)
85
+ __parameters: {hash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
86
+ kind: 'action'
87
+ }
88
+
89
+ export declare const GetBlockByHeight: {
90
+ // positional
91
+ (height: number | null): globalThis.Promise<string | null> | string | null
92
+ // named
93
+ ({height}: {height?: number | null}): globalThis.Promise<string | null> | string | null
94
+ // metadata (do not use)
95
+ __parameters: {height?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
96
+ kind: 'action'
97
+ }
98
+
99
+ export declare const GetNextBlocks: {
100
+ // positional
101
+ (afterHash: string | null, count: number | null, afterHeight: number | null): globalThis.Promise<string | null> | string | null
102
+ // named
103
+ ({afterHash, count, afterHeight}: {afterHash?: string | null, count?: number | null, afterHeight?: number | null}): globalThis.Promise<string | null> | string | null
104
+ // metadata (do not use)
105
+ __parameters: {afterHash?: string | null, count?: number | null, afterHeight?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
106
+ kind: 'action'
107
+ }
108
+
109
+ export declare const GetBlockTransactions: {
110
+ // positional
111
+ (blockHash: string | null): globalThis.Promise<string | null> | string | null
112
+ // named
113
+ ({blockHash}: {blockHash?: string | null}): globalThis.Promise<string | null> | string | null
114
+ // metadata (do not use)
115
+ __parameters: {blockHash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
116
+ kind: 'action'
117
+ }
118
+
119
+ export declare const GetLatestBlock: {
120
+ // positional
121
+ (): globalThis.Promise<string | null> | string | null
122
+ // named
123
+ ({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
124
+ // metadata (do not use)
125
+ __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
126
+ kind: 'action'
127
+ }
128
+
129
+ export declare const GetCurrentSlot: {
130
+ // positional
131
+ (): globalThis.Promise<string | null> | string | null
132
+ // named
133
+ ({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
134
+ // metadata (do not use)
135
+ __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
136
+ kind: 'action'
137
+ }
138
+
139
+ export declare const GetEpoch: {
140
+ // positional
141
+ (epoch: number | null): globalThis.Promise<string | null> | string | null
142
+ // named
143
+ ({epoch}: {epoch?: number | null}): globalThis.Promise<string | null> | string | null
144
+ // metadata (do not use)
145
+ __parameters: {epoch?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
146
+ kind: 'action'
147
+ }
148
+
149
+ export declare const GetLatestEpoch: {
150
+ // positional
151
+ (): globalThis.Promise<string | null> | string | null
152
+ // named
153
+ ({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
154
+ // metadata (do not use)
155
+ __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
156
+ kind: 'action'
157
+ }
158
+
159
+ export declare const GetAddress: {
160
+ // positional
161
+ (address: string | null): globalThis.Promise<string | null> | string | null
162
+ // named
163
+ ({address}: {address?: string | null}): globalThis.Promise<string | null> | string | null
164
+ // metadata (do not use)
165
+ __parameters: {address?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
166
+ kind: 'action'
167
+ }
168
+
169
+ export declare const GetAddressUtxos: {
170
+ // positional
171
+ (address: string | null): globalThis.Promise<string | null> | string | null
172
+ // named
173
+ ({address}: {address?: string | null}): globalThis.Promise<string | null> | string | null
174
+ // metadata (do not use)
175
+ __parameters: {address?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
176
+ kind: 'action'
177
+ }
178
+
179
+ export declare const GetAddressTransactions: {
180
+ // positional
181
+ (address: string | null, limit: number | null): globalThis.Promise<string | null> | string | null
182
+ // named
183
+ ({address, limit}: {address?: string | null, limit?: number | null}): globalThis.Promise<string | null> | string | null
184
+ // metadata (do not use)
185
+ __parameters: {address?: string | null, limit?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
186
+ kind: 'action'
187
+ }
188
+
189
+ export declare const GetAddressTransactionHashes: {
190
+ // positional
191
+ (address: string | null, limit: number | null): globalThis.Promise<string | null> | string | null
192
+ // named
193
+ ({address, limit}: {address?: string | null, limit?: number | null}): globalThis.Promise<string | null> | string | null
194
+ // metadata (do not use)
195
+ __parameters: {address?: string | null, limit?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
196
+ kind: 'action'
197
+ }
198
+
199
+ export declare const GetCredentialUtxos: {
200
+ // positional
201
+ (credential: string | null): globalThis.Promise<string | null> | string | null
202
+ // named
203
+ ({credential}: {credential?: string | null}): globalThis.Promise<string | null> | string | null
204
+ // metadata (do not use)
205
+ __parameters: {credential?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
206
+ kind: 'action'
207
+ }
208
+
209
+ export declare const IsUtxoUnspent: {
210
+ // positional
211
+ (txHash: string | null, outputIndex: number | null): globalThis.Promise<string | null> | string | null
212
+ // named
213
+ ({txHash, outputIndex}: {txHash?: string | null, outputIndex?: number | null}): globalThis.Promise<string | null> | string | null
214
+ // metadata (do not use)
215
+ __parameters: {txHash?: string | null, outputIndex?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
216
+ kind: 'action'
217
+ }
218
+
219
+ export declare const GetUnspentOutputs: {
220
+ // positional
221
+ (refs: string | null): globalThis.Promise<string | null> | string | null
222
+ // named
223
+ ({refs}: {refs?: string | null}): globalThis.Promise<string | null> | string | null
224
+ // metadata (do not use)
225
+ __parameters: {refs?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
226
+ kind: 'action'
227
+ }
228
+
229
+ export declare const GetAccount: {
230
+ // positional
231
+ (stakeAddress: string | null): globalThis.Promise<string | null> | string | null
232
+ // named
233
+ ({stakeAddress}: {stakeAddress?: string | null}): globalThis.Promise<string | null> | string | null
234
+ // metadata (do not use)
235
+ __parameters: {stakeAddress?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
236
+ kind: 'action'
237
+ }
238
+
239
+ export declare const GetPool: {
240
+ // positional
241
+ (poolId: string | null): globalThis.Promise<string | null> | string | null
242
+ // named
243
+ ({poolId}: {poolId?: string | null}): globalThis.Promise<string | null> | string | null
244
+ // metadata (do not use)
245
+ __parameters: {poolId?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
246
+ kind: 'action'
247
+ }
248
+
249
+ export declare const GetPoolIds: {
250
+ // positional
251
+ (): globalThis.Promise<string | null> | string | null
252
+ // named
253
+ ({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
254
+ // metadata (do not use)
255
+ __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
256
+ kind: 'action'
257
+ }
258
+
259
+ export declare const GetPools: {
260
+ // positional
261
+ (ids: string | null): globalThis.Promise<string | null> | string | null
262
+ // named
263
+ ({ids}: {ids?: string | null}): globalThis.Promise<string | null> | string | null
264
+ // metadata (do not use)
265
+ __parameters: {ids?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
266
+ kind: 'action'
267
+ }
268
+
269
+ export declare const GetDrep: {
270
+ // positional
271
+ (drepId: string | null): globalThis.Promise<string | null> | string | null
272
+ // named
273
+ ({drepId}: {drepId?: string | null}): globalThis.Promise<string | null> | string | null
274
+ // metadata (do not use)
275
+ __parameters: {drepId?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
276
+ kind: 'action'
277
+ }
278
+
279
+ export declare const GetDrepIds: {
280
+ // positional
281
+ (): globalThis.Promise<string | null> | string | null
282
+ // named
283
+ ({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
284
+ // metadata (do not use)
285
+ __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
286
+ kind: 'action'
287
+ }
288
+
289
+ export declare const GetDreps: {
290
+ // positional
291
+ (ids: string | null): globalThis.Promise<string | null> | string | null
292
+ // named
293
+ ({ids}: {ids?: string | null}): globalThis.Promise<string | null> | string | null
294
+ // metadata (do not use)
295
+ __parameters: {ids?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
296
+ kind: 'action'
297
+ }
298
+
299
+ export declare const GetAssetInfo: {
300
+ // positional
301
+ (unit: string | null): globalThis.Promise<string | null> | string | null
302
+ // named
303
+ ({unit}: {unit?: string | null}): globalThis.Promise<string | null> | string | null
304
+ // metadata (do not use)
305
+ __parameters: {unit?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
306
+ kind: 'action'
307
+ }
308
+
309
+ export declare const GetAssetHistory: {
310
+ // positional
311
+ (unit: string | null, limit: number | null): globalThis.Promise<string | null> | string | null
312
+ // named
313
+ ({unit, limit}: {unit?: string | null, limit?: number | null}): globalThis.Promise<string | null> | string | null
314
+ // metadata (do not use)
315
+ __parameters: {unit?: string | null, limit?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
316
+ kind: 'action'
317
+ }
318
+
319
+ export declare const GetNetworkInformation: {
320
+ // positional
321
+ (): globalThis.Promise<string | null> | string | null
322
+ // named
323
+ ({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
324
+ // metadata (do not use)
325
+ __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
326
+ kind: 'action'
327
+ }
328
+
329
+ export declare const GetProtocolParameters: {
330
+ // positional
331
+ (): globalThis.Promise<string | null> | string | null
332
+ // named
333
+ ({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
334
+ // metadata (do not use)
335
+ __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
336
+ kind: 'action'
337
+ }
338
+
339
+ export declare const EvaluateTransaction: {
340
+ // positional
341
+ (cbor: string | null): globalThis.Promise<string | null> | string | null
342
+ // named
343
+ ({cbor}: {cbor?: string | null}): globalThis.Promise<string | null> | string | null
344
+ // metadata (do not use)
345
+ __parameters: {cbor?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
346
+ kind: 'action'
347
+ }
348
+
349
+ export declare const SubmitTransaction: {
350
+ // positional
351
+ (cbor: string | null): globalThis.Promise<string | null> | string | null
352
+ // named
353
+ ({cbor}: {cbor?: string | null}): globalThis.Promise<string | null> | string | null
354
+ // metadata (do not use)
355
+ __parameters: {cbor?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
356
+ kind: 'action'
357
+ }
@@ -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
@@ -26,6 +26,7 @@ export default class {
26
26
  static readonly resumeCrawler: typeof resumeCrawler;
27
27
  static readonly importUtxoSet: typeof importUtxoSet;
28
28
  static readonly backfillCertificates: typeof backfillCertificates;
29
+ static readonly backfillTransactions: typeof backfillTransactions;
29
30
  }
30
31
 
31
32
  // entity 'SyncState'
@@ -102,6 +103,7 @@ export declare function _CrawlerStatusAspect<TBase extends new (...args: any[])
102
103
  consecutiveErrors?: number | null
103
104
  utxoSet?: UtxoSetStatus | null
104
105
  certificateBackfill?: CertificateBackfillStatus | null
106
+ transactionBackfill?: TransactionBackfillStatus | null
105
107
  epochSnapshots?: EpochSnapshotStatus | null
106
108
  } & InstanceType<TBase>
107
109
  readonly kind: 'type';
@@ -151,6 +153,31 @@ export declare function _CertificateBackfillStatusAspect<TBase extends new (...a
151
153
  export class CertificateBackfillStatus extends _CertificateBackfillStatusAspect(__.Entity) {
152
154
  }
153
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
+
154
181
  // entity 'CertificateBackfillResult'
155
182
  export declare function _CertificateBackfillResultAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
156
183
  new (...args: any[]): {
@@ -294,4 +321,14 @@ export declare const backfillCertificates: {
294
321
  // metadata (do not use)
295
322
  __parameters: {fromSlot?: number | null, toSlot?: number | null}, __returns: globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null, __self: never
296
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'
297
334
  }
@@ -19,6 +19,9 @@ module.exports.__Array_EpochSnapshotStatus_ = createEntityProxy(['CardanoIndexer
19
19
  // CertificateBackfillStatus
20
20
  module.exports.CertificateBackfillStatus = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillStatus'], { target: { is_singular: true } })
21
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 }})
22
25
  // CertificateBackfillResult
23
26
  module.exports.CertificateBackfillResult = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillResult'], { target: { is_singular: true } })
24
27
  module.exports.__Array_CertificateBackfillResult_ = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillResult'], { target: { is_singular: false }})
@@ -41,4 +44,5 @@ module.exports.pauseCrawler = 'pauseCrawler'
41
44
  module.exports.resumeCrawler = 'resumeCrawler'
42
45
  module.exports.importUtxoSet = 'importUtxoSet'
43
46
  module.exports.backfillCertificates = 'backfillCertificates'
47
+ module.exports.backfillTransactions = 'backfillTransactions'
44
48
  // enums
@@ -509,6 +509,31 @@ export class TransactionWithdrawals extends Array<TransactionWithdrawal> {
509
509
  $count?: number
510
510
  }
511
511
 
512
+ // entity 'TransactionRedeemer'
513
+ export declare function _TransactionRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
514
+ new (...args: any[]): {
515
+ tx?: __.Key<__.Association.to<Transaction>>
516
+ tx_hash?: __.Key<_.Blake2b256>
517
+ purpose?: __.Key<string>
518
+ redeemerIndex?: __.Key<number>
519
+ data?: string | null
520
+ mem?: number | null
521
+ steps?: number | null
522
+ spentTxHash?: _.Blake2b256 | null
523
+ spentOutputIndex?: number | null
524
+ policyId?: _.Blake2b224 | null
525
+ } & InstanceType<TBase>
526
+ readonly kind: 'entity';
527
+ readonly keys: __.KeysOf<TransactionRedeemer>;
528
+ readonly elements: __.ElementsOf<TransactionRedeemer>;
529
+ readonly actions: globalThis.Record<never, never>;
530
+ };
531
+ export class TransactionRedeemer extends _TransactionRedeemerAspect(__.Entity) {
532
+ }
533
+ export class TransactionRedeemers extends Array<TransactionRedeemer> {
534
+ $count?: number
535
+ }
536
+
512
537
  // entity 'LedgerUTxO'
513
538
  export declare function _LedgerUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
514
539
  new (...args: any[]): {
@@ -595,7 +620,7 @@ export declare function _LedgerAddressAssetAspect<TBase extends new (...args: an
595
620
  address?: __.Key<__.Association.to<LedgerAddress>>
596
621
  address_address?: __.Key<_.Bech32>
597
622
  unit?: __.Key<_.AssetUnit>
598
- asset_quantity?: _.Lovelace | null
623
+ asset_quantity?: _.AssetAmount | null
599
624
  asset_policyId?: _.Blake2b224 | null
600
625
  asset_assetNameHex?: _.HexBytes | null
601
626
  asset_assetName?: string | null
@@ -702,7 +727,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
702
727
  address?: __.Key<__.Association.to<Address>>
703
728
  address_address?: __.Key<_.Bech32>
704
729
  unit?: __.Key<_.AssetUnit>
705
- asset_quantity?: _.Lovelace | null
730
+ asset_quantity?: _.AssetAmount | null
706
731
  asset_policyId?: _.Blake2b224 | null
707
732
  asset_assetNameHex?: _.HexBytes | null
708
733
  asset_assetName?: string | null
@@ -55,6 +55,9 @@ module.exports.TransactionCertificates = createEntityProxy(['CardanoODataService
55
55
  // TransactionWithdrawals
56
56
  module.exports.TransactionWithdrawal = createEntityProxy(['CardanoODataService', 'TransactionWithdrawals'], { target: { is_singular: true } })
57
57
  module.exports.TransactionWithdrawals = createEntityProxy(['CardanoODataService', 'TransactionWithdrawals'], { target: { is_singular: false }})
58
+ // TransactionRedeemers
59
+ module.exports.TransactionRedeemer = createEntityProxy(['CardanoODataService', 'TransactionRedeemers'], { target: { is_singular: true } })
60
+ module.exports.TransactionRedeemers = createEntityProxy(['CardanoODataService', 'TransactionRedeemers'], { target: { is_singular: false }})
58
61
  // LedgerUTxOs
59
62
  module.exports.LedgerUTxO = createEntityProxy(['CardanoODataService', 'LedgerUTxOs'], { target: { is_singular: true } })
60
63
  module.exports.LedgerUTxOs = createEntityProxy(['CardanoODataService', 'LedgerUTxOs'], { target: { is_singular: false }})
@@ -92,6 +92,7 @@ export declare function _TransactionBuildAspect<TBase extends new (...args: any[
92
92
  createdAt?: number | null
93
93
  inputs?: __.Composition.of.many<TransactionBuildInputs>
94
94
  outputs?: __.Composition.of.many<TransactionBuildOutputs>
95
+ redeemers?: __.Composition.of.many<TransactionBuildRedeemers>
95
96
  submission?: __.Association.to<TransactionSubmission> | null
96
97
  hasInputs?: boolean | null
97
98
  hasOutputs?: boolean | null
@@ -254,6 +255,27 @@ export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {
254
255
  $count?: number
255
256
  }
256
257
 
258
+ // entity 'TransactionBuildRedeemer'
259
+ export declare function _TransactionBuildRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
260
+ new (...args: any[]): {
261
+ build?: __.Key<__.Association.to<TransactionBuild>>
262
+ build_id?: __.Key<string>
263
+ tag?: __.Key<string>
264
+ redeemerIndex?: __.Key<number>
265
+ mem?: number | null
266
+ steps?: number | null
267
+ } & InstanceType<TBase>
268
+ readonly kind: 'entity';
269
+ readonly keys: __.KeysOf<TransactionBuildRedeemer>;
270
+ readonly elements: __.ElementsOf<TransactionBuildRedeemer>;
271
+ readonly actions: globalThis.Record<never, never>;
272
+ };
273
+ export class TransactionBuildRedeemer extends _TransactionBuildRedeemerAspect(__.Entity) {
274
+ }
275
+ export class TransactionBuildRedeemers extends Array<TransactionBuildRedeemer> {
276
+ $count?: number
277
+ }
278
+
257
279
  // entity 'TransactionSubmissionError'
258
280
  export declare function _TransactionSubmissionErrorAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
259
281
  new (...args: any[]): {
@@ -309,7 +331,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
309
331
  address?: __.Key<__.Association.to<Address>>
310
332
  address_address?: __.Key<_.Bech32>
311
333
  unit?: __.Key<_.AssetUnit>
312
- asset_quantity?: _.Lovelace | null
334
+ asset_quantity?: _.AssetAmount | null
313
335
  asset_policyId?: _.Blake2b224 | null
314
336
  asset_assetNameHex?: _.HexBytes | null
315
337
  asset_assetName?: string | null
@@ -28,6 +28,9 @@ module.exports.TransactionBuildInputs = createEntityProxy(['CardanoSignService',
28
28
  // TransactionBuildOutputs
29
29
  module.exports.TransactionBuildOutput = createEntityProxy(['CardanoSignService', 'TransactionBuildOutputs'], { target: { is_singular: true } })
30
30
  module.exports.TransactionBuildOutputs = createEntityProxy(['CardanoSignService', 'TransactionBuildOutputs'], { target: { is_singular: false }})
31
+ // TransactionBuildRedeemers
32
+ module.exports.TransactionBuildRedeemer = createEntityProxy(['CardanoSignService', 'TransactionBuildRedeemers'], { target: { is_singular: true } })
33
+ module.exports.TransactionBuildRedeemers = createEntityProxy(['CardanoSignService', 'TransactionBuildRedeemers'], { target: { is_singular: false }})
31
34
  // TransactionSubmissionErrors
32
35
  module.exports.TransactionSubmissionError = createEntityProxy(['CardanoSignService', 'TransactionSubmissionErrors'], { target: { is_singular: true } })
33
36
  module.exports.TransactionSubmissionErrors = createEntityProxy(['CardanoSignService', 'TransactionSubmissionErrors'], { target: { is_singular: false }})
@@ -22,6 +22,7 @@ export default class {
22
22
  static readonly SubmitTransaction: typeof SubmitTransaction;
23
23
  static readonly SubmitSignedTransaction: typeof SubmitSignedTransaction;
24
24
  static readonly BuildPlutusSpendTransaction: typeof BuildPlutusSpendTransaction;
25
+ static readonly BuildPlutusTransaction: typeof BuildPlutusTransaction;
25
26
  static readonly SetCollateral: typeof SetCollateral;
26
27
  static readonly GetTransactionBuildsByAddress: typeof GetTransactionBuildsByAddress;
27
28
  static readonly DeriveScriptAddress: typeof DeriveScriptAddress;
@@ -45,6 +46,7 @@ export declare function _TransactionBuildAspect<TBase extends new (...args: any[
45
46
  createdAt?: number | null
46
47
  inputs?: __.Composition.of.many<TransactionBuildInputs>
47
48
  outputs?: __.Composition.of.many<TransactionBuildOutputs>
49
+ redeemers?: __.Composition.of.many<TransactionBuildRedeemers>
48
50
  submission?: __.Association.to<TransactionSubmission> | null
49
51
  hasInputs?: boolean | null
50
52
  hasOutputs?: boolean | null
@@ -115,6 +117,27 @@ export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {
115
117
  $count?: number
116
118
  }
117
119
 
120
+ // entity 'TransactionBuildRedeemer'
121
+ export declare function _TransactionBuildRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
122
+ new (...args: any[]): {
123
+ build?: __.Key<__.Association.to<TransactionBuild>>
124
+ build_id?: __.Key<string>
125
+ tag?: __.Key<string>
126
+ redeemerIndex?: __.Key<number>
127
+ mem?: number | null
128
+ steps?: number | null
129
+ } & InstanceType<TBase>
130
+ readonly kind: 'entity';
131
+ readonly keys: __.KeysOf<TransactionBuildRedeemer>;
132
+ readonly elements: __.ElementsOf<TransactionBuildRedeemer>;
133
+ readonly actions: globalThis.Record<never, never>;
134
+ };
135
+ export class TransactionBuildRedeemer extends _TransactionBuildRedeemerAspect(__.Entity) {
136
+ }
137
+ export class TransactionBuildRedeemers extends Array<TransactionBuildRedeemer> {
138
+ $count?: number
139
+ }
140
+
118
141
  // entity 'TransactionBuildInputAsset'
119
142
  export declare function _TransactionBuildInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
120
143
  new (...args: any[]): {
@@ -315,7 +338,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
315
338
  address?: __.Key<__.Association.to<Address>>
316
339
  address_address?: __.Key<_.Bech32>
317
340
  unit?: __.Key<_.AssetUnit>
318
- asset_quantity?: _.Lovelace | null
341
+ asset_quantity?: _.AssetAmount | null
319
342
  asset_policyId?: _.Blake2b224 | null
320
343
  asset_assetNameHex?: _.HexBytes | null
321
344
  asset_assetName?: string | null
@@ -468,6 +491,16 @@ export declare const BuildPlutusSpendTransaction: {
468
491
  kind: 'action'
469
492
  }
470
493
 
494
+ export declare const BuildPlutusTransaction: {
495
+ // positional
496
+ (senderAddress: _.Bech32 | null, changeAddress: _.Bech32 | null, scriptInputsJson: string | null, outputsJson: string | null, referenceInputsJson: string | null, forceInputsJson: string | null, requiredSignersJson: string | null, mintActionsJson: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
497
+ // named
498
+ ({senderAddress, changeAddress, scriptInputsJson, outputsJson, referenceInputsJson, forceInputsJson, requiredSignersJson, mintActionsJson, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, changeAddress?: _.Bech32 | null, scriptInputsJson?: string | null, outputsJson?: string | null, referenceInputsJson?: string | null, forceInputsJson?: string | null, requiredSignersJson?: string | null, mintActionsJson?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
499
+ // metadata (do not use)
500
+ __parameters: {senderAddress?: _.Bech32 | null, changeAddress?: _.Bech32 | null, scriptInputsJson?: string | null, outputsJson?: string | null, referenceInputsJson?: string | null, forceInputsJson?: string | null, requiredSignersJson?: string | null, mintActionsJson?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
501
+ kind: 'action'
502
+ }
503
+
471
504
  export declare const SetCollateral: {
472
505
  // positional
473
506
  (address: _.Bech32 | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null