/** * 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const UPDATE_RATE_INTEREST_BEARING_MINT_DISCRIMINATOR = 33; export declare function getUpdateRateInterestBearingMintDiscriminatorBytes(): ReadonlyUint8Array; export declare const UPDATE_RATE_INTEREST_BEARING_MINT_INTEREST_BEARING_MINT_DISCRIMINATOR = 1; export declare function getUpdateRateInterestBearingMintInterestBearingMintDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateRateInterestBearingMintInstruction = string, TAccountRateAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, TAccountRateAuthority extends string ? WritableAccount : TAccountRateAuthority, ...TRemainingAccounts ]>; export type UpdateRateInterestBearingMintInstructionData = { discriminator: number; interestBearingMintDiscriminator: number; /** The interest rate to update. */ rate: number; }; export type UpdateRateInterestBearingMintInstructionDataArgs = { /** The interest rate to update. */ rate: number; }; export declare function getUpdateRateInterestBearingMintInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateRateInterestBearingMintInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateRateInterestBearingMintInstructionDataCodec(): FixedSizeCodec; export type UpdateRateInterestBearingMintInput = { /** The mint. */ mint: Address; /** The mint rate authority. */ rateAuthority: Address | TransactionSigner; rate: UpdateRateInterestBearingMintInstructionDataArgs['rate']; multiSigners?: Array; }; export declare function getUpdateRateInterestBearingMintInstruction(input: UpdateRateInterestBearingMintInput, config?: { programAddress?: TProgramAddress; }): UpdateRateInterestBearingMintInstruction ? WritableSignerAccount & AccountSignerMeta : TAccountRateAuthority>; export type ParsedUpdateRateInterestBearingMintInstruction = { programAddress: Address; accounts: { /** The mint. */ mint: TAccountMetas[0]; /** The mint rate authority. */ rateAuthority: TAccountMetas[1]; }; data: UpdateRateInterestBearingMintInstructionData; }; export declare function parseUpdateRateInterestBearingMintInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateRateInterestBearingMintInstruction; //# sourceMappingURL=updateRateInterestBearingMint.d.ts.map