-
Notifications
You must be signed in to change notification settings - Fork 1
/
querier.go
32 lines (27 loc) · 862 Bytes
/
querier.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
package types
// query endpoints supported by the supply Querier
const (
QueryTotalSupply = "total_supply"
QuerySupplyOf = "supply_of"
)
// QueryTotalSupply defines the params for the following queries:
//
// - 'custom/supply/totalSupply'
type QueryTotalSupplyParams struct {
Page, Limit int
}
// NewQueryTotalSupplyParams creates a new instance to query the total supply
func NewQueryTotalSupplyParams(page, limit int) QueryTotalSupplyParams {
return QueryTotalSupplyParams{page, limit}
}
// QuerySupplyOfParams defines the params for the following queries:
//
// - 'custom/supply/totalSupplyOf'
type QuerySupplyOfParams struct {
Denom string
}
// NewQuerySupplyOfParams creates a new instance to query the total supply
// of a given denomination
func NewQuerySupplyOfParams(denom string) QuerySupplyOfParams {
return QuerySupplyOfParams{denom}
}