Documentation ¶
Index ¶
- func NewAssetInfoFactory() terra.AssetInfoFactory
- func NewRouter(querier *terra.Querier) (terra.Router, error)
- type Amps
- type BoostInfo
- type Farm
- 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)
- type Pair
- type Prism
- type PrismAssetInfo
- type RewardInfo
- type Router
- type YLUNAStaking
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAssetInfoFactory ¶
func NewAssetInfoFactory() terra.AssetInfoFactory
Types ¶
type Farm ¶
func (*Farm) NewActivateBoostMessage ¶
func (*Farm) NewBondMessage ¶
func (*Farm) NewClaimAndPledgeWithdrawnRewardsMessage ¶
func (*Farm) NewClaimWithdrawnRewardsMessage ¶
func (*Farm) NewUnBondMessage ¶
type Prism ¶
type Prism struct { Amps *Amps YLUNAStaking *YLUNAStaking Farm *Farm }
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 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.