/** * 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 { PERPETUALS_PROGRAM_ADDRESS } from "../programs"; export declare const TEST_INIT_DISCRIMINATOR: Uint8Array; export declare function getTestInitDiscriminatorBytes(): ReadonlyUint8Array; export type TestInitInstruction = string, TAccountAdmin extends string | AccountMeta = string, TAccountTransferAuthority extends string | AccountMeta = string, TAccountPerpetuals extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountTokenProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountUpgradeAuthority extends string ? WritableSignerAccount & AccountSignerMeta : TAccountUpgradeAuthority, TAccountAdmin extends string ? ReadonlyAccount : TAccountAdmin, TAccountTransferAuthority extends string ? WritableAccount : TAccountTransferAuthority, TAccountPerpetuals extends string ? WritableAccount : TAccountPerpetuals, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts ]>; export type TestInitInstructionData = { discriminator: ReadonlyUint8Array; allowSwap: boolean; allowAddLiquidity: boolean; allowRemoveLiquidity: boolean; allowIncreasePosition: boolean; allowDecreasePosition: boolean; allowCollateralWithdrawal: boolean; allowLiquidatePosition: boolean; }; export type TestInitInstructionDataArgs = { allowSwap: boolean; allowAddLiquidity: boolean; allowRemoveLiquidity: boolean; allowIncreasePosition: boolean; allowDecreasePosition: boolean; allowCollateralWithdrawal: boolean; allowLiquidatePosition: boolean; }; export declare function getTestInitInstructionDataEncoder(): FixedSizeEncoder; export declare function getTestInitInstructionDataDecoder(): FixedSizeDecoder; export declare function getTestInitInstructionDataCodec(): FixedSizeCodec; export type TestInitInput = { upgradeAuthority: TransactionSigner; admin: Address; transferAuthority: Address; perpetuals: Address; systemProgram?: Address; tokenProgram?: Address; allowSwap: TestInitInstructionDataArgs["allowSwap"]; allowAddLiquidity: TestInitInstructionDataArgs["allowAddLiquidity"]; allowRemoveLiquidity: TestInitInstructionDataArgs["allowRemoveLiquidity"]; allowIncreasePosition: TestInitInstructionDataArgs["allowIncreasePosition"]; allowDecreasePosition: TestInitInstructionDataArgs["allowDecreasePosition"]; allowCollateralWithdrawal: TestInitInstructionDataArgs["allowCollateralWithdrawal"]; allowLiquidatePosition: TestInitInstructionDataArgs["allowLiquidatePosition"]; }; export declare function getTestInitInstruction(input: TestInitInput, config?: { programAddress?: TProgramAddress; }): TestInitInstruction; export type ParsedTestInitInstruction = { programAddress: Address; accounts: { upgradeAuthority: TAccountMetas[0]; admin: TAccountMetas[1]; transferAuthority: TAccountMetas[2]; perpetuals: TAccountMetas[3]; systemProgram: TAccountMetas[4]; tokenProgram: TAccountMetas[5]; }; data: TestInitInstructionData; }; export declare function parseTestInitInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedTestInitInstruction; //# sourceMappingURL=testInit.d.ts.map