@valve-tech/chain-source 0.12.0 → 0.13.0
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/CHANGELOG.md +26 -0
- package/dist/types.d.ts +7 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,32 @@ this file.
|
|
|
6
6
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
8
8
|
|
|
9
|
+
## [0.13.0] — 2026-05-12
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- `EventSource` doc comment for the `'receipt-poll'` discriminator
|
|
14
|
+
widened. Previously described only the receipt-poll fallback path;
|
|
15
|
+
now explicitly covers any per-hash mined check that isn't the
|
|
16
|
+
source's own block-poll. `@valve-tech/tx-tracker` v0.13.0 uses
|
|
17
|
+
this discriminator for both its existing `receipt-poll-fallback`
|
|
18
|
+
lost-signal policy AND its new
|
|
19
|
+
`TrackOptions.probeMined` per-subscription consumer-supplied probe.
|
|
20
|
+
The type value itself is unchanged — `'receipt-poll'` is still the
|
|
21
|
+
same string literal in the discriminated union. No consumer
|
|
22
|
+
migration required.
|
|
23
|
+
|
|
24
|
+
### Notes
|
|
25
|
+
|
|
26
|
+
- The widening reflects how the discriminator is actually consumed:
|
|
27
|
+
it has always meant "per-hash mined check, not from the canonical
|
|
28
|
+
block stream," and `buildVanishedFromBlock`'s spec §12.3 rejection
|
|
29
|
+
of this source has always been the authoritative constraint.
|
|
30
|
+
Consumers who already gate UI / business logic on
|
|
31
|
+
`event.source === 'receipt-poll'` will see the same set of events
|
|
32
|
+
they always have, plus any newly-arriving probe-derived events
|
|
33
|
+
from consumers that opt into the tx-tracker probe API.
|
|
34
|
+
|
|
9
35
|
## [0.12.0] — 2026-05-11
|
|
10
36
|
|
|
11
37
|
### Added
|
package/dist/types.d.ts
CHANGED
|
@@ -131,9 +131,13 @@ export interface PollOptions {
|
|
|
131
131
|
*
|
|
132
132
|
* `'block-poll'` and `'mempool-snapshot'` indicate the source's
|
|
133
133
|
* own poll cycle pulled the data via `eth_getBlockByNumber` /
|
|
134
|
-
* `txpool_content` respectively. `'receipt-poll'`
|
|
135
|
-
*
|
|
136
|
-
*
|
|
134
|
+
* `txpool_content` respectively. `'receipt-poll'` covers any per-hash
|
|
135
|
+
* mined check that isn't the source's own block-poll — the tx-tracker
|
|
136
|
+
* uses it for both the RPC `receipt-poll-fallback` lost-signal policy
|
|
137
|
+
* AND consumer-supplied probes (`TrackOptions.probeMined`) that
|
|
138
|
+
* forward inclusion data from an indexer or other downstream source.
|
|
139
|
+
* Receipt-poll observations cannot authoritatively detect reorgs
|
|
140
|
+
* (spec §12.3 — `buildVanishedFromBlock` rejects this source).
|
|
137
141
|
*/
|
|
138
142
|
export type EventSource = 'subscription' | 'block-poll' | 'mempool-snapshot' | 'receipt-poll';
|
|
139
143
|
/**
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,KAAK;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,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AAW,kBAAkB;IACjC,eAAe,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,YAAY,GACZ,kBAAkB,GAClB,cAAc,CAAA;AAElB;;;;;;;;;;GAUG;AACH,MAAM,WAAW,YAAY;IAC3B,+DAA+D;IAC/D,QAAQ,EAAE,cAAc,GAAG,WAAW,GAAG,aAAa,CAAA;IACtD,4EAA4E;IAC5E,sBAAsB,EAAE,cAAc,GAAG,WAAW,GAAG,aAAa,CAAA;IACpE,oEAAoE;IACpE,aAAa,EAAE,WAAW,GAAG,OAAO,CAAA;IACpC,qEAAqE;IACrE,aAAa,EAAE,WAAW,GAAG,aAAa,CAAA;IAC1C,qEAAqE;IACrE,kBAAkB,EAAE,OAAO,CAAA;CAC5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valve-tech/chain-source",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Canonical EVM chain-observation primitive: a unified push-or-poll source for new blocks, mempool snapshots, on-demand receipt + tx lookups, and capability disclosure (HTTP / WS / per-method gating). Used as the shared foundation by @valve-tech/gas-oracle and @valve-tech/tx-tracker; consumable directly by anyone building their own derived view on chain state. viem-native. Part of the valve-tech/evm-toolkit synchronized release line — implementation lands in subsequent 0.3.x releases per docs/tx-tracker-spec.md.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/valve-tech/evm-toolkit/tree/main/packages/chain-source#readme",
|