Removes Snowbridge parachain directory (#3186)

Removes the `bridges/snowbridge/parachain` directory and moves
everything up to under `snowbridge` directly. We are cleaning up our
local dev env after merging our crates into the polkadot-sdk.

---------

Co-authored-by: claravanstaden <Cats 4 life!>
This commit is contained in:
Clara van Staden
2024-02-02 19:08:36 +02:00
committed by GitHub
parent 700d5f85b7
commit 2ab3f03f0b
122 changed files with 199 additions and 529 deletions
@@ -0,0 +1,19 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
use sp_std::{convert::TryInto, prelude::*};
use ssz_rs::{Bitvector, Deserialize};
pub fn decompress_sync_committee_bits<
const SYNC_COMMITTEE_SIZE: usize,
const SYNC_COMMITTEE_BITS_SIZE: usize,
>(
input: [u8; SYNC_COMMITTEE_BITS_SIZE],
) -> [u8; SYNC_COMMITTEE_SIZE] {
Bitvector::<{ SYNC_COMMITTEE_SIZE }>::deserialize(&input)
.expect("checked statically; qed")
.iter()
.map(|bit| u8::from(bit == true))
.collect::<Vec<u8>>()
.try_into()
.expect("checked statically; qed")
}