Struct gekko::runtime::kusama::extrinsics::recovery::CreateRecovery [−][src]
pub struct CreateRecovery<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode, {
pub friends: A,
pub threshold: B,
pub delay_period: C,
}
Expand description
Create a recovery configuration for your account. This makes your account recoverable.
Documentation (provided by the runtime metadata)
Create a recovery configuration for your account. This makes your account recoverable.
Payment: ConfigDepositBase
+ FriendDepositFactor
* #_of_friends balance
will be reserved for storing the recovery configuration. This deposit is returned
in full when the user calls remove_recovery
.
The dispatch origin for this call must be Signed.
Parameters:
friends
: A list of friends you trust to vouch for recovery attempts. Should be ordered and contain no duplicate values.threshold
: The number of friends that must vouch for a recovery attempt before the account can be recovered. Should be less than or equal to the length of the list of friends.delay_period
: The number of blocks after a recovery attempt is initialized that needs to pass before the account can be recovered.
- Key: F (len of friends)
- One storage read to check that account is not already recoverable. O(1).
- A check that the friends list is sorted and unique. O(F)
- One currency reserve operation. O(X)
- One storage write. O(1). Codec O(F).
- One event.
Total Complexity: O(F + X)
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
friends: A
Type description: Vec<T::AccountId>
threshold: B
Type description: u16
delay_period: C
Type description: T::BlockNumber
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<A: Eq, B: Eq, C: Eq> Eq for CreateRecovery<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
impl<A, B, C> StructuralEq for CreateRecovery<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
impl<A, B, C> StructuralPartialEq for CreateRecovery<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
Auto Trait Implementations
impl<A, B, C> RefUnwindSafe for CreateRecovery<A, B, C> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, B, C> Send for CreateRecovery<A, B, C> where
A: Send,
B: Send,
C: Send,
impl<A, B, C> Sync for CreateRecovery<A, B, C> where
A: Sync,
B: Sync,
C: Sync,
impl<A, B, C> Unpin for CreateRecovery<A, B, C> where
A: Unpin,
B: Unpin,
C: Unpin,
impl<A, B, C> UnwindSafe for CreateRecovery<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
.