-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: common types for token builders (#39)
- Loading branch information
1 parent
2c573b2
commit e3c8aff
Showing
3 changed files
with
40 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { TransactionSigner } from "@solana/signers"; | ||
import type { | ||
TransactionMessageWithBlockhashLifetime, | ||
TransactionVersion, | ||
} from "@solana/transaction-messages"; | ||
import type { CreateTransactionInput, Simplify } from "../../../types"; | ||
|
||
export type TransactionBuilderInput< | ||
TVersion extends TransactionVersion = "legacy", | ||
TFeePayer extends TransactionSigner = TransactionSigner, | ||
TLifetimeConstraint extends | ||
| TransactionMessageWithBlockhashLifetime["lifetimeConstraint"] | ||
| undefined = undefined, | ||
> = Simplify< | ||
Omit< | ||
CreateTransactionInput<TVersion, TFeePayer, TLifetimeConstraint>, | ||
"version" | "instructions" | "feePayer" | ||
> & | ||
Partial<Pick<CreateTransactionInput<TVersion, TFeePayer, TLifetimeConstraint>, "version">> | ||
>; |