@coti-io/coti-wallet-plugin 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/LICENSE +201 -0
- package/README.md +76 -0
- package/dist/index.d.mts +4740 -0
- package/dist/index.d.ts +4740 -0
- package/dist/index.js +12720 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +12564 -0
- package/dist/index.mjs.map +1 -0
- package/docs/npm-publish-checklist.md +47 -0
- package/package.json +101 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# NPM Publish Checklist
|
|
2
|
+
|
|
3
|
+
Use this checklist for the final PR before publishing `@coti-io/coti-wallet-plugin`.
|
|
4
|
+
|
|
5
|
+
## Package Decision
|
|
6
|
+
|
|
7
|
+
- Publish package: `@coti-io/coti-wallet-plugin`
|
|
8
|
+
- Version: `0.1.0`
|
|
9
|
+
- Access: public scoped package (`publishConfig.access = "public"`)
|
|
10
|
+
- License: Apache 2.0, matching the repository `LICENSE` (same as `@coti-io/coti-sdk-typescript`)
|
|
11
|
+
|
|
12
|
+
## Required Validation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm run clean
|
|
16
|
+
npm run typecheck
|
|
17
|
+
npm test -- --run
|
|
18
|
+
npm run build
|
|
19
|
+
npm pack --dry-run
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`prepublishOnly` runs the same clean, typecheck, test, and build gate before `npm publish`.
|
|
23
|
+
|
|
24
|
+
## Tarball Smoke
|
|
25
|
+
|
|
26
|
+
Before publishing, install the packed tarball into a clean app and import the public entrypoint. This release was smoke-tested with:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install ./coti-io-coti-wallet-plugin-0.1.0.tgz \
|
|
30
|
+
react@18.3.1 react-dom@18.3.1 ethers@6.16.0 viem@2.47.10 wagmi@2.14.0 \
|
|
31
|
+
@tanstack/react-query@5.62.0 @rainbow-me/rainbowkit@2.2.0 \
|
|
32
|
+
@metamask/providers@22.1.1 @coti-io/coti-sdk-typescript@1.0.8
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Then verify the package imports:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
node --input-type=module -e "const m = await import('@coti-io/coti-wallet-plugin'); if (!m.PrivacyBridgeProvider || !m.WagmiRainbowKitProvider) throw new Error('missing exports')"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Publish
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npm publish --access public
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Make sure the publishing account has access to the COTI npm organization before running the command.
|
package/package.json
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@coti-io/coti-wallet-plugin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "COTI Wallet Plugin — high-level abstraction for Private Token (pToken) operations across EIP-1193 wallets",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+ssh://git@github.com/coti-io/coti-wallet-plugin.git"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/coti-io/coti-wallet-plugin#readme",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/coti-io/coti-wallet-plugin/issues"
|
|
12
|
+
},
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"module": "dist/index.mjs",
|
|
15
|
+
"types": "dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.mjs",
|
|
20
|
+
"require": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"docs",
|
|
26
|
+
"README.md",
|
|
27
|
+
"LICENSE"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsup",
|
|
31
|
+
"dev": "tsup --watch",
|
|
32
|
+
"lint": "eslint src/ tests/",
|
|
33
|
+
"lint:fix": "eslint src/ tests/ --fix",
|
|
34
|
+
"typecheck": "tsc --noEmit",
|
|
35
|
+
"format": "prettier --write 'src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}'",
|
|
36
|
+
"format:check": "prettier --check 'src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}'",
|
|
37
|
+
"clean": "rm -rf dist",
|
|
38
|
+
"prepublishOnly": "npm run clean && npm run typecheck && npm test -- --run && npm run build",
|
|
39
|
+
"test": "vitest run",
|
|
40
|
+
"test:watch": "vitest",
|
|
41
|
+
"test:coverage": "vitest run --coverage"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"coti",
|
|
45
|
+
"wallet",
|
|
46
|
+
"privacy",
|
|
47
|
+
"ptoken",
|
|
48
|
+
"erc20",
|
|
49
|
+
"metamask",
|
|
50
|
+
"snap",
|
|
51
|
+
"bridge"
|
|
52
|
+
],
|
|
53
|
+
"author": "COTI",
|
|
54
|
+
"license": "Apache 2.0",
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
},
|
|
58
|
+
"packageManager": "npm@11.9.0",
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@coti-io/coti-ethers": "^1.0.0",
|
|
61
|
+
"@coti-io/pod-sdk": "^0.1.3"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"@coti-io/coti-sdk-typescript": "^1.0.8",
|
|
65
|
+
"@metamask/providers": "^22.0.0",
|
|
66
|
+
"@rainbow-me/rainbowkit": "^2.0.0",
|
|
67
|
+
"@tanstack/react-query": "^5.0.0",
|
|
68
|
+
"ethers": "^6.0.0",
|
|
69
|
+
"react": "^18.0.0",
|
|
70
|
+
"react-dom": "^18.0.0",
|
|
71
|
+
"viem": "^2.0.0",
|
|
72
|
+
"wagmi": "^2.0.0"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@coti-io/coti-sdk-typescript": "^1.0.8",
|
|
76
|
+
"@eslint/js": "^10.0.1",
|
|
77
|
+
"@metamask/providers": "^22.1.1",
|
|
78
|
+
"@rainbow-me/rainbowkit": "^2.2.0",
|
|
79
|
+
"@tanstack/react-query": "^5.62.0",
|
|
80
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
81
|
+
"@testing-library/react": "^14.3.1",
|
|
82
|
+
"@types/react": "^18.3.18",
|
|
83
|
+
"@types/react-dom": "^18.3.7",
|
|
84
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
85
|
+
"eslint": "^10.4.1",
|
|
86
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
87
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
88
|
+
"ethers": "^6.16.0",
|
|
89
|
+
"happy-dom": "^20.9.0",
|
|
90
|
+
"jsdom": "^29.1.1",
|
|
91
|
+
"prettier": "^3.8.4",
|
|
92
|
+
"react": "^18.3.1",
|
|
93
|
+
"react-dom": "^18.3.1",
|
|
94
|
+
"tsup": "^8.0.0",
|
|
95
|
+
"typescript": "~5.9.3",
|
|
96
|
+
"typescript-eslint": "^8.61.0",
|
|
97
|
+
"viem": "^2.47.10",
|
|
98
|
+
"vitest": "^4.1.8",
|
|
99
|
+
"wagmi": "^2.14.0"
|
|
100
|
+
}
|
|
101
|
+
}
|