Module software.sava.core
Record Class ConfidentialTransferFeeConfig
java.lang.Object
java.lang.Record
software.sava.core.accounts.token.extensions.ConfidentialTransferFeeConfig
- All Implemented Interfaces:
MintTokenExtension,TokenExtension,Serializable
public record ConfidentialTransferFeeConfig(PublicKey authority, PublicKey withdrawWithheldAuthorityElgamalPubkey, boolean harvestToMintEnabled, byte[] withheldAmount)
extends Record
implements MintTokenExtension
-
Constructor Summary
ConstructorsConstructorDescriptionConfidentialTransferFeeConfig(PublicKey authority, PublicKey withdrawWithheldAuthorityElgamalPubkey, boolean harvestToMintEnabled, byte[] withheldAmount) Creates an instance of aConfidentialTransferFeeConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorityrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theharvestToMintEnabledrecord component.final inthashCode()Returns a hash code value for this object.intl()read(byte[] data, int offset, int to) final StringtoString()Returns a string representation of this record class.Returns the value of thewithdrawWithheldAuthorityElgamalPubkeyrecord component.byte[]Returns the value of thewithheldAmountrecord component.intwrite(byte[] data, int offset) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.sava.core.accounts.token.extensions.MintTokenExtension
ordinalMethods inherited from interface software.sava.core.serial.Serializable
reusable, write, write
-
Constructor Details
-
ConfidentialTransferFeeConfig
public ConfidentialTransferFeeConfig(PublicKey authority, PublicKey withdrawWithheldAuthorityElgamalPubkey, boolean harvestToMintEnabled, byte[] withheldAmount) Creates an instance of aConfidentialTransferFeeConfigrecord class.- Parameters:
authority- the value for theauthorityrecord componentwithdrawWithheldAuthorityElgamalPubkey- the value for thewithdrawWithheldAuthorityElgamalPubkeyrecord componentharvestToMintEnabled- the value for theharvestToMintEnabledrecord componentwithheldAmount- the value for thewithheldAmountrecord component
-
-
Method Details
-
read
-
extensionType
- Specified by:
extensionTypein interfaceTokenExtension
-
write
public int write(byte[] data, int offset) - Specified by:
writein interfaceSerializable
-
l
public int l()- Specified by:
lin interfaceSerializable
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
authority
Returns the value of theauthorityrecord component.- Returns:
- the value of the
authorityrecord component
-
withdrawWithheldAuthorityElgamalPubkey
Returns the value of thewithdrawWithheldAuthorityElgamalPubkeyrecord component.- Returns:
- the value of the
withdrawWithheldAuthorityElgamalPubkeyrecord component
-
harvestToMintEnabled
public boolean harvestToMintEnabled()Returns the value of theharvestToMintEnabledrecord component.- Returns:
- the value of the
harvestToMintEnabledrecord component
-
withheldAmount
public byte[] withheldAmount()Returns the value of thewithheldAmountrecord component.- Returns:
- the value of the
withheldAmountrecord component
-