@valve-tech/wallet-adapter 0.15.0 → 0.17.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 CHANGED
@@ -6,6 +6,44 @@ 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.17.0] — 2026-05-30
10
+
11
+ ### Added
12
+
13
+ - `TrackedTx.readOnly?: boolean` — optional, additive flag that
14
+ marks a tx the consumer is only observing, not authoring (e.g.
15
+ a relayer-submitted tx whose hash arrived from outside the wallet
16
+ flow). The library does not act on the field; it's a hint for
17
+ consumer UI logic — typically: skip wiring `onSpeedUp` /
18
+ `onCancel` on `<TxFlightActions>` for these entries, since the
19
+ consumer doesn't hold the nonce slot and can't replace.
20
+ - Read sites SHOULD use the strict form `tx.readOnly === true` (not
21
+ `if (tx.readOnly)`) so the runtime check is unambiguous — pre-flag
22
+ persisted entries rehydrate with `undefined`, which is correctly
23
+ falsy under both forms, but the strict comparison makes intent
24
+ explicit at every call site.
25
+
26
+ ### Notes
27
+
28
+ - Non-breaking: the field is optional, defaults to `undefined`, and
29
+ no existing code path reads it. Persisted entries written before
30
+ this release rehydrate unchanged; the field simply remains absent
31
+ on those records.
32
+ - The driver use case is
33
+ `@valve-tech/tx-flight-react`'s `addByHash({ readOnly, submittedAt })`
34
+ for tracking relayer-submitted transactions. See that package's
35
+ v0.17.0 entry for the consumer-facing surface.
36
+
37
+ ## [0.16.0] — 2026-05-15
38
+
39
+ ### Notes
40
+
41
+ - Synchronized release — no changes to this package. Republished at
42
+ 0.16.0 alongside the rest of the toolkit; the substantive changes
43
+ are in `@valve-tech/chain-source` (adaptive polling + `Logger` +
44
+ `estimateBlockTimeMs` helper) and `@valve-tech/tx-tracker` (logger).
45
+ See the respective CHANGELOGs for details.
46
+
9
47
  ## [0.15.0] — 2026-05-14
10
48
 
11
49
  ### Notes
@@ -93,6 +93,21 @@ export interface TrackedTx {
93
93
  * instead of a flat "transaction failed".
94
94
  */
95
95
  notes?: string;
96
+ /**
97
+ * Marks a tx the consumer is only observing, not authoring — e.g. a
98
+ * relayer-submitted tx whose hash arrived from outside the wallet
99
+ * flow. The library does not act on this field; it's a hint for
100
+ * consumer UI logic (typically: skip wiring `onSpeedUp` / `onCancel`
101
+ * on `<TxFlightActions>` for these, since the consumer doesn't hold
102
+ * the nonce slot and can't replace).
103
+ *
104
+ * Optional + additive: pre-existing persisted entries rehydrate with
105
+ * `undefined`, which is correctly falsy. Read sites SHOULD use
106
+ * `tx.readOnly === true` rather than `if (tx.readOnly)` so the
107
+ * runtime check is unambiguous (the static type can't promise the
108
+ * field is present on records written before this field existed).
109
+ */
110
+ readOnly?: boolean;
96
111
  }
97
112
  /**
98
113
  * How long a stale (older than this) tracked tx may be ignored by
@@ -1 +1 @@
1
- {"version":3,"file":"tx-status.d.ts","sourceRoot":"","sources":["../src/tx-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAI/B;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,SAAS;;;;;;;;CAQZ,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA;AAItE;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,IAAc,CAAA;AAElC,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAI3B;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;CAC7B;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,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,aAAa;AAE3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAM,CAAA;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAM,CAAA"}
1
+ {"version":3,"file":"tx-status.js","sourceRoot":"","sources":["../src/tx-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,8EAA8E;AAE9E;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,SAAS,EAAU,WAAW;IAC9B,iBAAiB,EAAE,oBAAoB;IACvC,OAAO,EAAY,SAAS;IAC5B,SAAS,EAAU,WAAW;IAC9B,MAAM,EAAa,QAAQ;IAC3B,QAAQ,EAAW,UAAU;IAC7B,OAAO,EAAY,SAAS;CACpB,CAAA;AAIV,8EAA8E;AAE9E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,EAAW,CAAA;AAkElC,8EAA8E;AAE9E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA,CAAC,aAAa;AAE3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAM,CAAA;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAM,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valve-tech/wallet-adapter",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "description": "Framework-agnostic vocabulary + runtime helpers for EVM dapp wallet integration. WalletAdapter interface (sign + send), WriteHookParams full lifecycle with rich TxContext payloads (chainId + original request) on every event so consumers don't side-channel; six named hooks (onAwaitingSignature, onTransactionHash, onConfirmed, onFailed, onDropped, onReplaced) plus complementary onPhase(event) discriminated-union shape derived from the WritePhaseSteps phase-map; sendTransactionWithHooks + awaitReceiptWithHooks helpers that fire the hooks at real boundaries (with awaitReceiptWithHooks fetching the containing block once on behalf of all downstream consumers); typed WalletRejectedError + ContractRevertedError for instanceof-discriminated catch; plus TX_STATUS / TX_FLOW / TrackedTx for tx-state UI. Lets SDKs and dapps share one contract instead of each redefining it. Part of the valve-tech/evm-toolkit synchronized release line.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/valve-tech/evm-toolkit/tree/main/packages/wallet-adapter#readme",
@@ -51,7 +51,7 @@
51
51
  "prepare": "yarn build"
52
52
  },
53
53
  "dependencies": {
54
- "@valve-tech/viem-errors": "^0.15.0"
54
+ "@valve-tech/viem-errors": "^0.17.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "viem": "^2.0.0"