Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Feb 12, 2025
1 parent bc1b359 commit e38537a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ impl pallet_ethereum_token_transfers::Config for Runtime {
type WeightInfo = crate::weights::pallet_ethereum_token_transfers::SubstrateWeight<Runtime>;
}

/// `TokenTransferMessageProcessor` is responsible for receiving and processing native tokens
/// sent from Ethereum. If the message is valid, it performs the token transfer
/// from the Ethereum sovereign account to the specified destination account.
pub struct TokenTransferMessageProcessor<T>(sp_std::marker::PhantomData<T>);
impl<T> MessageProcessor for TokenTransferMessageProcessor<T>
where
Expand Down Expand Up @@ -358,6 +361,8 @@ mod test_helpers {
}
}

/// Rewards the relayer that processed a native token transfer message
/// using the FeesAccount configured in pallet_ethereum_token_transfers
pub struct RewardThroughTreasury<T>(sp_std::marker::PhantomData<T>);

impl<T> RewardProcessor<T> for RewardThroughTreasury<T>
Expand Down

0 comments on commit e38537a

Please sign in to comment.