Skip to content

Commit 0247adb

Browse files
committed
chore: linting and other minor issues
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
1 parent ea14f20 commit 0247adb

File tree

19 files changed

+33
-26
lines changed

19 files changed

+33
-26
lines changed

packages/hardhat-graph-protocol/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import fs from 'fs'
22
import path from 'path'
33

4-
import { GraphPluginError } from './error'
54
import { logDebug, logError } from './logger'
5+
import { GraphPluginError } from './error'
66

77
import type { GraphDeploymentName } from '@graphprotocol/toolshed/deployments'
88
import type { GraphRuntimeEnvironmentOptions } from './types'

packages/horizon/contracts/interfaces/IGraphPayments.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ interface IGraphPayments {
6666
/**
6767
* @notice Collects funds from a payer.
6868
* It will pay cuts to all relevant parties and forward the rest to the receiver destination address. If the
69-
* destination address is zero the funds are automatically staked to the receiver. Note that the receiver
69+
* destination address is zero the funds are automatically staked to the receiver. Note that the receiver
7070
* destination address can be set to the receiver address to collect funds on the receiver without re-staking.
7171
*
7272
* Note that the collected amount can be zero.

packages/horizon/contracts/mocks/imports.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ interface IL2CurationToolshed is IL2Curation {
2727

2828
interface IEpochManagerToolshed is IEpochManager {
2929
function epochLength() external view returns (uint256);
30-
}
30+
}

packages/horizon/tasks/deploy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ task('deploy:protocol', 'Deploy a new version of the Graph Protocol Horizon cont
4141

4242
// Save the addresses to the address book
4343
console.log('\n========== 📖 Updating address book ==========')
44+
// @ts-expect-error - @graphprotocol/toolshed/hardhat exports ts files so types mismatch here
4445
saveToAddressBook(deployment, graph.horizon.addressBook)
4546
console.log(`Address book at ${graph.horizon.addressBook.file} updated!`)
4647

@@ -113,6 +114,7 @@ task('deploy:migrate', 'Upgrade an existing version of the Graph Protocol v1 to
113114

114115
// Update address book
115116
console.log('\n========== 📖 Updating address book ==========')
117+
// @ts-expect-error - @graphprotocol/toolshed/hardhat exports ts files so types mismatch here
116118
saveToAddressBook(deployment, graph.horizon.addressBook)
117119
console.log(`Address book at ${graph.horizon.addressBook.file} updated!`)
118120

packages/horizon/test/deployment/Controller.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import hre from 'hardhat'
22

33
import { expect } from 'chai'
4-
import { toUtf8Bytes } from 'ethers'
54
import { testIf } from './lib/testIf'
5+
import { toUtf8Bytes } from 'ethers'
66

77
const graph = hre.graph()
88
const addressBook = graph.horizon.addressBook

packages/horizon/test/deployment/lib/GraphProxy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { assert, expect } from 'chai'
44
import { AddressBookEntry } from '@graphprotocol/toolshed/deployments'
55
import { zeroPadValue } from 'ethers'
66

7-
export function graphProxyTests(contractName: string, addressBookEntry: AddressBookEntry, proxyAdmin: string, upgraded: boolean = false): void {
7+
export function graphProxyTests(contractName: string, addressBookEntry: AddressBookEntry, proxyAdmin: string, upgraded = false): void {
88
const testIf = () => (upgraded ? it : it.skip)
99

1010
describe(`${contractName}: GraphProxy`, function () {

packages/horizon/test/integration/after-transition-period/upgrade.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('Upgrading contracts', () => {
5454
it('GraphPayments should be upgradeable by the governor', async () => {
5555
const entry = graph.horizon.addressBook.getEntry('GraphPayments')
5656
const proxyAdmin = entry.proxyAdmin!
57-
const proxy = entry.address!
57+
const proxy = entry.address
5858

5959
// Upgrade the contract to a different implementation
6060
// the implementation we use is the GraphTallyCollector, this is obviously absurd but we just need an address with code on it
@@ -69,7 +69,7 @@ describe('Upgrading contracts', () => {
6969
it('PaymentsEscrow should be upgradeable by the governor', async () => {
7070
const entry = graph.horizon.addressBook.getEntry('PaymentsEscrow')
7171
const proxyAdmin = entry.proxyAdmin!
72-
const proxy = entry.address!
72+
const proxy = entry.address
7373

7474
// Upgrade the contract to a different implementation
7575
// the implementation we use is the GraphTallyCollector, this is obviously absurd but we just need an address with code on it

packages/horizon/test/integration/during-transition-period/multicall.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import hre from 'hardhat'
22

3+
import { ONE_MILLION, PaymentTypes } from '@graphprotocol/toolshed'
34
import { ethers } from 'hardhat'
45
import { expect } from 'chai'
5-
import { ONE_MILLION, PaymentTypes } from '@graphprotocol/toolshed'
66
import { setGRTBalance } from '@graphprotocol/toolshed/hardhat'
77

88
import type { HardhatEthersSigner } from '@nomicfoundation/hardhat-ethers/signers'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
contracts/mocks/*

packages/subgraph-service/contracts/mocks/imports.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ interface IL2CurationToolshed is IL2Curation {
1515
}
1616

1717
interface IServiceRegistryToolshed is IServiceRegistry {
18-
function services(address _indexer) external view returns (IServiceRegistry.IndexerService memory);
19-
}
18+
function services(address indexer) external view returns (IServiceRegistry.IndexerService memory);
19+
}

0 commit comments

Comments
 (0)