Lockup class
Lockup
- Inheritance
-
- Object
- BorshObject
- Lockup
Constructors
- Lockup.new({required i64 unixTimestamp, required i64 epoch, required String custodian})
-
Stake account lockup info.
const
-
Lockup.fromJson(Map<
String, dynamic> json) -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.factory
Properties
- borshSchema → BorshSchema
-
Maps
this
class' properties to codecs.no setteroverride - custodian → String
-
Lockup custodian authority (base-58).
final
- epoch → i64
-
Epoch of lockup expiration.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unixTimestamp → i64
-
Unix timestamp of lockup expiration.
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- codec → BorshStructSizedCodec
-
The encoders/decoders of
this
class' properties.no setter - inactive → Lockup
-
The default, inactive lockup value.
no setter
Static Methods
-
tryFromJson(
Map< String, dynamic> ? json) → Lockup? -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.override