Skip to content

Commit

Permalink
add readme-#180
Browse files Browse the repository at this point in the history
  • Loading branch information
Manish committed Aug 5, 2022
1 parent c77fd5d commit 083955e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions devnet/docker/icon-bsc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Run bsc node with
cd icon-bridge/devnet/docker/bsc-node
docker run -d -p 8545:8545 -p 8546:8546 bsc-node

Run goloop node using "icon" docker image from
icon-bridge/devnet/docker/icon-hmny/src/docker-compose.nodes.yml

To build javascore
make buildsc

Provide parameters in scripts/config.sh

Deploy smart contract with
cd ./scripts/
./deploysc.sh

Run relay with
export bmr_config_json=$(cat ./_ixh/bmr.config.json)
docker-compose -f docker-compose-bmr.yml up -d
2 changes: 1 addition & 1 deletion devnet/docker/icon-bsc/scripts/token.javascore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ configure_javascore_add_bts() {
--method addService \
--value 0 \
--param _addr=$(cat btp.icon.bts) \
--param _svc=$SVC_NAME | jq -r . >tx/addService.icon
--param _svc="bts" | jq -r . >tx/addService.icon
sleep 2
ensure_txresult tx/addService.icon
}
Expand Down
2 changes: 1 addition & 1 deletion devnet/docker/icon-bsc/scripts/token.solidity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ configure_solidity_add_bts_service() {
echo "adding bts service into BMC"
cd $CONTRACTS_DIR/solidity/bmc
tx=$(truffle exec --network bsc "$SCRIPTS_DIR"/bmc.js \
--method addService --name $SVC_NAME --addr $(cat $CONFIG_DIR/btp.bsc.bts.periphery))
--method addService --name "bts" --addr $(cat $CONFIG_DIR/btp.bsc.bts.periphery))
echo "$tx" >$CONFIG_DIR/tx/addService.bsc
}

Expand Down

0 comments on commit 083955e

Please sign in to comment.