Skip to content

Commit d733214

Browse files
committed
chore: migrate-gnosis-to-studio
1 parent 4ae7ad6 commit d733214

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "Subgraph for Generalized TCR contracts",
55
"scripts": {
66
"fix-schema.ts": "replace-in-file '/(;\\s*if \\()value === null/mg' '$1value === null || value.kind === ValueKind.NULL' generated/schema.ts --isRegex",
7-
"codegen:xdai": "node render-templates.js xdai && graph codegen && yarn fix-schema.ts",
8-
"build:xdai": "yarn codegen:xdai && graph build",
9-
"publish:xdai": "yarn build:xdai && graph deploy --product hosted-service kleros/legacy-curate-xdai",
7+
"codegen:gnosis": "node render-templates.js gnosis && graph codegen && yarn fix-schema.ts",
8+
"build:gnosis": "yarn codegen:gnosis && graph build",
9+
"publish:gnosis": "yarn build:gnosis && graph deploy --product subgraph-studio legacy-curate-gnosis",
1010
"codegen:mainnet": "node render-templates.js mainnet && graph codegen && yarn fix-schema.ts",
1111
"build:mainnet": "yarn codegen:mainnet && graph build",
1212
"publish:mainnet": "yarn build:mainnet && graph deploy --product hosted-service kleros/curate",

render-templates.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const fs = require('fs-extra');
22
const mustache = require('mustache');
33

44
const chainNameToChainId = {
5-
xdai: 100,
5+
gnosis: 100,
66
mainnet: 1,
77
goerli: 5,
88
sepolia: 11155111,
@@ -12,14 +12,10 @@ async function main() {
1212
const networkName = process.argv[2];
1313
const chainId = chainNameToChainId[networkName];
1414
const deployments = JSON.parse(fs.readFileSync('networks.json', 'utf8'));
15-
const {
16-
address: lgtcrFactoryAddr,
17-
startBlock: lgtcrFactoryStartBlock,
18-
} = deployments['LightGTCRFactory'][chainId];
19-
const {
20-
address: gtcrFactoryAddr,
21-
startBlock: gtcrFactoryStartBlock,
22-
} = deployments['GTCRFactory'][chainId];
15+
const { address: lgtcrFactoryAddr, startBlock: lgtcrFactoryStartBlock } =
16+
deployments['LightGTCRFactory'][chainId];
17+
const { address: gtcrFactoryAddr, startBlock: gtcrFactoryStartBlock } =
18+
deployments['GTCRFactory'][chainId];
2319
const templateData = {
2420
network: networkName,
2521
};

0 commit comments

Comments
 (0)