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
a1c5bef5
Commit
a1c5bef5
authored
May 27, 2019
by
caopingcp
Committed by
vipwzw
May 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transfer amount in lottery test
parent
74688456
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
test-rpc.sh
plugin/dapp/lottery/cmd/build/test-rpc.sh
+20
-20
No files found.
plugin/dapp/lottery/cmd/build/test-rpc.sh
View file @
a1c5bef5
...
@@ -386,23 +386,23 @@ function run_testcases() {
...
@@ -386,23 +386,23 @@ function run_testcases() {
gameAddr3
=
"
${
glAddr
}
"
gameAddr3
=
"
${
glAddr
}
"
#给每个账户分别转帐
#给每个账户分别转帐
origAddr
=
"
${
lottery_creator_addr
}
"
origAddr
=
"
14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
"
#主链中相应账户需要转帐
#主链中相应账户需要转帐
M_HTTP
=
${
MAIN_HTTP
//8901/8801
}
M_HTTP
=
${
MAIN_HTTP
//8901/8801
}
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr1
}
"
20
00000000
"
${
M_HTTP
}
"
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr1
}
"
3
00000000
"
${
M_HTTP
}
"
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr2
}
"
20
00000000
"
${
M_HTTP
}
"
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr2
}
"
3
00000000
"
${
M_HTTP
}
"
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr3
}
"
20
00000000
"
${
M_HTTP
}
"
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr3
}
"
3
00000000
"
${
M_HTTP
}
"
#平行链相应账户需要转帐
#平行链相应账户需要转帐
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr1
}
"
20
00000000
"
${
MAIN_HTTP
}
"
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr1
}
"
3
00000000
"
${
MAIN_HTTP
}
"
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr2
}
"
20
00000000
"
${
MAIN_HTTP
}
"
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr2
}
"
3
00000000
"
${
MAIN_HTTP
}
"
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr3
}
"
20
00000000
"
${
MAIN_HTTP
}
"
chain33_SendToAddress
"
${
origAddr
}
"
"
${
gameAddr3
}
"
3
00000000
"
${
MAIN_HTTP
}
"
#给游戏合约中转帐
#给游戏合约中转帐
chain33_SendToAddress
"
${
gameAddr1
}
"
"
${
lottExecAddr
}
"
10
00000000
"
${
MAIN_HTTP
}
"
chain33_SendToAddress
"
${
gameAddr1
}
"
"
${
lottExecAddr
}
"
2
00000000
"
${
MAIN_HTTP
}
"
chain33_SendToAddress
"
${
gameAddr2
}
"
"
${
lottExecAddr
}
"
10
00000000
"
${
MAIN_HTTP
}
"
chain33_SendToAddress
"
${
gameAddr2
}
"
"
${
lottExecAddr
}
"
2
00000000
"
${
MAIN_HTTP
}
"
chain33_SendToAddress
"
${
gameAddr3
}
"
"
${
lottExecAddr
}
"
10
00000000
"
${
MAIN_HTTP
}
"
chain33_SendToAddress
"
${
gameAddr3
}
"
"
${
lottExecAddr
}
"
2
00000000
"
${
MAIN_HTTP
}
"
#创建游戏
#创建游戏
lottery_LotteryCreate
"
${
lottery_creator_addr
}
"
lottery_LotteryCreate
"
${
lottery_creator_addr
}
"
...
@@ -411,19 +411,19 @@ function run_testcases() {
...
@@ -411,19 +411,19 @@ function run_testcases() {
#第一次投注
#第一次投注
lottery_LotteryBuy
"
${
gameAddr1
}
"
1 12345 1
lottery_LotteryBuy
"
${
gameAddr1
}
"
1 12345 1
lottery_LotteryBuy
"
${
gameAddr2
}
"
2
66666 2
lottery_LotteryBuy
"
${
gameAddr2
}
"
1
66666 2
lottery_LotteryBuy
"
${
gameAddr3
}
"
5
56789 5
lottery_LotteryBuy
"
${
gameAddr3
}
"
1
56789 5
#查询
#查询
lottery_GetLotteryCurrentInfo
"
$gID
"
2
8
lottery_GetLotteryCurrentInfo
"
$gID
"
2
3
lottery_GetLotteryPurchaseAddr
"
$gID
"
3
lottery_GetLotteryPurchaseAddr
"
$gID
"
3
lottery_GetLotteryHistoryBuyInfo
"
$gID
"
"
${
gameAddr1
}
"
1
"12345"
lottery_GetLotteryHistoryBuyInfo
"
$gID
"
"
${
gameAddr1
}
"
1
"12345"
lottery_GetLotteryBuyRoundInfo
"
$gID
"
"
${
gameAddr2
}
"
1 1
"66666"
lottery_GetLotteryBuyRoundInfo
"
$gID
"
"
${
gameAddr2
}
"
1 1
"66666"
#第二次投注
#第二次投注
lottery_LotteryBuy
"
${
gameAddr1
}
"
6
12321 1
lottery_LotteryBuy
"
${
gameAddr1
}
"
1
12321 1
lottery_LotteryBuy
"
${
gameAddr3
}
"
2
78987 5
lottery_LotteryBuy
"
${
gameAddr3
}
"
1
78987 5
#查询
#查询
lottery_GetLotteryCurrentInfo
"
$gID
"
2
16
lottery_GetLotteryCurrentInfo
"
$gID
"
2
5
lottery_GetLotteryPurchaseAddr
"
$gID
"
3
lottery_GetLotteryPurchaseAddr
"
$gID
"
3
lottery_GetLotteryHistoryBuyInfo
"
$gID
"
"
${
gameAddr1
}
"
2
"12321"
lottery_GetLotteryHistoryBuyInfo
"
$gID
"
"
${
gameAddr1
}
"
2
"12321"
lottery_GetLotteryBuyRoundInfo
"
$gID
"
"
${
gameAddr3
}
"
1 2
"78987"
lottery_GetLotteryBuyRoundInfo
"
$gID
"
"
${
gameAddr3
}
"
1 2
"78987"
...
@@ -436,10 +436,10 @@ function run_testcases() {
...
@@ -436,10 +436,10 @@ function run_testcases() {
#游戏查询
#游戏查询
lottery_GetLotteryHistoryLuckyNumber
"
$gID
"
1
"
${
luckyNumber
}
"
lottery_GetLotteryHistoryLuckyNumber
"
$gID
"
1
"
${
luckyNumber
}
"
lottery_GetLotteryRoundLuckyNumber
"
$gID
"
1
"
${
luckyNumber
}
"
lottery_GetLotteryRoundLuckyNumber
"
$gID
"
1
"
${
luckyNumber
}
"
lottery_GetLotteryHistoryGainInfo
"
$gID
"
"
${
gameAddr1
}
"
1
7
lottery_GetLotteryHistoryGainInfo
"
$gID
"
"
${
gameAddr1
}
"
1
2
lottery_GetLotteryHistoryGainInfo
"
$gID
"
"
${
gameAddr2
}
"
1
2
lottery_GetLotteryHistoryGainInfo
"
$gID
"
"
${
gameAddr2
}
"
1
1
lottery_GetLotteryRoundGainInfo
"
$gID
"
"
${
gameAddr1
}
"
1
7
lottery_GetLotteryRoundGainInfo
"
$gID
"
"
${
gameAddr1
}
"
1
2
lottery_GetLotteryRoundGainInfo
"
$gID
"
"
${
gameAddr3
}
"
1
7
lottery_GetLotteryRoundGainInfo
"
$gID
"
"
${
gameAddr3
}
"
1
2
#关闭游戏
#关闭游戏
lottery_LotteryClose
"
${
lottery_creator_addr
}
"
lottery_LotteryClose
"
${
lottery_creator_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