Struct gekko::runtime::kusama::extrinsics::registrar::Register [−][src]
pub struct Register<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode, {
pub id: A,
pub genesis_head: B,
pub validation_code: C,
}
Expand description
Register head data and validation code for a reserved Para Id.
Documentation (provided by the runtime metadata)
Register head data and validation code for a reserved Para Id.
Arguments
origin
: Must be called by aSigned
origin.id
: The para ID. Must be owned/managed by theorigin
signing account.genesis_head
: The genesis head data of the parachain/thread.validation_code
: The initial validation code of the parachain/thread.
Deposits/Fees
The origin signed account must reserve a corresponding deposit for the registration. Anything already reserved previously for this para ID is accounted for.
Events
The Registered
event is emitted in case of success.
Type Disclaimer
This library makes no assumptions about parameter types and must be specified manually as generic types. Each field contains a type description which can serve as a hint on what type is being expected, as provided by the runtime meatadata. See the common
module for common types which can be used.
Fields
id: A
Type description: ParaId
genesis_head: B
Type description: HeadData
validation_code: C
Type description: ValidationCode
Trait Implementations
impl<A: Eq, B: Eq, C: Eq> Eq for Register<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
Auto Trait Implementations
impl<A, B, C> RefUnwindSafe for Register<A, B, C> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, B, C> UnwindSafe for Register<A, B, C> where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.