IVerifierProxy
Functions
s_feeManager
Gets the fee manager contract.
function s_feeManager() external view returns (IFeeManager feeManager_);
Returns
Name | Type | Description |
---|---|---|
feeManager_ | IFeeManager | The fee manager contract. |
verify
Verifies that the data encoded has been signed correctly by routing to the correct verifier, and bills the user if applicable.
function verify(bytes calldata payload, bytes calldata parameterPayload)
external
payable
returns (bytes memory verifierResponse);
Parameters
Name | Type | Description |
---|---|---|
payload | bytes | The encoded data to be verified, including the signed report. |
parameterPayload | bytes | The fee metadata for billing. |
Returns
Name | Type | Description |
---|---|---|
verifierResponse | bytes | The encoded report from the verifier. |
verifyBulk
Bulk verifies that the data encoded has been signed correctly by routing to the correct verifier, and bills the user if applicable.
function verifyBulk(bytes[] calldata payloads, bytes calldata parameterPayload)
external
payable
returns (bytes[] memory verifiedReports);
Parameters
Name | Type | Description |
---|---|---|
payloads | bytes[] | The encoded payloads to be verified, including the signed report. |
parameterPayload | bytes | The fee metadata for billing. |
Returns
Name | Type | Description |
---|---|---|
verifiedReports | bytes[] | The encoded reports from the verifier. |
getVerifier
Retrieves the verifier address that verifies reports for a config digest.
function getVerifier(bytes32 configDigest) external view returns (address verifierAddress);
Parameters
Name | Type | Description |
---|---|---|
configDigest | bytes32 | The config digest to query for. |
Returns
Name | Type | Description |
---|---|---|
verifierAddress | address | The address of the verifier contract that verifies reports for a given config digest. |
Structs
ReportV3
Represents a data report from a Data Streams for v3 schema (crypto streams).
The price
, bid
, and ask
values are carried to either 8 or 18 decimal places, depending on the streams.
For more information, see https://docs.chain.link/data-streams/crypto-streams and
https://docs.chain.link/data-streams/reference/report-schema.
struct ReportV3 {
bytes32 feedId;
uint32 validFromTimestamp;
uint32 observationsTimestamp;
uint192 nativeFee;
uint192 linkFee;
uint32 expiresAt;
int192 price;
int192 bid;
int192 ask;
}
Properties
Name | Type | Description |
---|---|---|
feedId | bytes32 | The stream ID the report has data for. |
validFromTimestamp | uint32 | The earliest timestamp for which price is applicable. |
observationsTimestamp | uint32 | The latest timestamp for which price is applicable. |
nativeFee | uint192 | The base cost to validate a transaction using the report, denominated in the chain’s native token (e.g., WETH/ETH). |
linkFee | uint192 | The base cost to validate a transaction using the report, denominated in LINK. |
expiresAt | uint32 | The latest timestamp where the report can be verified onchain. |
price | int192 | The DON consensus median price (8 or 18 decimals). |
bid | int192 | The simulated price impact of a buy order up to the X% depth of liquidity usage (8 or 18 decimals). |
ask | int192 | The simulated price impact of a sell order up to the X% depth of liquidity usage (8 or 18 decimals). |