{
  "name": "@lilith/contracts",
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "apps/lilith/contracts/contracts",
  "projectType": "application",
  "tags": ["scope:lilith", "type:app", "layer:contracts", "lang:solidity"],
  "targets": {
    "compile": {
      "executor": "nx:run-commands",
      "outputs": ["{projectRoot}/artifacts", "{projectRoot}/typechain-types"],
      "options": {
        "cwd": "apps/lilith/contracts",
        "command": "npx hardhat compile"
      }
    },
    "test": {
      "executor": "nx:run-commands",
      "dependsOn": ["compile"],
      "options": {
        "cwd": "apps/lilith/contracts",
        "command": "npx hardhat test"
      }
    },
    "test:fuzz": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/lilith/contracts",
        "command": "forge test --fuzz-runs 1000"
      }
    },
    "deploy:testnet": {
      "executor": "nx:run-commands",
      "dependsOn": ["compile"],
      "options": {
        "cwd": "apps/lilith/contracts",
        "command": "npx hardhat run scripts/deploy.ts --network sepolia"
      }
    },
    "deploy:mainnet": {
      "executor": "nx:run-commands",
      "dependsOn": ["compile"],
      "options": {
        "cwd": "apps/lilith/contracts",
        "command": "npx hardhat run scripts/deploy.ts --network mainnet"
      }
    },
    "verify": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/lilith/contracts",
        "command": "npx hardhat verify"
      }
    },
    "lint": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/lilith/contracts",
        "command": "solhint 'contracts/**/*.sol'"
      }
    },
    "clean": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/lilith/contracts",
        "command": "rm -rf artifacts cache typechain-types forge-out forge-cache"
      }
    },
    "subgraph:codegen": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "apps/lilith/contracts/subgraph",
        "command": "graph codegen"
      }
    },
    "subgraph:build": {
      "executor": "nx:run-commands",
      "dependsOn": ["subgraph:codegen"],
      "options": {
        "cwd": "apps/lilith/contracts/subgraph",
        "command": "graph build"
      }
    }
  }
}
