Skip to content

Commit 166e298

Browse files
authored
chore: remove unused ganache and ethereumDIDRegistry references (#639)
Signed-off-by: Tomás Migone <[email protected]>
1 parent b44769d commit 166e298

File tree

5 files changed

+2
-14
lines changed

5 files changed

+2
-14
lines changed

cli/commands/migrate.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const { EtherSymbol } = constants
1717
const { formatEther } = utils
1818

1919
// Contracts are deployed in the order defined in this list
20-
let allContracts = [
20+
const allContracts = [
2121
'GraphProxyAdmin',
2222
'BancorFormula',
2323
'Controller',
@@ -48,7 +48,6 @@ export const migrate = async (cli: CLIEnvironment, cliArgs: CLIArgs): Promise<vo
4848

4949
if (chainId == 1337) {
5050
await (cli.wallet.provider as providers.JsonRpcProvider).send('evm_setAutomine', [true])
51-
allContracts = ['EthereumDIDRegistry', ...allContracts]
5251
}
5352

5453
logger.info(`>>> Migrating contracts <<<\n`)

cli/contracts.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { GraphToken } from '../build/types/GraphToken'
1616
import { Controller } from '../build/types/Controller'
1717
import { BancorFormula } from '../build/types/BancorFormula'
1818
import { IENS } from '../build/types/IENS'
19-
import { IEthereumDIDRegistry } from '../build/types/IEthereumDIDRegistry'
2019
import { GraphGovernance } from '../build/types/GraphGovernance'
2120
import { AllocationExchange } from '../build/types/AllocationExchange'
2221

@@ -33,7 +32,6 @@ export interface NetworkContracts {
3332
Controller: Controller
3433
BancorFormula: BancorFormula
3534
IENS: IENS
36-
IEthereumDIDRegistry: IEthereumDIDRegistry
3735
GraphGovernance: GraphGovernance
3836
AllocationExchange: AllocationExchange
3937
}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@
8181
"clean": "rm -rf build/ cache/ dist/",
8282
"compile": "hardhat compile",
8383
"deploy": "scripts/predeploy && hardhat migrate",
84-
"deploy-ganache": "yarn deploy -- --force",
85-
"deploy-ganache-manual": "yarn deploy -- --force --network ganache",
8684
"deploy-hardhat": "yarn deploy -- --force --network hardhat",
8785
"deploy-rinkeby": "yarn deploy -- --force --network rinkeby --graph-config config/graph.rinkeby.yml",
8886
"deploy-goerli": "yarn deploy -- --force --network goerli --graph-config config/graph.goerli.yml",

scripts/predeploy

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22

33
cat addresses.json |
44
jq '."1"."IENS".address = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"' |
5-
jq '."4"."IENS".address = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"' |
6-
jq '."1"."IEthereumDIDRegistry".address = "0xdCa7EF03e98e0DC2B855bE647C39ABe984fcF21B"' |
7-
jq '."4"."IEthereumDIDRegistry".address = "0xdCa7EF03e98e0DC2B855bE647C39ABe984fcF21B"' > addresses.json.tmp
5+
jq '."4"."IENS".address = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"' > addresses.json.tmp
86
mv addresses.json.tmp addresses.json

test/lib/deployment.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { GraphToken } from '../../build/types/GraphToken'
1616
import { ServiceRegistry } from '../../build/types/ServiceRegistry'
1717
import { Staking } from '../../build/types/Staking'
1818
import { RewardsManager } from '../../build/types/RewardsManager'
19-
import { EthereumDIDRegistry } from '../../build/types/EthereumDIDRegistry'
2019
import { GraphGovernance } from '../../build/types/GraphGovernance'
2120
import { SubgraphNFT } from '../../build/types/SubgraphNFT'
2221

@@ -180,10 +179,6 @@ export async function deployGNS(
180179
return proxy
181180
}
182181

183-
export async function deployEthereumDIDRegistry(deployer: Signer): Promise<EthereumDIDRegistry> {
184-
return deployContract('EthereumDIDRegistry', deployer) as unknown as Promise<EthereumDIDRegistry>
185-
}
186-
187182
export async function deployServiceRegistry(
188183
deployer: Signer,
189184
controller: string,

0 commit comments

Comments
 (0)