forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add blocknumber to LockedFee for easy scanning
- Loading branch information
Showing
2 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2023 Snowfork <[email protected]> | ||
use codec::{Decode, Encode}; | ||
use codec::{Decode, Encode, MaxEncodedLen}; | ||
use ethabi::Token; | ||
use frame_support::{pallet_prelude::ConstU32, traits::ProcessMessage, BoundedVec}; | ||
use scale_info::TypeInfo; | ||
|
@@ -44,3 +44,12 @@ impl From<CommittedMessage> for Token { | |
Token::Tuple(message) | ||
} | ||
} | ||
|
||
/// Fee with block number for easy fetch the pending message on relayer side | ||
#[derive(Encode, Decode, TypeInfo, Clone, Eq, PartialEq, RuntimeDebug, MaxEncodedLen)] | ||
pub struct FeeWithBlockNumber<BlockNumber> { | ||
/// The address of the outbound queue on Ethereum that emitted this message as an event log | ||
pub fee: u128, | ||
/// A nonce for enforcing replay protection and ordering. | ||
pub block_number: BlockNumber, | ||
} |