Skip to content

Conversation

@onbjerg
Copy link
Member

@onbjerg onbjerg commented Dec 17, 2025

Motivation

Upstreaming Tempo support requires us to add appropriate encoding/decoding for Tempo transactions.

Solution

Add Tempo transactions to FoundryTxEnvelope and related types. This will affect cast.

Note that this largely ignores the implementation in FoundryTransactionRequest since this is not needed for base-level functionality.

This also stubs out Anvil support/leaves out the impl details of that since @zerosnacks is working on it + it would blow up the PR in scope.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes
@onbjerg onbjerg added the T-feature Type: feature label Dec 17, 2025
@onbjerg onbjerg marked this pull request as ready for review December 19, 2025 14:32
@onbjerg onbjerg marked this pull request as draft December 19, 2025 14:38
@onbjerg onbjerg force-pushed the onbjerg/tempo-tx branch 3 times, most recently from 02f2ba3 to f08e112 Compare December 19, 2025 15:16
Add tests for Tempo (type 0x76) transaction encoding/decoding and receipt handling in foundry-primitives. Transaction tests (envelope.rs): - test_decode_encode_tempo_tx: Uses real testnet transaction with WebAuthn signature, verifies decode, field values, hash, round-trip encoding, and sender recovery - test_tempo_tx_type: Verifies FoundryTxType::Tempo properties Receipt tests (receipt.rs): - encode_tempo_receipt: Tests encoding with logs, round-trip decode - decode_tempo_receipt: Tests 2718 encode/decode - tempo_receipt_from_parts: Tests FoundryReceiptEnvelope::from_parts - tempo_receipt_map_logs: Tests map_logs transformation Test vector from Tempo testnet: https://explorer.testnet.tempo.xyz/tx/0x6d6d8c102064e6dee44abad2024a8b1d37959230baab80e70efbf9b0c739c4fd b
@onbjerg onbjerg marked this pull request as ready for review December 19, 2025 15:29
@onbjerg onbjerg added this pull request to the merge queue Dec 19, 2025
Merged via the queue into master with commit 59bee5e Dec 19, 2025
16 checks passed
@onbjerg onbjerg deleted the onbjerg/tempo-tx branch December 19, 2025 16:14
@github-project-automation github-project-automation bot moved this to Done in Foundry Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-feature Type: feature

3 participants