File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const fs = require('fs-extra');
22const mustache = require ( 'mustache' ) ;
33
44const 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 } ;
You can’t perform that action at this time.
0 commit comments