@ducat-unit/wallet-snap 0.3.1 → 0.3.2
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/README.md +64 -18
- package/dist/bundle.js +1 -1
- package/package.json +11 -4
- package/snap.manifest.json +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ducat-unit/wallet-snap",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Ducat Bitcoin account and signing Snap for MetaMask.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ducat",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"verify": "npm run type-check && npm test && npm run build && npm run manifest",
|
|
41
41
|
"lint": "npm run type-check && npm test",
|
|
42
42
|
"audit:prod": "npm audit --omit=dev",
|
|
43
|
-
"build:harness-dev": "DUCAT_SNAP_ARTIFACT_POLICY=development DUCAT_SNAP_DEV_ORIGINS=http://localhost:3000,http://localhost:8075,http://frontend:3000,http://ducat-admin:8075 DUCAT_SNAP_DEV_UNPROMPTED=false DUCAT_SNAP_DEBUG=false node scripts/prepare-dev-build.mjs && DUCAT_SNAP_ARTIFACT_POLICY=development DUCAT_SNAP_DEV_ORIGINS=http://localhost:3000,http://localhost:8075,http://frontend:3000,http://ducat-admin:8075 DUCAT_SNAP_DEV_UNPROMPTED=false DUCAT_SNAP_DEBUG=false mm-snap build --config snap.config.dev.ts && DUCAT_SNAP_ARTIFACT_POLICY=development DUCAT_SNAP_DEV_ORIGINS=http://localhost:3000,http://localhost:8075,http://frontend:3000,http://ducat-admin:8075 node scripts/apply-dev-origins.mjs .snap/dev/snap.manifest.json && mm-snap manifest --config snap.config.dev.ts --fix",
|
|
43
|
+
"build:harness-dev": "DUCAT_SNAP_ARTIFACT_POLICY=development DUCAT_SNAP_DEV_ORIGINS=http://localhost:3000,http://localhost:8075,http://frontend:3000,http://ducat-admin:8075,https://dev.ducatprotocol.com DUCAT_SNAP_DEV_UNPROMPTED=false DUCAT_SNAP_DEBUG=false node scripts/prepare-dev-build.mjs && DUCAT_SNAP_ARTIFACT_POLICY=development DUCAT_SNAP_DEV_ORIGINS=http://localhost:3000,http://localhost:8075,http://frontend:3000,http://ducat-admin:8075,https://dev.ducatprotocol.com DUCAT_SNAP_DEV_UNPROMPTED=false DUCAT_SNAP_DEBUG=false mm-snap build --config snap.config.dev.ts && DUCAT_SNAP_ARTIFACT_POLICY=development DUCAT_SNAP_DEV_ORIGINS=http://localhost:3000,http://localhost:8075,http://frontend:3000,http://ducat-admin:8075,https://dev.ducatprotocol.com node scripts/apply-dev-origins.mjs .snap/dev/snap.manifest.json && mm-snap manifest --config snap.config.dev.ts --fix",
|
|
44
44
|
"harness:accounts": "DUCAT_NETWORK=mutinynet node scripts/snap-simulation-harness.mjs accounts",
|
|
45
45
|
"harness:smoke-signing": "DUCAT_SNAP_DIR=.snap/dev DUCAT_HARNESS_ORIGIN=http://localhost:3000 DUCAT_NETWORK=regtest node scripts/snap-simulation-harness.mjs smoke-signing",
|
|
46
46
|
"harness:session": "DUCAT_SNAP_DIR=.snap/dev DUCAT_HARNESS_ORIGIN=http://localhost:3000 DUCAT_NETWORK=regtest node scripts/snap-simulation-harness.mjs session",
|
|
@@ -51,12 +51,16 @@
|
|
|
51
51
|
"test:release-policy": "node --test scripts/release-policy.test.mjs scripts/package-policy.test.mjs",
|
|
52
52
|
"verify:release": "bash scripts/verify-release.sh",
|
|
53
53
|
"pack:dry-run": "npm pack --dry-run --json | node scripts/package-policy.mjs",
|
|
54
|
-
"prepublishOnly": "npm run verify:release"
|
|
54
|
+
"prepublishOnly": "npm run verify:release",
|
|
55
|
+
"preview:flask": "npm run build:harness-dev && node scripts/serve-flask-preview.mjs",
|
|
56
|
+
"preview:serve": "node scripts/serve-flask-preview.mjs",
|
|
57
|
+
"test:flask-preview": "node --test scripts/flask-preview/*.test.mjs"
|
|
55
58
|
},
|
|
56
59
|
"dependencies": {
|
|
57
60
|
"@bitcoin-js/tiny-secp256k1-asmjs": "2.2.4",
|
|
58
|
-
"@ducat-unit/core": "
|
|
61
|
+
"@ducat-unit/core": "0.24.0-beta.1",
|
|
59
62
|
"@noble/hashes": "1.8.0",
|
|
63
|
+
"@scure/btc-signer": "^2.2.0",
|
|
60
64
|
"bitcoinjs-lib": "6.1.7",
|
|
61
65
|
"buffer": "6.0.3"
|
|
62
66
|
},
|
|
@@ -74,5 +78,8 @@
|
|
|
74
78
|
"publishConfig": {
|
|
75
79
|
"access": "public",
|
|
76
80
|
"registry": "https://registry.npmjs.org/"
|
|
81
|
+
},
|
|
82
|
+
"overrides": {
|
|
83
|
+
"zod": "4.6.7"
|
|
77
84
|
}
|
|
78
85
|
}
|
package/snap.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.3.
|
|
2
|
+
"version": "0.3.2",
|
|
3
3
|
"description": "Ducat Bitcoin accounts, Ducat-aware confirmations, and PSBT/message signing for MetaMask.",
|
|
4
4
|
"proposedName": "Ducat",
|
|
5
5
|
"repository": {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "git+https://github.com/DUCAT-UNIT/ducat-snap.git"
|
|
8
8
|
},
|
|
9
9
|
"source": {
|
|
10
|
-
"shasum": "
|
|
10
|
+
"shasum": "AnmfRLTvGFBtLzEVD4FRgIbboFYRU93GGr9KK69P+zM=",
|
|
11
11
|
"location": {
|
|
12
12
|
"npm": {
|
|
13
13
|
"filePath": "dist/bundle.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"endowment:rpc": {
|
|
22
22
|
"allowedOrigins": [
|
|
23
23
|
"https://app.ducatprotocol.com",
|
|
24
|
-
"https://dev.
|
|
25
|
-
"https://
|
|
24
|
+
"https://dev.ducatprotocol.com",
|
|
25
|
+
"https://test.ducatprotocol.com"
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"snap_getBip32Entropy": [
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"snap_manageState": {},
|
|
56
56
|
"snap_notify": {},
|
|
57
57
|
"endowment:page-home": {},
|
|
58
|
+
"endowment:ethereum-provider": {},
|
|
58
59
|
"endowment:network-access": {},
|
|
59
60
|
"endowment:lifecycle-hooks": {}
|
|
60
61
|
},
|