kleros/kleros-v2

View on GitHub
subgraph/package.json

Summary

Maintainability
Test Coverage
{
  "name": "@kleros/kleros-v2-subgraph",
  "version": "0.7.2",
  "license": "MIT",
  "scripts": {
    "update:core:arbitrum-sepolia-devnet": "./scripts/update.sh arbitrumSepoliaDevnet arbitrum-sepolia core/subgraph.yaml",
    "update:core:arbitrum-sepolia": "./scripts/update.sh arbitrumSepolia arbitrum-sepolia core/subgraph.yaml",
    "update:core:arbitrum": "./scripts/update.sh arbitrum arbitrum-one core/subgraph.yaml",
    "update:core:local": "./scripts/update.sh localhost mainnet core/subgraph.yaml",
    "codegen:core": "graph codegen --output-dir core/generated/ core/subgraph.yaml",
    "build:core": "graph build --output-dir core/build/ core/subgraph.yaml",
    "test:core": "cd core && graph test",
    "clean:core": "graph clean --codegen-dir core/generated/ --build-dir core/build/ && rm core/subgraph.yaml.bak.*",
    "deploy:core:arbitrum-sepolia-devnet": "graph deploy --product subgraph-studio kleros-v2-core-devnet -l v$npm_package_version core/subgraph.yaml",
    "deploy:core:arbitrum-sepolia": "graph deploy --product subgraph-studio kleros-v2-core-testnet -l v$npm_package_version core/subgraph.yaml",
    "deploy:core:arbitrum": "graph deploy --product subgraph-studio kleros-v2-core-mainnet -l v$npm_package_version core/subgraph.yaml",
    "deploy:core:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 kleros/kleros-v2-core-local --version-label v$(date +%s) core/subgraph.yaml",
    "rebuild-deploy:core:local": "yarn update:core:local && yarn codegen:core && yarn build:core && yarn create:local kleros/kleros-v2-core-local && yarn deploy:core:local",
    "": "------------------------------------------------------------------------------------------",
    "update:core-neo:arbitrum-sepolia-devnet": "./scripts/update.sh arbitrumSepoliaDevnet arbitrum-sepolia core-neo/subgraph.yaml",
    "update:core-neo:arbitrum": "./scripts/update.sh arbitrum arbitrum-one core-neo/subgraph.yaml",
    "update:core-neo:local": "./scripts/update.sh localhost mainnet core-neo/subgraph.yaml",
    "codegen:core-neo": "yarn codegen:core && graph codegen --output-dir core-neo/generated/ core-neo/subgraph.yaml",
    "build:core-neo": "graph build --output-dir core-neo/build/ core-neo/subgraph.yaml",
    "test:core-neo": "cd core-neo && graph test",
    "clean:core-neo": "graph clean --codegen-dir core-neo/generated/ --build-dir core-neo/build/ && rm core-neo/subgraph.yaml.bak.*",
    "deploy:core-neo:arbitrum-sepolia-devnet": "graph deploy --product subgraph-studio kleros-v2-coreneo-devnet -l v$npm_package_version core-neo/subgraph.yaml",
    "deploy:core-neo:arbitrum": "graph deploy --product subgraph-studio kleros-v2-coreneo -l v$npm_package_version core-neo/subgraph.yaml",
    "deploy:core-neo:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 kleros/kleros-v2-coreneo-local --version-label v$(date +%s) core-neo/subgraph.yaml",
    "rebuild-deploy:core-neo:local": "yarn update:core-neo:local && yarn codegen:core-neo && yarn build:core-neo && yarn create:local kleros/kleros-v2-coreneo-local && yarn deploy:core-neo:local",
    "-": "------------------------------------------------------------------------------------------",
    "update:core-university:arbitrum-sepolia-devnet": "./scripts/update.sh arbitrumSepoliaDevnet arbitrum-sepolia core-university/subgraph.yaml",
    "update:core-university:local": "./scripts/update.sh localhost mainnet core-university/subgraph.yaml",
    "codegen:core-university": "yarn codegen:core && graph codegen --output-dir core-university/generated/ core-university/subgraph.yaml",
    "build:core-university": "graph build --output-dir core-university/build/ core-university/subgraph.yaml",
    "test:core-university": "cd core-university && graph test",
    "clean:core-university": "graph clean --codegen-dir core-university/generated/ --build-dir core-university/build/ && rm core-university/subgraph.yaml.bak.*",
    "deploy:core-university:arbitrum-sepolia-devnet": "graph deploy --product subgraph-studio kleros-v2-coreuni-devnet -l v$npm_package_version core-university/subgraph.yaml",
    "deploy:core-university:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 kleros/kleros-v2-coreuni-local --version-label v$(date +%s) core-university/subgraph.yaml",
    "rebuild-deploy:core-university:local": "yarn update:core-university:local && yarn codegen:core-university && yarn build:core-university && yarn create:local kleros/kleros-v2-coreuni-local && yarn deploy:core-university:local",
    "--": "-----------------------------------------------------------------------------------------",
    "update:drt:arbitrum-sepolia-devnet": "./scripts/update.sh arbitrumSepoliaDevnet arbitrum-sepolia dispute-template-registry/subgraph.yaml",
    "update:drt:arbitrum-sepolia": "./scripts/update.sh arbitrumSepolia arbitrum-sepolia dispute-template-registry/subgraph.yaml",
    "update:drt:arbitrum": "./scripts/update.sh arbitrum arbitrum-one dispute-template-registry/subgraph.yaml",
    "update:drt:local": "./scripts/update.sh localhost mainnet dispute-template-registry/subgraph.yaml",
    "codegen:drt": "graph codegen --output-dir dispute-template-registry/generated/ dispute-template-registry/subgraph.yaml",
    "build:drt": "graph build --output-dir dispute-template-registry/generated/ dispute-template-registry/subgraph.yaml",
    "test:drt": "cd dispute-template-registry && graph test ",
    "clean:drt": "graph clean --codegen-dir dispute-template-registry/generated/ --build-dir dispute-template-registry/build/ && rm dispute-template-registry/subgraph.yaml.bak.*",
    "deploy:drt:arbitrum-sepolia-devnet": "graph deploy --product subgraph-studio kleros-v2-drt-arbisep-devnet -l v$npm_package_version dispute-template-registry/subgraph.yaml",
    "deploy:drt:arbitrum-sepolia": "graph deploy --product subgraph-studio kleros-v2-drt-arbisep-testnet -l v$npm_package_version dispute-template-registry/subgraph.yaml",
    "deploy:drt:arbitrum": "graph deploy --product subgraph-studio kleros-v2-drt -l v$npm_package_version dispute-template-registry/subgraph.yaml",
    "deploy:drt:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 kleros/kleros-v2-drt-local --version-label v$(date +%s) dispute-template-registry/subgraph.yaml",
    "rebuild-deploy:drt:local": "yarn update:drt:local && yarn codegen:drt && yarn build:drt && yarn create:local kleros/kleros-v2-drt-local && yarn deploy:drt:local",
    "---": "----------------------------------------------------------------------------------------",
    "update:arbitrum-sepolia-devnet": "./scripts/all.sh update arbitrum-sepolia-devnet",
    "update:arbitrum-sepolia": "./scripts/all.sh update arbitrum-sepolia",
    "update:arbitrum": "./scripts/all.sh update arbitrum arbitrum-one",
    "update:local": "./scripts/all.sh update local",
    "clean": "./scripts/all.sh clean",
    "codegen": "./scripts/all.sh codegen",
    "build": "./scripts/all.sh build",
    "rebuild-deploy:local": "./scripts/all.sh rebuild-deploy local",
    "----": "--------------------------------------------------------------------------------------",
    "create:local": "graph create --node http://localhost:8020/",
    "remove:local": "graph remove --node http://localhost:8020/",
    "start-local-indexer": "docker compose -f ../services/graph-node/docker-compose.yml up -d && docker compose -f ../services/graph-node/docker-compose.yml logs -f",
    "stop-local-indexer": "docker compose -f ../services/graph-node/docker-compose.yml down && rm -rf ../services/graph-node/data"
  },
  "packageManager": "yarn@4.0.2+sha256.825003a0f561ad09a3b1ac4a3b3ea6207af2796d54f62a9420520915721f5186",
  "volta": {
    "node": "20.11.0"
  },
  "dependencies": {
    "@graphprotocol/graph-ts": "^0.32.0"
  },
  "devDependencies": {
    "@graphprotocol/graph-cli": "0.64.1",
    "@kleros/kleros-v2-eslint-config": "workspace:^",
    "@kleros/kleros-v2-prettier-config": "workspace:^",
    "gluegun": "^5.1.6",
    "matchstick-as": "0.6.0"
  },
  "dependenciesComments": {
    "@graphprotocol/graph-cli": "pinned because of this issue: https://github.com/graphprotocol/graph-tooling/issues/1399#issuecomment-1676104540"
  }
}