import { BN, Program, web3 } from "@project-serum/anchor"; import { EuroMetaV2, OptionTypeV2 } from "../types"; import { EuroPrimitive } from "../euro_primitive"; import { Signer } from "@solana/web3.js"; /** * Mints the given number of options against the given collateral account, which should be underlying or * stable depending on the collateral type used. The actual amount of collateral to be deducted is determined * based on the number of contracts to mint. * * @param program - EuroPrimitive Program * @param payer - owns the collateral account, must sign tx * @param euroMetaKey - The EuroMeta pubkey * @param euroMeta - The EuroMetaV2 * @param minterCollateralKey - the source of the collateral. If collateral type = underlying, this * is the underlying pool. If stable, this is the stable pool. * @param optionDestination - Typically the option pool ATA associated with the EuroMeta * @param writerDestination: Typically the writer pool ATA associated with the EuroMeta * @param amount - How many contracts to mint * @param optionType - The option type of the EuroMeta, e.g. call, put, long call spread, long put spread, etc. * @param signers - [payer], must own the minterCollateral account **/ export declare const mintOptionsV2Rpc: (program: Program, payer: web3.PublicKey, euroMetaKey: web3.PublicKey, euroMeta: EuroMetaV2, minterCollateralKey: web3.PublicKey, optionDestination: web3.PublicKey, writerDestination: web3.PublicKey, amount: BN, optionType: OptionTypeV2, signers: Signer[]) => Promise; /** * Mints the given number of options against the given collateral account, which should be underlying or * stable depending on the collateral type used. The actual amount of collateral to be deducted is determined * based on the number of contracts to mint. * * @param program - EuroPrimitive Program * @param payer - owns the collateral account, must sign tx * @param euroMetaKey - The EuroMeta pubkey * @param euroMeta - The EuroMetaV2 * @param minterCollateralKey - the source of the collateral. If collateral type = underlying, this * is the underlying pool. If stable, this is the stable pool. * @param optionDestination - Typically the option pool ATA associated with the EuroMeta * @param writerDestination: Typically the writer pool ATA associated with the EuroMeta * @param amount - How many contracts to mint * @param optionType - The option type of the EuroMeta, e.g. call, put, long call spread, long put spread, etc. * @returns - instruction to call mintOptionsV2 **/ export declare const mintOptionsV2Instruction: (program: Program, payer: web3.PublicKey, euroMetaKey: web3.PublicKey, euroMeta: EuroMetaV2, minterCollateralKey: web3.PublicKey, optionDestination: web3.PublicKey, writerDestination: web3.PublicKey, amount: BN, optionType: OptionTypeV2) => Promise; //# sourceMappingURL=mintOptions.d.ts.map