Package net.finmath.pontes.erc7573
Class DirectPaymentSnapshotChecker
java.lang.Object
net.finmath.pontes.erc7573.DirectPaymentSnapshotChecker
Binds event bank identities and cash terms to the trusted payment contract's frozen snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectPaymentSnapshotChecker(BigInteger chainId, String router, Supplier<org.web3j.protocol.Web3j> rpc) DirectPaymentSnapshotChecker(BigInteger chainId, String router, Supplier<org.web3j.protocol.Web3j> rpc, long finalityBlocks) -
Method Summary
Modifier and TypeMethodDescriptionnet.finmath.chainoracle.write.GuardStateisSettled(PontesDirectPaymentRequest request) Reads only the guarded settlement postcondition; startup already binds the RPC chain.booleanValidates every immutable field and returns whether Payment already records settlement.
-
Constructor Details
-
DirectPaymentSnapshotChecker
public DirectPaymentSnapshotChecker(BigInteger chainId, String router, Supplier<org.web3j.protocol.Web3j> rpc) -
DirectPaymentSnapshotChecker
public DirectPaymentSnapshotChecker(BigInteger chainId, String router, Supplier<org.web3j.protocol.Web3j> rpc, long finalityBlocks)
-
-
Method Details
-
isSettled
Reads only the guarded settlement postcondition; startup already binds the RPC chain. -
requireSnapshot
Validates every immutable field and returns whether Payment already records settlement.
-