@gooddollar/goodprotocol
Version:
GoodDollar Protocol
185 lines (162 loc) • 4.74 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumber,
BigNumberish,
BytesLike,
CallOverrides,
ContractTransaction,
Overrides,
PopulatedTransaction,
Signer,
utils,
} from "ethers";
import type { FunctionFragment, Result } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
TypedEventFilter,
TypedEvent,
TypedListener,
OnEvent,
} from "../../common";
export declare namespace IQuoterV2 {
export type QuoteExactInputSingleParamsStruct = {
tokenIn: string;
tokenOut: string;
amountIn: BigNumberish;
fee: BigNumberish;
sqrtPriceLimitX96: BigNumberish;
};
export type QuoteExactInputSingleParamsStructOutput = [
string,
string,
BigNumber,
number,
BigNumber
] & {
tokenIn: string;
tokenOut: string;
amountIn: BigNumber;
fee: number;
sqrtPriceLimitX96: BigNumber;
};
}
export interface IQuoterV2Interface extends utils.Interface {
functions: {
"quoteExactInput(bytes,uint256)": FunctionFragment;
"quoteExactInputSingle((address,address,uint256,uint24,uint160))": FunctionFragment;
};
getFunction(
nameOrSignatureOrTopic: "quoteExactInput" | "quoteExactInputSingle"
): FunctionFragment;
encodeFunctionData(
functionFragment: "quoteExactInput",
values: [BytesLike, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "quoteExactInputSingle",
values: [IQuoterV2.QuoteExactInputSingleParamsStruct]
): string;
decodeFunctionResult(
functionFragment: "quoteExactInput",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "quoteExactInputSingle",
data: BytesLike
): Result;
events: {};
}
export interface IQuoterV2 extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
interface: IQuoterV2Interface;
queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TEvent>>;
listeners<TEvent extends TypedEvent>(
eventFilter?: TypedEventFilter<TEvent>
): Array<TypedListener<TEvent>>;
listeners(eventName?: string): Array<Listener>;
removeAllListeners<TEvent extends TypedEvent>(
eventFilter: TypedEventFilter<TEvent>
): this;
removeAllListeners(eventName?: string): this;
off: OnEvent<this>;
on: OnEvent<this>;
once: OnEvent<this>;
removeListener: OnEvent<this>;
functions: {
quoteExactInput(
path: BytesLike,
amountIn: BigNumberish,
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;
quoteExactInputSingle(
params: IQuoterV2.QuoteExactInputSingleParamsStruct,
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;
};
quoteExactInput(
path: BytesLike,
amountIn: BigNumberish,
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;
quoteExactInputSingle(
params: IQuoterV2.QuoteExactInputSingleParamsStruct,
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;
callStatic: {
quoteExactInput(
path: BytesLike,
amountIn: BigNumberish,
overrides?: CallOverrides
): Promise<
[BigNumber, BigNumber[], number[], BigNumber] & {
amountOut: BigNumber;
sqrtPriceX96AfterList: BigNumber[];
initializedTicksCrossedList: number[];
gasEstimate: BigNumber;
}
>;
quoteExactInputSingle(
params: IQuoterV2.QuoteExactInputSingleParamsStruct,
overrides?: CallOverrides
): Promise<
[BigNumber, BigNumber, number, BigNumber] & {
amountOut: BigNumber;
sqrtPriceX96After: BigNumber;
initializedTicksCrossed: number;
gasEstimate: BigNumber;
}
>;
};
filters: {};
estimateGas: {
quoteExactInput(
path: BytesLike,
amountIn: BigNumberish,
overrides?: Overrides & { from?: string }
): Promise<BigNumber>;
quoteExactInputSingle(
params: IQuoterV2.QuoteExactInputSingleParamsStruct,
overrides?: Overrides & { from?: string }
): Promise<BigNumber>;
};
populateTransaction: {
quoteExactInput(
path: BytesLike,
amountIn: BigNumberish,
overrides?: Overrides & { from?: string }
): Promise<PopulatedTransaction>;
quoteExactInputSingle(
params: IQuoterV2.QuoteExactInputSingleParamsStruct,
overrides?: Overrides & { from?: string }
): Promise<PopulatedTransaction>;
};
}