-
Notifications
You must be signed in to change notification settings - Fork 13
/
querier.go
33 lines (27 loc) · 1020 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
33
package types
// DONTCOVER
// client is excluded from test coverage in the poc phase milestone 1 and will be included in milestone 2 with completeness
// QueryLiquidityPool liquidity query endpoint supported by the liquidity querier
const (
QueryLiquidityPool = "liquidityPool"
QueryLiquidityPools = "liquidityPools"
)
// QueryLiquidityPoolParams is the query parameters for 'custom/liquidity'
type QueryLiquidityPoolParams struct {
PoolId uint64 `json:"pool_id" yaml:"pool_id"` // nolint:golint
}
// return params of Liquidity Pool Query
func NewQueryLiquidityPoolParams(poolID uint64) QueryLiquidityPoolParams {
return QueryLiquidityPoolParams{
PoolId: poolID,
}
}
// QueryValidatorsParams defines the params for the following queries:
// - 'custom/liquidity/liquidityPools'
type QueryLiquidityPoolsParams struct {
Page, Limit int
}
// return params of Liquidity Pools Query
func NewQueryLiquidityPoolsParams(page, limit int) QueryLiquidityPoolsParams {
return QueryLiquidityPoolsParams{page, limit}
}