Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
c56e55d2
Commit
c56e55d2
authored
Aug 13, 2020
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updata
parent
27843129
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
publicTest.sh
plugin/dapp/x2ethereum/cmd/build/publicTest.sh
+4
-5
test-rpc.sh
plugin/dapp/x2ethereum/cmd/test/test-rpc.sh
+8
-10
No files found.
plugin/dapp/x2ethereum/cmd/build/publicTest.sh
View file @
c56e55d2
...
...
@@ -25,9 +25,9 @@ function exit_cp_file() {
for
name
in
a b c d
;
do
# shellcheck disable=SC2154
docker
cp
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_1"
:/root/logs/x2Ethereum_relayer.log
"
$
dirName
/ebrelayer
$name
.log"
docker
cp
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_1"
:/root/logs/x2Ethereum_relayer.log
"
$
{
dirName
}
/ebrelayer
${
name
}
.log"
done
docker
cp
"
${
dockerNamePrefix
}
_chain33_1"
:/root/logs/chain33.log
"
$
dirName
/chain33.log"
docker
cp
"
${
dockerNamePrefix
}
_chain33_1"
:/root/logs/chain33.log
"
$
{
dirName
}
/chain33.log"
exit
1
}
...
...
@@ -46,9 +46,9 @@ function copyErrLogs() {
for
name
in
a b c d
;
do
# shellcheck disable=SC2154
docker
cp
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_rpc_1"
:/root/logs/x2Ethereum_relayer.log
"
$
dirName
/ebrelayer
$name
_rpc
.log"
docker
cp
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_rpc_1"
:/root/logs/x2Ethereum_relayer.log
"
$
{
dirName
}
/ebrelayer
${
name
}
_rpc.log"
done
docker
cp
"
${
dockerNamePrefix
}
_chain33_1"
:/root/logs/chain33.log
"
$
dirName
/chain33_rpc.log"
docker
cp
"
${
dockerNamePrefix
}
_chain33_1"
:/root/logs/chain33.log
"
$
{
dirName
}
/chain33_rpc.log"
fi
}
...
...
@@ -492,7 +492,6 @@ function updata_relayer_toml_rpc() {
local
pushHost
=
$(
get_inet_addr
)
if
[[
${
pushHost
}
==
""
]]
;
then
echo
-e
"
${
RED
}
pushHost is empty
${
NOC
}
"
copyErrLogs
fi
# shellcheck disable=SC2155
...
...
plugin/dapp/x2ethereum/cmd/test/test-rpc.sh
View file @
c56e55d2
...
...
@@ -44,7 +44,6 @@ function queryExecBalance() {
local
balance
=
$(
echo
"
$resp
"
| jq
-r
".result"
| jq
".[].balance"
)
if
[
"
${
balance
}
"
!=
"
${
2
}
"
]
;
then
echo_rst
"queryExecBalance"
"1"
"
${
balance
}
!=
${
2
}
"
copyErrLogs
fi
}
...
...
@@ -56,7 +55,6 @@ function queryChain33Balance() {
local
balance
=
$(
echo
$resp
| jq
-r
".result.execAccount"
| jq
".[].account.balance"
)
if
[
"
${
balance
}
"
!=
"
${
2
}
"
]
;
then
echo_rst
"queryChain33Balance"
"1"
"
${
balance
}
!=
${
2
}
"
copyErrLogs
fi
}
...
...
@@ -76,7 +74,6 @@ function queryChain33X2ethBalance() {
local
balance
=
$(
echo
"
${
RETURN_RESP
}
"
| jq
-r
".res"
| jq
".[].balance"
|
sed
's/\"//g'
)
if
[
"
${
balance
}
"
!=
"
${
2
}
"
]
;
then
echo_rst
"queryChain33X2ethBalance"
"1"
"
${
balance
}
!=
${
2
}
"
copyErrLogs
fi
}
...
...
@@ -125,7 +122,6 @@ function StartRelayerAndDeploy() {
ebrelayeraRpcHost
=
$(
get_docker_addr
"
${
dockerNamePrefix
}
_ebrelayera_rpc_1"
)
if
[[
${
ebrelayeraRpcHost
}
==
""
]]
;
then
echo
-e
"
${
RED
}
ebrelayeraRpcHost a is empty
${
NOC
}
"
copyErrLogs
fi
CLIA_HTTP
=
"http://
${
ebrelayeraRpcHost
}
:9901"
...
...
@@ -408,13 +404,15 @@ function rpc_test() {
if
[
"
$ispara
"
==
false
]
;
then
# init
StartRelayerAndDeploy
InitChain33Vilators
EthImportKey
# InitChain33Vilators
# EthImportKey
#
# # test
# TestChain33ToEthAssets
# TestETH2Chain33Assets
# TestETH2Chain33Erc20
# test
TestChain33ToEthAssets
TestETH2Chain33Assets
TestETH2Chain33Erc20
copyErrLogs
# docker-compose -f ./x2ethereum/docker-compose-x2ethereum.yml down
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment