2021-04-30 06:47:10 +08:00
|
|
|
import React from "react";
|
|
|
|
import { SignatureResult, TransactionInstruction } from "@solana/web3.js";
|
|
|
|
import { InstructionCard } from "../InstructionCard";
|
|
|
|
import { Address } from "components/common/Address";
|
|
|
|
import { CreateBot } from "./types";
|
|
|
|
|
|
|
|
export function CreateBotDetailsCard(props: {
|
|
|
|
ix: TransactionInstruction;
|
|
|
|
index: number;
|
|
|
|
result: SignatureResult;
|
|
|
|
info: CreateBot;
|
|
|
|
innerCards?: JSX.Element[];
|
|
|
|
childIndex?: number;
|
|
|
|
}) {
|
|
|
|
const { ix, index, result, info, innerCards, childIndex } = props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<InstructionCard
|
|
|
|
ix={ix}
|
|
|
|
index={index}
|
|
|
|
result={result}
|
|
|
|
title="Bonfida Bot: Create Bot"
|
|
|
|
innerCards={innerCards}
|
|
|
|
childIndex={childIndex}
|
|
|
|
>
|
|
|
|
<tr>
|
|
|
|
<td>Program</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">
|
2021-04-30 06:47:10 +08:00
|
|
|
<Address pubkey={info.programId} alignRight link />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Bot Token Mint</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">
|
2021-04-30 06:47:10 +08:00
|
|
|
<Address pubkey={info.mintKey} alignRight link />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Bot Address</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">
|
2021-04-30 06:47:10 +08:00
|
|
|
<Address pubkey={info.poolKey} alignRight link />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Target Pool Token Address</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">
|
2021-04-30 06:47:10 +08:00
|
|
|
<Address pubkey={info.targetPoolTokenKey} alignRight link />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Serum Program ID</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">
|
2021-04-30 06:47:10 +08:00
|
|
|
<Address pubkey={info.serumProgramId} alignRight link />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Signal Provider Address</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">
|
2021-04-30 06:47:10 +08:00
|
|
|
<Address pubkey={info.signalProviderKey} alignRight link />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Pool Seed</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">{info.poolSeed}</td>
|
2021-04-30 06:47:10 +08:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Fee Ratio</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">{info.feeRatio}</td>
|
2021-04-30 06:47:10 +08:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Fee Collection Period</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">{info.feeCollectionPeriod}</td>
|
2021-04-30 06:47:10 +08:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Serum Markets</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">{info.markets}</td>
|
2021-04-30 06:47:10 +08:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Deposit Amounts</td>
|
2021-11-28 14:49:22 -06:00
|
|
|
<td className="text-lg-end">{info.depositAmounts}</td>
|
2021-04-30 06:47:10 +08:00
|
|
|
</tr>
|
|
|
|
</InstructionCard>
|
|
|
|
);
|
|
|
|
}
|