forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e78187
commit c79b9b8
Showing
6 changed files
with
183 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
// SPDX-FileCopyrightText: 2023 Snowfork <[email protected]> | ||
use super::*; | ||
|
||
use bp_messages::{HashedLaneId, LaneIdType}; | ||
use bp_relayers::{PayRewardFromAccount, PaymentProcedure, RewardsAccountParams}; | ||
use frame_support::{derive_impl, parameter_types, traits::ConstU32}; | ||
use hex_literal::hex; | ||
use snowbridge_beacon_primitives::{ | ||
|
@@ -11,21 +13,14 @@ use snowbridge_core::{ | |
inbound::{Log, Proof, VerificationError}, | ||
TokenId, | ||
}; | ||
use sp_core::H160; | ||
use sp_core::{ConstU128, H160}; | ||
use sp_runtime::{ | ||
traits::{IdentifyAccount, IdentityLookup, MaybeEquivalence, Verify}, | ||
BuildStorage, MultiSignature, | ||
}; | ||
use sp_std::{convert::From, default::Default}; | ||
use xcm::{latest::SendXcm, prelude::*}; | ||
use xcm_executor::traits::TransactAsset; | ||
use xcm_executor::AssetsInHolding; | ||
use sp_core::ConstU128; | ||
use bp_relayers::{ | ||
PayRewardFromAccount, RewardsAccountParams, | ||
}; | ||
use bp_relayers::PaymentProcedure; | ||
use bp_messages::{HashedLaneId, LaneIdType}; | ||
use xcm_executor::{traits::TransactAsset, AssetsInHolding}; | ||
|
||
use crate::{self as inbound_queue}; | ||
|
||
|
@@ -38,8 +33,8 @@ frame_support::construct_runtime!( | |
System: frame_system::{Pallet, Call, Storage, Event<T>}, | ||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>}, | ||
EthereumBeaconClient: snowbridge_pallet_ethereum_client::{Pallet, Call, Storage, Event<T>}, | ||
BridgeRelayers: pallet_bridge_relayers::{Pallet, Call, Storage, Event<T>}, | ||
InboundQueue: inbound_queue::{Pallet, Call, Storage, Event<T>}, | ||
BridgeRelayers: pallet_bridge_relayers::{Pallet, Call, Storage, Event<T>}, | ||
} | ||
); | ||
|
||
|
@@ -177,7 +172,7 @@ impl inbound_queue::Config for Test { | |
#[cfg(feature = "runtime-benchmarks")] | ||
type Helper = Test; | ||
type Token = Balances; | ||
type RewardLedger = (); | ||
type RewardLedger = BridgeRelayers; | ||
} | ||
|
||
parameter_types! { | ||
|
@@ -188,7 +183,6 @@ pub type TestLaneIdType = HashedLaneId; | |
|
||
pub struct TestPaymentProcedure; | ||
|
||
|
||
impl TestPaymentProcedure { | ||
pub fn rewards_account(params: RewardsAccountParams<TestLaneIdType>) -> AccountId { | ||
PayRewardFromAccount::<(), AccountId, TestLaneIdType>::rewards_account(params) | ||
|
@@ -220,7 +214,6 @@ impl pallet_bridge_relayers::Config for Test { | |
type EthereumNetwork = EthereumNetwork; | ||
type WethAddress = WethAddress; | ||
type XcmSender = MockXcmSender; | ||
|
||
type AssetTransactor = SuccessfulTransactor; | ||
type AssetHubXCMFee = ConstU128<1_000_000_000_000u128>; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.