import React from "react"; import { SignatureResult, TransactionInstruction } from "@solana/web3.js"; import { InstructionCard } from "../InstructionCard"; import { Address } from "components/common/Address"; import { NewOrder } from "./types"; export function NewOrderDetailsCard(props: { ix: TransactionInstruction; index: number; result: SignatureResult; info: NewOrder; innerCards?: JSX.Element[]; childIndex?: number; }) { const { ix, index, result, info, innerCards, childIndex } = props; return ( Program
Market
Open Orders
Request Queue
Payer
Open Orders Owner
Base Vault
Quote Vault
Side {info.data.side} Order Type {info.data.orderType} Limit Price {info.data.limitPrice.toString(10)} Max Quantity {info.data.maxQuantity.toString(10)} Client Id {info.data.clientId.toString(10)} ); }