Interface ExchangeOrderParams

Params for Exchange instruction

interface ExchangeOrderParams {
    assetMint: PublicKey;
    connection: Connection;
    currencyMint: PublicKey;
    expectedPrice: BN;
    extraAccounts?: AccountMeta[];
    orderAccount: PublicKey;
    orderInitializer: PublicKey;
    orderTaker: PublicKey;
    orderTakerDepositTokenAccount: PublicKey;
    orderType: OrderSide;
    programId: PublicKey;
    purchaseQty: number;
    registeredStake: PublicKey;
    saVault: PublicKey;
    stakingAccount: PublicKey;
    stakingProgramId: PublicKey;
}

Hierarchy (view full)

Properties

assetMint: PublicKey
connection: Connection
currencyMint: PublicKey
expectedPrice: BN
extraAccounts?: AccountMeta[]
orderAccount: PublicKey
orderInitializer: PublicKey
orderTaker: PublicKey
orderTakerDepositTokenAccount: PublicKey
orderType: OrderSide
programId: PublicKey
purchaseQty: number
registeredStake: PublicKey
saVault: PublicKey
stakingAccount: PublicKey
stakingProgramId: PublicKey