mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +00:00
extract out all primitives
This commit is contained in:
@@ -44,26 +44,6 @@ pub struct ValidationResult {
|
||||
pub balance_uploads: Vec<BalanceUpload>,
|
||||
}
|
||||
|
||||
// TODO [ToDr] This shouldn't be here!
|
||||
/// Validator logic.
|
||||
pub trait Validator {
|
||||
/// Validation error.
|
||||
type Error: ::std::error::Error;
|
||||
|
||||
/// Validates if the provided proof holds given a current ingress queue.
|
||||
///
|
||||
/// In case of success produces egress posts.
|
||||
fn validate(
|
||||
&self,
|
||||
code: &[u8],
|
||||
// TODO [ToDr] actually consolidate
|
||||
consolidated_ingress: &[(u64, Vec<parachain::Message>)],
|
||||
balance_downloads: &[BalanceDownload],
|
||||
block_data: ¶chain::BlockData,
|
||||
previous_head_data: ¶chain::HeadData,
|
||||
) -> Result<ValidationResult, Self::Error>;
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user