@offckb/cli 0.4.0-canary-9c69784.0 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +13 -0
  2. package/build/index.js +23994 -25700
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -33,6 +33,7 @@ There are BREAKING CHANGES between v0.3.x and v0.4.x, make sure to read the [mig
33
33
  - [List All Settings](#list-all-settings)
34
34
  - [Set CKB version](#set-ckb-version)
35
35
  - [Set Network Proxy](#set-network-proxy)
36
+ - [Log-Level](#log-level)
36
37
  - [Built-in scripts](#built-in-scripts)
37
38
  - [Accounts](#accounts)
38
39
  - [About CCC](#about-ccc)
@@ -203,6 +204,8 @@ offckb deploy --type-id --network <devnet/testnet>
203
204
 
204
205
  Your deployed scripts info will be be listed in the `output-folder-path` which you defined in the command.
205
206
 
207
+ Note that upgrades are keyed by the contract‘s artifact name. If you plan to upgrade with `--type-id`, do not rename your contract artifact (e.g. keep `hello-world.bc`). Renaming it makes the offckb unable to find the previous Type ID info from the `output-folder-path` and will create a new Type ID.
208
+
206
209
  ### Debug a transaction
207
210
 
208
211
  If you are interacting the CKB devnet via the proxy RPC server(`localhost:28114`), all the failed transactions will be dumped and recorded so you can debug them later.
@@ -291,6 +294,16 @@ offckb config get proxy
291
294
  > No Proxy.
292
295
  ```
293
296
 
297
+ ## Log-Level
298
+
299
+ You can tweak env `LOG_LEVEL` to control the `offckb` log level.
300
+
301
+ For example, set `LOG_LEVEL=debug` gives you more outputs of offckb proxy RPC.
302
+
303
+ ```sh
304
+ LOG_LEVEL=debug offckb node
305
+ ```
306
+
294
307
  ## Built-in scripts
295
308
 
296
309
  - [x] xUDT https://github.com/nervosnetwork/rfcs/pull/428