mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 13:21:01 +00:00
Add RococoBridgeHub <> WococoBridgeHub full 2 way bridge (#1663)
* Add RococoBridgeHub <> WococoBridgeHub full 2 way bridge * Use StorageMapKeyProvider instead of account_info_storage_key() Avoid duplicating storage_map_final_key() * clippy + leftovers
This commit is contained in:
committed by
Bastian Köcher
parent
786db04bbc
commit
7b74940539
@@ -19,10 +19,10 @@
|
||||
use bp_messages::{MessageNonce, Weight};
|
||||
use codec::Encode;
|
||||
use relay_substrate_client::{
|
||||
Chain, ChainBase, ChainWithMessages, ChainWithTransactions, Error as SubstrateError, SignParam,
|
||||
UnsignedTransaction,
|
||||
Chain, ChainBase, ChainWithBalances, ChainWithMessages, ChainWithTransactions,
|
||||
Error as SubstrateError, SignParam, UnsignedTransaction,
|
||||
};
|
||||
use sp_core::Pair;
|
||||
use sp_core::{storage::StorageKey, Pair};
|
||||
use sp_runtime::{generic::SignedPayload, traits::IdentifyAccount};
|
||||
use std::time::Duration;
|
||||
|
||||
@@ -65,6 +65,12 @@ impl Chain for BridgeHubWococo {
|
||||
type Call = runtime::Call;
|
||||
}
|
||||
|
||||
impl ChainWithBalances for BridgeHubWococo {
|
||||
fn account_info_storage_key(account_id: &Self::AccountId) -> StorageKey {
|
||||
bp_bridge_hub_wococo::AccountInfoStorageMapKeyProvider::final_key(account_id)
|
||||
}
|
||||
}
|
||||
|
||||
impl ChainWithTransactions for BridgeHubWococo {
|
||||
type AccountKeyPair = sp_core::sr25519::Pair;
|
||||
type SignedTransaction = runtime::UncheckedExtrinsic;
|
||||
|
||||
Reference in New Issue
Block a user