@@ -5,13 +5,13 @@ import { IPaymentsCollector } from "./IPaymentsCollector.sol";
5
5
import { IGraphPayments } from "./IGraphPayments.sol " ;
6
6
7
7
/**
8
- * @title Interface for the {TAPCollector } contract
8
+ * @title Interface for the {GraphTallyCollector } contract
9
9
* @dev Implements the {IPaymentCollector} interface as defined by the Graph
10
10
* Horizon payments protocol.
11
11
* @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).
13
13
*/
14
- interface ITAPCollector is IPaymentsCollector {
14
+ interface IGraphTallyCollector is IPaymentsCollector {
15
15
/// @notice Details for a payer-signer pair
16
16
/// @dev Signers can be removed only after a thawing period
17
17
struct PayerAuthorization {
@@ -33,7 +33,7 @@ interface ITAPCollector is IPaymentsCollector {
33
33
address serviceProvider;
34
34
// The address of the data service the RAV was issued to
35
35
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
37
37
uint64 timestampNs;
38
38
// Total amount owed to the service provider since the beginning of the
39
39
// payer-service provider relationship, including all debt that is already paid for.
@@ -107,92 +107,92 @@ interface ITAPCollector is IPaymentsCollector {
107
107
* @param authorizingPayer The address of the payer authorizing the signer
108
108
* @param signer The address of the signer
109
109
*/
110
- error TAPCollectorSignerAlreadyAuthorized (address authorizingPayer , address signer );
110
+ error GraphTallyCollectorSignerAlreadyAuthorized (address authorizingPayer , address signer );
111
111
112
112
/**
113
113
* Thrown when the signer proof deadline is invalid
114
114
* @param proofDeadline The deadline for the proof provided by the signer
115
115
* @param currentTimestamp The current timestamp
116
116
*/
117
- error TAPCollectorInvalidSignerProofDeadline (uint256 proofDeadline , uint256 currentTimestamp );
117
+ error GraphTallyCollectorInvalidSignerProofDeadline (uint256 proofDeadline , uint256 currentTimestamp );
118
118
119
119
/**
120
120
* Thrown when the signer proof is invalid
121
121
*/
122
- error TAPCollectorInvalidSignerProof ();
122
+ error GraphTallyCollectorInvalidSignerProof ();
123
123
124
124
/**
125
125
* Thrown when the signer is not authorized by the payer
126
126
* @param payer The address of the payer
127
127
* @param signer The address of the signer
128
128
*/
129
- error TAPCollectorSignerNotAuthorizedByPayer (address payer , address signer );
129
+ error GraphTallyCollectorSignerNotAuthorizedByPayer (address payer , address signer );
130
130
131
131
/**
132
132
* Thrown when the attempting to revoke a signer that was already revoked
133
133
* @param signer The address of the signer
134
134
*/
135
- error TAPCollectorAuthorizationAlreadyRevoked (address payer , address signer );
135
+ error GraphTallyCollectorAuthorizationAlreadyRevoked (address payer , address signer );
136
136
137
137
/**
138
138
* Thrown when attempting to thaw a signer that is already thawing
139
139
* @param signer The address of the signer
140
140
* @param thawEndTimestamp The timestamp at which the thawing period ends
141
141
*/
142
- error TAPCollectorSignerAlreadyThawing (address signer , uint256 thawEndTimestamp );
142
+ error GraphTallyCollectorSignerAlreadyThawing (address signer , uint256 thawEndTimestamp );
143
143
144
144
/**
145
145
* Thrown when the signer is not thawing
146
146
* @param signer The address of the signer
147
147
*/
148
- error TAPCollectorSignerNotThawing (address signer );
148
+ error GraphTallyCollectorSignerNotThawing (address signer );
149
149
150
150
/**
151
151
* Thrown when the signer is still thawing
152
152
* @param currentTimestamp The current timestamp
153
153
* @param thawEndTimestamp The timestamp at which the thawing period ends
154
154
*/
155
- error TAPCollectorSignerStillThawing (uint256 currentTimestamp , uint256 thawEndTimestamp );
155
+ error GraphTallyCollectorSignerStillThawing (uint256 currentTimestamp , uint256 thawEndTimestamp );
156
156
157
157
/**
158
158
* Thrown when the RAV signer is invalid
159
159
*/
160
- error TAPCollectorInvalidRAVSigner ();
160
+ error GraphTallyCollectorInvalidRAVSigner ();
161
161
162
162
/**
163
163
* Thrown when the RAV payer does not match the signers authorized payer
164
164
* @param authorizedPayer The address of the authorized payer
165
165
* @param ravPayer The address of the RAV payer
166
166
*/
167
- error TAPCollectorInvalidRAVPayer (address authorizedPayer , address ravPayer );
167
+ error GraphTallyCollectorInvalidRAVPayer (address authorizedPayer , address ravPayer );
168
168
169
169
/**
170
170
* Thrown when the RAV is for a data service the service provider has no provision for
171
171
* @param dataService The address of the data service
172
172
*/
173
- error TAPCollectorUnauthorizedDataService (address dataService );
173
+ error GraphTallyCollectorUnauthorizedDataService (address dataService );
174
174
175
175
/**
176
176
* Thrown when the caller is not the data service the RAV was issued to
177
177
* @param caller The address of the caller
178
178
* @param dataService The address of the data service
179
179
*/
180
- error TAPCollectorCallerNotDataService (address caller , address dataService );
180
+ error GraphTallyCollectorCallerNotDataService (address caller , address dataService );
181
181
182
182
/**
183
183
* @notice Thrown when the tokens collected are inconsistent with the collection history
184
184
* Each RAV should have a value greater than the previous one
185
185
* @param tokens The amount of tokens in the RAV
186
186
* @param tokensCollected The amount of tokens already collected
187
187
*/
188
- error TAPCollectorInconsistentRAVTokens (uint256 tokens , uint256 tokensCollected );
188
+ error GraphTallyCollectorInconsistentRAVTokens (uint256 tokens , uint256 tokensCollected );
189
189
190
190
/**
191
191
* Thrown when the attempting to collect more tokens than what it's owed
192
192
* @param tokensToCollect The amount of tokens to collect
193
193
* @param maxTokensToCollect The maximum amount of tokens to collect
194
194
*/
195
- error TAPCollectorInvalidTokensToCollectAmount (uint256 tokensToCollect , uint256 maxTokensToCollect );
195
+ error GraphTallyCollectorInvalidTokensToCollectAmount (uint256 tokensToCollect , uint256 maxTokensToCollect );
196
196
197
197
/**
198
198
* @notice Authorize a signer to sign on behalf of the payer.
0 commit comments