@offckb/cli 0.1.0-rc3 → 0.1.0-rc4

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 (42) hide show
  1. package/README.md +29 -12
  2. package/{docker → ckb}/devnet/specs/dev.toml +1 -1
  3. package/dist/cfg/const.d.ts +1 -0
  4. package/dist/cfg/const.js +4 -3
  5. package/dist/cfg/select.d.ts +1 -0
  6. package/dist/cfg/select.js +52 -0
  7. package/dist/cli.js +34 -16
  8. package/dist/cmd/build-lumos-config.d.ts +2 -2
  9. package/dist/cmd/build-lumos-config.js +92 -69
  10. package/dist/cmd/clean.d.ts +1 -0
  11. package/dist/cmd/clean.js +21 -0
  12. package/dist/cmd/genkey.js +3 -7
  13. package/dist/cmd/init-chain.js +1 -43
  14. package/dist/cmd/init.d.ts +1 -1
  15. package/dist/cmd/init.js +10 -4
  16. package/dist/util.d.ts +5 -0
  17. package/dist/util.js +101 -1
  18. package/package.json +8 -8
  19. package/templates/transfer/index.html +13 -0
  20. package/templates/transfer/index.tsx +89 -0
  21. package/templates/xudt/lib.ts +153 -0
  22. package/templates/xudt/package.json +29 -0
  23. package/templates/xudt/tsconfig.json +10 -0
  24. package/templates/xudt/yarn.lock +2315 -0
  25. package/docker/docker-compose.yml +0 -37
  26. /package/{docker → ckb}/devnet/check-ckb-started-successfully.sh +0 -0
  27. /package/{docker → ckb}/devnet/ckb-miner.toml +0 -0
  28. /package/{docker → ckb}/devnet/ckb.toml +0 -0
  29. /package/{docker → ckb}/devnet/default.db-options +0 -0
  30. /package/{docker → ckb}/devnet/specs/always_success +0 -0
  31. /package/{docker → ckb}/devnet/specs/anyone_can_pay +0 -0
  32. /package/{docker → ckb}/devnet/specs/omni_lock +0 -0
  33. /package/{docker → ckb}/devnet/specs/sudt +0 -0
  34. /package/{docker → ckb}/devnet/specs/xudt_rce +0 -0
  35. /package/{template → templates}/ckb.ts +0 -0
  36. /package/{template → templates}/config.json +0 -0
  37. /package/{template → templates/transfer}/lib.ts +0 -0
  38. /package/{template → templates/transfer}/package.json +0 -0
  39. /package/{template → templates/transfer}/tsconfig.json +0 -0
  40. /package/{template → templates/transfer}/yarn.lock +0 -0
  41. /package/{template → templates/xudt}/index.html +0 -0
  42. /package/{template → templates/xudt}/index.tsx +0 -0
@@ -1,37 +0,0 @@
1
- # Requires docker-compose >= 1.29.0
2
- version: '3.8'
3
-
4
- services:
5
- # TODO: update CKB version
6
- ckb:
7
- image: nervos/ckb:v0.113.1
8
- user: root
9
- ports:
10
- - 8114:8114 # rpc
11
- - 8115:8115 # p2p network
12
- volumes:
13
- - ./devnet:/var/lib/ckb
14
- command: [ "run", "-C", "/var/lib/ckb" ]
15
-
16
- # TODO: update CKB version
17
- ckb-miner:
18
- init: true
19
- image: nervos/ckb:v0.113.1
20
- user: root
21
- volumes:
22
- - ./devnet:/var/lib/ckb
23
- command: [ "miner", "-C", "/var/lib/ckb" ]
24
-
25
- # "nervos/ckb" image have no http clients to do health check for CKB.
26
- # This short-term service act as a workaround to do health check.
27
- check-ckb-started-successfully:
28
- image: curlimages/curl
29
- volumes:
30
- - ./devnet:/var/lib/ckb
31
- command: [ 'http://ckb:8114', '-H', 'content-type: application/json', '-d', '{ "id": 2, "jsonrpc": "2.0", "method": "get_tip_block_number", "params": [] }' ]
32
- deploy:
33
- restart_policy:
34
- condition: on-failure
35
- max_attempts: 1000
36
- depends_on:
37
- - ckb
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes