Skip to content

Commit

Permalink
fix: infer types
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <[email protected]>
  • Loading branch information
md0x committed Jan 17, 2025
1 parent f9216c3 commit 9f09497
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/svm/web3-v2/solanaProgramUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,13 @@ import web3, {
GetTransactionApi,
RpcTransport,
Signature,
Slot,
TransactionError,
UnixTimestamp,
} from "@solana/web3-v2.js";

type GetTransactionReturnType = ReturnType<GetTransactionApi["getTransaction"]>;

type GetSignaturesForAddressConfig = Parameters<GetSignaturesForAddressApi["getSignaturesForAddress"]>[1];

type GetSignaturesForAddressTransaction = {
blockTime: UnixTimestamp | null;
confirmationStatus: Commitment | null;
err: TransactionError | null;
memo: string | null;
signature: Signature;
slot: Slot;
};
type GetSignaturesForAddressTransaction = ReturnType<GetSignaturesForAddressApi["getSignaturesForAddress"]>[number];

/**
* Reads all events for a specific program.
Expand Down

0 comments on commit 9f09497

Please sign in to comment.