Protocol Documentation
Table of Contents
-
centerchain/liquidity/v1/query.proto
-
Scalar Value Types
centerchain/liquidity/v1/query.proto
QueryEmissionScheduleRequest
| Field | Type | Label | Description |
|---|---|---|---|
| pool_id | uint64 |
QueryEmissionScheduleResponse
| Field | Type | Label | Description |
|---|---|---|---|
| schedule | EmissionSchedule | ||
| remaining_budget | string |
QueryFarmPositionRequest
| Field | Type | Label | Description |
|---|---|---|---|
| pool_id | uint64 | ||
| owner | string |
QueryFarmPositionResponse
| Field | Type | Label | Description |
|---|---|---|---|
| amount | string | ||
| claimable_fee_rewards | cosmos.base.v1beta1.Coin | repeated | |
| claimable_emission_reward | cosmos.base.v1beta1.Coin |
QueryIBCDenomRequest
| Field | Type | Label | Description |
|---|---|---|---|
| denom | string |
QueryIBCDenomResponse
| Field | Type | Label | Description |
|---|---|---|---|
| registration | IBCDenomRegistration | ||
| found | bool |
QueryIBCDenomsRequest
| Field | Type | Label | Description |
|---|---|---|---|
| pagination | cosmos.base.query.v1beta1.PageRequest |
QueryIBCDenomsResponse
| Field | Type | Label | Description |
|---|---|---|---|
| registrations | IBCDenomRegistration | repeated | |
| pagination | cosmos.base.query.v1beta1.PageResponse |
QueryParamsRequest
QueryParamsResponse
| Field | Type | Label | Description |
|---|---|---|---|
| params | Params |
QueryPendingUpdatesRequest
| Field | Type | Label | Description |
|---|---|---|---|
| pool_id | uint64 |
QueryPendingUpdatesResponse
| Field | Type | Label | Description |
|---|---|---|---|
| pending_owner | string | ||
| pending_owner_activation_height | int64 | ||
| pending_swap_fee_ppm | uint64 | ||
| pending_lp_fee_share_ppm | uint64 | ||
| pending_staking_fee_share_ppm | uint64 | ||
| pending_fee_activation_height | int64 | ||
| pending_emergency_owner | string | ||
| pending_emergency_owner_activation_height | int64 |
QueryPoolAccountBalancesRequest
| Field | Type | Label | Description |
|---|---|---|---|
| pool_id | uint64 |
QueryPoolAccountBalancesResponse
| Field | Type | Label | Description |
|---|---|---|---|
| reserve | cosmos.base.v1beta1.Coin | repeated | |
| farm | cosmos.base.v1beta1.Coin | repeated | |
| fee_collector | cosmos.base.v1beta1.Coin | repeated | |
| balances_available | bool |
QueryPoolByPairRequest
| Field | Type | Label | Description |
|---|---|---|---|
| denom_a | string | ||
| denom_b | string |
QueryPoolByPairResponse
| Field | Type | Label | Description |
|---|---|---|---|
| pool | Pool |
QueryPoolRequest
| Field | Type | Label | Description |
|---|---|---|---|
| pool_id | uint64 |
QueryPoolResponse
| Field | Type | Label | Description |
|---|---|---|---|
| pool | Pool |
QueryPoolSharesRequest
| Field | Type | Label | Description |
|---|---|---|---|
| pool_id | uint64 |
QueryPoolSharesResponse
| Field | Type | Label | Description |
|---|---|---|---|
| total_shares | string | ||
| circulating_shares | string | ||
| locked_shares | string | ||
| farm_staked_shares | string |
QueryPoolsRequest
| Field | Type | Label | Description |
|---|---|---|---|
| pagination | cosmos.base.query.v1beta1.PageRequest |
QueryPoolsResponse
| Field | Type | Label | Description |
|---|---|---|---|
| pools | Pool | repeated | |
| pagination | cosmos.base.query.v1beta1.PageResponse |
QuerySimulateSwapExactAmountInRequest
| Field | Type | Label | Description |
|---|---|---|---|
| pool_id | uint64 | ||
| token_in | cosmos.base.v1beta1.Coin | ||
| token_out_denom | string |
QuerySimulateSwapExactAmountInResponse
| Field | Type | Label | Description |
|---|---|---|---|
| token_out | cosmos.base.v1beta1.Coin |
QuerySimulateSwapExactAmountOutRequest
| Field | Type | Label | Description |
|---|---|---|---|
| pool_id | uint64 | ||
| token_out | cosmos.base.v1beta1.Coin | ||
| token_in_denom | string |
QuerySimulateSwapExactAmountOutResponse
| Field | Type | Label | Description |
|---|---|---|---|
| token_in | cosmos.base.v1beta1.Coin |
Query
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Params | QueryParamsRequest | QueryParamsResponse | |
| Pool | QueryPoolRequest | QueryPoolResponse | |
| PoolByPair | QueryPoolByPairRequest | QueryPoolByPairResponse | |
| Pools | QueryPoolsRequest | QueryPoolsResponse | |
| PoolShares | QueryPoolSharesRequest | QueryPoolSharesResponse | |
| FarmPosition | QueryFarmPositionRequest | QueryFarmPositionResponse | |
| EmissionSchedule | QueryEmissionScheduleRequest | QueryEmissionScheduleResponse | |
| PendingUpdates | QueryPendingUpdatesRequest | QueryPendingUpdatesResponse | |
| PoolAccountBalances | QueryPoolAccountBalancesRequest | QueryPoolAccountBalancesResponse | |
| SimulateSwapExactAmountIn | QuerySimulateSwapExactAmountInRequest | QuerySimulateSwapExactAmountInResponse | |
| SimulateSwapExactAmountOut | QuerySimulateSwapExactAmountOutRequest | QuerySimulateSwapExactAmountOutResponse | |
| IBCDenom | QueryIBCDenomRequest | QueryIBCDenomResponse | |
| IBCDenoms | QueryIBCDenomsRequest | QueryIBCDenomsResponse |