Delegation class
Delegation
Constructors
-
Delegation({required String voterPubkey, required u64 stake, required u64 activationEpoch, required u64 deactivationEpoch, required f64 warmupCooldownRate})
-
const
-
Delegation.fromBorshBase64(String encoded)
-
Creates an instance of
this
class from a base-64 encoded string.
factory
-
Delegation.fromJson(Map<String, dynamic> json)
-
Creates an instance of
this
class from the constructor parameters defined in the json
object.
factory
Properties
-
activationEpoch
→ u64
-
Epoch at which this stake was activated, std::Epoch::MAX if is a bootstrap stake.
final
-
borshSchema
→ BorshSchema
-
Maps
this
class' properties to codecs.
no setteroverride
-
deactivationEpoch
→ u64
-
Epoch the stake was deactivated, std::Epoch::MAX if not deactivated.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
stake
→ u64
-
Activated stake amount, set at delegate() time.
final
-
voterPubkey
→ String
-
To whom the stake is delegated (base-58).
final
-
warmupCooldownRate
→ f64
-
How much stake we can activate per-epoch as a fraction of currently effective stake.
final
Methods
-
borshSize()
→ int
-
Returns the serialized byte length of
this
instance.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toBorsh()
→ Iterable<int>
-
Serializes
this
instance into a buffer.
inherited
-
toJson()
→ Map<String, dynamic>
-
Serialises
this
class into a JSON object.
override
-
toString()
→ String
-
A string representation of this object.
inherited