Skip to content

Commit 65c5248

Browse files
Snowbridge - Ethereum Client - Public storage items (#4501)
Changes the Ethereum client storage scope to public, so it can be set in a migration. When merged, we should backport to the all other release branches: - [ ] release-crates-io-v1.7.0 - patch release the fellows BridgeHubs runtimes #4504 - [ ] release-crates-io-v1.8.0 - #4505 - [ ] release-crates-io-v1.9.0 - #4506 - [ ] release-crates-io-v1.10.0 - #4507 - [ ] release-crates-io-v1.11.0 - #4508 - [ ] release-crates-io-v1.12.0 (commit soon)
1 parent ca0fb0d commit 65c5248

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

bridges/snowbridge/pallets/ethereum-client/src/lib.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,41 +139,39 @@ pub mod pallet {
139139
/// Latest imported checkpoint root
140140
#[pallet::storage]
141141
#[pallet::getter(fn initial_checkpoint_root)]
142-
pub(super) type InitialCheckpointRoot<T: Config> = StorageValue<_, H256, ValueQuery>;
142+
pub type InitialCheckpointRoot<T: Config> = StorageValue<_, H256, ValueQuery>;
143143

144144
/// Latest imported finalized block root
145145
#[pallet::storage]
146146
#[pallet::getter(fn latest_finalized_block_root)]
147-
pub(super) type LatestFinalizedBlockRoot<T: Config> = StorageValue<_, H256, ValueQuery>;
147+
pub type LatestFinalizedBlockRoot<T: Config> = StorageValue<_, H256, ValueQuery>;
148148

149149
/// Beacon state by finalized block root
150150
#[pallet::storage]
151151
#[pallet::getter(fn finalized_beacon_state)]
152-
pub(super) type FinalizedBeaconState<T: Config> =
152+
pub type FinalizedBeaconState<T: Config> =
153153
StorageMap<_, Identity, H256, CompactBeaconState, OptionQuery>;
154154

155155
/// Finalized Headers: Current position in ring buffer
156156
#[pallet::storage]
157-
pub(crate) type FinalizedBeaconStateIndex<T: Config> = StorageValue<_, u32, ValueQuery>;
157+
pub type FinalizedBeaconStateIndex<T: Config> = StorageValue<_, u32, ValueQuery>;
158158

159159
/// Finalized Headers: Mapping of ring buffer index to a pruning candidate
160160
#[pallet::storage]
161-
pub(crate) type FinalizedBeaconStateMapping<T: Config> =
161+
pub type FinalizedBeaconStateMapping<T: Config> =
162162
StorageMap<_, Identity, u32, H256, ValueQuery>;
163163

164164
#[pallet::storage]
165165
#[pallet::getter(fn validators_root)]
166-
pub(super) type ValidatorsRoot<T: Config> = StorageValue<_, H256, ValueQuery>;
166+
pub type ValidatorsRoot<T: Config> = StorageValue<_, H256, ValueQuery>;
167167

168168
/// Sync committee for current period
169169
#[pallet::storage]
170-
pub(super) type CurrentSyncCommittee<T: Config> =
171-
StorageValue<_, SyncCommitteePrepared, ValueQuery>;
170+
pub type CurrentSyncCommittee<T: Config> = StorageValue<_, SyncCommitteePrepared, ValueQuery>;
172171

173172
/// Sync committee for next period
174173
#[pallet::storage]
175-
pub(super) type NextSyncCommittee<T: Config> =
176-
StorageValue<_, SyncCommitteePrepared, ValueQuery>;
174+
pub type NextSyncCommittee<T: Config> = StorageValue<_, SyncCommitteePrepared, ValueQuery>;
177175

178176
/// The current operating mode of the pallet.
179177
#[pallet::storage]

bridges/snowbridge/pallets/ethereum-client/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub type NextSyncCommitteeUpdate = primitives::NextSyncCommitteeUpdate<SC_SIZE>;
1818
pub use primitives::{AncestryProof, ExecutionProof};
1919

2020
/// FinalizedState ring buffer implementation
21-
pub(crate) type FinalizedBeaconStateBuffer<T> = RingBufferMapImpl<
21+
pub type FinalizedBeaconStateBuffer<T> = RingBufferMapImpl<
2222
u32,
2323
crate::MaxFinalizedHeadersToKeep<T>,
2424
crate::FinalizedBeaconStateIndex<T>,

0 commit comments

Comments
 (0)