cocoon-sdk 0.1.2 → 0.1.3
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 +17 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,8 +57,22 @@ for await (const chunk of stream) {
|
|
|
57
57
|
|
|
58
58
|
## One-Time Setup (Repo Helper Scripts)
|
|
59
59
|
|
|
60
|
-
The npm package is a library.
|
|
61
|
-
|
|
60
|
+
The npm package is a **library only** (no bundled `scripts/setup.ts` files inside `node_modules`).
|
|
61
|
+
|
|
62
|
+
If you want the fully automated setup flow (cert/key generation + register + secret hash), run helper scripts from the GitHub repo:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
git clone https://github.com/indie-cto/telegram-cocoon-ts-sdk.git
|
|
66
|
+
cd telegram-cocoon-ts-sdk
|
|
67
|
+
npm install
|
|
68
|
+
cp .env.example .env
|
|
69
|
+
# fill MNEMONIC in .env
|
|
70
|
+
npm run cocoon:setup
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
After setup, copy printed values (`SECRET`, TLS paths, `PROXY_URL`) into your app env.
|
|
74
|
+
|
|
75
|
+
Quick links:
|
|
62
76
|
|
|
63
77
|
- `https://github.com/indie-cto/telegram-cocoon-ts-sdk`
|
|
64
78
|
- `scripts/setup.ts`
|
|
@@ -106,7 +120,7 @@ Practical guidance:
|
|
|
106
120
|
|
|
107
121
|
- smoke setup: typically `2-3 TON` can be enough
|
|
108
122
|
- stable usage: plan around `15-20 TON` total working balance
|
|
109
|
-
- verify live values with repo helper
|
|
123
|
+
- verify live values with repo helper (`scripts/discover.ts`)
|
|
110
124
|
|
|
111
125
|
## Security
|
|
112
126
|
|