Commit 0e1ce6f3 authored by QM's avatar QM

add dockerRelayerHt.sh

parent 6f99f344
......@@ -679,10 +679,6 @@ function lockEth() {
lock_eth_multisign 0.001 0.001 0.001
lock_eth_multisign 0.001 0.001 0.002
# multisignEthAddr 要有手续费
${CLIA} ethereum transfer -k "${ethDeployKey}" -m 0.0001 -r "${multisignEthAddr}"
sleep 10
# transfer
# shellcheck disable=SC2154
offline_transfer_multisign_Eth_test
......@@ -815,7 +811,7 @@ function StartDockerRelayerDeploy() {
offline_create_bridge_token_eth_YCC
offline_create_bridge_token_eth_ZBC
offline_create_bridge_token_chain33_ETH
offline_create_bridge_token_chain33_ETH "BNB"
offline_create_bridge_token_chain33_BYC
offline_deploy_erc20_chain33_YCC
offline_deploy_erc20_chain33_ZBC
......@@ -1115,27 +1111,27 @@ function AllRelayerMainTest() {
# TestChain33ToEthAssets
# TestChain33ToEthZBCAssets
# TestETH2Chain33Byc
# TestETH2Chain33USDT
TestETH2Chain33USDT
Chain33Cli=${Para8901Cli}
# Chain33Cli=${Para8901Cli}
# lockBty
# lockChain33Ycc
lockEthByc
lockEthUSDT
lockEth
# 离线多签地址转入阈值设大
offline_set_offline_token_Bty 100000000000000 10
offline_set_offline_token_Chain33Ycc 100000000000000 10
offline_set_offline_token_Eth 100000000000000 10
offline_set_offline_token_EthByc 100000000000000 10
offline_set_offline_token_EthUSDT 100000000000000 10
EvmxgoBoss4xCLI="./evmxgoboss4x --rpc_laddr http://${docker_chain33_ip}:8901 --paraName user.p.para."
DeployEvmxgo
TestETH2EVMToChain33
Testethereum2EVMToChain33_byc
Testethereum2EVMToChain33_usdt
# lockEth
# lockEthByc
# lockEthUSDT
#
# # 离线多签地址转入阈值设大
# offline_set_offline_token_Bty 100000000000000 10
# offline_set_offline_token_Chain33Ycc 100000000000000 10
# offline_set_offline_token_Eth 100000000000000 10
# offline_set_offline_token_EthByc 100000000000000 10
# offline_set_offline_token_EthUSDT 100000000000000 10
# EvmxgoBoss4xCLI="./evmxgoboss4x --rpc_laddr http://${docker_chain33_ip}:8901 --paraName user.p.para."
# DeployEvmxgo
# TestETH2EVMToChain33
# Testethereum2EVMToChain33_byc
# Testethereum2EVMToChain33_usdt
echo_addrs
echo -e "${GRE}=========== $FUNCNAME end ===========${NOC}"
......
This diff is collapsed.
......@@ -216,18 +216,19 @@ function offline_create_bridge_token_eth_BTY() {
function offline_create_bridge_token_chain33_ETH() {
# 在 chain33 上创建 bridgeToken ETH
echo -e "${GRE}======= 在 chain33 上创建 bridgeToken ETH ======${NOC}"
${Boss4xCLI} chain33 offline create_bridge_token -c "${chain33BridgeBank}" -s HT -k "${chain33DeployKey}" --chainID "${chain33ID}" -n "create_bridge_token:HT"
echo -e "${GRE}======= 在 chain33 上创建 bridgeToken $1 ======${NOC}"
local symbolName="$1"
${Boss4xCLI} chain33 offline create_bridge_token -c "${chain33BridgeBank}" -s "${symbolName}" -k "${chain33DeployKey}" --chainID "${chain33ID}" -n "create_bridge_token:${symbolName}"
chain33_offline_send "create_bridge_token.txt"
chain33EthBridgeTokenAddr=$(${Chain33Cli} evm query -a "${chain33BridgeBank}" -c "${chain33DeployAddr}" -b "getToken2address(HT)")
echo "HT Token Addr= ${chain33EthBridgeTokenAddr}"
chain33EthBridgeTokenAddr=$(${Chain33Cli} evm query -a "${chain33BridgeBank}" -c "${chain33DeployAddr}" -b "getToken2address(${symbolName})")
echo "${symbolName} Token Addr= ${chain33EthBridgeTokenAddr}"
cp BridgeToken.abi "${chain33EthBridgeTokenAddr}.abi"
result=$(${Chain33Cli} evm query -a "${chain33EthBridgeTokenAddr}" -c "${chain33EthBridgeTokenAddr}" -b "symbol()")
is_equal "${result}" "HT"
is_equal "${result}" "${symbolName}"
${CLIA} chain33 token set -t "${chain33EthBridgeTokenAddr}" -s HT
${CLIA} chain33 token set -t "${chain33EthBridgeTokenAddr}" -s "${symbolName}"
}
function offline_create_bridge_token_eth_YCC() {
......
......@@ -2,7 +2,7 @@
# shellcheck disable=SC2128
# shellcheck source=/dev/null
source "./dockerRelayerBsc.sh"
source "./dockerRelayerHt.sh"
source "./paracrosstestcase.sh"
function bridgevmxgo() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment