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 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 a PontesReference record class.
      Parameters:
      domain - the value for the domain record component
      chainId - the value for the chainId record component
      oracleProxy - the value for the oracleProxy record component
      receiverContract - the value for the receiverContract record component
      consumerId - the value for the consumerId record component
      originalTransaction - the value for the originalTransaction record component
      xvpTransactionId - the value for the xvpTransactionId record component
      timeout - the value for the timeout record component
      role - the value for the role record component
      keyHash - the value for the keyHash record component
  • Method Details

    • originalTransaction

      public byte[] originalTransaction()
      Returns the value of the originalTransaction record component.
      Returns:
      the value of the originalTransaction record component
    • keyHash

      public byte[] keyHash()
      Returns the value of the keyHash record component.
      Returns:
      the value of the keyHash record component
    • requireContext

      public void requireContext(String expectedDomain, BigInteger expectedChainId, String expectedProxy, String expectedReceiver, BigInteger expectedConsumerId, byte[] expectedTransaction, PontesKeyRole expectedRole)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • domain

      public String domain()
      Returns the value of the domain record component.
      Returns:
      the value of the domain record component
    • chainId

      public BigInteger chainId()
      Returns the value of the chainId record component.
      Returns:
      the value of the chainId record component
    • oracleProxy

      public String oracleProxy()
      Returns the value of the oracleProxy record component.
      Returns:
      the value of the oracleProxy record component
    • receiverContract

      public String receiverContract()
      Returns the value of the receiverContract record component.
      Returns:
      the value of the receiverContract record component
    • consumerId

      public BigInteger consumerId()
      Returns the value of the consumerId record component.
      Returns:
      the value of the consumerId record component
    • xvpTransactionId

      public UUID xvpTransactionId()
      Returns the value of the xvpTransactionId record component.
      Returns:
      the value of the xvpTransactionId record component
    • timeout

      public Instant timeout()
      Returns the value of the timeout record component.
      Returns:
      the value of the timeout record component
    • role

      public PontesKeyRole role()
      Returns the value of the role record component.
      Returns:
      the value of the role record component