UNPKG

@uniswap/universal-router

Version:

Smart contracts for Universal Router

360 lines (290 loc) 8.98 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction, } from "ethers"; import { Contract, ContractTransaction, CallOverrides, } from "@ethersproject/contracts"; import { BytesLike } from "@ethersproject/bytes"; import { Listener, Provider } from "@ethersproject/providers"; import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; interface IPositionDescriptorInterface extends ethers.utils.Interface { functions: { "currencyRatioPriority(address)": FunctionFragment; "flipRatio(address,address)": FunctionFragment; "nativeCurrencyLabel()": FunctionFragment; "poolManager()": FunctionFragment; "tokenURI(address,uint256)": FunctionFragment; "wrappedNative()": FunctionFragment; }; encodeFunctionData( functionFragment: "currencyRatioPriority", values: [string] ): string; encodeFunctionData( functionFragment: "flipRatio", values: [string, string] ): string; encodeFunctionData( functionFragment: "nativeCurrencyLabel", values?: undefined ): string; encodeFunctionData( functionFragment: "poolManager", values?: undefined ): string; encodeFunctionData( functionFragment: "tokenURI", values: [string, BigNumberish] ): string; encodeFunctionData( functionFragment: "wrappedNative", values?: undefined ): string; decodeFunctionResult( functionFragment: "currencyRatioPriority", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "flipRatio", data: BytesLike): Result; decodeFunctionResult( functionFragment: "nativeCurrencyLabel", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "poolManager", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result; decodeFunctionResult( functionFragment: "wrappedNative", data: BytesLike ): Result; events: {}; } export class IPositionDescriptor extends Contract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise<this>; on(event: EventFilter | string, listener: Listener): this; once(event: EventFilter | string, listener: Listener): this; addListener(eventName: EventFilter | string, listener: Listener): this; removeAllListeners(eventName: EventFilter | string): this; removeListener(eventName: any, listener: Listener): this; interface: IPositionDescriptorInterface; functions: { currencyRatioPriority( currency: string, overrides?: CallOverrides ): Promise<{ 0: BigNumber; }>; "currencyRatioPriority(address)"( currency: string, overrides?: CallOverrides ): Promise<{ 0: BigNumber; }>; flipRatio( currency0: string, currency1: string, overrides?: CallOverrides ): Promise<{ 0: boolean; }>; "flipRatio(address,address)"( currency0: string, currency1: string, overrides?: CallOverrides ): Promise<{ 0: boolean; }>; nativeCurrencyLabel(overrides?: CallOverrides): Promise<{ 0: string; }>; "nativeCurrencyLabel()"(overrides?: CallOverrides): Promise<{ 0: string; }>; poolManager(overrides?: CallOverrides): Promise<{ 0: string; }>; "poolManager()"(overrides?: CallOverrides): Promise<{ 0: string; }>; tokenURI( positionManager: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise<{ 0: string; }>; "tokenURI(address,uint256)"( positionManager: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise<{ 0: string; }>; wrappedNative(overrides?: CallOverrides): Promise<{ 0: string; }>; "wrappedNative()"(overrides?: CallOverrides): Promise<{ 0: string; }>; }; currencyRatioPriority( currency: string, overrides?: CallOverrides ): Promise<BigNumber>; "currencyRatioPriority(address)"( currency: string, overrides?: CallOverrides ): Promise<BigNumber>; flipRatio( currency0: string, currency1: string, overrides?: CallOverrides ): Promise<boolean>; "flipRatio(address,address)"( currency0: string, currency1: string, overrides?: CallOverrides ): Promise<boolean>; nativeCurrencyLabel(overrides?: CallOverrides): Promise<string>; "nativeCurrencyLabel()"(overrides?: CallOverrides): Promise<string>; poolManager(overrides?: CallOverrides): Promise<string>; "poolManager()"(overrides?: CallOverrides): Promise<string>; tokenURI( positionManager: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise<string>; "tokenURI(address,uint256)"( positionManager: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise<string>; wrappedNative(overrides?: CallOverrides): Promise<string>; "wrappedNative()"(overrides?: CallOverrides): Promise<string>; callStatic: { currencyRatioPriority( currency: string, overrides?: CallOverrides ): Promise<BigNumber>; "currencyRatioPriority(address)"( currency: string, overrides?: CallOverrides ): Promise<BigNumber>; flipRatio( currency0: string, currency1: string, overrides?: CallOverrides ): Promise<boolean>; "flipRatio(address,address)"( currency0: string, currency1: string, overrides?: CallOverrides ): Promise<boolean>; nativeCurrencyLabel(overrides?: CallOverrides): Promise<string>; "nativeCurrencyLabel()"(overrides?: CallOverrides): Promise<string>; poolManager(overrides?: CallOverrides): Promise<string>; "poolManager()"(overrides?: CallOverrides): Promise<string>; tokenURI( positionManager: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise<string>; "tokenURI(address,uint256)"( positionManager: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise<string>; wrappedNative(overrides?: CallOverrides): Promise<string>; "wrappedNative()"(overrides?: CallOverrides): Promise<string>; }; filters: {}; estimateGas: { currencyRatioPriority( currency: string, overrides?: CallOverrides ): Promise<BigNumber>; "currencyRatioPriority(address)"( currency: string, overrides?: CallOverrides ): Promise<BigNumber>; flipRatio( currency0: string, currency1: string, overrides?: CallOverrides ): Promise<BigNumber>; "flipRatio(address,address)"( currency0: string, currency1: string, overrides?: CallOverrides ): Promise<BigNumber>; nativeCurrencyLabel(overrides?: CallOverrides): Promise<BigNumber>; "nativeCurrencyLabel()"(overrides?: CallOverrides): Promise<BigNumber>; poolManager(overrides?: CallOverrides): Promise<BigNumber>; "poolManager()"(overrides?: CallOverrides): Promise<BigNumber>; tokenURI( positionManager: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>; "tokenURI(address,uint256)"( positionManager: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>; wrappedNative(overrides?: CallOverrides): Promise<BigNumber>; "wrappedNative()"(overrides?: CallOverrides): Promise<BigNumber>; }; populateTransaction: { currencyRatioPriority( currency: string, overrides?: CallOverrides ): Promise<PopulatedTransaction>; "currencyRatioPriority(address)"( currency: string, overrides?: CallOverrides ): Promise<PopulatedTransaction>; flipRatio( currency0: string, currency1: string, overrides?: CallOverrides ): Promise<PopulatedTransaction>; "flipRatio(address,address)"( currency0: string, currency1: string, overrides?: CallOverrides ): Promise<PopulatedTransaction>; nativeCurrencyLabel( overrides?: CallOverrides ): Promise<PopulatedTransaction>; "nativeCurrencyLabel()"( overrides?: CallOverrides ): Promise<PopulatedTransaction>; poolManager(overrides?: CallOverrides): Promise<PopulatedTransaction>; "poolManager()"(overrides?: CallOverrides): Promise<PopulatedTransaction>; tokenURI( positionManager: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise<PopulatedTransaction>; "tokenURI(address,uint256)"( positionManager: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise<PopulatedTransaction>; wrappedNative(overrides?: CallOverrides): Promise<PopulatedTransaction>; "wrappedNative()"(overrides?: CallOverrides): Promise<PopulatedTransaction>; }; }