Struct gekko::runtime::polkadot::extrinsics::balances::SetBalance [−][src]
pub struct SetBalance<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode, {
pub who: A,
pub new_free: B,
pub new_reserved: C,
}
Expand description
Set the balances of a given account.
Documentation (provided by the runtime metadata)
Set the balances of a given account.
This will alter FreeBalance
and ReservedBalance
in storage. it will
also decrease the total issuance of the system (TotalIssuance
).
If the new free or reserved balance is below the existential deposit,
it will reset the account nonce (frame_system::AccountNonce
).
The dispatch origin for this call is root
.
- Independent of the arguments.
- Contains a limited number of reads and writes.
- Base Weight:
- Creating: 27.56 µs
- Killing: 35.11 µs
- DB Weight: 1 Read, 1 Write to
who
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
who: A
Type description: <T::Lookup as StaticLookup>::Source
new_free: B
Type description: Compact<T::Balance>
new_reserved: C
Type description: Compact<T::Balance>
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 SetBalance<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
impl<A, B, C> StructuralEq for SetBalance<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
impl<A, B, C> StructuralPartialEq for SetBalance<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
Auto Trait Implementations
impl<A, B, C> RefUnwindSafe for SetBalance<A, B, C> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, B, C> Send for SetBalance<A, B, C> where
A: Send,
B: Send,
C: Send,
impl<A, B, C> Sync for SetBalance<A, B, C> where
A: Sync,
B: Sync,
C: Sync,
impl<A, B, C> Unpin for SetBalance<A, B, C> where
A: Unpin,
B: Unpin,
C: Unpin,
impl<A, B, C> UnwindSafe for SetBalance<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
.