Skip to content

Commit

Permalink
Merge pull request #1083 from graphprotocol/ma/horizon-ipayment-colle…
Browse files Browse the repository at this point in the history
…ctor-docs-fix

fix: cleanup IPaymentCollector and TAPCollector docs
  • Loading branch information
matiasedgeandnode authored Jan 13, 2025
2 parents 1038cf4 + a800d09 commit 1d097de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions packages/horizon/contracts/interfaces/IPaymentsCollector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ interface IPaymentsCollector {
* @notice Initiate a payment collection through the payments protocol
* @dev This function should require the caller to present some form of evidence of the payer's debt to
* the receiver. The collector should validate this evidence and, if valid, collect the payment.
* Requirements:
* - The caller must be the data service the RAV was issued to
* - The signer of the RAV must be authorized to sign for the payer
*
* Emits a {PaymentCollected} event
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ contract TAPCollector is EIP712, GraphDirectory, ITAPCollector {
/**
* @notice Initiate a payment collection through the payments protocol
* See {IGraphPayments.collect}.
* @dev Caller must be the data service the RAV was issued to.
* @dev Service provider must have an active provision with the data service to collect payments
* @dev Requirements:
* - Caller must be the data service the RAV was issued to.
* - Signer of the RAV must be authorized to sign for the payer.
* - Service provider must have an active provision with the data service to collect payments.
* @notice REVERT: This function may revert if ECDSA.recover fails, check ECDSA library for details.
*/
function collect(IGraphPayments.PaymentTypes paymentType, bytes memory data) external override returns (uint256) {
Expand Down

0 comments on commit 1d097de

Please sign in to comment.