@ducat-unit/ducat-snap 0.1.0
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/AUDIT_SCOPE.md +46 -0
- package/DEMO_SCRIPT.md +35 -0
- package/DEPENDENCY_AUDIT.md +36 -0
- package/LICENSE +21 -0
- package/LISTING.md +44 -0
- package/PRIVACY.md +13 -0
- package/README.md +234 -0
- package/RELEASE_CHECKLIST.md +51 -0
- package/SECURITY.md +13 -0
- package/SNAPPER_REVIEW.md +34 -0
- package/SUPPORT.md +9 -0
- package/dist/bundle.js +1 -0
- package/images/icon.svg +4 -0
- package/package.json +80 -0
- package/snap.manifest.json +52 -0
package/images/icon.svg
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="64" height="64" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M18.6813 36.4113C28.4593 36.4113 36.386 28.4784 36.386 18.6927C36.386 8.90699 28.4593 0.974121 18.6813 0.974121C8.90324 0.974121 0.976562 8.90699 0.976562 18.6927C0.976562 28.4784 8.90324 36.4113 18.6813 36.4113Z" stroke="#DDDDDD" stroke-width="1.94842" stroke-miterlimit="10"/>
|
|
3
|
+
<path d="M18.6684 20.0174C19.3223 20.0174 19.8524 19.4869 19.8524 18.8324C19.8524 18.178 19.3223 17.6475 18.6684 17.6475C18.0145 17.6475 17.4844 18.178 17.4844 18.8324C17.4844 19.4869 18.0145 20.0174 18.6684 20.0174Z" fill="#DDDDDD"/>
|
|
4
|
+
</svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ducat-unit/ducat-snap",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Ducat Bitcoin account and signing Snap for MetaMask.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ducat",
|
|
7
|
+
"metamask-snap",
|
|
8
|
+
"bitcoin",
|
|
9
|
+
"signet",
|
|
10
|
+
"mutinynet",
|
|
11
|
+
"psbt"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/DUCAT-UNIT/ducat-snap#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/DUCAT-UNIT/ducat-snap/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/DUCAT-UNIT/ducat-snap.git"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"main": "./dist/bundle.js",
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=20"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist/",
|
|
28
|
+
"images/",
|
|
29
|
+
"snap.manifest.json",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE",
|
|
32
|
+
"PRIVACY.md",
|
|
33
|
+
"SECURITY.md",
|
|
34
|
+
"SUPPORT.md",
|
|
35
|
+
"RELEASE_CHECKLIST.md",
|
|
36
|
+
"LISTING.md",
|
|
37
|
+
"DEMO_SCRIPT.md",
|
|
38
|
+
"AUDIT_SCOPE.md",
|
|
39
|
+
"SNAPPER_REVIEW.md",
|
|
40
|
+
"DEPENDENCY_AUDIT.md"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "mm-snap build",
|
|
44
|
+
"manifest": "mm-snap manifest",
|
|
45
|
+
"serve": "mm-snap serve",
|
|
46
|
+
"start": "mm-snap watch",
|
|
47
|
+
"test": "jest",
|
|
48
|
+
"type-check": "tsc --noEmit",
|
|
49
|
+
"verify": "npm run type-check && npm test && npm run build && npm run manifest",
|
|
50
|
+
"lint": "npm run type-check && npm test",
|
|
51
|
+
"audit:prod": "npm audit --omit=dev",
|
|
52
|
+
"snapper": "npx --yes @sayfer_io/snapper --path . --output snapper-report.json",
|
|
53
|
+
"verify:metadata": "node scripts/verify-release-metadata.js",
|
|
54
|
+
"verify:release-manifest": "node scripts/verify-release-manifest.js",
|
|
55
|
+
"verify:fixtures": "DUCAT_REQUIRE_SUBMISSION_FIXTURES=1 jest --runTestsByPath src/__tests__/submission-fixtures.test.ts --runInBand",
|
|
56
|
+
"verify:submission-ready": "node scripts/verify-submission-ready.js",
|
|
57
|
+
"verify:release": "bash scripts/verify-release.sh",
|
|
58
|
+
"pack:dry-run": "npm pack --dry-run",
|
|
59
|
+
"prepublishOnly": "npm run verify:release"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@bitcoin-js/tiny-secp256k1-asmjs": "2.2.4",
|
|
63
|
+
"@noble/hashes": "1.8.0",
|
|
64
|
+
"bitcoinjs-lib": "6.1.7",
|
|
65
|
+
"buffer": "6.0.3"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@metamask/snaps-cli": "8.4.1",
|
|
69
|
+
"@metamask/snaps-sdk": "11.1.1",
|
|
70
|
+
"@types/jest": "29.5.14",
|
|
71
|
+
"@types/node": "22.19.21",
|
|
72
|
+
"jest": "29.7.0",
|
|
73
|
+
"ts-jest": "29.4.11",
|
|
74
|
+
"typescript": "5.9.3"
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public",
|
|
78
|
+
"registry": "https://registry.npmjs.org/"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"description": "Ducat Bitcoin accounts, Ducat-aware confirmations, and PSBT/message signing for MetaMask.",
|
|
4
|
+
"proposedName": "Ducat",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/DUCAT-UNIT/ducat-snap.git"
|
|
8
|
+
},
|
|
9
|
+
"source": {
|
|
10
|
+
"shasum": "YScs5bbbLPPE3Re9W2BA3y+LICNC8M5GKmChP/TM0k0=",
|
|
11
|
+
"location": {
|
|
12
|
+
"npm": {
|
|
13
|
+
"filePath": "dist/bundle.js",
|
|
14
|
+
"iconPath": "images/icon.svg",
|
|
15
|
+
"packageName": "@ducat-unit/ducat-snap",
|
|
16
|
+
"registry": "https://registry.npmjs.org/"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"initialPermissions": {
|
|
21
|
+
"endowment:rpc": {
|
|
22
|
+
"allowedOrigins": [
|
|
23
|
+
"http://localhost:3000",
|
|
24
|
+
"http://localhost:3001",
|
|
25
|
+
"http://localhost:3002",
|
|
26
|
+
"http://localhost:3003",
|
|
27
|
+
"https://app.ducatprotocol.com",
|
|
28
|
+
"https://dev-git-feat-metamask-snap-connector-ducat.vercel.app",
|
|
29
|
+
"https://dev.app.ducatprotocol.com",
|
|
30
|
+
"https://staging.app.ducatprotocol.com"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"snap_getBip32Entropy": [
|
|
34
|
+
{
|
|
35
|
+
"path": ["m", "84'", "1'"],
|
|
36
|
+
"curve": "secp256k1"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": ["m", "86'", "1'"],
|
|
40
|
+
"curve": "secp256k1"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"snap_dialog": {},
|
|
44
|
+
"snap_manageState": {},
|
|
45
|
+
"snap_notify": {},
|
|
46
|
+
"endowment:page-home": {},
|
|
47
|
+
"endowment:network-access": {},
|
|
48
|
+
"endowment:lifecycle-hooks": {}
|
|
49
|
+
},
|
|
50
|
+
"platformVersion": "11.1.1",
|
|
51
|
+
"manifestVersion": "0.1"
|
|
52
|
+
}
|