@odatano/core 2.0.0-rc.41 → 2.0.0-rc.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@cds-models/CardanoIndexerService/index.d.ts +47 -0
- package/@cds-models/CardanoIndexerService/index.js +7 -0
- package/@cds-models/CardanoODataService/index.d.ts +44 -0
- package/@cds-models/CardanoODataService/index.js +4 -0
- package/@cds-models/CardanoSignService/index.d.ts +3 -0
- package/@cds-models/CardanoTransactionService/index.d.ts +3 -0
- package/@cds-models/index.d.ts +3 -0
- package/@cds-models/odatano/cardano/index.d.ts +33 -0
- package/@cds-models/odatano/cardano/index.js +3 -0
- package/README.md +195 -195
- package/db/schema.cds +27 -0
- package/db/types.cds +421 -409
- package/package.json +1 -1
- package/srv/blockchain/backends/blockfrost-backend.js +1 -0
- package/srv/blockchain/backends/koios-backend.js +19 -0
- package/srv/blockchain/backends/ogmios-backend.js +16 -12
- package/srv/blockchain/cardano-indexer.js +26 -9
- package/srv/blockchain/crawler/credential-backfill.d.ts +37 -0
- package/srv/blockchain/crawler/credential-backfill.js +124 -0
- package/srv/blockchain/crawler/transaction-backfill.d.ts +3 -2
- package/srv/blockchain/crawler/transaction-backfill.js +14 -4
- package/srv/blockchain/crawler/utxo-set-import.d.ts +20 -1
- package/srv/blockchain/crawler/utxo-set-import.js +71 -3
- package/srv/blockchain/ledger-state.d.ts +6 -1
- package/srv/blockchain/ledger-state.js +3 -0
- package/srv/blockchain/stored-chain.js +9 -1
- package/srv/blockchain/transaction-building/buildooor-fee-patch.d.ts +17 -0
- package/srv/blockchain/transaction-building/buildooor-fee-patch.js +74 -0
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts +10 -1
- package/srv/blockchain/transaction-building/buildooor-tx.js +55 -19
- package/srv/blockchain/transaction-rows.d.ts +1 -1
- package/srv/blockchain/transaction-rows.js +2 -1
- package/srv/cardano-indexer-service.cds +30 -3
- package/srv/cardano-indexer-service.js +48 -3
- package/srv/cardano-service.cds +344 -332
- package/srv/cardano-service.js +9 -0
- package/srv/cbor/index.d.ts +1 -0
- package/srv/cbor/index.js +4 -1
- package/srv/cbor/plutus-data-json.d.ts +24 -0
- package/srv/cbor/plutus-data-json.js +32 -0
- package/srv/utils/agent-grants.js +1 -1
- package/srv/utils/db-indexes.js +5 -0
- package/srv/utils/mappers.d.ts +6 -2
- package/srv/utils/mappers.js +20 -0
- package/srv/utils/reference-script.d.ts +37 -0
- package/srv/utils/reference-script.js +95 -0
- package/srv/utils/types.d.ts +19 -0
package/db/types.cds
CHANGED
|
@@ -1,409 +1,421 @@
|
|
|
1
|
-
// -----------------------------------------------------
|
|
2
|
-
// Basic Cardano Types
|
|
3
|
-
// -----------------------------------------------------
|
|
4
|
-
@title : 'Blake2b224'
|
|
5
|
-
@description: '28 bytes Blake2b hash as hex string'
|
|
6
|
-
type Blake2b224 : String(56);
|
|
7
|
-
|
|
8
|
-
@title : 'Blake2b256'
|
|
9
|
-
@description: '32 bytes Blake2b hash as hex string'
|
|
10
|
-
type Blake2b256 : String(64);
|
|
11
|
-
|
|
12
|
-
@title : 'HexBytes'
|
|
13
|
-
@description: 'CBOR / bytes as hex string'
|
|
14
|
-
type HexBytes : String(5000);
|
|
15
|
-
|
|
16
|
-
@title : 'Lovelace'
|
|
17
|
-
@description: 'Amount of ADA in lovelace (1 ADA = 1_000_000 lovelace)'
|
|
18
|
-
type Lovelace : Decimal(20, 0);
|
|
19
|
-
// Sum of asset quantities: one output holds at most 2^64-1, a sum over an address's outputs does not
|
|
20
|
-
type AssetAmount : Decimal(38, 0);
|
|
21
|
-
|
|
22
|
-
@title : 'Asset Unit'
|
|
23
|
-
@description: 'Concatenation of policyId and assetNameHex representing a unique asset'
|
|
24
|
-
type AssetUnit : String(120);
|
|
25
|
-
|
|
26
|
-
@title : 'Metadata Label'
|
|
27
|
-
@description: 'Metadata label as string — a uint64 (0 .. 18446744073709551615, up to 20 digits)'
|
|
28
|
-
type MetadataLabel : String(20); // was String(5): truncated labels above 5 digits
|
|
29
|
-
|
|
30
|
-
@title : 'Bech32 Address'
|
|
31
|
-
@description: 'Bech32 encoded address string'
|
|
32
|
-
type Bech32 : String(120);
|
|
33
|
-
|
|
34
|
-
// -----------------------------------------------------
|
|
35
|
-
// Shared structural slices
|
|
36
|
-
// -----------------------------------------------------
|
|
37
|
-
@title : 'Asset Slice'
|
|
38
|
-
@description: 'Structural slice for asset details'
|
|
39
|
-
type AssetSlice {
|
|
40
|
-
|
|
41
|
-
@title : 'Asset Quantity'
|
|
42
|
-
@description: 'Quantity of the Asset'
|
|
43
|
-
quantity : Lovelace;
|
|
44
|
-
|
|
45
|
-
@title : 'Asset Policy Id'
|
|
46
|
-
@description: 'Policy Id of the Asset'
|
|
47
|
-
policyId : Blake2b224;
|
|
48
|
-
|
|
49
|
-
@title : 'Asset Name Hex'
|
|
50
|
-
@description: 'Asset Name as Hex String'
|
|
51
|
-
assetNameHex : HexBytes;
|
|
52
|
-
|
|
53
|
-
@title : 'Asset Name'
|
|
54
|
-
@description: 'Asset Name as UTF-8 String'
|
|
55
|
-
assetName : String(128);
|
|
56
|
-
|
|
57
|
-
@title : 'Asset Fingerprint'
|
|
58
|
-
@description: 'CIP-14 Asset Fingerprint'
|
|
59
|
-
fingerprint : String(44);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@title : 'Asset Sum Slice'
|
|
63
|
-
@description: 'Asset details with the quantity summed over several outputs (per address)'
|
|
64
|
-
type AssetSumSlice {
|
|
65
|
-
|
|
66
|
-
@title : 'Asset Quantity'
|
|
67
|
-
@description: 'Quantity of the Asset summed over the outputs of the address'
|
|
68
|
-
quantity : AssetAmount;
|
|
69
|
-
|
|
70
|
-
@title : 'Asset Policy Id'
|
|
71
|
-
@description: 'Policy Id of the Asset'
|
|
72
|
-
policyId : Blake2b224;
|
|
73
|
-
|
|
74
|
-
@title : 'Asset Name Hex'
|
|
75
|
-
@description: 'Asset Name as Hex String'
|
|
76
|
-
assetNameHex : HexBytes;
|
|
77
|
-
|
|
78
|
-
@title : 'Asset Name'
|
|
79
|
-
@description: 'Asset Name as UTF-8 String'
|
|
80
|
-
assetName : String(128);
|
|
81
|
-
|
|
82
|
-
@title : 'Asset Fingerprint'
|
|
83
|
-
@description: 'CIP-14 Asset Fingerprint'
|
|
84
|
-
fingerprint : String(44);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@title : 'Metadata Slice'
|
|
88
|
-
@description: 'Structural slice for metadata details'
|
|
89
|
-
type MetadataSlice {
|
|
90
|
-
|
|
91
|
-
@title : 'Metadata Label'
|
|
92
|
-
@description: 'Metadata label as string — a uint64 (0 .. 18446744073709551615, up to 20 digits)'
|
|
93
|
-
label : MetadataLabel;
|
|
94
|
-
|
|
95
|
-
@title : 'Metadata Payload'
|
|
96
|
-
@description: 'Metadata payload as JSON string'
|
|
97
|
-
payload : LargeString;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@title : 'UTxO Data Slice'
|
|
101
|
-
@description: 'Structural slice for UTxO specific data'
|
|
102
|
-
type UTxODataSlice {
|
|
103
|
-
|
|
104
|
-
@title : 'Datum Hash'
|
|
105
|
-
@description: 'The datum hash associated with the UTxO'
|
|
106
|
-
dataHash : Blake2b256;
|
|
107
|
-
|
|
108
|
-
@title : 'Inline Datum'
|
|
109
|
-
@description: 'The inline datum associated with the UTxO as hex CBOR'
|
|
110
|
-
inlineDatum : LargeString;
|
|
111
|
-
|
|
112
|
-
@title : 'Reference Script Hash'
|
|
113
|
-
@description: 'The reference script hash associated with the UTxO'
|
|
114
|
-
referenceScriptHash : Blake2b256;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
@title : '
|
|
121
|
-
@description: '
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
submitted = 'submitted';
|
|
137
|
-
|
|
138
|
-
failed = 'failed';
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
@title : '
|
|
142
|
-
@description: 'Enum type for
|
|
143
|
-
type
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@title : 'Wallet Job
|
|
172
|
-
@description: 'Enum type for the
|
|
173
|
-
type
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
@
|
|
184
|
-
type
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
//
|
|
190
|
-
|
|
191
|
-
//
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
@title : '
|
|
208
|
-
@description: '
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
@title : '
|
|
216
|
-
@description: '
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
@
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
@title : 'Parsed
|
|
228
|
-
@description: 'A
|
|
229
|
-
type
|
|
230
|
-
@title : '
|
|
231
|
-
@description: '
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
@title : '
|
|
235
|
-
@description: '
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
@title : 'Parsed
|
|
240
|
-
@description: 'A single
|
|
241
|
-
type
|
|
242
|
-
@title : '
|
|
243
|
-
@description: '
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
@title : '
|
|
247
|
-
@description: '
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
@title : '
|
|
255
|
-
@description: '
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
@title : '
|
|
259
|
-
@description: '
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
@title : '
|
|
263
|
-
@description: '
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
@title : '
|
|
267
|
-
@description: '
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
@
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
@title : '
|
|
275
|
-
@description: '
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
@title : '
|
|
279
|
-
@description: '
|
|
280
|
-
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
@title : 'Parsed
|
|
284
|
-
@description: 'A
|
|
285
|
-
type
|
|
286
|
-
@title : '
|
|
287
|
-
@description: '
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
@title : '
|
|
291
|
-
@description: '
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
@title : 'Parsed
|
|
296
|
-
@description: '
|
|
297
|
-
type
|
|
298
|
-
@title : '
|
|
299
|
-
@description: '
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
@title : '
|
|
303
|
-
@description: '
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
@title : '
|
|
311
|
-
@description: 'Number of
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
@title : '
|
|
315
|
-
@description: 'Number of
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
@
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
@title : '
|
|
323
|
-
@description: '
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
@title : '
|
|
327
|
-
@description: '
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
@title : '
|
|
335
|
-
@description: '
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
@title : '
|
|
339
|
-
@description: '
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
@title : '
|
|
343
|
-
@description: '
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
@title : '
|
|
347
|
-
@description: '
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
@title : '
|
|
351
|
-
@description: '
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
@title : '
|
|
355
|
-
@description: '
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
@title : '
|
|
359
|
-
@description: '
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
@title : '
|
|
363
|
-
@description: '
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
@title : '
|
|
367
|
-
@description: '
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
@title : '
|
|
371
|
-
@description: '
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
@title : '
|
|
375
|
-
@description: '
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
@title : '
|
|
379
|
-
@description: '
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
@title : '
|
|
383
|
-
@description: '
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
@title : '
|
|
387
|
-
@description: '
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
@title : '
|
|
391
|
-
@description: '
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
@title : '
|
|
395
|
-
@description: '
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
@title : '
|
|
399
|
-
@description: '
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
@title : '
|
|
403
|
-
@description: '
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
@title : '
|
|
407
|
-
@description: '
|
|
408
|
-
|
|
409
|
-
|
|
1
|
+
// -----------------------------------------------------
|
|
2
|
+
// Basic Cardano Types
|
|
3
|
+
// -----------------------------------------------------
|
|
4
|
+
@title : 'Blake2b224'
|
|
5
|
+
@description: '28 bytes Blake2b hash as hex string'
|
|
6
|
+
type Blake2b224 : String(56);
|
|
7
|
+
|
|
8
|
+
@title : 'Blake2b256'
|
|
9
|
+
@description: '32 bytes Blake2b hash as hex string'
|
|
10
|
+
type Blake2b256 : String(64);
|
|
11
|
+
|
|
12
|
+
@title : 'HexBytes'
|
|
13
|
+
@description: 'CBOR / bytes as hex string'
|
|
14
|
+
type HexBytes : String(5000);
|
|
15
|
+
|
|
16
|
+
@title : 'Lovelace'
|
|
17
|
+
@description: 'Amount of ADA in lovelace (1 ADA = 1_000_000 lovelace)'
|
|
18
|
+
type Lovelace : Decimal(20, 0);
|
|
19
|
+
// Sum of asset quantities: one output holds at most 2^64-1, a sum over an address's outputs does not
|
|
20
|
+
type AssetAmount : Decimal(38, 0);
|
|
21
|
+
|
|
22
|
+
@title : 'Asset Unit'
|
|
23
|
+
@description: 'Concatenation of policyId and assetNameHex representing a unique asset'
|
|
24
|
+
type AssetUnit : String(120);
|
|
25
|
+
|
|
26
|
+
@title : 'Metadata Label'
|
|
27
|
+
@description: 'Metadata label as string — a uint64 (0 .. 18446744073709551615, up to 20 digits)'
|
|
28
|
+
type MetadataLabel : String(20); // was String(5): truncated labels above 5 digits
|
|
29
|
+
|
|
30
|
+
@title : 'Bech32 Address'
|
|
31
|
+
@description: 'Bech32 encoded address string'
|
|
32
|
+
type Bech32 : String(120);
|
|
33
|
+
|
|
34
|
+
// -----------------------------------------------------
|
|
35
|
+
// Shared structural slices
|
|
36
|
+
// -----------------------------------------------------
|
|
37
|
+
@title : 'Asset Slice'
|
|
38
|
+
@description: 'Structural slice for asset details'
|
|
39
|
+
type AssetSlice {
|
|
40
|
+
|
|
41
|
+
@title : 'Asset Quantity'
|
|
42
|
+
@description: 'Quantity of the Asset'
|
|
43
|
+
quantity : Lovelace;
|
|
44
|
+
|
|
45
|
+
@title : 'Asset Policy Id'
|
|
46
|
+
@description: 'Policy Id of the Asset'
|
|
47
|
+
policyId : Blake2b224;
|
|
48
|
+
|
|
49
|
+
@title : 'Asset Name Hex'
|
|
50
|
+
@description: 'Asset Name as Hex String'
|
|
51
|
+
assetNameHex : HexBytes;
|
|
52
|
+
|
|
53
|
+
@title : 'Asset Name'
|
|
54
|
+
@description: 'Asset Name as UTF-8 String'
|
|
55
|
+
assetName : String(128);
|
|
56
|
+
|
|
57
|
+
@title : 'Asset Fingerprint'
|
|
58
|
+
@description: 'CIP-14 Asset Fingerprint'
|
|
59
|
+
fingerprint : String(44);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@title : 'Asset Sum Slice'
|
|
63
|
+
@description: 'Asset details with the quantity summed over several outputs (per address)'
|
|
64
|
+
type AssetSumSlice {
|
|
65
|
+
|
|
66
|
+
@title : 'Asset Quantity'
|
|
67
|
+
@description: 'Quantity of the Asset summed over the outputs of the address'
|
|
68
|
+
quantity : AssetAmount;
|
|
69
|
+
|
|
70
|
+
@title : 'Asset Policy Id'
|
|
71
|
+
@description: 'Policy Id of the Asset'
|
|
72
|
+
policyId : Blake2b224;
|
|
73
|
+
|
|
74
|
+
@title : 'Asset Name Hex'
|
|
75
|
+
@description: 'Asset Name as Hex String'
|
|
76
|
+
assetNameHex : HexBytes;
|
|
77
|
+
|
|
78
|
+
@title : 'Asset Name'
|
|
79
|
+
@description: 'Asset Name as UTF-8 String'
|
|
80
|
+
assetName : String(128);
|
|
81
|
+
|
|
82
|
+
@title : 'Asset Fingerprint'
|
|
83
|
+
@description: 'CIP-14 Asset Fingerprint'
|
|
84
|
+
fingerprint : String(44);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@title : 'Metadata Slice'
|
|
88
|
+
@description: 'Structural slice for metadata details'
|
|
89
|
+
type MetadataSlice {
|
|
90
|
+
|
|
91
|
+
@title : 'Metadata Label'
|
|
92
|
+
@description: 'Metadata label as string — a uint64 (0 .. 18446744073709551615, up to 20 digits)'
|
|
93
|
+
label : MetadataLabel;
|
|
94
|
+
|
|
95
|
+
@title : 'Metadata Payload'
|
|
96
|
+
@description: 'Metadata payload as JSON string'
|
|
97
|
+
payload : LargeString;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@title : 'UTxO Data Slice'
|
|
101
|
+
@description: 'Structural slice for UTxO specific data'
|
|
102
|
+
type UTxODataSlice {
|
|
103
|
+
|
|
104
|
+
@title : 'Datum Hash'
|
|
105
|
+
@description: 'The datum hash associated with the UTxO'
|
|
106
|
+
dataHash : Blake2b256;
|
|
107
|
+
|
|
108
|
+
@title : 'Inline Datum'
|
|
109
|
+
@description: 'The inline datum associated with the UTxO as hex CBOR'
|
|
110
|
+
inlineDatum : LargeString;
|
|
111
|
+
|
|
112
|
+
@title : 'Reference Script Hash'
|
|
113
|
+
@description: 'The reference script hash associated with the UTxO'
|
|
114
|
+
referenceScriptHash : Blake2b256;
|
|
115
|
+
|
|
116
|
+
@title : 'Reference Script Size'
|
|
117
|
+
@description: 'Size of the reference script in bytes as the ledger charges it (Conway reference-script fee); null when the source reports the hash only'
|
|
118
|
+
referenceScriptSize : Integer;
|
|
119
|
+
|
|
120
|
+
@title : 'Reference Script Type'
|
|
121
|
+
@description: 'native | plutusV1 | plutusV2 | plutusV3; null when the source reports the hash only'
|
|
122
|
+
referenceScriptType : String(10);
|
|
123
|
+
|
|
124
|
+
@title : 'Payment Credential'
|
|
125
|
+
@description: 'Payment key or script hash of the output address (28 bytes hex); the same for every stake variant of an address. Null for Byron addresses'
|
|
126
|
+
paymentCredential : String(56);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// -----------------------------------------------------
|
|
130
|
+
// Status Enums
|
|
131
|
+
// -----------------------------------------------------
|
|
132
|
+
@title : 'Submission Status'
|
|
133
|
+
@description: 'Enum type for transaction submission status'
|
|
134
|
+
type SubmissionStatus : String(20) enum {
|
|
135
|
+
pending = 'pending';
|
|
136
|
+
submitted = 'submitted';
|
|
137
|
+
confirmed = 'confirmed';
|
|
138
|
+
failed = 'failed';
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@title : 'Signing Request Status'
|
|
142
|
+
@description: 'Enum type for signing request status'
|
|
143
|
+
type SigningStatus : String(20) enum {
|
|
144
|
+
pending = 'pending';
|
|
145
|
+
signed = 'signed';
|
|
146
|
+
verified = 'verified';
|
|
147
|
+
submitting = 'submitting';
|
|
148
|
+
submitted = 'submitted';
|
|
149
|
+
expired = 'expired';
|
|
150
|
+
failed = 'failed';
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@title : 'Crawl Sync Status'
|
|
154
|
+
@description: 'Enum type for the chain crawler / pre-sync cursor state'
|
|
155
|
+
type CrawlSyncStatus : String(12) enum {
|
|
156
|
+
stopped = 'stopped'; // crawler not running
|
|
157
|
+
syncing = 'syncing'; // actively catching up / streaming
|
|
158
|
+
synced = 'synced'; // caught up to (tip - confirmationDepth)
|
|
159
|
+
error = 'error'; // circuit-broken after repeated failures
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@title : 'Reorg Status'
|
|
163
|
+
@description: 'Enum type for the lifecycle of a handled chain rollback'
|
|
164
|
+
type ReorgStatus : String(12) enum {
|
|
165
|
+
detected = 'detected';
|
|
166
|
+
rolling_back = 'rolling_back';
|
|
167
|
+
reindexing = 'reindexing';
|
|
168
|
+
completed = 'completed';
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@title : 'Wallet Job Status'
|
|
172
|
+
@description: 'Enum type for the wallet-worker job lifecycle'
|
|
173
|
+
type WalletJobStatus : String(12) enum {
|
|
174
|
+
pending = 'pending'; // queued, waiting for the worker to pick it up
|
|
175
|
+
building = 'building'; // build + sign in progress, nothing sent to the network yet
|
|
176
|
+
submitting = 'submitting'; // signed tx durably stored, submit in flight or its outcome unknown
|
|
177
|
+
submitted = 'submitted'; // accepted into the mempool, awaiting confirmation
|
|
178
|
+
confirmed = 'confirmed'; // on-chain at the configured confirmation depth
|
|
179
|
+
failed = 'failed'; // terminal failure (see errorCode/errorMessage)
|
|
180
|
+
cancelled = 'cancelled'; // cancelled by the caller while still pending
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@title : 'Wallet Job Kind'
|
|
184
|
+
@description: 'Enum type for the transaction kind a wallet-worker job executes'
|
|
185
|
+
type WalletJobKind : String(12) enum {
|
|
186
|
+
simpleAda = 'simpleAda'; // BuildSimpleAdaTransaction payload
|
|
187
|
+
metadata = 'metadata'; // BuildTransactionWithMetadata payload
|
|
188
|
+
multiAsset = 'multiAsset'; // BuildMultiAssetTransaction payload
|
|
189
|
+
mint = 'mint'; // BuildMintTransaction payload
|
|
190
|
+
plutusSpend = 'plutusSpend'; // BuildPlutusSpendTransaction payload
|
|
191
|
+
submitSigned = 'submitSigned'; // externally signed CBOR — managed submit + confirm only
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@title : 'Worker Signer Type'
|
|
195
|
+
@description: 'Enum type for how a worker wallet signs transactions'
|
|
196
|
+
type WorkerSignerType : String(10) enum {
|
|
197
|
+
hsm = 'hsm'; // PKCS#11 HSM (production) — keys never leave the module
|
|
198
|
+
software = 'software'; // operator-configured Ed25519 key (dev/test)
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// -----------------------------------------------------
|
|
202
|
+
// Transaction confirmations (GetTransactionConfirmations action result)
|
|
203
|
+
// -----------------------------------------------------
|
|
204
|
+
@title : 'Transaction Confirmations'
|
|
205
|
+
@description: 'Depth of a transaction in the chain. Depth 1 means it sits in the tip block.'
|
|
206
|
+
type TransactionConfirmations {
|
|
207
|
+
@title : 'Transaction Hash'
|
|
208
|
+
@description: 'The transaction asked for'
|
|
209
|
+
txHash : Blake2b256;
|
|
210
|
+
|
|
211
|
+
@title : 'Block Height'
|
|
212
|
+
@description: 'Height of the block holding the transaction; null while it is not on chain'
|
|
213
|
+
blockHeight : Integer64;
|
|
214
|
+
|
|
215
|
+
@title : 'Tip Height'
|
|
216
|
+
@description: 'Height of the chain tip used for the count; null while the transaction is not on chain'
|
|
217
|
+
tipHeight : Integer64;
|
|
218
|
+
|
|
219
|
+
@title : 'Confirmations'
|
|
220
|
+
@description: 'Tip height minus block height plus one; 0 while the transaction is not on chain'
|
|
221
|
+
confirmations : Integer;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// -----------------------------------------------------
|
|
225
|
+
// Parsed Transaction (ParseTransactionCbor action result)
|
|
226
|
+
// -----------------------------------------------------
|
|
227
|
+
@title : 'Parsed Transaction Input'
|
|
228
|
+
@description: 'A UTxO reference consumed by a parsed transaction'
|
|
229
|
+
type ParsedInput {
|
|
230
|
+
@title : 'UTxO Transaction Hash'
|
|
231
|
+
@description: 'The 32-byte hash of the transaction that produced this UTxO'
|
|
232
|
+
txHash : Blake2b256;
|
|
233
|
+
|
|
234
|
+
@title : 'UTxO Output Index'
|
|
235
|
+
@description: 'The output index within the producing transaction'
|
|
236
|
+
outputIndex : Integer;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@title : 'Parsed Asset'
|
|
240
|
+
@description: 'A single asset entry from a parsed transaction output or mint value'
|
|
241
|
+
type ParsedAsset {
|
|
242
|
+
@title : 'Asset Unit'
|
|
243
|
+
@description: 'Concatenation of policyId (56 hex) and assetNameHex (0-64 hex)'
|
|
244
|
+
unit : AssetUnit;
|
|
245
|
+
|
|
246
|
+
@title : 'Asset Quantity'
|
|
247
|
+
@description: 'Signed decimal string (BigInt-safe); negative entries indicate burns in a mint value'
|
|
248
|
+
quantity : String(40);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@title : 'Parsed Transaction Output'
|
|
252
|
+
@description: 'A single output of a parsed transaction'
|
|
253
|
+
type ParsedOutput {
|
|
254
|
+
@title : 'Output Address'
|
|
255
|
+
@description: 'Bech32 recipient address'
|
|
256
|
+
address : Bech32;
|
|
257
|
+
|
|
258
|
+
@title : 'Output Lovelace'
|
|
259
|
+
@description: 'ADA amount in lovelace (decimal string)'
|
|
260
|
+
lovelace : Lovelace;
|
|
261
|
+
|
|
262
|
+
@title : 'Output Assets'
|
|
263
|
+
@description: 'Native assets attached to the output'
|
|
264
|
+
assets : many ParsedAsset;
|
|
265
|
+
|
|
266
|
+
@title : 'Datum Hash'
|
|
267
|
+
@description: 'Blake2b-256 datum hash when the output references a datum by hash; null if inline or absent'
|
|
268
|
+
datumHash : Blake2b256;
|
|
269
|
+
|
|
270
|
+
@title : 'Inline Datum CBOR'
|
|
271
|
+
@description: 'Hex-encoded PlutusData CBOR when the output carries an inline datum; null otherwise'
|
|
272
|
+
inlineDatumHex : LargeString;
|
|
273
|
+
|
|
274
|
+
@title : 'Reference Script CBOR'
|
|
275
|
+
@description: 'Hex-encoded CIP-33 reference script CBOR when present; null otherwise'
|
|
276
|
+
referenceScriptHex : LargeString;
|
|
277
|
+
|
|
278
|
+
@title : 'Output CBOR Size'
|
|
279
|
+
@description: 'Byte length of the output as it stands in the transaction (input for the min-UTxO check)'
|
|
280
|
+
cborSize : Integer;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
@title : 'Parsed Withdrawal'
|
|
284
|
+
@description: 'A reward withdrawal of a parsed transaction'
|
|
285
|
+
type ParsedWithdrawal {
|
|
286
|
+
@title : 'Reward Address'
|
|
287
|
+
@description: 'Bech32 reward address the lovelace is withdrawn from'
|
|
288
|
+
rewardAddress : Bech32;
|
|
289
|
+
|
|
290
|
+
@title : 'Withdrawn Lovelace'
|
|
291
|
+
@description: 'Withdrawn amount in lovelace (decimal string)'
|
|
292
|
+
lovelace : Lovelace;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@title : 'Parsed Certificate'
|
|
296
|
+
@description: 'A certificate of a parsed transaction'
|
|
297
|
+
type ParsedCertificate {
|
|
298
|
+
@title : 'Certificate Index'
|
|
299
|
+
@description: 'Position in the body certificate list'
|
|
300
|
+
index : Integer;
|
|
301
|
+
|
|
302
|
+
@title : 'Certificate Type'
|
|
303
|
+
@description: 'Ledger certificate name, e.g. StakeDelegation or RegistrationDrep'
|
|
304
|
+
type : String(40);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@title : 'Parsed Witness Counts'
|
|
308
|
+
@description: 'Counts of witness entries in a parsed transaction (no secrets included)'
|
|
309
|
+
type ParsedWitnesses {
|
|
310
|
+
@title : 'VKey Witness Count'
|
|
311
|
+
@description: 'Number of Ed25519 verification-key witnesses'
|
|
312
|
+
vkeyCount : Integer;
|
|
313
|
+
|
|
314
|
+
@title : 'Native Script Count'
|
|
315
|
+
@description: 'Number of native scripts in the witness set'
|
|
316
|
+
nativeScripts : Integer;
|
|
317
|
+
|
|
318
|
+
@title : 'Plutus Script Count'
|
|
319
|
+
@description: 'Total count of Plutus V1/V2/V3 scripts in the witness set'
|
|
320
|
+
plutusScripts : Integer;
|
|
321
|
+
|
|
322
|
+
@title : 'Plutus Data Count'
|
|
323
|
+
@description: 'Number of PlutusData entries attached as witnesses'
|
|
324
|
+
plutusData : Integer;
|
|
325
|
+
|
|
326
|
+
@title : 'Redeemer Count'
|
|
327
|
+
@description: 'Number of redeemers in the witness set'
|
|
328
|
+
redeemers : Integer;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@title : 'Parsed Transaction'
|
|
332
|
+
@description: 'Structured view of a hex-encoded transaction CBOR. Returned by the ParseTransactionCbor action.'
|
|
333
|
+
type ParsedTransaction {
|
|
334
|
+
@title : 'Transaction Body Hash'
|
|
335
|
+
@description: 'Blake2b-256 hash of the transaction body. Stable across signed/unsigned CBOR of the same body.'
|
|
336
|
+
txHash : Blake2b256;
|
|
337
|
+
|
|
338
|
+
@title : 'Network'
|
|
339
|
+
@description: '"mainnet" or "testnet" from the tx body network ID byte; null if absent. preview vs preprod cannot be distinguished from CBOR alone.'
|
|
340
|
+
network : String(10);
|
|
341
|
+
|
|
342
|
+
@title : 'Network ID'
|
|
343
|
+
@description: 'Body field 15: 1 = mainnet, 0 = testnet; null if absent'
|
|
344
|
+
networkId : Integer;
|
|
345
|
+
|
|
346
|
+
@title : 'Inputs'
|
|
347
|
+
@description: 'UTxOs consumed by the transaction'
|
|
348
|
+
inputs : many ParsedInput;
|
|
349
|
+
|
|
350
|
+
@title : 'Outputs'
|
|
351
|
+
@description: 'Outputs produced by the transaction'
|
|
352
|
+
outputs : many ParsedOutput;
|
|
353
|
+
|
|
354
|
+
@title : 'Validity Interval Start'
|
|
355
|
+
@description: 'Slot number at which the transaction becomes valid (decimal string); null if absent'
|
|
356
|
+
validityStart : String(20);
|
|
357
|
+
|
|
358
|
+
@title : 'Validity Interval End'
|
|
359
|
+
@description: 'TTL slot number after which the transaction becomes invalid (decimal string); null if absent'
|
|
360
|
+
validityEnd : String(20);
|
|
361
|
+
|
|
362
|
+
@title : 'Fee'
|
|
363
|
+
@description: 'Transaction fee in lovelace'
|
|
364
|
+
fee : Lovelace;
|
|
365
|
+
|
|
366
|
+
@title : 'Mint'
|
|
367
|
+
@description: 'Signed native-asset mint/burn entries; empty array if the tx does not mint'
|
|
368
|
+
mint : many ParsedAsset;
|
|
369
|
+
|
|
370
|
+
@title : 'Metadata Labels'
|
|
371
|
+
@description: 'Metadata labels (uint64 as decimal strings) present in the auxiliary data; full payload via GetMetadataByTxHash once submitted'
|
|
372
|
+
metadataLabels : many String;
|
|
373
|
+
|
|
374
|
+
@title : 'Collateral Inputs'
|
|
375
|
+
@description: 'Collateral UTxOs for phase-2 validation (empty when no Plutus scripts run)'
|
|
376
|
+
collateral : many ParsedInput;
|
|
377
|
+
|
|
378
|
+
@title : 'Reference Inputs'
|
|
379
|
+
@description: 'UTxOs the transaction reads without spending them'
|
|
380
|
+
referenceInputs : many ParsedInput;
|
|
381
|
+
|
|
382
|
+
@title : 'Withdrawals'
|
|
383
|
+
@description: 'Reward withdrawals; empty array if none'
|
|
384
|
+
withdrawals : many ParsedWithdrawal;
|
|
385
|
+
|
|
386
|
+
@title : 'Certificates'
|
|
387
|
+
@description: 'Certificates in body order; empty array if none'
|
|
388
|
+
certificates : many ParsedCertificate;
|
|
389
|
+
|
|
390
|
+
@title : 'Vote Count'
|
|
391
|
+
@description: 'Number of votes over all voters; 0 if the body has no voting procedures'
|
|
392
|
+
votingProcedures : Integer;
|
|
393
|
+
|
|
394
|
+
@title : 'Proposal Count'
|
|
395
|
+
@description: 'Number of governance proposals'
|
|
396
|
+
proposalProcedures : Integer;
|
|
397
|
+
|
|
398
|
+
@title : 'Treasury Donation'
|
|
399
|
+
@description: 'Lovelace donated to the treasury; null if absent'
|
|
400
|
+
treasuryDonation : Lovelace;
|
|
401
|
+
|
|
402
|
+
@title : 'Current Treasury Value'
|
|
403
|
+
@description: 'Treasury value the transaction asserts; null if absent'
|
|
404
|
+
currentTreasuryValue : Lovelace;
|
|
405
|
+
|
|
406
|
+
@title : 'Required Signers'
|
|
407
|
+
@description: '28-byte Ed25519 key hashes listed in the tx body required_signers field'
|
|
408
|
+
requiredSigners : many Blake2b224;
|
|
409
|
+
|
|
410
|
+
@title : 'Script Data Hash'
|
|
411
|
+
@description: 'Blake2b-256 hash over datum/redeemer/costmodels section; null if no Plutus data is present'
|
|
412
|
+
scriptDataHash : Blake2b256;
|
|
413
|
+
|
|
414
|
+
@title : 'Validity Flag'
|
|
415
|
+
@description: 'false when the transaction is flagged as failing its scripts; on chain it then spends only the collateral and creates no outputs'
|
|
416
|
+
isValid : Boolean;
|
|
417
|
+
|
|
418
|
+
@title : 'Witness Counts'
|
|
419
|
+
@description: 'Shape summary of the witness set (no secret material exposed)'
|
|
420
|
+
witnesses : ParsedWitnesses;
|
|
421
|
+
}
|