/** * 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 Address, type Codec, type Decoder, type Encoder, type IAccountMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount } from '@solana/kit'; import { LIGHTHOUSE_PROGRAM_ADDRESS } from '../programs'; import { LogLevel, type AccountDeltaAssertion, type AccountDeltaAssertionArgs, type LogLevelArgs } from '../types'; export declare const ASSERT_ACCOUNT_DELTA_DISCRIMINATOR = 4; export declare function getAssertAccountDeltaDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array; export type AssertAccountDeltaInstruction = string, TAccountAccountB extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountAccountA extends string ? ReadonlyAccount : TAccountAccountA, TAccountAccountB extends string ? ReadonlyAccount : TAccountAccountB, ...TRemainingAccounts ]>; export type AssertAccountDeltaInstructionData = { discriminator: number; logLevel: LogLevel; assertion: AccountDeltaAssertion; }; export type AssertAccountDeltaInstructionDataArgs = { logLevel?: LogLevelArgs; assertion: AccountDeltaAssertionArgs; }; export declare function getAssertAccountDeltaInstructionDataEncoder(): Encoder; export declare function getAssertAccountDeltaInstructionDataDecoder(): Decoder; export declare function getAssertAccountDeltaInstructionDataCodec(): Codec; export type AssertAccountDeltaInput = { /** Account A where the delta is calculated from */ accountA: Address; /** Account B where the delta is calculated to */ accountB: Address; logLevel?: AssertAccountDeltaInstructionDataArgs['logLevel']; assertion: AssertAccountDeltaInstructionDataArgs['assertion']; }; export declare function getAssertAccountDeltaInstruction(input: AssertAccountDeltaInput, config?: { programAddress?: TProgramAddress; }): AssertAccountDeltaInstruction; export type ParsedAssertAccountDeltaInstruction = { programAddress: Address; accounts: { /** Account A where the delta is calculated from */ accountA: TAccountMetas[0]; /** Account B where the delta is calculated to */ accountB: TAccountMetas[1]; }; data: AssertAccountDeltaInstructionData; }; export declare function parseAssertAccountDeltaInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedAssertAccountDeltaInstruction; //# sourceMappingURL=assertAccountDelta.d.ts.map