@offckb/cli 0.4.4-canary-892fc96.0 → 0.4.5-canary-8bcdc40.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/README.md +27 -0
- package/build/index.js +514 -291
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -142,6 +142,33 @@ offckb create <your-project-name> -c <your-contract-name>
|
|
|
142
142
|
```
|
|
143
143
|
- The `-c` option is optional, if not provided, the contract name defaults to `hello-world`.
|
|
144
144
|
|
|
145
|
+
**Note for Windows Users:**
|
|
146
|
+
|
|
147
|
+
To run mock tests in the generated project, you need to manually install `ckb-debugger` until [this upstream fix about ckb-testtool wasm](https://github.com/nervosnetwork/ckb-js-vm/pull/98) is applied.
|
|
148
|
+
|
|
149
|
+
**Installation Steps:**
|
|
150
|
+
|
|
151
|
+
1. Download the latest `ckb-debugger` release for Windows from the [releases page](https://github.com/nervosnetwork/ckb-standalone-debugger/releases)
|
|
152
|
+
2. Extract the downloaded archive (e.g., `ckb-debugger-win64.zip`)
|
|
153
|
+
3. Add the extracted binary to your system PATH:
|
|
154
|
+
- Open "System Properties" → "Environment Variables"
|
|
155
|
+
- Under "System variables" or "User variables", find and edit the `Path` variable
|
|
156
|
+
- Click "New" and add the full path to the folder containing `ckb-debugger.exe`
|
|
157
|
+
- Click "OK" to save
|
|
158
|
+
4. Verify installation by opening a new terminal and running:
|
|
159
|
+
```sh
|
|
160
|
+
ckb-debugger --version
|
|
161
|
+
```
|
|
162
|
+
5. Disable WASM debugger in your mock test file:
|
|
163
|
+
- Open the mock test file (e.g., `<your-contract-name>.mock.test.ts`)
|
|
164
|
+
- Comment out or delete the `verifier.setWasmDebuggerEnabled(true)` line:
|
|
165
|
+
```typescript
|
|
166
|
+
// When using native ckb-debugger, comment out or delete the following line:
|
|
167
|
+
// verifier.setWasmDebuggerEnabled(true);
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
After completing these steps, `npm run test` should pass without mock test failures.
|
|
171
|
+
|
|
145
172
|
### 3. Deploy Your Contract {#deploy-contract}
|
|
146
173
|
|
|
147
174
|
```sh
|