/** * 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"; import { type OracleParams, type OracleParamsArgs, type Permissions, type PermissionsArgs, type PricingParams, type PricingParamsArgs } from "../types"; export declare const SET_CUSTODY_CONFIG_DISCRIMINATOR: Uint8Array; export declare function getSetCustodyConfigDiscriminatorBytes(): ReadonlyUint8Array; export type SetCustodyConfigInstruction = string, TAccountPerpetuals extends string | AccountMeta = string, TAccountCustody extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAdmin, TAccountPerpetuals extends string ? ReadonlyAccount : TAccountPerpetuals, TAccountCustody extends string ? WritableAccount : TAccountCustody, ...TRemainingAccounts ]>; export type SetCustodyConfigInstructionData = { discriminator: ReadonlyUint8Array; oracle: OracleParams; pricing: PricingParams; permissions: Permissions; hourlyFundingBps: bigint; targetRatioBps: bigint; }; export type SetCustodyConfigInstructionDataArgs = { oracle: OracleParamsArgs; pricing: PricingParamsArgs; permissions: PermissionsArgs; hourlyFundingBps: number | bigint; targetRatioBps: number | bigint; }; export declare function getSetCustodyConfigInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetCustodyConfigInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetCustodyConfigInstructionDataCodec(): FixedSizeCodec; export type SetCustodyConfigInput = { admin: TransactionSigner; perpetuals: Address; custody: Address; oracle: SetCustodyConfigInstructionDataArgs["oracle"]; pricing: SetCustodyConfigInstructionDataArgs["pricing"]; permissions: SetCustodyConfigInstructionDataArgs["permissions"]; hourlyFundingBps: SetCustodyConfigInstructionDataArgs["hourlyFundingBps"]; targetRatioBps: SetCustodyConfigInstructionDataArgs["targetRatioBps"]; }; export declare function getSetCustodyConfigInstruction(input: SetCustodyConfigInput, config?: { programAddress?: TProgramAddress; }): SetCustodyConfigInstruction; export type ParsedSetCustodyConfigInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; perpetuals: TAccountMetas[1]; custody: TAccountMetas[2]; }; data: SetCustodyConfigInstructionData; }; export declare function parseSetCustodyConfigInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetCustodyConfigInstruction; //# sourceMappingURL=setCustodyConfig.d.ts.map