Options
All
  • Public
  • Public/Protected
  • All
Menu

TODO:

export

Hierarchy

  • JetReserve

Index

Constructors

Properties

client: JetClient
market: JetMarket

Methods

  • makeRefreshIx(): Promise<TransactionInstruction>
  • refresh(): Promise<void>
  • Reloads this reserve and market.

    memberof

    JetReserve

    Returns Promise<void>

  • sendRefreshTx(): Promise<string>
  • Derive all the associated accounts for a reserve.

    memberof

    JetReserve

    Parameters

    • client: JetClient

      The client to use for the request

    • address: PublicKey

      The reserve address to derive the accounts for.

    • tokenMint: PublicKey

      The address of the mint for the token stored in the reserve.

    Returns ReserveAccounts

  • Load a Reserve program account.

    static
    memberof

    JetReserve

    Parameters

    • client: JetClient
    • address: PublicKey

      The reserve address

    • Optional maybeMarket: JetMarket

      The Market program account associated with the reserve. If it is not provided it will also be loaded.

    Returns Promise<JetReserve>

  • Return all Reserve program accounts that are associated with the argued market.

    Parameters

    • client: JetClient

      The client to fetch data

    • market: JetMarket

      The market that contains all reserves

    Returns Promise<JetReserve[]>

  • loadPythOracle(client: JetClient, pythOraclePrice: PublicKey, pythOracleProduct: PublicKey): Promise<{ priceData: PriceData; productData: ProductData }>
  • Parameters

    • client: JetClient
    • pythOraclePrice: PublicKey
    • pythOracleProduct: PublicKey

    Returns Promise<{ priceData: PriceData; productData: ProductData }>

Generated using TypeDoc