Class DirectPaymentSnapshotChecker

java.lang.Object
net.finmath.pontes.erc7573.DirectPaymentSnapshotChecker

public final class DirectPaymentSnapshotChecker extends Object
Binds event bank identities and cash terms to the trusted payment contract's frozen snapshot.
  • 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

      public net.finmath.chainoracle.write.GuardState isSettled(PontesDirectPaymentRequest request)
      Reads only the guarded settlement postcondition; startup already binds the RPC chain.
    • requireSnapshot

      public boolean requireSnapshot(PontesDirectPaymentRequest request)
      Validates every immutable field and returns whether Payment already records settlement.