You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(tempo): expiring nonces (TIP-1009)
- Rename nonceKey: 'random' to nonceKey: 'expiring' to align with TIP-1009 terminology
- Add automatic concurrent transaction detection using event loop tick tracking
- Extract validBefore from test snapshots and add direct assertions
- Refactor concurrent detection into separate module (internal/concurrent.ts)
- Update documentation with explanation and link to TIP-1009
- Fix validator.test.ts to use random addresses to avoid ValidatorAlreadyExists errors
BREAKING CHANGE: nonceKey: 'random' renamed to nonceKey: 'expiring'
Amp-Thread-ID: https://ampcode.com/threads/T-019c0606-05cd-7147-8ed8-c9c6c50e208c
Co-authored-by: Amp <amp@ampcode.com>
* Update shiny-nonces-expire.md
* chore: fmt
* chore: tweaks
* u
* chore: u
* chore: up
* chore: up
* chore: up
---------
Co-authored-by: Amp <amp@ampcode.com>
**Breaking (`viem/tempo`):** Renamed `nonceKey: 'random'` to `nonceKey: 'expiring'` to align with [TIP-1009](https://docs.tempo.xyz/protocol/tips/tip-1009) terminology.
6
+
7
+
TIP-1009 defines "expiring nonces" as time-based replay protection using `validBefore` timestamps. The name `'expiring'` better describes the mechanism than `'random'`.
Copy file name to clipboardExpand all lines: site/snippets/tempo/write-parameters.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,9 @@ Nonce for the transaction.
46
46
47
47
### nonceKey (optional)
48
48
49
-
-**Type:**`'random' | bigint`
49
+
-**Type:**`'expiring' | bigint`
50
50
51
-
Nonce key for the transaction. Use `'random'` to generate a random nonce key.
51
+
Nonce key for the transaction. Use `'expiring'` to use [expiring nonces (TIP-1009)](https://docs.tempo.xyz/protocol/tips/tip-1009), which enables concurrent transaction submission without nonce ordering.
0 commit comments