mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 02:51:08 +00:00
Move justification code to primitives crate (#640)
* Move justification module to header-chain primitives crate * Get justification module compiling in new location * Get justification module tests compiling * Use justification code from `header-chain` crate Mostly compiles, having issues with std/test feature flags across crates. * Move some code around * Move justification tests to integration testing crate * Add `test-utils` crate * Remove tests and test-helper module from justification code * Use `test-utils` in Substrate bridge pallet tests * Remove `sp-keyring` related code from `pallet-substrate-bridge` * Remove `helpers` module from `pallet-substrate-bridge` * Add some documentation * Add more documentation * Fix typo Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com> Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
This commit is contained in:
committed by
Bastian Köcher
parent
0280400e30
commit
c6df9924e4
@@ -45,10 +45,8 @@ use sp_trie::StorageProof;
|
||||
// Re-export since the node uses these when configuring genesis
|
||||
pub use storage::{AuthoritySet, InitializationData, ScheduledChange};
|
||||
|
||||
pub use justification::decode_justification_target;
|
||||
pub use storage_proof::StorageProofChecker;
|
||||
|
||||
mod justification;
|
||||
mod storage;
|
||||
mod storage_proof;
|
||||
mod verifier;
|
||||
@@ -622,8 +620,8 @@ impl<T: Config> BridgeStorage for PalletStorage<T> {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::mock::helpers::{authority_list, test_header, unfinalized_header};
|
||||
use crate::mock::{run_test, Origin, TestRuntime};
|
||||
use crate::mock::{run_test, test_header, unfinalized_header, Origin, TestRuntime};
|
||||
use bp_test_utils::authority_list;
|
||||
use frame_support::{assert_noop, assert_ok};
|
||||
use sp_runtime::DispatchError;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user