Package net.finmath.pontes.erc7573
Record Class PontesReference
java.lang.Object
java.lang.Record
net.finmath.pontes.erc7573.PontesReference
public record PontesReference(String domain, BigInteger chainId, String oracleProxy, String receiverContract, BigInteger consumerId, byte[] originalTransaction, UUID xvpTransactionId, Instant timeout, PontesKeyRole role, byte[] keyHash)
extends Record
Public, signed content carried by the ERC-7573 E(S) or E(F) reference.
-
Constructor Summary
ConstructorsConstructorDescriptionPontesReference(String domain, BigInteger chainId, String oracleProxy, String receiverContract, BigInteger consumerId, byte[] originalTransaction, UUID xvpTransactionId, Instant timeout, PontesKeyRole role, byte[] keyHash) Creates an instance of aPontesReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionchainId()Returns the value of thechainIdrecord component.Returns the value of theconsumerIdrecord component.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]keyHash()Returns the value of thekeyHashrecord component.Returns the value of theoracleProxyrecord component.byte[]Returns the value of theoriginalTransactionrecord component.Returns the value of thereceiverContractrecord component.voidrequireContext(String expectedDomain, BigInteger expectedChainId, String expectedProxy, String expectedReceiver, BigInteger expectedConsumerId, byte[] expectedTransaction, PontesKeyRole expectedRole) role()Returns the value of therolerecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thexvpTransactionIdrecord component.
-
Constructor Details
-
PontesReference
public PontesReference(String domain, BigInteger chainId, String oracleProxy, String receiverContract, BigInteger consumerId, byte[] originalTransaction, UUID xvpTransactionId, Instant timeout, PontesKeyRole role, byte[] keyHash) Creates an instance of aPontesReferencerecord class.- Parameters:
domain- the value for thedomainrecord componentchainId- the value for thechainIdrecord componentoracleProxy- the value for theoracleProxyrecord componentreceiverContract- the value for thereceiverContractrecord componentconsumerId- the value for theconsumerIdrecord componentoriginalTransaction- the value for theoriginalTransactionrecord componentxvpTransactionId- the value for thexvpTransactionIdrecord componenttimeout- the value for thetimeoutrecord componentrole- the value for therolerecord componentkeyHash- the value for thekeyHashrecord component
-
-
Method Details
-
originalTransaction
public byte[] originalTransaction()Returns the value of theoriginalTransactionrecord component.- Returns:
- the value of the
originalTransactionrecord component
-
keyHash
public byte[] keyHash()Returns the value of thekeyHashrecord component.- Returns:
- the value of the
keyHashrecord component
-
requireContext
public void requireContext(String expectedDomain, BigInteger expectedChainId, String expectedProxy, String expectedReceiver, BigInteger expectedConsumerId, byte[] expectedTransaction, PontesKeyRole expectedRole) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
chainId
Returns the value of thechainIdrecord component.- Returns:
- the value of the
chainIdrecord component
-
oracleProxy
Returns the value of theoracleProxyrecord component.- Returns:
- the value of the
oracleProxyrecord component
-
receiverContract
Returns the value of thereceiverContractrecord component.- Returns:
- the value of the
receiverContractrecord component
-
consumerId
Returns the value of theconsumerIdrecord component.- Returns:
- the value of the
consumerIdrecord component
-
xvpTransactionId
Returns the value of thexvpTransactionIdrecord component.- Returns:
- the value of the
xvpTransactionIdrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-