Skip to content

Commit

Permalink
sync eth fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mdj33 authored and vipwzw committed Jul 3, 2020
1 parent 5210976 commit e9e43cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions plugin/dapp/x2ethereum/cmd/build/RopstenTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function TestETH2Chain33Assets() {
result=$(${Chain33Cli} x2ethereum balance -s 12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv -t eth | jq ".res" | jq ".[]")
balance_ret "${result}" "0"

eth_block_wait 2 https://ropsten-rpc.linkpool.io/
eth_block_wait $((maturityDegree + 3)) https://ropsten-rpc.linkpool.io/

result=$(${CLIA} relayer ethereum balance -o "${bridgeBankAddr}")
cli_ret "${result}" "balance" ".balance" "0"
Expand Down Expand Up @@ -326,7 +326,7 @@ function TestETH2Chain33Erc20() {
result=$(${Chain33Cli} x2ethereum balance -s "${chain33Validator1}" -t "${tokenSymbol}" -a "${tokenAddr}" | jq ".res" | jq ".[]")
balance_ret "${result}" "0"

eth_block_wait 2 https://ropsten-rpc.linkpool.io/
eth_block_wait $((maturityDegree + 3)) https://ropsten-rpc.linkpool.io/

result=$(${CLIA} relayer ethereum balance -o "${ethReceiverAddr2}" -t "${tokenAddr}")
cli_ret "${result}" "balance" ".balance" "100"
Expand Down Expand Up @@ -438,7 +438,7 @@ function TestETH2Chain33AssetsKill() {
result=$(${Chain33Cli} x2ethereum balance -s 12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv -t eth | jq ".res" | jq ".[]")
balance_ret "${result}" "0"

eth_block_wait 2 https://ropsten-rpc.linkpool.io/
eth_block_wait $((maturityDegree + 3)) https://ropsten-rpc.linkpool.io/

result=$(${CLIA} relayer ethereum balance -o "${bridgeBankAddr}")
cli_ret "${result}" "balance" ".balance" "0.133"
Expand Down Expand Up @@ -510,7 +510,7 @@ function TestETH2Chain33Erc20Kill() {
result=$(${Chain33Cli} x2ethereum balance -s "${chain33Validator1}" -t "${tokenSymbol}" -a "${tokenAddr}" | jq ".res" | jq ".[]")
balance_ret "${result}" "0"

eth_block_wait 2 https://ropsten-rpc.linkpool.io/
eth_block_wait $((maturityDegree + 3)) https://ropsten-rpc.linkpool.io/

start_ebrelayerC

Expand Down
8 changes: 4 additions & 4 deletions plugin/dapp/x2ethereum/cmd/build/allRelayerTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function TestETH2Chain33Assets() {
result=$(${Chain33Cli} x2ethereum balance -s 12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv -t eth | jq ".res" | jq ".[]")
balance_ret "${result}" "0"

eth_block_wait 2
eth_block_wait $((maturityDegree + 3))

result=$(${CLIA} relayer ethereum balance -o "${bridgeBankAddr}")
cli_ret "${result}" "balance" ".balance" "0"
Expand Down Expand Up @@ -332,7 +332,7 @@ function TestETH2Chain33Erc20() {
result=$(${Chain33Cli} x2ethereum balance -s "${chain33Validator1}" -t "${tokenSymbol}" -a "${tokenAddr}" | jq ".res" | jq ".[]")
balance_ret "${result}" "0"

eth_block_wait 2
eth_block_wait $((maturityDegree + 3))

result=$(${CLIA} relayer ethereum balance -o "${ethReceiverAddr2}" -t "${tokenAddr}")
cli_ret "${result}" "balance" ".balance" "100"
Expand Down Expand Up @@ -441,7 +441,7 @@ function TestETH2Chain33AssetsKill() {
result=$(${Chain33Cli} x2ethereum balance -s 12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv -t eth | jq ".res" | jq ".[]")
balance_ret "${result}" "0"

eth_block_wait 2
eth_block_wait $((maturityDegree + 3))

result=$(${CLIA} relayer ethereum balance -o "${bridgeBankAddr}")
cli_ret "${result}" "balance" ".balance" "0.1"
Expand Down Expand Up @@ -513,7 +513,7 @@ function TestETH2Chain33Erc20Kill() {
result=$(${Chain33Cli} x2ethereum balance -s "${chain33Validator1}" -t "${tokenSymbol}" -a "${tokenAddr2}" | jq ".res" | jq ".[]")
balance_ret "${result}" "0"

eth_block_wait 2
eth_block_wait $((maturityDegree + 3))

start_ebrelayerC
start_ebrelayerD
Expand Down
4 changes: 2 additions & 2 deletions plugin/dapp/x2ethereum/cmd/test/test-rpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ function TestETH2Chain33Assets() {
req='{"method":"Chain33.Query","params":[{"execer":"x2ethereum","funcName":"GetRelayerBalance","payload":{"tokenSymbol":"eth","address":"'${sendAddress}'","tokenAddr":"0x0000000000000000000000000000000000000000"}}]}'
queryChain33X2ethBalance "${req}" "0"

eth_block_wait 2
eth_block_wait $((maturityDegree + 3))

req='{"method":"Manager.GetBalance","params":[{"owner":"'${bridgeBankAddr}'","tokenAddr":""}]}'
queryRelayerBalance "$req" "0"
Expand Down Expand Up @@ -408,7 +408,7 @@ function TestETH2Chain33Erc20() {
req='{"method":"Chain33.Query","params":[{"execer":"x2ethereum","funcName":"GetRelayerBalance","payload":{"tokenSymbol":"testc","address":"'${chain33Validator1}'","tokenAddr":"'${tokenAddr}'"}}]}'
queryChain33X2ethBalance "${req}" "0"

eth_block_wait 2
eth_block_wait $((maturityDegree + 3))

req='{"method":"Manager.GetBalance","params":[{"owner":"'${ethReceiverAddr2}'","tokenAddr":"'${tokenAddr}'"}]}'
queryRelayerBalance "$req" "100"
Expand Down

0 comments on commit e9e43cb

Please sign in to comment.