aztec_fee/
types.rs

1use aztec_core::types::Fr;
2use serde::{Deserialize, Serialize};
3
4/// Data required to claim bridged Fee Juice on L2.
5///
6/// This is produced by the L1 Fee Juice portal when a deposit is made,
7/// and consumed by [`FeeJuicePaymentMethodWithClaim`](crate::FeeJuicePaymentMethodWithClaim)
8/// to claim the deposit in the same transaction as fee payment.
9#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
10pub struct L2AmountClaim {
11    /// Amount of Fee Juice being claimed (u128 in Noir).
12    pub claim_amount: u128,
13    /// Secret used to consume the L1-to-L2 message.
14    pub claim_secret: Fr,
15    /// Index of the message leaf in the L1-to-L2 message tree.
16    pub message_leaf_index: u64,
17}