/** * 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"; import { type UpdateOracleMappingAndMetadataEntriesWithId, type UpdateOracleMappingAndMetadataEntriesWithIdArgs } from "../types"; export declare const UPDATE_MAPPING_AND_METADATA_DISCRIMINATOR: Uint8Array; export declare function getUpdateMappingAndMetadataDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateMappingAndMetadataInstruction = string, TAccountConfiguration extends string | AccountMeta = string, TAccountOracleMappings extends string | AccountMeta = string, TAccountTokensMetadata extends string | AccountMeta = string, TAccountOraclePrices extends string | AccountMeta = string, TAccountOracleTwaps extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountConfiguration extends string ? ReadonlyAccount : TAccountConfiguration, TAccountOracleMappings extends string ? WritableAccount : TAccountOracleMappings, TAccountTokensMetadata extends string ? WritableAccount : TAccountTokensMetadata, TAccountOraclePrices extends string ? WritableAccount : TAccountOraclePrices, TAccountOracleTwaps extends string ? WritableAccount : TAccountOracleTwaps, ...TRemainingAccounts ]>; export type UpdateMappingAndMetadataInstructionData = { discriminator: ReadonlyUint8Array; feedName: string; updates: Array; }; export type UpdateMappingAndMetadataInstructionDataArgs = { feedName: string; updates: Array; }; export declare function getUpdateMappingAndMetadataInstructionDataEncoder(): Encoder; export declare function getUpdateMappingAndMetadataInstructionDataDecoder(): Decoder; export declare function getUpdateMappingAndMetadataInstructionDataCodec(): Codec; export type UpdateMappingAndMetadataInput = { admin: TransactionSigner; configuration: Address; oracleMappings: Address; tokensMetadata: Address; /** Price entry will be reset if the corresponding mapping changes */ oraclePrices: Address; /** Twap entry will be reset if the corresponding mapping changes */ oracleTwaps: Address; feedName: UpdateMappingAndMetadataInstructionDataArgs["feedName"]; updates: UpdateMappingAndMetadataInstructionDataArgs["updates"]; }; export declare function getUpdateMappingAndMetadataInstruction(input: UpdateMappingAndMetadataInput, config?: { programAddress?: TProgramAddress; }): UpdateMappingAndMetadataInstruction; export type ParsedUpdateMappingAndMetadataInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; configuration: TAccountMetas[1]; oracleMappings: TAccountMetas[2]; tokensMetadata: TAccountMetas[3]; /** Price entry will be reset if the corresponding mapping changes */ oraclePrices: TAccountMetas[4]; /** Twap entry will be reset if the corresponding mapping changes */ oracleTwaps: TAccountMetas[5]; }; data: UpdateMappingAndMetadataInstructionData; }; export declare function parseUpdateMappingAndMetadataInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateMappingAndMetadataInstruction; //# sourceMappingURL=updateMappingAndMetadata.d.ts.map