-
Notifications
You must be signed in to change notification settings - Fork 0
/
query.go
30 lines (24 loc) · 1.01 KB
/
query.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of p source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package executor
import (
"github.com/bnchain/bnchain/types"
pty "github.com/bnchain/plugin/plugin/dapp/privacy/types"
)
// Query_ShowAmountsOfUTXO show amount of utxo
func (p *privacy) Query_ShowAmountsOfUTXO(param *pty.ReqPrivacyToken) (types.Message, error) {
return p.ShowAmountsOfUTXO(param)
}
// Query_ShowUTXOs4SpecifiedAmount shwo utxos for specified amount
func (p *privacy) Query_ShowUTXOs4SpecifiedAmount(param *pty.ReqPrivacyToken) (types.Message, error) {
return p.ShowUTXOs4SpecifiedAmount(param)
}
// Query_GetUTXOGlobalIndex get utxo global index
func (p *privacy) Query_GetUTXOGlobalIndex(param *pty.ReqUTXOGlobalIndex) (types.Message, error) {
return p.getGlobalUtxoIndex(param)
}
// Query_GetTxsByAddr get transactions by address
func (p *privacy) Query_GetTxsByAddr(param *types.ReqAddr) (types.Message, error) {
return p.GetTxsByAddr(param)
}