Documentation
¶
Index ¶
- func GetAddressFromKey(clientCtx client.Context, keyName string) (sdk.AccAddress, error)
- func QueryBalances(keyName string) (sdk.Coins, error)
- func QueryEpochProvision(epoch epoch.EpochInfo) cosmostypes.Dec
- func QueryPoolId(poolId int) (*types.Pool, error)
- func QueryPools() ([]types.Pool, error)
- func QuerySpotPrice(poolId int, tokenInDenom string, tokenOutDenom string) (float64, error)
- func QueryTx(txHash string) (*types.TxResponse, error)
- func QueryTxWithRetry(txHash string, trials int) (*types.TxResponse, error)
- func QueryUosmoBalance(keyName string) (*big.Int, error)
- type DistributionProportions
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddressFromKey ¶
set fields in client context with keyname
func QueryEpochProvision ¶
func QueryEpochProvision(epoch epoch.EpochInfo) cosmostypes.Dec
func QueryPools ¶
func QuerySpotPrice ¶
func QueryTxWithRetry ¶
func QueryTxWithRetry(txHash string, trials int) (*types.TxResponse, error)
Types ¶
type DistributionProportions ¶
type DistributionProportions struct {
PoolIncentives cosmostypes.Dec
}
type Pool ¶
type Pool struct { TotalValueLocked cosmostypes.Dec // probably wrong. DistributionProportions DistributionProportions GuageId int32 PotWeight cosmostypes.Dec PoolId int32 PoolIncentives cosmostypes.Dec EpochIdentifier string TotalWeight cosmostypes.Dec // total weight of funds in poolId Duration int64 // duration in seconds that funds are locked in pool. APY float64 }
Click to show internal directories.
Click to hide internal directories.