File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/common-ts/src/contracts Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { providers , Signer } from 'ethers'
2
2
3
3
// Contract addresses
4
- // eslint-disable-next-line @typescript-eslint/no-var-requires
5
- const DEPLOYED_CONTRACTS = require ( '@graphprotocol/contracts/addresses.json' )
4
+ import * as DEPLOYED_CONTRACTS from '@graphprotocol/contracts/addresses.json'
6
5
7
6
// Contract ABIs
8
7
import { Curation } from '@graphprotocol/contracts/dist/types/Curation'
@@ -42,8 +41,8 @@ export const connectContracts = async (
42
41
providerOrSigner : providers . Provider | Signer ,
43
42
chainId : number ,
44
43
) : Promise < NetworkContracts > => {
45
- const deployedContracts = DEPLOYED_CONTRACTS [ ` ${ chainId } ` ]
46
-
44
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
45
+ const deployedContracts = ( DEPLOYED_CONTRACTS as any ) [ ` ${ chainId } ` ]
47
46
return {
48
47
curation : Curation__factory . connect (
49
48
deployedContracts . Curation . address ,
Original file line number Diff line number Diff line change 4
4
"paths" : {
5
5
"@graphprotocol/*" : [" ./*/src" ]
6
6
},
7
+ "resolveJsonModule" : true ,
7
8
"skipLibCheck" : true ,
8
9
}
9
10
}
You can’t perform that action at this time.
0 commit comments