-
Notifications
You must be signed in to change notification settings - Fork 0
/
query.go
35 lines (30 loc) · 907 Bytes
/
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
31
32
33
34
35
package types
import "github.com/cosmos/cosmos-sdk/types/query"
// NewQueryParamsRequest returns a new QueryParamsRequest
func NewQueryParamsRequest() *QueryParamsRequest {
return &QueryParamsRequest{}
}
// NewQueryVaultsRequest returns a new QueryVaultsRequest
func NewQueryVaultsRequest() *QueryVaultsRequest {
return &QueryVaultsRequest{}
}
// NewQueryVaultRequest returns a new QueryVaultRequest
func NewQueryVaultRequest(denom string) *QueryVaultRequest {
return &QueryVaultRequest{
Denom: denom,
}
}
// NewQueryDepositsRequest returns a new QueryDepositsRequest
func NewQueryDepositsRequest(
depositor string,
denom string,
ValueInStakedTokens bool,
pagination *query.PageRequest,
) *QueryDepositsRequest {
return &QueryDepositsRequest{
Depositor: depositor,
Denom: denom,
ValueInStakedTokens: ValueInStakedTokens,
Pagination: pagination,
}
}