Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new TerraswapPair(options: Partial<{ codeID: number; contractAddress: string; key: Key; lcd: LCDClient }>): TerraswapPair

Properties

Optional codeID

codeID: undefined | number

Optional contractAddress

contractAddress: undefined | string

key

key: Key

Optional lcd

lcd: undefined | LCDClient

Accessors

wallet

  • get wallet(): Wallet

Methods

getPair

getPool

getReverseSimulation

getSimulation

init

  • init(init_msg: InitMsg, migratable: boolean): MsgInstantiateContract

provideLiquidity

swap

  • swap(offer_asset: Asset<AssetInfo>, params: { belief_price?: undefined | string | number | Decimal; max_spread?: undefined | string | number | Decimal; to?: undefined | string }): MsgExecuteContract
  • Parameters

    • offer_asset: Asset<AssetInfo>
    • params: { belief_price?: undefined | string | number | Decimal; max_spread?: undefined | string | number | Decimal; to?: undefined | string }
      • Optional belief_price?: undefined | string | number | Decimal
      • Optional max_spread?: undefined | string | number | Decimal
      • Optional to?: undefined | string

    Returns MsgExecuteContract

withdrawLiquidity

  • withdrawLiquidity(amount: Value, lp_token: TerraswapToken): MsgExecuteContract