Struct gekko::runtime::polkadot::extrinsics::session::SetKeys [−][src]
pub struct SetKeys<A, B> where
A: Encode + Decode,
B: Encode + Decode, {
pub keys: A,
pub proof: B,
}
Expand description
Sets the session key(s) of the function caller to keys
.
Documentation (provided by the runtime metadata)
Sets the session key(s) of the function caller to keys
.
Allows an account to set its session key prior to becoming a validator.
This doesn’t take effect until the next session.
The dispatch origin of this function must be signed.
- Complexity:
O(1)
Actual cost depends on the number of length ofT::Keys::key_ids()
which is fixed. - DbReads:
origin account
,T::ValidatorIdOf
,NextKeys
- DbWrites:
origin account
,NextKeys
- DbReads per key id:
KeyOwner
- DbWrites per key id:
KeyOwner
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
keys: A
Type description: T::Keys
proof: B
Type description: Vec<u8>
Trait Implementations
Auto Trait Implementations
impl<A, B> RefUnwindSafe for SetKeys<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> UnwindSafe for SetKeys<A, B> where
A: UnwindSafe,
B: 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
.