@valve-tech/chain-source 0.13.0 → 0.14.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 +25 -0
- package/dist/types.d.ts +10 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,31 @@ 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.14.0] — 2026-05-14
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- `EventSource` doc comment for the `'receipt-poll'` discriminator
|
|
14
|
+
widened again. Previously covered per-hash *mined* checks
|
|
15
|
+
(v0.13.0 widening). Now explicitly covers per-hash *status*
|
|
16
|
+
checks — mined OR pending. `@valve-tech/tx-tracker` v0.14.0 uses
|
|
17
|
+
this discriminator for the new default-on
|
|
18
|
+
`statusPollEveryBlocks` per-hash status poll (backed by
|
|
19
|
+
`eth_getTransactionByHash`), which emits both `seen-in-block`
|
|
20
|
+
(mined-state observation) and `seen-in-mempool` (pending-state
|
|
21
|
+
observation) under `source: 'receipt-poll'`. The type value
|
|
22
|
+
itself is unchanged. No consumer migration required.
|
|
23
|
+
|
|
24
|
+
### Notes
|
|
25
|
+
|
|
26
|
+
- The widening reflects the conceptual category that
|
|
27
|
+
`'receipt-poll'` has always represented: "per-hash status check,
|
|
28
|
+
not from the canonical block or full mempool stream." Receipt
|
|
29
|
+
polling and `eth_getTransactionByHash` are both
|
|
30
|
+
per-hash-against-the-node's-tx-index; the same authority
|
|
31
|
+
constraint (`buildVanishedFromBlock` rejects this source per
|
|
32
|
+
spec §12.3) applies to both.
|
|
33
|
+
|
|
9
34
|
## [0.13.0] — 2026-05-12
|
|
10
35
|
|
|
11
36
|
### Changed
|
package/dist/types.d.ts
CHANGED
|
@@ -132,12 +132,16 @@ export interface PollOptions {
|
|
|
132
132
|
* `'block-poll'` and `'mempool-snapshot'` indicate the source's
|
|
133
133
|
* own poll cycle pulled the data via `eth_getBlockByNumber` /
|
|
134
134
|
* `txpool_content` respectively. `'receipt-poll'` covers any per-hash
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
135
|
+
* status check that isn't the source's own block-poll — typically
|
|
136
|
+
* backed by `eth_getTransactionByHash` or `eth_getTransactionReceipt`,
|
|
137
|
+
* answering either the mined-state or pending-state question for a
|
|
138
|
+
* specific hash. The tx-tracker uses it for: (1) the
|
|
139
|
+
* `receipt-poll-fallback` lost-signal policy, (2) consumer-supplied
|
|
140
|
+
* `probeMined` inclusion probes, and (3) the default
|
|
141
|
+
* `statusPollEveryBlocks` per-hash status poll (and its optional
|
|
142
|
+
* consumer `probeTransaction` fallback). Per-hash checks via this
|
|
143
|
+
* source cannot authoritatively detect reorgs (spec §12.3 —
|
|
144
|
+
* `buildVanishedFromBlock` rejects this source).
|
|
141
145
|
*/
|
|
142
146
|
export type EventSource = 'subscription' | 'block-poll' | 'mempool-snapshot' | 'receipt-poll';
|
|
143
147
|
/**
|
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;IAC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AC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;CAC9C;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAA;AAE7C;;;;;;GAMG;AACH,MAAM,WAAW,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;;;;;;;;;;;;;;;;;;;GAmBG;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.14.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",
|