MockVerifier v0.2.7 API Reference
MockVerifier
Mock Data Streams verifier.
Variables
i_verifierProxy
address i_verifierProxy
MOCK_DATA_STREAM_DON_ADDRESS
address MOCK_DATA_STREAM_DON_ADDRESS
N_2
uint256 N_2
s_inactiveDigests
mapping(bytes32 => mapping(bytes32 => bool)) s_inactiveDigests
s_inactiveFeeds
mapping(bytes32 => bool) s_inactiveFeeds
s_verifiedSignatures
mapping(bytes => bool) s_verifiedSignatures
Errors
AccessForbidden
error AccessForbidden()
AlreadyUsedSignature
error AlreadyUsedSignature()
BadVerification
error BadVerification()
DigestInactive
error DigestInactive(bytes32 feedId, bytes32 configDigest)
InactiveFeed
error InactiveFeed(bytes32 feedId)
InvalidS
error InvalidS()
InvalidSignatureLength
error InvalidSignatureLength()
InvalidV
error InvalidV()
Events
ReportVerified
event ReportVerified(bytes32 feedId, address sender)
Functions
activateConfig
function activateConfig(bytes32 feedId, bytes32 configDigest) external
activateFeed
function activateFeed(bytes32 feedId) external
constructor
constructor(address verifierProxy) public
deactivateConfig
function deactivateConfig(bytes32 feedId, bytes32 configDigest) external
deactivateFeed
function deactivateFeed(bytes32 feedId) external
supportsInterface
function supportsInterface(bytes4 interfaceId) external pure returns (bool)
_Returns true if this contract implements the interface defined by
interfaceId. See the corresponding
https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP
section] to learn more about how these ids are created.
This function call must use less than 30 000 gas._
verify
function verify(bytes signedReport, address sender) external returns (bytes verifierResponse)