UNPKG

@pollum-io/universal-router

Version:
633 lines (552 loc) 15.8 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction, } from "ethers"; import { Contract, ContractTransaction, Overrides, PayableOverrides, CallOverrides, } from "@ethersproject/contracts"; import { BytesLike } from "@ethersproject/bytes"; import { Listener, Provider } from "@ethersproject/providers"; import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; interface UniversalRouterInterface extends ethers.utils.Interface { functions: { "collectRewards(bytes)": FunctionFragment; "execute(bytes,bytes[])": FunctionFragment; "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": FunctionFragment; "onERC1155Received(address,address,uint256,uint256,bytes)": FunctionFragment; "onERC721Received(address,address,uint256,bytes)": FunctionFragment; "pegasysV3SwapCallback(int256,int256,bytes)": FunctionFragment; "supportsInterface(bytes4)": FunctionFragment; }; encodeFunctionData( functionFragment: "collectRewards", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "execute", values: [BytesLike, BytesLike[]] ): string; encodeFunctionData( functionFragment: "onERC1155BatchReceived", values: [string, string, BigNumberish[], BigNumberish[], BytesLike] ): string; encodeFunctionData( functionFragment: "onERC1155Received", values: [string, string, BigNumberish, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "onERC721Received", values: [string, string, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "pegasysV3SwapCallback", values: [BigNumberish, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike] ): string; decodeFunctionResult( functionFragment: "collectRewards", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "execute", data: BytesLike): Result; decodeFunctionResult( functionFragment: "onERC1155BatchReceived", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "onERC1155Received", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "onERC721Received", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "pegasysV3SwapCallback", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike ): Result; events: { "RewardsSent(uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "RewardsSent"): EventFragment; } export class UniversalRouter 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: UniversalRouterInterface; functions: { collectRewards( looksRareClaim: BytesLike, overrides?: Overrides ): Promise<ContractTransaction>; "collectRewards(bytes)"( looksRareClaim: BytesLike, overrides?: Overrides ): Promise<ContractTransaction>; "execute(bytes,bytes[])"( commands: BytesLike, inputs: BytesLike[], overrides?: PayableOverrides ): Promise<ContractTransaction>; "execute(bytes,bytes[],uint256)"( commands: BytesLike, inputs: BytesLike[], deadline: BigNumberish, overrides?: PayableOverrides ): Promise<ContractTransaction>; onERC1155BatchReceived( arg0: string, arg1: string, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike, overrides?: CallOverrides ): Promise<{ 0: string; }>; "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"( arg0: string, arg1: string, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike, overrides?: CallOverrides ): Promise<{ 0: string; }>; onERC1155Received( arg0: string, arg1: string, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike, overrides?: CallOverrides ): Promise<{ 0: string; }>; "onERC1155Received(address,address,uint256,uint256,bytes)"( arg0: string, arg1: string, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike, overrides?: CallOverrides ): Promise<{ 0: string; }>; onERC721Received( arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides ): Promise<{ 0: string; }>; "onERC721Received(address,address,uint256,bytes)"( arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides ): Promise<{ 0: string; }>; pegasysV3SwapCallback( amount0Delta: BigNumberish, amount1Delta: BigNumberish, data: BytesLike, overrides?: Overrides ): Promise<ContractTransaction>; "pegasysV3SwapCallback(int256,int256,bytes)"( amount0Delta: BigNumberish, amount1Delta: BigNumberish, data: BytesLike, overrides?: Overrides ): Promise<ContractTransaction>; supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<{ 0: boolean; }>; "supportsInterface(bytes4)"( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<{ 0: boolean; }>; }; collectRewards( looksRareClaim: BytesLike, overrides?: Overrides ): Promise<ContractTransaction>; "collectRewards(bytes)"( looksRareClaim: BytesLike, overrides?: Overrides ): Promise<ContractTransaction>; "execute(bytes,bytes[])"( commands: BytesLike, inputs: BytesLike[], overrides?: PayableOverrides ): Promise<ContractTransaction>; "execute(bytes,bytes[],uint256)"( commands: BytesLike, inputs: BytesLike[], deadline: BigNumberish, overrides?: PayableOverrides ): Promise<ContractTransaction>; onERC1155BatchReceived( arg0: string, arg1: string, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike, overrides?: CallOverrides ): Promise<string>; "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"( arg0: string, arg1: string, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike, overrides?: CallOverrides ): Promise<string>; onERC1155Received( arg0: string, arg1: string, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike, overrides?: CallOverrides ): Promise<string>; "onERC1155Received(address,address,uint256,uint256,bytes)"( arg0: string, arg1: string, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike, overrides?: CallOverrides ): Promise<string>; onERC721Received( arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides ): Promise<string>; "onERC721Received(address,address,uint256,bytes)"( arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides ): Promise<string>; pegasysV3SwapCallback( amount0Delta: BigNumberish, amount1Delta: BigNumberish, data: BytesLike, overrides?: Overrides ): Promise<ContractTransaction>; "pegasysV3SwapCallback(int256,int256,bytes)"( amount0Delta: BigNumberish, amount1Delta: BigNumberish, data: BytesLike, overrides?: Overrides ): Promise<ContractTransaction>; supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<boolean>; "supportsInterface(bytes4)"( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<boolean>; callStatic: { collectRewards( looksRareClaim: BytesLike, overrides?: CallOverrides ): Promise<void>; "collectRewards(bytes)"( looksRareClaim: BytesLike, overrides?: CallOverrides ): Promise<void>; "execute(bytes,bytes[])"( commands: BytesLike, inputs: BytesLike[], overrides?: CallOverrides ): Promise<void>; "execute(bytes,bytes[],uint256)"( commands: BytesLike, inputs: BytesLike[], deadline: BigNumberish, overrides?: CallOverrides ): Promise<void>; onERC1155BatchReceived( arg0: string, arg1: string, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike, overrides?: CallOverrides ): Promise<string>; "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"( arg0: string, arg1: string, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike, overrides?: CallOverrides ): Promise<string>; onERC1155Received( arg0: string, arg1: string, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike, overrides?: CallOverrides ): Promise<string>; "onERC1155Received(address,address,uint256,uint256,bytes)"( arg0: string, arg1: string, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike, overrides?: CallOverrides ): Promise<string>; onERC721Received( arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides ): Promise<string>; "onERC721Received(address,address,uint256,bytes)"( arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides ): Promise<string>; pegasysV3SwapCallback( amount0Delta: BigNumberish, amount1Delta: BigNumberish, data: BytesLike, overrides?: CallOverrides ): Promise<void>; "pegasysV3SwapCallback(int256,int256,bytes)"( amount0Delta: BigNumberish, amount1Delta: BigNumberish, data: BytesLike, overrides?: CallOverrides ): Promise<void>; supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<boolean>; "supportsInterface(bytes4)"( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<boolean>; }; filters: { RewardsSent(amount: null): EventFilter; }; estimateGas: { collectRewards( looksRareClaim: BytesLike, overrides?: Overrides ): Promise<BigNumber>; "collectRewards(bytes)"( looksRareClaim: BytesLike, overrides?: Overrides ): Promise<BigNumber>; "execute(bytes,bytes[])"( commands: BytesLike, inputs: BytesLike[], overrides?: PayableOverrides ): Promise<BigNumber>; "execute(bytes,bytes[],uint256)"( commands: BytesLike, inputs: BytesLike[], deadline: BigNumberish, overrides?: PayableOverrides ): Promise<BigNumber>; onERC1155BatchReceived( arg0: string, arg1: string, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike, overrides?: CallOverrides ): Promise<BigNumber>; "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"( arg0: string, arg1: string, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike, overrides?: CallOverrides ): Promise<BigNumber>; onERC1155Received( arg0: string, arg1: string, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike, overrides?: CallOverrides ): Promise<BigNumber>; "onERC1155Received(address,address,uint256,uint256,bytes)"( arg0: string, arg1: string, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike, overrides?: CallOverrides ): Promise<BigNumber>; onERC721Received( arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides ): Promise<BigNumber>; "onERC721Received(address,address,uint256,bytes)"( arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides ): Promise<BigNumber>; pegasysV3SwapCallback( amount0Delta: BigNumberish, amount1Delta: BigNumberish, data: BytesLike, overrides?: Overrides ): Promise<BigNumber>; "pegasysV3SwapCallback(int256,int256,bytes)"( amount0Delta: BigNumberish, amount1Delta: BigNumberish, data: BytesLike, overrides?: Overrides ): Promise<BigNumber>; supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<BigNumber>; "supportsInterface(bytes4)"( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<BigNumber>; }; populateTransaction: { collectRewards( looksRareClaim: BytesLike, overrides?: Overrides ): Promise<PopulatedTransaction>; "collectRewards(bytes)"( looksRareClaim: BytesLike, overrides?: Overrides ): Promise<PopulatedTransaction>; "execute(bytes,bytes[])"( commands: BytesLike, inputs: BytesLike[], overrides?: PayableOverrides ): Promise<PopulatedTransaction>; "execute(bytes,bytes[],uint256)"( commands: BytesLike, inputs: BytesLike[], deadline: BigNumberish, overrides?: PayableOverrides ): Promise<PopulatedTransaction>; onERC1155BatchReceived( arg0: string, arg1: string, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike, overrides?: CallOverrides ): Promise<PopulatedTransaction>; "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"( arg0: string, arg1: string, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike, overrides?: CallOverrides ): Promise<PopulatedTransaction>; onERC1155Received( arg0: string, arg1: string, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike, overrides?: CallOverrides ): Promise<PopulatedTransaction>; "onERC1155Received(address,address,uint256,uint256,bytes)"( arg0: string, arg1: string, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike, overrides?: CallOverrides ): Promise<PopulatedTransaction>; onERC721Received( arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides ): Promise<PopulatedTransaction>; "onERC721Received(address,address,uint256,bytes)"( arg0: string, arg1: string, arg2: BigNumberish, arg3: BytesLike, overrides?: CallOverrides ): Promise<PopulatedTransaction>; pegasysV3SwapCallback( amount0Delta: BigNumberish, amount1Delta: BigNumberish, data: BytesLike, overrides?: Overrides ): Promise<PopulatedTransaction>; "pegasysV3SwapCallback(int256,int256,bytes)"( amount0Delta: BigNumberish, amount1Delta: BigNumberish, data: BytesLike, overrides?: Overrides ): Promise<PopulatedTransaction>; supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<PopulatedTransaction>; "supportsInterface(bytes4)"( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<PopulatedTransaction>; }; }