import { Pubkey, Secret } from '~/types/account'; import { Result } from '~/shared'; import { Keypair, TransactionInstruction, TransactionSignature, } from '@solana/web3.js'; export type CommonStructure = { instructions: TransactionInstruction[]; signers: Keypair[]; feePayer?: Keypair; canSubmit?: boolean; data?: T; submit: () => Promise>; }; export type MintStructure = { instructions: TransactionInstruction[]; signers: Keypair[]; data: T; feePayer: Keypair; canSubmit?: boolean; submit: () => Promise>; }; export type PartialSignStructure = { hexInstruction: string; canSubmit?: boolean; data?: T; submit: (feePayer: Secret) => Promise>; };