Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions app/components/inspector/InstructionsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { type InstructionSurface, InstructionSurfaceProvider } from '@entities/i
import { isParsedInstruction, toParsedTransaction, useInstructionParser } from '@entities/instruction-parser';
import {
ADDRESS_LOOKUP_TABLE_PROGRAM_LABEL,
BPF_LOADER_PROGRAM_LABEL,
BPF_UPGRADEABLE_LOADER_PROGRAM_LABEL,
SPL_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_LABEL,
SPL_MEMO_PROGRAM_LABEL,
Expand All @@ -13,11 +14,13 @@ import {
} from '@explorer/parsers';
import { AddressLookupTableDetailsCard } from '@features/decode-instruction-address-lookup-table';
import { AssociatedTokenDetailsCard } from '@features/decode-instruction-associated-token';
import { BpfLoaderDetailsCard } from '@features/decode-instruction-bpf-loader';
import { ComputeBudgetDetailsCard } from '@features/decode-instruction-compute-budget';
import { Ed25519DetailsCard } from '@features/decode-instruction-ed25519';
import { LighthouseDetailsCard } from '@features/decode-instruction-lighthouse';
import { MemoDetailsCard } from '@features/decode-instruction-memo';
import { isProgramMetadataInstruction } from '@features/decode-instruction-pmp/detection';
import { SolanaAttestationDetailsCard } from '@features/decode-instruction-sas';
import { IdlInstructionCard, useIdlInstructionDecode } from '@features/decode-instruction-with-idl';
import { ZkElGamalProofDetailsCard } from '@features/decode-instruction-zk-elgamal-proof';
import { PythDetailsCard } from '@features/instruction-program-pyth';
Expand Down Expand Up @@ -297,6 +300,18 @@ function InspectorInstructionCard({
/>
);
}
if (parsedIx.programLabel === 'solana-attestation-service') {
return (
<SolanaAttestationDetailsCard
key={index}
ix={parsedIx}
raw={ix}
index={index}
childIndex={childIndex}
innerCards={innerCards}
/>
);
}
if (parsedIx.programLabel === 'pyth') {
return (
<ErrorBoundary fallback={unknownCard}>
Expand Down Expand Up @@ -383,6 +398,17 @@ function InspectorInstructionCard({
innerCards={innerCards}
/>
);
case BPF_LOADER_PROGRAM_LABEL:
return (
<BpfLoaderDetailsCard
key={index}
ix={parsedIx}
raw={ix}
index={index}
childIndex={childIndex}
innerCards={innerCards}
/>
);
case BPF_UPGRADEABLE_LOADER_PROGRAM_LABEL:
return (
<ErrorBoundary fallback={unknownCard}>
Expand Down Expand Up @@ -493,6 +519,19 @@ function InspectorInstructionCard({
/>
</ErrorBoundary>
);
case 'solana-attestation-service':
return (
<ErrorBoundary fallback={unknownCard}>
<SolanaAttestationDetailsCard
key={index}
ix={parsedIx}
raw={ix}
index={index}
childIndex={childIndex}
innerCards={innerCards}
/>
</ErrorBoundary>
);
}

return unknownCard;
Expand Down
66 changes: 0 additions & 66 deletions app/components/instruction/bpf-loader/BpfLoaderDetailsCard.tsx

This file was deleted.

109 changes: 0 additions & 109 deletions app/components/instruction/sas/SolanaAttestationDetailsCard.tsx

This file was deleted.

9 changes: 9 additions & 0 deletions app/features/decode-instruction-bpf-loader/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export { bpfLoaderInstructionParser } from './lib/bpf-loader-client';
export {
BPF_LOADER_PARSER_LABEL,
BPF_LOADER_PROGRAM_ADDRESS,
type BpfLoaderParsed,
parseBpfLoaderKitInstruction,
parseBpfLoaderRpcInstruction,
} from './lib/bpf-loader-parser';
export { BpfLoaderDetailsCard } from './ui/BpfLoaderDetailsCard';
Loading
Loading