mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 11:01:01 +00:00
Bump Substrate/Polkadot/Cumulus refs (#1295)
Substrate: 31d90c202d6df9ce3837ee55587b604619a912ba
Polkadot: 60df3c55c711c2872872d6220f98b2611340e051
Cumulus: a9630551c2
This commit is contained in:
committed by
Bastian Köcher
parent
fe34a526bb
commit
ea2d6f898d
@@ -23,13 +23,13 @@ use crate::{
|
||||
};
|
||||
|
||||
use bp_token_swap::{TokenSwap, TokenSwapCreation, TokenSwapState, TokenSwapType};
|
||||
use codec::Encode;
|
||||
use codec::{Decode, Encode};
|
||||
use frame_benchmarking::{account, benchmarks_instance_pallet};
|
||||
use frame_support::{traits::Currency, Parameter};
|
||||
use frame_system::RawOrigin;
|
||||
use sp_core::H256;
|
||||
use sp_io::hashing::blake2_256;
|
||||
use sp_runtime::traits::Bounded;
|
||||
use sp_runtime::traits::{Bounded, TrailingZeroInput};
|
||||
use sp_std::{boxed::Box, vec::Vec};
|
||||
|
||||
const SEED: u32 = 0;
|
||||
@@ -43,8 +43,8 @@ pub trait Config<I: 'static>: crate::Config<I> {
|
||||
benchmarks_instance_pallet! {
|
||||
where_clause {
|
||||
where
|
||||
BridgedAccountPublicOf<T, I>: Default + Parameter,
|
||||
BridgedAccountSignatureOf<T, I>: Default,
|
||||
BridgedAccountPublicOf<T, I>: Decode + Parameter,
|
||||
BridgedAccountSignatureOf<T, I>: Decode,
|
||||
}
|
||||
|
||||
//
|
||||
@@ -138,8 +138,8 @@ fn test_swap_hash<T: Config<I>, I: 'static>(sender: T::AccountId, is_create: boo
|
||||
/// Returns test token swap creation params.
|
||||
fn test_swap_creation<T: Config<I>, I: 'static>() -> TokenSwapCreationOf<T, I>
|
||||
where
|
||||
BridgedAccountPublicOf<T, I>: Default,
|
||||
BridgedAccountSignatureOf<T, I>: Default,
|
||||
BridgedAccountPublicOf<T, I>: Decode,
|
||||
BridgedAccountSignatureOf<T, I>: Decode,
|
||||
{
|
||||
TokenSwapCreation {
|
||||
target_public_at_bridged_chain: target_public_at_bridged_chain::<T, I>(),
|
||||
@@ -176,20 +176,22 @@ fn target_balance_to_swap<T: Config<I>, I: 'static>() -> BridgedBalanceOf<T, I>
|
||||
/// Public key of `target_account_at_bridged_chain`.
|
||||
fn target_public_at_bridged_chain<T: Config<I>, I: 'static>() -> BridgedAccountPublicOf<T, I>
|
||||
where
|
||||
BridgedAccountPublicOf<T, I>: Default,
|
||||
BridgedAccountPublicOf<T, I>: Decode,
|
||||
{
|
||||
Default::default()
|
||||
BridgedAccountPublicOf::<T, I>::decode(&mut TrailingZeroInput::zeroes())
|
||||
.expect("failed to decode `BridgedAccountPublicOf` from zeroes")
|
||||
}
|
||||
|
||||
/// Signature of `target_account_at_bridged_chain` over message.
|
||||
fn bridged_currency_transfer_signature<T: Config<I>, I: 'static>() -> BridgedAccountSignatureOf<T, I>
|
||||
where
|
||||
BridgedAccountSignatureOf<T, I>: Default,
|
||||
BridgedAccountSignatureOf<T, I>: Decode,
|
||||
{
|
||||
Default::default()
|
||||
BridgedAccountSignatureOf::<T, I>::decode(&mut TrailingZeroInput::zeroes())
|
||||
.expect("failed to decode `BridgedAccountSignatureOf` from zeroes")
|
||||
}
|
||||
|
||||
/// Account at the bridged chain that is participating in the swap.
|
||||
fn target_account_at_bridged_chain<T: Config<I>, I: 'static>() -> BridgedAccountIdOf<T, I> {
|
||||
Default::default()
|
||||
account("target_account_at_bridged_chain", 0, SEED)
|
||||
}
|
||||
|
||||
@@ -179,6 +179,7 @@ pub mod pallet {
|
||||
|
||||
#[pallet::pallet]
|
||||
#[pallet::generate_store(pub(super) trait Store)]
|
||||
#[pallet::without_storage_info]
|
||||
pub struct Pallet<T, I = ()>(PhantomData<(T, I)>);
|
||||
|
||||
#[pallet::hooks]
|
||||
|
||||
@@ -91,6 +91,7 @@ impl frame_system::Config for TestRuntime {
|
||||
type DbWeight = ();
|
||||
type SS58Prefix = ();
|
||||
type OnSetCode = ();
|
||||
type MaxConsumers = frame_support::traits::ConstU32<16>;
|
||||
}
|
||||
|
||||
frame_support::parameter_types! {
|
||||
|
||||
Reference in New Issue
Block a user