astroport

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(querier *terra.Querier) (terra.Router, error)

Types

type BootstrapAuction

type BootstrapAuction struct {
	*terra.Contract
	// contains filtered or unexported fields
}

func NewBootstrapAuction

func NewBootstrapAuction(ctx context.Context, querier *terra.Querier) (*BootstrapAuction, error)

func (*BootstrapAuction) Config

func (*BootstrapAuction) NewClaimAllRewardsMessage

func (b *BootstrapAuction) NewClaimAllRewardsMessage(ctx context.Context, sender cosmos.AccAddress) (cosmos.Msg, decimal.Decimal, error)

func (*BootstrapAuction) NewClaimRewardsMessage

func (b *BootstrapAuction) NewClaimRewardsMessage(sender cosmos.AccAddress, withdrawLpShares decimal.Decimal) (cosmos.Msg, error)

func (*BootstrapAuction) RewardPair

func (b *BootstrapAuction) RewardPair() terra.Pair

func (*BootstrapAuction) UserInfo

type BootstrapAuctionConfig

type BootstrapAuctionConfig struct {
	AstroUstPoolAddress string
}

type BootstrapAuctionUserInfo

type BootstrapAuctionUserInfo struct {
	WithdrawableLpShares decimal.Decimal `json:"withdrawable_lp_shares"`
}

type Lockdrop

type Lockdrop struct {
	*terra.Contract
}

func NewLockdrop

func NewLockdrop(querier *terra.Querier) (*Lockdrop, error)

func (*Lockdrop) NewClaimRewardsMessage

func (l *Lockdrop) NewClaimRewardsMessage(sender cosmos.AccAddress, duration int, withdrawLpStake bool, terraswapLpToken string) (cosmos.Msg, error)

type StablePair

type StablePair struct {
	*terra.BasePair
}

func NewStablePair

func NewStablePair(querier *terra.Querier, contractAddress string, token1 terra.Token, token2 terra.Token, lpToken terra.Cw20Token) (*StablePair, error)

type Staking

type Staking struct {
	*terra.Contract
}

func NewStaking

func NewStaking(querier *terra.Querier) (*Staking, error)

func (*Staking) NewEnterMessage

func (s *Staking) NewEnterMessage(sender cosmos.AccAddress, amount decimal.Decimal) (cosmos.Msg, error)

func (*Staking) NewLeaveMessage

func (s *Staking) NewLeaveMessage(sender cosmos.AccAddress, amount decimal.Decimal) (cosmos.Msg, error)

type XykPair

type XykPair struct {
	*terra.BasePair
}

func NewXykPair

func NewXykPair(querier *terra.Querier, contractAddress string, token1 terra.Token, token2 terra.Token, lpToken terra.Cw20Token) (*XykPair, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL