@odatano/core 2.0.0-rc.2 → 2.0.0-rc.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/@cds-models/CardanoAgentService/index.d.ts +251 -0
  2. package/@cds-models/CardanoAgentService/index.js +36 -0
  3. package/@cds-models/CardanoIndexerService/index.d.ts +139 -2
  4. package/@cds-models/CardanoIndexerService/index.js +18 -0
  5. package/@cds-models/CardanoODataService/index.d.ts +231 -6
  6. package/@cds-models/CardanoODataService/index.js +27 -0
  7. package/@cds-models/CardanoSignService/index.d.ts +5 -2
  8. package/@cds-models/CardanoTransactionService/index.d.ts +9 -9
  9. package/@cds-models/odatano/cardano/index.d.ts +323 -6
  10. package/@cds-models/odatano/cardano/index.js +33 -0
  11. package/README.md +195 -136
  12. package/db/schema.cds +2133 -1633
  13. package/package.json +181 -173
  14. package/scripts/migrate-slot-leader.mjs +104 -0
  15. package/scripts/migrate-txseq.mjs +147 -0
  16. package/src/index.d.ts +10 -10
  17. package/src/index.js +24 -14
  18. package/src/plugin.js +39 -52
  19. package/srv/blockchain/backends/blockfrost-backend.d.ts +29 -131
  20. package/srv/blockchain/backends/blockfrost-backend.js +45 -158
  21. package/srv/blockchain/backends/cardano-backend.d.ts +83 -158
  22. package/srv/blockchain/backends/cardano-backend.js +14 -5
  23. package/srv/blockchain/backends/koios-backend.d.ts +126 -60
  24. package/srv/blockchain/backends/koios-backend.js +293 -203
  25. package/srv/blockchain/backends/ogmios-backend.d.ts +69 -94
  26. package/srv/blockchain/backends/ogmios-backend.js +319 -185
  27. package/srv/blockchain/backends/ogmios-frame-guard.d.ts +32 -0
  28. package/srv/blockchain/backends/ogmios-frame-guard.js +142 -0
  29. package/srv/blockchain/cardano-client.d.ts +57 -204
  30. package/srv/blockchain/cardano-client.js +94 -226
  31. package/srv/blockchain/cardano-indexer.d.ts +176 -240
  32. package/srv/blockchain/cardano-indexer.js +615 -338
  33. package/srv/blockchain/cardano-tx-builder.d.ts +29 -82
  34. package/srv/blockchain/cardano-tx-builder.js +88 -128
  35. package/srv/blockchain/crawler/certificate-backfill.d.ts +45 -0
  36. package/srv/blockchain/crawler/certificate-backfill.js +150 -0
  37. package/srv/blockchain/crawler/crawler.d.ts +121 -53
  38. package/srv/blockchain/crawler/crawler.js +403 -89
  39. package/srv/blockchain/crawler/hooks.d.ts +3 -14
  40. package/srv/blockchain/crawler/index.d.ts +5 -0
  41. package/srv/blockchain/crawler/index.js +35 -7
  42. package/srv/blockchain/crawler/sync-state.d.ts +44 -28
  43. package/srv/blockchain/crawler/sync-state.js +115 -43
  44. package/srv/blockchain/crawler/utxo-set-import.d.ts +69 -0
  45. package/srv/blockchain/crawler/utxo-set-import.js +269 -0
  46. package/srv/blockchain/ledger-state.d.ts +80 -0
  47. package/srv/blockchain/ledger-state.js +383 -0
  48. package/srv/blockchain/signing/cose-verifier.d.ts +5 -12
  49. package/srv/blockchain/signing/cose-verifier.js +6 -12
  50. package/srv/blockchain/signing/external-signer.d.ts +16 -113
  51. package/srv/blockchain/signing/external-signer.js +19 -122
  52. package/srv/blockchain/signing/hsm-signer.d.ts +13 -45
  53. package/srv/blockchain/signing/hsm-signer.js +23 -63
  54. package/srv/blockchain/signing/signature-verifier.d.ts +8 -44
  55. package/srv/blockchain/signing/signature-verifier.js +13 -54
  56. package/srv/blockchain/signing/submission-finalizer.d.ts +9 -36
  57. package/srv/blockchain/signing/submission-finalizer.js +16 -48
  58. package/srv/blockchain/transaction-building/buildooor-tx.d.ts +71 -160
  59. package/srv/blockchain/transaction-building/buildooor-tx.js +185 -260
  60. package/srv/blockchain/transaction-building/cardano-tx.d.ts +8 -34
  61. package/srv/blockchain/transaction-rows.d.ts +12 -0
  62. package/srv/blockchain/transaction-rows.js +42 -0
  63. package/srv/blockchain/wallet-worker/build-request.d.ts +4 -17
  64. package/srv/blockchain/wallet-worker/build-request.js +39 -23
  65. package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +25 -17
  66. package/srv/blockchain/wallet-worker/confirmation-tracker.js +87 -41
  67. package/srv/blockchain/wallet-worker/index.js +2 -8
  68. package/srv/blockchain/wallet-worker/job-store.d.ts +36 -103
  69. package/srv/blockchain/wallet-worker/job-store.js +0 -0
  70. package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +4 -20
  71. package/srv/blockchain/wallet-worker/lease-heartbeat.js +4 -20
  72. package/srv/blockchain/wallet-worker/signers.d.ts +6 -19
  73. package/srv/blockchain/wallet-worker/signers.js +3 -8
  74. package/srv/blockchain/wallet-worker/wallet-worker.d.ts +15 -71
  75. package/srv/blockchain/wallet-worker/wallet-worker.js +40 -91
  76. package/srv/cardano-agent-service.cds +146 -0
  77. package/srv/cardano-agent-service.d.ts +2 -0
  78. package/srv/cardano-agent-service.js +12 -0
  79. package/srv/cardano-indexer-service.cds +164 -73
  80. package/srv/cardano-indexer-service.js +156 -11
  81. package/srv/cardano-service.cds +45 -0
  82. package/srv/cardano-service.js +38 -96
  83. package/srv/cardano-sign-service.cds +200 -180
  84. package/srv/cardano-sign-service.js +55 -173
  85. package/srv/cardano-tx-service.cds +32 -26
  86. package/srv/cardano-tx-service.js +136 -196
  87. package/srv/cardano-worker-service.js +7 -15
  88. package/srv/server.d.ts +28 -86
  89. package/srv/server.js +95 -128
  90. package/srv/utils/agent-grants-config.d.ts +37 -0
  91. package/srv/utils/agent-grants-config.js +138 -0
  92. package/srv/utils/agent-grants.d.ts +262 -0
  93. package/srv/utils/agent-grants.js +914 -0
  94. package/srv/utils/agent-token-auth.d.ts +16 -0
  95. package/srv/utils/agent-token-auth.js +78 -0
  96. package/srv/utils/backend-request-handler.d.ts +2 -16
  97. package/srv/utils/backend-request-handler.js +3 -18
  98. package/srv/utils/collections.d.ts +4 -8
  99. package/srv/utils/collections.js +4 -8
  100. package/srv/utils/const.d.ts +19 -68
  101. package/srv/utils/const.js +20 -69
  102. package/srv/utils/crypto.d.ts +3 -12
  103. package/srv/utils/crypto.js +5 -18
  104. package/srv/utils/db-indexes.d.ts +25 -0
  105. package/srv/utils/db-indexes.js +93 -0
  106. package/srv/utils/db-sanitize.d.ts +27 -0
  107. package/srv/utils/db-sanitize.js +85 -0
  108. package/srv/utils/epoch-slots.d.ts +13 -0
  109. package/srv/utils/epoch-slots.js +25 -0
  110. package/srv/utils/error-codes.d.ts +18 -73
  111. package/srv/utils/error-codes.js +17 -70
  112. package/srv/utils/errors.d.ts +36 -179
  113. package/srv/utils/errors.js +62 -220
  114. package/srv/utils/liveness.d.ts +16 -0
  115. package/srv/utils/liveness.js +41 -0
  116. package/srv/utils/mappers.d.ts +89 -214
  117. package/srv/utils/mappers.js +289 -301
  118. package/srv/utils/network-context.js +2 -11
  119. package/srv/utils/pg-order-nulls.d.ts +14 -0
  120. package/srv/utils/pg-order-nulls.js +57 -0
  121. package/srv/utils/plutus-placeholders.d.ts +6 -18
  122. package/srv/utils/plutus-placeholders.js +6 -20
  123. package/srv/utils/rate-limiter.d.ts +46 -0
  124. package/srv/utils/rate-limiter.js +116 -0
  125. package/srv/utils/service-events.d.ts +2 -22
  126. package/srv/utils/service-events.js +3 -23
  127. package/srv/utils/signing-helper.d.ts +3 -18
  128. package/srv/utils/signing-helper.js +10 -32
  129. package/srv/utils/tx-build-helper.d.ts +18 -92
  130. package/srv/utils/tx-build-helper.js +32 -123
  131. package/srv/utils/tx-request-parsers.d.ts +14 -20
  132. package/srv/utils/tx-request-parsers.js +33 -20
  133. package/srv/utils/tx-utils.d.ts +4 -23
  134. package/srv/utils/tx-utils.js +12 -41
  135. package/srv/utils/types.d.ts +114 -169
  136. package/srv/utils/types.js +2 -6
  137. package/srv/utils/validators.d.ts +19 -89
  138. package/srv/utils/validators.js +31 -138
@@ -1,6 +1,18 @@
1
1
  import { Transaction, BlockData, Address, UTxO, NetworkInformation, EpochData, MetadataLabelTx, PoolData, AccountData, DrepData, AssetInfo, LedgerProtocolParameters, ScriptEvaluationResult } from '../../utils/types';
2
- import { EvaluatingBackend, ChainSyncBackend, ChainSyncCallbacks, ChainSyncHandle, ChainPoint } from './cardano-backend';
2
+ import { EvaluatingBackend, ChainSyncBackend, ChainSyncCallbacks, ChainSyncHandle, ChainPoint, LedgerStateBackend } from './cardano-backend';
3
3
  import { Network } from '../cardano-client';
4
+ /** Hash of an Ogmios `Script`: blake2b-224 over the language tag byte followed by the script CBOR. */
5
+ export declare function ogmiosScriptHash(script: unknown): string | null;
6
+ /** Bech32 pool id of a block issuer: blake2b-224 of its cold verification key. */
7
+ export declare function issuerKeyToPoolId(verificationKeyHex: string): string;
8
+ /**
9
+ * Decode a CIP-129 DRep ID (`drep1…`, 29 bytes) into credential hash and type. Header byte:
10
+ * high nibble 0x2 = DRep, low nibble 0x2 = key hash / 0x3 = script hash.
11
+ */
12
+ export declare function decodeDrepId(drepId: string): {
13
+ hashHex: string;
14
+ isScript: boolean;
15
+ };
4
16
  /** Resolve Ogmios ledger tip which may be 'origin' (genesis block) or a point */
5
17
  export declare function resolveOgmiosTip(tip: 'origin' | {
6
18
  slot: number;
@@ -11,15 +23,13 @@ export declare function resolveOgmiosTip(tip: 'origin' | {
11
23
  };
12
24
  /** Resolve Ogmios block height which may be 'origin' (genesis block) or a number */
13
25
  export declare function resolveOgmiosHeight(height: 'origin' | number): number;
14
- export declare class OgmiosBackend implements EvaluatingBackend, ChainSyncBackend {
26
+ /** CardanoBackend implementation over an Ogmios WebSocket (local node). */
27
+ export declare class OgmiosBackend implements EvaluatingBackend, ChainSyncBackend, LedgerStateBackend {
15
28
  readonly name = "ogmios";
16
29
  /**
17
- * Capability declaration — the orchestrator skips Ogmios for these without
18
- * counting circuit failures. Historic queries are out of protocol scope;
19
- * getAddress/getNetworkInformation previously FABRICATED placeholder data
20
- * (type:'base'/isScript:false/stakeAddress:null resp. maxSupply as
21
- * total/circulating) which preferLive routing then preferred over correct
22
- * Blockfrost/Koios data.
30
+ * Capability declaration — the orchestrator skips Ogmios for these without counting
31
+ * circuit failures. Historic queries are out of protocol scope, and address aggregates
32
+ * cannot be derived from state queries.
23
33
  */
24
34
  readonly unsupportedMethods: ReadonlySet<string>;
25
35
  private stateQueryClient;
@@ -30,56 +40,32 @@ export declare class OgmiosBackend implements EvaluatingBackend, ChainSyncBacken
30
40
  private network;
31
41
  private timeoutMs;
32
42
  private ogmiosUrl;
33
- /**
34
- * Constructor
35
- */
36
43
  constructor(network: Network, timeoutMs: number, ogmiosUrl: string);
37
44
  /**
38
- * Force fresh (non-keep-alive) HTTP connections for the Ogmios `/health` probe.
39
- *
40
- * createInteractionContext() opens the WebSocket, but FIRST probes
41
- * `GET http://<ogmios>/health` via the library's `cross-fetch` → node-fetch v2
42
- * → Node-core `http`. Since Node 19, `http.globalAgent` defaults to
43
- * keepAlive:true, so node-fetch reuses pooled sockets. Against Ogmios' Warp
44
- * server on Node 22/24 a reused socket the server has already half-closed
45
- * yields "Invalid response body … Premature close" the instant the body is
46
- * read — deterministically (Node 20's older http client tolerated it; `curl`
47
- * does too, so the /health response itself is well-formed and the node is
48
- * healthy). The lib pins cross-fetch even in 7.0 and exposes no way to inject
49
- * an agent into that internal fetch, so we neutralise keep-alive process-wide
50
- * for `http://`. Blast radius is tiny: the only `http://` consumer is the local
51
- * Ogmios probe — Blockfrost/Koios run over `https` with their own axios agents
52
- * and are unaffected. Runs once, lazily, only when Ogmios is actually used.
45
+ * Force non-keep-alive HTTP for the Ogmios `/health` probe: node-fetch v2 uses `http.globalAgent`,
46
+ * whose pooled sockets (kept alive since Node 19) fail with "Premature close" once Ogmios' Warp server
47
+ * half-closes them. No agent hook exists, so keep-alive is disabled process-wide for `http://` only.
53
48
  */
54
49
  private static keepAliveDisabled;
55
50
  private static disableHttpKeepAlive;
56
51
  /** Validate Ogmios URL scheme and reject dangerous protocols */
57
52
  private static validateOgmiosUrl;
58
53
  /**
59
- * Bound an init step in time. A hung WebSocket connect/handshake (e.g. the
60
- * node is alive but too busy catching up to answer) would otherwise block
61
- * forever — there is no built-in connect timeout — hanging the whole
62
- * app-context bootstrap (seen as a 6h CI job timeout). On timeout we reject
63
- * with a message containing "timeout" so the orchestrator's transient-error
64
- * retry picks it up instead of dying.
54
+ * Bound an init step in time: the WebSocket connect/handshake has no built-in timeout and
55
+ * can hang when the node is busy. The rejection message contains "timeout" so the
56
+ * orchestrator's transient-error retry picks it up.
65
57
  */
66
58
  private withInitTimeout;
67
59
  /**
68
- * Force-release an Ogmios interaction socket after a failed/expired open or
69
- * close step. The runtime uses `ws` (and therefore supports `terminate`), but
70
- * the close fallback keeps the helper compatible with the public structural
71
- * InteractionContext type and lightweight test doubles.
60
+ * Force-release an interaction socket after a failed/expired open or close. The runtime
61
+ * socket is `ws` (has `terminate`); the `close` fallback keeps test doubles working.
72
62
  */
73
63
  private forceCloseContext;
74
- /**
75
- * Initialize the Ogmios backend connection
76
- */
64
+ /** Open the interaction context and the query/submission clients. */
77
65
  init(): Promise<boolean>;
78
66
  /**
79
- * Reconnect when the WebSocket has died since the last successful init.
80
- * No-op when never initialized (test-injected clients) — startup-init
81
- * recovery is the orchestrator's job (lazy init retry in CardanoClient).
82
- * Concurrent callers share one reconnect attempt.
67
+ * Reconnect when the WebSocket died since the last init. No-op when never initialized
68
+ * (test-injected clients); concurrent callers share one reconnect attempt.
83
69
  */
84
70
  private ensureConnected;
85
71
  /**
@@ -107,11 +93,12 @@ export declare class OgmiosBackend implements EvaluatingBackend, ChainSyncBacken
107
93
  */
108
94
  getTransactionMetadata(_tx_hash: string): Promise<MetadataLabelTx[]>;
109
95
  /**
110
- * Get specific Drep Data (not supported for Ogmios)
111
- * @param _drepId drep id
112
- * @returns {Promise<DrepData>} drep data
96
+ * DRep data from the live ledger state (`queryLedgerState/delegateRepresentatives`) via the
97
+ * raw `Method()` primitive, since the client ships no wrapper. Ogmios lists only REGISTERED
98
+ * DReps: retired/unknown → NotFoundError; `expired` is derived from the mandate epoch.
99
+ * @param drepId CIP-129 bech32 DRep ID (`drep1…`)
113
100
  */
114
- getDrep(_drepId: string): Promise<DrepData>;
101
+ getDrep(drepId: string): Promise<DrepData>;
115
102
  /**
116
103
  * Get Asset Info (not supported for Ogmios — no aggregate-supply query in the protocol)
117
104
  * @param _unit asset unit (policyId + assetNameHex)
@@ -119,17 +106,13 @@ export declare class OgmiosBackend implements EvaluatingBackend, ChainSyncBacken
119
106
  */
120
107
  getAssetInfo(_unit: string): Promise<AssetInfo>;
121
108
  /**
122
- * Get specific Network Information (not supported — Ogmios state queries
123
- * expose no supply/stake aggregates; the previous implementation fabricated
124
- * maxSupply as total/circulating, which preferLive routing then preferred
125
- * over correct Blockfrost/Koios data)
109
+ * Supply figures from `queryLedgerState/treasuryAndReserves`: total = max − reserves.
110
+ * Circulating, locked and stake totals are not in the ledger state and stay '0'.
126
111
  */
127
112
  getNetworkInformation(): Promise<NetworkInformation>;
128
113
  /**
129
- * Get current specific Address Data (not supported — address type, script
130
- * flag and stake address are not derivable from Ogmios state queries; the
131
- * previous implementation fabricated type:'base'/isScript:false/
132
- * stakeAddress:null. UTxOs remain available via getAddressUtxos.)
114
+ * Not supported — address type, script flag and stake address are not derivable from
115
+ * state queries. UTxOs remain available via getAddressUtxos.
133
116
  */
134
117
  getAddress(_address: string): Promise<Address>;
135
118
  /** get current specific Address UTxOs
@@ -137,12 +120,15 @@ export declare class OgmiosBackend implements EvaluatingBackend, ChainSyncBacken
137
120
  * @returns {Promise<UTxO[]>} address UTxOs
138
121
  */
139
122
  getAddressUtxos(address: string): Promise<UTxO[]>;
123
+ /** Ogmios `Utxo` entry → normalized UTxO line (shared by the address query and the set import). */
124
+ private mapOgmiosUtxo;
140
125
  /**
141
- * Get Address Transactions (not supported by Ogmios - use historical backend)
142
- * Ogmios is a live state query backend and does not provide historical transaction data
143
- * @param _address bech32 address
144
- * @returns {Promise<Transaction[]>} always throws - use historical backend instead
126
+ * Whole UTxO set as of `point` (crawler snapshot import) on a SEPARATE WebSocket: local-state-query
127
+ * holds one acquired point per connection, so the shared socket would pin live queries to the past.
128
+ * The point must be inside the node's volatile window (last 2160 blocks) or acquisition is refused.
145
129
  */
130
+ queryUtxoSetAt(point: ChainPoint): Promise<UTxO[]>;
131
+ /** Not supported — Ogmios is a live state-query backend; use Blockfrost/Koios. */
146
132
  getAddressTransactions(_address: string): Promise<Transaction[]>;
147
133
  /**
148
134
  * Get current specific Pool Data
@@ -189,59 +175,48 @@ export declare class OgmiosBackend implements EvaluatingBackend, ChainSyncBacken
189
175
  */
190
176
  getCurrentSlot(): Promise<number>;
191
177
  /**
192
- * Check whether a UTxO is still unspent via Ogmios `queryLedgerState/utxo`
193
- * with an outputReferences filter. Empty result means spent or nonexistent.
178
+ * Unspent check via `queryLedgerState/utxo` with an outputReferences filter; empty = spent or nonexistent.
194
179
  * @param txHash 64-char lowercase hex
195
180
  * @param outputIndex non-negative integer
196
- * @returns {Promise<boolean>} true iff the UTxO exists and is unspent
197
181
  */
198
182
  isUtxoUnspent(txHash: string, outputIndex: number): Promise<boolean>;
199
- /**
200
- * Shutdown the Ogmios Backend
201
- * Closes all connections and marks as shutdown
202
- */
183
+ /** Outputs among `refs` that are unspent in the live ledger; spent or unknown references are absent. */
184
+ getUnspentOutputs(refs: Array<{
185
+ txHash: string;
186
+ outputIndex: number;
187
+ }>): Promise<UTxO[]>;
188
+ /** Close the WebSocket and mark the backend as shut down. */
203
189
  shutdown(): Promise<void>;
204
- /**
205
- * Check if backend is connected
206
- */
207
190
  isConnected(): boolean;
208
- /**
209
- * Ensure the client is not shutdown before operations
210
- */
211
191
  private ensureNotShutdown;
212
192
  /**
213
- * Convert Ogmios value format to odatano amount array
214
- * Ogmios: { ada: { lovelace: 1000000 }, policyId: { assetName: quantity } }
215
- * Standard: [{ unit: 'lovelace', quantity: '1000000' }, { unit: 'policyId.assetName', quantity: 'N' }]
193
+ * Ogmios value `{ ada: { lovelace }, policyId: { assetName: qty } }` →
194
+ * `[{ unit: 'lovelace', quantity }, { unit: policyId+assetName, quantity }]`.
216
195
  */
217
196
  private convertOgmiosValue;
218
197
  /**
219
- * Open a dedicated chain-synchronization stream. Uses its own InteractionContext
220
- * (a separate WebSocket) from the query/submission clients, because it is a
221
- * long-lived stream. `sequential: true` + `inFlight: 1` deliver blocks one at a
222
- * time in order, which the crawler needs for reorg detection and serial persist.
223
- *
224
- * KNOWN LIMITATIONS (documented, to harden against a live node — see CRAWLER_DESIGN.md):
225
- * - Input address/amount are left empty: Ogmios chain-sync inputs are bare
226
- * references ({txId,index}); the indexer resolves them from already-indexed
227
- * outputs (indexBlockFull, C3).
228
- * - Per-tx `size` and `deposit` are not surfaced by chain-sync (set 0).
229
- * - Output `referenceScriptHash` is not derived from the inline script yet.
198
+ * Open a long-lived chain-sync stream on its own WebSocket. `sequential: true` + `inFlight: 1`
199
+ * deliver blocks strictly in order (required by reorg detection and serial persist). Inputs arrive
200
+ * as bare references (resolved by the indexer from indexed outputs); per-tx size/deposit are not surfaced.
230
201
  */
231
202
  openChainSync(from: ChainPoint[] | 'origin', callbacks: ChainSyncCallbacks): Promise<ChainSyncHandle>;
232
203
  /**
233
- * Map an Ogmios Praos block into our BlockData + its transactions. Block-level
234
- * fees are the sum of per-tx fees; epoch/epochSlot are derived from the slot via
235
- * the network's Shelley anchor (same config the tx-builder uses).
204
+ * Map an Ogmios Praos block to BlockData + transactions. Block fees are the sum of per-tx
205
+ * fees; epoch/epochSlot derive from the slot via the Shelley anchor. A phase-2 failure without
206
+ * `total_collateral` still carries its declared fee here; applyCollateralFees() corrects it.
236
207
  */
237
208
  private mapOgmiosBlock;
238
209
  /**
239
- * Map a single Ogmios chain-sync transaction into our Transaction. Outputs, fee
240
- * and metadata are mapped fully; inputs are kept as bare references (address/amount
241
- * resolved downstream by the indexer). `spends` selects the ledger-applied
242
- * partition: a phase-2-invalid transaction consumes collaterals and creates only
243
- * its collateral-return output, never its declared regular inputs/outputs.
210
+ * Map one chain-sync transaction. Inputs stay bare references (resolved by the indexer).
211
+ * `spends` selects the ledger-applied partition: a phase-2-invalid tx consumes collaterals
212
+ * and creates only its collateral-return output; the fee follows that partition too.
244
213
  */
245
214
  private mapOgmiosTx;
215
+ /**
216
+ * Normalize Ogmios certificates onto the shared `CertificateKind` vocabulary. A `stakeDelegation`
217
+ * with both pool and DRep target is split into two entries with the same index (as db-sync
218
+ * reports it); bare credential hashes are re-encoded as bech32 to match the other tables.
219
+ */
220
+ private mapOgmiosCertificates;
246
221
  }
247
222
  //# sourceMappingURL=ogmios-backend.d.ts.map