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 SupplierAdminFacetInterface extends Interface { getFunction(nameOrSignature: "decreaseSupplierAllowance" | "getStaticFunctionSelectors" | "getStaticInterfaceIds" | "getStaticResolverKey" | "getSupplierAllowance" | "grantSupplierRole" | "grantUnlimitedSupplierRole" | "increaseSupplierAllowance" | "isUnlimitedSupplierAllowance" | "resetSupplierAllowance" | "revokeSupplierRole"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Initialized" | "RoleAdded" | "RoleGranted" | "RoleRemoved" | "RoleRevoked" | "SupplierAllowanceDecreased" | "SupplierAllowanceIncreased" | "SupplierAllowanceReset" | "TokenTransfer"): EventFragment; encodeFunctionData(functionFragment: "decreaseSupplierAllowance", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "getStaticFunctionSelectors", values?: undefined): string; encodeFunctionData(functionFragment: "getStaticInterfaceIds", values?: undefined): string; encodeFunctionData(functionFragment: "getStaticResolverKey", values?: undefined): string; encodeFunctionData(functionFragment: "getSupplierAllowance", values: [AddressLike]): string; encodeFunctionData(functionFragment: "grantSupplierRole", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "grantUnlimitedSupplierRole", values: [AddressLike]): string; encodeFunctionData(functionFragment: "increaseSupplierAllowance", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "isUnlimitedSupplierAllowance", values: [AddressLike]): string; encodeFunctionData(functionFragment: "resetSupplierAllowance", values: [AddressLike]): string; encodeFunctionData(functionFragment: "revokeSupplierRole", values: [AddressLike]): string; decodeFunctionResult(functionFragment: "decreaseSupplierAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getStaticFunctionSelectors", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getStaticInterfaceIds", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getStaticResolverKey", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getSupplierAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "grantSupplierRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "grantUnlimitedSupplierRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "increaseSupplierAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isUnlimitedSupplierAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "resetSupplierAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "revokeSupplierRole", data: BytesLike): Result; } export declare namespace InitializedEvent { type InputTuple = [facet: BytesLike]; type OutputTuple = [facet: string]; interface OutputObject { facet: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RoleAddedEvent { type InputTuple = [role: BytesLike, sender: AddressLike]; type OutputTuple = [role: string, sender: string]; interface OutputObject { role: string; sender: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RoleGrantedEvent { type InputTuple = [ role: BytesLike, account: AddressLike, sender: AddressLike ]; type OutputTuple = [role: string, account: string, sender: string]; interface OutputObject { role: string; account: string; sender: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RoleRemovedEvent { type InputTuple = [pos: BigNumberish, sender: AddressLike]; type OutputTuple = [pos: bigint, sender: string]; interface OutputObject { pos: bigint; sender: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RoleRevokedEvent { type InputTuple = [ role: BytesLike, account: AddressLike, sender: AddressLike ]; type OutputTuple = [role: string, account: string, sender: string]; interface OutputObject { role: string; account: string; sender: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SupplierAllowanceDecreasedEvent { type InputTuple = [ sender: AddressLike, supplier: AddressLike, amount: BigNumberish, oldAllowance: BigNumberish, newAllowance: BigNumberish ]; type OutputTuple = [ sender: string, supplier: string, amount: bigint, oldAllowance: bigint, newAllowance: bigint ]; interface OutputObject { sender: string; supplier: string; amount: bigint; oldAllowance: bigint; newAllowance: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SupplierAllowanceIncreasedEvent { type InputTuple = [ sender: AddressLike, supplier: AddressLike, amount: BigNumberish, oldAllowance: BigNumberish, newAllowance: BigNumberish ]; type OutputTuple = [ sender: string, supplier: string, amount: bigint, oldAllowance: bigint, newAllowance: bigint ]; interface OutputObject { sender: string; supplier: string; amount: bigint; oldAllowance: bigint; newAllowance: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SupplierAllowanceResetEvent { type InputTuple = [ sender: AddressLike, supplier: AddressLike, oldAllowance: BigNumberish, newAllowance: BigNumberish ]; type OutputTuple = [ sender: string, supplier: string, oldAllowance: bigint, newAllowance: bigint ]; interface OutputObject { sender: string; supplier: string; oldAllowance: bigint; newAllowance: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace TokenTransferEvent { type InputTuple = [ token: AddressLike, sender: AddressLike, receiver: AddressLike, amount: BigNumberish ]; type OutputTuple = [ token: string, sender: string, receiver: string, amount: bigint ]; interface OutputObject { token: string; sender: string; receiver: string; amount: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface SupplierAdminFacet extends BaseContract { connect(runner?: ContractRunner | null): SupplierAdminFacet; waitForDeployment(): Promise; interface: SupplierAdminFacetInterface; 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; decreaseSupplierAllowance: TypedContractMethod<[ supplier: AddressLike, amount: BigNumberish ], [ void ], "nonpayable">; getStaticFunctionSelectors: TypedContractMethod<[], [string[]], "view">; getStaticInterfaceIds: TypedContractMethod<[], [string[]], "view">; getStaticResolverKey: TypedContractMethod<[], [string], "view">; getSupplierAllowance: TypedContractMethod<[ supplier: AddressLike ], [ bigint ], "view">; grantSupplierRole: TypedContractMethod<[ supplier: AddressLike, amount: BigNumberish ], [ void ], "nonpayable">; grantUnlimitedSupplierRole: TypedContractMethod<[ supplier: AddressLike ], [ void ], "nonpayable">; increaseSupplierAllowance: TypedContractMethod<[ supplier: AddressLike, amount: BigNumberish ], [ void ], "nonpayable">; isUnlimitedSupplierAllowance: TypedContractMethod<[ supplier: AddressLike ], [ boolean ], "view">; resetSupplierAllowance: TypedContractMethod<[ supplier: AddressLike ], [ void ], "nonpayable">; revokeSupplierRole: TypedContractMethod<[ supplier: AddressLike ], [ void ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "decreaseSupplierAllowance"): TypedContractMethod<[ supplier: AddressLike, amount: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "getStaticFunctionSelectors"): TypedContractMethod<[], [string[]], "view">; getFunction(nameOrSignature: "getStaticInterfaceIds"): TypedContractMethod<[], [string[]], "view">; getFunction(nameOrSignature: "getStaticResolverKey"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "getSupplierAllowance"): TypedContractMethod<[supplier: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "grantSupplierRole"): TypedContractMethod<[ supplier: AddressLike, amount: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "grantUnlimitedSupplierRole"): TypedContractMethod<[supplier: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "increaseSupplierAllowance"): TypedContractMethod<[ supplier: AddressLike, amount: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "isUnlimitedSupplierAllowance"): TypedContractMethod<[supplier: AddressLike], [boolean], "view">; getFunction(nameOrSignature: "resetSupplierAllowance"): TypedContractMethod<[supplier: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "revokeSupplierRole"): TypedContractMethod<[supplier: AddressLike], [void], "nonpayable">; getEvent(key: "Initialized"): TypedContractEvent; getEvent(key: "RoleAdded"): TypedContractEvent; getEvent(key: "RoleGranted"): TypedContractEvent; getEvent(key: "RoleRemoved"): TypedContractEvent; getEvent(key: "RoleRevoked"): TypedContractEvent; getEvent(key: "SupplierAllowanceDecreased"): TypedContractEvent; getEvent(key: "SupplierAllowanceIncreased"): TypedContractEvent; getEvent(key: "SupplierAllowanceReset"): TypedContractEvent; getEvent(key: "TokenTransfer"): TypedContractEvent; filters: { "Initialized(bytes32)": TypedContractEvent; Initialized: TypedContractEvent; "RoleAdded(bytes32,address)": TypedContractEvent; RoleAdded: TypedContractEvent; "RoleGranted(bytes32,address,address)": TypedContractEvent; RoleGranted: TypedContractEvent; "RoleRemoved(uint256,address)": TypedContractEvent; RoleRemoved: TypedContractEvent; "RoleRevoked(bytes32,address,address)": TypedContractEvent; RoleRevoked: TypedContractEvent; "SupplierAllowanceDecreased(address,address,uint256,uint256,uint256)": TypedContractEvent; SupplierAllowanceDecreased: TypedContractEvent; "SupplierAllowanceIncreased(address,address,uint256,uint256,uint256)": TypedContractEvent; SupplierAllowanceIncreased: TypedContractEvent; "SupplierAllowanceReset(address,address,uint256,uint256)": TypedContractEvent; SupplierAllowanceReset: TypedContractEvent; "TokenTransfer(address,address,address,int64)": TypedContractEvent; TokenTransfer: TypedContractEvent; }; }