astroport

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(ctx context.Context, lcd *terra.LCDClient) (terra.Router, error)

Types

type BootstrapAuction

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

func NewBootstrapAuction

func NewBootstrapAuction(ctx context.Context, lcd *terra.LCDClient) (*BootstrapAuction, error)

func (*BootstrapAuction) Config

func (*BootstrapAuction) NewClaimAllRewardsMessage

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

func (*BootstrapAuction) NewClaimRewardsMessage

func (b *BootstrapAuction) NewClaimRewardsMessage(withdrawLpShares decimal.Decimal) (msg.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(lcd *terra.LCDClient) (*Lockdrop, error)

func (*Lockdrop) NewClaimRewardsMessage

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

type StablePair

type StablePair struct {
	*terra.BasePair
}

func NewStablePair

func NewStablePair(ctx context.Context, lcd *terra.LCDClient, contractAddress string, token1 terra.Token, token2 terra.Token, lpToken terra.Cw20Token) (*StablePair, error)

type Staking added in v0.8.0

type Staking struct {
	*terra.Contract
}

func NewStaking added in v0.8.0

func NewStaking(lcd *terra.LCDClient) (*Staking, error)

func (*Staking) NewEnterMessage added in v0.8.0

func (s *Staking) NewEnterMessage(amount decimal.Decimal) (msg.Msg, error)

func (*Staking) NewLeaveMessage added in v0.8.0

func (s *Staking) NewLeaveMessage(amount decimal.Decimal) (msg.Msg, error)

type XykPair

type XykPair struct {
	*terra.BasePair
}

func NewXykPair

func NewXykPair(ctx context.Context, lcd *terra.LCDClient, 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