/** * 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 INSERT_COLLATERAL_INFO_DISCRIMINATOR: Uint8Array; export declare function getInsertCollateralInfoDiscriminatorBytes(): ReadonlyUint8Array; export type InsertCollateralInfoInstruction = 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 InsertCollateralInfoInstructionData = { discriminator: ReadonlyUint8Array; index: bigint; mint: Address; lowerHeuristic: bigint; upperHeuristic: bigint; expHeuristic: bigint; maxTwapDivergenceBps: bigint; scopeTwapPriceChain: Array; scopePriceChain: Array; name: ReadonlyUint8Array; maxAgePriceSeconds: bigint; maxAgeTwapSeconds: bigint; maxIgnorableAmountAsReward: bigint; disabled: number; scopeStakingRateChain: Array; }; export type InsertCollateralInfoInstructionDataArgs = { index: number | bigint; mint: Address; lowerHeuristic: number | bigint; upperHeuristic: number | bigint; expHeuristic: number | bigint; maxTwapDivergenceBps: number | bigint; scopeTwapPriceChain: Array; scopePriceChain: Array; name: ReadonlyUint8Array; maxAgePriceSeconds: number | bigint; maxAgeTwapSeconds: number | bigint; maxIgnorableAmountAsReward: number | bigint; disabled: number; scopeStakingRateChain: Array; }; export declare function getInsertCollateralInfoInstructionDataEncoder(): FixedSizeEncoder; export declare function getInsertCollateralInfoInstructionDataDecoder(): FixedSizeDecoder; export declare function getInsertCollateralInfoInstructionDataCodec(): FixedSizeCodec; export type InsertCollateralInfoInput = { adminAuthority: TransactionSigner; globalConfig: Address; tokenInfos: Address; index: InsertCollateralInfoInstructionDataArgs["index"]; mint: InsertCollateralInfoInstructionDataArgs["mint"]; lowerHeuristic: InsertCollateralInfoInstructionDataArgs["lowerHeuristic"]; upperHeuristic: InsertCollateralInfoInstructionDataArgs["upperHeuristic"]; expHeuristic: InsertCollateralInfoInstructionDataArgs["expHeuristic"]; maxTwapDivergenceBps: InsertCollateralInfoInstructionDataArgs["maxTwapDivergenceBps"]; scopeTwapPriceChain: InsertCollateralInfoInstructionDataArgs["scopeTwapPriceChain"]; scopePriceChain: InsertCollateralInfoInstructionDataArgs["scopePriceChain"]; name: InsertCollateralInfoInstructionDataArgs["name"]; maxAgePriceSeconds: InsertCollateralInfoInstructionDataArgs["maxAgePriceSeconds"]; maxAgeTwapSeconds: InsertCollateralInfoInstructionDataArgs["maxAgeTwapSeconds"]; maxIgnorableAmountAsReward: InsertCollateralInfoInstructionDataArgs["maxIgnorableAmountAsReward"]; disabled: InsertCollateralInfoInstructionDataArgs["disabled"]; scopeStakingRateChain: InsertCollateralInfoInstructionDataArgs["scopeStakingRateChain"]; }; export declare function getInsertCollateralInfoInstruction(input: InsertCollateralInfoInput, config?: { programAddress?: TProgramAddress; }): InsertCollateralInfoInstruction; export type ParsedInsertCollateralInfoInstruction = { programAddress: Address; accounts: { adminAuthority: TAccountMetas[0]; globalConfig: TAccountMetas[1]; tokenInfos: TAccountMetas[2]; }; data: InsertCollateralInfoInstructionData; }; export declare function parseInsertCollateralInfoInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInsertCollateralInfoInstruction; //# sourceMappingURL=insertCollateralInfo.d.ts.map