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