Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ itertools = { version = "0.14" }
trybuild = { version = "1.0" }
lru = { version = "0.16" }


# ETH
# TODO 3.0.0 has issues with some transitive dependency enabling STD in non-STD environment
ethabi-decode = { version = "2.0.0", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ sp-runtime-interface = { workspace = true, optional = true }
sp-storage = { workspace = true, optional = true }
sp-trie = { workspace = true, optional = true }


[dev-dependencies]
hex-literal = { workspace = true }
rand = { workspace = true }
Expand Down
20 changes: 0 additions & 20 deletions core/src/bench_randomness.rs

This file was deleted.

1 change: 0 additions & 1 deletion core/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
pub const DA_DISPATCH_RATIO: u8 = 100;

const_assert!(BLOCK_CHUNK_SIZE.get() > 0);
pub const BLOCK_CHUNK_SIZE: NonZeroU32 = unsafe { NonZeroU32::new_unchecked(32) };

Check warning on line 13 in core/src/constants.rs

View workflow job for this annotation

GitHub Actions / build_and_test

`NonZeroU32::new()` and `Option::unwrap()` can be safely used in a `const` context

/// Money matters.
pub mod currency {

pub type Balance = u128;

/// `AVAIL` has 18 decimal positions.
Expand Down
154 changes: 0 additions & 154 deletions core/src/da_block.rs

This file was deleted.

5 changes: 2 additions & 3 deletions core/src/data_proof.rs → core/src/data_proof/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pub mod message;

use bounded_collections::BoundedVec;
use bounded_collections::ConstU32;
use codec::{Decode, Encode};
Expand All @@ -17,8 +19,6 @@
/// Maximum size of data allowed in the bridge
pub type BoundedData = BoundedVec<u8, ConstU32<BOUNDED_DATA_MAX_LENGTH>>;

pub mod message;

pub use message::{AddressedMessage, Message, MessageType};

/// Unique Tx identifier based on its block number and index.
Expand Down Expand Up @@ -67,7 +67,6 @@
pub bridge_root: H256,
}

#[cfg(feature = "runtime")]
impl TxDataRoots {
pub fn new(submitted: H256, bridged: H256) -> Self {
use crate::from_substrate::keccak_256;
Expand Down Expand Up @@ -122,8 +121,8 @@
roots,
leaf,
proof: m_proof.proof,
number_of_leaves: m_proof.number_of_leaves as u32,

Check warning on line 124 in core/src/data_proof/mod.rs

View workflow job for this annotation

GitHub Actions / build_and_test

casting to the same type is unnecessary (`u32` -> `u32`)
leaf_index: m_proof.leaf_index as u32,

Check warning on line 125 in core/src/data_proof/mod.rs

View workflow job for this annotation

GitHub Actions / build_and_test

casting to the same type is unnecessary (`u32` -> `u32`)
}
}

Expand Down
Loading
Loading