Skip to content

Commit 6b1b088

Browse files
Align Public Functions between Bulletin and SDK
1 parent 89a9e59 commit 6b1b088

File tree

1 file changed

+13
-1
lines changed
  • pallets/transaction-storage/src

1 file changed

+13
-1
lines changed

pallets/transaction-storage/src/lib.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use polkadot_sdk_frame::{
4141
deps::{sp_core::sp_std::prelude::*, *},
4242
prelude::*,
4343
traits::{
44-
fungible::{Balanced, Credit, Inspect, Mutate, MutateHold},
44+
fungible::{hold::Balanced, Credit, Inspect, Mutate, MutateHold},
4545
parameter_types,
4646
},
4747
};
@@ -884,6 +884,16 @@ pub mod pallet {
884884
Self::check_signed(who, call, CheckContext::PreDispatch).map(|_| ())
885885
}
886886

887+
/// Get ByteFee storage information from the outside of this pallet.
888+
pub fn byte_fee() -> Option<BalanceOf<T>> {
889+
ByteFee::<T>::get()
890+
}
891+
892+
/// Get EntryFee storage information from the outside of this pallet.
893+
pub fn entry_fee() -> Option<BalanceOf<T>> {
894+
EntryFee::<T>::get()
895+
}
896+
887897
/// Get RetentionPeriod storage information from the outside of this pallet.
888898
pub fn retention_period() -> BlockNumberFor<T> {
889899
RetentionPeriod::<T>::get()
@@ -1094,6 +1104,8 @@ pub mod pallet {
10941104
}))
10951105
}
10961106

1107+
/// Verifies that the provided proof corresponds to a randomly selected chunk from a list of
1108+
/// transactions.
10971109
pub(crate) fn verify_chunk_proof(
10981110
proof: TransactionStorageProof,
10991111
random_hash: &[u8],

0 commit comments

Comments
 (0)