@nosana/kit
Version:
Nosana KIT
14 lines (13 loc) • 715 B
TypeScript
import { type Address, type TransactionSigner } from '@solana/kit';
import type { getListInstruction } from '../../../../generated_clients/jobs/index.js';
import type { InstructionsHelperParams } from './types.js';
export type PostParams = {
market: Address;
timeout: number | bigint;
ipfsHash: string;
node?: Address;
payer?: TransactionSigner;
};
export type PostInstruction = ReturnType<typeof getListInstruction>;
export type Post = (params: PostParams) => Promise<PostInstruction>;
export declare function post({ market, timeout, ipfsHash, payer }: PostParams, { config, deps, client, getRequiredWallet, getStaticAccounts, getNosATA, }: InstructionsHelperParams): Promise<PostInstruction>;