@orionprotocol/contracts
Version:
Orion Protocol contracts typings
114 lines (113 loc) • 6.68 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 interface LiquidityMigratorInterface extends Interface {
getFunction(nameOrSignature: "WETH9" | "exchange" | "exchangeAllowances" | "initialize" | "migrate" | "owner" | "renounceOwnership" | "transferOwnership"): FunctionFragment;
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
encodeFunctionData(functionFragment: "WETH9", values?: undefined): string;
encodeFunctionData(functionFragment: "exchange", values?: undefined): string;
encodeFunctionData(functionFragment: "exchangeAllowances", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike]): string;
encodeFunctionData(functionFragment: "migrate", values: [
AddressLike,
BigNumberish,
BytesLike,
BytesLike,
BigNumberish,
BigNumberish
]): string;
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
decodeFunctionResult(functionFragment: "WETH9", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "exchange", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "exchangeAllowances", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "migrate", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
}
export declare namespace OwnershipTransferredEvent {
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
type OutputTuple = [previousOwner: string, newOwner: string];
interface OutputObject {
previousOwner: string;
newOwner: string;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export interface LiquidityMigrator extends BaseContract {
connect(runner?: ContractRunner | null): LiquidityMigrator;
waitForDeployment(): Promise<this>;
interface: LiquidityMigratorInterface;
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>;
WETH9: TypedContractMethod<[], [string], "view">;
exchange: TypedContractMethod<[], [string], "view">;
exchangeAllowances: TypedContractMethod<[
arg0: AddressLike
], [
boolean
], "view">;
initialize: TypedContractMethod<[
_exchange: AddressLike,
_WETH9: AddressLike
], [
void
], "nonpayable">;
migrate: TypedContractMethod<[
pairAddress: AddressLike,
tokensToMigrate: BigNumberish,
secretHash0: BytesLike,
secretHash1: BytesLike,
expiration: BigNumberish,
targetChainId: BigNumberish
], [
void
], "nonpayable">;
owner: TypedContractMethod<[], [string], "view">;
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
transferOwnership: TypedContractMethod<[
newOwner: AddressLike
], [
void
], "nonpayable">;
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
getFunction(nameOrSignature: "WETH9"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "exchange"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "exchangeAllowances"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
_exchange: AddressLike,
_WETH9: AddressLike
], [
void
], "nonpayable">;
getFunction(nameOrSignature: "migrate"): TypedContractMethod<[
pairAddress: AddressLike,
tokensToMigrate: BigNumberish,
secretHash0: BytesLike,
secretHash1: BytesLike,
expiration: BigNumberish,
targetChainId: BigNumberish
], [
void
], "nonpayable">;
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
filters: {
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
};
}