@@ -5,13 +5,13 @@ import { IPaymentsCollector } from "./IPaymentsCollector.sol";
55import { IGraphPayments } from "./IGraphPayments.sol " ;
66
77/**
8- * @title Interface for the {TAPCollector } contract
8+ * @title Interface for the {GraphTallyCollector } contract
99 * @dev Implements the {IPaymentCollector} interface as defined by the Graph
1010 * Horizon payments protocol.
1111 * @notice Implements a payments collector contract that can be used to collect
12- * payments using a TAP RAV (Receipt Aggregate Voucher).
12+ * payments using a GraphTally RAV (Receipt Aggregate Voucher).
1313 */
14- interface ITAPCollector is IPaymentsCollector {
14+ interface IGraphTallyCollector is IPaymentsCollector {
1515 /// @notice Details for a payer-signer pair
1616 /// @dev Signers can be removed only after a thawing period
1717 struct PayerAuthorization {
@@ -33,7 +33,7 @@ interface ITAPCollector is IPaymentsCollector {
3333 address serviceProvider;
3434 // The address of the data service the RAV was issued to
3535 address dataService;
36- // The RAV timestamp, indicating the latest TAP Receipt in the RAV
36+ // The RAV timestamp, indicating the latest GraphTally Receipt in the RAV
3737 uint64 timestampNs;
3838 // Total amount owed to the service provider since the beginning of the
3939 // payer-service provider relationship, including all debt that is already paid for.
@@ -107,92 +107,92 @@ interface ITAPCollector is IPaymentsCollector {
107107 * @param authorizingPayer The address of the payer authorizing the signer
108108 * @param signer The address of the signer
109109 */
110- error TAPCollectorSignerAlreadyAuthorized (address authorizingPayer , address signer );
110+ error GraphTallyCollectorSignerAlreadyAuthorized (address authorizingPayer , address signer );
111111
112112 /**
113113 * Thrown when the signer proof deadline is invalid
114114 * @param proofDeadline The deadline for the proof provided by the signer
115115 * @param currentTimestamp The current timestamp
116116 */
117- error TAPCollectorInvalidSignerProofDeadline (uint256 proofDeadline , uint256 currentTimestamp );
117+ error GraphTallyCollectorInvalidSignerProofDeadline (uint256 proofDeadline , uint256 currentTimestamp );
118118
119119 /**
120120 * Thrown when the signer proof is invalid
121121 */
122- error TAPCollectorInvalidSignerProof ();
122+ error GraphTallyCollectorInvalidSignerProof ();
123123
124124 /**
125125 * Thrown when the signer is not authorized by the payer
126126 * @param payer The address of the payer
127127 * @param signer The address of the signer
128128 */
129- error TAPCollectorSignerNotAuthorizedByPayer (address payer , address signer );
129+ error GraphTallyCollectorSignerNotAuthorizedByPayer (address payer , address signer );
130130
131131 /**
132132 * Thrown when the attempting to revoke a signer that was already revoked
133133 * @param signer The address of the signer
134134 */
135- error TAPCollectorAuthorizationAlreadyRevoked (address payer , address signer );
135+ error GraphTallyCollectorAuthorizationAlreadyRevoked (address payer , address signer );
136136
137137 /**
138138 * Thrown when attempting to thaw a signer that is already thawing
139139 * @param signer The address of the signer
140140 * @param thawEndTimestamp The timestamp at which the thawing period ends
141141 */
142- error TAPCollectorSignerAlreadyThawing (address signer , uint256 thawEndTimestamp );
142+ error GraphTallyCollectorSignerAlreadyThawing (address signer , uint256 thawEndTimestamp );
143143
144144 /**
145145 * Thrown when the signer is not thawing
146146 * @param signer The address of the signer
147147 */
148- error TAPCollectorSignerNotThawing (address signer );
148+ error GraphTallyCollectorSignerNotThawing (address signer );
149149
150150 /**
151151 * Thrown when the signer is still thawing
152152 * @param currentTimestamp The current timestamp
153153 * @param thawEndTimestamp The timestamp at which the thawing period ends
154154 */
155- error TAPCollectorSignerStillThawing (uint256 currentTimestamp , uint256 thawEndTimestamp );
155+ error GraphTallyCollectorSignerStillThawing (uint256 currentTimestamp , uint256 thawEndTimestamp );
156156
157157 /**
158158 * Thrown when the RAV signer is invalid
159159 */
160- error TAPCollectorInvalidRAVSigner ();
160+ error GraphTallyCollectorInvalidRAVSigner ();
161161
162162 /**
163163 * Thrown when the RAV payer does not match the signers authorized payer
164164 * @param authorizedPayer The address of the authorized payer
165165 * @param ravPayer The address of the RAV payer
166166 */
167- error TAPCollectorInvalidRAVPayer (address authorizedPayer , address ravPayer );
167+ error GraphTallyCollectorInvalidRAVPayer (address authorizedPayer , address ravPayer );
168168
169169 /**
170170 * Thrown when the RAV is for a data service the service provider has no provision for
171171 * @param dataService The address of the data service
172172 */
173- error TAPCollectorUnauthorizedDataService (address dataService );
173+ error GraphTallyCollectorUnauthorizedDataService (address dataService );
174174
175175 /**
176176 * Thrown when the caller is not the data service the RAV was issued to
177177 * @param caller The address of the caller
178178 * @param dataService The address of the data service
179179 */
180- error TAPCollectorCallerNotDataService (address caller , address dataService );
180+ error GraphTallyCollectorCallerNotDataService (address caller , address dataService );
181181
182182 /**
183183 * @notice Thrown when the tokens collected are inconsistent with the collection history
184184 * Each RAV should have a value greater than the previous one
185185 * @param tokens The amount of tokens in the RAV
186186 * @param tokensCollected The amount of tokens already collected
187187 */
188- error TAPCollectorInconsistentRAVTokens (uint256 tokens , uint256 tokensCollected );
188+ error GraphTallyCollectorInconsistentRAVTokens (uint256 tokens , uint256 tokensCollected );
189189
190190 /**
191191 * Thrown when the attempting to collect more tokens than what it's owed
192192 * @param tokensToCollect The amount of tokens to collect
193193 * @param maxTokensToCollect The maximum amount of tokens to collect
194194 */
195- error TAPCollectorInvalidTokensToCollectAmount (uint256 tokensToCollect , uint256 maxTokensToCollect );
195+ error GraphTallyCollectorInvalidTokensToCollectAmount (uint256 tokensToCollect , uint256 maxTokensToCollect );
196196
197197 /**
198198 * @notice Authorize a signer to sign on behalf of the payer.
0 commit comments