/** * 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 UPDATE_COLLATERAL_INFO_DISCRIMINATOR: Uint8Array; export declare function getUpdateCollateralInfoDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateCollateralInfoInstruction = string, TAccountGlobalConfig extends string | AccountMeta = string, TAccountTokenInfos extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdminAuthority extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountGlobalConfig extends string ? ReadonlyAccount : TAccountGlobalConfig, TAccountTokenInfos extends string ? WritableAccount : TAccountTokenInfos, ...TRemainingAccounts ]>; export type UpdateCollateralInfoInstructionData = { discriminator: ReadonlyUint8Array; index: bigint; mode: bigint; value: ReadonlyUint8Array; }; export type UpdateCollateralInfoInstructionDataArgs = { index: number | bigint; mode: number | bigint; value: ReadonlyUint8Array; }; export declare function getUpdateCollateralInfoInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateCollateralInfoInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateCollateralInfoInstructionDataCodec(): FixedSizeCodec; export type UpdateCollateralInfoInput = { adminAuthority: TransactionSigner; globalConfig: Address; tokenInfos: Address; index: UpdateCollateralInfoInstructionDataArgs["index"]; mode: UpdateCollateralInfoInstructionDataArgs["mode"]; value: UpdateCollateralInfoInstructionDataArgs["value"]; }; export declare function getUpdateCollateralInfoInstruction(input: UpdateCollateralInfoInput, config?: { programAddress?: TProgramAddress; }): UpdateCollateralInfoInstruction; export type ParsedUpdateCollateralInfoInstruction = { programAddress: Address; accounts: { adminAuthority: TAccountMetas[0]; globalConfig: TAccountMetas[1]; tokenInfos: TAccountMetas[2]; }; data: UpdateCollateralInfoInstructionData; }; export declare function parseUpdateCollateralInfoInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateCollateralInfoInstruction; //# sourceMappingURL=updateCollateralInfo.d.ts.map