/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils, } from "ethers"; import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; import { Listener, Provider } from "@ethersproject/providers"; import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; export interface PermissionsInterface extends utils.Interface { functions: { "addDistributor(address)": FunctionFragment; "admin()": FunctionFragment; "claimAdmin()": FunctionFragment; "getDistributors()": FunctionFragment; "pendingAdmin()": FunctionFragment; "removeDistributor(address)": FunctionFragment; "transferAdmin(address)": FunctionFragment; "transferAdminQuickly(address)": FunctionFragment; "withdrawEther(uint256,address)": FunctionFragment; "withdrawToken(address,uint256,address)": FunctionFragment; }; encodeFunctionData( functionFragment: "addDistributor", values: [string] ): string; encodeFunctionData(functionFragment: "admin", values?: undefined): string; encodeFunctionData( functionFragment: "claimAdmin", values?: undefined ): string; encodeFunctionData( functionFragment: "getDistributors", values?: undefined ): string; encodeFunctionData( functionFragment: "pendingAdmin", values?: undefined ): string; encodeFunctionData( functionFragment: "removeDistributor", values: [string] ): string; encodeFunctionData( functionFragment: "transferAdmin", values: [string] ): string; encodeFunctionData( functionFragment: "transferAdminQuickly", values: [string] ): string; encodeFunctionData( functionFragment: "withdrawEther", values: [BigNumberish, string] ): string; encodeFunctionData( functionFragment: "withdrawToken", values: [string, BigNumberish, string] ): string; decodeFunctionResult( functionFragment: "addDistributor", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "admin", data: BytesLike): Result; decodeFunctionResult(functionFragment: "claimAdmin", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getDistributors", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "pendingAdmin", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "removeDistributor", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferAdmin", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferAdminQuickly", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "withdrawEther", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "withdrawToken", data: BytesLike ): Result; events: { "AdminClaimed(address,address)": EventFragment; "DistributorAdded(address,bool)": EventFragment; "EtherWithdraw(uint256,address)": EventFragment; "TokenWithdraw(address,uint256,address)": EventFragment; "TransferAdminPending(address)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "AdminClaimed"): EventFragment; getEvent(nameOrSignatureOrTopic: "DistributorAdded"): EventFragment; getEvent(nameOrSignatureOrTopic: "EtherWithdraw"): EventFragment; getEvent(nameOrSignatureOrTopic: "TokenWithdraw"): EventFragment; getEvent(nameOrSignatureOrTopic: "TransferAdminPending"): EventFragment; } export type AdminClaimedEvent = TypedEvent< [string, string], { newAdmin: string; previousAdmin: string } >; export type AdminClaimedEventFilter = TypedEventFilter; export type DistributorAddedEvent = TypedEvent< [string, boolean], { newDistributor: string; isAdd: boolean } >; export type DistributorAddedEventFilter = TypedEventFilter; export type EtherWithdrawEvent = TypedEvent< [BigNumber, string], { amount: BigNumber; sendTo: string } >; export type EtherWithdrawEventFilter = TypedEventFilter; export type TokenWithdrawEvent = TypedEvent< [string, BigNumber, string], { token: string; amount: BigNumber; sendTo: string } >; export type TokenWithdrawEventFilter = TypedEventFilter; export type TransferAdminPendingEvent = TypedEvent< [string], { pendingAdmin: string } >; export type TransferAdminPendingEventFilter = TypedEventFilter; export interface Permissions extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: PermissionsInterface; queryFilter( event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>; listeners( eventFilter?: TypedEventFilter ): Array>; listeners(eventName?: string): Array; removeAllListeners( eventFilter: TypedEventFilter ): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { addDistributor( newDistributor: string, overrides?: Overrides & { from?: string | Promise } ): Promise; admin(overrides?: CallOverrides): Promise<[string]>; claimAdmin( overrides?: Overrides & { from?: string | Promise } ): Promise; getDistributors(overrides?: CallOverrides): Promise<[string[]]>; pendingAdmin(overrides?: CallOverrides): Promise<[string]>; removeDistributor( distributor: string, overrides?: Overrides & { from?: string | Promise } ): Promise; transferAdmin( newAdmin: string, overrides?: Overrides & { from?: string | Promise } ): Promise; transferAdminQuickly( newAdmin: string, overrides?: Overrides & { from?: string | Promise } ): Promise; withdrawEther( amount: BigNumberish, sendTo: string, overrides?: Overrides & { from?: string | Promise } ): Promise; withdrawToken( token: string, amount: BigNumberish, sendTo: string, overrides?: Overrides & { from?: string | Promise } ): Promise; }; addDistributor( newDistributor: string, overrides?: Overrides & { from?: string | Promise } ): Promise; admin(overrides?: CallOverrides): Promise; claimAdmin( overrides?: Overrides & { from?: string | Promise } ): Promise; getDistributors(overrides?: CallOverrides): Promise; pendingAdmin(overrides?: CallOverrides): Promise; removeDistributor( distributor: string, overrides?: Overrides & { from?: string | Promise } ): Promise; transferAdmin( newAdmin: string, overrides?: Overrides & { from?: string | Promise } ): Promise; transferAdminQuickly( newAdmin: string, overrides?: Overrides & { from?: string | Promise } ): Promise; withdrawEther( amount: BigNumberish, sendTo: string, overrides?: Overrides & { from?: string | Promise } ): Promise; withdrawToken( token: string, amount: BigNumberish, sendTo: string, overrides?: Overrides & { from?: string | Promise } ): Promise; callStatic: { addDistributor( newDistributor: string, overrides?: CallOverrides ): Promise; admin(overrides?: CallOverrides): Promise; claimAdmin(overrides?: CallOverrides): Promise; getDistributors(overrides?: CallOverrides): Promise; pendingAdmin(overrides?: CallOverrides): Promise; removeDistributor( distributor: string, overrides?: CallOverrides ): Promise; transferAdmin(newAdmin: string, overrides?: CallOverrides): Promise; transferAdminQuickly( newAdmin: string, overrides?: CallOverrides ): Promise; withdrawEther( amount: BigNumberish, sendTo: string, overrides?: CallOverrides ): Promise; withdrawToken( token: string, amount: BigNumberish, sendTo: string, overrides?: CallOverrides ): Promise; }; filters: { "AdminClaimed(address,address)"( newAdmin?: null, previousAdmin?: null ): AdminClaimedEventFilter; AdminClaimed( newAdmin?: null, previousAdmin?: null ): AdminClaimedEventFilter; "DistributorAdded(address,bool)"( newDistributor?: null, isAdd?: null ): DistributorAddedEventFilter; DistributorAdded( newDistributor?: null, isAdd?: null ): DistributorAddedEventFilter; "EtherWithdraw(uint256,address)"( amount?: null, sendTo?: null ): EtherWithdrawEventFilter; EtherWithdraw(amount?: null, sendTo?: null): EtherWithdrawEventFilter; "TokenWithdraw(address,uint256,address)"( token?: null, amount?: null, sendTo?: null ): TokenWithdrawEventFilter; TokenWithdraw( token?: null, amount?: null, sendTo?: null ): TokenWithdrawEventFilter; "TransferAdminPending(address)"( pendingAdmin?: null ): TransferAdminPendingEventFilter; TransferAdminPending(pendingAdmin?: null): TransferAdminPendingEventFilter; }; estimateGas: { addDistributor( newDistributor: string, overrides?: Overrides & { from?: string | Promise } ): Promise; admin(overrides?: CallOverrides): Promise; claimAdmin( overrides?: Overrides & { from?: string | Promise } ): Promise; getDistributors(overrides?: CallOverrides): Promise; pendingAdmin(overrides?: CallOverrides): Promise; removeDistributor( distributor: string, overrides?: Overrides & { from?: string | Promise } ): Promise; transferAdmin( newAdmin: string, overrides?: Overrides & { from?: string | Promise } ): Promise; transferAdminQuickly( newAdmin: string, overrides?: Overrides & { from?: string | Promise } ): Promise; withdrawEther( amount: BigNumberish, sendTo: string, overrides?: Overrides & { from?: string | Promise } ): Promise; withdrawToken( token: string, amount: BigNumberish, sendTo: string, overrides?: Overrides & { from?: string | Promise } ): Promise; }; populateTransaction: { addDistributor( newDistributor: string, overrides?: Overrides & { from?: string | Promise } ): Promise; admin(overrides?: CallOverrides): Promise; claimAdmin( overrides?: Overrides & { from?: string | Promise } ): Promise; getDistributors(overrides?: CallOverrides): Promise; pendingAdmin(overrides?: CallOverrides): Promise; removeDistributor( distributor: string, overrides?: Overrides & { from?: string | Promise } ): Promise; transferAdmin( newAdmin: string, overrides?: Overrides & { from?: string | Promise } ): Promise; transferAdminQuickly( newAdmin: string, overrides?: Overrides & { from?: string | Promise } ): Promise; withdrawEther( amount: BigNumberish, sendTo: string, overrides?: Overrides & { from?: string | Promise } ): Promise; withdrawToken( token: string, amount: BigNumberish, sendTo: string, overrides?: Overrides & { from?: string | Promise } ): Promise; }; }