Skip to content

Commit e2fa5f4

Browse files
committed
chore: toolchain
1 parent e155b05 commit e2fa5f4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

contracts/scripts/populateCourts.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { deployments, getNamedAccounts, getChainId, ethers } from "hardhat";
1+
import { deployments, getNamedAccounts, getChainId, ethers, network } from "hardhat";
22
import { KlerosCore } from "../typechain-types";
33
import { BigNumber } from "ethers";
44
import courtsV1Mainnet from "../config/courts.v1.mainnet.json";
55
import courtsV1GnosisChain from "../config/courts.v1.gnosischain.json";
66
import courtsV2ArbitrumTestnet from "../config/courts.v2.testnet.json";
77
import courtsV2ArbitrumDevnet from "../config/courts.v2.devnet.json";
8+
import { isDevnet } from "../deploy/utils";
89

910
enum HomeChains {
1011
ARBITRUM_ONE = 42161,
@@ -20,7 +21,7 @@ enum Sources {
2021
V2_TESTNET,
2122
}
2223

23-
const from = Sources.V2_TESTNET;
24+
const from = isDevnet(network) ? Sources.V2_DEVNET : Sources.V2_TESTNET;
2425
const TESTING_PARAMETERS = false;
2526
const ETH_USD = BigNumber.from(1800);
2627
const DISPUTE_KIT_CLASSIC = BigNumber.from(1);

contracts/scripts/populatePolicyRegistry.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { deployments, getNamedAccounts, getChainId, ethers } from "hardhat";
1+
import { deployments, getNamedAccounts, getChainId, ethers, network } from "hardhat";
22
import { PolicyRegistry } from "../typechain-types";
33
import policiesV1Mainnet from "../config/policies.v1.mainnet.json";
44
import policiesV1GnosisChain from "../config/policies.v1.gnosischain.json";
55
import policiesV2ArbitrumTestnet from "../config/policies.v2.testnet.json";
66
import policiesV2ArbitrumDevnet from "../config/policies.v2.devnet.json";
7+
import { isDevnet } from "../deploy/utils";
78

89
enum HomeChains {
910
ARBITRUM_ONE = 42161,
@@ -18,7 +19,7 @@ enum Sources {
1819
V2_DEVNET,
1920
V2_TESTNET,
2021
}
21-
const from = Sources.V2_TESTNET;
22+
const from = isDevnet(network) ? Sources.V2_DEVNET : Sources.V2_TESTNET;
2223

2324
async function main() {
2425
// fallback to hardhat node signers on local network

subgraph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"codegen": "graph codegen",
1010
"build": "graph build",
1111
"clean": "graph clean && rm subgraph.yaml.bak.*",
12-
"deploy:arbitrum-goerli": "graph deploy --product hosted-service kleros/kleros-v2-core-arbitrum-goerli",
12+
"deploy:arbitrum-goerli": "graph deploy --product hosted-service kleros/kleros-v2-core-testnet-2",
1313
"deploy:arbitrum-goerli-devnet": "graph deploy --product hosted-service kleros/kleros-v2-core-devnet",
1414
"deploy:arbitrum": "graph deploy --product hosted-service kleros/kleros-v2-core-arbitrum",
1515
"create-local": "graph create --node http://localhost:8020/ kleros/kleros-v2-core-local",

0 commit comments

Comments
 (0)