Trait polkadot_service::runtime_traits::Extrinsic
source ยท pub trait Extrinsic: Sized {
type Call: TypeInfo;
type SignaturePayload: SignaturePayload;
// Provided methods
fn is_signed(&self) -> Option<bool> { ... }
fn is_bare(&self) -> bool { ... }
fn new(
_call: Self::Call,
_signed_data: Option<Self::SignaturePayload>,
) -> Option<Self> { ... }
}
๐Deprecated: Use
ExtrinsicLike
along with the CreateTransaction
trait family insteadExpand description
Something that acts like an Extrinsic
.
Required Associated Typesยง
sourcetype Call: TypeInfo
๐Deprecated: Use ExtrinsicLike
along with the CreateTransaction
trait family instead
type Call: TypeInfo
ExtrinsicLike
along with the CreateTransaction
trait family insteadThe function call.
sourcetype SignaturePayload: SignaturePayload
๐Deprecated: Use ExtrinsicLike
along with the CreateTransaction
trait family instead
type SignaturePayload: SignaturePayload
ExtrinsicLike
along with the CreateTransaction
trait family insteadThe payload we carry for signed extrinsics.
Usually it will contain a Signature
and
may include some additional data that are specific to signed
extrinsics.
Provided Methodsยง
sourcefn is_signed(&self) -> Option<bool>
๐Deprecated: Use ExtrinsicLike
along with the CreateTransaction
trait family instead
fn is_signed(&self) -> Option<bool>
ExtrinsicLike
along with the CreateTransaction
trait family insteadIs this Extrinsic
signed?
If no information are available about signed/unsigned, None
should be returned.
sourcefn is_bare(&self) -> bool
๐Deprecated: Use ExtrinsicLike
along with the CreateTransaction
trait family instead
fn is_bare(&self) -> bool
ExtrinsicLike
along with the CreateTransaction
trait family insteadReturns true
if this Extrinsic
is bare.
sourcefn new(
_call: Self::Call,
_signed_data: Option<Self::SignaturePayload>,
) -> Option<Self>
๐Deprecated: Use ExtrinsicLike
along with the CreateTransaction
trait family instead
fn new( _call: Self::Call, _signed_data: Option<Self::SignaturePayload>, ) -> Option<Self>
ExtrinsicLike
along with the CreateTransaction
trait family insteadCreate a new old-school extrinsic, either a bare extrinsic if _signed_data
is None
or
a signed transaction is it is Some
.
Object Safetyยง
This trait is not object safe.