/* 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 OwnableControlInterface extends Interface { getFunction( nameOrSignature: | "DEFAULT_ADMIN_ROLE" | "DEFAULT_SUBOWNER_ROLE" | "addSubowner" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "getRoleMembers" | "grantRole" | "hasRole" | "isSubowner" | "owner" | "removeSubowner" | "renounceOwnership" | "renounceRole" | "revokeRole" | "subowners" | "supportsInterface" | "transferOwnership", ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "Initialized" | "OwnershipTransferred" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SubownerAdded" | "SubownerRemoved", ): EventFragment; encodeFunctionData( functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined, ): string; encodeFunctionData( functionFragment: "DEFAULT_SUBOWNER_ROLE", values?: undefined, ): string; encodeFunctionData( functionFragment: "addSubowner", values: [AddressLike], ): string; encodeFunctionData( functionFragment: "getRoleAdmin", values: [BytesLike], ): string; encodeFunctionData( functionFragment: "getRoleMember", values: [BytesLike, BigNumberish], ): string; encodeFunctionData( functionFragment: "getRoleMemberCount", values: [BytesLike], ): string; encodeFunctionData( functionFragment: "getRoleMembers", values: [BytesLike], ): string; encodeFunctionData( functionFragment: "grantRole", values: [BytesLike, AddressLike], ): string; encodeFunctionData( functionFragment: "hasRole", values: [BytesLike, AddressLike], ): string; encodeFunctionData( functionFragment: "isSubowner", values: [AddressLike], ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "removeSubowner", values: [AddressLike], ): string; encodeFunctionData( functionFragment: "renounceOwnership", values?: undefined, ): string; encodeFunctionData( functionFragment: "renounceRole", values: [BytesLike, AddressLike], ): string; encodeFunctionData( functionFragment: "revokeRole", values: [BytesLike, AddressLike], ): string; encodeFunctionData(functionFragment: "subowners", values?: undefined): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike], ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike], ): string; decodeFunctionResult( functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "DEFAULT_SUBOWNER_ROLE", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "addSubowner", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "getRoleAdmin", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "getRoleMember", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "getRoleMemberCount", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "getRoleMembers", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isSubowner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "removeSubowner", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "renounceOwnership", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "renounceRole", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "subowners", data: BytesLike): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike, ): Result; } 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 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 RoleAdminChangedEvent { export type InputTuple = [ role: BytesLike, previousAdminRole: BytesLike, newAdminRole: BytesLike, ]; export type OutputTuple = [ role: string, previousAdminRole: string, newAdminRole: string, ]; export interface OutputObject { role: string; previousAdminRole: string; newAdminRole: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RoleGrantedEvent { export type InputTuple = [ role: BytesLike, account: AddressLike, sender: AddressLike, ]; export type OutputTuple = [role: string, account: string, sender: string]; export interface OutputObject { role: string; account: string; sender: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RoleRevokedEvent { export type InputTuple = [ role: BytesLike, account: AddressLike, sender: AddressLike, ]; export type OutputTuple = [role: string, account: string, sender: string]; export interface OutputObject { role: string; account: string; sender: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace SubownerAddedEvent { export type InputTuple = [newSubowner: AddressLike]; export type OutputTuple = [newSubowner: string]; export interface OutputObject { newSubowner: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace SubownerRemovedEvent { export type InputTuple = [oldSubowner: AddressLike]; export type OutputTuple = [oldSubowner: string]; export interface OutputObject { oldSubowner: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface OwnableControl extends BaseContract { connect(runner?: ContractRunner | null): OwnableControl; waitForDeployment(): Promise; interface: OwnableControlInterface; 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; DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">; DEFAULT_SUBOWNER_ROLE: TypedContractMethod<[], [string], "view">; addSubowner: TypedContractMethod< [newSubowner: AddressLike], [void], "nonpayable" >; getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">; getRoleMember: TypedContractMethod< [role: BytesLike, index: BigNumberish], [string], "view" >; getRoleMemberCount: TypedContractMethod<[role: BytesLike], [bigint], "view">; getRoleMembers: TypedContractMethod<[role: BytesLike], [string[]], "view">; grantRole: TypedContractMethod< [role: BytesLike, account: AddressLike], [void], "nonpayable" >; hasRole: TypedContractMethod< [role: BytesLike, account: AddressLike], [boolean], "view" >; isSubowner: TypedContractMethod<[account: AddressLike], [boolean], "view">; owner: TypedContractMethod<[], [string], "view">; removeSubowner: TypedContractMethod< [oldSubowner: AddressLike], [void], "nonpayable" >; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; renounceRole: TypedContractMethod< [role: BytesLike, callerConfirmation: AddressLike], [void], "nonpayable" >; revokeRole: TypedContractMethod< [role: BytesLike, account: AddressLike], [void], "nonpayable" >; subowners: TypedContractMethod<[], [string[]], "view">; supportsInterface: TypedContractMethod< [interfaceId: BytesLike], [boolean], "view" >; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; getFunction( key: string | FunctionFragment, ): T; getFunction( nameOrSignature: "DEFAULT_ADMIN_ROLE", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "DEFAULT_SUBOWNER_ROLE", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "addSubowner", ): TypedContractMethod<[newSubowner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "getRoleAdmin", ): TypedContractMethod<[role: BytesLike], [string], "view">; getFunction( nameOrSignature: "getRoleMember", ): TypedContractMethod< [role: BytesLike, index: BigNumberish], [string], "view" >; getFunction( nameOrSignature: "getRoleMemberCount", ): TypedContractMethod<[role: BytesLike], [bigint], "view">; getFunction( nameOrSignature: "getRoleMembers", ): TypedContractMethod<[role: BytesLike], [string[]], "view">; getFunction( nameOrSignature: "grantRole", ): TypedContractMethod< [role: BytesLike, account: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "hasRole", ): TypedContractMethod< [role: BytesLike, account: AddressLike], [boolean], "view" >; getFunction( nameOrSignature: "isSubowner", ): TypedContractMethod<[account: AddressLike], [boolean], "view">; getFunction( nameOrSignature: "owner", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "removeSubowner", ): TypedContractMethod<[oldSubowner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "renounceOwnership", ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "renounceRole", ): TypedContractMethod< [role: BytesLike, callerConfirmation: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "revokeRole", ): TypedContractMethod< [role: BytesLike, account: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "subowners", ): TypedContractMethod<[], [string[]], "view">; getFunction( nameOrSignature: "supportsInterface", ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; getFunction( nameOrSignature: "transferOwnership", ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getEvent( key: "Initialized", ): TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; getEvent( key: "OwnershipTransferred", ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( key: "RoleAdminChanged", ): TypedContractEvent< RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject >; getEvent( key: "RoleGranted", ): TypedContractEvent< RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject >; getEvent( key: "RoleRevoked", ): TypedContractEvent< RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject >; getEvent( key: "SubownerAdded", ): TypedContractEvent< SubownerAddedEvent.InputTuple, SubownerAddedEvent.OutputTuple, SubownerAddedEvent.OutputObject >; getEvent( key: "SubownerRemoved", ): TypedContractEvent< SubownerRemovedEvent.InputTuple, SubownerRemovedEvent.OutputTuple, SubownerRemovedEvent.OutputObject >; filters: { "Initialized(uint64)": TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; Initialized: TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; "OwnershipTransferred(address,address)": TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; OwnershipTransferred: TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; "RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent< RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject >; RoleAdminChanged: TypedContractEvent< RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject >; "RoleGranted(bytes32,address,address)": TypedContractEvent< RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject >; RoleGranted: TypedContractEvent< RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject >; "RoleRevoked(bytes32,address,address)": TypedContractEvent< RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject >; RoleRevoked: TypedContractEvent< RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject >; "SubownerAdded(address)": TypedContractEvent< SubownerAddedEvent.InputTuple, SubownerAddedEvent.OutputTuple, SubownerAddedEvent.OutputObject >; SubownerAdded: TypedContractEvent< SubownerAddedEvent.InputTuple, SubownerAddedEvent.OutputTuple, SubownerAddedEvent.OutputObject >; "SubownerRemoved(address)": TypedContractEvent< SubownerRemovedEvent.InputTuple, SubownerRemovedEvent.OutputTuple, SubownerRemovedEvent.OutputObject >; SubownerRemoved: TypedContractEvent< SubownerRemovedEvent.InputTuple, SubownerRemovedEvent.OutputTuple, SubownerRemovedEvent.OutputObject >; }; }