CaliberAccountingCCQ
Functions
decodeAndVerifyQueryResponse
function decodeAndVerifyQueryResponse(
address wormhole,
bytes calldata response,
GuardianSignature[] calldata signatures
) external view returns (QueryResponse memory ret);
getAccountingData
Parses the PerChainQueryResponse and retrieves the accounting data for the given caliber mailbox.
function getAccountingData(PerChainQueryResponse memory pcr, address caliberMailbox)
external
pure
returns (ICaliberMailbox.SpokeCaliberAccountingData memory, uint256);
Parameters
Name | Type | Description |
---|---|---|
pcr | PerChainQueryResponse | The PerChainQueryResponse containing the query results. |
caliberMailbox | address | The address of the queried caliber mailbox. |
Returns
Name | Type | Description |
---|---|---|
<none> | ICaliberMailbox.SpokeCaliberAccountingData | data The accounting data for the given caliber mailbox |
<none> | uint256 | responseTimestamp The timestamp of the response. |