Skip to content

pdp-verifier

NamespaceDescription
dataSetLive-
dataSetLiveCall-
findPieceIdsByCid-
findPieceIdsByCidCall-
getActivePieceCount-
getActivePieceCountCall-
getActivePiecesByCursor-
getActivePiecesByCursorCall-
getContract-
getDataSetLeafCount-
getDataSetLeafCountCall-
getDataSetListener-
getDataSetListenerCall-
getDataSetSizes-
getDataSetStorageProvider-
getDataSetStorageProviderCall-
getNextChallengeEpoch-
getNextChallengeEpochCall-
getNextPieceId-
getNextPieceIdCall-
getPieces-
getPiecesWithMetadata-
getScheduledRemovals-
getScheduledRemovalsCall-
FunctionDescription
dataSetLiveCheck if a data set is live
dataSetLiveCallCreate a call to the dataSetLive function
findPieceIdsByCidFind one bounded page of piece IDs matching a PieceCID in a data set.
findPieceIdsByCidCallCreate a call to the findPieceIdsByCid function for use with the multicall or readContract function.
getActivePieceCountGet the active piece count for a data set (non-zero leaf count)
getActivePieceCountCallCreate a call to the getActivePieceCount function
getActivePiecesByCursorGet one bounded page of active pieces using efficient piece-ID cursors.
getActivePiecesByCursorCallCreate a call to the getActivePiecesByCursor contract function for use with Viem’s multicall or readContract functions.
getContractGet the PDP Verifier contract
getDataSetLeafCountGet the leaf count for a data set
getDataSetLeafCountCallCreate a call to the getDataSetLeafCount function
getDataSetListenerGet the data set listener contract address (record keeper)
getDataSetListenerCallCreate a call to the getDataSetListener function
getDataSetSizesGet the sizes of one or more data sets in bytes via a single multicall.
getDataSetStorageProviderGet the storage provider addresses for a data set
getDataSetStorageProviderCallCreate a call to the getDataSetStorageProvider function
getNextChallengeEpochGet next challenge epoch
getNextChallengeEpochCallCreate a call to the getNextChallengeEpoch function for use with the multicall or readContract function.
getNextPieceIdGet the next piece ID for a data set
getNextPieceIdCallCreate a call to the getNextPieceId function
getPiecesGet one bounded page of visible pieces for a data set.
getPiecesWithMetadataGet one bounded page of visible pieces and their metadata.
getScheduledRemovalsGet the scheduled removals for a data set (deduped)
getScheduledRemovalsCallCreate a call to the getScheduledRemovals function
parseDataSetListenerParse the contract output into a getDataSetListener.OutputType.
parseDataSetStorageProviderParse the contract output into a getDataSetStorageProvider.OutputType.
parseGetActivePiecesByCursorParse raw getActivePiecesByCursor contract output into a normalized page.
parseNextChallengeEpochParse the contract output into a getNextChallengeEpoch.OutputType.
parseScheduledRemovalsParse the contract output into a getScheduledRemovals.OutputType. Deduplicates the output.