@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.
- package/README.md +29 -12
- package/{docker → ckb}/devnet/specs/dev.toml +1 -1
- package/dist/cfg/const.d.ts +1 -0
- package/dist/cfg/const.js +4 -3
- package/dist/cfg/select.d.ts +1 -0
- package/dist/cfg/select.js +52 -0
- package/dist/cli.js +34 -16
- package/dist/cmd/build-lumos-config.d.ts +2 -2
- package/dist/cmd/build-lumos-config.js +92 -69
- package/dist/cmd/clean.d.ts +1 -0
- package/dist/cmd/clean.js +21 -0
- package/dist/cmd/genkey.js +3 -7
- package/dist/cmd/init-chain.js +1 -43
- package/dist/cmd/init.d.ts +1 -1
- package/dist/cmd/init.js +10 -4
- package/dist/util.d.ts +5 -0
- package/dist/util.js +101 -1
- package/package.json +8 -8
- package/templates/transfer/index.html +13 -0
- package/templates/transfer/index.tsx +89 -0
- package/templates/xudt/lib.ts +153 -0
- package/templates/xudt/package.json +29 -0
- package/templates/xudt/tsconfig.json +10 -0
- package/templates/xudt/yarn.lock +2315 -0
- package/docker/docker-compose.yml +0 -37
- /package/{docker → ckb}/devnet/check-ckb-started-successfully.sh +0 -0
- /package/{docker → ckb}/devnet/ckb-miner.toml +0 -0
- /package/{docker → ckb}/devnet/ckb.toml +0 -0
- /package/{docker → ckb}/devnet/default.db-options +0 -0
- /package/{docker → ckb}/devnet/specs/always_success +0 -0
- /package/{docker → ckb}/devnet/specs/anyone_can_pay +0 -0
- /package/{docker → ckb}/devnet/specs/omni_lock +0 -0
- /package/{docker → ckb}/devnet/specs/sudt +0 -0
- /package/{docker → ckb}/devnet/specs/xudt_rce +0 -0
- /package/{template → templates}/ckb.ts +0 -0
- /package/{template → templates}/config.json +0 -0
- /package/{template → templates/transfer}/lib.ts +0 -0
- /package/{template → templates/transfer}/package.json +0 -0
- /package/{template → templates/transfer}/tsconfig.json +0 -0
- /package/{template → templates/transfer}/yarn.lock +0 -0
- /package/{template → templates/xudt}/index.html +0 -0
- /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
|
|
File without changes
|