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
54e4e578
Commit
54e4e578
authored
Dec 30, 2019
by
linj
Committed by
vipwzw
Dec 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update token test shell token balance
parent
7c7e8a70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
testcase.sh
plugin/dapp/paracross/cmd/build/testcase.sh
+10
-10
No files found.
plugin/dapp/paracross/cmd/build/testcase.sh
View file @
54e4e578
...
@@ -280,8 +280,8 @@ function token_create() {
...
@@ -280,8 +280,8 @@ function token_create() {
echo
"wrong finish created total"
echo
"wrong finish created total"
exit
1
exit
1
fi
fi
${
1
}
token
token_
balance
-a
1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4
-e
token
-s
GD
${
1
}
token balance
-a
1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4
-e
token
-s
GD
balance
=
$(${
1
}
token
token_
balance
-a
1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4
-e
token
-s
GD | jq
-r
'.[]|.balance'
)
balance
=
$(${
1
}
token balance
-a
1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4
-e
token
-s
GD | jq
-r
'.[]|.balance'
)
if
[
"
${
balance
}
"
!=
"10000.0000"
]
;
then
if
[
"
${
balance
}
"
!=
"10000.0000"
]
;
then
echo
"wrong para token genesis create, should be 10000.0000"
echo
"wrong para token genesis create, should be 10000.0000"
exit
1
exit
1
...
@@ -294,8 +294,8 @@ function token_transfer() {
...
@@ -294,8 +294,8 @@ function token_transfer() {
echo
"
${
hash
}
"
echo
"
${
hash
}
"
query_tx
"
${
1
}
"
"
${
hash
}
"
query_tx
"
${
1
}
"
"
${
hash
}
"
${
1
}
token
token_
balance
-a
1GGF8toZd96wCnfJngTwXZnWCBdWHYYvjw
-e
token
-s
GD
${
1
}
token balance
-a
1GGF8toZd96wCnfJngTwXZnWCBdWHYYvjw
-e
token
-s
GD
balance
=
$(${
1
}
token
token_
balance
-a
1GGF8toZd96wCnfJngTwXZnWCBdWHYYvjw
-e
token
-s
GD | jq
-r
'.[]|.balance'
)
balance
=
$(${
1
}
token balance
-a
1GGF8toZd96wCnfJngTwXZnWCBdWHYYvjw
-e
token
-s
GD | jq
-r
'.[]|.balance'
)
if
[
"
${
balance
}
"
!=
"11.0000"
]
;
then
if
[
"
${
balance
}
"
!=
"11.0000"
]
;
then
echo
"wrong para token transfer, should be 11.0000"
echo
"wrong para token transfer, should be 11.0000"
exit
1
exit
1
...
@@ -308,8 +308,8 @@ function token_transfer() {
...
@@ -308,8 +308,8 @@ function token_transfer() {
# $ ./build/chain33-cli exec addr -e user.p.para.paracross
# $ ./build/chain33-cli exec addr -e user.p.para.paracross
# 19WJJv96nKAU4sHFWqGmsqfjxd37jazqii
# 19WJJv96nKAU4sHFWqGmsqfjxd37jazqii
${
1
}
token
token_
balance
-a
19WJJv96nKAU4sHFWqGmsqfjxd37jazqii
-e
token
-s
GD
${
1
}
token balance
-a
19WJJv96nKAU4sHFWqGmsqfjxd37jazqii
-e
token
-s
GD
balance
=
$(${
1
}
token
token_
balance
-a
19WJJv96nKAU4sHFWqGmsqfjxd37jazqii
-e
token
-s
GD | jq
-r
'.[]|.balance'
)
balance
=
$(${
1
}
token balance
-a
19WJJv96nKAU4sHFWqGmsqfjxd37jazqii
-e
token
-s
GD | jq
-r
'.[]|.balance'
)
if
[
"
${
balance
}
"
!=
"11.0000"
]
;
then
if
[
"
${
balance
}
"
!=
"11.0000"
]
;
then
echo
"wrong para token send exec, should be 11.0000"
echo
"wrong para token send exec, should be 11.0000"
exit
1
exit
1
...
@@ -320,8 +320,8 @@ function token_transfer() {
...
@@ -320,8 +320,8 @@ function token_transfer() {
echo
"
${
hash
}
"
echo
"
${
hash
}
"
query_tx
"
${
1
}
"
"
${
hash
}
"
query_tx
"
${
1
}
"
"
${
hash
}
"
${
1
}
token
token_
balance
-a
19WJJv96nKAU4sHFWqGmsqfjxd37jazqii
-e
token
-s
GD
${
1
}
token balance
-a
19WJJv96nKAU4sHFWqGmsqfjxd37jazqii
-e
token
-s
GD
balance
=
$(${
1
}
token
token_
balance
-a
19WJJv96nKAU4sHFWqGmsqfjxd37jazqii
-e
token
-s
GD | jq
-r
'.[]|.balance'
)
balance
=
$(${
1
}
token balance
-a
19WJJv96nKAU4sHFWqGmsqfjxd37jazqii
-e
token
-s
GD | jq
-r
'.[]|.balance'
)
if
[
"
${
balance
}
"
!=
"0.0000"
]
;
then
if
[
"
${
balance
}
"
!=
"0.0000"
]
;
then
echo
"wrong para token withdraw, should be 0.0000"
echo
"wrong para token withdraw, should be 0.0000"
exit
1
exit
1
...
@@ -426,8 +426,8 @@ function token_create_on_mainChain() {
...
@@ -426,8 +426,8 @@ function token_create_on_mainChain() {
echo
"wrong finish created total"
echo
"wrong finish created total"
exit
1
exit
1
fi
fi
${
CLI
}
token
token_
balance
-a
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-e
token
-s
FZM
${
CLI
}
token balance
-a
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-e
token
-s
FZM
balance
=
$(${
CLI
}
token
token_
balance
-a
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-e
token
-s
FZM | jq
-r
'.[]|.balance'
)
balance
=
$(${
CLI
}
token balance
-a
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-e
token
-s
FZM | jq
-r
'.[]|.balance'
)
if
[
"
${
balance
}
"
!=
"10000.0000"
]
;
then
if
[
"
${
balance
}
"
!=
"10000.0000"
]
;
then
echo
"wrong para token genesis create, should be 10000.0000"
echo
"wrong para token genesis create, should be 10000.0000"
exit
1
exit
1
...
...
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