viem 0.0.0 → 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,116 @@
1
1
  {
2
2
  "name": "viem",
3
- "version": "0.0.0",
4
- "description": "",
5
- "main": "index.js",
6
- "keywords": [],
7
- "author": "",
8
- "license": "ISC",
3
+ "description": "TypeScript (& JavaScript) Interface for Ethereum",
4
+ "version": "0.0.1-alpha.1",
5
+ "files": [
6
+ "/actions",
7
+ "/chains",
8
+ "/dist",
9
+ "/clients",
10
+ "/types",
11
+ "/utils",
12
+ "/window"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ },
19
+ "./actions": {
20
+ "types": "./dist/actions/index.d.ts",
21
+ "default": "./dist/actions/index.js"
22
+ },
23
+ "./chains": {
24
+ "types": "./dist/chains.d.ts",
25
+ "default": "./dist/chains.js"
26
+ },
27
+ "./clients": {
28
+ "types": "./dist/clients/index.d.ts",
29
+ "default": "./dist/clients/index.js"
30
+ },
31
+ "./utils": {
32
+ "types": "./dist/utils/index.d.ts",
33
+ "default": "./dist/utils/index.js"
34
+ },
35
+ "./window": {
36
+ "types": "./dist/window.d.ts",
37
+ "default": "./dist/window.js"
38
+ },
39
+ "./package.json": "./package.json"
40
+ },
41
+ "type": "module",
42
+ "main": "dist/index.js",
43
+ "types": "dist/index.d.ts",
44
+ "sideEffects": false,
45
+ "dependencies": {
46
+ "@noble/hashes": "^1.1.2",
47
+ "@wagmi/chains": "^0.1.0",
48
+ "abitype": "^0.2.5"
49
+ },
50
+ "devDependencies": {
51
+ "@actions/core": "^1.10.0",
52
+ "@actions/github": "^5.1.1",
53
+ "@changesets/changelog-github": "^0.4.5",
54
+ "@changesets/cli": "^2.23.2",
55
+ "@testing-library/jest-dom": "^5.16.5",
56
+ "@types/dedent": "^0.7.0",
57
+ "@types/fs-extra": "^9.0.13",
58
+ "@types/node": "^17.0.45",
59
+ "@vitest/coverage-c8": "^0.24.3",
60
+ "@vitest/ui": "^0.19.1",
61
+ "bundlewatch": "^0.3.3",
62
+ "dedent": "^0.7.0",
63
+ "esbuild": "^0.16.12",
64
+ "esbuild-register": "^3.4.2",
65
+ "essential-eth": "^0.6.2",
66
+ "ethers": "^5.7.2",
67
+ "execa": "^6.1.0",
68
+ "fs-extra": "^10.1.0",
69
+ "jsdom": "^20.0.0",
70
+ "rome": "^11.0.0",
71
+ "simple-git-hooks": "^2.8.1",
72
+ "tsup": "^6.5.0",
73
+ "typescript": "^4.9.3",
74
+ "vite": "^3.0.4",
75
+ "vitest": "^0.25.2",
76
+ "web3": "^1.8.1"
77
+ },
78
+ "license": "MIT",
79
+ "repository": "wagmi-dev/viem",
80
+ "authors": [
81
+ "awkweb.eth",
82
+ "jxom.eth"
83
+ ],
84
+ "keywords": [
85
+ "eth",
86
+ "ethereum",
87
+ "dapps",
88
+ "wallet",
89
+ "web3"
90
+ ],
91
+ "simple-git-hooks": {
92
+ "pre-commit": "pnpm format & pnpm lint:fix"
93
+ },
9
94
  "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
95
+ "anvil": "source .env && anvil --fork-url $ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME",
96
+ "bench": "vitest bench --no-threads",
97
+ "bench:ci": "CI=true vitest bench --no-threads",
98
+ "build": "tsup",
99
+ "changeset": "changeset",
100
+ "changeset:release": "pnpm build && changeset publish",
101
+ "changeset:version": "changeset version && pnpm install --lockfile-only",
102
+ "dev": "DEV=true tsup",
103
+ "dev:docs": "pnpm -r --filter site dev",
104
+ "format": "rome format src/ test/ --write",
105
+ "lint": "rome check .",
106
+ "lint:fix": "pnpm lint --apply-suggested",
107
+ "playground": "pnpm --filter playground-dev dev",
108
+ "playground:benchmark": "pnpm --filter playground-benchmark dev",
109
+ "postinstall": "pnpm dev",
110
+ "preinstall": "npx only-allow pnpm",
111
+ "test": "vitest dev --coverage --no-threads",
112
+ "test:ci": "CI=true vitest --coverage --no-threads",
113
+ "test:ui": "vitest dev --ui --no-threads",
114
+ "typecheck": "tsc --noEmit"
11
115
  }
12
116
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "main": "../dist/utils/index.js"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "main": "../dist/window.js"
4
+ }