|
15 | 15 | "./wagmi": {
|
16 | 16 | "default": "./dist/wagmi/generated.js",
|
17 | 17 | "types": "./dist/wagmi/generated.d.ts"
|
| 18 | + }, |
| 19 | + "./types-v5": { |
| 20 | + "default": "./dist/types-v5/index.js", |
| 21 | + "types": "./dist/types-v5/index.d.ts" |
18 | 22 | }
|
19 | 23 | },
|
20 | 24 | "files": [
|
21 | 25 | "artifacts/**/*",
|
22 | 26 | "dist/**/*",
|
23 | 27 | "contracts/**/*",
|
24 | 28 | "types/**/*",
|
| 29 | + "types-v5/**/*", |
| 30 | + "wagmi/**/*", |
25 | 31 | "README.md"
|
26 | 32 | ],
|
27 | 33 | "author": "The Graph Team",
|
28 | 34 | "license": "GPL-2.0-or-later",
|
29 | 35 | "scripts": {
|
30 |
| - "clean": "rm -rf dist cache artifacts types", |
| 36 | + "clean": "rm -rf dist cache artifacts types wagmi", |
31 | 37 | "lint": "pnpm lint:ts; pnpm lint:sol; pnpm lint:json",
|
32 | 38 | "lint:ts": "eslint --fix --cache '**/*.{js,ts,cjs,mjs,jsx,tsx}'; prettier -w --cache --log-level warn '**/*.{js,ts,cjs,mjs,jsx,tsx}'",
|
33 | 39 | "lint:sol": "solhint --fix --noPrompt --noPoster 'contracts/**/*.sol'; prettier -w --cache --log-level warn 'contracts/**/*.sol'",
|
34 | 40 | "lint:json": "prettier -w --cache --log-level warn '**/*.json'",
|
35 | 41 | "format": "prettier -w --cache --log-level warn '**/*.{js,ts,cjs,mjs,jsx,tsx,json,md,yaml,yml}'",
|
36 |
| - "build": "hardhat compile && wagmi generate && tsc", |
| 42 | + "build": "hardhat compile && pnpm build:types && tsc", |
| 43 | + "build:types": "scripts/build-types.sh", |
37 | 44 | "build:clean": "pnpm clean && pnpm build",
|
38 | 45 | "watch": "tsc --watch",
|
39 | 46 | "prepublishOnly": "pnpm run build"
|
|
43 | 50 | "@nomicfoundation/hardhat-toolbox": "^4.0.0",
|
44 | 51 | "@openzeppelin/contracts": "3.4.1",
|
45 | 52 | "@openzeppelin/contracts-upgradeable": "3.4.2",
|
| 53 | + "@typechain/ethers-v5": "^10.2.1", |
46 | 54 | "@wagmi/cli": "^2.3.1",
|
47 | 55 | "ethers": "6.13.7",
|
48 | 56 | "hardhat": "^2.24.0",
|
49 | 57 | "markdownlint-cli": "^0.45.0",
|
50 | 58 | "prettier": "^3.5.3",
|
51 | 59 | "prettier-plugin-solidity": "^2.0.0",
|
52 | 60 | "solhint": "5.1.0",
|
| 61 | + "typechain": "^8.3.2", |
53 | 62 | "viem": "^2.31.7"
|
54 | 63 | }
|
55 | 64 | }
|
0 commit comments