mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 01:41:03 +00:00
Move some associated types from relay_substrate_client::Chain to bp_runtime::Chain (#1087)
* move some associated types from relay_substrate_client::Chain to bp_runtime::Chain * dummy commit * Revert "dummy commit" This reverts commit 81bc64aa092df115a7c68e7bb7ca5e83ec31fd20.
This commit is contained in:
committed by
Bastian Köcher
parent
1df7076c4f
commit
7369ff9d70
@@ -31,8 +31,8 @@ pub type AccountId = u64;
|
||||
pub type Balance = u64;
|
||||
pub type Block = frame_system::mocking::MockBlock<TestRuntime>;
|
||||
pub type BridgedAccountId = u64;
|
||||
pub type BridgedAccountPublic = u64;
|
||||
pub type BridgedAccountSignature = u64;
|
||||
pub type BridgedAccountPublic = sp_runtime::testing::UintAuthorityId;
|
||||
pub type BridgedAccountSignature = sp_runtime::testing::TestSignature;
|
||||
pub type BridgedBalance = u64;
|
||||
pub type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<TestRuntime>;
|
||||
|
||||
@@ -122,13 +122,24 @@ impl pallet_bridge_token_swap::Config for TestRuntime {
|
||||
type ThisCurrency = pallet_balances::Pallet<TestRuntime>;
|
||||
type FromSwapToThisAccountIdConverter = TestAccountConverter;
|
||||
|
||||
type BridgedBalance = BridgedBalance;
|
||||
type BridgedAccountId = BridgedAccountId;
|
||||
type BridgedAccountPublic = BridgedAccountPublic;
|
||||
type BridgedAccountSignature = BridgedAccountSignature;
|
||||
type BridgedChain = BridgedChain;
|
||||
type FromBridgedToThisAccountIdConverter = TestAccountConverter;
|
||||
}
|
||||
|
||||
pub struct BridgedChain;
|
||||
|
||||
impl bp_runtime::Chain for BridgedChain {
|
||||
type BlockNumber = u64;
|
||||
type Hash = H256;
|
||||
type Hasher = BlakeTwo256;
|
||||
type Header = sp_runtime::generic::Header<u64, BlakeTwo256>;
|
||||
|
||||
type AccountId = BridgedAccountId;
|
||||
type Balance = BridgedBalance;
|
||||
type Index = u64;
|
||||
type Signature = BridgedAccountSignature;
|
||||
}
|
||||
|
||||
pub struct TestMessagesBridge;
|
||||
|
||||
impl MessagesBridge<AccountId, Balance, MessagePayloadOf<TestRuntime, ()>> for TestMessagesBridge {
|
||||
|
||||
Reference in New Issue
Block a user