Skip to content

Commit

Permalink
clean imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Leouarz committed Jul 31, 2023
1 parent 6959b22 commit ffd13dc
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion fuzzing/src/build_commitment_fuzz.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use afl;
use da_primitives::asdr::AppExtrinsic;
use avail_core::AppExtrinsic;
use hex_literal::hex;

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion fuzzing/src/build_proof_fuzz.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use afl;
use da_primitives::asdr::AppExtrinsic;
use avail_core::AppExtrinsic;
use hex_literal::hex;

fn main() {
Expand Down
6 changes: 3 additions & 3 deletions pallets/mocked_runtime/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use da_primitives::{BlockLengthColumns, BlockLengthRows, NORMAL_DISPATCH_RATIO};
use avail_core::{BlockLengthColumns, BlockLengthRows, NORMAL_DISPATCH_RATIO};
use frame_support::{
construct_runtime, parameter_types,
traits::Randomness,
Expand All @@ -25,7 +25,7 @@ pub type AccountId = u64;
pub type Balance = u128;
pub type BlockNumber = u32;
pub type Moment = u64;
pub type Header = da_primitives::Header<BlockNumber, BlakeTwo256>;
pub type Header = avail_core::header::Header<BlockNumber, BlakeTwo256>;
pub type Signature = sp_runtime::testing::sr25519::Signature;
pub type TestXt = test_xt::TestXt<RuntimeCall, SignedExtra>;
pub type UncheckedExtrinsic = TestXt;
Expand Down Expand Up @@ -140,7 +140,7 @@ impl frame_system::Config for Runtime {
type DbWeight = ();
type Hash = sp_core::H256;
type Hashing = BlakeTwo256;
type Header = da_primitives::Header<Self::BlockNumber, Self::Hashing>;
type Header = avail_core::header::Header<Self::BlockNumber, Self::Hashing>;
type HeaderExtensionBuilder = frame_system::header_builder::da::HeaderExtensionBuilder<Runtime>;
type Index = u64;
type Lookup = IdentityLookup<u64>;
Expand Down
2 changes: 1 addition & 1 deletion pallets/mocked_runtime/src/test_xt.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use codec::{Codec, Decode, Encode};
use da_primitives::asdr::{AppId, GetAppId};
use avail_core::{AppId, traits::GetAppId};
use derive_more::From;
use frame_support::{dispatch, traits::ExtrinsicCall};
use scale_info::TypeInfo;
Expand Down
2 changes: 1 addition & 1 deletion pallets/system/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use avail_core::header::Header as DaHeader;
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use da_primitives::Header as DaHeader;
use frame_support::{
traits::{ConstU32, ConstU64},
weights::Weight,
Expand Down
4 changes: 2 additions & 2 deletions pallets/system/src/data_root_builder.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use codec::Decode;
use da_primitives::asdr::AppExtrinsic;
use avail_core::AppExtrinsic;
use frame_support::traits::ExtrinsicCall;
use sp_core::H256;
use sp_runtime::traits::Extrinsic;
Expand Down Expand Up @@ -119,7 +119,7 @@ impl<F: DataRootFilter> DataRootBuilder<F> for F {}

#[cfg(all(test, feature = "force-rs-merkle"))]
mod test {
use da_primitives::asdr::AppId;
use avail_core::AppId;
use hex_literal::hex;
use rs_merkle::{algorithms::Sha256, Hasher, MerkleTree};
use test_case::test_case;
Expand Down
2 changes: 1 addition & 1 deletion pallets/system/src/submitted_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ where

#[cfg(all(test, feature = "force-rs-merkle"))]
mod test {
use da_primitives::asdr::AppId;
use avail_core::AppId;
use hex_literal::hex;
use rs_merkle::{algorithms::Sha256, Hasher, MerkleTree};
use test_case::test_case;
Expand Down

0 comments on commit ffd13dc

Please sign in to comment.