@orionprotocol/contracts
Version:
Orion Protocol contracts typings
784 lines (783 loc) • 35.7 kB
TypeScript
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.js";
export declare namespace IPool {
type ObservationStruct = {
timestamp: BigNumberish;
reserve0Cumulative: BigNumberish;
reserve1Cumulative: BigNumberish;
};
type ObservationStructOutput = [
timestamp: bigint,
reserve0Cumulative: bigint,
reserve1Cumulative: bigint
] & {
timestamp: bigint;
reserve0Cumulative: bigint;
reserve1Cumulative: bigint;
};
}
export interface AeroPoolInterface extends Interface {
getFunction(nameOrSignature: "DOMAIN_SEPARATOR" | "allowance" | "approve" | "balanceOf" | "blockTimestampLast" | "burn" | "claimFees" | "claimable0" | "claimable1" | "currentCumulativePrices" | "decimals" | "decreaseAllowance" | "eip712Domain" | "factory" | "getAmountOut" | "getK" | "getReserves" | "increaseAllowance" | "index0" | "index1" | "initialize" | "lastObservation" | "metadata" | "mint" | "name" | "nonces" | "observationLength" | "observations" | "periodSize" | "permit" | "poolFees" | "prices" | "quote" | "reserve0" | "reserve0CumulativeLast" | "reserve1" | "reserve1CumulativeLast" | "sample" | "setName" | "setSymbol" | "skim" | "stable" | "supplyIndex0" | "supplyIndex1" | "swap" | "symbol" | "sync" | "token0" | "token1" | "tokens" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment;
getEvent(nameOrSignatureOrTopic: "Approval" | "Burn" | "Claim" | "EIP712DomainChanged" | "Fees" | "Mint" | "Swap" | "Sync" | "Transfer"): EventFragment;
encodeFunctionData(functionFragment: "DOMAIN_SEPARATOR", values?: undefined): string;
encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "blockTimestampLast", values?: undefined): string;
encodeFunctionData(functionFragment: "burn", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "claimFees", values?: undefined): string;
encodeFunctionData(functionFragment: "claimable0", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "claimable1", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "currentCumulativePrices", values?: undefined): string;
encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
encodeFunctionData(functionFragment: "decreaseAllowance", values: [AddressLike, BigNumberish]): string;
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
encodeFunctionData(functionFragment: "factory", values?: undefined): string;
encodeFunctionData(functionFragment: "getAmountOut", values: [BigNumberish, AddressLike]): string;
encodeFunctionData(functionFragment: "getK", values?: undefined): string;
encodeFunctionData(functionFragment: "getReserves", values?: undefined): string;
encodeFunctionData(functionFragment: "increaseAllowance", values: [AddressLike, BigNumberish]): string;
encodeFunctionData(functionFragment: "index0", values?: undefined): string;
encodeFunctionData(functionFragment: "index1", values?: undefined): string;
encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike, boolean]): string;
encodeFunctionData(functionFragment: "lastObservation", values?: undefined): string;
encodeFunctionData(functionFragment: "metadata", values?: undefined): string;
encodeFunctionData(functionFragment: "mint", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "name", values?: undefined): string;
encodeFunctionData(functionFragment: "nonces", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "observationLength", values?: undefined): string;
encodeFunctionData(functionFragment: "observations", values: [BigNumberish]): string;
encodeFunctionData(functionFragment: "periodSize", values?: undefined): string;
encodeFunctionData(functionFragment: "permit", values: [
AddressLike,
AddressLike,
BigNumberish,
BigNumberish,
BigNumberish,
BytesLike,
BytesLike
]): string;
encodeFunctionData(functionFragment: "poolFees", values?: undefined): string;
encodeFunctionData(functionFragment: "prices", values: [AddressLike, BigNumberish, BigNumberish]): string;
encodeFunctionData(functionFragment: "quote", values: [AddressLike, BigNumberish, BigNumberish]): string;
encodeFunctionData(functionFragment: "reserve0", values?: undefined): string;
encodeFunctionData(functionFragment: "reserve0CumulativeLast", values?: undefined): string;
encodeFunctionData(functionFragment: "reserve1", values?: undefined): string;
encodeFunctionData(functionFragment: "reserve1CumulativeLast", values?: undefined): string;
encodeFunctionData(functionFragment: "sample", values: [AddressLike, BigNumberish, BigNumberish, BigNumberish]): string;
encodeFunctionData(functionFragment: "setName", values: [string]): string;
encodeFunctionData(functionFragment: "setSymbol", values: [string]): string;
encodeFunctionData(functionFragment: "skim", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "stable", values?: undefined): string;
encodeFunctionData(functionFragment: "supplyIndex0", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "supplyIndex1", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "swap", values: [BigNumberish, BigNumberish, AddressLike, BytesLike]): string;
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
encodeFunctionData(functionFragment: "sync", values?: undefined): string;
encodeFunctionData(functionFragment: "token0", values?: undefined): string;
encodeFunctionData(functionFragment: "token1", values?: undefined): string;
encodeFunctionData(functionFragment: "tokens", values?: undefined): string;
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string;
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
decodeFunctionResult(functionFragment: "DOMAIN_SEPARATOR", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "blockTimestampLast", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "claimFees", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "claimable0", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "claimable1", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "currentCumulativePrices", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "decreaseAllowance", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "getAmountOut", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "getK", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "getReserves", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "increaseAllowance", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "index0", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "index1", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "lastObservation", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "metadata", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "observationLength", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "observations", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "periodSize", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "poolFees", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "prices", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "quote", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "reserve0", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "reserve0CumulativeLast", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "reserve1", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "reserve1CumulativeLast", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "sample", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "setName", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "setSymbol", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "skim", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "stable", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "supplyIndex0", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "supplyIndex1", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "sync", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "token0", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "token1", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "tokens", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
}
export declare namespace ApprovalEvent {
type InputTuple = [
owner: AddressLike,
spender: AddressLike,
value: BigNumberish
];
type OutputTuple = [owner: string, spender: string, value: bigint];
interface OutputObject {
owner: string;
spender: string;
value: bigint;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare namespace BurnEvent {
type InputTuple = [
sender: AddressLike,
to: AddressLike,
amount0: BigNumberish,
amount1: BigNumberish
];
type OutputTuple = [
sender: string,
to: string,
amount0: bigint,
amount1: bigint
];
interface OutputObject {
sender: string;
to: string;
amount0: bigint;
amount1: bigint;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare namespace ClaimEvent {
type InputTuple = [
sender: AddressLike,
recipient: AddressLike,
amount0: BigNumberish,
amount1: BigNumberish
];
type OutputTuple = [
sender: string,
recipient: string,
amount0: bigint,
amount1: bigint
];
interface OutputObject {
sender: string;
recipient: string;
amount0: bigint;
amount1: bigint;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare namespace EIP712DomainChangedEvent {
type InputTuple = [];
type OutputTuple = [];
interface OutputObject {
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare namespace FeesEvent {
type InputTuple = [
sender: AddressLike,
amount0: BigNumberish,
amount1: BigNumberish
];
type OutputTuple = [sender: string, amount0: bigint, amount1: bigint];
interface OutputObject {
sender: string;
amount0: bigint;
amount1: bigint;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare namespace MintEvent {
type InputTuple = [
sender: AddressLike,
amount0: BigNumberish,
amount1: BigNumberish
];
type OutputTuple = [sender: string, amount0: bigint, amount1: bigint];
interface OutputObject {
sender: string;
amount0: bigint;
amount1: bigint;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare namespace SwapEvent {
type InputTuple = [
sender: AddressLike,
to: AddressLike,
amount0In: BigNumberish,
amount1In: BigNumberish,
amount0Out: BigNumberish,
amount1Out: BigNumberish
];
type OutputTuple = [
sender: string,
to: string,
amount0In: bigint,
amount1In: bigint,
amount0Out: bigint,
amount1Out: bigint
];
interface OutputObject {
sender: string;
to: string;
amount0In: bigint;
amount1In: bigint;
amount0Out: bigint;
amount1Out: bigint;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare namespace SyncEvent {
type InputTuple = [reserve0: BigNumberish, reserve1: BigNumberish];
type OutputTuple = [reserve0: bigint, reserve1: bigint];
interface OutputObject {
reserve0: bigint;
reserve1: bigint;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare namespace TransferEvent {
type InputTuple = [
from: AddressLike,
to: AddressLike,
value: BigNumberish
];
type OutputTuple = [from: string, to: string, value: bigint];
interface OutputObject {
from: string;
to: string;
value: bigint;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export interface AeroPool extends BaseContract {
connect(runner?: ContractRunner | null): AeroPool;
waitForDeployment(): Promise<this>;
interface: AeroPoolInterface;
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
listeners(eventName?: string): Promise<Array<Listener>>;
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
DOMAIN_SEPARATOR: TypedContractMethod<[], [string], "view">;
allowance: TypedContractMethod<[
owner: AddressLike,
spender: AddressLike
], [
bigint
], "view">;
approve: TypedContractMethod<[
spender: AddressLike,
amount: BigNumberish
], [
boolean
], "nonpayable">;
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
blockTimestampLast: TypedContractMethod<[], [bigint], "view">;
burn: TypedContractMethod<[
to: AddressLike
], [
[bigint, bigint] & {
amount0: bigint;
amount1: bigint;
}
], "nonpayable">;
claimFees: TypedContractMethod<[
], [
[bigint, bigint] & {
claimed0: bigint;
claimed1: bigint;
}
], "nonpayable">;
claimable0: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
claimable1: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
currentCumulativePrices: TypedContractMethod<[
], [
[
bigint,
bigint,
bigint
] & {
reserve0Cumulative: bigint;
reserve1Cumulative: bigint;
blockTimestamp: bigint;
}
], "view">;
decimals: TypedContractMethod<[], [bigint], "view">;
decreaseAllowance: TypedContractMethod<[
spender: AddressLike,
subtractedValue: BigNumberish
], [
boolean
], "nonpayable">;
eip712Domain: TypedContractMethod<[
], [
[
string,
string,
string,
bigint,
string,
string,
bigint[]
] & {
fields: string;
name: string;
version: string;
chainId: bigint;
verifyingContract: string;
salt: string;
extensions: bigint[];
}
], "view">;
factory: TypedContractMethod<[], [string], "view">;
getAmountOut: TypedContractMethod<[
amountIn: BigNumberish,
tokenIn: AddressLike
], [
bigint
], "view">;
getK: TypedContractMethod<[], [bigint], "nonpayable">;
getReserves: TypedContractMethod<[
], [
[
bigint,
bigint,
bigint
] & {
_reserve0: bigint;
_reserve1: bigint;
_blockTimestampLast: bigint;
}
], "view">;
increaseAllowance: TypedContractMethod<[
spender: AddressLike,
addedValue: BigNumberish
], [
boolean
], "nonpayable">;
index0: TypedContractMethod<[], [bigint], "view">;
index1: TypedContractMethod<[], [bigint], "view">;
initialize: TypedContractMethod<[
_token0: AddressLike,
_token1: AddressLike,
_stable: boolean
], [
void
], "nonpayable">;
lastObservation: TypedContractMethod<[
], [
IPool.ObservationStructOutput
], "view">;
metadata: TypedContractMethod<[
], [
[
bigint,
bigint,
bigint,
bigint,
boolean,
string,
string
] & {
dec0: bigint;
dec1: bigint;
r0: bigint;
r1: bigint;
st: boolean;
t0: string;
t1: string;
}
], "view">;
mint: TypedContractMethod<[to: AddressLike], [bigint], "nonpayable">;
name: TypedContractMethod<[], [string], "view">;
nonces: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
observationLength: TypedContractMethod<[], [bigint], "view">;
observations: TypedContractMethod<[
arg0: BigNumberish
], [
[
bigint,
bigint,
bigint
] & {
timestamp: bigint;
reserve0Cumulative: bigint;
reserve1Cumulative: bigint;
}
], "view">;
periodSize: TypedContractMethod<[], [bigint], "view">;
permit: TypedContractMethod<[
owner: AddressLike,
spender: AddressLike,
value: BigNumberish,
deadline: BigNumberish,
v: BigNumberish,
r: BytesLike,
s: BytesLike
], [
void
], "nonpayable">;
poolFees: TypedContractMethod<[], [string], "view">;
prices: TypedContractMethod<[
tokenIn: AddressLike,
amountIn: BigNumberish,
points: BigNumberish
], [
bigint[]
], "view">;
quote: TypedContractMethod<[
tokenIn: AddressLike,
amountIn: BigNumberish,
granularity: BigNumberish
], [
bigint
], "view">;
reserve0: TypedContractMethod<[], [bigint], "view">;
reserve0CumulativeLast: TypedContractMethod<[], [bigint], "view">;
reserve1: TypedContractMethod<[], [bigint], "view">;
reserve1CumulativeLast: TypedContractMethod<[], [bigint], "view">;
sample: TypedContractMethod<[
tokenIn: AddressLike,
amountIn: BigNumberish,
points: BigNumberish,
window: BigNumberish
], [
bigint[]
], "view">;
setName: TypedContractMethod<[__name: string], [void], "nonpayable">;
setSymbol: TypedContractMethod<[__symbol: string], [void], "nonpayable">;
skim: TypedContractMethod<[to: AddressLike], [void], "nonpayable">;
stable: TypedContractMethod<[], [boolean], "view">;
supplyIndex0: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
supplyIndex1: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
swap: TypedContractMethod<[
amount0Out: BigNumberish,
amount1Out: BigNumberish,
to: AddressLike,
data: BytesLike
], [
void
], "nonpayable">;
symbol: TypedContractMethod<[], [string], "view">;
sync: TypedContractMethod<[], [void], "nonpayable">;
token0: TypedContractMethod<[], [string], "view">;
token1: TypedContractMethod<[], [string], "view">;
tokens: TypedContractMethod<[], [[string, string]], "view">;
totalSupply: TypedContractMethod<[], [bigint], "view">;
transfer: TypedContractMethod<[
to: AddressLike,
amount: BigNumberish
], [
boolean
], "nonpayable">;
transferFrom: TypedContractMethod<[
from: AddressLike,
to: AddressLike,
amount: BigNumberish
], [
boolean
], "nonpayable">;
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
getFunction(nameOrSignature: "DOMAIN_SEPARATOR"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "allowance"): TypedContractMethod<[
owner: AddressLike,
spender: AddressLike
], [
bigint
], "view">;
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
spender: AddressLike,
amount: BigNumberish
], [
boolean
], "nonpayable">;
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
getFunction(nameOrSignature: "blockTimestampLast"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "burn"): TypedContractMethod<[
to: AddressLike
], [
[bigint, bigint] & {
amount0: bigint;
amount1: bigint;
}
], "nonpayable">;
getFunction(nameOrSignature: "claimFees"): TypedContractMethod<[
], [
[bigint, bigint] & {
claimed0: bigint;
claimed1: bigint;
}
], "nonpayable">;
getFunction(nameOrSignature: "claimable0"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
getFunction(nameOrSignature: "claimable1"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
getFunction(nameOrSignature: "currentCumulativePrices"): TypedContractMethod<[
], [
[
bigint,
bigint,
bigint
] & {
reserve0Cumulative: bigint;
reserve1Cumulative: bigint;
blockTimestamp: bigint;
}
], "view">;
getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "decreaseAllowance"): TypedContractMethod<[
spender: AddressLike,
subtractedValue: BigNumberish
], [
boolean
], "nonpayable">;
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
], [
[
string,
string,
string,
bigint,
string,
string,
bigint[]
] & {
fields: string;
name: string;
version: string;
chainId: bigint;
verifyingContract: string;
salt: string;
extensions: bigint[];
}
], "view">;
getFunction(nameOrSignature: "factory"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "getAmountOut"): TypedContractMethod<[
amountIn: BigNumberish,
tokenIn: AddressLike
], [
bigint
], "view">;
getFunction(nameOrSignature: "getK"): TypedContractMethod<[], [bigint], "nonpayable">;
getFunction(nameOrSignature: "getReserves"): TypedContractMethod<[
], [
[
bigint,
bigint,
bigint
] & {
_reserve0: bigint;
_reserve1: bigint;
_blockTimestampLast: bigint;
}
], "view">;
getFunction(nameOrSignature: "increaseAllowance"): TypedContractMethod<[
spender: AddressLike,
addedValue: BigNumberish
], [
boolean
], "nonpayable">;
getFunction(nameOrSignature: "index0"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "index1"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
_token0: AddressLike,
_token1: AddressLike,
_stable: boolean
], [
void
], "nonpayable">;
getFunction(nameOrSignature: "lastObservation"): TypedContractMethod<[], [IPool.ObservationStructOutput], "view">;
getFunction(nameOrSignature: "metadata"): TypedContractMethod<[
], [
[
bigint,
bigint,
bigint,
bigint,
boolean,
string,
string
] & {
dec0: bigint;
dec1: bigint;
r0: bigint;
r1: bigint;
st: boolean;
t0: string;
t1: string;
}
], "view">;
getFunction(nameOrSignature: "mint"): TypedContractMethod<[to: AddressLike], [bigint], "nonpayable">;
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "nonces"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
getFunction(nameOrSignature: "observationLength"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "observations"): TypedContractMethod<[
arg0: BigNumberish
], [
[
bigint,
bigint,
bigint
] & {
timestamp: bigint;
reserve0Cumulative: bigint;
reserve1Cumulative: bigint;
}
], "view">;
getFunction(nameOrSignature: "periodSize"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "permit"): TypedContractMethod<[
owner: AddressLike,
spender: AddressLike,
value: BigNumberish,
deadline: BigNumberish,
v: BigNumberish,
r: BytesLike,
s: BytesLike
], [
void
], "nonpayable">;
getFunction(nameOrSignature: "poolFees"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "prices"): TypedContractMethod<[
tokenIn: AddressLike,
amountIn: BigNumberish,
points: BigNumberish
], [
bigint[]
], "view">;
getFunction(nameOrSignature: "quote"): TypedContractMethod<[
tokenIn: AddressLike,
amountIn: BigNumberish,
granularity: BigNumberish
], [
bigint
], "view">;
getFunction(nameOrSignature: "reserve0"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "reserve0CumulativeLast"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "reserve1"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "reserve1CumulativeLast"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "sample"): TypedContractMethod<[
tokenIn: AddressLike,
amountIn: BigNumberish,
points: BigNumberish,
window: BigNumberish
], [
bigint[]
], "view">;
getFunction(nameOrSignature: "setName"): TypedContractMethod<[__name: string], [void], "nonpayable">;
getFunction(nameOrSignature: "setSymbol"): TypedContractMethod<[__symbol: string], [void], "nonpayable">;
getFunction(nameOrSignature: "skim"): TypedContractMethod<[to: AddressLike], [void], "nonpayable">;
getFunction(nameOrSignature: "stable"): TypedContractMethod<[], [boolean], "view">;
getFunction(nameOrSignature: "supplyIndex0"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
getFunction(nameOrSignature: "supplyIndex1"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
getFunction(nameOrSignature: "swap"): TypedContractMethod<[
amount0Out: BigNumberish,
amount1Out: BigNumberish,
to: AddressLike,
data: BytesLike
], [
void
], "nonpayable">;
getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "sync"): TypedContractMethod<[], [void], "nonpayable">;
getFunction(nameOrSignature: "token0"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "token1"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "tokens"): TypedContractMethod<[], [[string, string]], "view">;
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
to: AddressLike,
amount: BigNumberish
], [
boolean
], "nonpayable">;
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
from: AddressLike,
to: AddressLike,
amount: BigNumberish
], [
boolean
], "nonpayable">;
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
getEvent(key: "Burn"): TypedContractEvent<BurnEvent.InputTuple, BurnEvent.OutputTuple, BurnEvent.OutputObject>;
getEvent(key: "Claim"): TypedContractEvent<ClaimEvent.InputTuple, ClaimEvent.OutputTuple, ClaimEvent.OutputObject>;
getEvent(key: "EIP712DomainChanged"): TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
getEvent(key: "Fees"): TypedContractEvent<FeesEvent.InputTuple, FeesEvent.OutputTuple, FeesEvent.OutputObject>;
getEvent(key: "Mint"): TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
getEvent(key: "Swap"): TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
getEvent(key: "Sync"): TypedContractEvent<SyncEvent.InputTuple, SyncEvent.OutputTuple, SyncEvent.OutputObject>;
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
filters: {
"Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
"Burn(address,address,uint256,uint256)": TypedContractEvent<BurnEvent.InputTuple, BurnEvent.OutputTuple, BurnEvent.OutputObject>;
Burn: TypedContractEvent<BurnEvent.InputTuple, BurnEvent.OutputTuple, BurnEvent.OutputObject>;
"Claim(address,address,uint256,uint256)": TypedContractEvent<ClaimEvent.InputTuple, ClaimEvent.OutputTuple, ClaimEvent.OutputObject>;
Claim: TypedContractEvent<ClaimEvent.InputTuple, ClaimEvent.OutputTuple, ClaimEvent.OutputObject>;
"EIP712DomainChanged()": TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
"Fees(address,uint256,uint256)": TypedContractEvent<FeesEvent.InputTuple, FeesEvent.OutputTuple, FeesEvent.OutputObject>;
Fees: TypedContractEvent<FeesEvent.InputTuple, FeesEvent.OutputTuple, FeesEvent.OutputObject>;
"Mint(address,uint256,uint256)": TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
Mint: TypedContractEvent<MintEvent.InputTuple, MintEvent.OutputTuple, MintEvent.OutputObject>;
"Swap(address,address,uint256,uint256,uint256,uint256)": TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
Swap: TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
"Sync(uint256,uint256)": TypedContractEvent<SyncEvent.InputTuple, SyncEvent.OutputTuple, SyncEvent.OutputObject>;
Sync: TypedContractEvent<SyncEvent.InputTuple, SyncEvent.OutputTuple, SyncEvent.OutputObject>;
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
};
}