TransferFeeConfig class
Transfer fee extension data for mints.
- Inheritance
-
- Object
- LayoutSerializable
- TransferFeeConfig
Constructors
- TransferFeeConfig({required SolAddress transferFeeConfigAuthority, required SolAddress withdrawWithheldAuthority, required BigInt withheldAmount, required TransferFee olderTransferFee, required TransferFee newerTransferFee})
-
const
-
TransferFeeConfig.fromAccountBytes(List<
int> accountBytes) -
factory
-
TransferFeeConfig.fromBuffer(List<
int> extensionData) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- layout → StructLayout
-
The layout representing the structure of the object for serialization.
no setteroverride
- newerTransferFee → TransferFee
-
Newer transfer fee, used if the current epoch >= newerTransferFee.epoch
final
- olderTransferFee → TransferFee
-
Older transfer fee, used if the current epoch < newerTransferFee.epoch
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transferFeeConfigAuthority → SolAddress
-
Optional authority to set the fee
final
- withdrawWithheldAuthority → SolAddress
-
Withdraw from mint instructions must be signed by this key
final
- withheldAmount → BigInt
-
Withheld transfer fee tokens that have been moved to the mint for
withdrawal
final
Methods
-
calculateEpochFee(
{required BigInt preFeeAmount, required BigInt epoch}) → BigInt -
getEpochFee(
BigInt epoch) → TransferFee -
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