Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 907010c

Browse files
f: lint horizon changes
1 parent da25b4b commit 907010c

File tree

5 files changed

+22
-9
lines changed

5 files changed

+22
-9
lines changed

‎packages/horizon/contracts/payments/collectors/GraphTallyCollector.sol‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ contract GraphTallyCollector is EIP712, GraphDirectory, Authorizable, IGraphTall
102102
bytes calldata _data,
103103
uint256 _tokensToCollect
104104
) private returns (uint256) {
105-
require(_paymentType == IGraphPayments.PaymentTypes.QueryFee, GraphTallyCollectorInvalidPaymentType(_paymentType));
105+
require(
106+
_paymentType == IGraphPayments.PaymentTypes.QueryFee,
107+
GraphTallyCollectorInvalidPaymentType(_paymentType)
108+
);
106109

107110
(SignedRAV memory signedRAV, uint256 dataServiceCut, address receiverDestination) = abi.decode(
108111
_data,

‎packages/subgraph-service/test/unit/disputeManager/DisputeManager.t.sol‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ contract DisputeManagerTest is SubgraphServiceSharedTest {
6969
assertEq(address(disputeManager.subgraphService()), _subgraphService, "Subgraph service should be set.");
7070
}
7171

72-
function _createIndexingDispute(address _allocationId, bytes32 _poi, uint256 _blockNumber) internal returns (bytes32) {
72+
function _createIndexingDispute(
73+
address _allocationId,
74+
bytes32 _poi,
75+
uint256 _blockNumber
76+
) internal returns (bytes32) {
7377
(, address fisherman, ) = vm.readCallers();
7478
bytes32 expectedDisputeId = keccak256(abi.encodePacked(_allocationId, _poi, _blockNumber));
7579
uint256 disputeDeposit = disputeManager.disputeDeposit();
@@ -88,7 +92,7 @@ contract DisputeManagerTest is SubgraphServiceSharedTest {
8892
fisherman,
8993
disputeDeposit,
9094
_allocationId,
91-
_poi,
95+
_poi,
9296
_blockNumber,
9397
stakeSnapshot,
9498
cancellableAt

‎packages/subgraph-service/test/unit/disputeManager/disputes/indexing/create.t.sol‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ contract DisputeManagerIndexingCreateDisputeTest is DisputeManagerTest {
105105
vm.stopPrank();
106106
}
107107

108-
function test_Indexing_Create_DisputesSamePOIAndAllo(
109-
uint256 tokens
110-
) public useIndexer useAllocation(tokens) {
108+
function test_Indexing_Create_DisputesSamePOIAndAllo(uint256 tokens) public useIndexer useAllocation(tokens) {
111109
resetPrank(users.fisherman);
112110
bytes32 disputeID = _createIndexingDispute(allocationID, bytes32("POI1"), block.number);
113111

@@ -158,7 +156,10 @@ contract DisputeManagerIndexingCreateDisputeTest is DisputeManagerTest {
158156
disputeManager.createIndexingDispute(allocationID, bytes32("POI1"), block.number);
159157
}
160158

161-
function test_Indexing_Create_DontRevertIf_IndexerIsBelowStake_WithDelegation(uint256 tokens, uint256 delegationTokens) public useIndexer useAllocation(tokens) {
159+
function test_Indexing_Create_DontRevertIf_IndexerIsBelowStake_WithDelegation(
160+
uint256 tokens,
161+
uint256 delegationTokens
162+
) public useIndexer useAllocation(tokens) {
162163
// Close allocation
163164
bytes memory data = abi.encode(allocationID);
164165
_stopService(users.indexer, data);

‎packages/subgraph-service/test/unit/disputeManager/disputes/query/create.t.sol‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ contract DisputeManagerQueryCreateDisputeTest is DisputeManagerTest {
156156
disputeManager.createQueryDispute(attestationData);
157157
}
158158

159-
function test_Query_Create_DontRevertIf_IndexerIsBelowStake_WithDelegation(uint256 tokens, uint256 delegationTokens) public useIndexer useAllocation(tokens) {
159+
function test_Query_Create_DontRevertIf_IndexerIsBelowStake_WithDelegation(
160+
uint256 tokens,
161+
uint256 delegationTokens
162+
) public useIndexer useAllocation(tokens) {
160163
// Close allocation
161164
bytes memory data = abi.encode(allocationID);
162165
_stopService(users.indexer, data);

‎packages/subgraph-service/test/unit/subgraphService/collect/indexing/indexing.t.sol‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ contract SubgraphServiceCollectIndexingTest is SubgraphServiceTest {
172172
subgraphService.collect(newIndexer, paymentType, data);
173173
}
174174

175-
function test_SubgraphService_Collect_Indexing_RevertWhen_IncorrectPaymentType(uint256 tokens) public useIndexer useAllocation(tokens) {
175+
function test_SubgraphService_Collect_Indexing_RevertWhen_IncorrectPaymentType(
176+
uint256 tokens
177+
) public useIndexer useAllocation(tokens) {
176178
bytes memory data = abi.encode(allocationID, bytes32("POI"), _getHardcodedPOIMetadata());
177179

178180
// skip time to ensure allocation gets rewards

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /