Options
All
  • Public
  • Public/Protected
  • All
Menu

TODO: convert instructions and txns into static members

export
implements

{JetMarketData}

Hierarchy

  • JetMarket

Implements

Index

Properties

address: PublicKey
client: JetClient
marketAuthority: PublicKey
owner: PublicKey
quoteCurrency: string
quoteTokenMint: PublicKey

Methods

  • Fetch the Obligation account that is associated with the argued address or public key if it exists, otherwise will resolve to null.

    memberof

    JetClient

    Parameters

    Returns Promise<null | ObligationAccount>

  • Derives the program address and nonce bump for an Obligation account with the current market and argued borrower keys.

    memberof

    JetClient

    Parameters

    • borrower: PublicKey

    Returns DerivedAccount

  • refresh(): Promise<void>
  • Get the latest market account data from the network.

    memberof

    JetMarket

    Returns Promise<void>

  • setFlags(flags: BN): Promise<void>
  • TODO:

    memberof

    JetMarket

    Parameters

    • flags: BN

    Returns Promise<void>

  • Return all Market program accounts that have been created

    memberof

    JetClient

    Parameters

    • client: JetClient
    • Optional filters: GetProgramAccountsFilter[]

    Returns Promise<JetMarket[]>

  • Load the market account data from the network.

    memberof

    JetMarket

    Parameters

    • client: JetClient

      The program client

    • address: PublicKey

      The address of the market

    Returns Promise<JetMarket>

    An object for interacting with the Jet market.

  • static
    memberof

    JetMarket

    Parameters

    • client: JetClient

      The program client

    • address: PublicKey

      The address of the market

    Returns undefined | JetMarket

    JetMarket | undefined

Generated using TypeDoc