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
f1803086
Commit
f1803086
authored
May 12, 2020
by
vipwzw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
5789e907
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
RopstenTest.sh
plugin/dapp/x2Ethereum/cmd/build/RopstenTest.sh
+9
-9
exec_test.go
plugin/dapp/x2Ethereum/executor/exec_test.go
+0
-1
publicTest.sh
plugin/dapp/x2Ethereum/testsh/publicTest.sh
+2
-3
No files found.
plugin/dapp/x2Ethereum/cmd/build/RopstenTest.sh
View file @
f1803086
...
@@ -306,8 +306,8 @@ function TestETH2Chain33Erc20() {
...
@@ -306,8 +306,8 @@ function TestETH2Chain33Erc20() {
# token4erc20 在 chain33 上先有 token,同时 mint
# token4erc20 在 chain33 上先有 token,同时 mint
tokenSymbol
=
"testc"
tokenSymbol
=
"testc"
# result=$(${CLIA} relayer ethereum token4erc20 -s "${tokenSymbol}")
# result=$(${CLIA} relayer ethereum token4erc20 -s "${tokenSymbol}")
# tokenAddr=$(cli_ret "${result}" "token4erc20" ".addr")
# tokenAddr=$(cli_ret "${result}" "token4erc20" ".addr")
tokenAddr
=
"0x47F62ba65bCa4150BE98F31566DC559b9b04fc2D"
tokenAddr
=
"0x47F62ba65bCa4150BE98F31566DC559b9b04fc2D"
# 先铸币 1000
# 先铸币 1000
...
@@ -543,7 +543,7 @@ function TestETH2Chain33Erc20Kill() {
...
@@ -543,7 +543,7 @@ function TestETH2Chain33Erc20Kill() {
function
AllRelayerMainTest
()
{
function
AllRelayerMainTest
()
{
set
+e
set
+e
# docker cp ${GOPATH}/src/github.com/33cn/plugin/build/ci/x2Ethereum build_chain33_1:/root/x2Ethereum
# docker cp ${GOPATH}/src/github.com/33cn/plugin/build/ci/x2Ethereum build_chain33_1:/root/x2Ethereum
Chain33Cli
=
"./../chain33-cli"
Chain33Cli
=
"./../chain33-cli"
...
@@ -561,14 +561,14 @@ function AllRelayerMainTest() {
...
@@ -561,14 +561,14 @@ function AllRelayerMainTest() {
EthImportKey
EthImportKey
# test
# test
# TestChain33ToEthAssets
# TestChain33ToEthAssets
TestETH2Chain33Assets
TestETH2Chain33Assets
TestETH2Chain33Erc20
TestETH2Chain33Erc20
#
#
# # kill relayer and start relayer
# # kill relayer and start relayer
# TestChain33ToEthAssetsKill
# TestChain33ToEthAssetsKill
# TestETH2Chain33AssetsKill
# TestETH2Chain33AssetsKill
# TestETH2Chain33Erc20Kill
# TestETH2Chain33Erc20Kill
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
}
...
...
plugin/dapp/x2Ethereum/executor/exec_test.go
View file @
f1803086
...
@@ -13,7 +13,6 @@ import (
...
@@ -13,7 +13,6 @@ import (
"github.com/33cn/chain33/types"
"github.com/33cn/chain33/types"
chain33types
"github.com/33cn/chain33/types"
chain33types
"github.com/33cn/chain33/types"
"github.com/33cn/chain33/util"
"github.com/33cn/chain33/util"
common2
"github.com/33cn/plugin/plugin/dapp/x2Ethereum/executor/common"
types2
"github.com/33cn/plugin/plugin/dapp/x2Ethereum/types"
types2
"github.com/33cn/plugin/plugin/dapp/x2Ethereum/types"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite"
"github.com/stretchr/testify/suite"
...
...
plugin/dapp/x2Ethereum/testsh/publicTest.sh
View file @
f1803086
...
@@ -314,7 +314,6 @@ function updata_relayer_toml_ropston() {
...
@@ -314,7 +314,6 @@ function updata_relayer_toml_ropston() {
#sed -i 's/192.168.3.156/'${pushHost}'/g' "../build/relayer.toml"
#sed -i 's/192.168.3.156/'${pushHost}'/g' "../build/relayer.toml"
}
}
# 更新 B C D 的配置文件
# 更新 B C D 的配置文件
function
updata_all_relayer_toml
()
{
function
updata_all_relayer_toml
()
{
local
port
=
9901
local
port
=
9901
...
@@ -448,7 +447,7 @@ function eth_block_wait() {
...
@@ -448,7 +447,7 @@ function eth_block_wait() {
local
cur_height
=
""
local
cur_height
=
""
local
new_height
=
""
local
new_height
=
""
local
url
=
${
2
}
local
url
=
${
2
}
if
[
"
${
url
}
"
==
""
]
;
then
if
[
"
${
url
}
"
==
""
]
;
then
cur_height
=
$(
curl
-ksd
'{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}'
http://localhost:7545 | jq
-r
".result"
)
cur_height
=
$(
curl
-ksd
'{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}'
http://localhost:7545 | jq
-r
".result"
)
else
else
cur_height
=
$(
curl
-H
"Content-Type: application/json"
-X
POST
--data
'{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}'
${
url
}
| jq
-r
".result"
)
cur_height
=
$(
curl
-H
"Content-Type: application/json"
-X
POST
--data
'{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}'
${
url
}
| jq
-r
".result"
)
...
@@ -457,7 +456,7 @@ function eth_block_wait() {
...
@@ -457,7 +456,7 @@ function eth_block_wait() {
local
expect
=
$((
cur_height
+
${
1
}
+
1
))
local
expect
=
$((
cur_height
+
${
1
}
+
1
))
local
count
=
0
local
count
=
0
while
true
;
do
while
true
;
do
if
[
"
${
url
}
"
==
""
]
;
then
if
[
"
${
url
}
"
==
""
]
;
then
new_height
=
$(
curl
-ksd
'{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}'
http://localhost:7545 | jq
-r
".result"
)
new_height
=
$(
curl
-ksd
'{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}'
http://localhost:7545 | jq
-r
".result"
)
else
else
new_height
=
$(
curl
-H
"Content-Type: application/json"
-X
POST
--data
'{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}'
${
url
}
| jq
-r
".result"
)
new_height
=
$(
curl
-H
"Content-Type: application/json"
-X
POST
--data
'{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}'
${
url
}
| jq
-r
".result"
)
...
...
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