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
15488a32
Commit
15488a32
authored
Mar 19, 2021
by
madengji
Committed by
vipwzw
Sep 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
d8437818
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
mix.go
plugin/dapp/mix/commands/mix.go
+1
-1
query.go
plugin/dapp/mix/executor/query.go
+1
-1
mix.proto
plugin/dapp/mix/proto/mix.proto
+5
-0
mix.pb.go
plugin/dapp/mix/types/mix.pb.go
+0
-0
No files found.
plugin/dapp/mix/commands/mix.go
View file @
15488a32
...
...
@@ -237,7 +237,7 @@ func createTokenTxFee(cmd *cobra.Command, args []string) {
var
params
rpctypes
.
Query4Jrpc
params
.
Execer
=
mixTy
.
MixX
params
.
FuncName
=
"TokenFeeAddr"
req
:=
mixTy
.
TokenTxFee
{
req
:=
mixTy
.
TokenTxFee
AddrReq
{
AssetExec
:
exec
,
AssetSymbol
:
symbol
,
}
...
...
plugin/dapp/mix/executor/query.go
View file @
15488a32
...
...
@@ -120,7 +120,7 @@ func (m *Mix) Query_VerifyProof(req *mixTy.VerifyProofInfo) (types.Message, erro
}
// Query_TokenFeeAddr 私对私token转账,代扣地址查询, 需预先转账主代币到相应资产地址下面才能完成私对私的转账,代扣地址coins不能提回
func
(
m
*
Mix
)
Query_TokenFeeAddr
(
req
*
mixTy
.
TokenTxFee
)
(
types
.
Message
,
error
)
{
func
(
m
*
Mix
)
Query_TokenFeeAddr
(
req
*
mixTy
.
TokenTxFee
AddrReq
)
(
types
.
Message
,
error
)
{
if
req
==
nil
||
len
(
req
.
AssetExec
)
==
0
||
len
(
req
.
AssetSymbol
)
==
0
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrInvalidParam
,
"asset exec or symbol not filled"
)
}
...
...
plugin/dapp/mix/proto/mix.proto
View file @
15488a32
...
...
@@ -36,6 +36,11 @@ message PaymentKey{
string
encryptKey
=
3
;
}
message
TokenTxFeeAddrReq
{
string
assetExec
=
1
;
string
assetSymbol
=
2
;
}
enum
MixConfigType
{
Verify
=
0
;
//register unify authorize pubkey
...
...
plugin/dapp/mix/types/mix.pb.go
View file @
15488a32
This diff is collapsed.
Click to expand it.
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