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
b49a5c59
Commit
b49a5c59
authored
May 30, 2019
by
张振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
50c516ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
test-rpc.sh
plugin/dapp/hashlock/cmd/build/test-rpc.sh
+10
-11
No files found.
plugin/dapp/hashlock/cmd/build/test-rpc.sh
View file @
b49a5c59
...
@@ -25,7 +25,6 @@ echo_rst() {
...
@@ -25,7 +25,6 @@ echo_rst() {
}
}
saveSeed
()
{
saveSeed
()
{
seed
=
"journey notable narrow few bar stuff notable custom miss brother attend tongue price theme resist"
seed
=
"journey notable narrow few bar stuff notable custom miss brother attend tongue price theme resist"
req
=
'{"method":"Chain33.SaveSeed", "params":[{"seed":"'
"
$seed
"
'", "passwd": "1314fuzamei"}]}'
req
=
'{"method":"Chain33.SaveSeed", "params":[{"seed":"'
"
$seed
"
'", "passwd": "1314fuzamei"}]}'
resp
=
$(
curl
-ksd
"
$req
"
"
${
MAIN_HTTP
}
"
)
resp
=
$(
curl
-ksd
"
$req
"
"
${
MAIN_HTTP
}
"
)
...
@@ -252,12 +251,12 @@ function run_test() {
...
@@ -252,12 +251,12 @@ function run_test() {
sendTransaction
sendTransaction
block_wait 1
block_wait 1
queryBalance
$addr_A
queryBalance
"
$addr_A
"
queryBalance
$addr_B
queryBalance
"
$addr_B
"
#用户地址向合约转账,确保可以参与游戏
#用户地址向合约转账,确保可以参与游戏
sendToExec
$addr_A
sendToExec
"
$addr_A
"
sendToExec
$addr_B
sendToExec
"
$addr_B
"
block_wait 2
block_wait 2
...
@@ -269,8 +268,8 @@ function run_test() {
...
@@ -269,8 +268,8 @@ function run_test() {
#查询交易
#查询交易
queryTransaction
"
$txhash
"
queryTransaction
"
$txhash
"
queryBalance
$addr_A
queryBalance
"
$addr_A
"
queryBalance
$addr_B
queryBalance
"
$addr_B
"
#send
#send
hashlock_send
hashlock_send
...
@@ -280,8 +279,8 @@ function run_test() {
...
@@ -280,8 +279,8 @@ function run_test() {
#查询交易
#查询交易
queryTransaction
"
$txhash
"
queryTransaction
"
$txhash
"
queryBalance
$addr_A
queryBalance
"
$addr_A
"
queryBalance
$addr_B
queryBalance
"
$addr_B
"
#unlock failed
#unlock failed
hashlock_unlock
hashlock_unlock
...
@@ -291,8 +290,8 @@ function run_test() {
...
@@ -291,8 +290,8 @@ function run_test() {
#查询交易
#查询交易
queryTransaction
"
$txhash
"
queryTransaction
"
$txhash
"
queryBalance
$addr_A
queryBalance
"
$addr_A
"
queryBalance
$addr_B
queryBalance
"
$addr_B
"
#lock
#lock
hashlock_lock
hashlock_lock
...
...
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