import { BN, Program, web3 } from "@project-serum/anchor"; import { EuroMetaV2 } from "../types"; import { EuroPrimitive } from "../euro_primitive"; import { PublicKey, Signer } from "@solana/web3.js"; /** * Called by a taker to settle expired options. Burns option tokens and transfers the appropriate * amount of collateral to the caller's given account. * * Fails if ExpirationData is not yet expired, it is reccomended to attempt to crank ExpirationData * just before sending this ix. * * @param program - EuroPrimitive Program * @param payer - owns the `optionSource`, must sign tx * @param euroMetaKey - EuroMeta pubkey * @param euroMeta - to extract expirationData, optionMint, and collateralPool * @param collateralDestination - uses the same mint as the collateral pool, which may be the stable * asset or the underlying asset depending on the CollateralType of this EuroMeta * @param optionSource - Token account for option tokens, uses the optionMint of this EuroMeta * @param amount - amount of option contracts to burn * @returns - instruction **/ export declare const settleExpiredOptionsV2Instruction: (program: Program, payer: PublicKey, euroMetaKey: web3.PublicKey, euroMeta: EuroMetaV2, collateralDestination: web3.PublicKey, optionSource: web3.PublicKey, amount: BN) => Promise; /** * Called by a taker to settle expired options. Burns option tokens and transfers the appropriate * amount of collateral to the caller's given account. * * Fails if ExpirationData is not yet expired, it is reccomended to attempt to crank ExpirationData * just before sending this ix. * * @param program - EuroPrimitive Program * @param payer - owns the `optionSource`, must sign tx * @param euroMetaKey - EuroMeta pubkey * @param euroMeta - to extract expirationData, optionMint, and collateralPool * @param collateralDestination - uses the same mint as the collateral pool, which may be the stable * asset or the underlying asset depending on the CollateralType of this EuroMeta * @param optionSource - Token account for option tokens, uses the optionMint of this EuroMeta * @param amount - amount of option contracts to burn * @param signers - [payer], must own the `optionSource` **/ export declare const settleExpiredOptionsV2Rpc: (program: Program, payer: PublicKey, euroMetaKey: web3.PublicKey, euroMeta: EuroMetaV2, collateralDestination: web3.PublicKey, optionSource: web3.PublicKey, amount: BN, signers: Signer[]) => Promise; //# sourceMappingURL=settleExpiredOptions.d.ts.map