import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common"; export declare namespace IBaseUniswapAdapter { type PermitSignatureStruct = { amount: BigNumberish; deadline: BigNumberish; v: BigNumberish; r: BytesLike; s: BytesLike; }; type PermitSignatureStructOutput = [ amount: bigint, deadline: bigint, v: bigint, r: string, s: string ] & { amount: bigint; deadline: bigint; v: bigint; r: string; s: string; }; } export interface UniswapRepayAdapterInterface extends Interface { getFunction(nameOrSignature: "ADDRESSES_PROVIDER" | "FLASHLOAN_PREMIUM_TOTAL" | "LENDING_POOL" | "MAX_SLIPPAGE_PERCENT" | "ORACLE" | "UNISWAP_ROUTER" | "USD_ADDRESS" | "WETH_ADDRESS" | "executeOperation" | "getAmountsIn" | "getAmountsOut" | "owner" | "renounceOwnership" | "rescueTokens" | "swapAndRepay" | "transferOwnership"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "OwnershipTransferred" | "Swapped"): EventFragment; encodeFunctionData(functionFragment: "ADDRESSES_PROVIDER", values?: undefined): string; encodeFunctionData(functionFragment: "FLASHLOAN_PREMIUM_TOTAL", values?: undefined): string; encodeFunctionData(functionFragment: "LENDING_POOL", values?: undefined): string; encodeFunctionData(functionFragment: "MAX_SLIPPAGE_PERCENT", values?: undefined): string; encodeFunctionData(functionFragment: "ORACLE", values?: undefined): string; encodeFunctionData(functionFragment: "UNISWAP_ROUTER", values?: undefined): string; encodeFunctionData(functionFragment: "USD_ADDRESS", values?: undefined): string; encodeFunctionData(functionFragment: "WETH_ADDRESS", values?: undefined): string; encodeFunctionData(functionFragment: "executeOperation", values: [ AddressLike[], BigNumberish[], BigNumberish[], AddressLike, BytesLike ]): string; encodeFunctionData(functionFragment: "getAmountsIn", values: [BigNumberish, AddressLike, AddressLike]): string; encodeFunctionData(functionFragment: "getAmountsOut", values: [BigNumberish, AddressLike, AddressLike]): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string; encodeFunctionData(functionFragment: "rescueTokens", values: [AddressLike]): string; encodeFunctionData(functionFragment: "swapAndRepay", values: [ AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, IBaseUniswapAdapter.PermitSignatureStruct, boolean ]): string; encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string; decodeFunctionResult(functionFragment: "ADDRESSES_PROVIDER", data: BytesLike): Result; decodeFunctionResult(functionFragment: "FLASHLOAN_PREMIUM_TOTAL", data: BytesLike): Result; decodeFunctionResult(functionFragment: "LENDING_POOL", data: BytesLike): Result; decodeFunctionResult(functionFragment: "MAX_SLIPPAGE_PERCENT", data: BytesLike): Result; decodeFunctionResult(functionFragment: "ORACLE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "UNISWAP_ROUTER", data: BytesLike): Result; decodeFunctionResult(functionFragment: "USD_ADDRESS", data: BytesLike): Result; decodeFunctionResult(functionFragment: "WETH_ADDRESS", data: BytesLike): Result; decodeFunctionResult(functionFragment: "executeOperation", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getAmountsIn", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getAmountsOut", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "rescueTokens", data: BytesLike): Result; decodeFunctionResult(functionFragment: "swapAndRepay", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result; } export declare namespace OwnershipTransferredEvent { type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; type OutputTuple = [previousOwner: string, newOwner: string]; interface OutputObject { previousOwner: string; newOwner: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SwappedEvent { type InputTuple = [ fromAsset: AddressLike, toAsset: AddressLike, fromAmount: BigNumberish, receivedAmount: BigNumberish ]; type OutputTuple = [ fromAsset: string, toAsset: string, fromAmount: bigint, receivedAmount: bigint ]; interface OutputObject { fromAsset: string; toAsset: string; fromAmount: bigint; receivedAmount: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface UniswapRepayAdapter extends BaseContract { connect(runner?: ContractRunner | null): UniswapRepayAdapter; waitForDeployment(): Promise; interface: UniswapRepayAdapterInterface; queryFilter(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; queryFilter(filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; on(event: TCEvent, listener: TypedListener): Promise; on(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; once(event: TCEvent, listener: TypedListener): Promise; once(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; listeners(event: TCEvent): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners(event?: TCEvent): Promise; ADDRESSES_PROVIDER: TypedContractMethod<[], [string], "view">; FLASHLOAN_PREMIUM_TOTAL: TypedContractMethod<[], [bigint], "view">; LENDING_POOL: TypedContractMethod<[], [string], "view">; MAX_SLIPPAGE_PERCENT: TypedContractMethod<[], [bigint], "view">; ORACLE: TypedContractMethod<[], [string], "view">; UNISWAP_ROUTER: TypedContractMethod<[], [string], "view">; USD_ADDRESS: TypedContractMethod<[], [string], "view">; WETH_ADDRESS: TypedContractMethod<[], [string], "view">; executeOperation: TypedContractMethod<[ assets: AddressLike[], amounts: BigNumberish[], premiums: BigNumberish[], initiator: AddressLike, params: BytesLike ], [ boolean ], "nonpayable">; getAmountsIn: TypedContractMethod<[ amountOut: BigNumberish, reserveIn: AddressLike, reserveOut: AddressLike ], [ [bigint, bigint, bigint, bigint, string[]] ], "view">; getAmountsOut: TypedContractMethod<[ amountIn: BigNumberish, reserveIn: AddressLike, reserveOut: AddressLike ], [ [bigint, bigint, bigint, bigint, string[]] ], "view">; owner: TypedContractMethod<[], [string], "view">; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; rescueTokens: TypedContractMethod<[token: AddressLike], [void], "nonpayable">; swapAndRepay: TypedContractMethod<[ collateralAsset: AddressLike, debtAsset: AddressLike, collateralAmount: BigNumberish, debtRepayAmount: BigNumberish, debtRateMode: BigNumberish, permitSignature: IBaseUniswapAdapter.PermitSignatureStruct, useEthPath: boolean ], [ void ], "nonpayable">; transferOwnership: TypedContractMethod<[ newOwner: AddressLike ], [ void ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "ADDRESSES_PROVIDER"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "FLASHLOAN_PREMIUM_TOTAL"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "LENDING_POOL"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "MAX_SLIPPAGE_PERCENT"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "ORACLE"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "UNISWAP_ROUTER"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "USD_ADDRESS"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "WETH_ADDRESS"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "executeOperation"): TypedContractMethod<[ assets: AddressLike[], amounts: BigNumberish[], premiums: BigNumberish[], initiator: AddressLike, params: BytesLike ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "getAmountsIn"): TypedContractMethod<[ amountOut: BigNumberish, reserveIn: AddressLike, reserveOut: AddressLike ], [ [bigint, bigint, bigint, bigint, string[]] ], "view">; getFunction(nameOrSignature: "getAmountsOut"): TypedContractMethod<[ amountIn: BigNumberish, reserveIn: AddressLike, reserveOut: AddressLike ], [ [bigint, bigint, bigint, bigint, string[]] ], "view">; getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">; getFunction(nameOrSignature: "rescueTokens"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "swapAndRepay"): TypedContractMethod<[ collateralAsset: AddressLike, debtAsset: AddressLike, collateralAmount: BigNumberish, debtRepayAmount: BigNumberish, debtRateMode: BigNumberish, permitSignature: IBaseUniswapAdapter.PermitSignatureStruct, useEthPath: boolean ], [ void ], "nonpayable">; getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getEvent(key: "OwnershipTransferred"): TypedContractEvent; getEvent(key: "Swapped"): TypedContractEvent; filters: { "OwnershipTransferred(address,address)": TypedContractEvent; OwnershipTransferred: TypedContractEvent; "Swapped(address,address,uint256,uint256)": TypedContractEvent; Swapped: TypedContractEvent; }; }