bitxhub/scripts/quick_start
zhourong 4d944cab1d feat(*): add asset exchange sample 2020-09-10 19:19:47 +08:00
..
.gitignore feat(*): init project 2020-03-30 00:11:21 +08:00
README.md feat(*): init project 2020-03-30 00:11:21 +08:00
chaincode.sh feat(*): add asset exchange sample 2020-09-10 19:19:47 +08:00
config-template.yaml feat(*): init project 2020-03-30 00:11:21 +08:00
contracts.zip feat(*): init project 2020-03-30 00:11:21 +08:00
fabric_pier.sh fix(srcipt): rename fabric rule file 2020-04-26 11:22:11 +08:00
fabric_rule.wasm fix(scripts): fix fabric wasm file input args 2020-04-26 10:46:15 +08:00
ffn.sh build(quick_start):add two fabric clusters in one machine 2020-04-08 14:15:22 +08:00

README.md

Quick start

Fabric first network

Download script:

wget https://github.com/meshplus/bitxhub/raw/master/scripts/quick_start/ffn.sh
./ffn.sh up // build up fabric first network
./ffn.sh down // clear up fabric first network
./ffn.sh restart // restart fabric first network

./ffn.sh up will generate crypto-config.

Chaincode

Download script:

wget https://github.com/meshplus/bitxhub/raw/master/scripts/quick_start/chaincode.sh
./chaincode.sh install <fabric_ip> // Install broker, transfer and data_swapper chaincode
./chaincode.sh upgrade <fabric_ip> <chaincode_version> 
./chaincode.sh init <fabric_ip> // Init broker chaincode
./chaincode.sh get_balance <fabric_ip> // Query Alice balance
./chaincode.sh get_data <fabric_ip> // Query the value of 'path'
./chaincode.sh interchain_transfer <fabric_ip> <target_appchain_id>
./chaincode.sh interchain_gt <fabric_ip> <target_appchain_id>

Fabric pier

Download script:

wget https://github.com/meshplus/bitxhub/raw/master/scripts/quick_start/fabric_pir.sh
./fabric_pier.sh start  <bitxhub_addr> <fabric_ip> <pprof_port> 
./fabric_pier.sh restart  <bitxhub_addr> <fabric_ip> <pprof_port> 
./fabric_pier.sh id