Fee class
Fee
Fee rate as a ratio, minted on UpdateStakePoolBalance
as a proportion of the rewards.
If either the numerator or the denominator is 0, the fee is considered to be 0.
- Inheritance
-
- Object
- BorshObject
- Fee
Constructors
Properties
- borshSchema → BorshSchema
-
Maps
this
class' properties to codecs.no setteroverride - denominator → u64
-
Denominator of the fee ratio.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- numerator → u64
-
Numerator of the fee ratio.
final
- ratio → double
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
no setter
Static Methods
-
tryFromJson(
Map< String, dynamic> ? json) → Fee? -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.override