InterestBearingMintConfigState class
Interest-bearing extension data for mints
- Inheritance
-
- Object
- LayoutSerializable
- InterestBearingMintConfigState
Constructors
- InterestBearingMintConfigState({required SolAddress rateAuthority, required BigInt initializationTimestamp, required int preUpdateAverageRate, required BigInt lastUpdateTimestamp, required int currentRate})
-
const
-
InterestBearingMintConfigState.fromAccountBytes(List<
int> accountBytes) -
factory
-
InterestBearingMintConfigState.fromBuffer(List<
int> extensionData) -
factory
Properties
- currentRate → int
-
Current rate, since the last update
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initializationTimestamp → BigInt
-
Timestamp of initialization, from which to base interest calculations
final
- lastUpdateTimestamp → BigInt
-
Timestamp of the last update, used to calculate the total amount accrued
final
- layout → StructLayout
-
The layout representing the structure of the object for serialization.
no setteroverride
- preUpdateAverageRate → int
-
Average rate from initialization until the last time it was updated
final
- rateAuthority → SolAddress
-
Authority that can set the interest rate and authority
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Map< String, dynamic> -
Serializes the object to a map.
override
-
toBytes(
) → List< int> -
Converts the object to bytes using Borsh serialization.
inherited
-
toHex(
) → String -
Converts the object to a hexadecimal string.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited