Skip to content

Commit

Permalink
Rename pallet VerifierLightclient to EthereumLightClient (Snowfork#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeddes authored Jul 23, 2021
1 parent d99c7a9 commit 6f4e7a1
Show file tree
Hide file tree
Showing 39 changed files with 102 additions and 102 deletions.
54 changes: 27 additions & 27 deletions parachain/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion parachain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ members = [
"pallets/dispatch",
"pallets/assets",
"pallets/nft",
"pallets/verifier-lightclient",
"pallets/ethereum-light-client",
"pallets/eth-app",
"pallets/erc20-app",
"pallets/erc721-app",
Expand Down
2 changes: 1 addition & 1 deletion parachain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ cd ../relayer
build/snowbridge-relay getblock --config /tmp/relay-config.toml --format json
```

Insert the output of the `getblock` command in the `initial_header` field in the `verifier_lightclient` section of the chain spec.
Insert the output of the `getblock` command in the `initial_header` field in the `ethereum_light_client` section of the chain spec.

### Ethereum Contract Addresses

Expand Down
2 changes: 1 addition & 1 deletion parachain/pallets/basic-channel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Snowbridge Basic Channel"
version = "0.1.1"
edition = "2018"
authors = ["Snowfork <contact@snowfork.com>"]
repository = "https://github.com/Snowfork/polkadot-ethereum"
repository = "https://github.com/Snowfork/snowbridge"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
2 changes: 1 addition & 1 deletion parachain/pallets/dispatch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Snowbridge Dispatch Pallet"
version = "0.1.1"
edition = "2018"
authors = ["Snowfork <contact@snowfork.com>"]
repository = "https://github.com/Snowfork/polkadot-ethereum"
repository = "https://github.com/Snowfork/snowbridge"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "pallet-verifier-lightclient"
description = "Snowbridge Light Client Verifier Pallet"
name = "snowbridge-ethereum-light-client"
description = "Snowbridge Light Client Pallet"
version = "0.1.1"
edition = "2018"
authors = ["Snowfork <contact@snowfork.com>"]
repository = "https://github.com/Snowfork/polkadot-ethereum"
repository = "https://github.com/Snowfork/snowbridge"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! VerifierLightclient pallet benchmarking
//! EthereumLightClient pallet benchmarking
#![cfg(feature = "runtime-benchmarks")]

Expand All @@ -8,7 +8,7 @@ use frame_system::RawOrigin;
use frame_benchmarking::{benchmarks, whitelisted_caller, impl_benchmark_test_suite};

#[allow(unused_imports)]
use crate::Module as VerifierLightclient;
use crate::Module as EthereumLightClient;

mod data;

Expand Down Expand Up @@ -40,7 +40,7 @@ fn assert_header_pruned<T: Config>(hash: H256, number: u64) {
assert!(
hashes_at_number.is_none() || !hashes_at_number.unwrap().contains(&hash),
);
}
}

benchmarks! {
// Benchmark `import_header` extrinsic under worst case conditions:
Expand All @@ -63,7 +63,7 @@ benchmarks! {
let header = headers[next_tip_idx].clone();
let header_proof = data::header_proof(header.compute_hash()).unwrap();

VerifierLightclient::<T>::initialize_storage(
EthereumLightClient::<T>::initialize_storage(
headers[0..next_tip_idx].to_vec(),
U256::zero(),
descendants_until_final,
Expand Down Expand Up @@ -123,7 +123,7 @@ benchmarks! {
let mut init_headers = headers[0..next_tip_idx].to_vec();
init_headers.append(&mut vec![header_sibling]);

VerifierLightclient::<T>::initialize_storage(
EthereumLightClient::<T>::initialize_storage(
init_headers,
U256::zero(),
descendants_until_final,
Expand Down Expand Up @@ -174,7 +174,7 @@ benchmarks! {
let header = headers[next_tip_idx].clone();
let header_proof = data::header_proof(header.compute_hash()).unwrap();

VerifierLightclient::<T>::initialize_storage(
EthereumLightClient::<T>::initialize_storage(
headers[0..next_tip_idx].to_vec(),
U256::zero(),
descendants_until_final,
Expand Down Expand Up @@ -227,7 +227,7 @@ benchmarks! {
let mut init_headers = headers[0..next_tip_idx].to_vec();
init_headers.append(&mut vec![header_sibling]);

VerifierLightclient::<T>::initialize_storage(
EthereumLightClient::<T>::initialize_storage(
init_headers,
U256::zero(),
descendants_until_final,
Expand Down Expand Up @@ -261,7 +261,7 @@ benchmarks! {
}

impl_benchmark_test_suite!(
VerifierLightclient,
EthereumLightClient,
crate::mock::new_tester::<crate::mock::mock_verifier_with_pow::Test>(),
crate::mock::mock_verifier_with_pow::Test,
);
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub trait Config: system::Config {
}

decl_storage! {
trait Store for Module<T: Config> as VerifierLightclient {
trait Store for Module<T: Config> as EthereumLightClient {
/// Best known block.
BestBlock: (EthereumHeaderId, U256);
/// Range of blocks that we want to prune.
Expand Down
2 changes: 1 addition & 1 deletion parachain/pallets/incentivized-channel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Snowbridge Incentivized Channel"
version = "0.1.1"
edition = "2018"
authors = ["Snowfork <contact@snowfork.com>"]
repository = "https://github.com/Snowfork/polkadot-ethereum"
repository = "https://github.com/Snowfork/snowbridge"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
2 changes: 1 addition & 1 deletion parachain/pallets/transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Snowbridge XCM Transfer pallet"
version = "0.1.1"
edition = "2018"
authors = ["Snowfork <contact@snowfork.com>"]
repository = "https://github.com/Snowfork/polkadot-ethereum"
repository = "https://github.com/Snowfork/snowbridge"

[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion parachain/runtime/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Snowbridge Runtime Common"
version = "0.1.0"
authors = ["Snowfork <contact@snowfork.com>"]
edition = "2018"
repository = "https://github.com/Snowfork/polkadot-ethereum"
repository = "https://github.com/Snowfork/snowbridge"

[dependencies]
frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.8", default-features = false }
Expand Down
8 changes: 4 additions & 4 deletions parachain/runtime/local/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Snowbridge Local Runtime"
version = "0.1.1"
edition = "2018"
authors = ["Snowfork <contact@snowfork.com>"]
repository = "https://github.com/Snowfork/polkadot-ethereum"
repository = "https://github.com/Snowfork/snowbridge"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down Expand Up @@ -64,7 +64,7 @@ snowbridge-xcm-support = { path = "../../primitives/xcm-support", default-featur
basic-channel = { path = "../../pallets/basic-channel", package = "snowbridge-basic-channel", default-features = false }
incentivized-channel = { path = "../../pallets/incentivized-channel", package = "snowbridge-incentivized-channel", default-features = false }
dispatch = { path = "../../pallets/dispatch", package = "snowbridge-dispatch", default-features = false }
verifier-lightclient = { path = "../../pallets/verifier-lightclient", package = "pallet-verifier-lightclient", default-features = false }
ethereum-light-client = { path = "../../pallets/ethereum-light-client", package = "snowbridge-ethereum-light-client", default-features = false }
assets = { path = "../../pallets/assets", package = "snowbridge-assets", default-features = false }
nft = { path = "../../pallets/nft", package = "snowbridge-nft", default-features = false }
dot-app = { path = "../../pallets/dot-app", package = "snowbridge-dot-app", default-features = false }
Expand Down Expand Up @@ -125,7 +125,7 @@ std = [
"polkadot-parachain/std",
"basic-channel/std",
"incentivized-channel/std",
"verifier-lightclient/std",
"ethereum-light-client/std",
"assets/std",
"nft/std",
"dispatch/std",
Expand Down Expand Up @@ -158,5 +158,5 @@ runtime-benchmarks = [
"erc20-app/runtime-benchmarks",
"eth-app/runtime-benchmarks",
"incentivized-channel/runtime-benchmarks",
"verifier-lightclient/runtime-benchmarks",
"ethereum-light-client/runtime-benchmarks",
]
12 changes: 6 additions & 6 deletions parachain/runtime/local/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
pub use snowbridge_core::{AssetId, ChannelId, MessageId, ERC721TokenData};
use dispatch::EnsureEthereumAccount;

pub use verifier_lightclient::{EthereumDifficultyConfig, EthereumHeader};
pub use ethereum_light_client::{EthereumDifficultyConfig, EthereumHeader};

use polkadot_parachain::primitives::Sibling;
use xcm::v0::{MultiAsset, Junction, MultiLocation, NetworkId, Xcm, BodyId};
Expand Down Expand Up @@ -514,7 +514,7 @@ use incentivized_channel::outbound as incentivized_channel_outbound;

impl basic_channel_inbound::Config for Runtime {
type Event = Event;
type Verifier = verifier_lightclient::Module<Runtime>;
type Verifier = ethereum_light_client::Module<Runtime>;
type MessageDispatch = dispatch::Module<Runtime>;
type WeightInfo = ();
}
Expand Down Expand Up @@ -544,7 +544,7 @@ impl Convert<U256, Balance> for FeeConverter {

impl incentivized_channel_inbound::Config for Runtime {
type Event = Event;
type Verifier = verifier_lightclient::Module<Runtime>;
type Verifier = ethereum_light_client::Module<Runtime>;
type MessageDispatch = dispatch::Module<Runtime>;
type Currency = Balances;
type SourceAccount = SourceAccount;
Expand Down Expand Up @@ -577,7 +577,7 @@ parameter_types! {
pub const VerifyPoW: bool = false;
}

impl verifier_lightclient::Config for Runtime {
impl ethereum_light_client::Config for Runtime {
type Event = Event;
type DescendantsUntilFinalized = DescendantsUntilFinalized;
type DifficultyConfig = DifficultyConfig;
Expand Down Expand Up @@ -667,7 +667,7 @@ construct_runtime!(
IncentivizedInboundChannel: incentivized_channel_inbound::{Pallet, Call, Config, Storage, Event} = 12,
IncentivizedOutboundChannel: incentivized_channel_outbound::{Pallet, Config<T>, Storage, Event} = 13,
Dispatch: dispatch::{Pallet, Call, Storage, Event<T>, Origin} = 14,
VerifierLightclient: verifier_lightclient::{Pallet, Call, Storage, Event, Config} = 15,
EthereumLightClient: ethereum_light_client::{Pallet, Call, Storage, Event, Config} = 15,
Assets: assets::{Pallet, Call, Config<T>, Storage, Event<T>} = 16,
NFT: nft::{Pallet, Call, Config<T>, Storage} = 24,

Expand Down Expand Up @@ -858,7 +858,7 @@ impl_runtime_apis! {
add_benchmark!(params, batches, pallet_collective, LocalCouncil);
add_benchmark!(params, batches, pallet_timestamp, Timestamp);
add_benchmark!(params, batches, pallet_utility, Utility);
add_benchmark!(params, batches, verifier_lightclient, VerifierLightclient);
add_benchmark!(params, batches, ethereum_light_client, EthereumLightClient);
add_benchmark!(params, batches, assets, Assets);
add_benchmark!(params, batches, basic_channel::inbound, BasicInboundChannel);
add_benchmark!(params, batches, basic_channel::outbound, BasicOutboundChannel);
Expand Down
8 changes: 4 additions & 4 deletions parachain/runtime/rococo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Snowbridge Rococo Runtime"
version = "0.1.1"
edition = "2018"
authors = ["Snowfork <contact@snowfork.com>"]
repository = "https://github.com/Snowfork/polkadot-ethereum"
repository = "https://github.com/Snowfork/snowbridge"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down Expand Up @@ -64,7 +64,7 @@ snowbridge-xcm-support = { path = "../../primitives/xcm-support", default-featur
basic-channel = { path = "../../pallets/basic-channel", package = "snowbridge-basic-channel", default-features = false }
incentivized-channel = { path = "../../pallets/incentivized-channel", package = "snowbridge-incentivized-channel", default-features = false }
dispatch = { path = "../../pallets/dispatch", package = "snowbridge-dispatch", default-features = false }
verifier-lightclient = { path = "../../pallets/verifier-lightclient", package = "pallet-verifier-lightclient", default-features = false }
ethereum-light-client = { path = "../../pallets/ethereum-light-client", package = "snowbridge-ethereum-light-client", default-features = false }
assets = { path = "../../pallets/assets", package = "snowbridge-assets", default-features = false }
nft = { path = "../../pallets/nft", package = "snowbridge-nft", default-features = false }
dot-app = { path = "../../pallets/dot-app", package = "snowbridge-dot-app", default-features = false }
Expand Down Expand Up @@ -125,7 +125,7 @@ std = [
"polkadot-parachain/std",
"basic-channel/std",
"incentivized-channel/std",
"verifier-lightclient/std",
"ethereum-light-client/std",
"assets/std",
"nft/std",
"dispatch/std",
Expand Down Expand Up @@ -158,5 +158,5 @@ runtime-benchmarks = [
"erc20-app/runtime-benchmarks",
"eth-app/runtime-benchmarks",
"incentivized-channel/runtime-benchmarks",
"verifier-lightclient/runtime-benchmarks",
"ethereum-light-client/runtime-benchmarks",
]
Loading

0 comments on commit 6f4e7a1

Please sign in to comment.