@odatano/core 2.0.0-rc.52 → 2.0.0-rc.54
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 +2 -0
- package/@cds-models/odatano/cardano/index.d.ts +20 -0
- package/@cds-models/odatano/cardano/index.js +3 -0
- package/db/schema.cds +2480 -2455
- package/package.json +1 -1
- package/srv/blockchain/asset-supply.d.ts +15 -0
- package/srv/blockchain/asset-supply.js +109 -0
- package/srv/blockchain/cardano-indexer.js +31 -17
- package/srv/blockchain/crawler/certificate-backfill.js +2 -2
- package/srv/blockchain/crawler/crawler.d.ts +1 -0
- package/srv/blockchain/crawler/crawler.js +35 -1
- package/srv/blockchain/crawler/sync-state.d.ts +3 -0
- package/srv/blockchain/crawler/sync-state.js +12 -0
- package/srv/blockchain/crawler/utxo-set-import.js +4 -1
- package/srv/blockchain/ledger-state.d.ts +1 -0
- package/srv/blockchain/ledger-state.js +19 -0
- package/srv/cardano-backend-service.js +2 -0
- package/srv/cardano-service.js +4 -0
- package/srv/config.d.ts +3 -0
- package/srv/config.js +17 -1
- package/srv/server.js +2 -0
- package/srv/utils/db-indexes.d.ts +1 -1
- package/srv/utils/db-indexes.js +7 -2
- package/srv/utils/error-codes.d.ts +4 -0
- package/srv/utils/error-codes.js +4 -0
- package/srv/utils/mappers.js +4 -0
- package/srv/utils/read-guard.d.ts +62 -0
- package/srv/utils/read-guard.js +186 -0
- package/srv/utils/read-limits.d.ts +25 -0
- package/srv/utils/read-limits.js +77 -0
- package/srv/utils/tx-utils.js +10 -1
package/db/schema.cds
CHANGED
|
@@ -1,2455 +1,2480 @@
|
|
|
1
|
-
using {temporal, } from '@sap/cds/common';
|
|
2
|
-
using {Lovelace, Blake2b224, Blake2b256, Bech32, AssetUnit, AssetSlice, AssetSumSlice, SigningStatus,SubmissionStatus, UTxODataSlice, MetadataLabel, CrawlSyncStatus, ReorgStatus, WalletJobStatus, WalletJobKind, WorkerSignerType} from '../db/types';
|
|
3
|
-
|
|
4
|
-
namespace odatano.cardano;
|
|
5
|
-
|
|
6
|
-
@title : 'Network Information Entity'
|
|
7
|
-
@description: 'General information entity definition'
|
|
8
|
-
entity NetworkInformation : temporal {
|
|
9
|
-
|
|
10
|
-
@title : 'Network (key)'
|
|
11
|
-
@description: 'The Cardano network type mainnet | preprod | preview'
|
|
12
|
-
key network : String(10);
|
|
13
|
-
|
|
14
|
-
@title : 'Max Supply'
|
|
15
|
-
@description: 'The maximum supply of ADA'
|
|
16
|
-
maxSupply : Lovelace;
|
|
17
|
-
|
|
18
|
-
@title : 'Total Supply'
|
|
19
|
-
@description: 'Current total supply of ADA'
|
|
20
|
-
totalSupply : Lovelace;
|
|
21
|
-
|
|
22
|
-
@title : 'Circulating Supply'
|
|
23
|
-
@description: 'Current circulating supply of ADA'
|
|
24
|
-
circulatingSupply : Lovelace;
|
|
25
|
-
|
|
26
|
-
@title : 'Locked Supply'
|
|
27
|
-
@description: 'Current locked supply of ADA'
|
|
28
|
-
lockedSupply : Lovelace;
|
|
29
|
-
|
|
30
|
-
@title : 'Treasury Supply'
|
|
31
|
-
@description: 'Current treasury supply of ADA'
|
|
32
|
-
treasurySupply : Lovelace;
|
|
33
|
-
|
|
34
|
-
@title : 'Reserves Supply'
|
|
35
|
-
@description: 'Current reserves supply of ADA'
|
|
36
|
-
reservesSupply : Lovelace;
|
|
37
|
-
|
|
38
|
-
@title : 'Live Stake'
|
|
39
|
-
@description: 'Current live stake of ADA'
|
|
40
|
-
liveStake : Lovelace;
|
|
41
|
-
|
|
42
|
-
@title : 'Active Stake'
|
|
43
|
-
@description: 'Current active stake of ADA'
|
|
44
|
-
activeStake : Lovelace;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@title : 'Block Entity'
|
|
48
|
-
@description: 'Block information entity definition'
|
|
49
|
-
@readonly
|
|
50
|
-
entity Blocks {
|
|
51
|
-
|
|
52
|
-
@title : 'Block Hash (Key)'
|
|
53
|
-
@description: 'Block hash as hex string'
|
|
54
|
-
key hash : String(64);
|
|
55
|
-
|
|
56
|
-
@title : 'Block Time'
|
|
57
|
-
@description: 'Block time'
|
|
58
|
-
time : Timestamp;
|
|
59
|
-
|
|
60
|
-
@title : 'Block Height'
|
|
61
|
-
@description: 'Block height as integer'
|
|
62
|
-
height : Integer;
|
|
63
|
-
|
|
64
|
-
@title : 'Block SlotLeader'
|
|
65
|
-
@description: 'Bech32 id of the pool that produced the block'
|
|
66
|
-
slotLeader : String;
|
|
67
|
-
|
|
68
|
-
@title : 'Block Epoch Number'
|
|
69
|
-
@description: 'Epoch number as integer'
|
|
70
|
-
epochNumber : Integer;
|
|
71
|
-
|
|
72
|
-
@title : 'Block epoch Association'
|
|
73
|
-
@description: 'Association to Epochs entity'
|
|
74
|
-
epoch : Association to Epochs
|
|
75
|
-
on epoch.epoch = $self.epochNumber;
|
|
76
|
-
|
|
77
|
-
@title : 'Block Absolute Slot'
|
|
78
|
-
@description: 'Absolute slot number of the block'
|
|
79
|
-
slot : Integer64;
|
|
80
|
-
|
|
81
|
-
@title : 'Block Slot within Epoch'
|
|
82
|
-
@description: 'Slot number within the epoch as integer'
|
|
83
|
-
epochSlot : Integer;
|
|
84
|
-
|
|
85
|
-
@title : 'Block Size'
|
|
86
|
-
@description: 'Block size in bytes'
|
|
87
|
-
size : Integer;
|
|
88
|
-
|
|
89
|
-
@title : 'Block Transaction Count'
|
|
90
|
-
@description: 'Number of transactions in the block'
|
|
91
|
-
txCount : Integer;
|
|
92
|
-
|
|
93
|
-
@title : 'Block Fees'
|
|
94
|
-
@description: 'Total fees in the block'
|
|
95
|
-
fees : Lovelace;
|
|
96
|
-
|
|
97
|
-
@title : 'Previous Block Hash'
|
|
98
|
-
@description: 'Hash of the block before this one; null when the source did not report it'
|
|
99
|
-
previousHash : String(64);
|
|
100
|
-
|
|
101
|
-
@title : 'Withdrawals Reported'
|
|
102
|
-
@description: 'True when the crawl stored the withdrawals of every transaction of this block; null for blocks stored without them'
|
|
103
|
-
withdrawalsReported : Boolean;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@title : 'Epoch Entity'
|
|
107
|
-
@description: 'Epoch information entity definition'
|
|
108
|
-
@readonly
|
|
109
|
-
entity Epochs {
|
|
110
|
-
|
|
111
|
-
@title : 'Epoch Number (Key)'
|
|
112
|
-
@description: 'Epoch number as integer'
|
|
113
|
-
key epoch : Integer;
|
|
114
|
-
|
|
115
|
-
@title : 'Epoch Start Time'
|
|
116
|
-
@description: 'Epoch start time as unix timestamp (seconds)'
|
|
117
|
-
startTime : Integer64; // Integer (32-bit) overflows on 2038-01-19
|
|
118
|
-
|
|
119
|
-
@title : 'Epoch End Time'
|
|
120
|
-
@description: 'Epoch end time as unix timestamp (seconds)'
|
|
121
|
-
endTime : Integer64;
|
|
122
|
-
|
|
123
|
-
@title : 'First Block Time'
|
|
124
|
-
@description: 'First block time as unix timestamp (seconds)'
|
|
125
|
-
firstBlockTime : Integer64;
|
|
126
|
-
|
|
127
|
-
@title : 'Last Block Time'
|
|
128
|
-
@description: 'Last block time as unix timestamp (seconds)'
|
|
129
|
-
lastBlockTime : Integer64;
|
|
130
|
-
|
|
131
|
-
@title : 'Block Count'
|
|
132
|
-
@description: 'Number of blocks in the epoch'
|
|
133
|
-
blockCount : Integer;
|
|
134
|
-
|
|
135
|
-
@title : 'Transaction Count'
|
|
136
|
-
@description: 'Number of transactions in the epoch'
|
|
137
|
-
txCount : Integer;
|
|
138
|
-
|
|
139
|
-
@title : 'Total Output'
|
|
140
|
-
@description: 'Total output in the epoch as string to avoid precision issues'
|
|
141
|
-
output : String;
|
|
142
|
-
|
|
143
|
-
@title : 'Total Fees'
|
|
144
|
-
@description: 'Total fees in the epoch'
|
|
145
|
-
fees : Lovelace;
|
|
146
|
-
|
|
147
|
-
@title : 'Active Stake'
|
|
148
|
-
@description: 'Total active stake in the epoch'
|
|
149
|
-
activeStake : Lovelace;
|
|
150
|
-
|
|
151
|
-
@title : 'Final'
|
|
152
|
-
@description: 'True once the row was read after the epoch ended; a read refreshes the row while it is not'
|
|
153
|
-
final : Boolean;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@title : 'Pool Entity'
|
|
157
|
-
@description: 'Stake pool information entity definition'
|
|
158
|
-
entity Pools : temporal {
|
|
159
|
-
|
|
160
|
-
@title : 'Pool Id (Key)'
|
|
161
|
-
@description: 'Unique stake pool identifier'
|
|
162
|
-
key poolId : Bech32;
|
|
163
|
-
|
|
164
|
-
@title : 'VRF Key Hash'
|
|
165
|
-
@description: 'Pool VRF key hash as hex string'
|
|
166
|
-
vrfKeyHash : String;
|
|
167
|
-
|
|
168
|
-
@title : 'Blocks Minted'
|
|
169
|
-
@description: 'Total number of blocks minted by the pool'
|
|
170
|
-
blocksMinted : Integer;
|
|
171
|
-
|
|
172
|
-
@title : 'Blocks in Epoch'
|
|
173
|
-
@description: 'Number of blocks minted in the current epoch. Null when the backend that filled the row has no such figure (Koios); a 0 is a real zero'
|
|
174
|
-
blocksEpoch : Integer;
|
|
175
|
-
|
|
176
|
-
@title : 'Live Stake'
|
|
177
|
-
@description: 'Current live stake delegated to the pool'
|
|
178
|
-
liveStake : Lovelace;
|
|
179
|
-
|
|
180
|
-
@title : 'Live Size'
|
|
181
|
-
@description: 'Current live size as fraction of total active stake'
|
|
182
|
-
liveSize : Decimal(5, 4);
|
|
183
|
-
|
|
184
|
-
@title : 'Live Saturation'
|
|
185
|
-
@description: 'Current live saturation as fraction of ideal size (1.0 = 100% saturated). Decimal(9, 4): a test-network pool can hold many times the saturation point'
|
|
186
|
-
liveSaturation : Decimal(9, 4);
|
|
187
|
-
|
|
188
|
-
@title : 'Live Delegators'
|
|
189
|
-
@description: 'Current number of live delegators'
|
|
190
|
-
liveDelegators : Integer;
|
|
191
|
-
|
|
192
|
-
@title : 'Active Stake'
|
|
193
|
-
@description: 'Current active stake delegated to the pool'
|
|
194
|
-
activeStake : Lovelace;
|
|
195
|
-
|
|
196
|
-
@title : 'Active Size'
|
|
197
|
-
@description: 'Current active size as fraction'
|
|
198
|
-
activeSize : Decimal(5, 4);
|
|
199
|
-
|
|
200
|
-
@title : 'Pledge'
|
|
201
|
-
@description: 'Pool pledge in lovelace'
|
|
202
|
-
pledge : Lovelace;
|
|
203
|
-
|
|
204
|
-
@title : 'Margin'
|
|
205
|
-
@description: 'Pool margin as fraction'
|
|
206
|
-
margin : Decimal(5, 4);
|
|
207
|
-
|
|
208
|
-
@title : 'Fixed Cost'
|
|
209
|
-
@description: 'Pool fixed cost in lovelace'
|
|
210
|
-
fixedCost : Lovelace;
|
|
211
|
-
|
|
212
|
-
@title : 'Reward Account'
|
|
213
|
-
@description: 'Pool reward account in bech32 format'
|
|
214
|
-
rewardAccount : String;
|
|
215
|
-
|
|
216
|
-
@title : 'Metadata URL'
|
|
217
|
-
@description: 'URL of the pool metadata file as registered on chain. Null without one'
|
|
218
|
-
metadataUrl : String(128);
|
|
219
|
-
|
|
220
|
-
@title : 'Metadata Hash'
|
|
221
|
-
@description: 'blake2b-256 the registration names for the metadata file, as hex'
|
|
222
|
-
metadataHash : Blake2b256;
|
|
223
|
-
|
|
224
|
-
@title : 'Name'
|
|
225
|
-
@description: 'Pool name from the metadata file. Null while the file is unknown or failed its checks'
|
|
226
|
-
name : String(50);
|
|
227
|
-
|
|
228
|
-
@title : 'Ticker'
|
|
229
|
-
@description: 'Pool ticker from the metadata file, 3 to 5 characters'
|
|
230
|
-
ticker : String(5);
|
|
231
|
-
|
|
232
|
-
@title : 'Homepage'
|
|
233
|
-
@description: 'Pool homepage from the metadata file'
|
|
234
|
-
homepage : String(512);
|
|
235
|
-
|
|
236
|
-
@title : 'Description'
|
|
237
|
-
@description: 'Pool description from the metadata file'
|
|
238
|
-
description : String(255);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
@title : 'Pool Epoch Snapshot Entity'
|
|
242
|
-
@description: 'Stake-pool state as observed once per epoch by the chain crawler. Non-temporal: each row is a dated observation, not a cached slice, so the crawled range is a true time series. Written only when the crawler runs with epochSnapshots enabled, an enumerating backend (Koios) is configured, and the crawl is at the chain tip. The provider reports the pool set as it is now, so an epoch passed during a backfill is skipped rather than filled with current figures.'
|
|
243
|
-
entity PoolEpochSnapshots {
|
|
244
|
-
|
|
245
|
-
@title : 'Pool Id (Key)'
|
|
246
|
-
@description: 'Unique stake pool identifier'
|
|
247
|
-
key poolId : Bech32;
|
|
248
|
-
|
|
249
|
-
@title : 'Epoch (Key)'
|
|
250
|
-
@description: 'Epoch the observation belongs to, i.e. the epoch running at snapshotSlot'
|
|
251
|
-
key epoch : Integer;
|
|
252
|
-
|
|
253
|
-
@title : 'Snapshot Slot'
|
|
254
|
-
@description: 'Absolute slot of the block that triggered the snapshot'
|
|
255
|
-
snapshotSlot : Integer64;
|
|
256
|
-
|
|
257
|
-
@title : 'Snapshot Time'
|
|
258
|
-
@description: 'Unix timestamp of the block that triggered the snapshot'
|
|
259
|
-
snapshotTime : Integer64;
|
|
260
|
-
|
|
261
|
-
@title : 'Snapshot Block Hash'
|
|
262
|
-
@description: 'Hash of the block the ledger state was read at (Ogmios); null for provider snapshots'
|
|
263
|
-
snapshotHash : Blake2b256;
|
|
264
|
-
|
|
265
|
-
@title : 'Source'
|
|
266
|
-
@description: 'Where the observation came from: ogmios (node ledger state at the snapshot block) or koios (provider, current state)'
|
|
267
|
-
source : String(10);
|
|
268
|
-
|
|
269
|
-
@title : 'Blocks Minted'
|
|
270
|
-
@description: 'Total number of blocks minted by the pool'
|
|
271
|
-
blocksMinted : Integer;
|
|
272
|
-
|
|
273
|
-
@title : 'Blocks in Epoch'
|
|
274
|
-
@description: 'Number of blocks minted in the epoch that was running at snapshot time. Null when the enumerating backend has no such figure (Koios); a 0 is a real zero'
|
|
275
|
-
blocksEpoch : Integer;
|
|
276
|
-
|
|
277
|
-
@title : 'Live Stake'
|
|
278
|
-
@description: 'Live stake delegated to the pool'
|
|
279
|
-
liveStake : Lovelace;
|
|
280
|
-
|
|
281
|
-
@title : 'Live Size'
|
|
282
|
-
@description: 'Live size as fraction of total active stake'
|
|
283
|
-
liveSize : Decimal(5, 4);
|
|
284
|
-
|
|
285
|
-
@title : 'Live Saturation'
|
|
286
|
-
@description: 'Live saturation as fraction of ideal size (1.0 = 100% saturated). Decimal(9, 4): a test-network pool can hold many times the saturation point'
|
|
287
|
-
liveSaturation : Decimal(9, 4);
|
|
288
|
-
|
|
289
|
-
@title : 'Live Delegators'
|
|
290
|
-
@description: 'Number of live delegators'
|
|
291
|
-
liveDelegators : Integer;
|
|
292
|
-
|
|
293
|
-
@title : 'Active Stake'
|
|
294
|
-
@description: 'Active stake delegated to the pool'
|
|
295
|
-
activeStake : Lovelace;
|
|
296
|
-
|
|
297
|
-
@title : 'Active Size'
|
|
298
|
-
@description: 'Active size as fraction'
|
|
299
|
-
activeSize : Decimal(5, 4);
|
|
300
|
-
|
|
301
|
-
@title : 'Pledge'
|
|
302
|
-
@description: 'Pool pledge in lovelace'
|
|
303
|
-
pledge : Lovelace;
|
|
304
|
-
|
|
305
|
-
@title : 'Margin'
|
|
306
|
-
@description: 'Pool margin as fraction'
|
|
307
|
-
margin : Decimal(5, 4);
|
|
308
|
-
|
|
309
|
-
@title : 'Fixed Cost'
|
|
310
|
-
@description: 'Pool fixed cost in lovelace'
|
|
311
|
-
fixedCost : Lovelace;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
@title : 'Drep Epoch Snapshot Entity'
|
|
315
|
-
@description: 'DRep state as observed once per epoch by the chain crawler. Non-temporal, tip-only, same reasoning as PoolEpochSnapshots.'
|
|
316
|
-
entity DrepEpochSnapshots {
|
|
317
|
-
|
|
318
|
-
@title : 'Drep Id (Key)'
|
|
319
|
-
@description: 'Unique drep identifier'
|
|
320
|
-
key drepId : Bech32;
|
|
321
|
-
|
|
322
|
-
@title : 'Epoch (Key)'
|
|
323
|
-
@description: 'Epoch the observation belongs to, i.e. the epoch running at snapshotSlot'
|
|
324
|
-
key epoch : Integer;
|
|
325
|
-
|
|
326
|
-
@title : 'Snapshot Slot'
|
|
327
|
-
@description: 'Absolute slot of the block that triggered the snapshot'
|
|
328
|
-
snapshotSlot : Integer64;
|
|
329
|
-
|
|
330
|
-
@title : 'Snapshot Time'
|
|
331
|
-
@description: 'Unix timestamp of the block that triggered the snapshot'
|
|
332
|
-
snapshotTime : Integer64;
|
|
333
|
-
|
|
334
|
-
@title : 'Snapshot Block Hash'
|
|
335
|
-
@description: 'Hash of the block the ledger state was read at (Ogmios); null for provider snapshots'
|
|
336
|
-
snapshotHash : Blake2b256;
|
|
337
|
-
|
|
338
|
-
@title : 'Source'
|
|
339
|
-
@description: 'ogmios | koios, as on PoolEpochSnapshots'
|
|
340
|
-
source : String(10);
|
|
341
|
-
|
|
342
|
-
@title : 'Deposit'
|
|
343
|
-
@description: 'DRep registration deposit in lovelace; null when the source does not report it'
|
|
344
|
-
deposit : Lovelace;
|
|
345
|
-
|
|
346
|
-
@title : 'Expires Epoch'
|
|
347
|
-
@description: 'Epoch the DRep mandate runs out (inactivity expiry); null when the source does not report it'
|
|
348
|
-
expiresEpoch : Integer;
|
|
349
|
-
|
|
350
|
-
@title : 'Delegator Count'
|
|
351
|
-
@description: 'Number of stake credentials delegated to the DRep; null when the source does not report it'
|
|
352
|
-
delegatorCount : Integer;
|
|
353
|
-
|
|
354
|
-
@title : 'Vote Power'
|
|
355
|
-
@description: 'Amount of vote power in lovelace'
|
|
356
|
-
amount : Lovelace;
|
|
357
|
-
|
|
358
|
-
@title : 'Has Script'
|
|
359
|
-
@description: 'Indicates if drep is a script drep'
|
|
360
|
-
hasScript : Boolean;
|
|
361
|
-
|
|
362
|
-
@title : 'Last Active Epoch'
|
|
363
|
-
@description: 'Epoch number of last activity'
|
|
364
|
-
lastActiveEpoch : Integer;
|
|
365
|
-
|
|
366
|
-
@title : 'Retired'
|
|
367
|
-
@description: 'Indicates if drep is retired'
|
|
368
|
-
retired : Boolean;
|
|
369
|
-
|
|
370
|
-
@title : 'Expired'
|
|
371
|
-
@description: 'Indicates if drep is expired'
|
|
372
|
-
expired : Boolean;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
@title : 'Epoch Ledger Snapshot Entity'
|
|
376
|
-
@description: 'Network-wide ledger figures per epoch, written with the pool/DRep snapshot. One row per snapshotted epoch; a missing epoch was not observed. Totals above 2^53 lovelace lose precision on SQLite.'
|
|
377
|
-
entity EpochLedgerSnapshots {
|
|
378
|
-
|
|
379
|
-
@title : 'Epoch (Key)'
|
|
380
|
-
@description: 'Epoch the observation belongs to'
|
|
381
|
-
key epoch : Integer;
|
|
382
|
-
|
|
383
|
-
@title : 'Snapshot Slot'
|
|
384
|
-
@description: 'Absolute slot of the block the snapshot was taken at'
|
|
385
|
-
snapshotSlot : Integer64;
|
|
386
|
-
|
|
387
|
-
@title : 'Snapshot Time'
|
|
388
|
-
@description: 'Unix timestamp of the snapshot block'
|
|
389
|
-
snapshotTime : Integer64;
|
|
390
|
-
|
|
391
|
-
@title : 'Snapshot Block Hash'
|
|
392
|
-
@description: 'Hash of the block the ledger state was read at (Ogmios); null for provider snapshots'
|
|
393
|
-
snapshotHash : Blake2b256;
|
|
394
|
-
|
|
395
|
-
@title : 'Source'
|
|
396
|
-
@description: 'ogmios | koios'
|
|
397
|
-
source : String(10);
|
|
398
|
-
|
|
399
|
-
@title : 'Treasury'
|
|
400
|
-
@description: 'Treasury pot in lovelace; null when the source does not report it'
|
|
401
|
-
treasury : Lovelace;
|
|
402
|
-
|
|
403
|
-
@title : 'Reserves'
|
|
404
|
-
@description: 'Reserves pot in lovelace; null when the source does not report it'
|
|
405
|
-
reserves : Lovelace;
|
|
406
|
-
|
|
407
|
-
@title : 'Total Supply'
|
|
408
|
-
@description: 'Maximum supply minus reserves, in lovelace'
|
|
409
|
-
totalSupply : Lovelace;
|
|
410
|
-
|
|
411
|
-
@title : 'Live Stake'
|
|
412
|
-
@description: 'Sum of the live stake of all pools'
|
|
413
|
-
liveStake : Lovelace;
|
|
414
|
-
|
|
415
|
-
@title : 'Active Stake'
|
|
416
|
-
@description: 'Active stake of the epoch (stake snapshot used for leader election and rewards)'
|
|
417
|
-
activeStake : Lovelace;
|
|
418
|
-
|
|
419
|
-
@title : 'Pool Count'
|
|
420
|
-
@description: 'Registered stake pools observed'
|
|
421
|
-
poolCount : Integer;
|
|
422
|
-
|
|
423
|
-
@title : 'DRep Count'
|
|
424
|
-
@description: 'Registered DReps observed'
|
|
425
|
-
drepCount : Integer;
|
|
426
|
-
|
|
427
|
-
@title : 'Always-Abstain Stake'
|
|
428
|
-
@description: 'Stake delegated to the predefined always-abstain DRep; null when not reported'
|
|
429
|
-
drepAbstainStake : Lovelace;
|
|
430
|
-
|
|
431
|
-
@title : 'Always-No-Confidence Stake'
|
|
432
|
-
@description: 'Stake delegated to the predefined always-no-confidence DRep; null when not reported'
|
|
433
|
-
drepNoConfidenceStake : Lovelace;
|
|
434
|
-
|
|
435
|
-
@title : 'Account Count'
|
|
436
|
-
@description: 'Rows in AccountEpochSnapshots for the epoch; null when no account snapshot was taken'
|
|
437
|
-
accountCount : Integer;
|
|
438
|
-
|
|
439
|
-
@title : 'Account Snapshot Slot'
|
|
440
|
-
@description: 'Absolute slot of the block the account snapshot was read at'
|
|
441
|
-
accountSnapshotSlot : Integer64;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
@title : 'Account Epoch Snapshot Entity'
|
|
445
|
-
@description: 'Reward accounts as the node reported them once per epoch (crawler.accountSnapshots, off by default). The node lists an account while it is delegated to a stake pool or a DRep, so an account without a row had no delegation at the snapshot block or is unknown to the crawl. The block is EpochLedgerSnapshots.accountSnapshotSlot of the epoch. Non-temporal.'
|
|
446
|
-
entity AccountEpochSnapshots {
|
|
447
|
-
|
|
448
|
-
@title : 'Stake Address (Key)'
|
|
449
|
-
@description: 'Reward account (bech32)'
|
|
450
|
-
key stakeAddress : Bech32;
|
|
451
|
-
|
|
452
|
-
@title : 'Epoch (Key)'
|
|
453
|
-
@description: 'Epoch the observation belongs to'
|
|
454
|
-
key epoch : Integer;
|
|
455
|
-
|
|
456
|
-
@title : 'Withdrawable Amount'
|
|
457
|
-
@description: 'Balance of the reward account at the snapshot block. Null for an account without a pool delegation: Ogmios 7.0 does not report that balance.'
|
|
458
|
-
withdrawableAmount : Lovelace;
|
|
459
|
-
|
|
460
|
-
@title : 'Credited Amount'
|
|
461
|
-
@description: 'What the ledger added to the reward account since the snapshot of the previous epoch: the balance difference plus the withdrawals in between. Staking rewards, and also treasury withdrawals and refunded proposal deposits. Null without a balance in this or the previous epoch, or without crawled withdrawals (crawler.certificates).'
|
|
462
|
-
creditedAmount : Lovelace;
|
|
463
|
-
|
|
464
|
-
@title : 'Deposit'
|
|
465
|
-
@description: 'Key deposit held for the registration'
|
|
466
|
-
deposit : Lovelace;
|
|
467
|
-
|
|
468
|
-
@title : 'Pool Id'
|
|
469
|
-
@description: 'Stake pool the account is delegated to (bech32); null without a pool delegation'
|
|
470
|
-
poolId : Bech32;
|
|
471
|
-
|
|
472
|
-
@title : 'DRep Id'
|
|
473
|
-
@description: 'DRep the account delegates its vote to (CIP-129 bech32); drep_always_abstain / drep_always_no_confidence for the predefined ones; null without a vote delegation'
|
|
474
|
-
drepId : Bech32;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
@title : 'Asset Entity'
|
|
478
|
-
@description: 'Native-asset information entity (supply, mint history, CIP-25 + CIP-26 metadata)'
|
|
479
|
-
entity Assets : temporal {
|
|
480
|
-
|
|
481
|
-
@title : 'Asset Unit (Key)'
|
|
482
|
-
@description: 'Concatenation of policyId (56 hex) and assetNameHex (0-64 hex, the 32-byte ledger cap)'
|
|
483
|
-
key unit : AssetUnit;
|
|
484
|
-
|
|
485
|
-
@title : 'Policy ID'
|
|
486
|
-
@description: 'Blake2b-224 hash of the minting policy script (56-char hex)'
|
|
487
|
-
policyId : Blake2b224;
|
|
488
|
-
|
|
489
|
-
@title : 'Asset Name Hex'
|
|
490
|
-
@description: 'Asset name as hex string (0-32 bytes / 0-64 hex chars)'
|
|
491
|
-
assetNameHex : String(64); // 32-byte ledger cap = 64 hex
|
|
492
|
-
|
|
493
|
-
@title : 'Asset Name'
|
|
494
|
-
@description: 'Asset name as UTF-8 string when decodable'
|
|
495
|
-
assetName : String(128);
|
|
496
|
-
|
|
497
|
-
@title : 'Asset Fingerprint'
|
|
498
|
-
@description: 'CIP-14 asset fingerprint (asset1...)'
|
|
499
|
-
fingerprint : String(44);
|
|
500
|
-
|
|
501
|
-
@title : 'Total Supply'
|
|
502
|
-
@description: 'Current total supply (BigInt-safe decimal string)'
|
|
503
|
-
totalSupply : String(40);
|
|
504
|
-
|
|
505
|
-
@title : 'Mint or Burn Count'
|
|
506
|
-
@description: 'Total number of mint/burn transactions for this asset'
|
|
507
|
-
mintOrBurnCount : Integer;
|
|
508
|
-
|
|
509
|
-
@title : 'Initial Mint Tx Hash'
|
|
510
|
-
@description: 'Hash of the transaction that first minted this asset'
|
|
511
|
-
initialMintTxHash : Blake2b256;
|
|
512
|
-
|
|
513
|
-
@title : 'Initial Mint Time'
|
|
514
|
-
@description: 'Unix timestamp of the initial mint (null when unavailable from backend, e.g. Blockfrost)'
|
|
515
|
-
initialMintTime : Integer64;
|
|
516
|
-
|
|
517
|
-
@title : 'On-Chain Metadata'
|
|
518
|
-
@description: 'CIP-25 on-chain metadata as JSON string (varies per minter)'
|
|
519
|
-
onchainMetadata : LargeString;
|
|
520
|
-
|
|
521
|
-
@title : 'Registry Name'
|
|
522
|
-
@description: 'CIP-26 off-chain registry: human-readable name'
|
|
523
|
-
registryName : String(128);
|
|
524
|
-
|
|
525
|
-
@title : 'Registry Ticker'
|
|
526
|
-
@description: 'CIP-26 off-chain registry: ticker symbol'
|
|
527
|
-
registryTicker : String(16);
|
|
528
|
-
|
|
529
|
-
@title : 'Registry Decimals'
|
|
530
|
-
@description: 'CIP-26 off-chain registry: decimal precision'
|
|
531
|
-
registryDecimals : Integer;
|
|
532
|
-
|
|
533
|
-
@title : 'Decimals'
|
|
534
|
-
@description: 'Decimal places of the token: the decimals field of the CIP-68 reference datum for a unit with label 333 or 444, else the CIP-26 registry value; null when neither is known'
|
|
535
|
-
decimals : Integer;
|
|
536
|
-
|
|
537
|
-
@title : 'Registry Description'
|
|
538
|
-
@description: 'CIP-26 off-chain registry: human-readable description'
|
|
539
|
-
registryDescription : LargeString;
|
|
540
|
-
|
|
541
|
-
@title : 'Registry URL'
|
|
542
|
-
@description: 'CIP-26 off-chain registry: project URL'
|
|
543
|
-
registryUrl : String(256);
|
|
544
|
-
|
|
545
|
-
@title : 'Registry Logo'
|
|
546
|
-
@description: 'CIP-26 off-chain registry: base64-encoded logo or URL'
|
|
547
|
-
registryLogo : LargeString;
|
|
548
|
-
|
|
549
|
-
@title : 'First Seen Slot'
|
|
550
|
-
@description: 'Slot of the crawled block that wrote this bare row; null for rows written otherwise. A rollback past it removes the row'
|
|
551
|
-
firstSeenSlot : Integer64;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
@title : 'Asset History Entry'
|
|
555
|
-
@description: 'Mint or burn event for a native asset. Immutable on-chain: entries are never updated, only inserted. Free-standing (not a Composition) so history can be queried before/without the parent Assets row.'
|
|
556
|
-
@readonly
|
|
557
|
-
entity AssetHistory {
|
|
558
|
-
|
|
559
|
-
@title : 'Asset Unit (Key)'
|
|
560
|
-
@description: 'policyId + assetNameHex (concatenated hex)'
|
|
561
|
-
key unit : AssetUnit;
|
|
562
|
-
|
|
563
|
-
@title : 'Transaction Hash (Key)'
|
|
564
|
-
@description: 'Hash of the transaction that performed the mint or burn'
|
|
565
|
-
key txHash : Blake2b256;
|
|
566
|
-
|
|
567
|
-
@title : 'Action'
|
|
568
|
-
@description: 'mint or burn'
|
|
569
|
-
action : String(10);
|
|
570
|
-
|
|
571
|
-
@title : 'Quantity'
|
|
572
|
-
@description: 'Absolute mint/burn amount (BigInt-safe decimal string; always positive; sign info is in `action`)'
|
|
573
|
-
quantity : String(40);
|
|
574
|
-
|
|
575
|
-
@title : 'Block Time'
|
|
576
|
-
@description: 'Unix timestamp of the containing block (null when backend does not provide, e.g. Blockfrost without extra tx fetch)'
|
|
577
|
-
blockTime : Integer64;
|
|
578
|
-
|
|
579
|
-
@title : 'Block Height'
|
|
580
|
-
@description: 'Block height of the containing block (null when backend does not provide)'
|
|
581
|
-
blockHeight : Integer;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
@title : '
|
|
585
|
-
@description: '
|
|
586
|
-
entity
|
|
587
|
-
|
|
588
|
-
@title : '
|
|
589
|
-
@description: '
|
|
590
|
-
key
|
|
591
|
-
|
|
592
|
-
@title : '
|
|
593
|
-
@description: '
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
@title : '
|
|
597
|
-
@description: '
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
@
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
@
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
@
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
@title : '
|
|
618
|
-
@description: '
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
@title : '
|
|
622
|
-
@description: '
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
@title : '
|
|
626
|
-
@description: '
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
@title : '
|
|
630
|
-
@description: '
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
@
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
@
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
@
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
@title : 'Address
|
|
651
|
-
@description: '
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
@
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
@
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
@title : 'Address
|
|
693
|
-
@description: 'Association entity for
|
|
694
|
-
entity
|
|
695
|
-
|
|
696
|
-
@title : 'Address (key)'
|
|
697
|
-
@description: 'The Bech32 encoded address associated with the
|
|
698
|
-
key address
|
|
699
|
-
|
|
700
|
-
@title : '
|
|
701
|
-
@description: 'The unique identifier for the
|
|
702
|
-
key
|
|
703
|
-
|
|
704
|
-
@title : '
|
|
705
|
-
@description: '
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
@
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
@
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
@
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
@title : '
|
|
726
|
-
@description: '
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
@
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
@
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
@title : '
|
|
738
|
-
@description: '
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
@
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
@
|
|
748
|
-
entity
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
@
|
|
752
|
-
key
|
|
753
|
-
|
|
754
|
-
@title : '
|
|
755
|
-
@description: '
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
@title : '
|
|
759
|
-
@description: '
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
@
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
@
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
@
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
@
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
@
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
@
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
@
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
@
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
@title : '
|
|
800
|
-
@description: '
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
@title : '
|
|
804
|
-
@description: '
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
@title : '
|
|
808
|
-
@description: '
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
@
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
@
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
@
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
@
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
@
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
@
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
@
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
@
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
@
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
@
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
@
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
@title : 'Transaction
|
|
863
|
-
@description: 'The transaction
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
@
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
@
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
@
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
@
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
@
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
@
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
@
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
@
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
@
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
@
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
@
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
@
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
@
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
@title : '
|
|
951
|
-
@description: '
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
@title : 'Input
|
|
955
|
-
@description: '
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
@
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
@
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
@
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
@
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
@
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
@
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
@
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
@
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
@
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
@
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
@
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
@
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
@
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
@
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
@
|
|
1083
|
-
@
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
@
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
@
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
@
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
@
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
@
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
@
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
@
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
@
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
@
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
@title : '
|
|
1129
|
-
@description: '
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
@
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
@
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
@
|
|
1153
|
-
@
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
@
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
@
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
@
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
@
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
@
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
@
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
@
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
@
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
@
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
@
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
@title : '
|
|
1222
|
-
@description: '
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
@
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
@
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
@
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
@
|
|
1240
|
-
@
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
@
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
@
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
@
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
@
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
@
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
@
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
@
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
@
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
@title : '
|
|
1282
|
-
@description: '
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
@
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
@
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
@
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
@
|
|
1300
|
-
@
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
@
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
@
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
@
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
@
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
@
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
@title : '
|
|
1330
|
-
@description: '
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
@title : '
|
|
1334
|
-
@description: '
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
@
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
@
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
@
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
@
|
|
1357
|
-
@
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
@
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
@
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
@
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
@
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
@
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
@
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
@
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
@
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
@
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
@
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
@
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
@
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
@
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
@
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
@
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
@
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
@
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
@
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
@
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
@
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
@
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
@
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
@
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
@
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
@
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
@
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
@
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
@
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
@
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
@
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
@
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
@
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
@
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
@
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
@
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
@
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
@
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
@
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
@
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
@title : '
|
|
1535
|
-
@description: '
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
@title : '
|
|
1539
|
-
@description: '
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
@title : '
|
|
1543
|
-
@description: '
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
@title : '
|
|
1547
|
-
@description: '
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
@
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
@
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
@
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
@
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
@
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
@
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
@
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
@title : '
|
|
1584
|
-
@description: 'The
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
@title : '
|
|
1588
|
-
@description: '
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
@
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
@
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
@
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
@title : '
|
|
1610
|
-
@description: '
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
@
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
@
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
@
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
@
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
@
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
@
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
@title : '
|
|
1639
|
-
@description: '
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
@title : '
|
|
1643
|
-
@description: '
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
@title : '
|
|
1647
|
-
@description: '
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
@title : '
|
|
1651
|
-
@description: '
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
@
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
@
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
@
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
@title : '
|
|
1672
|
-
@description: '
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
@
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
@
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
@
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
@title : '
|
|
1689
|
-
@description: '
|
|
1690
|
-
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
@title : 'Transaction Build
|
|
1694
|
-
@description: 'Entity for storing transaction build
|
|
1695
|
-
entity
|
|
1696
|
-
|
|
1697
|
-
@title : 'Build (key)'
|
|
1698
|
-
@description: '
|
|
1699
|
-
key
|
|
1700
|
-
|
|
1701
|
-
@title : '
|
|
1702
|
-
@description: '
|
|
1703
|
-
key
|
|
1704
|
-
|
|
1705
|
-
@title : '
|
|
1706
|
-
@description: '
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
@
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
@
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
@title : '
|
|
1723
|
-
@description: '
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
@
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
@
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
@
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
@title : '
|
|
1740
|
-
@description: '
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
@
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
@title : '
|
|
1753
|
-
@description: '
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
@title : '
|
|
1757
|
-
@description: '
|
|
1758
|
-
key
|
|
1759
|
-
|
|
1760
|
-
@title : '
|
|
1761
|
-
@description: '
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
@title : '
|
|
1765
|
-
@description: '
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
@
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
@
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
@
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
@
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
@
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
@
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
@
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
@
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
@
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
@
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
@
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
@title : '
|
|
1820
|
-
@description: '
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
@
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
@
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
@
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
@title : '
|
|
1837
|
-
@description: '
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
@
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
@
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
@
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
@
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
@title
|
|
1866
|
-
@description
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
@title : '
|
|
1870
|
-
@description: '
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
@title : '
|
|
1874
|
-
@description: '
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
@
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
@
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
@title
|
|
1895
|
-
@description
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
@title : '
|
|
1899
|
-
@description: '
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
@title : '
|
|
1903
|
-
@description: '
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
@
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
@title : '
|
|
1916
|
-
@description: 'The associated
|
|
1917
|
-
key
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
@
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
@title : '
|
|
1929
|
-
@description: '
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
@title : 'Transaction
|
|
1933
|
-
@description: 'The
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
@
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
@
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
@
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
@
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
@
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
@
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
@
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
@
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
@
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
@
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
@
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
@
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
@
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
@title : '
|
|
1994
|
-
@description: '
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
@title : '
|
|
1998
|
-
@description: '
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
@title : '
|
|
2002
|
-
@description: '
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
@
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
@title : '
|
|
2011
|
-
@description: '
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
@title : '
|
|
2015
|
-
@description: '
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
@title : '
|
|
2019
|
-
@description: '
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
@
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
@
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
@
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
@
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
@
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
@
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
@title : '
|
|
2056
|
-
@description: '
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
@title : '
|
|
2060
|
-
@description: '
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
@title : '
|
|
2064
|
-
@description: '
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
@
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
@
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
@
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
@
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
@
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
@
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
@
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
@
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
@
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
@
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
@
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
@
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
@
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
@
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
@
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
@
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
@
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
@
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
@
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
@
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
@title : '
|
|
2159
|
-
@description: '
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
@title : '
|
|
2163
|
-
@description: '
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
@title : '
|
|
2167
|
-
@description: '
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
@title : '
|
|
2171
|
-
@description: '
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
@title : '
|
|
2175
|
-
@description: '
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
@title : '
|
|
2179
|
-
@description: '
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
@
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
@
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
@title : '
|
|
2200
|
-
@description: '
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
@title : '
|
|
2204
|
-
@description: '
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
@title : '
|
|
2208
|
-
@description: '
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
@title : '
|
|
2212
|
-
@description: '
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
@title : '
|
|
2216
|
-
@description: '
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
@
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
@
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
@
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
@
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
@
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
@title : '
|
|
2249
|
-
@description: '
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
@
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
@title : '
|
|
2257
|
-
@description: '
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
@title : '
|
|
2261
|
-
@description: '
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
@title : '
|
|
2265
|
-
@description: '
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
@title : '
|
|
2269
|
-
@description: '
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
@
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
@
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
@
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
@
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
@
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
@
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
@
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
@
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
@
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
@
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
@
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
@
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
@
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
@
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
@
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
@
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
@
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
@
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
@
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
@
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
@
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
@
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
@
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
@
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
@
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
@
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
@
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
@
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
@
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
@
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
@
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
@
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
@
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
@
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
1
|
+
using {temporal, } from '@sap/cds/common';
|
|
2
|
+
using {Lovelace, Blake2b224, Blake2b256, Bech32, AssetUnit, AssetSlice, AssetSumSlice, SigningStatus,SubmissionStatus, UTxODataSlice, MetadataLabel, CrawlSyncStatus, ReorgStatus, WalletJobStatus, WalletJobKind, WorkerSignerType} from '../db/types';
|
|
3
|
+
|
|
4
|
+
namespace odatano.cardano;
|
|
5
|
+
|
|
6
|
+
@title : 'Network Information Entity'
|
|
7
|
+
@description: 'General information entity definition'
|
|
8
|
+
entity NetworkInformation : temporal {
|
|
9
|
+
|
|
10
|
+
@title : 'Network (key)'
|
|
11
|
+
@description: 'The Cardano network type mainnet | preprod | preview'
|
|
12
|
+
key network : String(10);
|
|
13
|
+
|
|
14
|
+
@title : 'Max Supply'
|
|
15
|
+
@description: 'The maximum supply of ADA'
|
|
16
|
+
maxSupply : Lovelace;
|
|
17
|
+
|
|
18
|
+
@title : 'Total Supply'
|
|
19
|
+
@description: 'Current total supply of ADA'
|
|
20
|
+
totalSupply : Lovelace;
|
|
21
|
+
|
|
22
|
+
@title : 'Circulating Supply'
|
|
23
|
+
@description: 'Current circulating supply of ADA'
|
|
24
|
+
circulatingSupply : Lovelace;
|
|
25
|
+
|
|
26
|
+
@title : 'Locked Supply'
|
|
27
|
+
@description: 'Current locked supply of ADA'
|
|
28
|
+
lockedSupply : Lovelace;
|
|
29
|
+
|
|
30
|
+
@title : 'Treasury Supply'
|
|
31
|
+
@description: 'Current treasury supply of ADA'
|
|
32
|
+
treasurySupply : Lovelace;
|
|
33
|
+
|
|
34
|
+
@title : 'Reserves Supply'
|
|
35
|
+
@description: 'Current reserves supply of ADA'
|
|
36
|
+
reservesSupply : Lovelace;
|
|
37
|
+
|
|
38
|
+
@title : 'Live Stake'
|
|
39
|
+
@description: 'Current live stake of ADA'
|
|
40
|
+
liveStake : Lovelace;
|
|
41
|
+
|
|
42
|
+
@title : 'Active Stake'
|
|
43
|
+
@description: 'Current active stake of ADA'
|
|
44
|
+
activeStake : Lovelace;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@title : 'Block Entity'
|
|
48
|
+
@description: 'Block information entity definition'
|
|
49
|
+
@readonly
|
|
50
|
+
entity Blocks {
|
|
51
|
+
|
|
52
|
+
@title : 'Block Hash (Key)'
|
|
53
|
+
@description: 'Block hash as hex string'
|
|
54
|
+
key hash : String(64);
|
|
55
|
+
|
|
56
|
+
@title : 'Block Time'
|
|
57
|
+
@description: 'Block time'
|
|
58
|
+
time : Timestamp;
|
|
59
|
+
|
|
60
|
+
@title : 'Block Height'
|
|
61
|
+
@description: 'Block height as integer'
|
|
62
|
+
height : Integer;
|
|
63
|
+
|
|
64
|
+
@title : 'Block SlotLeader'
|
|
65
|
+
@description: 'Bech32 id of the pool that produced the block'
|
|
66
|
+
slotLeader : String;
|
|
67
|
+
|
|
68
|
+
@title : 'Block Epoch Number'
|
|
69
|
+
@description: 'Epoch number as integer'
|
|
70
|
+
epochNumber : Integer;
|
|
71
|
+
|
|
72
|
+
@title : 'Block epoch Association'
|
|
73
|
+
@description: 'Association to Epochs entity'
|
|
74
|
+
epoch : Association to Epochs
|
|
75
|
+
on epoch.epoch = $self.epochNumber;
|
|
76
|
+
|
|
77
|
+
@title : 'Block Absolute Slot'
|
|
78
|
+
@description: 'Absolute slot number of the block'
|
|
79
|
+
slot : Integer64;
|
|
80
|
+
|
|
81
|
+
@title : 'Block Slot within Epoch'
|
|
82
|
+
@description: 'Slot number within the epoch as integer'
|
|
83
|
+
epochSlot : Integer;
|
|
84
|
+
|
|
85
|
+
@title : 'Block Size'
|
|
86
|
+
@description: 'Block size in bytes'
|
|
87
|
+
size : Integer;
|
|
88
|
+
|
|
89
|
+
@title : 'Block Transaction Count'
|
|
90
|
+
@description: 'Number of transactions in the block'
|
|
91
|
+
txCount : Integer;
|
|
92
|
+
|
|
93
|
+
@title : 'Block Fees'
|
|
94
|
+
@description: 'Total fees in the block'
|
|
95
|
+
fees : Lovelace;
|
|
96
|
+
|
|
97
|
+
@title : 'Previous Block Hash'
|
|
98
|
+
@description: 'Hash of the block before this one; null when the source did not report it'
|
|
99
|
+
previousHash : String(64);
|
|
100
|
+
|
|
101
|
+
@title : 'Withdrawals Reported'
|
|
102
|
+
@description: 'True when the crawl stored the withdrawals of every transaction of this block; null for blocks stored without them'
|
|
103
|
+
withdrawalsReported : Boolean;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@title : 'Epoch Entity'
|
|
107
|
+
@description: 'Epoch information entity definition'
|
|
108
|
+
@readonly
|
|
109
|
+
entity Epochs {
|
|
110
|
+
|
|
111
|
+
@title : 'Epoch Number (Key)'
|
|
112
|
+
@description: 'Epoch number as integer'
|
|
113
|
+
key epoch : Integer;
|
|
114
|
+
|
|
115
|
+
@title : 'Epoch Start Time'
|
|
116
|
+
@description: 'Epoch start time as unix timestamp (seconds)'
|
|
117
|
+
startTime : Integer64; // Integer (32-bit) overflows on 2038-01-19
|
|
118
|
+
|
|
119
|
+
@title : 'Epoch End Time'
|
|
120
|
+
@description: 'Epoch end time as unix timestamp (seconds)'
|
|
121
|
+
endTime : Integer64;
|
|
122
|
+
|
|
123
|
+
@title : 'First Block Time'
|
|
124
|
+
@description: 'First block time as unix timestamp (seconds)'
|
|
125
|
+
firstBlockTime : Integer64;
|
|
126
|
+
|
|
127
|
+
@title : 'Last Block Time'
|
|
128
|
+
@description: 'Last block time as unix timestamp (seconds)'
|
|
129
|
+
lastBlockTime : Integer64;
|
|
130
|
+
|
|
131
|
+
@title : 'Block Count'
|
|
132
|
+
@description: 'Number of blocks in the epoch'
|
|
133
|
+
blockCount : Integer;
|
|
134
|
+
|
|
135
|
+
@title : 'Transaction Count'
|
|
136
|
+
@description: 'Number of transactions in the epoch'
|
|
137
|
+
txCount : Integer;
|
|
138
|
+
|
|
139
|
+
@title : 'Total Output'
|
|
140
|
+
@description: 'Total output in the epoch as string to avoid precision issues'
|
|
141
|
+
output : String;
|
|
142
|
+
|
|
143
|
+
@title : 'Total Fees'
|
|
144
|
+
@description: 'Total fees in the epoch'
|
|
145
|
+
fees : Lovelace;
|
|
146
|
+
|
|
147
|
+
@title : 'Active Stake'
|
|
148
|
+
@description: 'Total active stake in the epoch'
|
|
149
|
+
activeStake : Lovelace;
|
|
150
|
+
|
|
151
|
+
@title : 'Final'
|
|
152
|
+
@description: 'True once the row was read after the epoch ended; a read refreshes the row while it is not'
|
|
153
|
+
final : Boolean;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@title : 'Pool Entity'
|
|
157
|
+
@description: 'Stake pool information entity definition'
|
|
158
|
+
entity Pools : temporal {
|
|
159
|
+
|
|
160
|
+
@title : 'Pool Id (Key)'
|
|
161
|
+
@description: 'Unique stake pool identifier'
|
|
162
|
+
key poolId : Bech32;
|
|
163
|
+
|
|
164
|
+
@title : 'VRF Key Hash'
|
|
165
|
+
@description: 'Pool VRF key hash as hex string'
|
|
166
|
+
vrfKeyHash : String;
|
|
167
|
+
|
|
168
|
+
@title : 'Blocks Minted'
|
|
169
|
+
@description: 'Total number of blocks minted by the pool'
|
|
170
|
+
blocksMinted : Integer;
|
|
171
|
+
|
|
172
|
+
@title : 'Blocks in Epoch'
|
|
173
|
+
@description: 'Number of blocks minted in the current epoch. Null when the backend that filled the row has no such figure (Koios); a 0 is a real zero'
|
|
174
|
+
blocksEpoch : Integer;
|
|
175
|
+
|
|
176
|
+
@title : 'Live Stake'
|
|
177
|
+
@description: 'Current live stake delegated to the pool'
|
|
178
|
+
liveStake : Lovelace;
|
|
179
|
+
|
|
180
|
+
@title : 'Live Size'
|
|
181
|
+
@description: 'Current live size as fraction of total active stake'
|
|
182
|
+
liveSize : Decimal(5, 4);
|
|
183
|
+
|
|
184
|
+
@title : 'Live Saturation'
|
|
185
|
+
@description: 'Current live saturation as fraction of ideal size (1.0 = 100% saturated). Decimal(9, 4): a test-network pool can hold many times the saturation point'
|
|
186
|
+
liveSaturation : Decimal(9, 4);
|
|
187
|
+
|
|
188
|
+
@title : 'Live Delegators'
|
|
189
|
+
@description: 'Current number of live delegators'
|
|
190
|
+
liveDelegators : Integer;
|
|
191
|
+
|
|
192
|
+
@title : 'Active Stake'
|
|
193
|
+
@description: 'Current active stake delegated to the pool'
|
|
194
|
+
activeStake : Lovelace;
|
|
195
|
+
|
|
196
|
+
@title : 'Active Size'
|
|
197
|
+
@description: 'Current active size as fraction'
|
|
198
|
+
activeSize : Decimal(5, 4);
|
|
199
|
+
|
|
200
|
+
@title : 'Pledge'
|
|
201
|
+
@description: 'Pool pledge in lovelace'
|
|
202
|
+
pledge : Lovelace;
|
|
203
|
+
|
|
204
|
+
@title : 'Margin'
|
|
205
|
+
@description: 'Pool margin as fraction'
|
|
206
|
+
margin : Decimal(5, 4);
|
|
207
|
+
|
|
208
|
+
@title : 'Fixed Cost'
|
|
209
|
+
@description: 'Pool fixed cost in lovelace'
|
|
210
|
+
fixedCost : Lovelace;
|
|
211
|
+
|
|
212
|
+
@title : 'Reward Account'
|
|
213
|
+
@description: 'Pool reward account in bech32 format'
|
|
214
|
+
rewardAccount : String;
|
|
215
|
+
|
|
216
|
+
@title : 'Metadata URL'
|
|
217
|
+
@description: 'URL of the pool metadata file as registered on chain. Null without one'
|
|
218
|
+
metadataUrl : String(128);
|
|
219
|
+
|
|
220
|
+
@title : 'Metadata Hash'
|
|
221
|
+
@description: 'blake2b-256 the registration names for the metadata file, as hex'
|
|
222
|
+
metadataHash : Blake2b256;
|
|
223
|
+
|
|
224
|
+
@title : 'Name'
|
|
225
|
+
@description: 'Pool name from the metadata file. Null while the file is unknown or failed its checks'
|
|
226
|
+
name : String(50);
|
|
227
|
+
|
|
228
|
+
@title : 'Ticker'
|
|
229
|
+
@description: 'Pool ticker from the metadata file, 3 to 5 characters'
|
|
230
|
+
ticker : String(5);
|
|
231
|
+
|
|
232
|
+
@title : 'Homepage'
|
|
233
|
+
@description: 'Pool homepage from the metadata file'
|
|
234
|
+
homepage : String(512);
|
|
235
|
+
|
|
236
|
+
@title : 'Description'
|
|
237
|
+
@description: 'Pool description from the metadata file'
|
|
238
|
+
description : String(255);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@title : 'Pool Epoch Snapshot Entity'
|
|
242
|
+
@description: 'Stake-pool state as observed once per epoch by the chain crawler. Non-temporal: each row is a dated observation, not a cached slice, so the crawled range is a true time series. Written only when the crawler runs with epochSnapshots enabled, an enumerating backend (Koios) is configured, and the crawl is at the chain tip. The provider reports the pool set as it is now, so an epoch passed during a backfill is skipped rather than filled with current figures.'
|
|
243
|
+
entity PoolEpochSnapshots {
|
|
244
|
+
|
|
245
|
+
@title : 'Pool Id (Key)'
|
|
246
|
+
@description: 'Unique stake pool identifier'
|
|
247
|
+
key poolId : Bech32;
|
|
248
|
+
|
|
249
|
+
@title : 'Epoch (Key)'
|
|
250
|
+
@description: 'Epoch the observation belongs to, i.e. the epoch running at snapshotSlot'
|
|
251
|
+
key epoch : Integer;
|
|
252
|
+
|
|
253
|
+
@title : 'Snapshot Slot'
|
|
254
|
+
@description: 'Absolute slot of the block that triggered the snapshot'
|
|
255
|
+
snapshotSlot : Integer64;
|
|
256
|
+
|
|
257
|
+
@title : 'Snapshot Time'
|
|
258
|
+
@description: 'Unix timestamp of the block that triggered the snapshot'
|
|
259
|
+
snapshotTime : Integer64;
|
|
260
|
+
|
|
261
|
+
@title : 'Snapshot Block Hash'
|
|
262
|
+
@description: 'Hash of the block the ledger state was read at (Ogmios); null for provider snapshots'
|
|
263
|
+
snapshotHash : Blake2b256;
|
|
264
|
+
|
|
265
|
+
@title : 'Source'
|
|
266
|
+
@description: 'Where the observation came from: ogmios (node ledger state at the snapshot block) or koios (provider, current state)'
|
|
267
|
+
source : String(10);
|
|
268
|
+
|
|
269
|
+
@title : 'Blocks Minted'
|
|
270
|
+
@description: 'Total number of blocks minted by the pool'
|
|
271
|
+
blocksMinted : Integer;
|
|
272
|
+
|
|
273
|
+
@title : 'Blocks in Epoch'
|
|
274
|
+
@description: 'Number of blocks minted in the epoch that was running at snapshot time. Null when the enumerating backend has no such figure (Koios); a 0 is a real zero'
|
|
275
|
+
blocksEpoch : Integer;
|
|
276
|
+
|
|
277
|
+
@title : 'Live Stake'
|
|
278
|
+
@description: 'Live stake delegated to the pool'
|
|
279
|
+
liveStake : Lovelace;
|
|
280
|
+
|
|
281
|
+
@title : 'Live Size'
|
|
282
|
+
@description: 'Live size as fraction of total active stake'
|
|
283
|
+
liveSize : Decimal(5, 4);
|
|
284
|
+
|
|
285
|
+
@title : 'Live Saturation'
|
|
286
|
+
@description: 'Live saturation as fraction of ideal size (1.0 = 100% saturated). Decimal(9, 4): a test-network pool can hold many times the saturation point'
|
|
287
|
+
liveSaturation : Decimal(9, 4);
|
|
288
|
+
|
|
289
|
+
@title : 'Live Delegators'
|
|
290
|
+
@description: 'Number of live delegators'
|
|
291
|
+
liveDelegators : Integer;
|
|
292
|
+
|
|
293
|
+
@title : 'Active Stake'
|
|
294
|
+
@description: 'Active stake delegated to the pool'
|
|
295
|
+
activeStake : Lovelace;
|
|
296
|
+
|
|
297
|
+
@title : 'Active Size'
|
|
298
|
+
@description: 'Active size as fraction'
|
|
299
|
+
activeSize : Decimal(5, 4);
|
|
300
|
+
|
|
301
|
+
@title : 'Pledge'
|
|
302
|
+
@description: 'Pool pledge in lovelace'
|
|
303
|
+
pledge : Lovelace;
|
|
304
|
+
|
|
305
|
+
@title : 'Margin'
|
|
306
|
+
@description: 'Pool margin as fraction'
|
|
307
|
+
margin : Decimal(5, 4);
|
|
308
|
+
|
|
309
|
+
@title : 'Fixed Cost'
|
|
310
|
+
@description: 'Pool fixed cost in lovelace'
|
|
311
|
+
fixedCost : Lovelace;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@title : 'Drep Epoch Snapshot Entity'
|
|
315
|
+
@description: 'DRep state as observed once per epoch by the chain crawler. Non-temporal, tip-only, same reasoning as PoolEpochSnapshots.'
|
|
316
|
+
entity DrepEpochSnapshots {
|
|
317
|
+
|
|
318
|
+
@title : 'Drep Id (Key)'
|
|
319
|
+
@description: 'Unique drep identifier'
|
|
320
|
+
key drepId : Bech32;
|
|
321
|
+
|
|
322
|
+
@title : 'Epoch (Key)'
|
|
323
|
+
@description: 'Epoch the observation belongs to, i.e. the epoch running at snapshotSlot'
|
|
324
|
+
key epoch : Integer;
|
|
325
|
+
|
|
326
|
+
@title : 'Snapshot Slot'
|
|
327
|
+
@description: 'Absolute slot of the block that triggered the snapshot'
|
|
328
|
+
snapshotSlot : Integer64;
|
|
329
|
+
|
|
330
|
+
@title : 'Snapshot Time'
|
|
331
|
+
@description: 'Unix timestamp of the block that triggered the snapshot'
|
|
332
|
+
snapshotTime : Integer64;
|
|
333
|
+
|
|
334
|
+
@title : 'Snapshot Block Hash'
|
|
335
|
+
@description: 'Hash of the block the ledger state was read at (Ogmios); null for provider snapshots'
|
|
336
|
+
snapshotHash : Blake2b256;
|
|
337
|
+
|
|
338
|
+
@title : 'Source'
|
|
339
|
+
@description: 'ogmios | koios, as on PoolEpochSnapshots'
|
|
340
|
+
source : String(10);
|
|
341
|
+
|
|
342
|
+
@title : 'Deposit'
|
|
343
|
+
@description: 'DRep registration deposit in lovelace; null when the source does not report it'
|
|
344
|
+
deposit : Lovelace;
|
|
345
|
+
|
|
346
|
+
@title : 'Expires Epoch'
|
|
347
|
+
@description: 'Epoch the DRep mandate runs out (inactivity expiry); null when the source does not report it'
|
|
348
|
+
expiresEpoch : Integer;
|
|
349
|
+
|
|
350
|
+
@title : 'Delegator Count'
|
|
351
|
+
@description: 'Number of stake credentials delegated to the DRep; null when the source does not report it'
|
|
352
|
+
delegatorCount : Integer;
|
|
353
|
+
|
|
354
|
+
@title : 'Vote Power'
|
|
355
|
+
@description: 'Amount of vote power in lovelace'
|
|
356
|
+
amount : Lovelace;
|
|
357
|
+
|
|
358
|
+
@title : 'Has Script'
|
|
359
|
+
@description: 'Indicates if drep is a script drep'
|
|
360
|
+
hasScript : Boolean;
|
|
361
|
+
|
|
362
|
+
@title : 'Last Active Epoch'
|
|
363
|
+
@description: 'Epoch number of last activity'
|
|
364
|
+
lastActiveEpoch : Integer;
|
|
365
|
+
|
|
366
|
+
@title : 'Retired'
|
|
367
|
+
@description: 'Indicates if drep is retired'
|
|
368
|
+
retired : Boolean;
|
|
369
|
+
|
|
370
|
+
@title : 'Expired'
|
|
371
|
+
@description: 'Indicates if drep is expired'
|
|
372
|
+
expired : Boolean;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@title : 'Epoch Ledger Snapshot Entity'
|
|
376
|
+
@description: 'Network-wide ledger figures per epoch, written with the pool/DRep snapshot. One row per snapshotted epoch; a missing epoch was not observed. Totals above 2^53 lovelace lose precision on SQLite.'
|
|
377
|
+
entity EpochLedgerSnapshots {
|
|
378
|
+
|
|
379
|
+
@title : 'Epoch (Key)'
|
|
380
|
+
@description: 'Epoch the observation belongs to'
|
|
381
|
+
key epoch : Integer;
|
|
382
|
+
|
|
383
|
+
@title : 'Snapshot Slot'
|
|
384
|
+
@description: 'Absolute slot of the block the snapshot was taken at'
|
|
385
|
+
snapshotSlot : Integer64;
|
|
386
|
+
|
|
387
|
+
@title : 'Snapshot Time'
|
|
388
|
+
@description: 'Unix timestamp of the snapshot block'
|
|
389
|
+
snapshotTime : Integer64;
|
|
390
|
+
|
|
391
|
+
@title : 'Snapshot Block Hash'
|
|
392
|
+
@description: 'Hash of the block the ledger state was read at (Ogmios); null for provider snapshots'
|
|
393
|
+
snapshotHash : Blake2b256;
|
|
394
|
+
|
|
395
|
+
@title : 'Source'
|
|
396
|
+
@description: 'ogmios | koios'
|
|
397
|
+
source : String(10);
|
|
398
|
+
|
|
399
|
+
@title : 'Treasury'
|
|
400
|
+
@description: 'Treasury pot in lovelace; null when the source does not report it'
|
|
401
|
+
treasury : Lovelace;
|
|
402
|
+
|
|
403
|
+
@title : 'Reserves'
|
|
404
|
+
@description: 'Reserves pot in lovelace; null when the source does not report it'
|
|
405
|
+
reserves : Lovelace;
|
|
406
|
+
|
|
407
|
+
@title : 'Total Supply'
|
|
408
|
+
@description: 'Maximum supply minus reserves, in lovelace'
|
|
409
|
+
totalSupply : Lovelace;
|
|
410
|
+
|
|
411
|
+
@title : 'Live Stake'
|
|
412
|
+
@description: 'Sum of the live stake of all pools'
|
|
413
|
+
liveStake : Lovelace;
|
|
414
|
+
|
|
415
|
+
@title : 'Active Stake'
|
|
416
|
+
@description: 'Active stake of the epoch (stake snapshot used for leader election and rewards)'
|
|
417
|
+
activeStake : Lovelace;
|
|
418
|
+
|
|
419
|
+
@title : 'Pool Count'
|
|
420
|
+
@description: 'Registered stake pools observed'
|
|
421
|
+
poolCount : Integer;
|
|
422
|
+
|
|
423
|
+
@title : 'DRep Count'
|
|
424
|
+
@description: 'Registered DReps observed'
|
|
425
|
+
drepCount : Integer;
|
|
426
|
+
|
|
427
|
+
@title : 'Always-Abstain Stake'
|
|
428
|
+
@description: 'Stake delegated to the predefined always-abstain DRep; null when not reported'
|
|
429
|
+
drepAbstainStake : Lovelace;
|
|
430
|
+
|
|
431
|
+
@title : 'Always-No-Confidence Stake'
|
|
432
|
+
@description: 'Stake delegated to the predefined always-no-confidence DRep; null when not reported'
|
|
433
|
+
drepNoConfidenceStake : Lovelace;
|
|
434
|
+
|
|
435
|
+
@title : 'Account Count'
|
|
436
|
+
@description: 'Rows in AccountEpochSnapshots for the epoch; null when no account snapshot was taken'
|
|
437
|
+
accountCount : Integer;
|
|
438
|
+
|
|
439
|
+
@title : 'Account Snapshot Slot'
|
|
440
|
+
@description: 'Absolute slot of the block the account snapshot was read at'
|
|
441
|
+
accountSnapshotSlot : Integer64;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
@title : 'Account Epoch Snapshot Entity'
|
|
445
|
+
@description: 'Reward accounts as the node reported them once per epoch (crawler.accountSnapshots, off by default). The node lists an account while it is delegated to a stake pool or a DRep, so an account without a row had no delegation at the snapshot block or is unknown to the crawl. The block is EpochLedgerSnapshots.accountSnapshotSlot of the epoch. Non-temporal.'
|
|
446
|
+
entity AccountEpochSnapshots {
|
|
447
|
+
|
|
448
|
+
@title : 'Stake Address (Key)'
|
|
449
|
+
@description: 'Reward account (bech32)'
|
|
450
|
+
key stakeAddress : Bech32;
|
|
451
|
+
|
|
452
|
+
@title : 'Epoch (Key)'
|
|
453
|
+
@description: 'Epoch the observation belongs to'
|
|
454
|
+
key epoch : Integer;
|
|
455
|
+
|
|
456
|
+
@title : 'Withdrawable Amount'
|
|
457
|
+
@description: 'Balance of the reward account at the snapshot block. Null for an account without a pool delegation: Ogmios 7.0 does not report that balance.'
|
|
458
|
+
withdrawableAmount : Lovelace;
|
|
459
|
+
|
|
460
|
+
@title : 'Credited Amount'
|
|
461
|
+
@description: 'What the ledger added to the reward account since the snapshot of the previous epoch: the balance difference plus the withdrawals in between. Staking rewards, and also treasury withdrawals and refunded proposal deposits. Null without a balance in this or the previous epoch, or without crawled withdrawals (crawler.certificates).'
|
|
462
|
+
creditedAmount : Lovelace;
|
|
463
|
+
|
|
464
|
+
@title : 'Deposit'
|
|
465
|
+
@description: 'Key deposit held for the registration'
|
|
466
|
+
deposit : Lovelace;
|
|
467
|
+
|
|
468
|
+
@title : 'Pool Id'
|
|
469
|
+
@description: 'Stake pool the account is delegated to (bech32); null without a pool delegation'
|
|
470
|
+
poolId : Bech32;
|
|
471
|
+
|
|
472
|
+
@title : 'DRep Id'
|
|
473
|
+
@description: 'DRep the account delegates its vote to (CIP-129 bech32); drep_always_abstain / drep_always_no_confidence for the predefined ones; null without a vote delegation'
|
|
474
|
+
drepId : Bech32;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
@title : 'Asset Entity'
|
|
478
|
+
@description: 'Native-asset information entity (supply, mint history, CIP-25 + CIP-26 metadata)'
|
|
479
|
+
entity Assets : temporal {
|
|
480
|
+
|
|
481
|
+
@title : 'Asset Unit (Key)'
|
|
482
|
+
@description: 'Concatenation of policyId (56 hex) and assetNameHex (0-64 hex, the 32-byte ledger cap)'
|
|
483
|
+
key unit : AssetUnit;
|
|
484
|
+
|
|
485
|
+
@title : 'Policy ID'
|
|
486
|
+
@description: 'Blake2b-224 hash of the minting policy script (56-char hex)'
|
|
487
|
+
policyId : Blake2b224;
|
|
488
|
+
|
|
489
|
+
@title : 'Asset Name Hex'
|
|
490
|
+
@description: 'Asset name as hex string (0-32 bytes / 0-64 hex chars)'
|
|
491
|
+
assetNameHex : String(64); // 32-byte ledger cap = 64 hex
|
|
492
|
+
|
|
493
|
+
@title : 'Asset Name'
|
|
494
|
+
@description: 'Asset name as UTF-8 string when decodable'
|
|
495
|
+
assetName : String(128);
|
|
496
|
+
|
|
497
|
+
@title : 'Asset Fingerprint'
|
|
498
|
+
@description: 'CIP-14 asset fingerprint (asset1...)'
|
|
499
|
+
fingerprint : String(44);
|
|
500
|
+
|
|
501
|
+
@title : 'Total Supply'
|
|
502
|
+
@description: 'Current total supply (BigInt-safe decimal string)'
|
|
503
|
+
totalSupply : String(40);
|
|
504
|
+
|
|
505
|
+
@title : 'Mint or Burn Count'
|
|
506
|
+
@description: 'Total number of mint/burn transactions for this asset'
|
|
507
|
+
mintOrBurnCount : Integer;
|
|
508
|
+
|
|
509
|
+
@title : 'Initial Mint Tx Hash'
|
|
510
|
+
@description: 'Hash of the transaction that first minted this asset'
|
|
511
|
+
initialMintTxHash : Blake2b256;
|
|
512
|
+
|
|
513
|
+
@title : 'Initial Mint Time'
|
|
514
|
+
@description: 'Unix timestamp of the initial mint (null when unavailable from backend, e.g. Blockfrost)'
|
|
515
|
+
initialMintTime : Integer64;
|
|
516
|
+
|
|
517
|
+
@title : 'On-Chain Metadata'
|
|
518
|
+
@description: 'CIP-25 on-chain metadata as JSON string (varies per minter)'
|
|
519
|
+
onchainMetadata : LargeString;
|
|
520
|
+
|
|
521
|
+
@title : 'Registry Name'
|
|
522
|
+
@description: 'CIP-26 off-chain registry: human-readable name'
|
|
523
|
+
registryName : String(128);
|
|
524
|
+
|
|
525
|
+
@title : 'Registry Ticker'
|
|
526
|
+
@description: 'CIP-26 off-chain registry: ticker symbol'
|
|
527
|
+
registryTicker : String(16);
|
|
528
|
+
|
|
529
|
+
@title : 'Registry Decimals'
|
|
530
|
+
@description: 'CIP-26 off-chain registry: decimal precision'
|
|
531
|
+
registryDecimals : Integer;
|
|
532
|
+
|
|
533
|
+
@title : 'Decimals'
|
|
534
|
+
@description: 'Decimal places of the token: the decimals field of the CIP-68 reference datum for a unit with label 333 or 444, else the CIP-26 registry value; null when neither is known'
|
|
535
|
+
decimals : Integer;
|
|
536
|
+
|
|
537
|
+
@title : 'Registry Description'
|
|
538
|
+
@description: 'CIP-26 off-chain registry: human-readable description'
|
|
539
|
+
registryDescription : LargeString;
|
|
540
|
+
|
|
541
|
+
@title : 'Registry URL'
|
|
542
|
+
@description: 'CIP-26 off-chain registry: project URL'
|
|
543
|
+
registryUrl : String(256);
|
|
544
|
+
|
|
545
|
+
@title : 'Registry Logo'
|
|
546
|
+
@description: 'CIP-26 off-chain registry: base64-encoded logo or URL'
|
|
547
|
+
registryLogo : LargeString;
|
|
548
|
+
|
|
549
|
+
@title : 'First Seen Slot'
|
|
550
|
+
@description: 'Slot of the crawled block that wrote this bare row; null for rows written otherwise. A rollback past it removes the row'
|
|
551
|
+
firstSeenSlot : Integer64;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
@title : 'Asset History Entry'
|
|
555
|
+
@description: 'Mint or burn event for a native asset. Immutable on-chain: entries are never updated, only inserted. Free-standing (not a Composition) so history can be queried before/without the parent Assets row.'
|
|
556
|
+
@readonly
|
|
557
|
+
entity AssetHistory {
|
|
558
|
+
|
|
559
|
+
@title : 'Asset Unit (Key)'
|
|
560
|
+
@description: 'policyId + assetNameHex (concatenated hex)'
|
|
561
|
+
key unit : AssetUnit;
|
|
562
|
+
|
|
563
|
+
@title : 'Transaction Hash (Key)'
|
|
564
|
+
@description: 'Hash of the transaction that performed the mint or burn'
|
|
565
|
+
key txHash : Blake2b256;
|
|
566
|
+
|
|
567
|
+
@title : 'Action'
|
|
568
|
+
@description: 'mint or burn'
|
|
569
|
+
action : String(10);
|
|
570
|
+
|
|
571
|
+
@title : 'Quantity'
|
|
572
|
+
@description: 'Absolute mint/burn amount (BigInt-safe decimal string; always positive; sign info is in `action`)'
|
|
573
|
+
quantity : String(40);
|
|
574
|
+
|
|
575
|
+
@title : 'Block Time'
|
|
576
|
+
@description: 'Unix timestamp of the containing block (null when backend does not provide, e.g. Blockfrost without extra tx fetch)'
|
|
577
|
+
blockTime : Integer64;
|
|
578
|
+
|
|
579
|
+
@title : 'Block Height'
|
|
580
|
+
@description: 'Block height of the containing block (null when backend does not provide)'
|
|
581
|
+
blockHeight : Integer;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
@title : 'Asset Supply'
|
|
585
|
+
@description: 'Per-unit sums over the AssetHistory rows up to CardanoSyncState.assetSupplyHeight, kept by the crawler block by block'
|
|
586
|
+
entity AssetSupply {
|
|
587
|
+
|
|
588
|
+
@title : 'Asset Unit (Key)'
|
|
589
|
+
@description: 'policyId + assetNameHex (concatenated hex)'
|
|
590
|
+
key unit : AssetUnit;
|
|
591
|
+
|
|
592
|
+
@title : 'Total Supply'
|
|
593
|
+
@description: 'Minted minus burned quantity'
|
|
594
|
+
totalSupply : Decimal(38, 0);
|
|
595
|
+
|
|
596
|
+
@title : 'Mint Or Burn Count'
|
|
597
|
+
@description: 'Number of AssetHistory rows of the unit'
|
|
598
|
+
mintOrBurnCount : Integer;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
@title : 'Drep Entity'
|
|
602
|
+
@description: 'Drep information entity definition'
|
|
603
|
+
entity Dreps : temporal {
|
|
604
|
+
|
|
605
|
+
@title : 'Drep Id (Key)'
|
|
606
|
+
@description: 'Unique drep identifier'
|
|
607
|
+
key drepId : Bech32;
|
|
608
|
+
|
|
609
|
+
@title : 'Drep VRF Key Hash'
|
|
610
|
+
@description: 'Drep VRF key hash as hex string'
|
|
611
|
+
hex : String;
|
|
612
|
+
|
|
613
|
+
@title : 'Vote Power'
|
|
614
|
+
@description: 'Amount of vote power in lovelace'
|
|
615
|
+
amount : Lovelace;
|
|
616
|
+
|
|
617
|
+
@title : 'Has Script'
|
|
618
|
+
@description: 'Indicates if drep is a script drep'
|
|
619
|
+
hasScript : Boolean;
|
|
620
|
+
|
|
621
|
+
@title : 'Last Active Epoch'
|
|
622
|
+
@description: 'Epoch number of last activity'
|
|
623
|
+
lastActiveEpoch : Integer;
|
|
624
|
+
|
|
625
|
+
@title : 'Retired'
|
|
626
|
+
@description: 'Indicates if drep is retired'
|
|
627
|
+
retired : Boolean;
|
|
628
|
+
|
|
629
|
+
@title : 'Expired'
|
|
630
|
+
@description: 'Indicates if drep is expired'
|
|
631
|
+
expired : Boolean;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
@title : 'Address Entity'
|
|
635
|
+
@description: 'Address information entity definition'
|
|
636
|
+
entity Addresses : temporal {
|
|
637
|
+
|
|
638
|
+
@title : 'Bech32 Address (Key)'
|
|
639
|
+
@description: 'The Bech32 encoded address string'
|
|
640
|
+
key address : Bech32;
|
|
641
|
+
|
|
642
|
+
@title : 'Associated Stake Address'
|
|
643
|
+
@description: 'The associated stake address in bech32 format'
|
|
644
|
+
stakeAddress : Bech32;
|
|
645
|
+
|
|
646
|
+
@title : 'Address Type'
|
|
647
|
+
@description: 'The CIP-19 kind of address (base | pointer | enterprise | reward | byron | unknown); a script payment credential shows in isScript'
|
|
648
|
+
type : String(20);
|
|
649
|
+
|
|
650
|
+
@title : 'Is Script Address'
|
|
651
|
+
@description: 'Indicates if the address is a script address'
|
|
652
|
+
isScript : Boolean;
|
|
653
|
+
|
|
654
|
+
@title : 'Total Lovelace'
|
|
655
|
+
@description: 'Total lovelace on this address'
|
|
656
|
+
totalLovelace : Lovelace;
|
|
657
|
+
|
|
658
|
+
@title : 'UTxO Count'
|
|
659
|
+
@description: 'Number of UTxOs at this address (pre-aggregated, no UTxO scan needed for status checks)'
|
|
660
|
+
utxoCount : Integer;
|
|
661
|
+
|
|
662
|
+
@title : 'Address Transactions'
|
|
663
|
+
@description : 'Composition of all transactions involving this address'
|
|
664
|
+
transactions : Composition of many AddressTransactions
|
|
665
|
+
on transactions.address = $self;
|
|
666
|
+
|
|
667
|
+
@title : 'Address Assets'
|
|
668
|
+
@description: 'Composition of all assets on this address'
|
|
669
|
+
assets : Composition of many AddressAssets
|
|
670
|
+
on assets.address = $self;
|
|
671
|
+
|
|
672
|
+
@title : 'Address UTxOs'
|
|
673
|
+
@description: 'Composition of all UTxOs on this address'
|
|
674
|
+
utxos : Composition of many AddressUTxOs
|
|
675
|
+
on utxos.address = $self;
|
|
676
|
+
|
|
677
|
+
@title : 'Address Has Transactions'
|
|
678
|
+
@description : 'Indicates if address has transactions'
|
|
679
|
+
hasTransactions : Boolean;
|
|
680
|
+
|
|
681
|
+
@title : 'Address Has Assets'
|
|
682
|
+
@description: 'Indicates if address has native assets'
|
|
683
|
+
hasAssets : Boolean;
|
|
684
|
+
|
|
685
|
+
@title : 'Address Has UTxOs'
|
|
686
|
+
@description: 'Indicates if address has UTxOs'
|
|
687
|
+
hasUTxOs : Boolean;
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
@title : 'Address Assets'
|
|
693
|
+
@description: 'Association entity for assets held by an address'
|
|
694
|
+
entity AddressAssets : temporal {
|
|
695
|
+
|
|
696
|
+
@title : 'Address (key)'
|
|
697
|
+
@description: 'The Bech32 encoded address associated with the asset'
|
|
698
|
+
key address : Association to Addresses;
|
|
699
|
+
|
|
700
|
+
@title : 'Asset Unit (key)'
|
|
701
|
+
@description: 'The unique identifier for the asset unit'
|
|
702
|
+
key unit : AssetUnit;
|
|
703
|
+
|
|
704
|
+
@title : 'Asset Details'
|
|
705
|
+
@description: 'Structural slice for asset details'
|
|
706
|
+
asset : AssetSumSlice;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
@title : 'Address UTxOs'
|
|
710
|
+
@description: 'Association entity for UTxOs held by an address'
|
|
711
|
+
entity AddressUTxOs : temporal {
|
|
712
|
+
|
|
713
|
+
@title : 'Address (key)'
|
|
714
|
+
@description: 'The Bech32 encoded address associated with the UTxO'
|
|
715
|
+
key address : Association to Addresses;
|
|
716
|
+
|
|
717
|
+
@title : 'UTxO Key (key)'
|
|
718
|
+
@description: 'The unique identifier for the UTxO (tx hash + index)'
|
|
719
|
+
key hash : Blake2b256;
|
|
720
|
+
|
|
721
|
+
@title : 'UTxO Index (key)'
|
|
722
|
+
@description: 'The output index of the UTxO'
|
|
723
|
+
key index : Integer;
|
|
724
|
+
|
|
725
|
+
@title : 'Block Hash'
|
|
726
|
+
@description: 'Block hash containing the UTxO'
|
|
727
|
+
blockHash : Blake2b256;
|
|
728
|
+
|
|
729
|
+
@title : 'UTxO Data'
|
|
730
|
+
@description: 'UTxO specific data'
|
|
731
|
+
utxodata : UTxODataSlice;
|
|
732
|
+
|
|
733
|
+
@title : 'Lovelace Amount'
|
|
734
|
+
@description: 'Lovelace amount in the UTxO'
|
|
735
|
+
lovelace : Lovelace;
|
|
736
|
+
|
|
737
|
+
@title : 'UTxO Assets'
|
|
738
|
+
@description: 'Assets in this UTxO'
|
|
739
|
+
assets : Composition of many UTxOAssets
|
|
740
|
+
on assets.utxo = $self;
|
|
741
|
+
|
|
742
|
+
@title : 'UTxO Has Assets'
|
|
743
|
+
@description: 'Indicates if utxo has assets'
|
|
744
|
+
hasAssets : Boolean;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
@title : 'UTxO Assets'
|
|
748
|
+
@description: 'Association entity for assets held by a UTxO'
|
|
749
|
+
entity UTxOAssets : temporal {
|
|
750
|
+
|
|
751
|
+
@title: 'UTxO (key)'
|
|
752
|
+
key utxo : Association to AddressUTxOs; // utxo association
|
|
753
|
+
|
|
754
|
+
@title : 'Asset Unit (key)'
|
|
755
|
+
@description: 'The unique identifier for the asset unit'
|
|
756
|
+
key unit : AssetUnit; // asset unit - must be key since one UTxO can hold multiple assets
|
|
757
|
+
|
|
758
|
+
@title : 'Asset Details'
|
|
759
|
+
@description: 'Structural slice for asset details'
|
|
760
|
+
asset : AssetSlice; // asset details
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
@title : 'Accounts Entity'
|
|
764
|
+
@description: 'Account information entity definition'
|
|
765
|
+
entity Accounts : temporal {
|
|
766
|
+
|
|
767
|
+
@title : 'Stake Address (Key)'
|
|
768
|
+
@description: 'The Bech32 encoded stake address string'
|
|
769
|
+
key stakeAddress : Bech32;
|
|
770
|
+
|
|
771
|
+
@title : 'Registered'
|
|
772
|
+
@description: 'True while the stake credential is registered on chain'
|
|
773
|
+
active : Boolean;
|
|
774
|
+
|
|
775
|
+
@title : 'Last Active Epoch'
|
|
776
|
+
@description: 'Epoch number of last activity'
|
|
777
|
+
activeEpoch : Integer;
|
|
778
|
+
|
|
779
|
+
@title : 'Controlled Amount'
|
|
780
|
+
@description: 'Total controlled amount in lovelace'
|
|
781
|
+
controlledAmount : Lovelace;
|
|
782
|
+
|
|
783
|
+
@title : 'Rewards Sum'
|
|
784
|
+
@description: 'Total rewards sum in lovelace'
|
|
785
|
+
rewardsSum : Lovelace;
|
|
786
|
+
|
|
787
|
+
@title : 'Withdrawals Sum'
|
|
788
|
+
@description: 'Total withdrawals sum in lovelace'
|
|
789
|
+
withdrawalsSum : Lovelace;
|
|
790
|
+
|
|
791
|
+
@title : 'Reserves Sum'
|
|
792
|
+
@description: 'Total reserves sum in lovelace'
|
|
793
|
+
reservesSum : Lovelace;
|
|
794
|
+
|
|
795
|
+
@title : 'Treasury Sum'
|
|
796
|
+
@description: 'Total treasury sum in lovelace'
|
|
797
|
+
treasurySum : Lovelace;
|
|
798
|
+
|
|
799
|
+
@title : 'Withdrawable Amount'
|
|
800
|
+
@description: 'Total withdrawable amount in lovelace'
|
|
801
|
+
withdrawableAmount : Lovelace;
|
|
802
|
+
|
|
803
|
+
@title : 'Pool ID'
|
|
804
|
+
@description: 'Associated pool ID'
|
|
805
|
+
poolId : Association to Pools;
|
|
806
|
+
|
|
807
|
+
@title : 'DRep ID'
|
|
808
|
+
@description: 'Associated DRep ID'
|
|
809
|
+
drepId : Association to Dreps;
|
|
810
|
+
|
|
811
|
+
@title : 'Addresses'
|
|
812
|
+
@description: 'All addresses for this account'
|
|
813
|
+
Address : Composition of many Addresses
|
|
814
|
+
on Address.stakeAddress = $self.stakeAddress;
|
|
815
|
+
|
|
816
|
+
@title : 'Has Addresses'
|
|
817
|
+
@description: 'Indicates if account has associated addresses'
|
|
818
|
+
hasAddresses : Boolean;
|
|
819
|
+
|
|
820
|
+
@title : 'Address Count'
|
|
821
|
+
@description: 'Number of addresses under the stake key; read them through the Address navigation'
|
|
822
|
+
addressCount : Integer;
|
|
823
|
+
|
|
824
|
+
@title : 'Address List'
|
|
825
|
+
@description: 'JSON array of the addresses under the stake key, sorted; lets a page of a large account be chosen without the backend'
|
|
826
|
+
addressList : LargeString;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
@title : 'Transaction Entity'
|
|
830
|
+
@description: 'Transaction information entity definition'
|
|
831
|
+
@readonly
|
|
832
|
+
entity Transactions {
|
|
833
|
+
|
|
834
|
+
@title : 'Transaction Hash (Key)'
|
|
835
|
+
@description: 'The unique transaction identifier as hex string'
|
|
836
|
+
key hash : Blake2b256;
|
|
837
|
+
|
|
838
|
+
@title : 'Transaction Sequence Number'
|
|
839
|
+
@description: 'Chain position slot * 65536 + txIndex; key of the input and output rows, ascending along the chain'
|
|
840
|
+
txSeq : Integer64;
|
|
841
|
+
|
|
842
|
+
@title : 'Transaction Block Hash'
|
|
843
|
+
@description: 'The block hash containing the transaction'
|
|
844
|
+
blockHash : Blake2b256;
|
|
845
|
+
|
|
846
|
+
@title : 'Transaction Block Height'
|
|
847
|
+
@description: 'The block height containing the transaction'
|
|
848
|
+
blockHeight : Integer;
|
|
849
|
+
|
|
850
|
+
@title : 'Transaction Block Time'
|
|
851
|
+
@description: 'The block time as integer unix timestamp'
|
|
852
|
+
blockTime : Integer64;
|
|
853
|
+
|
|
854
|
+
@title : 'Transaction Slot'
|
|
855
|
+
@description: 'The slot number containing the transaction'
|
|
856
|
+
slot : Integer64;
|
|
857
|
+
|
|
858
|
+
@title : 'Transaction Index'
|
|
859
|
+
@description: 'The transaction index within the block'
|
|
860
|
+
txIndex : Integer;
|
|
861
|
+
|
|
862
|
+
@title : 'Transaction Fee'
|
|
863
|
+
@description: 'The transaction fee in lovelace'
|
|
864
|
+
fee : Lovelace;
|
|
865
|
+
|
|
866
|
+
@title : 'Transaction Deposit'
|
|
867
|
+
@description: 'Deposits locked minus deposits refunded, in lovelace. Null when the source could not tell: a transaction with certificates or proposals crawled over Ogmios whose spent inputs are not all indexed'
|
|
868
|
+
deposit : Lovelace;
|
|
869
|
+
|
|
870
|
+
@title : 'Transaction Size'
|
|
871
|
+
@description: 'The transaction size in bytes'
|
|
872
|
+
size : Integer;
|
|
873
|
+
|
|
874
|
+
@title : 'Transaction Metadata'
|
|
875
|
+
@description: 'The transaction metadata'
|
|
876
|
+
metadata : Composition of many TransactionMetadata
|
|
877
|
+
on metadata.tx = $self;
|
|
878
|
+
|
|
879
|
+
@title : 'Transaction Inputs'
|
|
880
|
+
@description: 'The transaction inputs composition'
|
|
881
|
+
inputs : Composition of many TransactionInputs
|
|
882
|
+
on inputs.txSeq = txSeq;
|
|
883
|
+
|
|
884
|
+
@title : 'Transaction Outputs'
|
|
885
|
+
@description: 'The transaction outputs composition'
|
|
886
|
+
outputs : Composition of many TransactionOutputs
|
|
887
|
+
on outputs.txSeq = txSeq;
|
|
888
|
+
|
|
889
|
+
@title : 'Transaction Certificates'
|
|
890
|
+
@description: 'Certificates carried by the transaction (stake/pool/DRep). Filled by the chain crawler only (crawler.certificates); the lazy path leaves it empty.'
|
|
891
|
+
certificates : Composition of many TransactionCertificates
|
|
892
|
+
on certificates.tx = $self;
|
|
893
|
+
|
|
894
|
+
@title : 'Transaction Withdrawals'
|
|
895
|
+
@description: 'Reward-account withdrawals of the transaction. Filled by the chain crawler only (crawler.certificates); the lazy path leaves it empty.'
|
|
896
|
+
withdrawals : Composition of many TransactionWithdrawals
|
|
897
|
+
on withdrawals.tx = $self;
|
|
898
|
+
|
|
899
|
+
@title : 'Transaction Datums'
|
|
900
|
+
@description: 'Witness-set datums of the transaction (the datums spent outputs with a datum hash refer to). Filled by the chain crawler on Ogmios chain-sync only; the lazy path leaves it empty.'
|
|
901
|
+
datums : Composition of many TransactionDatums
|
|
902
|
+
on datums.tx = $self;
|
|
903
|
+
|
|
904
|
+
@title : 'Transaction Has Metadata'
|
|
905
|
+
@description: 'Indicates if transaction has metadata'
|
|
906
|
+
hasMetadata : Boolean;
|
|
907
|
+
|
|
908
|
+
@title : 'Transaction Has Inputs'
|
|
909
|
+
@description: 'Indicates if transaction has inputs'
|
|
910
|
+
hasInputs : Boolean;
|
|
911
|
+
|
|
912
|
+
@title : 'Transaction Has Outputs'
|
|
913
|
+
@description: 'Indicates if transaction has outputs'
|
|
914
|
+
hasOutputs : Boolean;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
@title : 'Transaction Inputs'
|
|
918
|
+
@description: 'Projection for Transaction Inputs'
|
|
919
|
+
@readonly
|
|
920
|
+
entity TransactionInputs {
|
|
921
|
+
|
|
922
|
+
@title : 'Transaction Sequence Number (key)'
|
|
923
|
+
@description: 'Transactions.txSeq of the spending transaction'
|
|
924
|
+
key txSeq : Integer64;
|
|
925
|
+
|
|
926
|
+
@title : 'Transaction'
|
|
927
|
+
@description: 'The associated transaction'
|
|
928
|
+
tx : Association to one Transactions on tx.txSeq = txSeq;
|
|
929
|
+
|
|
930
|
+
@title : 'Input Index (key)'
|
|
931
|
+
@description: 'The input index of the input utxo'
|
|
932
|
+
key inputIndex : Integer;
|
|
933
|
+
|
|
934
|
+
@title : 'Input Address'
|
|
935
|
+
@description: 'The associated address of the input utxo'
|
|
936
|
+
address : Association to Addresses;
|
|
937
|
+
|
|
938
|
+
@title : 'Input UTxO Data'
|
|
939
|
+
@description: 'The UTxO specific data of the input utxo'
|
|
940
|
+
utxoData : UTxODataSlice; // input utxo data
|
|
941
|
+
|
|
942
|
+
@title : 'Spent Transaction Hash'
|
|
943
|
+
@description: 'Hash of the transaction that created the consumed UTxO (outpoint). Null on rows indexed before the column existed.'
|
|
944
|
+
spentTxHash : Blake2b256;
|
|
945
|
+
|
|
946
|
+
@title : 'Spent Output Index'
|
|
947
|
+
@description: 'Output index of the consumed UTxO within spentTxHash (outpoint). Null on rows indexed before the column existed.'
|
|
948
|
+
spentOutputIndex : Integer;
|
|
949
|
+
|
|
950
|
+
@title : 'Spent Transaction Sequence'
|
|
951
|
+
@description: 'txSeq of the transaction that created the consumed UTxO. Set on an input that keeps no copy of its assets: it reads them from that output.'
|
|
952
|
+
spentTxSeq : Integer64;
|
|
953
|
+
|
|
954
|
+
@title : 'Input Lovelace Amount'
|
|
955
|
+
@description: 'The lovelace amount of the input utxo'
|
|
956
|
+
isCollateral : Boolean;
|
|
957
|
+
|
|
958
|
+
@title : 'Is Reference Input'
|
|
959
|
+
@description: 'Indicates if the input is used as reference input'
|
|
960
|
+
isReference : Boolean;
|
|
961
|
+
|
|
962
|
+
@title : 'Input Assets'
|
|
963
|
+
@description: 'Assets of the input utxo'
|
|
964
|
+
assets : Association to many TransactionInputAssets
|
|
965
|
+
on assets.input_txSeq = txSeq and assets.input_inputIndex = inputIndex;
|
|
966
|
+
|
|
967
|
+
@title : 'Input Has Addresses'
|
|
968
|
+
@description: 'Indicates if input has associated addresses'
|
|
969
|
+
hasAddresses : Boolean;
|
|
970
|
+
|
|
971
|
+
@title : 'Input Has Assets'
|
|
972
|
+
@description: 'Indicates if input has assets'
|
|
973
|
+
hasAssets : Boolean;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
@title : 'Transaction Input Asset Copies'
|
|
977
|
+
@description: 'Stored copy of the assets of an input. An input has either copies or TransactionInputs.spentTxSeq, which points at the output that holds them.'
|
|
978
|
+
@readonly
|
|
979
|
+
entity TransactionInputAssetCopies {
|
|
980
|
+
|
|
981
|
+
@title : 'Transaction Input (key)'
|
|
982
|
+
@description: 'The associated transaction input'
|
|
983
|
+
key input : Association to TransactionInputs;
|
|
984
|
+
|
|
985
|
+
@title : 'Asset Unit (key)'
|
|
986
|
+
@description: 'The asset unit'
|
|
987
|
+
key unit : AssetUnit;
|
|
988
|
+
|
|
989
|
+
@title : 'Asset Details'
|
|
990
|
+
@description: 'Structural slice for asset details'
|
|
991
|
+
asset : AssetSlice;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
// Assets of every input: its stored copy, or the assets of the output it points at.
|
|
995
|
+
// An input has one of the two, never both, so no asset shows twice.
|
|
996
|
+
@title : 'Transaction Input Assets'
|
|
997
|
+
@description: 'Assets of a transaction input'
|
|
998
|
+
@readonly
|
|
999
|
+
entity TransactionInputAssets as
|
|
1000
|
+
select from TransactionInputAssetCopies as copy {
|
|
1001
|
+
key copy.input.txSeq as input_txSeq,
|
|
1002
|
+
key copy.input.inputIndex as input_inputIndex,
|
|
1003
|
+
key copy.unit,
|
|
1004
|
+
copy.asset
|
|
1005
|
+
}
|
|
1006
|
+
union all
|
|
1007
|
+
select from TransactionInputs as spender
|
|
1008
|
+
join TransactionOutputAssets as spent
|
|
1009
|
+
on spent.output.txSeq = spender.spentTxSeq
|
|
1010
|
+
and spent.output.outputIndex = spender.spentOutputIndex
|
|
1011
|
+
{
|
|
1012
|
+
spender.txSeq as input_txSeq,
|
|
1013
|
+
spender.inputIndex as input_inputIndex,
|
|
1014
|
+
spent.unit,
|
|
1015
|
+
spent.asset
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
// -----------------------------------------------------
|
|
1019
|
+
// Crawler-fed ledger state. Separate from the lazy Addresses tables, so their TTL logic stays untouched.
|
|
1020
|
+
// -----------------------------------------------------
|
|
1021
|
+
|
|
1022
|
+
@title : 'Ledger UTxOs'
|
|
1023
|
+
@description: 'UTxO set maintained by the chain crawler from an imported anchor snapshot (crawler.utxoSet). A row is unspent while spentTxHash is null. createdSlot is null for rows that came with the snapshot. Not written by the lazy path; a reorg reopens what a rolled-back block spent and drops what it created.'
|
|
1024
|
+
@readonly
|
|
1025
|
+
entity LedgerUTxOs {
|
|
1026
|
+
|
|
1027
|
+
@title : 'Transaction Hash (Key)'
|
|
1028
|
+
@description: 'Transaction that created the output'
|
|
1029
|
+
key txHash : Blake2b256;
|
|
1030
|
+
|
|
1031
|
+
@title : 'Output Index (Key)'
|
|
1032
|
+
@description: 'Output index within the creating transaction'
|
|
1033
|
+
key outputIndex : Integer;
|
|
1034
|
+
|
|
1035
|
+
@title : 'Address'
|
|
1036
|
+
@description: 'Bech32 address holding the output'
|
|
1037
|
+
address : Bech32;
|
|
1038
|
+
|
|
1039
|
+
@title : 'Stake Address'
|
|
1040
|
+
@description: 'Reward account of a base address (bech32); null for enterprise, pointer and Byron addresses'
|
|
1041
|
+
stakeAddress : Bech32;
|
|
1042
|
+
|
|
1043
|
+
@title : 'Address Type'
|
|
1044
|
+
@description: 'base | enterprise | pointer | reward | byron | unknown'
|
|
1045
|
+
addressType : String(20);
|
|
1046
|
+
|
|
1047
|
+
@title : 'Is Script Address'
|
|
1048
|
+
@description: 'Payment credential is a script hash'
|
|
1049
|
+
isScript : Boolean;
|
|
1050
|
+
|
|
1051
|
+
@title : 'Lovelace'
|
|
1052
|
+
@description: 'Lovelace held by the output'
|
|
1053
|
+
lovelace : Lovelace;
|
|
1054
|
+
|
|
1055
|
+
@title : 'Created Slot'
|
|
1056
|
+
@description: 'Absolute slot of the creating block; null when the row came with the snapshot'
|
|
1057
|
+
createdSlot : Integer64;
|
|
1058
|
+
|
|
1059
|
+
@title : 'Spent Transaction Hash'
|
|
1060
|
+
@description: 'Transaction that consumed the output; null while unspent'
|
|
1061
|
+
spentTxHash : Blake2b256;
|
|
1062
|
+
|
|
1063
|
+
@title : 'Spent Slot'
|
|
1064
|
+
@description: 'Absolute slot of the consuming block; null while unspent'
|
|
1065
|
+
spentSlot : Integer64;
|
|
1066
|
+
|
|
1067
|
+
@title : 'UTxO Data'
|
|
1068
|
+
@description: 'Datum hash, inline datum and reference script hash'
|
|
1069
|
+
utxo : UTxODataSlice;
|
|
1070
|
+
|
|
1071
|
+
@title : 'Has Assets'
|
|
1072
|
+
@description: 'Output carries native assets (see assets)'
|
|
1073
|
+
hasAssets : Boolean;
|
|
1074
|
+
|
|
1075
|
+
@title : 'Assets'
|
|
1076
|
+
@description: 'Native assets of the output'
|
|
1077
|
+
assets : Composition of many LedgerUTxOAssets
|
|
1078
|
+
on assets.utxo = $self;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
@title : 'Ledger UTxO Assets'
|
|
1082
|
+
@description: 'Native assets of a LedgerUTxOs row'
|
|
1083
|
+
@readonly
|
|
1084
|
+
entity LedgerUTxOAssets {
|
|
1085
|
+
|
|
1086
|
+
@title : 'UTxO (Key)'
|
|
1087
|
+
@description: 'The owning UTxO'
|
|
1088
|
+
key utxo : Association to LedgerUTxOs;
|
|
1089
|
+
|
|
1090
|
+
@title : 'Asset Unit (Key)'
|
|
1091
|
+
@description: 'policyId + assetNameHex'
|
|
1092
|
+
key unit : AssetUnit;
|
|
1093
|
+
|
|
1094
|
+
@title : 'Asset'
|
|
1095
|
+
@description: 'Quantity and decomposed unit'
|
|
1096
|
+
asset : AssetSlice;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
@title : 'Ledger Addresses'
|
|
1100
|
+
@description: 'Per-address running sums over the unspent LedgerUTxOs rows (crawler.utxoSet): balance and UTxO count as of the crawl tip. firstSeenSlot / lastActiveSlot are null for addresses that only appear in the snapshot. Recounted from the open rows on a reorg.'
|
|
1101
|
+
@readonly
|
|
1102
|
+
entity LedgerAddresses {
|
|
1103
|
+
|
|
1104
|
+
@title : 'Address (Key)'
|
|
1105
|
+
@description: 'Bech32 address'
|
|
1106
|
+
key address : Bech32;
|
|
1107
|
+
|
|
1108
|
+
@title : 'Stake Address'
|
|
1109
|
+
@description: 'Reward account of a base address (bech32); null otherwise'
|
|
1110
|
+
stakeAddress : Bech32;
|
|
1111
|
+
|
|
1112
|
+
@title : 'Payment Credential'
|
|
1113
|
+
@description: 'Payment key or script hash (hex, 28 bytes) of a base, pointer or enterprise address; null for Byron and reward addresses'
|
|
1114
|
+
paymentCredential : String(56);
|
|
1115
|
+
|
|
1116
|
+
@title : 'Address Type'
|
|
1117
|
+
@description: 'base | enterprise | pointer | reward | byron | unknown'
|
|
1118
|
+
addressType : String(20);
|
|
1119
|
+
|
|
1120
|
+
@title : 'Is Script Address'
|
|
1121
|
+
@description: 'Payment credential is a script hash'
|
|
1122
|
+
isScript : Boolean;
|
|
1123
|
+
|
|
1124
|
+
@title : 'Total Lovelace'
|
|
1125
|
+
@description: 'Sum of lovelace over the unspent UTxOs of the address'
|
|
1126
|
+
totalLovelace : Lovelace;
|
|
1127
|
+
|
|
1128
|
+
@title : 'UTxO Count'
|
|
1129
|
+
@description: 'Number of unspent UTxOs'
|
|
1130
|
+
utxoCount : Integer;
|
|
1131
|
+
|
|
1132
|
+
@title : 'First Seen Slot'
|
|
1133
|
+
@description: 'Slot of the first crawled block that produced an output for the address; null when the address came with the snapshot'
|
|
1134
|
+
firstSeenSlot : Integer64;
|
|
1135
|
+
|
|
1136
|
+
@title : 'Last Active Slot'
|
|
1137
|
+
@description: 'Slot of the last crawled block that touched the address'
|
|
1138
|
+
lastActiveSlot : Integer64;
|
|
1139
|
+
|
|
1140
|
+
@title : 'Assets'
|
|
1141
|
+
@description: 'Native-asset balances of the address'
|
|
1142
|
+
assets : Composition of many LedgerAddressAssets
|
|
1143
|
+
on assets.address = $self;
|
|
1144
|
+
|
|
1145
|
+
@title : 'UTxOs'
|
|
1146
|
+
@description: 'UTxO rows of the address (spent and unspent; filter spentTxHash eq null for the current set)'
|
|
1147
|
+
utxos : Association to many LedgerUTxOs
|
|
1148
|
+
on utxos.address = $self.address;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
@title : 'Ledger Address Assets'
|
|
1152
|
+
@description: 'Native-asset balance of a LedgerAddresses row; rows at zero are removed'
|
|
1153
|
+
@readonly
|
|
1154
|
+
entity LedgerAddressAssets {
|
|
1155
|
+
|
|
1156
|
+
@title : 'Address (Key)'
|
|
1157
|
+
@description: 'The owning address'
|
|
1158
|
+
key address : Association to LedgerAddresses;
|
|
1159
|
+
|
|
1160
|
+
@title : 'Asset Unit (Key)'
|
|
1161
|
+
@description: 'policyId + assetNameHex'
|
|
1162
|
+
key unit : AssetUnit;
|
|
1163
|
+
|
|
1164
|
+
@title : 'Asset'
|
|
1165
|
+
@description: 'Quantity and decomposed unit'
|
|
1166
|
+
asset : AssetSumSlice;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
@title : 'Ledger Accounts'
|
|
1170
|
+
@description: 'Per-stake-key running sums over LedgerAddresses (crawler.utxoSet): controlled amount, address and UTxO counts as of the crawl tip. Delegation is a query over TransactionCertificates (newest pool_delegation / vote_delegation for the stake key); rewards are ledger state and stay provider-fed.'
|
|
1171
|
+
@readonly
|
|
1172
|
+
entity LedgerAccounts {
|
|
1173
|
+
|
|
1174
|
+
@title : 'Stake Address (Key)'
|
|
1175
|
+
@description: 'Reward account (bech32)'
|
|
1176
|
+
key stakeAddress : Bech32;
|
|
1177
|
+
|
|
1178
|
+
@title : 'Controlled Amount'
|
|
1179
|
+
@description: 'Sum of totalLovelace over the base addresses of the stake key'
|
|
1180
|
+
controlledAmount : Lovelace;
|
|
1181
|
+
|
|
1182
|
+
@title : 'Address Count'
|
|
1183
|
+
@description: 'Number of LedgerAddresses rows under the stake key'
|
|
1184
|
+
addressCount : Integer;
|
|
1185
|
+
|
|
1186
|
+
@title : 'UTxO Count'
|
|
1187
|
+
@description: 'Number of unspent UTxOs across those addresses'
|
|
1188
|
+
utxoCount : Integer;
|
|
1189
|
+
|
|
1190
|
+
@title : 'Last Active Slot'
|
|
1191
|
+
@description: 'Slot of the last crawled block that touched one of the addresses'
|
|
1192
|
+
lastActiveSlot : Integer64;
|
|
1193
|
+
|
|
1194
|
+
@title : 'Addresses'
|
|
1195
|
+
@description: 'Addresses under the stake key'
|
|
1196
|
+
addresses : Association to many LedgerAddresses
|
|
1197
|
+
on addresses.stakeAddress = $self.stakeAddress;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
@title : 'Transaction Certificates'
|
|
1201
|
+
@description: 'Certificates of a transaction as the chain crawler saw them (crawler.certificates, off by default). One row per certificate and kind: a Conway stake+vote delegation yields a pool_delegation and a vote_delegation row with the same certIndex, so the Ogmios and Koios sources produce identical rows. Not written by the lazy path.'
|
|
1202
|
+
@readonly
|
|
1203
|
+
entity TransactionCertificates {
|
|
1204
|
+
|
|
1205
|
+
@title : 'Transaction (key)'
|
|
1206
|
+
@description: 'The transaction carrying the certificate'
|
|
1207
|
+
key tx : Association to Transactions;
|
|
1208
|
+
|
|
1209
|
+
@title : 'Certificate Index (key)'
|
|
1210
|
+
@description: 'Position of the certificate in the transaction, as reported by the source'
|
|
1211
|
+
key certIndex : Integer;
|
|
1212
|
+
|
|
1213
|
+
@title : 'Certificate Kind (key)'
|
|
1214
|
+
@description: 'stake_registration | stake_deregistration | pool_delegation | vote_delegation | pool_registration | pool_retirement | drep_registration | drep_update | drep_retirement | committee_hot_auth | committee_resign | genesis_delegation | treasury_mir | reserve_mir | pot_transfer | param_proposal, or the raw source type for anything else'
|
|
1215
|
+
key kind : String(40);
|
|
1216
|
+
|
|
1217
|
+
@title : 'Stake Address'
|
|
1218
|
+
@description: 'Reward account the certificate concerns (bech32), when it has one'
|
|
1219
|
+
stakeAddress : Bech32;
|
|
1220
|
+
|
|
1221
|
+
@title : 'Pool Id'
|
|
1222
|
+
@description: 'Stake pool (bech32) for delegation, registration and retirement certificates'
|
|
1223
|
+
poolId : Bech32;
|
|
1224
|
+
|
|
1225
|
+
@title : 'DRep Id'
|
|
1226
|
+
@description: 'DRep (CIP-129 bech32) for vote delegation and DRep certificates; drep_always_abstain / drep_always_no_confidence for the predefined ones'
|
|
1227
|
+
drepId : Bech32;
|
|
1228
|
+
|
|
1229
|
+
@title : 'Deposit'
|
|
1230
|
+
@description: 'Deposit paid (registration) or refunded (deregistration) in lovelace, when the source reports it'
|
|
1231
|
+
deposit : Lovelace;
|
|
1232
|
+
|
|
1233
|
+
@title : 'Epoch'
|
|
1234
|
+
@description: 'Retirement epoch of a pool_retirement certificate'
|
|
1235
|
+
epoch : Integer;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
@title : 'Transaction Withdrawals'
|
|
1239
|
+
@description: 'Reward-account withdrawals of a transaction as the chain crawler saw them (crawler.certificates, off by default). Not written by the lazy path.'
|
|
1240
|
+
@readonly
|
|
1241
|
+
entity TransactionWithdrawals {
|
|
1242
|
+
|
|
1243
|
+
@title : 'Transaction (key)'
|
|
1244
|
+
@description: 'The withdrawing transaction'
|
|
1245
|
+
key tx : Association to Transactions;
|
|
1246
|
+
|
|
1247
|
+
@title : 'Stake Address (key)'
|
|
1248
|
+
@description: 'Reward account withdrawn from (bech32)'
|
|
1249
|
+
key stakeAddress : Bech32;
|
|
1250
|
+
|
|
1251
|
+
@title : 'Lovelace'
|
|
1252
|
+
@description: 'Amount withdrawn in lovelace'
|
|
1253
|
+
lovelace : Lovelace;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
@title : 'Transaction Redeemers'
|
|
1257
|
+
@description: 'Redeemers of a transaction as the chain crawler saw them (Ogmios chain-sync). A spend redeemer names the redeemed input, a mint redeemer the policy. Not written by the lazy path.'
|
|
1258
|
+
@readonly
|
|
1259
|
+
entity TransactionRedeemers {
|
|
1260
|
+
|
|
1261
|
+
@title : 'Transaction (key)'
|
|
1262
|
+
@description: 'The transaction carrying the redeemer'
|
|
1263
|
+
key tx : Association to Transactions;
|
|
1264
|
+
|
|
1265
|
+
@title : 'Purpose (key)'
|
|
1266
|
+
@description: 'spend | mint | publish | withdraw | vote | propose'
|
|
1267
|
+
key purpose : String(10);
|
|
1268
|
+
|
|
1269
|
+
@title : 'Redeemer Index (key)'
|
|
1270
|
+
@description: 'Index within its purpose (spend: position of the input in the sorted inputs; mint: of the policy in the sorted policies)'
|
|
1271
|
+
key redeemerIndex : Integer;
|
|
1272
|
+
|
|
1273
|
+
@title : 'Data'
|
|
1274
|
+
@description: 'Redeemer data as PlutusData CBOR hex'
|
|
1275
|
+
data : LargeString;
|
|
1276
|
+
|
|
1277
|
+
@title : 'Memory Units'
|
|
1278
|
+
@description: 'Execution memory units'
|
|
1279
|
+
mem : Integer64;
|
|
1280
|
+
|
|
1281
|
+
@title : 'CPU Steps'
|
|
1282
|
+
@description: 'Execution CPU steps'
|
|
1283
|
+
steps : Integer64;
|
|
1284
|
+
|
|
1285
|
+
@title : 'Redeemed Input Transaction'
|
|
1286
|
+
@description: 'spend: transaction that created the redeemed input'
|
|
1287
|
+
spentTxHash : Blake2b256;
|
|
1288
|
+
|
|
1289
|
+
@title : 'Redeemed Input Index'
|
|
1290
|
+
@description: 'spend: output index of the redeemed input'
|
|
1291
|
+
spentOutputIndex : Integer;
|
|
1292
|
+
|
|
1293
|
+
@title : 'Policy ID'
|
|
1294
|
+
@description: 'mint: the policy the redeemer runs'
|
|
1295
|
+
policyId : Blake2b224;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
@title : 'Transaction Datums'
|
|
1299
|
+
@description: 'Datums of the transaction witness set as the chain crawler saw them (Ogmios chain-sync), byte for byte. They resolve outputs that carry a datum hash without an inline datum. Not written by the lazy path.'
|
|
1300
|
+
@readonly
|
|
1301
|
+
entity TransactionDatums {
|
|
1302
|
+
|
|
1303
|
+
@title : 'Transaction (key)'
|
|
1304
|
+
@description: 'The transaction whose witness set carries the datum'
|
|
1305
|
+
key tx : Association to Transactions;
|
|
1306
|
+
|
|
1307
|
+
@title : 'Datum Hash (key)'
|
|
1308
|
+
@description: 'Blake2b-256 hash of the datum bytes, as outputs reference it in utxo.dataHash'
|
|
1309
|
+
key dataHash : Blake2b256;
|
|
1310
|
+
|
|
1311
|
+
@title : 'Datum'
|
|
1312
|
+
@description: 'PlutusData CBOR hex, the original bytes of the witness set'
|
|
1313
|
+
datum : LargeString;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
@title : 'Transaction Outputs'
|
|
1317
|
+
@description: 'Projection for Transaction Outputs'
|
|
1318
|
+
@readonly
|
|
1319
|
+
entity TransactionOutputs {
|
|
1320
|
+
|
|
1321
|
+
@title : 'Transaction Sequence Number (key)'
|
|
1322
|
+
@description: 'Transactions.txSeq of the creating transaction'
|
|
1323
|
+
key txSeq : Integer64;
|
|
1324
|
+
|
|
1325
|
+
@title : 'Transaction'
|
|
1326
|
+
@description: 'The associated transaction'
|
|
1327
|
+
tx : Association to one Transactions on tx.txSeq = txSeq;
|
|
1328
|
+
|
|
1329
|
+
@title : 'Output Index (key)'
|
|
1330
|
+
@description: 'The output index of the output utxo'
|
|
1331
|
+
key outputIndex : Integer;
|
|
1332
|
+
|
|
1333
|
+
@title : 'Output Address'
|
|
1334
|
+
@description: 'The associated address of the output utxo'
|
|
1335
|
+
address : Association to Addresses;
|
|
1336
|
+
|
|
1337
|
+
@title : 'UTxO Data'
|
|
1338
|
+
@description: 'The UTxO specific data of the output utxo'
|
|
1339
|
+
utxo : UTxODataSlice;
|
|
1340
|
+
|
|
1341
|
+
@title : 'Transaction Output Assets'
|
|
1342
|
+
@description: 'Composed assets associated with the output utxo'
|
|
1343
|
+
assets : Composition of many TransactionOutputAssets
|
|
1344
|
+
on assets.output = $self;
|
|
1345
|
+
|
|
1346
|
+
@title : 'Has Addresses'
|
|
1347
|
+
@description: 'Indicates if output has associated addresses'
|
|
1348
|
+
hasAddresses : Boolean;
|
|
1349
|
+
|
|
1350
|
+
@title : 'Has Assets'
|
|
1351
|
+
@description: 'Indicates if output has assets'
|
|
1352
|
+
hasAssets : Boolean;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
@title : 'Transaction Output Assets'
|
|
1356
|
+
@description: 'Projection for Transaction Output Assets'
|
|
1357
|
+
@readonly
|
|
1358
|
+
entity TransactionOutputAssets {
|
|
1359
|
+
|
|
1360
|
+
@title : 'Transaction Output (key)'
|
|
1361
|
+
@description: 'The associated transaction output'
|
|
1362
|
+
key output : Association to TransactionOutputs;
|
|
1363
|
+
|
|
1364
|
+
@title : 'Asset Unit (key)'
|
|
1365
|
+
@description: 'The asset unit'
|
|
1366
|
+
key unit : AssetUnit;
|
|
1367
|
+
|
|
1368
|
+
@title : 'Asset Details'
|
|
1369
|
+
@description: 'Structural slice for asset details'
|
|
1370
|
+
asset : AssetSlice;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
@title : 'Transaction Metadata'
|
|
1374
|
+
@description: 'Projection for Transaction Metadata'
|
|
1375
|
+
@readonly
|
|
1376
|
+
entity TransactionMetadata {
|
|
1377
|
+
|
|
1378
|
+
@title : 'ID (key)'
|
|
1379
|
+
@description: 'The metadata label as a uint64 (also exposed as the string `label`)'
|
|
1380
|
+
key id : Integer64; // was Integer (32-bit): overflowed for labels > 2^31
|
|
1381
|
+
|
|
1382
|
+
@title : 'Transaction (key)'
|
|
1383
|
+
@description: 'The associated transaction'
|
|
1384
|
+
key tx : Association to Transactions;
|
|
1385
|
+
|
|
1386
|
+
@title : 'Label'
|
|
1387
|
+
@description: 'The metadata label as string'
|
|
1388
|
+
label : MetadataLabel;
|
|
1389
|
+
|
|
1390
|
+
@title : 'Metadata Payload'
|
|
1391
|
+
@description: 'The metadata payload as JSON string'
|
|
1392
|
+
payload : LargeString;
|
|
1393
|
+
|
|
1394
|
+
@title : 'Chain Position'
|
|
1395
|
+
@description: 'txSeq of the transaction (slot * 65536 + txIndex), ascending along the chain. Null on rows written before the column existed and on rows read by hash alone.'
|
|
1396
|
+
txSeq : Integer64;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
//-----------------------------------------------------
|
|
1400
|
+
// M2 - transaction building and submission entities
|
|
1401
|
+
//-----------------------------------------------------
|
|
1402
|
+
@title : 'Ledger Protocol Parameters'
|
|
1403
|
+
@description: 'Entity for storing ledger protocol parameters for transaction building'
|
|
1404
|
+
entity LedgerProtocolParameters {
|
|
1405
|
+
|
|
1406
|
+
@title : 'Network (key)'
|
|
1407
|
+
@description: 'The Cardano network type mainnet | preprod | preview'
|
|
1408
|
+
key network : String(16);
|
|
1409
|
+
|
|
1410
|
+
@title : 'Epoch Number (key)'
|
|
1411
|
+
@description: 'The epoch number these parameters are valid for'
|
|
1412
|
+
key epoch : Integer;
|
|
1413
|
+
|
|
1414
|
+
@title : 'Minimum Fee A'
|
|
1415
|
+
@description: 'The minimum fee factor a for transaction fee calculation'
|
|
1416
|
+
minFeeA : Integer;
|
|
1417
|
+
|
|
1418
|
+
@title : 'Minimum Fee B'
|
|
1419
|
+
@description: 'The minimum fee constant b for transaction fee calculation'
|
|
1420
|
+
minFeeB : Integer;
|
|
1421
|
+
|
|
1422
|
+
@title : 'Maximum Sizes'
|
|
1423
|
+
@description: 'Maximum sizes for blocks and transactions'
|
|
1424
|
+
maxBlockSize : Integer;
|
|
1425
|
+
|
|
1426
|
+
@title : 'Maximum Transaction Size'
|
|
1427
|
+
@description: 'The maximum size for a transaction in bytes'
|
|
1428
|
+
maxTxSize : Integer;
|
|
1429
|
+
|
|
1430
|
+
@title : 'Maximum Block Header Size'
|
|
1431
|
+
@description: 'The maximum size for a block header in bytes'
|
|
1432
|
+
maxBlockHeaderSize : Integer;
|
|
1433
|
+
|
|
1434
|
+
@title : 'Key Deposit'
|
|
1435
|
+
@description: 'The key deposit amount in lovelace'
|
|
1436
|
+
keyDeposit : String(32);
|
|
1437
|
+
|
|
1438
|
+
@title : 'Pool Deposit'
|
|
1439
|
+
@description: 'The pool deposit amount in lovelace'
|
|
1440
|
+
poolDeposit : String(32);
|
|
1441
|
+
|
|
1442
|
+
@title : 'Epochs for Pool Retirement'
|
|
1443
|
+
@description: 'The number of epochs before a retiring pool is removed from the ledger'
|
|
1444
|
+
eMax : Integer;
|
|
1445
|
+
|
|
1446
|
+
@title : 'nOpt Parameter'
|
|
1447
|
+
@description: 'Stake pool target number parameter nOpt'
|
|
1448
|
+
nOpt : Integer;
|
|
1449
|
+
|
|
1450
|
+
@title : 'a0 Parameter'
|
|
1451
|
+
@description: 'Pool pledge influence parameter a0'
|
|
1452
|
+
a0 : Decimal(18, 10);
|
|
1453
|
+
|
|
1454
|
+
@title : 'Rho Parameter'
|
|
1455
|
+
@description: 'Monetary expansion parameter rho'
|
|
1456
|
+
rho : Decimal(18, 10);
|
|
1457
|
+
|
|
1458
|
+
@title : 'Tau Parameter'
|
|
1459
|
+
@description: 'Treasury cut parameter tau'
|
|
1460
|
+
tau : Decimal(18, 10);
|
|
1461
|
+
|
|
1462
|
+
@title : 'Minimum Pool Cost'
|
|
1463
|
+
@description: 'The minimum pool cost in lovelace'
|
|
1464
|
+
minPoolCost : String(32);
|
|
1465
|
+
|
|
1466
|
+
@title : 'Decentralisation Parameter'
|
|
1467
|
+
@description: 'The decentralisation parameter of the network'
|
|
1468
|
+
decentralisationParam : Decimal(18, 10);
|
|
1469
|
+
|
|
1470
|
+
@title : 'Extra Entropy'
|
|
1471
|
+
@description: 'The extra entropy for pool key generation'
|
|
1472
|
+
extraEntropy : String(128);
|
|
1473
|
+
|
|
1474
|
+
@title : 'Protocol Major Version'
|
|
1475
|
+
@description: 'The major version of the protocol'
|
|
1476
|
+
protocolMajorVer : Integer;
|
|
1477
|
+
|
|
1478
|
+
@title : 'Protocol Minor Version'
|
|
1479
|
+
@description: 'The minor version of the protocol'
|
|
1480
|
+
protocolMinorVer : Integer;
|
|
1481
|
+
|
|
1482
|
+
@title : 'Min UTxO Value'
|
|
1483
|
+
@description: 'The minimum UTxO value in lovelace'
|
|
1484
|
+
minUtxo : String(32);
|
|
1485
|
+
|
|
1486
|
+
@title : 'Min Pool Cost'
|
|
1487
|
+
@description: 'The minimum pool cost in lovelace'
|
|
1488
|
+
nonce : String(128);
|
|
1489
|
+
|
|
1490
|
+
@title : 'Cost Models'
|
|
1491
|
+
@description: 'The cost models for script execution as JSON blob'
|
|
1492
|
+
costModels : LargeString;
|
|
1493
|
+
|
|
1494
|
+
@title : 'Execution Prices'
|
|
1495
|
+
@description: 'The execution prices for script execution'
|
|
1496
|
+
priceMem : Decimal(18, 10);
|
|
1497
|
+
|
|
1498
|
+
@title : 'Execution Steps Price'
|
|
1499
|
+
@description: 'The execution steps price for script execution'
|
|
1500
|
+
priceStep : Decimal(18, 10);
|
|
1501
|
+
|
|
1502
|
+
@title : 'Maximum Execution Units'
|
|
1503
|
+
@description: 'The maximum execution units for transactions and blocks'
|
|
1504
|
+
maxTxExMem : String(32);
|
|
1505
|
+
|
|
1506
|
+
@title : 'Maximum Execution Steps'
|
|
1507
|
+
@description: 'The maximum execution steps for transactions and blocks'
|
|
1508
|
+
maxTxExSteps : String(32);
|
|
1509
|
+
|
|
1510
|
+
@title : 'Maximum Block Execution Units'
|
|
1511
|
+
@description: 'The maximum execution units for blocks'
|
|
1512
|
+
maxBlockExMem : String(32);
|
|
1513
|
+
|
|
1514
|
+
@title : 'Maximum Block Execution Steps'
|
|
1515
|
+
@description: 'The maximum execution steps for blocks'
|
|
1516
|
+
maxBlockExSteps : String(32);
|
|
1517
|
+
|
|
1518
|
+
@title : 'Maximum Value Size'
|
|
1519
|
+
@description: 'The maximum size for a value in bytes'
|
|
1520
|
+
maxValSize : String(32);
|
|
1521
|
+
|
|
1522
|
+
@title : 'Collateral Percent'
|
|
1523
|
+
@description: 'The required collateral percentage for script transactions'
|
|
1524
|
+
collateralPercent : Integer;
|
|
1525
|
+
|
|
1526
|
+
@title : 'Maximum Collateral Inputs'
|
|
1527
|
+
@description: 'The maximum number of collateral inputs for script transactions'
|
|
1528
|
+
maxCollateralInputs : Integer;
|
|
1529
|
+
|
|
1530
|
+
@title : 'Coins Per UTxO Size'
|
|
1531
|
+
@description: 'The coins per UTxO size parameter for calculating min UTxO value'
|
|
1532
|
+
coinsPerUtxoSize : String(32);
|
|
1533
|
+
|
|
1534
|
+
@title : 'Minimum Fee per Reference Script Byte'
|
|
1535
|
+
@description: 'Lovelace per byte of reference script on the inputs and reference inputs of a transaction (Conway); the ledger raises the price by 1.2 for every 25600 bytes'
|
|
1536
|
+
minFeeRefScriptCostPerByte : Decimal(12, 6);
|
|
1537
|
+
|
|
1538
|
+
@title : 'Coins Per UTxO Word'
|
|
1539
|
+
@description: 'The coins per UTxO word parameter for calculating min UTxO value (alonzo legacy)'
|
|
1540
|
+
coinsPerUtxoWord : String(32);
|
|
1541
|
+
|
|
1542
|
+
@title : 'Fetched At'
|
|
1543
|
+
@description: 'Timestamp when these parameters were fetched'
|
|
1544
|
+
fetchedAt : Timestamp;
|
|
1545
|
+
|
|
1546
|
+
@title : 'Source'
|
|
1547
|
+
@description: 'Source from which these parameters were fetched'
|
|
1548
|
+
source : String(32);
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
@title : 'Transaction Builds'
|
|
1552
|
+
@description: 'Entity for storing transaction build attempts and details'
|
|
1553
|
+
entity TransactionBuilds : temporal {
|
|
1554
|
+
|
|
1555
|
+
@title : 'Build ID (key)'
|
|
1556
|
+
@description: 'Unique identifier for the transaction build attempt'
|
|
1557
|
+
key id : UUID;
|
|
1558
|
+
|
|
1559
|
+
@title : 'Network'
|
|
1560
|
+
@description: 'The Cardano network type mainnet | preprod | preview'
|
|
1561
|
+
network : String(10);
|
|
1562
|
+
|
|
1563
|
+
@title : 'Builder Engine'
|
|
1564
|
+
@description: 'The transaction builder engine used for this build'
|
|
1565
|
+
builderEngine : String(20);
|
|
1566
|
+
|
|
1567
|
+
@title : 'Sender Address'
|
|
1568
|
+
@description: 'The sender/source address'
|
|
1569
|
+
senderAddress : Bech32;
|
|
1570
|
+
|
|
1571
|
+
@title : 'Change Address'
|
|
1572
|
+
@description: 'The change address (defaults to sender address if not specified)'
|
|
1573
|
+
changeAddress : Bech32;
|
|
1574
|
+
|
|
1575
|
+
@title : 'Unsigned Tx CBOR'
|
|
1576
|
+
@description: 'The unsigned transaction CBOR as hex string'
|
|
1577
|
+
unsignedTxCbor : LargeString;
|
|
1578
|
+
|
|
1579
|
+
@title : 'Tx Body Hash'
|
|
1580
|
+
@description: 'The transaction body hash as hex string'
|
|
1581
|
+
txBodyHash : Blake2b256;
|
|
1582
|
+
|
|
1583
|
+
@title : 'Estimated Fee'
|
|
1584
|
+
@description: 'The estimated transaction fee in lovelace'
|
|
1585
|
+
fee : Lovelace;
|
|
1586
|
+
|
|
1587
|
+
@title : 'Transaction Size'
|
|
1588
|
+
@description: 'The transaction size in bytes'
|
|
1589
|
+
size : Integer;
|
|
1590
|
+
|
|
1591
|
+
@title : 'Build Created At'
|
|
1592
|
+
@description: 'The timestamp when the build was created'
|
|
1593
|
+
createdAt : Integer64;
|
|
1594
|
+
|
|
1595
|
+
@title : 'Build Inputs'
|
|
1596
|
+
@description: 'The inputs used in the transaction build'
|
|
1597
|
+
inputs : Composition of many TransactionBuildInputs
|
|
1598
|
+
on inputs.build = $self;
|
|
1599
|
+
|
|
1600
|
+
@title : 'Build Outputs'
|
|
1601
|
+
@description: 'The outputs created in the transaction build'
|
|
1602
|
+
outputs : Composition of many TransactionBuildOutputs
|
|
1603
|
+
on outputs.build = $self;
|
|
1604
|
+
@title : 'Redeemers'
|
|
1605
|
+
@description: 'Redeemers of a script build with the execution units stamped on them'
|
|
1606
|
+
redeemers : Composition of many TransactionBuildRedeemers
|
|
1607
|
+
on redeemers.build = $self;
|
|
1608
|
+
|
|
1609
|
+
@title : 'Associated Submission'
|
|
1610
|
+
@description: 'Association to the transaction submission if submitted'
|
|
1611
|
+
submission : Association to one TransactionSubmissions
|
|
1612
|
+
on submission.build = $self;
|
|
1613
|
+
|
|
1614
|
+
@title : 'Has Inputs'
|
|
1615
|
+
@description: 'Indicates if the build has inputs'
|
|
1616
|
+
hasInputs : Boolean;
|
|
1617
|
+
|
|
1618
|
+
@title : 'Has Outputs'
|
|
1619
|
+
@description: 'Indicates if the build has outputs'
|
|
1620
|
+
hasOutputs : Boolean;
|
|
1621
|
+
|
|
1622
|
+
@title : 'Was Submitted'
|
|
1623
|
+
@description: 'Indicates if the build was submitted'
|
|
1624
|
+
wasSubmitted : Boolean;
|
|
1625
|
+
|
|
1626
|
+
@title : 'Script Hash'
|
|
1627
|
+
@description: 'Blake2b-224 hash of the Plutus script used (= policy ID for minting transactions)'
|
|
1628
|
+
scriptHash : String(56);
|
|
1629
|
+
|
|
1630
|
+
@title : 'Mint Script Hash'
|
|
1631
|
+
@description: 'Blake2b-224 hash of the minting policy script (= policy ID) for combined spend+mint transactions. Only set when BuildPlutusSpendTransaction included mintActionsJson.'
|
|
1632
|
+
mintScriptHash : String(56);
|
|
1633
|
+
|
|
1634
|
+
@title : 'Asset Fingerprint'
|
|
1635
|
+
@description: 'CIP-14 fingerprint of the first minted asset (e.g. asset1...). Convenience field for single-asset mints.'
|
|
1636
|
+
fingerprint : String(44);
|
|
1637
|
+
|
|
1638
|
+
@title : 'Script Address'
|
|
1639
|
+
@description: 'Enterprise script address derived from the applied script hash (bech32). Only set when lockOnScript=true.'
|
|
1640
|
+
scriptAddress : String(120);
|
|
1641
|
+
|
|
1642
|
+
@title : 'Forced Inputs Used'
|
|
1643
|
+
@description: 'Number of forced inputs (from forceInputsJson) actually included in the built transaction. 0 when forceInputsJson was not provided.'
|
|
1644
|
+
forcedInputsUsed : Integer;
|
|
1645
|
+
|
|
1646
|
+
@title : 'Reference Inputs Used'
|
|
1647
|
+
@description: 'Number of CIP-31 reference inputs (from referenceInputsJson) included in the built transaction. 0 when referenceInputsJson was not provided.'
|
|
1648
|
+
referenceInputsUsed : Integer;
|
|
1649
|
+
|
|
1650
|
+
@title : 'Collateral Available'
|
|
1651
|
+
@description: 'Indicates if collateral UTxOs were already available (SetCollateral only). When true, no transaction build was needed.'
|
|
1652
|
+
collateralAvailable : Boolean;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
@title : 'Transaction Build Inputs'
|
|
1656
|
+
@description: 'Entity for storing transaction build input details'
|
|
1657
|
+
entity TransactionBuildInputs {
|
|
1658
|
+
|
|
1659
|
+
@title : 'Build (key)'
|
|
1660
|
+
@description: 'Association to parent transaction build'
|
|
1661
|
+
key build : Association to TransactionBuilds;
|
|
1662
|
+
|
|
1663
|
+
@title : 'Input Index (key)'
|
|
1664
|
+
@description: 'Index of the input in the transaction build'
|
|
1665
|
+
key inputIndex : Integer;
|
|
1666
|
+
|
|
1667
|
+
@title : 'UTxO Transaction Hash'
|
|
1668
|
+
@description: 'UTxO transaction hash'
|
|
1669
|
+
txHash : Blake2b256;
|
|
1670
|
+
|
|
1671
|
+
@title : 'UTxO Output Index'
|
|
1672
|
+
@description: 'UTxO output index'
|
|
1673
|
+
outputIndex : Integer;
|
|
1674
|
+
|
|
1675
|
+
@title : 'Input Address'
|
|
1676
|
+
@description: 'UTxO address'
|
|
1677
|
+
address : Bech32;
|
|
1678
|
+
|
|
1679
|
+
@title : 'Input Lovelace Amount'
|
|
1680
|
+
@description: 'Lovelace amount of the input UTxO'
|
|
1681
|
+
lovelace : Lovelace;
|
|
1682
|
+
|
|
1683
|
+
@title : 'Input Assets'
|
|
1684
|
+
@description: 'Assets associated with the input UTxO'
|
|
1685
|
+
assets : Composition of many TransactionBuildInputAssets
|
|
1686
|
+
on assets.input = $self;
|
|
1687
|
+
|
|
1688
|
+
@title : 'Input Has Assets'
|
|
1689
|
+
@description: 'Indicates if input has native assets'
|
|
1690
|
+
hasAssets : Boolean;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
@title : 'Transaction Build Input Assets'
|
|
1694
|
+
@description: 'Entity for storing assets associated with transaction build inputs'
|
|
1695
|
+
entity TransactionBuildInputAssets {
|
|
1696
|
+
|
|
1697
|
+
@title : 'Transaction Build Input (key)'
|
|
1698
|
+
@description: 'Build input association'
|
|
1699
|
+
key input : Association to TransactionBuildInputs;
|
|
1700
|
+
|
|
1701
|
+
@title : 'Asset Unit (key)'
|
|
1702
|
+
@description: 'Asset unit (policyId + assetNameHex)'
|
|
1703
|
+
key unit : AssetUnit;
|
|
1704
|
+
|
|
1705
|
+
@title : 'Asset Details'
|
|
1706
|
+
@description: 'Structural slice for asset details'
|
|
1707
|
+
asset : AssetSlice;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
@title : 'Transaction Build Outputs'
|
|
1711
|
+
@description: 'Entity for storing transaction build output details'
|
|
1712
|
+
entity TransactionBuildOutputs {
|
|
1713
|
+
|
|
1714
|
+
@title : 'Build (key)'
|
|
1715
|
+
@description: 'Association to parent transaction build'
|
|
1716
|
+
key build : Association to TransactionBuilds;
|
|
1717
|
+
|
|
1718
|
+
@title : 'Output Index (key)'
|
|
1719
|
+
@description: 'Index in outputs array'
|
|
1720
|
+
key outputIndex : Integer;
|
|
1721
|
+
|
|
1722
|
+
@title : 'Recipient Address'
|
|
1723
|
+
@description: 'Recipient address in bech32 format'
|
|
1724
|
+
address : Bech32;
|
|
1725
|
+
|
|
1726
|
+
@title : 'Lovelace Amount'
|
|
1727
|
+
@description: 'Lovelace amount to send'
|
|
1728
|
+
lovelace : Lovelace;
|
|
1729
|
+
|
|
1730
|
+
@title : 'Is Change Output'
|
|
1731
|
+
@description: 'Indicates if this is the change output'
|
|
1732
|
+
isChange : Boolean;
|
|
1733
|
+
|
|
1734
|
+
@title : 'Output Assets'
|
|
1735
|
+
@description: 'Assets associated with this output'
|
|
1736
|
+
assets : Composition of many TransactionBuildOutputAssets
|
|
1737
|
+
on assets.output = $self;
|
|
1738
|
+
|
|
1739
|
+
@title : 'Has Assets'
|
|
1740
|
+
@description: 'Indicates if output has native assets'
|
|
1741
|
+
hasAssets : Boolean;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
@title : 'Transaction Build Redeemers'
|
|
1745
|
+
@description: 'Redeemers of a script build (spend, mint, …) with the execution units stamped on them; compare with maxTxExecutionUnits of the protocol parameters'
|
|
1746
|
+
entity TransactionBuildRedeemers {
|
|
1747
|
+
|
|
1748
|
+
@title : 'Build (key)'
|
|
1749
|
+
@description: 'Association to parent transaction build'
|
|
1750
|
+
key build : Association to TransactionBuilds;
|
|
1751
|
+
|
|
1752
|
+
@title : 'Tag (key)'
|
|
1753
|
+
@description: 'Redeemer purpose: Spend, Mint, Cert, Withdraw, Vote or Propose'
|
|
1754
|
+
key tag : String(10);
|
|
1755
|
+
|
|
1756
|
+
@title : 'Redeemer Index (key)'
|
|
1757
|
+
@description: 'Index within its purpose (spend: position of the input in the sorted inputs)'
|
|
1758
|
+
key redeemerIndex : Integer;
|
|
1759
|
+
|
|
1760
|
+
@title : 'Memory Units'
|
|
1761
|
+
@description: 'Execution memory units stamped on the redeemer'
|
|
1762
|
+
mem : Integer64;
|
|
1763
|
+
|
|
1764
|
+
@title : 'CPU Steps'
|
|
1765
|
+
@description: 'Execution CPU steps stamped on the redeemer'
|
|
1766
|
+
steps : Integer64;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
@title : 'Transaction Build Output Assets'
|
|
1770
|
+
@description: 'Entity for storing assets associated with transaction build outputs'
|
|
1771
|
+
entity TransactionBuildOutputAssets {
|
|
1772
|
+
|
|
1773
|
+
@title : 'Transaction Build Output (key)'
|
|
1774
|
+
@description: 'Association to parent transaction build output'
|
|
1775
|
+
key output : Association to TransactionBuildOutputs;
|
|
1776
|
+
|
|
1777
|
+
@title : 'Asset Unit (key)'
|
|
1778
|
+
@description: 'Asset unit (policyId + assetNameHex)'
|
|
1779
|
+
key unit : AssetUnit;
|
|
1780
|
+
|
|
1781
|
+
@title : 'Asset Details'
|
|
1782
|
+
@description: 'Structural slice for asset details'
|
|
1783
|
+
asset : AssetSlice;
|
|
1784
|
+
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
@title : 'Transaction Submissions'
|
|
1788
|
+
@description: 'Entity for storing transaction submission attempts and status'
|
|
1789
|
+
entity TransactionSubmissions {
|
|
1790
|
+
|
|
1791
|
+
@title : 'Submission ID (key)'
|
|
1792
|
+
@description: 'Unique identifier for the transaction submission'
|
|
1793
|
+
key id : UUID;
|
|
1794
|
+
|
|
1795
|
+
@title : 'Associated Build'
|
|
1796
|
+
@description: 'Association to the transaction build being submitted'
|
|
1797
|
+
build : Association to TransactionBuilds;
|
|
1798
|
+
|
|
1799
|
+
@title : 'Signged Tx CBOR'
|
|
1800
|
+
@description: 'The signed transaction CBOR as hex string'
|
|
1801
|
+
signedTxCbor : LargeString;
|
|
1802
|
+
|
|
1803
|
+
@title : 'Transaction Hash'
|
|
1804
|
+
@description: 'Actual transaction hash after signing'
|
|
1805
|
+
txHash : Blake2b256;
|
|
1806
|
+
|
|
1807
|
+
@title : 'Submission Time'
|
|
1808
|
+
@description: 'Submission time as unix timestamp'
|
|
1809
|
+
submittedAt : Integer64;
|
|
1810
|
+
|
|
1811
|
+
@title : 'Submission Status'
|
|
1812
|
+
@description: 'Current status of the transaction submission (pending, submitted, confirmed, failed, unresolved)'
|
|
1813
|
+
status : SubmissionStatus default 'pending' @readonly;
|
|
1814
|
+
|
|
1815
|
+
@title : 'Error Code'
|
|
1816
|
+
@description: 'Error code if failed'
|
|
1817
|
+
errorCode : String(50);
|
|
1818
|
+
|
|
1819
|
+
@title : 'Error Message'
|
|
1820
|
+
@description: 'Detailed error message if failed'
|
|
1821
|
+
errorMessage : LargeString;
|
|
1822
|
+
|
|
1823
|
+
@title : 'Resolution'
|
|
1824
|
+
@description: 'How an operator resolved an unresolved outcome: who, when, the outcome and the note. Null otherwise'
|
|
1825
|
+
resolution : String(500);
|
|
1826
|
+
|
|
1827
|
+
@title : 'Retry Count'
|
|
1828
|
+
@description: 'Number of retry attempts'
|
|
1829
|
+
retryCount : Integer;
|
|
1830
|
+
|
|
1831
|
+
@title : 'Submission Errors'
|
|
1832
|
+
@description: 'Composition of errors associated with this submission'
|
|
1833
|
+
errors : Composition of many TransactionSubmissionErrors
|
|
1834
|
+
on errors.submission = $self;
|
|
1835
|
+
|
|
1836
|
+
@title : 'Has Errors'
|
|
1837
|
+
@description: 'Indicates if submission has errors'
|
|
1838
|
+
hasErrors : Boolean;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
@title : 'Transaction Submission Errors'
|
|
1842
|
+
@description: 'Entity for storing errors encountered during transaction submission'
|
|
1843
|
+
entity TransactionSubmissionErrors {
|
|
1844
|
+
|
|
1845
|
+
@title : 'Error ID (key)'
|
|
1846
|
+
@description: 'Unique identifier for the submission error'
|
|
1847
|
+
key id : UUID;
|
|
1848
|
+
|
|
1849
|
+
@title : 'Associated Submission'
|
|
1850
|
+
@description: 'Association to parent transaction submission'
|
|
1851
|
+
submission : Association to TransactionSubmissions;
|
|
1852
|
+
|
|
1853
|
+
@title : 'Error Occurred At'
|
|
1854
|
+
@description: 'Timestamp when the error occurred as unix timestamp'
|
|
1855
|
+
occurredAt : Integer64;
|
|
1856
|
+
|
|
1857
|
+
@title : 'Error Type'
|
|
1858
|
+
@description: 'Type/category of the error encountered'
|
|
1859
|
+
errorType : String(50);
|
|
1860
|
+
|
|
1861
|
+
@title : 'Error Code'
|
|
1862
|
+
@description: 'Specific error code'
|
|
1863
|
+
errorCode : String(50);
|
|
1864
|
+
|
|
1865
|
+
@title : 'Error Message'
|
|
1866
|
+
@description: 'Detailed error message'
|
|
1867
|
+
errorMessage : LargeString;
|
|
1868
|
+
|
|
1869
|
+
@title : 'Error Details'
|
|
1870
|
+
@description: 'Additional error context as JSON'
|
|
1871
|
+
errorDetails : LargeString;
|
|
1872
|
+
|
|
1873
|
+
@title : 'Is Recoverable'
|
|
1874
|
+
@description: 'Indicates if error is recoverable via retry'
|
|
1875
|
+
isRecoverable : Boolean;
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
//-----------------------------------------------------
|
|
1879
|
+
// M3 - External Signing Workflow Entities & Address Additions
|
|
1880
|
+
//-----------------------------------------------------
|
|
1881
|
+
|
|
1882
|
+
@title : 'Address Transactions'
|
|
1883
|
+
@description : 'Association entity for transactions involving an address'
|
|
1884
|
+
entity AddressTransactions {
|
|
1885
|
+
|
|
1886
|
+
@title : 'Address (key)'
|
|
1887
|
+
@description: 'The Bech32 encoded address associated with the transaction'
|
|
1888
|
+
key address : Association to Addresses;
|
|
1889
|
+
|
|
1890
|
+
@title : 'Transaction (key)'
|
|
1891
|
+
@description: 'The associated transaction'
|
|
1892
|
+
key tx : Association to Transactions;
|
|
1893
|
+
|
|
1894
|
+
@title : 'Net Amount (Lovelace)'
|
|
1895
|
+
@description: 'Net lovelace change for this address in this transaction (positive = received, negative = sent)'
|
|
1896
|
+
netAmount : Decimal(20, 0);
|
|
1897
|
+
|
|
1898
|
+
@title : 'Block Time'
|
|
1899
|
+
@description: 'Block time of the transaction (denormalized for sorting)'
|
|
1900
|
+
blockTime : Integer64;
|
|
1901
|
+
|
|
1902
|
+
@title : 'Net Assets'
|
|
1903
|
+
@description: 'JSON array of net asset changes [{unit, policyId, assetName, quantity}] (positive = received, negative = sent)'
|
|
1904
|
+
netAssets : LargeString;
|
|
1905
|
+
|
|
1906
|
+
@title : 'Has Assets'
|
|
1907
|
+
@description: 'Indicates if this transaction involves native assets for this address'
|
|
1908
|
+
hasAssets : Boolean default false;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
@title : 'Address Signing Requests'
|
|
1912
|
+
@description : 'Association entity for signing requests involving an address'
|
|
1913
|
+
entity AddressSigningRequests {
|
|
1914
|
+
|
|
1915
|
+
@title : 'Address (key)'
|
|
1916
|
+
@description: 'The Bech32 encoded address associated with the signing request'
|
|
1917
|
+
key address : Association to Addresses;
|
|
1918
|
+
|
|
1919
|
+
@title : 'Signing Request (key)'
|
|
1920
|
+
@description: 'The associated signing request'
|
|
1921
|
+
key signingRequest : Association to SigningRequests;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
@title : 'Address Transaction Builds'
|
|
1925
|
+
@description : 'Association entity for transaction builds involving an address'
|
|
1926
|
+
entity AddressTransactionBuilds{
|
|
1927
|
+
|
|
1928
|
+
@title : 'Address (key)'
|
|
1929
|
+
@description: 'The Bech32 encoded address associated with the transaction build'
|
|
1930
|
+
key address : Association to Addresses;
|
|
1931
|
+
|
|
1932
|
+
@title : 'Transaction Build (key)'
|
|
1933
|
+
@description: 'The associated transaction build'
|
|
1934
|
+
key txBuild : Association to TransactionBuilds;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
@title : 'Signing Requests'
|
|
1938
|
+
@description: 'Entity for tracking external signing requests and their workflow state'
|
|
1939
|
+
entity SigningRequests {
|
|
1940
|
+
|
|
1941
|
+
@title : 'Signing Request ID (key)'
|
|
1942
|
+
@description: 'Unique identifier for the signing request'
|
|
1943
|
+
key id : UUID;
|
|
1944
|
+
|
|
1945
|
+
@title : 'Associated Build'
|
|
1946
|
+
@description: 'Association to the transaction build being signed'
|
|
1947
|
+
build : Association to TransactionBuilds;
|
|
1948
|
+
|
|
1949
|
+
@title : 'Transaction Body Hash'
|
|
1950
|
+
@description: 'The hash of the transaction body (data to be signed)'
|
|
1951
|
+
txBodyHash : Blake2b256;
|
|
1952
|
+
|
|
1953
|
+
@title : 'Unsigned Transaction CBOR'
|
|
1954
|
+
@description: 'The unsigned transaction in CBOR hex format'
|
|
1955
|
+
unsignedTxCbor : LargeString;
|
|
1956
|
+
|
|
1957
|
+
@title : 'Network'
|
|
1958
|
+
@description: 'Cardano network (mainnet | preprod | preview)'
|
|
1959
|
+
network : String(10);
|
|
1960
|
+
|
|
1961
|
+
@title : 'Status'
|
|
1962
|
+
@description: 'Current status of the signing request'
|
|
1963
|
+
status : SigningStatus default 'pending' @readonly;
|
|
1964
|
+
|
|
1965
|
+
@title : 'Created At'
|
|
1966
|
+
@description: 'Timestamp when the signing request was created'
|
|
1967
|
+
createdAt : Timestamp;
|
|
1968
|
+
|
|
1969
|
+
@title : 'Expires At'
|
|
1970
|
+
@description: 'Timestamp when the signing request expires'
|
|
1971
|
+
expiresAt : Timestamp;
|
|
1972
|
+
|
|
1973
|
+
@title : 'Signed At'
|
|
1974
|
+
@description: 'Timestamp when the signed transaction was claimed for submission'
|
|
1975
|
+
signedAt : Timestamp;
|
|
1976
|
+
|
|
1977
|
+
@title : 'Submitted At'
|
|
1978
|
+
@description: 'Timestamp when the transaction was submitted'
|
|
1979
|
+
submittedAt : Timestamp;
|
|
1980
|
+
|
|
1981
|
+
@title : 'Cardano CLI Command'
|
|
1982
|
+
@description: 'Example command to sign with Cardano CLI'
|
|
1983
|
+
cardanoCliCommand : LargeString;
|
|
1984
|
+
|
|
1985
|
+
@title : 'CIP-30 CBOR'
|
|
1986
|
+
@description: 'Transaction CBOR for browser wallet signing (CIP-30)'
|
|
1987
|
+
cip30TxCbor : LargeString;
|
|
1988
|
+
|
|
1989
|
+
@title : 'Signed Transaction CBOR'
|
|
1990
|
+
@description: 'The full signed transaction CBOR, stored when the request is claimed for submission, so an interrupted or unresolved submit can be resolved later'
|
|
1991
|
+
signedTxCbor : LargeString;
|
|
1992
|
+
|
|
1993
|
+
@title : 'Signer Type'
|
|
1994
|
+
@description: 'Type of signer used (cardano-cli | browser-wallet | hardware-wallet | custom)'
|
|
1995
|
+
signerType : String(20);
|
|
1996
|
+
|
|
1997
|
+
@title : 'Signer Info'
|
|
1998
|
+
@description: 'Additional information about the signer (wallet name, etc.)'
|
|
1999
|
+
signerInfo : String(100);
|
|
2000
|
+
|
|
2001
|
+
@title : 'HSM Key ID'
|
|
2002
|
+
@description: 'PKCS#11 key identifier used for HSM signing (audit trail)'
|
|
2003
|
+
hsmKeyId : String(40);
|
|
2004
|
+
|
|
2005
|
+
@title : 'Signature Verifications'
|
|
2006
|
+
@description: 'Composition of signature verification attempts'
|
|
2007
|
+
verifications : Composition of many SignatureVerifications
|
|
2008
|
+
on verifications.signingRequest = $self;
|
|
2009
|
+
|
|
2010
|
+
@title : 'Associated Submission'
|
|
2011
|
+
@description: 'Association to the transaction submission (if submitted)'
|
|
2012
|
+
submission : Association to TransactionSubmissions;
|
|
2013
|
+
|
|
2014
|
+
@title : 'Error Message'
|
|
2015
|
+
@description: 'Error message if signing, verification or the submit failed'
|
|
2016
|
+
errorMessage : LargeString;
|
|
2017
|
+
|
|
2018
|
+
@title : 'Resolution'
|
|
2019
|
+
@description: 'How an operator resolved an unresolved outcome: who, when, the outcome and the note. Null otherwise'
|
|
2020
|
+
resolution : String(500);
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
@title : 'Signature Verifications'
|
|
2024
|
+
@description: 'Entity for storing signature verification results'
|
|
2025
|
+
entity SignatureVerifications {
|
|
2026
|
+
|
|
2027
|
+
@title : 'Verification ID (key)'
|
|
2028
|
+
@description: 'Unique identifier for the verification attempt'
|
|
2029
|
+
key id : UUID;
|
|
2030
|
+
|
|
2031
|
+
@title : 'Associated Signing Request'
|
|
2032
|
+
@description: 'Association to the parent signing request'
|
|
2033
|
+
signingRequest : Association to SigningRequests;
|
|
2034
|
+
|
|
2035
|
+
@title : 'Signed Transaction CBOR'
|
|
2036
|
+
@description: 'The signed transaction CBOR that was verified'
|
|
2037
|
+
signedTxCbor : LargeString;
|
|
2038
|
+
|
|
2039
|
+
@title : 'Is Valid'
|
|
2040
|
+
@description: 'Whether the signature is valid'
|
|
2041
|
+
isValid : Boolean;
|
|
2042
|
+
|
|
2043
|
+
@title : 'Transaction Body Hash'
|
|
2044
|
+
@description: 'The verified transaction body hash'
|
|
2045
|
+
txBodyHash : Blake2b256;
|
|
2046
|
+
|
|
2047
|
+
@title : 'Witness Count'
|
|
2048
|
+
@description: 'Number of signatures found'
|
|
2049
|
+
witnessCount : Integer;
|
|
2050
|
+
|
|
2051
|
+
@title : 'Signer Key Hashes'
|
|
2052
|
+
@description: 'JSON array of public key hashes that signed the transaction'
|
|
2053
|
+
signerKeyHashes : LargeString;
|
|
2054
|
+
|
|
2055
|
+
@title : 'Error Message'
|
|
2056
|
+
@description: 'Error message if verification failed'
|
|
2057
|
+
errorMessage : LargeString;
|
|
2058
|
+
|
|
2059
|
+
@title : 'Warnings'
|
|
2060
|
+
@description: 'JSON array of warning messages'
|
|
2061
|
+
warnings : LargeString;
|
|
2062
|
+
|
|
2063
|
+
@title : 'Verified At'
|
|
2064
|
+
@description: 'Timestamp when the verification was performed'
|
|
2065
|
+
verifiedAt : Timestamp;
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
// -----------------------------------------------------
|
|
2069
|
+
// Chain Crawler / Pre-Sync
|
|
2070
|
+
// -----------------------------------------------------
|
|
2071
|
+
|
|
2072
|
+
@title : 'Cardano Sync State'
|
|
2073
|
+
@description: 'Singleton crawl cursor tracking the pre-sync progress of the chain crawler'
|
|
2074
|
+
entity CardanoSyncState {
|
|
2075
|
+
|
|
2076
|
+
@title : 'Cursor Id (Key)'
|
|
2077
|
+
@description: 'Singleton key, always the literal string SINGLETON'
|
|
2078
|
+
key ID : String(10) default 'SINGLETON';
|
|
2079
|
+
|
|
2080
|
+
@title : 'Network'
|
|
2081
|
+
@description: 'The Cardano network this cursor tracks (mainnet | preprod | preview)'
|
|
2082
|
+
network : String(10);
|
|
2083
|
+
|
|
2084
|
+
@title : 'Start Slot'
|
|
2085
|
+
@description: 'Absolute slot of the configured pre-sync origin (immutable once syncing starts)'
|
|
2086
|
+
startSlot : Integer64;
|
|
2087
|
+
|
|
2088
|
+
@title : 'Start Block Hash'
|
|
2089
|
+
@description: 'Block hash of the configured pre-sync origin'
|
|
2090
|
+
startBlockHash : Blake2b256;
|
|
2091
|
+
|
|
2092
|
+
@title : 'Last Slot'
|
|
2093
|
+
@description: 'Absolute slot of the last indexed block (resume point)'
|
|
2094
|
+
lastSlot : Integer64 default 0;
|
|
2095
|
+
|
|
2096
|
+
@title : 'Last Block Hash'
|
|
2097
|
+
@description: 'Hash of the last indexed block, used for the reorg parent-hash check'
|
|
2098
|
+
lastBlockHash : Blake2b256;
|
|
2099
|
+
|
|
2100
|
+
@title : 'Last Height'
|
|
2101
|
+
@description: 'Block height of the last indexed block'
|
|
2102
|
+
lastHeight : Integer64 default 0;
|
|
2103
|
+
|
|
2104
|
+
@title : 'Last Indexed At'
|
|
2105
|
+
@description: 'Wall-clock timestamp of the last successful block persist'
|
|
2106
|
+
lastIndexedAt : Timestamp;
|
|
2107
|
+
|
|
2108
|
+
@title : 'Tip Slot'
|
|
2109
|
+
@description: 'Latest known chain-tip slot, for lag/progress calculation'
|
|
2110
|
+
tipSlot : Integer64;
|
|
2111
|
+
|
|
2112
|
+
@title : 'Tip Height'
|
|
2113
|
+
@description: 'Latest known chain-tip height'
|
|
2114
|
+
tipHeight : Integer64;
|
|
2115
|
+
|
|
2116
|
+
@title : 'Sync Status'
|
|
2117
|
+
@description: 'Current crawler state (stopped | syncing | synced | error)'
|
|
2118
|
+
syncStatus : CrawlSyncStatus default 'stopped';
|
|
2119
|
+
|
|
2120
|
+
// Live progress is computed by getStatus and not stored here, since a stored copy goes stale at once.
|
|
2121
|
+
|
|
2122
|
+
@title : 'Last Error'
|
|
2123
|
+
@description: 'Message of the most recent crawler error (null when healthy)'
|
|
2124
|
+
lastError : String(500);
|
|
2125
|
+
|
|
2126
|
+
@title : 'Last Error At'
|
|
2127
|
+
@description: 'Timestamp of the most recent crawler error'
|
|
2128
|
+
lastErrorAt : Timestamp;
|
|
2129
|
+
|
|
2130
|
+
@title : 'Consecutive Errors'
|
|
2131
|
+
@description: 'Count of back-to-back failures; trips the circuit breaker past its threshold'
|
|
2132
|
+
consecutiveErrors : Integer default 0;
|
|
2133
|
+
|
|
2134
|
+
@title : 'Crawler Desired Running State'
|
|
2135
|
+
@description: 'Cluster-wide operator intent. False fences every crawler instance before its next write.'
|
|
2136
|
+
desiredRunning : Boolean default true;
|
|
2137
|
+
|
|
2138
|
+
@title : 'Crawler Lease Owner'
|
|
2139
|
+
@description: 'Opaque process identifier of the single crawler instance currently allowed to write'
|
|
2140
|
+
leaseOwner : String(128);
|
|
2141
|
+
|
|
2142
|
+
@title : 'UTxO Set Status'
|
|
2143
|
+
@description: 'Crawler-fed ledger state (crawler.utxoSet): none | importing | active | invalid'
|
|
2144
|
+
utxoSetStatus : String(20) default 'none';
|
|
2145
|
+
|
|
2146
|
+
@title : 'UTxO Set Anchor Slot'
|
|
2147
|
+
@description: 'Absolute slot the imported UTxO set describes; blocks after it are applied to the ledger tables'
|
|
2148
|
+
utxoAnchorSlot : Integer64;
|
|
2149
|
+
|
|
2150
|
+
@title : 'UTxO Set Anchor Hash'
|
|
2151
|
+
@description: 'Block hash of the anchor point'
|
|
2152
|
+
utxoAnchorHash : Blake2b256;
|
|
2153
|
+
|
|
2154
|
+
@title : 'UTxO Set Imported At'
|
|
2155
|
+
@description: 'When the snapshot import completed'
|
|
2156
|
+
utxoSetImportedAt : Timestamp;
|
|
2157
|
+
|
|
2158
|
+
@title : 'UTxO Set Applied Slot'
|
|
2159
|
+
@description: 'Slot of the last block applied to the ledger tables; a cursor ahead of it means blocks were crawled without the set (mode off, invalidated) and the set is stale'
|
|
2160
|
+
utxoAppliedSlot : Integer64;
|
|
2161
|
+
|
|
2162
|
+
@title : 'UTxO Set Lovelace'
|
|
2163
|
+
@description: 'Sum of lovelace over the unspent LedgerUTxOs rows, kept by the import and every applied or rolled-back block; null until computed'
|
|
2164
|
+
utxoSetLovelace : Lovelace;
|
|
2165
|
+
|
|
2166
|
+
@title : 'Asset Supply Height'
|
|
2167
|
+
@description: 'Block height up to which AssetSupply counts the AssetHistory rows; null until computed'
|
|
2168
|
+
assetSupplyHeight : Integer64;
|
|
2169
|
+
|
|
2170
|
+
@title : 'UTxO Set Error'
|
|
2171
|
+
@description: 'Why the set is invalid (reorg past the anchor, failed import)'
|
|
2172
|
+
utxoSetError : String(500);
|
|
2173
|
+
|
|
2174
|
+
@title : 'Crawler Lease Expiry'
|
|
2175
|
+
@description: 'Lease deadline renewed by the active crawler; another instance may take over only after this time'
|
|
2176
|
+
leaseUntil : Timestamp;
|
|
2177
|
+
|
|
2178
|
+
@title : 'Node Behind Since'
|
|
2179
|
+
@description: 'Since when the node behind chain-sync is behind the cursor and its rollback was refused; null while it follows'
|
|
2180
|
+
nodeBehindSince : Timestamp;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
@title : 'Cardano Reorg Log'
|
|
2184
|
+
@description: 'Audit trail of chain rollbacks (reorgs) handled by the crawler'
|
|
2185
|
+
entity CardanoReorgLog {
|
|
2186
|
+
|
|
2187
|
+
@title : 'Reorg Id (Key)'
|
|
2188
|
+
@description: 'Unique identifier of the reorg event'
|
|
2189
|
+
key ID : UUID;
|
|
2190
|
+
|
|
2191
|
+
@title : 'Detected At'
|
|
2192
|
+
@description: 'Timestamp when the rollback was detected'
|
|
2193
|
+
detectedAt : Timestamp;
|
|
2194
|
+
|
|
2195
|
+
@title : 'Fork Slot'
|
|
2196
|
+
@description: 'Absolute slot of the common ancestor the chain rolled back to'
|
|
2197
|
+
forkSlot : Integer64;
|
|
2198
|
+
|
|
2199
|
+
@title : 'Fork Height'
|
|
2200
|
+
@description: 'Block height of the common ancestor the chain rolled back to'
|
|
2201
|
+
forkHeight : Integer64;
|
|
2202
|
+
|
|
2203
|
+
@title : 'Old Tip Hash'
|
|
2204
|
+
@description: 'Hash of the abandoned tip before the rollback'
|
|
2205
|
+
oldTipHash : Blake2b256;
|
|
2206
|
+
|
|
2207
|
+
@title : 'New Tip Hash'
|
|
2208
|
+
@description: 'Hash of the block the chain rolled back to'
|
|
2209
|
+
newTipHash : Blake2b256;
|
|
2210
|
+
|
|
2211
|
+
@title : 'Blocks Rolled Back'
|
|
2212
|
+
@description: 'Number of blocks (and their child rows) deleted during rollback'
|
|
2213
|
+
blocksRolledBack : Integer;
|
|
2214
|
+
|
|
2215
|
+
@title : 'Status'
|
|
2216
|
+
@description: 'Lifecycle of the reorg handling (detected | rolling_back | reindexing | completed)'
|
|
2217
|
+
status : ReorgStatus;
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
// -----------------------------------------------------
|
|
2221
|
+
// Wallet Worker / Job Engine (v2.1)
|
|
2222
|
+
// -----------------------------------------------------
|
|
2223
|
+
|
|
2224
|
+
@title : 'Cardano Worker Wallets'
|
|
2225
|
+
@description: 'Operator-registered server-side wallets the wallet worker executes jobs from. No key material is ever stored here.'
|
|
2226
|
+
entity CardanoWorkerWallets {
|
|
2227
|
+
|
|
2228
|
+
@title : 'Wallet Id (Key)'
|
|
2229
|
+
@description: 'Stable operator-chosen handle used in job requests'
|
|
2230
|
+
key walletId : String(50);
|
|
2231
|
+
|
|
2232
|
+
@title : 'Signer Type'
|
|
2233
|
+
@description: 'How this wallet signs (hsm | software)'
|
|
2234
|
+
signerType : WorkerSignerType;
|
|
2235
|
+
|
|
2236
|
+
@title : 'Address'
|
|
2237
|
+
@description: 'Bech32 address derived from the signing key at worker init (informational)'
|
|
2238
|
+
address : Bech32;
|
|
2239
|
+
|
|
2240
|
+
@title : 'Public Key Hash'
|
|
2241
|
+
@description: 'Blake2b-224 hash of the wallet verification key'
|
|
2242
|
+
publicKeyHash : Blake2b224;
|
|
2243
|
+
|
|
2244
|
+
@title : 'Required Role'
|
|
2245
|
+
@description: 'Role a caller needs to queue jobs for this wallet, from the wallet config; null = any authenticated user'
|
|
2246
|
+
requiresRole : String(100);
|
|
2247
|
+
|
|
2248
|
+
@title : 'Enabled'
|
|
2249
|
+
@description: 'Disabled wallets accept no new jobs and are skipped by the dispatch loop'
|
|
2250
|
+
enabled : Boolean default true;
|
|
2251
|
+
|
|
2252
|
+
@title : 'Wallet Lease Owner'
|
|
2253
|
+
@description: 'Opaque process identifier of the single worker instance currently allowed to execute jobs for this wallet'
|
|
2254
|
+
leaseOwner : String(128);
|
|
2255
|
+
|
|
2256
|
+
@title : 'Wallet Lease Expiry'
|
|
2257
|
+
@description: 'Lease deadline renewed by the executing worker; another instance may take over only after this time'
|
|
2258
|
+
leaseUntil : Timestamp;
|
|
2259
|
+
|
|
2260
|
+
@title : 'Last Job At'
|
|
2261
|
+
@description: 'Timestamp of the most recent job execution for this wallet'
|
|
2262
|
+
lastJobAt : Timestamp;
|
|
2263
|
+
|
|
2264
|
+
@title : 'Jobs Confirmed'
|
|
2265
|
+
@description: 'Rolling count of jobs that reached confirmed state'
|
|
2266
|
+
jobsConfirmed : Integer64 default 0;
|
|
2267
|
+
|
|
2268
|
+
@title : 'Jobs Failed'
|
|
2269
|
+
@description: 'Rolling count of jobs that reached failed state'
|
|
2270
|
+
jobsFailed : Integer64 default 0;
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
@title : 'Cardano Wallet Jobs'
|
|
2274
|
+
@description: 'Asynchronous transaction jobs executed by the wallet worker (build → sign → submit → confirm)'
|
|
2275
|
+
// The database enforces idempotency, since two concurrent retries can both find no job.
|
|
2276
|
+
// The unique constraint makes one insert lose, and insertJob returns the winner's job.
|
|
2277
|
+
// dedupKey is scoped to the user, so one key names one job across all wallets and kinds.
|
|
2278
|
+
@assert.unique.dedup: [dedupKey]
|
|
2279
|
+
entity CardanoWalletJobs {
|
|
2280
|
+
|
|
2281
|
+
@title : 'Job Id (Key)'
|
|
2282
|
+
@description: 'Unique identifier of the job, returned by SubmitWalletJob'
|
|
2283
|
+
key ID : UUID;
|
|
2284
|
+
|
|
2285
|
+
@title : 'Wallet Id'
|
|
2286
|
+
@description: 'The worker wallet this job executes from'
|
|
2287
|
+
walletId : String(50);
|
|
2288
|
+
|
|
2289
|
+
@title : 'Job Kind'
|
|
2290
|
+
@description: 'Transaction kind (simpleAda | metadata | multiAsset | mint | plutusSpend | payout | submitSigned)'
|
|
2291
|
+
kind : WalletJobKind;
|
|
2292
|
+
|
|
2293
|
+
@title : 'Status'
|
|
2294
|
+
@description: 'Job lifecycle state (pending | building | submitting | submitted | confirmed | failed | cancelled | unresolved)'
|
|
2295
|
+
status : WalletJobStatus default 'pending';
|
|
2296
|
+
|
|
2297
|
+
@title : 'Idempotency Key'
|
|
2298
|
+
@description: 'Optional caller-supplied dedup key: per user, one key names one job across all wallets and kinds. A retry with the same request gets that job back, another request under the key is refused with 409'
|
|
2299
|
+
idempotencyKey : String(100);
|
|
2300
|
+
|
|
2301
|
+
@title : 'Dedup Key (internal)'
|
|
2302
|
+
@description: 'Backing value of the unique dedupKey constraint: the idempotency key hashed with the user while the job holds it, otherwise the job ID (unique by construction). Keyless jobs and terminated jobs therefore never collide, with no reliance on NULL semantics, which differ across databases.'
|
|
2303
|
+
dedupKey : String(100);
|
|
2304
|
+
|
|
2305
|
+
@title : 'Request'
|
|
2306
|
+
@description: 'The build-action payload as JSON, verbatim (validated before insert; never contains key material)'
|
|
2307
|
+
request : LargeString;
|
|
2308
|
+
|
|
2309
|
+
@title : 'Priority'
|
|
2310
|
+
@description: 'Dispatch order within a wallet queue: lower runs sooner (default 100)'
|
|
2311
|
+
priority : Integer default 100;
|
|
2312
|
+
|
|
2313
|
+
@title : 'Not Before'
|
|
2314
|
+
@description: 'Optional earliest execution time (one-shot scheduling)'
|
|
2315
|
+
notBefore : Timestamp;
|
|
2316
|
+
|
|
2317
|
+
@title : 'Attempt'
|
|
2318
|
+
@description: 'Number of execution attempts made so far'
|
|
2319
|
+
attempt : Integer default 0;
|
|
2320
|
+
|
|
2321
|
+
@title : 'Max Attempts'
|
|
2322
|
+
@description: 'Bound for transient-failure retries (build/submit); deterministic rejections fail immediately'
|
|
2323
|
+
maxAttempts : Integer default 3;
|
|
2324
|
+
|
|
2325
|
+
@title : 'Transaction Hash'
|
|
2326
|
+
@description: 'Hash of the signed transaction, persisted before the submit call (status submitting), so a crash mid-submit stays reconcilable'
|
|
2327
|
+
txHash : Blake2b256;
|
|
2328
|
+
|
|
2329
|
+
@title : 'Unsigned Transaction CBOR'
|
|
2330
|
+
@description: 'The built unsigned transaction, kept for diagnosis until the job confirms'
|
|
2331
|
+
unsignedTxCbor : LargeString;
|
|
2332
|
+
|
|
2333
|
+
@title : 'Signed Transaction CBOR'
|
|
2334
|
+
@description: 'The signed transaction, stored before submission, reused verbatim for crash reconciliation and rollback re-submission (never rebuilt)'
|
|
2335
|
+
signedTxCbor : LargeString;
|
|
2336
|
+
|
|
2337
|
+
@title : 'Fee'
|
|
2338
|
+
@description: 'Transaction fee in lovelace, from the build result'
|
|
2339
|
+
fee : Lovelace;
|
|
2340
|
+
|
|
2341
|
+
@title : 'Submitted At'
|
|
2342
|
+
@description: 'Timestamp of the submission attempt (written with the signed tx, before it is sent), the base for the confirmation timeout'
|
|
2343
|
+
submittedAt : Timestamp;
|
|
2344
|
+
|
|
2345
|
+
@title : 'Confirmed At'
|
|
2346
|
+
@description: 'Timestamp when the configured confirmation depth was reached'
|
|
2347
|
+
confirmedAt : Timestamp;
|
|
2348
|
+
|
|
2349
|
+
@title : 'Confirmed Slot'
|
|
2350
|
+
@description: 'Absolute slot of the block containing the transaction, used for reorg checks'
|
|
2351
|
+
confirmedSlot : Integer64;
|
|
2352
|
+
|
|
2353
|
+
@title : 'Confirmed Height'
|
|
2354
|
+
@description: 'Block height of the block containing the transaction, used for depth calculation'
|
|
2355
|
+
confirmedHeight : Integer64;
|
|
2356
|
+
|
|
2357
|
+
@title : 'Error Code'
|
|
2358
|
+
@description: 'Machine-readable code of the terminal failure (null while healthy)'
|
|
2359
|
+
errorCode : String(50);
|
|
2360
|
+
|
|
2361
|
+
@title : 'Error Message'
|
|
2362
|
+
@description: 'Human-readable message of the terminal failure'
|
|
2363
|
+
errorMessage : String(500);
|
|
2364
|
+
|
|
2365
|
+
@title : 'Created At'
|
|
2366
|
+
@description: 'Timestamp the job was accepted'
|
|
2367
|
+
createdAt : Timestamp;
|
|
2368
|
+
|
|
2369
|
+
@title : 'Created By'
|
|
2370
|
+
@description: 'User id of the caller that submitted the job'
|
|
2371
|
+
createdBy : String(100);
|
|
2372
|
+
|
|
2373
|
+
@title : 'Finished At'
|
|
2374
|
+
@description: 'Timestamp the job reached a terminal state (confirmed | failed | cancelled | unresolved)'
|
|
2375
|
+
finishedAt : Timestamp;
|
|
2376
|
+
|
|
2377
|
+
@title : 'Resolution'
|
|
2378
|
+
@description: 'How an operator resolved an unresolved outcome: who, when, the outcome and the note. Null otherwise'
|
|
2379
|
+
resolution : String(500);
|
|
2380
|
+
|
|
2381
|
+
@title : 'Invalidation Tx Hash'
|
|
2382
|
+
@description: 'Hash of the self-transfer that spends an input of a transaction without an expiry, so that transaction can never land. Null otherwise'
|
|
2383
|
+
invalidationTxHash : String(64);
|
|
2384
|
+
|
|
2385
|
+
@title : 'Invalidation Signed Tx CBOR'
|
|
2386
|
+
@description: 'Signed bytes of that self-transfer, stored before it is sent'
|
|
2387
|
+
invalidationTxCbor : LargeString;
|
|
2388
|
+
|
|
2389
|
+
@title : 'Invalidation Sent At'
|
|
2390
|
+
@description: 'When that self-transfer was stored and sent'
|
|
2391
|
+
invalidationSentAt : Timestamp;
|
|
2392
|
+
|
|
2393
|
+
@title : 'Spends No Wallet UTxO'
|
|
2394
|
+
@description: 'True when the job transaction has no expiry, has not landed and spends no UTxO the wallet holds. It cannot take the wallet funds, so it does not hold the wallet queue'
|
|
2395
|
+
spendsNoWalletUtxo : Boolean;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
// Agent grants: the token is stored as SHA-256 only; a request carrying it runs as `agent:<ID>`.
|
|
2399
|
+
// Created and revoked through CardanoAgentService; a token may read its own row only.
|
|
2400
|
+
@title : 'Agent Grants'
|
|
2401
|
+
@description: 'Scoped, budgeted bearer capabilities for agents (token stored as SHA-256 only)'
|
|
2402
|
+
entity CardanoAgentGrants {
|
|
2403
|
+
|
|
2404
|
+
@title : 'Grant Id (Key)'
|
|
2405
|
+
key ID : UUID;
|
|
2406
|
+
|
|
2407
|
+
@title : 'Operator'
|
|
2408
|
+
@description: 'User id of the Admin that issued the grant (audit; the token never runs as this user)'
|
|
2409
|
+
userId : String(200) not null;
|
|
2410
|
+
|
|
2411
|
+
@title : 'Agent Label'
|
|
2412
|
+
@description: 'Human-readable agent name, informational'
|
|
2413
|
+
agentLabel : String(100);
|
|
2414
|
+
|
|
2415
|
+
@title : 'Token Hash'
|
|
2416
|
+
@description: 'SHA-256 of the bearer token; the token itself is shown once and never stored'
|
|
2417
|
+
tokenHash : String(64) not null;
|
|
2418
|
+
|
|
2419
|
+
@title : 'Allowed Actions'
|
|
2420
|
+
@description: 'JSON array of allow-listed action names (builds, signing-request lifecycle, submits)'
|
|
2421
|
+
allowedActions : LargeString not null;
|
|
2422
|
+
|
|
2423
|
+
@title : 'Max Jobs Per Day'
|
|
2424
|
+
@description: 'Daily budget of allow-listed action calls (UTC day); null = unlimited'
|
|
2425
|
+
maxJobsPerDay : Integer;
|
|
2426
|
+
|
|
2427
|
+
@title : 'Jobs Used Today'
|
|
2428
|
+
@description: 'Budget consumed inside budgetWindow'
|
|
2429
|
+
jobsUsedToday : Integer default 0;
|
|
2430
|
+
|
|
2431
|
+
@title : 'Budget Window'
|
|
2432
|
+
@description: 'UTC day YYYY-MM-DD the counter belongs to'
|
|
2433
|
+
budgetWindow : String(10);
|
|
2434
|
+
|
|
2435
|
+
@title : 'Valid Until'
|
|
2436
|
+
@description: 'Expiry; null = no expiry'
|
|
2437
|
+
validUntil : Timestamp;
|
|
2438
|
+
|
|
2439
|
+
@title : 'Is Active'
|
|
2440
|
+
@description: 'False once revoked; a revoked token is an unknown token'
|
|
2441
|
+
isActive : Boolean default true;
|
|
2442
|
+
|
|
2443
|
+
@title : 'Revoked At'
|
|
2444
|
+
revokedAt : Timestamp;
|
|
2445
|
+
|
|
2446
|
+
@title : 'Created At'
|
|
2447
|
+
createdAt : Timestamp;
|
|
2448
|
+
|
|
2449
|
+
@title : 'Last Used At'
|
|
2450
|
+
@description: 'Last request admitted under this token (updated at most once a minute)'
|
|
2451
|
+
lastUsedAt : Timestamp;
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
// Daily per-action call counters of a grant, read by GetGrantUsage. The enforcement hook counts
|
|
2455
|
+
// calls on admission and refunds when the handler refuses the input. Not exposed as an entity.
|
|
2456
|
+
entity CardanoAgentGrantUsage {
|
|
2457
|
+
|
|
2458
|
+
@title : 'Grant'
|
|
2459
|
+
key grant : Association to CardanoAgentGrants;
|
|
2460
|
+
|
|
2461
|
+
@title : 'Day'
|
|
2462
|
+
@description: 'UTC day YYYY-MM-DD the call was admitted on'
|
|
2463
|
+
key day : String(10);
|
|
2464
|
+
|
|
2465
|
+
@title : 'Service'
|
|
2466
|
+
@description: 'CAP service name (CardanoTransactionService, CardanoSignService, ...)'
|
|
2467
|
+
key service : String(60);
|
|
2468
|
+
|
|
2469
|
+
@title : 'Action'
|
|
2470
|
+
@description: 'Action name (BuildSimpleAdaTransaction, SubmitTransaction, ...)'
|
|
2471
|
+
key action : String(100);
|
|
2472
|
+
|
|
2473
|
+
@title : 'Calls'
|
|
2474
|
+
@description: 'Admitted calls (budget charged where the grant has one)'
|
|
2475
|
+
calls : Integer default 0;
|
|
2476
|
+
|
|
2477
|
+
@title : 'Refunded'
|
|
2478
|
+
@description: 'Admitted calls whose handler refused the input (400..428); their unit was given back'
|
|
2479
|
+
refunded : Integer default 0;
|
|
2480
|
+
}
|