/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit"; import { YVAULTS_PROGRAM_ADDRESS } from "../programs"; export declare const SIGN_TERMS_DISCRIMINATOR: Uint8Array; export declare function getSignTermsDiscriminatorBytes(): ReadonlyUint8Array; export type SignTermsInstruction = string, TAccountOwnerSignatureState extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountRent extends string | AccountMeta = "SysvarRent111111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountOwner extends string ? WritableSignerAccount & AccountSignerMeta : TAccountOwner, TAccountOwnerSignatureState extends string ? WritableAccount : TAccountOwnerSignatureState, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, ...TRemainingAccounts ]>; export type SignTermsInstructionData = { discriminator: ReadonlyUint8Array; signature: ReadonlyUint8Array; }; export type SignTermsInstructionDataArgs = { signature: ReadonlyUint8Array; }; export declare function getSignTermsInstructionDataEncoder(): FixedSizeEncoder; export declare function getSignTermsInstructionDataDecoder(): FixedSizeDecoder; export declare function getSignTermsInstructionDataCodec(): FixedSizeCodec; export type SignTermsInput = { owner: TransactionSigner; ownerSignatureState: Address; systemProgram?: Address; rent?: Address; signature: SignTermsInstructionDataArgs["signature"]; }; export declare function getSignTermsInstruction(input: SignTermsInput, config?: { programAddress?: TProgramAddress; }): SignTermsInstruction; export type ParsedSignTermsInstruction = { programAddress: Address; accounts: { owner: TAccountMetas[0]; ownerSignatureState: TAccountMetas[1]; systemProgram: TAccountMetas[2]; rent: TAccountMetas[3]; }; data: SignTermsInstructionData; }; export declare function parseSignTermsInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSignTermsInstruction; //# sourceMappingURL=signTerms.d.ts.map