Skip to main content

CaliberAccountingCCQ

Git Source

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

NameTypeDescription
pcrPerChainQueryResponseThe PerChainQueryResponse containing the query results.
caliberMailboxaddressThe address of the queried caliber mailbox.

Returns

NameTypeDescription
<none>ICaliberMailbox.SpokeCaliberAccountingDatadata The accounting data for the given caliber mailbox
<none>uint256responseTimestamp The timestamp of the response.