/** * 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 Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit"; import { SCOPE_PROGRAM_ADDRESS } from "../programs"; export declare const REFRESH_CHAINLINK_PRICE_DISCRIMINATOR: Uint8Array; export declare function getRefreshChainlinkPriceDiscriminatorBytes(): ReadonlyUint8Array; export type RefreshChainlinkPriceInstruction = string, TAccountOraclePrices extends string | AccountMeta = string, TAccountOracleMappings extends string | AccountMeta = string, TAccountOracleTwaps extends string | AccountMeta = string, TAccountVerifierAccount extends string | AccountMeta = string, TAccountAccessController extends string | AccountMeta = string, TAccountConfigAccount extends string | AccountMeta = string, TAccountVerifierProgramId extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountUser extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountUser, TAccountOraclePrices extends string ? WritableAccount : TAccountOraclePrices, TAccountOracleMappings extends string ? ReadonlyAccount : TAccountOracleMappings, TAccountOracleTwaps extends string ? WritableAccount : TAccountOracleTwaps, TAccountVerifierAccount extends string ? ReadonlyAccount : TAccountVerifierAccount, TAccountAccessController extends string ? ReadonlyAccount : TAccountAccessController, TAccountConfigAccount extends string ? ReadonlyAccount : TAccountConfigAccount, TAccountVerifierProgramId extends string ? ReadonlyAccount : TAccountVerifierProgramId, ...TRemainingAccounts ]>; export type RefreshChainlinkPriceInstructionData = { discriminator: ReadonlyUint8Array; token: number; serializedChainlinkReport: ReadonlyUint8Array; }; export type RefreshChainlinkPriceInstructionDataArgs = { token: number; serializedChainlinkReport: ReadonlyUint8Array; }; export declare function getRefreshChainlinkPriceInstructionDataEncoder(): Encoder; export declare function getRefreshChainlinkPriceInstructionDataDecoder(): Decoder; export declare function getRefreshChainlinkPriceInstructionDataCodec(): Codec; export type RefreshChainlinkPriceInput = { /** The account that signs the transaction. */ user: TransactionSigner; oraclePrices: Address; oracleMappings: Address; oracleTwaps: Address; /** * The Verifier Account stores the DON's public keys and other verification parameters. * This account must match the PDA derived from the verifier program. */ verifierAccount: Address; /** The Access Controller Account */ accessController: Address; /** The Config Account is a PDA derived from a signed report */ configAccount: Address; /** The Verifier Program ID specifies the target Chainlink Data Streams Verifier Program. */ verifierProgramId: Address; token: RefreshChainlinkPriceInstructionDataArgs["token"]; serializedChainlinkReport: RefreshChainlinkPriceInstructionDataArgs["serializedChainlinkReport"]; }; export declare function getRefreshChainlinkPriceInstruction(input: RefreshChainlinkPriceInput, config?: { programAddress?: TProgramAddress; }): RefreshChainlinkPriceInstruction; export type ParsedRefreshChainlinkPriceInstruction = { programAddress: Address; accounts: { /** The account that signs the transaction. */ user: TAccountMetas[0]; oraclePrices: TAccountMetas[1]; oracleMappings: TAccountMetas[2]; oracleTwaps: TAccountMetas[3]; /** * The Verifier Account stores the DON's public keys and other verification parameters. * This account must match the PDA derived from the verifier program. */ verifierAccount: TAccountMetas[4]; /** The Access Controller Account */ accessController: TAccountMetas[5]; /** The Config Account is a PDA derived from a signed report */ configAccount: TAccountMetas[6]; /** The Verifier Program ID specifies the target Chainlink Data Streams Verifier Program. */ verifierProgramId: TAccountMetas[7]; }; data: RefreshChainlinkPriceInstructionData; }; export declare function parseRefreshChainlinkPriceInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRefreshChainlinkPriceInstruction; //# sourceMappingURL=refreshChainlinkPrice.d.ts.map