aave-protocol-v2/types/Ownable.d.ts

72 lines
2.1 KiB
TypeScript
Raw Normal View History

2020-06-03 10:23:21 +00:00
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
2020-07-13 08:54:08 +00:00
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
2020-06-03 10:23:21 +00:00
interface OwnableInterface extends Interface {
functions: {
2020-07-13 08:54:08 +00:00
owner: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
2020-07-13 08:54:08 +00:00
renounceOwnership: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
transferOwnership: TypedFunctionDescription<{
encode([newOwner]: [string]): string;
}>;
};
events: {
OwnershipTransferred: TypedEventDescription<{
2020-07-13 08:54:08 +00:00
encodeTopics([previousOwner, newOwner]: [string | null, string | null]): string[];
2020-06-03 10:23:21 +00:00
}>;
};
}
export class Ownable extends Contract {
connect(signerOrProvider: Signer | Provider | string): Ownable;
attach(addressOrName: string): Ownable;
deployed(): Promise<Ownable>;
on(event: EventFilter | string, listener: Listener): Ownable;
once(event: EventFilter | string, listener: Listener): Ownable;
addListener(eventName: EventFilter | string, listener: Listener): Ownable;
removeAllListeners(eventName: EventFilter | string): Ownable;
removeListener(eventName: any, listener: Listener): Ownable;
interface: OwnableInterface;
functions: {
owner(): Promise<string>;
2020-07-13 08:54:08 +00:00
renounceOwnership(overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-06-03 10:23:21 +00:00
transferOwnership(
newOwner: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
owner(): Promise<string>;
2020-07-13 08:54:08 +00:00
renounceOwnership(overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-06-03 10:23:21 +00:00
transferOwnership(
newOwner: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {
2020-07-13 08:54:08 +00:00
OwnershipTransferred(previousOwner: string | null, newOwner: string | null): EventFilter;
2020-06-03 10:23:21 +00:00
};
estimate: {
owner(): Promise<BigNumber>;
renounceOwnership(): Promise<BigNumber>;
transferOwnership(newOwner: string): Promise<BigNumber>;
};
}