Class CallDescriptor

java.lang.Object
net.finmath.decryptionoracle.execution.dto.CallDescriptor

public class CallDescriptor extends Object
Java counterpart to the Solidity struct CallDescriptor: struct CallDescriptor { address targetContract; bytes4 selector; uint256 validUntilBlock; }
Author:
Christian Fries
  • Constructor Details

    • CallDescriptor

      public CallDescriptor(String targetContract, byte[] selector, BigInteger validUntilBlock)
      Construct a call descriptor from arguments.
      Parameters:
      targetContract - Address of the target contract
      selector - Selector of the target method.
      validUntilBlock - Block until the call is valid (or 0 if "forever")
  • Method Details

    • getTargetContract

      public String getTargetContract()
      Get address of target contract.
      Returns:
      address of target contract
    • getSelector

      public byte[] getSelector()
      Get selector of call target.
      Returns:
      selector of call target
    • getValidUntilBlock

      public BigInteger getValidUntilBlock()
      Get block until this call is valid (or 0 if forever).
      Returns:
      block until this call is valid (or 0 if forever)