Documentation ¶
Index ¶
- func NewAssetInfoFactory() terra.AssetInfoFactory
- func NewRouter(querier *terra.Querier) (terra.Router, error)
- type Amps
- type BoostInfo
- type Farm
- func (f *Farm) BondAmount(ctx context.Context, address cosmos.AccAddress) (decimal.Decimal, error)
- func (f *Farm) NewActivateBoostMessage(sender cosmos.AccAddress) (cosmos.Msg, error)
- func (f *Farm) NewBondMessage(sender cosmos.AccAddress, amount decimal.Decimal) (cosmos.Msg, error)
- func (f *Farm) NewClaimAndPledgeWithdrawnRewardsMessage(sender cosmos.AccAddress) (cosmos.Msg, error)
- func (f *Farm) NewClaimWithdrawnRewardsMessage(sender cosmos.AccAddress) (cosmos.Msg, error)
- func (f *Farm) NewUnBondMessage(sender cosmos.AccAddress, amount decimal.Decimal) (cosmos.Msg, error)
- func (f *Farm) WithdrawableRewards(ctx context.Context, address cosmos.AccAddress) (decimal.Decimal, error)
- type Governance
- type Pair
- type Prism
- type PrismAssetInfo
- type RewardInfo
- type Router
- type XPrismState
- type YLUNAStaking
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAssetInfoFactory ¶
func NewAssetInfoFactory() terra.AssetInfoFactory
Types ¶
type Farm ¶
func (*Farm) BondAmount ¶ added in v0.14.0
func (*Farm) NewActivateBoostMessage ¶
func (*Farm) NewBondMessage ¶
func (*Farm) NewClaimAndPledgeWithdrawnRewardsMessage ¶
func (*Farm) NewClaimWithdrawnRewardsMessage ¶
func (*Farm) NewUnBondMessage ¶
func (*Farm) WithdrawableRewards ¶ added in v0.3.0
type Governance ¶ added in v0.3.0
func NewGovernance ¶ added in v0.3.0
func NewGovernance(querier *terra.Querier) (*Governance, error)
func (*Governance) XPrismState ¶ added in v0.3.0
func (g *Governance) XPrismState(ctx context.Context) (XPrismState, error)
type Prism ¶
type Prism struct { Amps *Amps YLUNAStaking *YLUNAStaking Farm *Farm Governance *Governance }
type PrismAssetInfo ¶
type PrismAssetInfo struct { Token string `json:"cw20,omitempty"` NativeToken string `json:"native,omitempty"` }
func (PrismAssetInfo) Id ¶
func (ai PrismAssetInfo) Id() string
func (PrismAssetInfo) IsNative ¶
func (ai PrismAssetInfo) IsNative() bool
type RewardInfo ¶
type Router ¶
type Router struct {
*terra.BaseRouter
}
type XPrismState ¶ added in v0.3.0
type XPrismState struct { ExchangeRate decimal.Decimal `json:"exchange_rate"` EffectiveXprismSupply decimal.Decimal `json:"effective_xprism_supply"` EffectiveUnderlyingPrism decimal.Decimal `json:"effective_underlying_prism"` TotalPendingWithdrawXprism decimal.Decimal `json:"total_pending_withdraw_xprism"` TotalPendingWithdrawPrism decimal.Decimal `json:"total_pending_withdraw_prism"` }
type YLUNAStaking ¶
func NewYLUNAStaking ¶
func NewYLUNAStaking(querier *terra.Querier) (*YLUNAStaking, error)
func (*YLUNAStaking) GetRewardInfo ¶
func (y *YLUNAStaking) GetRewardInfo(ctx context.Context, stakerAddress cosmos.AccAddress) (RewardInfo, error)
func (*YLUNAStaking) NewClaimAndConvertRewardMessage ¶
func (y *YLUNAStaking) NewClaimAndConvertRewardMessage(sender cosmos.AccAddress, claimToken terra.Cw20Token) (cosmos.Msg, error)
Click to show internal directories.
Click to hide internal directories.