/* 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 FixedRatioCoinDisperserInterface extends Interface { getFunction( nameOrSignature: | "END_BLOCK" | "POINTS_TOKEN" | "START_BLOCK" | "accPayoutPerPoint" | "finalize" | "finalized" | "fundEth" | "isRedemptionOpen" | "moveBalanceToPool" | "owner" | "paused" | "pendingTotal" | "pendingWithdrawals" | "previewPayout" | "redeemPull" | "redeemPush" | "remainingReserve" | "rescueEth" | "rescueTokens" | "setPaused" | "totalPayoutPool" | "totalPayoutSent" | "totalPointsRedeemed" | "totalRedeemablePoints" | "transferOwnership" | "withdraw" | "withdrawDust" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "DustWithdrawn" | "Finalized" | "Funded" | "OwnershipTransferred" | "Paused" | "Redeemed" | "Withdrawal" ): EventFragment; encodeFunctionData(functionFragment: "END_BLOCK", values?: undefined): string; encodeFunctionData( functionFragment: "POINTS_TOKEN", values?: undefined ): string; encodeFunctionData( functionFragment: "START_BLOCK", values?: undefined ): string; encodeFunctionData( functionFragment: "accPayoutPerPoint", values?: undefined ): string; encodeFunctionData(functionFragment: "finalize", values?: undefined): string; encodeFunctionData(functionFragment: "finalized", values?: undefined): string; encodeFunctionData(functionFragment: "fundEth", values?: undefined): string; encodeFunctionData( functionFragment: "isRedemptionOpen", values?: undefined ): string; encodeFunctionData( functionFragment: "moveBalanceToPool", values?: undefined ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "paused", values?: undefined): string; encodeFunctionData( functionFragment: "pendingTotal", values?: undefined ): string; encodeFunctionData( functionFragment: "pendingWithdrawals", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "previewPayout", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "redeemPull", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "redeemPush", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "remainingReserve", values?: undefined ): string; encodeFunctionData( functionFragment: "rescueEth", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "rescueTokens", values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData(functionFragment: "setPaused", values: [boolean]): string; encodeFunctionData( functionFragment: "totalPayoutPool", values?: undefined ): string; encodeFunctionData( functionFragment: "totalPayoutSent", values?: undefined ): string; encodeFunctionData( functionFragment: "totalPointsRedeemed", values?: undefined ): string; encodeFunctionData( functionFragment: "totalRedeemablePoints", values?: undefined ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike] ): string; encodeFunctionData(functionFragment: "withdraw", values?: undefined): string; encodeFunctionData( functionFragment: "withdrawDust", values?: undefined ): string; decodeFunctionResult(functionFragment: "END_BLOCK", data: BytesLike): Result; decodeFunctionResult( functionFragment: "POINTS_TOKEN", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "START_BLOCK", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "accPayoutPerPoint", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "finalize", data: BytesLike): Result; decodeFunctionResult(functionFragment: "finalized", data: BytesLike): Result; decodeFunctionResult(functionFragment: "fundEth", data: BytesLike): Result; decodeFunctionResult( functionFragment: "isRedemptionOpen", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "moveBalanceToPool", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; decodeFunctionResult( functionFragment: "pendingTotal", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "pendingWithdrawals", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "previewPayout", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "redeemPull", data: BytesLike): Result; decodeFunctionResult(functionFragment: "redeemPush", data: BytesLike): Result; decodeFunctionResult( functionFragment: "remainingReserve", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "rescueEth", data: BytesLike): Result; decodeFunctionResult( functionFragment: "rescueTokens", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "setPaused", data: BytesLike): Result; decodeFunctionResult( functionFragment: "totalPayoutPool", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "totalPayoutSent", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "totalPointsRedeemed", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "totalRedeemablePoints", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; decodeFunctionResult( functionFragment: "withdrawDust", data: BytesLike ): Result; } export namespace DustWithdrawnEvent { export type InputTuple = [amount: BigNumberish]; export type OutputTuple = [amount: bigint]; export interface OutputObject { amount: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace FinalizedEvent { export type InputTuple = [ totalPayoutPool: BigNumberish, totalRedeemablePoints: BigNumberish, accPayoutPerPoint: BigNumberish ]; export type OutputTuple = [ totalPayoutPool: bigint, totalRedeemablePoints: bigint, accPayoutPerPoint: bigint ]; export interface OutputObject { totalPayoutPool: bigint; totalRedeemablePoints: bigint; accPayoutPerPoint: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace FundedEvent { export type InputTuple = [from: AddressLike, amount: BigNumberish]; export type OutputTuple = [from: string, amount: bigint]; export interface OutputObject { from: string; amount: bigint; } 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 PausedEvent { export type InputTuple = [isPaused: boolean]; export type OutputTuple = [isPaused: boolean]; export interface OutputObject { isPaused: boolean; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RedeemedEvent { export type InputTuple = [ user: AddressLike, pointsRequested: BigNumberish, pointsReceived: BigNumberish, payout: BigNumberish, pushed: boolean ]; export type OutputTuple = [ user: string, pointsRequested: bigint, pointsReceived: bigint, payout: bigint, pushed: boolean ]; export interface OutputObject { user: string; pointsRequested: bigint; pointsReceived: bigint; payout: bigint; pushed: boolean; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace WithdrawalEvent { export type InputTuple = [user: AddressLike, amount: BigNumberish]; export type OutputTuple = [user: string, amount: bigint]; export interface OutputObject { user: string; amount: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface FixedRatioCoinDisperser extends BaseContract { connect(runner?: ContractRunner | null): FixedRatioCoinDisperser; waitForDeployment(): Promise; interface: FixedRatioCoinDisperserInterface; 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; END_BLOCK: TypedContractMethod<[], [bigint], "view">; POINTS_TOKEN: TypedContractMethod<[], [string], "view">; START_BLOCK: TypedContractMethod<[], [bigint], "view">; accPayoutPerPoint: TypedContractMethod<[], [bigint], "view">; finalize: TypedContractMethod<[], [void], "nonpayable">; finalized: TypedContractMethod<[], [boolean], "view">; fundEth: TypedContractMethod<[], [void], "payable">; isRedemptionOpen: TypedContractMethod<[], [boolean], "view">; moveBalanceToPool: TypedContractMethod<[], [void], "nonpayable">; owner: TypedContractMethod<[], [string], "view">; paused: TypedContractMethod<[], [boolean], "view">; pendingTotal: TypedContractMethod<[], [bigint], "view">; pendingWithdrawals: TypedContractMethod< [arg0: AddressLike], [bigint], "view" >; previewPayout: TypedContractMethod<[amount: BigNumberish], [bigint], "view">; redeemPull: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">; redeemPush: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">; remainingReserve: TypedContractMethod<[], [bigint], "view">; rescueEth: TypedContractMethod< [to: AddressLike, amount: BigNumberish], [void], "nonpayable" >; rescueTokens: TypedContractMethod< [tokenAddr: AddressLike, to: AddressLike, amount: BigNumberish], [void], "nonpayable" >; setPaused: TypedContractMethod<[_paused: boolean], [void], "nonpayable">; totalPayoutPool: TypedContractMethod<[], [bigint], "view">; totalPayoutSent: TypedContractMethod<[], [bigint], "view">; totalPointsRedeemed: TypedContractMethod<[], [bigint], "view">; totalRedeemablePoints: TypedContractMethod<[], [bigint], "view">; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; withdraw: TypedContractMethod<[], [void], "nonpayable">; withdrawDust: TypedContractMethod<[], [void], "nonpayable">; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "END_BLOCK" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "POINTS_TOKEN" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "START_BLOCK" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "accPayoutPerPoint" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "finalize" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "finalized" ): TypedContractMethod<[], [boolean], "view">; getFunction( nameOrSignature: "fundEth" ): TypedContractMethod<[], [void], "payable">; getFunction( nameOrSignature: "isRedemptionOpen" ): TypedContractMethod<[], [boolean], "view">; getFunction( nameOrSignature: "moveBalanceToPool" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "paused" ): TypedContractMethod<[], [boolean], "view">; getFunction( nameOrSignature: "pendingTotal" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "pendingWithdrawals" ): TypedContractMethod<[arg0: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "previewPayout" ): TypedContractMethod<[amount: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "redeemPull" ): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "redeemPush" ): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "remainingReserve" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "rescueEth" ): TypedContractMethod< [to: AddressLike, amount: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "rescueTokens" ): TypedContractMethod< [tokenAddr: AddressLike, to: AddressLike, amount: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "setPaused" ): TypedContractMethod<[_paused: boolean], [void], "nonpayable">; getFunction( nameOrSignature: "totalPayoutPool" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "totalPayoutSent" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "totalPointsRedeemed" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "totalRedeemablePoints" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "withdraw" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "withdrawDust" ): TypedContractMethod<[], [void], "nonpayable">; getEvent( key: "DustWithdrawn" ): TypedContractEvent< DustWithdrawnEvent.InputTuple, DustWithdrawnEvent.OutputTuple, DustWithdrawnEvent.OutputObject >; getEvent( key: "Finalized" ): TypedContractEvent< FinalizedEvent.InputTuple, FinalizedEvent.OutputTuple, FinalizedEvent.OutputObject >; getEvent( key: "Funded" ): TypedContractEvent< FundedEvent.InputTuple, FundedEvent.OutputTuple, FundedEvent.OutputObject >; getEvent( key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( key: "Paused" ): TypedContractEvent< PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject >; getEvent( key: "Redeemed" ): TypedContractEvent< RedeemedEvent.InputTuple, RedeemedEvent.OutputTuple, RedeemedEvent.OutputObject >; getEvent( key: "Withdrawal" ): TypedContractEvent< WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject >; filters: { "DustWithdrawn(uint256)": TypedContractEvent< DustWithdrawnEvent.InputTuple, DustWithdrawnEvent.OutputTuple, DustWithdrawnEvent.OutputObject >; DustWithdrawn: TypedContractEvent< DustWithdrawnEvent.InputTuple, DustWithdrawnEvent.OutputTuple, DustWithdrawnEvent.OutputObject >; "Finalized(uint256,uint256,uint256)": TypedContractEvent< FinalizedEvent.InputTuple, FinalizedEvent.OutputTuple, FinalizedEvent.OutputObject >; Finalized: TypedContractEvent< FinalizedEvent.InputTuple, FinalizedEvent.OutputTuple, FinalizedEvent.OutputObject >; "Funded(address,uint256)": TypedContractEvent< FundedEvent.InputTuple, FundedEvent.OutputTuple, FundedEvent.OutputObject >; Funded: TypedContractEvent< FundedEvent.InputTuple, FundedEvent.OutputTuple, FundedEvent.OutputObject >; "OwnershipTransferred(address,address)": TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; OwnershipTransferred: TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; "Paused(bool)": TypedContractEvent< PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject >; Paused: TypedContractEvent< PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject >; "Redeemed(address,uint256,uint256,uint256,bool)": TypedContractEvent< RedeemedEvent.InputTuple, RedeemedEvent.OutputTuple, RedeemedEvent.OutputObject >; Redeemed: TypedContractEvent< RedeemedEvent.InputTuple, RedeemedEvent.OutputTuple, RedeemedEvent.OutputObject >; "Withdrawal(address,uint256)": TypedContractEvent< WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject >; Withdrawal: TypedContractEvent< WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject >; }; }