Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Market

Index

Constructors

Methods

  • getAssociatedAuthority(__namedParameters: { marketId: PublicKey; programId: PublicKey }): Promise<{ nonce: number; publicKey: PublicKey }>
  • Parameters

    • __namedParameters: { marketId: PublicKey; programId: PublicKey }
      • marketId: PublicKey
      • programId: PublicKey

    Returns Promise<{ nonce: number; publicKey: PublicKey }>

  • getLayouts(version: number): { state: Structure<PublicKey | BN | Buffer, "", { asks: PublicKey; baseDepositsTotal: BN; baseFeesAccrued: BN; baseLotSize: BN; baseMint: PublicKey; baseVault: PublicKey; bids: PublicKey; eventQueue: PublicKey; feeRateBps: BN; ownAddress: PublicKey; quoteDepositsTotal: BN; quoteDustThreshold: BN; quoteFeesAccrued: BN; quoteLotSize: BN; quoteMint: PublicKey; quoteVault: PublicKey; referrerRebatesAccrued: BN; requestQueue: PublicKey; vaultSignerNonce: BN }> }
  • Parameters

    • version: number

    Returns { state: Structure<PublicKey | BN | Buffer, "", { asks: PublicKey; baseDepositsTotal: BN; baseFeesAccrued: BN; baseLotSize: BN; baseMint: PublicKey; baseVault: PublicKey; bids: PublicKey; eventQueue: PublicKey; feeRateBps: BN; ownAddress: PublicKey; quoteDepositsTotal: BN; quoteDustThreshold: BN; quoteFeesAccrued: BN; quoteLotSize: BN; quoteMint: PublicKey; quoteVault: PublicKey; referrerRebatesAccrued: BN; requestQueue: PublicKey; vaultSignerNonce: BN }> }

    • state: Structure<PublicKey | BN | Buffer, "", { asks: PublicKey; baseDepositsTotal: BN; baseFeesAccrued: BN; baseLotSize: BN; baseMint: PublicKey; baseVault: PublicKey; bids: PublicKey; eventQueue: PublicKey; feeRateBps: BN; ownAddress: PublicKey; quoteDepositsTotal: BN; quoteDustThreshold: BN; quoteFeesAccrued: BN; quoteLotSize: BN; quoteMint: PublicKey; quoteVault: PublicKey; referrerRebatesAccrued: BN; requestQueue: PublicKey; vaultSignerNonce: BN }>
  • getProgramId(version: number): PublicKey
  • Parameters

    • version: number

    Returns PublicKey

  • getStateLayout(version: number): Structure<PublicKey | BN | Buffer, "", { asks: PublicKey; baseDepositsTotal: BN; baseFeesAccrued: BN; baseLotSize: BN; baseMint: PublicKey; baseVault: PublicKey; bids: PublicKey; eventQueue: PublicKey; feeRateBps: BN; ownAddress: PublicKey; quoteDepositsTotal: BN; quoteDustThreshold: BN; quoteFeesAccrued: BN; quoteLotSize: BN; quoteMint: PublicKey; quoteVault: PublicKey; referrerRebatesAccrued: BN; requestQueue: PublicKey; vaultSignerNonce: BN }>
  • Parameters

    • version: number

    Returns Structure<PublicKey | BN | Buffer, "", { asks: PublicKey; baseDepositsTotal: BN; baseFeesAccrued: BN; baseLotSize: BN; baseMint: PublicKey; baseVault: PublicKey; bids: PublicKey; eventQueue: PublicKey; feeRateBps: BN; ownAddress: PublicKey; quoteDepositsTotal: BN; quoteDustThreshold: BN; quoteFeesAccrued: BN; quoteLotSize: BN; quoteMint: PublicKey; quoteVault: PublicKey; referrerRebatesAccrued: BN; requestQueue: PublicKey; vaultSignerNonce: BN }>

  • getVersion(programId: PublicKey): 3
  • Parameters

    • programId: PublicKey

    Returns 3