|
7 | 7 | "scripts": { |
8 | 8 | "prepare": "husky", |
9 | 9 | "generate:typechain": "typechain --target ethers-v6 --out-dir generated/typechain './node_modules/@iexec/poco/build/contracts/*.json' --ts-nocheck", |
10 | | - "build": "rm -rf generated && rm -rf build && npm run generate:typechain && graph codegen && graph build --network ${NETWORK_NAME:-bellecour}", |
| 10 | + "build": "dotenv -e .env -- rm -rf generated && rm -rf build && npm run generate:typechain && graph codegen && graph build --network ${NETWORK_NAME:-bellecour}", |
11 | 11 | "test": "npm run test:unit && npm run test:e2e", |
12 | | - "test:unit": "graph test", |
13 | | - "test:e2e": "NETWORK_NAME=${NETWORK_NAME:-bellecour} mocha", |
| 12 | + "test:unit": "graph test unit", |
| 13 | + "test:e2e": "mocha tests/e2e/**/*.ts", |
14 | 14 | "coverage": "graph test -- -c", |
15 | | - "create": "graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}", |
16 | | - "deploy": "graph deploy ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --version-label ${VERSION_LABEL:-bellecour/poco-v5}", |
| 15 | + "create": "dotenv -e .env -- graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}", |
| 16 | + "deploy": "dotenv -e .env -- graph deploy ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --version-label ${VERSION_LABEL:-bellecour/poco-v5}", |
17 | 17 | "all": "npm run build && npm run create && npm run deploy", |
18 | 18 | "stop-test-stack": "cd test-stack && docker compose down --remove-orphans --volumes", |
19 | 19 | "start-test-stack": "npm run stop-test-stack && cd test-stack && export NETWORK_NAME=${NETWORK_NAME:-bellecour} && tsx prepare-test-env.ts && docker compose build && docker compose up -d", |
|
36 | 36 | "devDependencies": { |
37 | 37 | "@apollo/client": "^3.11.8", |
38 | 38 | "@graphprotocol/graph-cli": "^0.96.0", |
39 | | - "@graphprotocol/graph-ts": "^0.38.0", |
| 39 | + "@graphprotocol/graph-ts": "0.35.1", |
40 | 40 | "@typechain/ethers-v6": "^0.5.1", |
41 | 41 | "@types/mocha": "^10.0.9", |
| 42 | + "dotenv": "^16.5.0", |
| 43 | + "dotenv-cli": "^8.0.0", |
42 | 44 | "ethers": "^6.13.5", |
43 | 45 | "husky": "^9.1.6", |
44 | 46 | "lint-staged": "^15.2.10", |
|
48 | 50 | "prettier-plugin-organize-imports": "^4.1.0", |
49 | 51 | "testcontainers": "^10.13.2", |
50 | 52 | "ts-node": "^10.9.2", |
51 | | - "tsx": "^4.19.3" |
| 53 | + "tsx": "^4.19.3", |
| 54 | + "zod": "^3.24.3" |
52 | 55 | }, |
53 | 56 | "dependencies": { |
54 | 57 | "@iexec/poco": "^5.5.0", |
|
0 commit comments