/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils, } from "ethers"; import { FunctionFragment, Result } from "@ethersproject/abi"; import { Listener, Provider } from "@ethersproject/providers"; import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, } from "./common"; export type SwapDataStruct = { swapType: BigNumberish; extRouter: string; extCalldata: BytesLike; needScale: boolean; }; export type SwapDataStructOutput = [number, string, string, boolean] & { swapType: number; extRouter: string; extCalldata: string; needScale: boolean; }; export type TokenOutputStruct = { tokenOut: string; minTokenOut: BigNumberish; tokenRedeemSy: string; pendleSwap: string; swapData: SwapDataStruct; }; export type TokenOutputStructOutput = [ string, BigNumber, string, string, SwapDataStructOutput ] & { tokenOut: string; minTokenOut: BigNumber; tokenRedeemSy: string; pendleSwap: string; swapData: SwapDataStructOutput; }; export interface PendleSwapHelperInterface extends utils.Interface { contractName: "PendleSwapHelper"; functions: { "swapWithFixedPricePTAMM(address,address,address,uint256,(address,uint256,address,address,(uint8,address,bytes,bool)))": FunctionFragment; }; encodeFunctionData( functionFragment: "swapWithFixedPricePTAMM", values: [string, string, string, BigNumberish, TokenOutputStruct] ): string; decodeFunctionResult( functionFragment: "swapWithFixedPricePTAMM", data: BytesLike ): Result; events: {}; } export interface PendleSwapHelper extends BaseContract { contractName: "PendleSwapHelper"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: PendleSwapHelperInterface; queryFilter( event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>; listeners( eventFilter?: TypedEventFilter ): Array>; listeners(eventName?: string): Array; removeAllListeners( eventFilter: TypedEventFilter ): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { swapWithFixedPricePTAMM( receiver: string, fixedPricePTAMM: string, PT: string, exactPtIn: BigNumberish, out: TokenOutputStruct, overrides?: Overrides & { from?: string | Promise } ): Promise; }; swapWithFixedPricePTAMM( receiver: string, fixedPricePTAMM: string, PT: string, exactPtIn: BigNumberish, out: TokenOutputStruct, overrides?: Overrides & { from?: string | Promise } ): Promise; callStatic: { swapWithFixedPricePTAMM( receiver: string, fixedPricePTAMM: string, PT: string, exactPtIn: BigNumberish, out: TokenOutputStruct, overrides?: CallOverrides ): Promise; }; filters: {}; estimateGas: { swapWithFixedPricePTAMM( receiver: string, fixedPricePTAMM: string, PT: string, exactPtIn: BigNumberish, out: TokenOutputStruct, overrides?: Overrides & { from?: string | Promise } ): Promise; }; populateTransaction: { swapWithFixedPricePTAMM( receiver: string, fixedPricePTAMM: string, PT: string, exactPtIn: BigNumberish, out: TokenOutputStruct, overrides?: Overrides & { from?: string | Promise } ): Promise; }; }