Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit c345981

Browse files
authored
Explorer: Remove support for bonfida bot instructions (#27766)
1 parent afe1cfe commit c345981

15 files changed

+110
-1693
lines changed

explorer/package-lock.json

+110-383
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

explorer/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"private": true,
55
"dependencies": {
66
"@blockworks-foundation/mango-client": "^3.6.7",
7-
"@bonfida/bot": "^0.5.3",
87
"@bonfida/spl-name-service": "^0.1.30",
98
"@cloudflare/stream-react": "^1.2.0",
109
"@metamask/jazzicon": "^2.0.0",

explorer/src/components/account/TokenHistoryCard.tsx

-14
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ import {
3939
isSerumInstruction,
4040
parseSerumInstructionTitle,
4141
} from "components/instruction/serum/types";
42-
import {
43-
isBonfidaBotInstruction,
44-
parseBonfidaBotInstructionTitle,
45-
} from "components/instruction/bonfida-bot/types";
4642
import { INNER_INSTRUCTIONS_START_SLOT } from "pages/TransactionDetailsPage";
4743
import { useCluster, Cluster } from "providers/cluster";
4844
import { Link } from "react-router-dom";
@@ -492,16 +488,6 @@ const TokenTransactionRow = React.memo(
492488
reportError(error, { signature: tx.signature });
493489
return undefined;
494490
}
495-
} else if (
496-
transactionInstruction &&
497-
isBonfidaBotInstruction(transactionInstruction)
498-
) {
499-
try {
500-
name = parseBonfidaBotInstructionTitle(transactionInstruction);
501-
} catch (error) {
502-
reportError(error, { signature: tx.signature });
503-
return undefined;
504-
}
505491
} else if (
506492
transactionInstruction &&
507493
isMangoInstruction(transactionInstruction)

explorer/src/components/instruction/BonfidaBotDetails.tsx

-92
This file was deleted.

explorer/src/components/instruction/bonfida-bot/CancelOrderDetails.tsx

-105
This file was deleted.

explorer/src/components/instruction/bonfida-bot/CollectFeesDetails.tsx

-60
This file was deleted.

explorer/src/components/instruction/bonfida-bot/CreateBotDetails.tsx

-94
This file was deleted.

0 commit comments

Comments
 (0)