Constructors

Properties

liquidityProvidersApi: LiquidityProvidersApi[]
mimirApi: MimirApi[]
network: Network
networkApi: NetworkApi[]
poolsApi: PoolsApi[]
queueApi: QueueApi[]
quoteApi: QuoteApi[]
saversApi: SaversApi[]
thornamesApi: ThornamesApi[]
transactionsApi: TransactionsApi[]

Methods

  • Parameters

    • Optional height: number

      optional thorchain height only

    Returns Promise<LastBlock[]>

    • last block data || or block data pertaining to that height number
  • Parameters

    • asset: string

      asset string

    • address: string

      address

    • Optional height: number

      optional block height, defaults to current tip

    Returns Promise<undefined | LiquidityProviderSummary>

  • Parameters

    • asset: string
    • amount: number
    • loanAsset: string
    • loanOwner: string
    • Optional minOut: string
    • Optional height: number

    Returns Promise<QuoteLoanCloseResponse>

  • Parameters

    • asset: string
    • amount: number
    • targetAsset: string
    • destination: string
    • Optional minOut: string
    • Optional affiliateBps: number
    • Optional affiliate: string
    • Optional height: number

    Returns Promise<QuoteLoanOpenResponse>

  • Function that wraps Mimir and Constants to return the value from a given constant name. Searchs Mimir first.

    Returns Promise<Record<string, number>>

    the mimir or constants value

  • Parameters

    • asset: string

      asset string

    • address: string
    • Optional height: number

      optional thorchain block height parameter

    Returns Promise<Saver>

    • Liquidity Provider Object
  • Parameters

    • asset: string

      asset string

    • Optional height: number

      optional thorchain block height parameter

    Returns Promise<SaversResponse>

    • Liquidity Provider Object
  • Parameters

    • asset: string

      asset to add to savers

    • amount: number

      amount to deposit

    • Optional height: number

      block height

    Returns Promise<QuoteSaverDepositResponse>

    quotes deposit object response

  • Parameters

    • fromAsset: string

      input asset

    • toAsset: string

      output asset

    • amount: number

      amount to swap

    • Optional destinationAddress: string
    • Optional streamingInterval: number
    • Optional streamingQuantity: number
    • Optional toleranceBps: number

      slip percent

    • Optional affiliateBps: number

      affiliate percent

    • Optional affiliate: string

      affiliate address

    • Optional height: number

      block height

    • Optional refundAddress: string

    Returns Promise<QuoteSwapResponse>

    quotes swap object response

  • Returns the oubound transactions held by THORChain due to outbound delay May be empty if there are no transactions

    Returns Promise<TxOutItem[]>

    Array

Generated using TypeDoc