Wrapper object used for reading data from a wrapper for manifest markets.

Properties

address: PublicKey

Public key for the market account.

Methods

  • Parameters

    • market: Market
    • accounts: {
          baseTokenProgram?: PublicKey;
          payer?: PublicKey;
          quoteTokenProgram?: PublicKey;
      }
      • OptionalbaseTokenProgram?: PublicKey
      • Optionalpayer?: PublicKey
      • OptionalquoteTokenProgram?: PublicKey
    • args: {
          amount: number;
          isBid: boolean;
          orderId?: number;
          price: number;
      }
      • amount: number
      • isBid: boolean
      • OptionalorderId?: number
      • price: number

    Returns TransactionInstruction

  • Updates the data in a Wrapper.

    Parameters

    • connection: Connection

      The Solana Connection object

    Returns Promise<void>

  • Parameters

    • market: Market
    • accounts: {
          baseTokenProgram?: PublicKey;
          platformTokenAccount: PublicKey;
          quoteTokenProgram?: PublicKey;
          referrerTokenAccount: PublicKey;
      }
      • OptionalbaseTokenProgram?: PublicKey
      • platformTokenAccount: PublicKey
      • OptionalquoteTokenProgram?: PublicKey
      • referrerTokenAccount: PublicKey
    • params: SettleFundsInstructionArgs

    Returns TransactionInstruction

  • Parameters

    Returns {
        market: Market;
        numBaseTokens: number;
        numQuoteTokens: number;
    }[]

  • Parameters

    • connection: Connection
    • payer: PublicKey

    Returns Promise<null | Readonly<{
        account: AccountInfo<Buffer>;
        pubkey: PublicKey;
    }>>

  • Returns a Wrapper for a given address, a data buffer

    Parameters

    • __namedParameters: {
          address: PublicKey;
          buffer: Buffer;
      }
      • address: PublicKey
      • buffer: Buffer

    Returns UiWrapper

  • Parameters

    • connection: Connection
    • baseMint: PublicKey
    • baseDecimals: number
    • quoteMint: PublicKey
    • quoteDecimals: number
    • owner: PublicKey
    • payer: PublicKey
    • args: {
          amount: number;
          isBid: boolean;
          orderId?: number;
          price: number;
      }
      • amount: number
      • isBid: boolean
      • OptionalorderId?: number
      • price: number
    • baseTokenProgram: PublicKey = TOKEN_PROGRAM_ID
    • quoteTokenProgram: PublicKey = TOKEN_PROGRAM_ID

    Returns Promise<{
        ixs: TransactionInstruction[];
        signers: Signer[];
    }>

  • Parameters

    • connection: Connection
    • owner: PublicKey
    • payer: PublicKey

    Returns Promise<{
        ixs: TransactionInstruction[];
        signers: Signer[];
    }>