-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpackage.json
More file actions
330 lines (330 loc) · 16.7 KB
/
package.json
File metadata and controls
330 lines (330 loc) · 16.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
{
"name": "miden-wallet",
"version": "1.14.3",
"private": true,
"engines": {
"node": ">=22.0.0"
},
"scripts": {
"postinstall": "rimraf node_modules/@miden-sdk/react/node_modules && patch-package",
"start": "yarn watch:src",
"dev": "rimraf ./dist && concurrently yarn:watch:*",
"dev-clean": "rimraf node_modules && yarn cache clean && yarn install && yarn dev",
"watch:src": "echo 'Use vite dev instead'",
"watch:dist": "mv3-hot-reload",
"build": "yarn build:extension && yarn build:mobile",
"build:extension": "cross-env TARGET_BROWSER=chrome yarn build:bg && cross-env TARGET_BROWSER=chrome yarn build:cs && cross-env TARGET_BROWSER=chrome MANIFEST_VERSION=3 yarn build:ext",
"prebuild": "rimraf ./dist && yarn ts",
"prebuild:extension": "rimraf ./dist",
"build-all": "rimraf ./dist && run-s build:*",
"build:bg": "vite build --config vite.background.config.ts",
"build:ext": "vite build --config vite.extension.config.ts",
"build:cs": "cross-env CS_ENTRY=contentScript vite build --config vite.contentScripts.config.ts && cross-env CS_ENTRY=addToWindow vite build --config vite.contentScripts.config.ts",
"build:chrome": "rimraf dist/chrome_unpacked && cross-env TARGET_BROWSER=chrome yarn build:bg && cross-env TARGET_BROWSER=chrome yarn build:cs && cross-env TARGET_BROWSER=chrome MANIFEST_VERSION=3 yarn build:ext && TARGET_BROWSER=chrome yarn zip",
"build:firefox": "cross-env TARGET_BROWSER=firefox yarn build:bg && cross-env TARGET_BROWSER=firefox yarn build:cs && cross-env TARGET_BROWSER=firefox MANIFEST_VERSION=2 yarn build:ext && TARGET_BROWSER=firefox yarn zip",
"build:safari": "cross-env TARGET_BROWSER=safari yarn build:bg && cross-env TARGET_BROWSER=safari yarn build:cs && cross-env TARGET_BROWSER=safari MANIFEST_VERSION=2 yarn build:ext && TARGET_BROWSER=safari yarn zip",
"build:mobile": "rimraf ./dist/mobile && cross-env MODE_ENV=production vite build --config vite.mobile.config.ts",
"build:mobile:dev": "cross-env MODE_ENV=development vite build --config vite.mobile.config.ts",
"build:mobile:devnet": "cross-env MIDEN_NETWORK=devnet yarn build:mobile",
"mobile:sync": "yarn build:mobile && npx cap sync",
"mobile:sync:devnet": "cross-env MIDEN_NETWORK=devnet yarn mobile:sync",
"mobile:ios": "yarn mobile:sync && npx cap open ios",
"mobile:ios:devnet": "cross-env MIDEN_NETWORK=devnet yarn mobile:ios",
"mobile:ios:build": "yarn mobile:sync && xcodebuild -project ios/App/App.xcodeproj -scheme App -destination 'platform=iOS Simulator,name=iPhone 17' -configuration Debug -derivedDataPath ios/App/build build",
"mobile:ios:build:devnet": "cross-env MIDEN_NETWORK=devnet yarn mobile:ios:build",
"mobile:ios:run": "yarn mobile:ios:build && xcrun simctl install booted ios/App/build/Build/Products/Debug-iphonesimulator/App.app && yarn mobile:ios:faceid && xcrun simctl launch booted com.miden.wallet",
"mobile:ios:run:devnet": "cross-env MIDEN_NETWORK=devnet yarn mobile:ios:run",
"mobile:ios:faceid": "xcrun simctl spawn booted notifyutil -s com.apple.BiometricKit.enrollmentChanged 1 && xcrun simctl spawn booted notifyutil -p com.apple.BiometricKit.enrollmentChanged",
"mobile:android": "yarn mobile:sync && npx cap open android",
"mobile:android:devnet": "cross-env MIDEN_NETWORK=devnet yarn mobile:android",
"mobile:android:fingerprint": "adb -e emu finger touch 1",
"mobile:android:release": "yarn mobile:sync && cd android && ./gradlew bundleRelease && echo 'AAB created at: android/app/build/outputs/bundle/release/app-release.aab'",
"mobile:android:release:apk": "yarn mobile:sync && cd android && ./gradlew assembleRelease && echo 'APK created at: android/app/build/outputs/apk/release/app-release.apk'",
"mobile:android:keystore": "keytool -genkey -v -keystore android/app/miden-release.keystore -alias miden -keyalg RSA -keysize 2048 -validity 10000",
"mobile:ios:set-version": "cd ios/App && xcrun agvtool new-marketing-version $(node -p \"require('../../package.json').version\") && xcrun agvtool next-version -all",
"mobile:ios:release": "yarn mobile:sync && yarn mobile:ios:set-version && xcodebuild -workspace ios/App/App.xcworkspace -scheme App -configuration Release -archivePath ios/App/build/MidenWallet.xcarchive archive && echo 'Archive created at: ios/App/build/MidenWallet.xcarchive'",
"mobile:ios:export": "xcodebuild -exportArchive -archivePath ios/App/build/MidenWallet.xcarchive -exportPath ios/App/build/export -exportOptionsPlist ios/App/ExportOptions.plist",
"zip": "ts-node --project ./tsconfig-utility.json ./utility/buildZip.ts",
"test": "jest",
"test-debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
"test:coverage": "jest --coverage",
"test:smoke": "jest src/lib/miden/smoke.integration.test.ts",
"ts": "tsc --pretty",
"lint": "eslint src --max-warnings 0",
"lint:fix": "eslint --fix --max-warnings 0 ./src",
"format": "prettier --write src",
"lint:i18n": "eslint src --config .eslintrc.i18n.json --no-eslintrc --max-warnings 0",
"test:e2e": "playwright test",
"test:e2e:blockchain:build": "rimraf dist/chrome_unpacked && cross-env MIDEN_USE_MOCK_CLIENT=false MIDEN_E2E_TEST=true MIDEN_NETWORK=${E2E_NETWORK:-testnet} TARGET_BROWSER=chrome yarn build:bg && cross-env MIDEN_USE_MOCK_CLIENT=false MIDEN_E2E_TEST=true MIDEN_NETWORK=${E2E_NETWORK:-testnet} TARGET_BROWSER=chrome yarn build:cs && cross-env MIDEN_USE_MOCK_CLIENT=false MIDEN_E2E_TEST=true MIDEN_NETWORK=${E2E_NETWORK:-testnet} TARGET_BROWSER=chrome MANIFEST_VERSION=3 yarn build:ext",
"test:e2e:blockchain": "yarn test:e2e:blockchain:build && playwright test --config playwright.e2e.config.ts",
"test:e2e:blockchain:run": "playwright test --config playwright.e2e.config.ts",
"test:e2e:blockchain:testnet": "cross-env E2E_NETWORK=testnet yarn test:e2e:blockchain",
"test:e2e:blockchain:devnet": "cross-env E2E_NETWORK=devnet yarn test:e2e:blockchain",
"test:e2e:blockchain:localhost": "cross-env E2E_NETWORK=localhost yarn test:e2e:blockchain",
"test:e2e:blockchain:agentic": "cross-env E2E_AGENTIC=true yarn test:e2e:blockchain",
"test:e2e:stress:build": "yarn install && yarn test:e2e:blockchain:build",
"test:e2e:stress": "yarn test:e2e:stress:build && playwright test --config playwright.stress.config.ts",
"test:e2e:stress:run": "yarn test:e2e:stress:build && playwright test --config playwright.stress.config.ts",
"test:e2e:stress:run-only": "playwright test --config playwright.stress.config.ts",
"test:e2e:stress:testnet": "cross-env E2E_NETWORK=testnet yarn test:e2e:stress",
"test:e2e:stress:devnet": "cross-env E2E_NETWORK=devnet yarn test:e2e:stress",
"test:e2e:stress:localhost": "cross-env E2E_NETWORK=localhost yarn test:e2e:stress",
"test:e2e:mobile:build": "cross-env MIDEN_E2E_TEST=true MIDEN_NETWORK=${E2E_NETWORK:-testnet} yarn mobile:sync && xcodebuild -project ios/App/App.xcodeproj -scheme App -destination 'platform=iOS Simulator,name=iPhone 17' -configuration Debug -derivedDataPath ios/App/build build",
"test:e2e:mobile": "yarn test:e2e:mobile:build && playwright test --config playwright.ios.config.ts",
"test:e2e:mobile:run": "playwright test --config playwright.ios.config.ts",
"test:e2e:mobile:testnet": "cross-env E2E_NETWORK=testnet yarn test:e2e:mobile",
"test:e2e:mobile:devnet": "cross-env E2E_NETWORK=devnet yarn test:e2e:mobile",
"test:e2e:mobile:localhost": "cross-env E2E_NETWORK=localhost yarn test:e2e:mobile",
"playwright:install": "playwright install --with-deps chromium",
"clear:lint": "rimraf node_modules/.cache/eslint-loader",
"clear:cache": "rimraf node_modules/.cache",
"clean": "rimraf dist",
"clean:install": "rimraf node_modules yarn.lock && yarn",
"createTranslationFile": "ts-node --project ./tsconfig-utility.json ./utility/generateLanguageFiles.ts && ts-node --project ./tsconfig-utility.json ./utility/generateLanguageFiles.ts -e",
"storybook": "storybook dev -p 6006",
"build:storybook": "storybook build -c .storybook -o storybook-deploy/public",
"build:desktop": "rimraf ./dist/desktop && cross-env MODE_ENV=production vite build --config vite.desktop.config.ts",
"build:desktop:dev": "cross-env MODE_ENV=development vite build --config vite.desktop.config.ts",
"desktop:dev": "yarn build:desktop:dev && yarn tauri dev",
"desktop:build": "yarn build:desktop && yarn tauri build",
"desktop:reset": "rm -rf ~/Library/WebKit/com.miden.wallet ~/Library/Caches/com.miden.wallet ~/Library/Application\\ Support/com.miden.wallet",
"build:devnet": "rimraf ./dist && yarn clear:webpack-cache && cross-env MIDEN_NETWORK=devnet DISABLE_TS_CHECKER=true NODE_ENV=development MODE_ENV=production MANIFEST_VERSION=3 webpack",
"dev:devnet": "cross-env MIDEN_NETWORK=devnet DISABLE_TS_CHECKER=true NODE_ENV=development MODE_ENV=development MANIFEST_VERSION=3 webpack --watch --progress",
"build:desktop:devnet": "rimraf ./dist/desktop && cross-env MIDEN_NETWORK=devnet DISABLE_TS_CHECKER=true NODE_ENV=development MODE_ENV=production webpack --config webpack.desktop.config.js",
"tauri": "tauri"
},
"dependencies": {
"@capacitor/android": "^8.0.1",
"@capacitor/app": "^8.0.0",
"@capacitor/core": "^8.0.1",
"@capacitor/filesystem": "^8.0.0",
"@capacitor/haptics": "^8.0.0",
"@capacitor/ios": "^8.0.1",
"@capacitor/keyboard": "^8.0.0",
"@capacitor/local-notifications": "^8.0.0",
"@capacitor/preferences": "^8.0.0",
"@capacitor/share": "^8.0.0",
"@capacitor/splash-screen": "^8.0.0",
"@demox-labs/aleo-hd-key": "^0.0.1",
"@demox-labs/miden-wallet-adapter-base": "0.10.0",
"@demox-labs/miden-wallet-adapter-miden": "0.10.0",
"@dicebear/avatars": "4.2.5",
"@dicebear/avatars-bottts-sprites": "4.2.5",
"@dicebear/avatars-jdenticon-sprites": "4.2.5",
"@floating-ui/react": "^0.27.16",
"@hookform/resolvers": "^3.9.0",
"@miden-sdk/miden-sdk": "0.14.4",
"@miden-sdk/react": "0.14.4",
"@miden/dapp-browser": "link:./packages/dapp-browser",
"@newhighsco/storybook-addon-svgr": "^2.0.7",
"@noble/hashes": "^1.4.0",
"@peculiar/webcrypto": "1.1.6",
"@radix-ui/react-slot": "^1.2.3",
"@segment/analytics-node": "^2.3.0",
"@svgr/webpack": "^8.1.0",
"@tauri-apps/api": "^2.0.0",
"assert": "^2.0.0",
"async-retry": "1.3.3",
"axios": "^1.15.0",
"bignumber.js": "9.0.2",
"bip39": "3.0.4",
"bs58": "^5.0.0",
"bs58check": "2.1.2",
"buffer": "5.6.0",
"capacitor-barcode-scanner": "^2.5.0",
"capacitor-native-biometric": "^4.2.2",
"class-variance-authority": "^0.7.1",
"cliui": "^9.0.1",
"clsx": "^2.1.1",
"constate": "^3.3.2",
"create-hmac": "^1.1.7",
"cross-env": "7.0.3",
"date-fns": "^4.1.0",
"dexie": "^3.2.2",
"dotenv-expand": "5.1.0",
"ed25519-hd-key": "1.1.2",
"effector": "^23.4.4",
"fast-deep-equal": "3.1.3",
"fontfaceobserver": "2.1.0",
"framer-motion": "^12.35.2",
"fuse.js": "6.4.6",
"i18next": "^23.11.5",
"i18next-browser-languagedetector": "^8.0.0",
"inter-ui": "3.13.1",
"json-rpc-2.0": "^1.4.2",
"micro-memoize": "4.0.9",
"nanoid": "^5.0.9",
"npm-run-all": "4.1.5",
"p-queue": "^9.1.0",
"pako": "^2.1.0",
"randomcolor": "^0.6.2",
"react": "18.2.0",
"react-collapse": "5.1.1",
"react-countdown": "2.3.2",
"react-currency-input-field": "^3.8.0",
"react-day-picker": "^9.13.2",
"react-dom": "18.2.0",
"react-hook-form": "^7.71.0",
"react-i18next": "^14.1.2",
"react-infinite-scroller": "^1.2.6",
"react-json-view": "1.21.3",
"react-modal": "3.15.1",
"react-qr-svg": "2.2.2",
"react-transition-group": "4.4.2",
"recharts": "^3.7.0",
"regexparam": "1.3.0",
"scryptsy": "2.1.0",
"seedrandom": "^3.0.5",
"semver": "^7.3.5",
"stream-browserify": "^3.0.0",
"string-width": "^4.2.3",
"swr": "2.2.4",
"threads": "^1.7.0",
"tippy.js": "6.2.6",
"ts-proto": "^1.166.3",
"typescript": "^5.4.5",
"use-debounce": "7.0.1",
"use-force-update": "1.0.7",
"uuid": "^9.0.0",
"wasm-themis": "0.14.6",
"webextension-polyfill": "^0.10.0",
"yup": "^1.4.0",
"zlib": "^1.0.5",
"zustand": "^5.0.9"
},
"peerDependencies": {
"postcss": "8.5.6"
},
"devDependencies": {
"@capacitor/cli": "^8.0.1",
"@chromatic-com/storybook": "^1.5.0",
"@miden-sdk/vite-plugin": "0.14.4",
"@playwright/test": "^1.48.2",
"@resvg/resvg-js": "^2.6.2",
"@serh11p/jest-webextension-mock": "4.0.0",
"@storybook/addon-console": "^3.0.0",
"@storybook/addon-essentials": "^8.1.5",
"@storybook/addon-interactions": "^8.1.5",
"@storybook/addon-links": "^8.1.5",
"@storybook/addon-mdx-gfm": "^8.1.5",
"@storybook/addon-onboarding": "^8.1.5",
"@storybook/addon-styling-webpack": "^1.0.0",
"@storybook/addon-webpack5-compiler-swc": "^1.0.3",
"@storybook/blocks": "^8.1.5",
"@storybook/manager-api": "^8.1.11",
"@storybook/react": "^8.1.5",
"@storybook/react-webpack5": "^8.1.5",
"@storybook/test": "^8.1.5",
"@storybook/theming": "^8.1.11",
"@swc/core": "^1.15.8",
"@swc/jest": "^0.2.39",
"@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/vite": "^4.2.2",
"@tauri-apps/cli": "^2.0.0",
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.1",
"@types/async-retry": "^1.4.9",
"@types/chrome": "^0.0.326",
"@types/create-hmac": "^1.1.3",
"@types/elliptic": "^6.4.18",
"@types/fontfaceobserver": "^2.1.3",
"@types/jest": "^30.0.0",
"@types/node": "^25.0.6",
"@types/pako": "^2.0.4",
"@types/randomcolor": "^0.5.9",
"@types/react": "18.2.76",
"@types/react-collapse": "^5.0.4",
"@types/react-dom": "18.0.6",
"@types/react-infinite-scroller": "^1.2.5",
"@types/react-modal": "^3.16.3",
"@types/react-transition-group": "^4.4.12",
"@types/seedrandom": "^3.0.8",
"@types/semver": "^7.3.9",
"@types/serviceworker": "^0.0.175",
"@types/web-locks-api": "^0.0.5",
"@types/webextension-polyfill": "^0.12.4",
"@typescript-eslint/eslint-plugin": "7.8.0",
"@typescript-eslint/parser": "7.8.0",
"@vitejs/plugin-react-swc": "^4.3.0",
"@wasm-tool/wasm-pack-plugin": "^1.6.0",
"adm-zip": "^0.5.10",
"appium-remote-debugger": "^15.6.0",
"concurrently": "^7.0.0",
"dotenv": "^16.0.0",
"eslint": "^8.48.0",
"eslint-config-react-app": "6.0.0",
"eslint-import-resolver-typescript": "^3.9.1",
"eslint-plugin-autofix": "^1.1.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-i18next": "^6.1.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-react": "7.27.1",
"eslint-plugin-react-hooks": "4.3.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-testing-library": "^6.0.1",
"fake-indexeddb": "^4.0.1",
"hygen": "^6.2.11",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"minimist": "^1.2.7",
"node-html-parser": "^7.1.0",
"patch-package": "^8.0.1",
"postcss": "^8.5.6",
"postcss-flexbugs-fixes": "5.0.2",
"postcss-loader": "^6.2.1",
"postcss-preset-env": "^7.3.3",
"postcss-scss": "^4.0.3",
"postinstall-postinstall": "^2.1.0",
"prettier": "^3.7.4",
"process": "0.11.10",
"rimraf": "6.0.1",
"sharp": "^0.34.5",
"storybook": "^8.6.17",
"storybook-addon-module-mock": "^1.3.0",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.18",
"translate": "^3.0.1",
"ts-node": "^10.9.1",
"tw-animate-css": "^1.4.0",
"typescript-eslint": "^0.0.1-alpha.0",
"vite": "^8.0.8",
"vite-plugin-node-polyfills": "^0.26.0",
"vite-plugin-svgr": "^5.2.0",
"vite-plugin-wasm": "^3.6.0"
},
"eslintConfig": {
"extends": [
"plugin:storybook/recommended"
]
},
"resolutions": {
"strip-ansi": "6.0.1",
"webpack": "^5",
"**/@types/react": "18.2.76",
"**/@types/react-dom": "18.0.6",
"@types/minimatch": "^5.0.0",
"fork-ts-checker-webpack-plugin": "^6.5.3",
"**/glob": "^10.5.0",
"**/axios": "^1.15.0",
"**/cross-spawn": "^7.0.5",
"**/nth-check": "^2.1.1",
"**/@miden-sdk/miden-sdk": "0.14.4",
"**/protobufjs": "^7.5.5",
"**/lodash": "^4.18.0",
"**/lodash-es": "^4.18.0",
"**/serialize-javascript": "^7.0.5",
"**/@xmldom/xmldom": "^0.9.10",
"**/svgo": "^3.3.3",
"**/flatted": "^3.4.2",
"**/follow-redirects": "^1.16.0",
"**/qs": "^6.14.2",
"**/picomatch": "^4.0.4",
"**/brace-expansion": "^2.0.3",
"**/minimatch": "^9.0.7",
"**/tar": "^6.2.1"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}