@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.
- package/@cds-models/CardanoAgentService/index.d.ts +251 -0
- package/@cds-models/CardanoAgentService/index.js +36 -0
- package/@cds-models/CardanoIndexerService/index.d.ts +139 -2
- package/@cds-models/CardanoIndexerService/index.js +18 -0
- package/@cds-models/CardanoODataService/index.d.ts +231 -6
- package/@cds-models/CardanoODataService/index.js +27 -0
- package/@cds-models/CardanoSignService/index.d.ts +5 -2
- package/@cds-models/CardanoTransactionService/index.d.ts +9 -9
- package/@cds-models/odatano/cardano/index.d.ts +323 -6
- package/@cds-models/odatano/cardano/index.js +33 -0
- package/README.md +195 -136
- package/db/schema.cds +2133 -1633
- package/package.json +181 -173
- package/scripts/migrate-slot-leader.mjs +104 -0
- package/scripts/migrate-txseq.mjs +147 -0
- package/src/index.d.ts +10 -10
- package/src/index.js +24 -14
- package/src/plugin.js +39 -52
- package/srv/blockchain/backends/blockfrost-backend.d.ts +29 -131
- package/srv/blockchain/backends/blockfrost-backend.js +45 -158
- package/srv/blockchain/backends/cardano-backend.d.ts +83 -158
- package/srv/blockchain/backends/cardano-backend.js +14 -5
- package/srv/blockchain/backends/koios-backend.d.ts +126 -60
- package/srv/blockchain/backends/koios-backend.js +293 -203
- package/srv/blockchain/backends/ogmios-backend.d.ts +69 -94
- package/srv/blockchain/backends/ogmios-backend.js +319 -185
- 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 +57 -204
- package/srv/blockchain/cardano-client.js +94 -226
- package/srv/blockchain/cardano-indexer.d.ts +176 -240
- package/srv/blockchain/cardano-indexer.js +615 -338
- package/srv/blockchain/cardano-tx-builder.d.ts +29 -82
- package/srv/blockchain/cardano-tx-builder.js +88 -128
- package/srv/blockchain/crawler/certificate-backfill.d.ts +45 -0
- package/srv/blockchain/crawler/certificate-backfill.js +150 -0
- package/srv/blockchain/crawler/crawler.d.ts +121 -53
- package/srv/blockchain/crawler/crawler.js +403 -89
- 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 +44 -28
- package/srv/blockchain/crawler/sync-state.js +115 -43
- package/srv/blockchain/crawler/utxo-set-import.d.ts +69 -0
- package/srv/blockchain/crawler/utxo-set-import.js +269 -0
- package/srv/blockchain/ledger-state.d.ts +80 -0
- package/srv/blockchain/ledger-state.js +383 -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 +8 -44
- package/srv/blockchain/signing/signature-verifier.js +13 -54
- package/srv/blockchain/signing/submission-finalizer.d.ts +9 -36
- package/srv/blockchain/signing/submission-finalizer.js +16 -48
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts +71 -160
- package/srv/blockchain/transaction-building/buildooor-tx.js +185 -260
- package/srv/blockchain/transaction-building/cardano-tx.d.ts +8 -34
- package/srv/blockchain/transaction-rows.d.ts +12 -0
- package/srv/blockchain/transaction-rows.js +42 -0
- package/srv/blockchain/wallet-worker/build-request.d.ts +4 -17
- package/srv/blockchain/wallet-worker/build-request.js +39 -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-indexer-service.cds +164 -73
- package/srv/cardano-indexer-service.js +156 -11
- package/srv/cardano-service.cds +45 -0
- package/srv/cardano-service.js +38 -96
- package/srv/cardano-sign-service.cds +200 -180
- package/srv/cardano-sign-service.js +55 -173
- package/srv/cardano-tx-service.cds +32 -26
- package/srv/cardano-tx-service.js +136 -196
- package/srv/cardano-worker-service.js +7 -15
- package/srv/server.d.ts +28 -86
- package/srv/server.js +95 -128
- 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 +914 -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 +19 -68
- package/srv/utils/const.js +20 -69
- 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 +93 -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 +13 -0
- package/srv/utils/epoch-slots.js +25 -0
- package/srv/utils/error-codes.d.ts +18 -73
- package/srv/utils/error-codes.js +17 -70
- package/srv/utils/errors.d.ts +36 -179
- package/srv/utils/errors.js +62 -220
- package/srv/utils/liveness.d.ts +16 -0
- package/srv/utils/liveness.js +41 -0
- package/srv/utils/mappers.d.ts +89 -214
- package/srv/utils/mappers.js +289 -301
- package/srv/utils/network-context.js +2 -11
- package/srv/utils/pg-order-nulls.d.ts +14 -0
- package/srv/utils/pg-order-nulls.js +57 -0
- package/srv/utils/plutus-placeholders.d.ts +6 -18
- package/srv/utils/plutus-placeholders.js +6 -20
- 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 +3 -18
- package/srv/utils/signing-helper.js +10 -32
- package/srv/utils/tx-build-helper.d.ts +18 -92
- package/srv/utils/tx-build-helper.js +32 -123
- package/srv/utils/tx-request-parsers.d.ts +14 -20
- package/srv/utils/tx-request-parsers.js +33 -20
- package/srv/utils/tx-utils.d.ts +4 -23
- package/srv/utils/tx-utils.js +12 -41
- package/srv/utils/types.d.ts +114 -169
- package/srv/utils/types.js +2 -6
- package/srv/utils/validators.d.ts +19 -89
- 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
|
-
|
|
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
|
-
*
|
|
19
|
-
*
|
|
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
|
|
39
|
-
*
|
|
40
|
-
*
|
|
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
|
|
60
|
-
*
|
|
61
|
-
*
|
|
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
|
|
69
|
-
*
|
|
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
|
|
80
|
-
*
|
|
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
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
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(
|
|
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
|
-
*
|
|
123
|
-
*
|
|
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
|
-
*
|
|
130
|
-
*
|
|
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
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
201
|
-
|
|
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
|
-
*
|
|
214
|
-
*
|
|
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
|
|
220
|
-
*
|
|
221
|
-
*
|
|
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
|
|
234
|
-
* fees
|
|
235
|
-
*
|
|
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
|
|
240
|
-
*
|
|
241
|
-
*
|
|
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
|