/* 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.js"; export interface MasterChefInterface extends Interface { getFunction( nameOrSignature: | "WETH" | "add" | "deposit" | "depositPermit" | "getMultiplier" | "getPoolRewardsByTime" | "getPoolRewardsPerSec" | "getRewardsPerShare" | "hasPool" | "initializeChef" | "massUpdatePools" | "owner" | "pendingRewards" | "poolId" | "poolInfo" | "poolLength" | "renounceOwnership" | "rewardToken" | "rewardVault" | "rewardsPerSec" | "set" | "setRewardsPerSec" | "totalAllocPoint" | "transferOwnership" | "updatePool" | "userInfo" | "withdraw", ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "Deposit" | "Initialized" | "InitializedChef" | "OwnershipTransferred" | "SetPool" | "SetRewards" | "Withdraw", ): EventFragment; encodeFunctionData(functionFragment: "WETH", values?: undefined): string; encodeFunctionData( functionFragment: "add", values: [AddressLike, BigNumberish, BigNumberish, BigNumberish, boolean], ): string; encodeFunctionData( functionFragment: "deposit", values: [BigNumberish, BigNumberish], ): string; encodeFunctionData( functionFragment: "depositPermit", values: [BigNumberish, BigNumberish, BigNumberish, BytesLike], ): string; encodeFunctionData( functionFragment: "getMultiplier", values: [BigNumberish, BigNumberish, BigNumberish], ): string; encodeFunctionData( functionFragment: "getPoolRewardsByTime", values: [BigNumberish, BigNumberish, BigNumberish], ): string; encodeFunctionData( functionFragment: "getPoolRewardsPerSec", values: [BigNumberish], ): string; encodeFunctionData( functionFragment: "getRewardsPerShare", values: [BigNumberish], ): string; encodeFunctionData( functionFragment: "hasPool", values: [AddressLike], ): string; encodeFunctionData( functionFragment: "initializeChef", values: [ AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, boolean, ], ): string; encodeFunctionData( functionFragment: "massUpdatePools", values?: undefined, ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "pendingRewards", values: [BigNumberish, AddressLike], ): string; encodeFunctionData(functionFragment: "poolId", values: [AddressLike]): string; encodeFunctionData( functionFragment: "poolInfo", values: [BigNumberish], ): string; encodeFunctionData( functionFragment: "poolLength", values?: undefined, ): string; encodeFunctionData( functionFragment: "renounceOwnership", values?: undefined, ): string; encodeFunctionData( functionFragment: "rewardToken", values?: undefined, ): string; encodeFunctionData( functionFragment: "rewardVault", values?: undefined, ): string; encodeFunctionData( functionFragment: "rewardsPerSec", values?: undefined, ): string; encodeFunctionData( functionFragment: "set", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, boolean], ): string; encodeFunctionData( functionFragment: "setRewardsPerSec", values: [BigNumberish], ): string; encodeFunctionData( functionFragment: "totalAllocPoint", values?: undefined, ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike], ): string; encodeFunctionData( functionFragment: "updatePool", values: [BigNumberish], ): string; encodeFunctionData( functionFragment: "userInfo", values: [BigNumberish, AddressLike], ): string; encodeFunctionData( functionFragment: "withdraw", values: [BigNumberish, BigNumberish], ): string; decodeFunctionResult(functionFragment: "WETH", data: BytesLike): Result; decodeFunctionResult(functionFragment: "add", data: BytesLike): Result; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; decodeFunctionResult( functionFragment: "depositPermit", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "getMultiplier", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "getPoolRewardsByTime", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "getPoolRewardsPerSec", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "getRewardsPerShare", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "hasPool", data: BytesLike): Result; decodeFunctionResult( functionFragment: "initializeChef", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "massUpdatePools", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "pendingRewards", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "poolId", data: BytesLike): Result; decodeFunctionResult(functionFragment: "poolInfo", data: BytesLike): Result; decodeFunctionResult(functionFragment: "poolLength", data: BytesLike): Result; decodeFunctionResult( functionFragment: "renounceOwnership", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "rewardToken", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "rewardVault", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "rewardsPerSec", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "set", data: BytesLike): Result; decodeFunctionResult( functionFragment: "setRewardsPerSec", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "totalAllocPoint", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "updatePool", data: BytesLike): Result; decodeFunctionResult(functionFragment: "userInfo", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; } export namespace DepositEvent { export type InputTuple = [ user: AddressLike, pid: BigNumberish, amount: BigNumberish, ]; export type OutputTuple = [user: string, pid: bigint, amount: bigint]; export interface OutputObject { user: string; pid: bigint; amount: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace InitializedEvent { export type InputTuple = [version: BigNumberish]; export type OutputTuple = [version: bigint]; export interface OutputObject { version: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace InitializedChefEvent { export type InputTuple = [ WETH: AddressLike, rewardToken: AddressLike, rewardVault: AddressLike, ]; export type OutputTuple = [ WETH: string, rewardToken: string, rewardVault: string, ]; export interface OutputObject { WETH: string; rewardToken: string; rewardVault: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } 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; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace SetPoolEvent { export type InputTuple = [ pid: BigNumberish, lpToken: AddressLike, newAllocPoint: BigNumberish, startTime: BigNumberish, endTime: BigNumberish, ]; export type OutputTuple = [ pid: bigint, lpToken: string, newAllocPoint: bigint, startTime: bigint, endTime: bigint, ]; export interface OutputObject { pid: bigint; lpToken: string; newAllocPoint: bigint; startTime: bigint; endTime: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace SetRewardsEvent { export type InputTuple = [rewardsPerSec: BigNumberish]; export type OutputTuple = [rewardsPerSec: bigint]; export interface OutputObject { rewardsPerSec: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace WithdrawEvent { export type InputTuple = [ user: AddressLike, pid: BigNumberish, amount: BigNumberish, ]; export type OutputTuple = [user: string, pid: bigint, amount: bigint]; export interface OutputObject { user: string; pid: bigint; amount: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface MasterChef extends BaseContract { connect(runner?: ContractRunner | null): MasterChef; waitForDeployment(): Promise; interface: MasterChefInterface; queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined, ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined, ): Promise>>; on( event: TCEvent, listener: TypedListener, ): Promise; on( filter: TypedDeferredTopicFilter, listener: TypedListener, ): Promise; once( event: TCEvent, listener: TypedListener, ): Promise; once( filter: TypedDeferredTopicFilter, listener: TypedListener, ): Promise; listeners( event: TCEvent, ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( event?: TCEvent, ): Promise; WETH: TypedContractMethod<[], [string], "view">; add: TypedContractMethod< [ _lpToken: AddressLike, _allocPoint: BigNumberish, _startTime: BigNumberish, _endTime: BigNumberish, _withUpdate: boolean, ], [bigint], "nonpayable" >; deposit: TypedContractMethod< [_pid: BigNumberish, _amount: BigNumberish], [void], "payable" >; depositPermit: TypedContractMethod< [ _pid: BigNumberish, _amount: BigNumberish, _deadline: BigNumberish, _signature: BytesLike, ], [void], "nonpayable" >; getMultiplier: TypedContractMethod< [_pid: BigNumberish, _fromTime: BigNumberish, _toTime: BigNumberish], [bigint], "view" >; getPoolRewardsByTime: TypedContractMethod< [_pid: BigNumberish, _fromTime: BigNumberish, _toTime: BigNumberish], [bigint], "view" >; getPoolRewardsPerSec: TypedContractMethod< [_pid: BigNumberish], [bigint], "view" >; getRewardsPerShare: TypedContractMethod< [_pid: BigNumberish], [bigint], "view" >; hasPool: TypedContractMethod<[_lpToken: AddressLike], [boolean], "view">; initializeChef: TypedContractMethod< [ _owner: AddressLike, _WETH: AddressLike, _rewardToken: AddressLike, _rewardVault: AddressLike, _rewardsPerSec: BigNumberish, _startTime: BigNumberish, _endTime: BigNumberish, addPool: boolean, ], [void], "nonpayable" >; massUpdatePools: TypedContractMethod<[], [void], "nonpayable">; owner: TypedContractMethod<[], [string], "view">; pendingRewards: TypedContractMethod< [_pid: BigNumberish, _user: AddressLike], [bigint], "view" >; poolId: TypedContractMethod<[arg0: AddressLike], [bigint], "view">; poolInfo: TypedContractMethod< [arg0: BigNumberish], [ [string, bigint, bigint, bigint, bigint, bigint] & { lpToken: string; allocPoint: bigint; startTime: bigint; endTime: bigint; lastRewardTime: bigint; accRewardsPerShare: bigint; }, ], "view" >; poolLength: TypedContractMethod<[], [bigint], "view">; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; rewardToken: TypedContractMethod<[], [string], "view">; rewardVault: TypedContractMethod<[], [string], "view">; rewardsPerSec: TypedContractMethod<[], [bigint], "view">; set: TypedContractMethod< [ _pid: BigNumberish, _allocPoint: BigNumberish, _startTime: BigNumberish, _endTime: BigNumberish, _withUpdate: boolean, ], [void], "nonpayable" >; setRewardsPerSec: TypedContractMethod< [_rewardsPerSec: BigNumberish], [void], "nonpayable" >; totalAllocPoint: TypedContractMethod<[], [bigint], "view">; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; updatePool: TypedContractMethod<[_pid: BigNumberish], [void], "nonpayable">; userInfo: TypedContractMethod< [arg0: BigNumberish, arg1: AddressLike], [[bigint, bigint] & { amount: bigint; rewardDebt: bigint }], "view" >; withdraw: TypedContractMethod< [_pid: BigNumberish, _amount: BigNumberish], [void], "nonpayable" >; getFunction( key: string | FunctionFragment, ): T; getFunction( nameOrSignature: "WETH", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "add", ): TypedContractMethod< [ _lpToken: AddressLike, _allocPoint: BigNumberish, _startTime: BigNumberish, _endTime: BigNumberish, _withUpdate: boolean, ], [bigint], "nonpayable" >; getFunction( nameOrSignature: "deposit", ): TypedContractMethod< [_pid: BigNumberish, _amount: BigNumberish], [void], "payable" >; getFunction( nameOrSignature: "depositPermit", ): TypedContractMethod< [ _pid: BigNumberish, _amount: BigNumberish, _deadline: BigNumberish, _signature: BytesLike, ], [void], "nonpayable" >; getFunction( nameOrSignature: "getMultiplier", ): TypedContractMethod< [_pid: BigNumberish, _fromTime: BigNumberish, _toTime: BigNumberish], [bigint], "view" >; getFunction( nameOrSignature: "getPoolRewardsByTime", ): TypedContractMethod< [_pid: BigNumberish, _fromTime: BigNumberish, _toTime: BigNumberish], [bigint], "view" >; getFunction( nameOrSignature: "getPoolRewardsPerSec", ): TypedContractMethod<[_pid: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "getRewardsPerShare", ): TypedContractMethod<[_pid: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "hasPool", ): TypedContractMethod<[_lpToken: AddressLike], [boolean], "view">; getFunction( nameOrSignature: "initializeChef", ): TypedContractMethod< [ _owner: AddressLike, _WETH: AddressLike, _rewardToken: AddressLike, _rewardVault: AddressLike, _rewardsPerSec: BigNumberish, _startTime: BigNumberish, _endTime: BigNumberish, addPool: boolean, ], [void], "nonpayable" >; getFunction( nameOrSignature: "massUpdatePools", ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "owner", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "pendingRewards", ): TypedContractMethod< [_pid: BigNumberish, _user: AddressLike], [bigint], "view" >; getFunction( nameOrSignature: "poolId", ): TypedContractMethod<[arg0: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "poolInfo", ): TypedContractMethod< [arg0: BigNumberish], [ [string, bigint, bigint, bigint, bigint, bigint] & { lpToken: string; allocPoint: bigint; startTime: bigint; endTime: bigint; lastRewardTime: bigint; accRewardsPerShare: bigint; }, ], "view" >; getFunction( nameOrSignature: "poolLength", ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "renounceOwnership", ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "rewardToken", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "rewardVault", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "rewardsPerSec", ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "set", ): TypedContractMethod< [ _pid: BigNumberish, _allocPoint: BigNumberish, _startTime: BigNumberish, _endTime: BigNumberish, _withUpdate: boolean, ], [void], "nonpayable" >; getFunction( nameOrSignature: "setRewardsPerSec", ): TypedContractMethod<[_rewardsPerSec: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "totalAllocPoint", ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "transferOwnership", ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "updatePool", ): TypedContractMethod<[_pid: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "userInfo", ): TypedContractMethod< [arg0: BigNumberish, arg1: AddressLike], [[bigint, bigint] & { amount: bigint; rewardDebt: bigint }], "view" >; getFunction( nameOrSignature: "withdraw", ): TypedContractMethod< [_pid: BigNumberish, _amount: BigNumberish], [void], "nonpayable" >; getEvent( key: "Deposit", ): TypedContractEvent< DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject >; getEvent( key: "Initialized", ): TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; getEvent( key: "InitializedChef", ): TypedContractEvent< InitializedChefEvent.InputTuple, InitializedChefEvent.OutputTuple, InitializedChefEvent.OutputObject >; getEvent( key: "OwnershipTransferred", ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( key: "SetPool", ): TypedContractEvent< SetPoolEvent.InputTuple, SetPoolEvent.OutputTuple, SetPoolEvent.OutputObject >; getEvent( key: "SetRewards", ): TypedContractEvent< SetRewardsEvent.InputTuple, SetRewardsEvent.OutputTuple, SetRewardsEvent.OutputObject >; getEvent( key: "Withdraw", ): TypedContractEvent< WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject >; filters: { "Deposit(address,uint16,uint256)": TypedContractEvent< DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject >; Deposit: TypedContractEvent< DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject >; "Initialized(uint64)": TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; Initialized: TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; "InitializedChef(address,address,address)": TypedContractEvent< InitializedChefEvent.InputTuple, InitializedChefEvent.OutputTuple, InitializedChefEvent.OutputObject >; InitializedChef: TypedContractEvent< InitializedChefEvent.InputTuple, InitializedChefEvent.OutputTuple, InitializedChefEvent.OutputObject >; "OwnershipTransferred(address,address)": TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; OwnershipTransferred: TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; "SetPool(uint16,address,uint32,uint48,uint48)": TypedContractEvent< SetPoolEvent.InputTuple, SetPoolEvent.OutputTuple, SetPoolEvent.OutputObject >; SetPool: TypedContractEvent< SetPoolEvent.InputTuple, SetPoolEvent.OutputTuple, SetPoolEvent.OutputObject >; "SetRewards(uint256)": TypedContractEvent< SetRewardsEvent.InputTuple, SetRewardsEvent.OutputTuple, SetRewardsEvent.OutputObject >; SetRewards: TypedContractEvent< SetRewardsEvent.InputTuple, SetRewardsEvent.OutputTuple, SetRewardsEvent.OutputObject >; "Withdraw(address,uint16,uint256)": TypedContractEvent< WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject >; Withdraw: TypedContractEvent< WithdrawEvent.InputTuple, WithdrawEvent.OutputTuple, WithdrawEvent.OutputObject >; }; }