Record Class PontesChainBinding

java.lang.Object
java.lang.Record
net.finmath.pontes.erc7573.PontesChainBinding

public record PontesChainBinding(BigInteger referenceChainId, BigInteger transactionChainId, BigInteger listenerRpcChainId, BigInteger transactionRpcChainId) extends Record
Fail-closed binding between authenticated references, transaction signing, and both live RPCs.

This check is performed while the listener configuration is being constructed, before an event can cause an irreversible Pontes request. Merely comparing two configuration properties is insufficient: both may consistently name the wrong network.

  • Constructor Details

    • PontesChainBinding

      public PontesChainBinding(BigInteger referenceChainId, BigInteger transactionChainId, BigInteger listenerRpcChainId, BigInteger transactionRpcChainId)
      Creates an instance of a PontesChainBinding record class.
      Parameters:
      referenceChainId - the value for the referenceChainId record component
      transactionChainId - the value for the transactionChainId record component
      listenerRpcChainId - the value for the listenerRpcChainId record component
      transactionRpcChainId - the value for the transactionRpcChainId record component
  • Method Details

    • verifyLive

      public static PontesChainBinding verifyLive(BigInteger referenceChainId, BigInteger transactionChainId, org.web3j.protocol.Web3j listenerRpc, org.web3j.protocol.Web3j transactionRpc)
    • 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.
    • referenceChainId

      public BigInteger referenceChainId()
      Returns the value of the referenceChainId record component.
      Returns:
      the value of the referenceChainId record component
    • transactionChainId

      public BigInteger transactionChainId()
      Returns the value of the transactionChainId record component.
      Returns:
      the value of the transactionChainId record component
    • listenerRpcChainId

      public BigInteger listenerRpcChainId()
      Returns the value of the listenerRpcChainId record component.
      Returns:
      the value of the listenerRpcChainId record component
    • transactionRpcChainId

      public BigInteger transactionRpcChainId()
      Returns the value of the transactionRpcChainId record component.
      Returns:
      the value of the transactionRpcChainId record component