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
0d37aed1
Commit
0d37aed1
authored
Jul 25, 2019
by
jiangpeng
Committed by
33cn
Jul 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
privacy:update showpas showpai command
parent
37950a05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
privacy.go
plugin/dapp/privacy/commands/privacy.go
+5
-4
No files found.
plugin/dapp/privacy/commands/privacy.go
View file @
0d37aed1
...
@@ -284,16 +284,17 @@ func showPrivacyAccountSpendCmd() *cobra.Command {
...
@@ -284,16 +284,17 @@ func showPrivacyAccountSpendCmd() *cobra.Command {
func
showPrivacyAccountSpendFlag
(
cmd
*
cobra
.
Command
)
{
func
showPrivacyAccountSpendFlag
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
StringP
(
"addr"
,
"a"
,
""
,
"account address"
)
cmd
.
Flags
()
.
StringP
(
"addr"
,
"a"
,
""
,
"account address"
)
cmd
.
Flags
()
.
StringP
(
"symbol"
,
"s"
,
"BTY"
,
"asset symbol, default BTY"
)
cmd
.
MarkFlagRequired
(
"addr"
)
cmd
.
MarkFlagRequired
(
"addr"
)
}
}
func
showPrivacyAccountSpend
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
showPrivacyAccountSpend
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
addr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"addr"
)
addr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"addr"
)
symbol
,
_
:=
cmd
.
Flags
()
.
GetString
(
"symbol"
)
params
:=
pty
.
ReqPrivBal4AddrToken
{
params
:=
pty
.
ReqPrivBal4AddrToken
{
Addr
:
addr
,
Addr
:
addr
,
Token
:
types
.
BTY
,
Token
:
symbol
,
}
}
var
res
pty
.
UTXOHaveTxHashs
var
res
pty
.
UTXOHaveTxHashs
...
@@ -445,14 +446,14 @@ func showPrivacyAccountInfoFlag(cmd *cobra.Command) {
...
@@ -445,14 +446,14 @@ func showPrivacyAccountInfoFlag(cmd *cobra.Command) {
cmd
.
Flags
()
.
StringP
(
"addr"
,
"a"
,
""
,
"account address"
)
cmd
.
Flags
()
.
StringP
(
"addr"
,
"a"
,
""
,
"account address"
)
cmd
.
MarkFlagRequired
(
"addr"
)
cmd
.
MarkFlagRequired
(
"addr"
)
cmd
.
Flags
()
.
StringP
(
"
token"
,
"t"
,
types
.
BTY
,
"coins token, BTY supported.
"
)
cmd
.
Flags
()
.
StringP
(
"
symbol"
,
"s"
,
"BTY"
,
"asset symbol, default BTY
"
)
cmd
.
Flags
()
.
Int32P
(
"displaymode"
,
"d"
,
0
,
"display mode.(0: display collect. 1:display available detail. 2:display frozen detail. 3:display all"
)
cmd
.
Flags
()
.
Int32P
(
"displaymode"
,
"d"
,
0
,
"display mode.(0: display collect. 1:display available detail. 2:display frozen detail. 3:display all"
)
}
}
func
showPrivacyAccountInfo
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
showPrivacyAccountInfo
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
addr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"addr"
)
addr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"addr"
)
token
,
_
:=
cmd
.
Flags
()
.
GetString
(
"
token
"
)
token
,
_
:=
cmd
.
Flags
()
.
GetString
(
"
symbol
"
)
mode
,
_
:=
cmd
.
Flags
()
.
GetInt32
(
"displaymode"
)
mode
,
_
:=
cmd
.
Flags
()
.
GetInt32
(
"displaymode"
)
if
mode
<
0
||
mode
>
3
{
if
mode
<
0
||
mode
>
3
{
fmt
.
Println
(
"display mode only support 0-3"
)
fmt
.
Println
(
"display mode only support 0-3"
)
...
...
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