mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 12:11:09 +00:00
Move the bounds from where to trait definition. (#4044)
This commit is contained in:
committed by
Gavin Wood
parent
3d4bee6cd6
commit
309f694f4f
@@ -59,7 +59,7 @@ impl<Public, Signature, AppPublic> Signer<Public, Signature> for AppPublic where
|
|||||||
/// Creates runtime-specific signed transaction.
|
/// Creates runtime-specific signed transaction.
|
||||||
pub trait CreateTransaction<T: crate::Trait, Extrinsic: ExtrinsicT> {
|
pub trait CreateTransaction<T: crate::Trait, Extrinsic: ExtrinsicT> {
|
||||||
/// A `Public` key representing a particular `AccountId`.
|
/// A `Public` key representing a particular `AccountId`.
|
||||||
type Public;
|
type Public: IdentifyAccount<AccountId=T::AccountId> + Clone;
|
||||||
/// A `Signature` generated by the `Signer`.
|
/// A `Signature` generated by the `Signer`.
|
||||||
type Signature;
|
type Signature;
|
||||||
|
|
||||||
@@ -85,10 +85,7 @@ type PublicOf<T, Call, X> = <
|
|||||||
>::Public;
|
>::Public;
|
||||||
|
|
||||||
/// A trait to sign and submit transactions in offchain calls.
|
/// A trait to sign and submit transactions in offchain calls.
|
||||||
pub trait SubmitSignedTransaction<T: crate::Trait, Call>
|
pub trait SubmitSignedTransaction<T: crate::Trait, Call> {
|
||||||
where
|
|
||||||
PublicOf<T, Call, Self>: IdentifyAccount<AccountId=T::AccountId> + Clone,
|
|
||||||
{
|
|
||||||
/// Unchecked extrinsic type.
|
/// Unchecked extrinsic type.
|
||||||
type Extrinsic: ExtrinsicT<Call=Call> + codec::Encode;
|
type Extrinsic: ExtrinsicT<Call=Call> + codec::Encode;
|
||||||
|
|
||||||
@@ -152,7 +149,6 @@ impl<T, E, S, C, Call> SubmitSignedTransaction<T, Call> for TransactionSubmitter
|
|||||||
C: CreateTransaction<T, E>,
|
C: CreateTransaction<T, E>,
|
||||||
S: Signer<<C as CreateTransaction<T, E>>::Public, <C as CreateTransaction<T, E>>::Signature>,
|
S: Signer<<C as CreateTransaction<T, E>>::Public, <C as CreateTransaction<T, E>>::Signature>,
|
||||||
E: ExtrinsicT<Call=Call> + codec::Encode,
|
E: ExtrinsicT<Call=Call> + codec::Encode,
|
||||||
<C as CreateTransaction<T, E>>::Public: IdentifyAccount<AccountId=T::AccountId> + Clone,
|
|
||||||
{
|
{
|
||||||
type Extrinsic = E;
|
type Extrinsic = E;
|
||||||
type CreateTransaction = C;
|
type CreateTransaction = C;
|
||||||
|
|||||||
Reference in New Issue
Block a user