@offckb/cli 0.3.0-canary-5f5a3b5.0 → 0.3.0-rc1

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.
Files changed (2) hide show
  1. package/README.md +31 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![npm](https://img.shields.io/npm/l/@offckb/cli.svg?maxAge=1000)](https://github.com/jeffijoe/@offckb/cli/blob/master/LICENSE.md)
7
7
  [![node](https://img.shields.io/node/v/@offckb/cli.svg?maxAge=1000)](https://www.npmjs.com/package/@offckb/cli)
8
8
 
9
- **CKB local development network for your first try.**
9
+ CKB local development network for your first try.
10
10
 
11
11
  - One-line command to start a devnet
12
12
  - No docker required
@@ -14,7 +14,9 @@
14
14
  - Built-in scripts like [Omnilock](https://github.com/cryptape/omnilock) and [Spore-contract](https://github.com/sporeprotocol/spore-contract)
15
15
  - Multiple minimal dApp templates to learn and get your hands dirty
16
16
 
17
- Start building on CKB blockchain, right now, right away!
17
+ **Migrate from v0.2.x to v0.3.x:**
18
+
19
+ There are BREAKING CHANGES between v0.2.x and v0.3.x, make sure to read the [migration guide](/docs/migration.md) before upgrading.
18
20
 
19
21
  ## Table of Contents
20
22
 
@@ -202,6 +204,33 @@ Everytime you run a transaction, you can debug it with the transaction hash:
202
204
  offckb debug <transaction-hash>
203
205
  ```
204
206
 
207
+ It will verify all the scripts in the transaction and print the detailed info in the terminal.
208
+
209
+ ```sh
210
+ offckb debug --tx-hash 0x64c936ee78107450d49e57b7453dce9031ce68b056b2f1cdad5c2218ab7232ad
211
+ Dump transaction successfully
212
+
213
+ ******************************
214
+ ****** Input[0].Lock ******
215
+
216
+ hello, this is new add!
217
+ Hashed 1148 bytes in sighash_all
218
+ sighash_all = 5d9b2340738ee28729fc74eba35e6ef969878354fe556bd89d5b6f62642f6e50
219
+ event = {"pubkey":"45c41f21e1cf715fa6d9ca20b8e002a574db7bb49e96ee89834c66dac5446b7a","tags":[["ckb_sighash_all","5d9b2340738ee28729fc74eba35e6ef969878354fe556bd89d5b6f62642f6e50"]],"created_at":1725339769,"kind":23334,"content":"Signing a CKB transaction\n\nIMPORTANT: Please verify the integrity and authenticity of connected Nostr client before signing this message\n","id":"90af298075ac878901282e23ce35b24e584b7727bc545e149fc259875a23a7aa","sig":"b505e7d5b643d2e6b1f0e5581221bbfe3c37f17534715e51eecf5ff97a2e1b828a3d767eb712555c78a8736e9085b4960458014fa171d5d169a1b267b186d2f3"}
220
+ verify_signature costs 3654 k cycles
221
+ Run result: 0
222
+ Total cycles consumed: 4013717(3.8M)
223
+ Transfer cycles: 44947(43.9K), running cycles: 3968770(3.8M)
224
+
225
+ ******************************
226
+ ****** Output[0].Type ******
227
+
228
+ verify_signature costs 3654 k cycles
229
+ Run result: 0
230
+ Total cycles consumed: 3916670(3.7M)
231
+ Transfer cycles: 43162(42.2K), running cycles: 3873508(3.7M)
232
+ ```
233
+
205
234
  If you want to debug a single cell script in the transaction, you can use the following command:
206
235
 
207
236
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@offckb/cli",
3
- "version": "0.3.0-canary-5f5a3b5.0",
3
+ "version": "0.3.0-rc1",
4
4
  "description": "ckb development network for your first try",
5
5
  "author": "CKB EcoFund",
6
6
  "license": "MIT",