API Version: v0.3.0 Not using latest version (v0.3.1)

MockVerifier v0.3.0 API Reference

MockVerifier

Mock Data Streams verifier.

MockVerifier

Variables

i_verifierProxy

address internal immutable i_verifierProxy

MOCK_DATA_STREAM_DON_ADDRESS

address constant MOCK_DATA_STREAM_DON_ADDRESS = 0x143f40b47ab222503b787e98940023c59fc29984

N_2

uint256 constant N_2 = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0

s_inactiveDigests

mapping(bytes32 => mapping(bytes32 => bool)) internal s_inactiveDigests

s_inactiveFeeds

mapping(bytes32 => bool) internal s_inactiveFeeds

s_verifiedSignatures

mapping(bytes => bool) internal 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 indexed feedId, address indexed sender);

Functions

activateConfig

function activateConfig(bytes32 feedId, bytes32 configDigest) external;

activateFeed

function activateFeed(bytes32 feedId) external;

constructor

constructor(address verifierProxy) ;

deactivateConfig

function deactivateConfig(bytes32 feedId, bytes32 configDigest) external;

deactivateFeed

function deactivateFeed(bytes32 feedId) external;

supportsInterface

function supportsInterface(bytes4 interfaceId) external pure override returns (bool);

verify

function verify(bytes calldata signedReport, address sender) external returns (bytes memory verifierResponse);

Get the latest Chainlink content straight to your inbox.