UNPKG

baluni-contracts

Version:
536 lines (499 loc) 14.6 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ 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 interface BaluniV1PoolPeripheryInterface extends Interface { getFunction( nameOrSignature: | "UPGRADE_INTERFACE_VERSION" | "batchSwap" | "getAmountOut" | "getPoolsContainingToken" | "getVersion" | "initialize" | "owner" | "poolsReserves" | "proxiableUUID" | "quotePotentialSwaps" | "registry" | "reinitialize" | "renounceOwnership" | "swapTokenForToken" | "swapTokensForTokens" | "transferOwnership" | "upgradeToAndCall" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: "Initialized" | "OwnershipTransferred" | "Upgraded" ): EventFragment; encodeFunctionData( functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined ): string; encodeFunctionData( functionFragment: "batchSwap", values: [AddressLike[], AddressLike[], BigNumberish[], AddressLike[]] ): string; encodeFunctionData( functionFragment: "getAmountOut", values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "getPoolsContainingToken", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "getVersion", values?: undefined ): string; encodeFunctionData( functionFragment: "initialize", values: [AddressLike] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "poolsReserves", values: [AddressLike, AddressLike] ): string; encodeFunctionData( functionFragment: "proxiableUUID", values?: undefined ): string; encodeFunctionData( functionFragment: "quotePotentialSwaps", values: [AddressLike[], AddressLike[], BigNumberish] ): string; encodeFunctionData(functionFragment: "registry", values?: undefined): string; encodeFunctionData( functionFragment: "reinitialize", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "renounceOwnership", values?: undefined ): string; encodeFunctionData( functionFragment: "swapTokenForToken", values: [ AddressLike, AddressLike, BigNumberish, BigNumberish, AddressLike, AddressLike, BigNumberish ] ): string; encodeFunctionData( functionFragment: "swapTokensForTokens", values: [ AddressLike[], AddressLike[], BigNumberish, BigNumberish, AddressLike, BigNumberish ] ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike] ): string; decodeFunctionResult( functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "batchSwap", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getAmountOut", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getPoolsContainingToken", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "getVersion", data: BytesLike): Result; decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "poolsReserves", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "proxiableUUID", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "quotePotentialSwaps", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result; decodeFunctionResult( functionFragment: "reinitialize", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "renounceOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "swapTokenForToken", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "swapTokensForTokens", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "upgradeToAndCall", data: BytesLike ): Result; } export namespace InitializedEvent { export type InputTuple = [version: BigNumberish]; export type OutputTuple = [version: bigint]; export interface OutputObject { version: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace OwnershipTransferredEvent { export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; export type OutputTuple = [previousOwner: string, newOwner: string]; export interface OutputObject { previousOwner: string; newOwner: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace UpgradedEvent { export type InputTuple = [implementation: AddressLike]; export type OutputTuple = [implementation: string]; export interface OutputObject { implementation: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export interface BaluniV1PoolPeriphery extends BaseContract { connect(runner?: ContractRunner | null): BaluniV1PoolPeriphery; waitForDeployment(): Promise<this>; interface: BaluniV1PoolPeripheryInterface; 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>; UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">; batchSwap: TypedContractMethod< [ fromTokens: AddressLike[], toTokens: AddressLike[], amounts: BigNumberish[], receivers: AddressLike[] ], [bigint[]], "nonpayable" >; getAmountOut: TypedContractMethod< [fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish], [bigint], "view" >; getPoolsContainingToken: TypedContractMethod< [token: AddressLike], [string[]], "view" >; getVersion: TypedContractMethod<[], [bigint], "view">; initialize: TypedContractMethod< [_registry: AddressLike], [void], "nonpayable" >; owner: TypedContractMethod<[], [string], "view">; poolsReserves: TypedContractMethod< [arg0: AddressLike, arg1: AddressLike], [bigint], "view" >; proxiableUUID: TypedContractMethod<[], [string], "view">; quotePotentialSwaps: TypedContractMethod< [ tokenPath: AddressLike[], poolPath: AddressLike[], fromAmount: BigNumberish ], [[bigint, bigint] & { potentialOutcome: bigint; haircut: bigint }], "view" >; registry: TypedContractMethod<[], [string], "view">; reinitialize: TypedContractMethod< [_registry: AddressLike, version: BigNumberish], [void], "nonpayable" >; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; swapTokenForToken: TypedContractMethod< [ fromToken: AddressLike, toToken: AddressLike, fromAmount: BigNumberish, minAmount: BigNumberish, from: AddressLike, to: AddressLike, deadline: BigNumberish ], [[bigint, bigint] & { amountOut: bigint; haircut: bigint }], "nonpayable" >; swapTokensForTokens: TypedContractMethod< [ tokenPath: AddressLike[], poolPath: AddressLike[], fromAmount: BigNumberish, minimumToAmount: BigNumberish, to: AddressLike, deadline: BigNumberish ], [[bigint, bigint] & { amountOut: bigint; haircut: bigint }], "nonpayable" >; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; upgradeToAndCall: TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "UPGRADE_INTERFACE_VERSION" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "batchSwap" ): TypedContractMethod< [ fromTokens: AddressLike[], toTokens: AddressLike[], amounts: BigNumberish[], receivers: AddressLike[] ], [bigint[]], "nonpayable" >; getFunction( nameOrSignature: "getAmountOut" ): TypedContractMethod< [fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish], [bigint], "view" >; getFunction( nameOrSignature: "getPoolsContainingToken" ): TypedContractMethod<[token: AddressLike], [string[]], "view">; getFunction( nameOrSignature: "getVersion" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "initialize" ): TypedContractMethod<[_registry: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "poolsReserves" ): TypedContractMethod< [arg0: AddressLike, arg1: AddressLike], [bigint], "view" >; getFunction( nameOrSignature: "proxiableUUID" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "quotePotentialSwaps" ): TypedContractMethod< [ tokenPath: AddressLike[], poolPath: AddressLike[], fromAmount: BigNumberish ], [[bigint, bigint] & { potentialOutcome: bigint; haircut: bigint }], "view" >; getFunction( nameOrSignature: "registry" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "reinitialize" ): TypedContractMethod< [_registry: AddressLike, version: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "swapTokenForToken" ): TypedContractMethod< [ fromToken: AddressLike, toToken: AddressLike, fromAmount: BigNumberish, minAmount: BigNumberish, from: AddressLike, to: AddressLike, deadline: BigNumberish ], [[bigint, bigint] & { amountOut: bigint; haircut: bigint }], "nonpayable" >; getFunction( nameOrSignature: "swapTokensForTokens" ): TypedContractMethod< [ tokenPath: AddressLike[], poolPath: AddressLike[], fromAmount: BigNumberish, minimumToAmount: BigNumberish, to: AddressLike, deadline: BigNumberish ], [[bigint, bigint] & { amountOut: bigint; haircut: bigint }], "nonpayable" >; getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "upgradeToAndCall" ): TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; getEvent( key: "Initialized" ): TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; getEvent( key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( key: "Upgraded" ): TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; filters: { "Initialized(uint64)": TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; Initialized: TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; "OwnershipTransferred(address,address)": TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; OwnershipTransferred: TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; "Upgraded(address)": TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; Upgraded: TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; }; }