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
4f10b8d6
Commit
4f10b8d6
authored
Sep 16, 2019
by
vipwzw
Committed by
mdj33
Sep 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
97cc9c23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
dapp-test-common.sh
build/dapp-test-common.sh
+2
-5
dapp-test-rpc.sh
build/dapp-test-rpc.sh
+1
-1
test-rpc.sh
plugin/dapp/relay/cmd/test/test-rpc.sh
+1
-4
No files found.
build/dapp-test-common.sh
View file @
4f10b8d6
...
@@ -166,8 +166,7 @@ chain33_LastBlockhash() {
...
@@ -166,8 +166,7 @@ chain33_LastBlockhash() {
echo
-e
"######
\\
n last blockhash is
$LAST_BLOCK_HASH
\\
n######"
echo
-e
"######
\\
n last blockhash is
$LAST_BLOCK_HASH
\\
n######"
}
}
ip
=
$(
echo
"
$ip
"
|
cut
-d
':'
-f
1
)
ip
=
$(
echo
"
$ip
"
|
cut
-d
':'
-f
1
)
chain33_getMainChainCoins
()
{
chain33_getMainChainCoins
()
{
echo
"chain33_getMainChainCoins"
echo
"chain33_getMainChainCoins"
...
@@ -189,7 +188,6 @@ chain33_getMainChainCoins() {
...
@@ -189,7 +188,6 @@ chain33_getMainChainCoins() {
}
}
chain33_getParaChainCoins
()
{
chain33_getParaChainCoins
()
{
echo
"chain33_getParaChainCoins"
echo
"chain33_getParaChainCoins"
if
[
"$#"
-lt
3
]
;
then
if
[
"$#"
-lt
3
]
;
then
...
@@ -208,4 +206,4 @@ chain33_getParaChainCoins() {
...
@@ -208,4 +206,4 @@ chain33_getParaChainCoins() {
P_HTTP
=
${
MAIN_HTTP
//8801/8901
}
P_HTTP
=
${
MAIN_HTTP
//8801/8901
}
chain33_SendToAddress
"
${
poolAddr
}
"
"
${
targetAddr
}
"
$count
"
${
P_HTTP
}
"
chain33_SendToAddress
"
${
poolAddr
}
"
"
${
targetAddr
}
"
$count
"
${
P_HTTP
}
"
}
}
\ No newline at end of file
build/dapp-test-rpc.sh
View file @
4f10b8d6
...
@@ -10,7 +10,7 @@ function dapp_test_rpc() {
...
@@ -10,7 +10,7 @@ function dapp_test_rpc() {
if
[
-d
dapptest
]
;
then
if
[
-d
dapptest
]
;
then
cp
$DAPP_TEST_COMMON
dapptest/
cp
$DAPP_TEST_COMMON
dapptest/
cd
dapptest
||
return
cd
dapptest
||
return
dir
=
$(
find
.
-maxdepth
1
-type
d
!
-name
dapptest
!
-name
multisig
!
-name
paracross
!
-name
evm
!
-name
game
!
-name
guess
!
-name
hashlock
!
-name
js
!
-name
lottery
!
-name
pokerbull
!
-name
.
|
sed
's/^\.\///'
|
sort
)
dir
=
$(
find
.
-maxdepth
1
-type
d
!
-name
dapptest
!
-name
multisig
!
-name
paracross
!
-name
evm
!
-name
game
!
-name
guess
!
-name
hashlock
!
-name
js
!
-name
lottery
!
-name
pokerbull
!
-name
.
|
sed
's/^\.\///'
|
sort
)
echo
"dapps list:
$dir
"
echo
"dapps list:
$dir
"
for
app
in
$dir
;
do
for
app
in
$dir
;
do
echo
"=========== #
$app
rpc test ============="
echo
"=========== #
$app
rpc test ============="
...
...
plugin/dapp/relay/cmd/test/test-rpc.sh
View file @
4f10b8d6
...
@@ -64,9 +64,6 @@ function query_tx() {
...
@@ -64,9 +64,6 @@ function query_tx() {
done
done
}
}
signrawtx
()
{
signrawtx
()
{
txHex
=
"
$1
"
txHex
=
"
$1
"
priKey
=
"
$2
"
priKey
=
"
$2
"
...
@@ -264,7 +261,7 @@ init() {
...
@@ -264,7 +261,7 @@ init() {
if
[
"
$ispara
"
==
true
]
;
then
if
[
"
$ispara
"
==
true
]
;
then
relay_addr
=
$(
curl
-ksd
'{"method":"Chain33.ConvertExectoAddr","params":[{"execname":"user.p.para.relay"}]}'
${
MAIN_HTTP
}
| jq
-r
".result"
)
relay_addr
=
$(
curl
-ksd
'{"method":"Chain33.ConvertExectoAddr","params":[{"execname":"user.p.para.relay"}]}'
${
MAIN_HTTP
}
| jq
-r
".result"
)
else
else
# chain33_ImportPrivkey "${MAIN_HTTP}" "0x9c451df9e5cb05b88b28729aeaaeb3169a2414097401fcb4c79c1971df734588" "1E5saiXVb9mW8wcWUUZjsHJPZs5GmdzuSY"
# chain33_ImportPrivkey "${MAIN_HTTP}" "0x9c451df9e5cb05b88b28729aeaaeb3169a2414097401fcb4c79c1971df734588" "1E5saiXVb9mW8wcWUUZjsHJPZs5GmdzuSY"
relay_addr
=
$(
curl
-ksd
'{"method":"Chain33.ConvertExectoAddr","params":[{"execname":"relay"}]}'
${
MAIN_HTTP
}
| jq
-r
".result"
)
relay_addr
=
$(
curl
-ksd
'{"method":"Chain33.ConvertExectoAddr","params":[{"execname":"relay"}]}'
${
MAIN_HTTP
}
| jq
-r
".result"
)
fi
fi
echo
"relayaddr=
$relay_addr
"
echo
"relayaddr=
$relay_addr
"
...
...
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