Skip to content

Commit

Permalink
docs for l1 handler tx
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed May 20, 2024
1 parent 2440af6 commit 477e78e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/katana/primitives/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,16 +348,25 @@ impl DeclareTx {
}
}

/// The transaction type for L1 handler invocation.

Check warning on line 351 in crates/katana/primitives/src/transaction.rs

View check run for this annotation

Codecov / codecov/patch

crates/katana/primitives/src/transaction.rs#L351

Added line #L351 was not covered by tests
#[derive(Debug, Clone, Default, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct L1HandlerTx {
/// The L1 to L2 message nonce.
pub nonce: Nonce,
/// The chain id.
pub chain_id: ChainId,
/// Amount of fee paid on L1.
pub paid_fee_on_l1: u128,
/// Transaction version.
pub version: FieldElement,
/// L1 to L2 message hash.
pub message_hash: B256,
/// The input to the L1 handler function.
pub calldata: Vec<FieldElement>,
/// Contract address of the L1 handler.

Check warning on line 367 in crates/katana/primitives/src/transaction.rs

View check run for this annotation

Codecov / codecov/patch

crates/katana/primitives/src/transaction.rs#L367

Added line #L367 was not covered by tests
pub contract_address: ContractAddress,
/// The L1 handler function selector.

Check warning on line 369 in crates/katana/primitives/src/transaction.rs

View check run for this annotation

Codecov / codecov/patch

crates/katana/primitives/src/transaction.rs#L369

Added line #L369 was not covered by tests
pub entry_point_selector: FieldElement,
}

Expand Down

0 comments on commit 477e78e

Please sign in to comment.