Class CallDescriptor
java.lang.Object
net.finmath.decryptionoracle.execution.dto.CallDescriptor
Java counterpart to the Solidity struct CallDescriptor:
struct CallDescriptor {
address targetContract;
bytes4 selector;
uint256 validUntilBlock;
}
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionCallDescriptor(String targetContract, byte[] selector, BigInteger validUntilBlock) Construct a call descriptor from arguments. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get selector of call target.Get address of target contract.Get block until this call is valid (or 0 if forever).
-
Constructor Details
-
CallDescriptor
Construct a call descriptor from arguments.- Parameters:
targetContract- Address of the target contractselector- Selector of the target method.validUntilBlock- Block until the call is valid (or 0 if "forever")
-
-
Method Details
-
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
Get block until this call is valid (or 0 if forever).- Returns:
- block until this call is valid (or 0 if forever)
-