Skip to content

Commit 77a86e6

Browse files
authored
docs(primitives): add links to tx type docs (#12857)
1 parent c467317 commit 77a86e6

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

crates/primitives/src/transaction/envelope.rs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,29 @@ pub enum FoundryTxEnvelope {
2626
/// Legacy transaction type
2727
#[envelope(ty = 0)]
2828
Legacy(Signed<TxLegacy>),
29-
/// EIP-2930 transaction
29+
/// [EIP-2930] transaction.
30+
///
31+
/// [EIP-2930]: https://eips.ethereum.org/EIPS/eip-2930
3032
#[envelope(ty = 1)]
3133
Eip2930(Signed<TxEip2930>),
32-
/// EIP-1559 transaction
34+
/// [EIP-1559] transaction.
35+
///
36+
/// [EIP-1559]: https://eips.ethereum.org/EIPS/eip-1559
3337
#[envelope(ty = 2)]
3438
Eip1559(Signed<TxEip1559>),
35-
/// EIP-4844 transaction
39+
/// [EIP-4844] transaction.
40+
///
41+
/// [EIP-4844]: https://eips.ethereum.org/EIPS/eip-4844
3642
#[envelope(ty = 3)]
3743
Eip4844(Signed<TxEip4844Variant>),
38-
/// EIP-7702 transaction
44+
/// [EIP-7702] transaction.
45+
///
46+
/// [EIP-7702]: https://eips.ethereum.org/EIPS/eip-7702
3947
#[envelope(ty = 4)]
4048
Eip7702(Signed<TxEip7702>),
41-
/// op-stack deposit transaction
49+
/// OP stack deposit transaction.
50+
///
51+
/// See <https://docs.optimism.io/op-stack/bridging/deposit-flow>.
4252
#[envelope(ty = 126)]
4353
Deposit(Sealed<TxDeposit>),
4454
}

0 commit comments

Comments
 (0)