Package net.finmath.pontes.erc7573
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 Summary
ConstructorsConstructorDescriptionPontesChainBinding(BigInteger referenceChainId, BigInteger transactionChainId, BigInteger listenerRpcChainId, BigInteger transactionRpcChainId) Creates an instance of aPontesChainBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelistenerRpcChainIdrecord component.Returns the value of thereferenceChainIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionChainIdrecord component.Returns the value of thetransactionRpcChainIdrecord component.static PontesChainBindingverifyLive(BigInteger referenceChainId, BigInteger transactionChainId, org.web3j.protocol.Web3j listenerRpc, org.web3j.protocol.Web3j transactionRpc)
-
Constructor Details
-
PontesChainBinding
public PontesChainBinding(BigInteger referenceChainId, BigInteger transactionChainId, BigInteger listenerRpcChainId, BigInteger transactionRpcChainId) Creates an instance of aPontesChainBindingrecord class.- Parameters:
referenceChainId- the value for thereferenceChainIdrecord componenttransactionChainId- the value for thetransactionChainIdrecord componentlistenerRpcChainId- the value for thelistenerRpcChainIdrecord componenttransactionRpcChainId- the value for thetransactionRpcChainIdrecord component
-
-
Method Details
-
verifyLive
public static PontesChainBinding verifyLive(BigInteger referenceChainId, BigInteger transactionChainId, org.web3j.protocol.Web3j listenerRpc, org.web3j.protocol.Web3j transactionRpc) -
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). -
referenceChainId
Returns the value of thereferenceChainIdrecord component.- Returns:
- the value of the
referenceChainIdrecord component
-
transactionChainId
Returns the value of thetransactionChainIdrecord component.- Returns:
- the value of the
transactionChainIdrecord component
-
listenerRpcChainId
Returns the value of thelistenerRpcChainIdrecord component.- Returns:
- the value of the
listenerRpcChainIdrecord component
-
transactionRpcChainId
Returns the value of thetransactionRpcChainIdrecord component.- Returns:
- the value of the
transactionRpcChainIdrecord component
-