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

106 lines
3.4 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 BaseAdminUpgradeabilityProxyInterface extends Interface {
functions: {
2020-07-13 08:54:08 +00:00
admin: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
changeAdmin: TypedFunctionDescription<{
encode([newAdmin]: [string]): string;
}>;
2020-07-13 08:54:08 +00:00
implementation: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
upgradeTo: TypedFunctionDescription<{
encode([newImplementation]: [string]): string;
}>;
upgradeToAndCall: TypedFunctionDescription<{
encode([newImplementation, data]: [string, Arrayish]): string;
}>;
};
events: {
AdminChanged: TypedEventDescription<{
encodeTopics([previousAdmin, newAdmin]: [null, null]): string[];
}>;
Upgraded: TypedEventDescription<{
encodeTopics([implementation]: [string | null]): string[];
}>;
};
}
export class BaseAdminUpgradeabilityProxy extends Contract {
2020-07-13 08:54:08 +00:00
connect(signerOrProvider: Signer | Provider | string): BaseAdminUpgradeabilityProxy;
2020-06-03 10:23:21 +00:00
attach(addressOrName: string): BaseAdminUpgradeabilityProxy;
deployed(): Promise<BaseAdminUpgradeabilityProxy>;
2020-07-13 08:54:08 +00:00
on(event: EventFilter | string, listener: Listener): BaseAdminUpgradeabilityProxy;
once(event: EventFilter | string, listener: Listener): BaseAdminUpgradeabilityProxy;
addListener(eventName: EventFilter | string, listener: Listener): BaseAdminUpgradeabilityProxy;
removeAllListeners(eventName: EventFilter | string): BaseAdminUpgradeabilityProxy;
removeListener(eventName: any, listener: Listener): BaseAdminUpgradeabilityProxy;
2020-06-03 10:23:21 +00:00
interface: BaseAdminUpgradeabilityProxyInterface;
functions: {
admin(overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-07-13 08:54:08 +00:00
changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-06-03 10:23:21 +00:00
2020-07-13 08:54:08 +00:00
implementation(overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-06-03 10:23:21 +00:00
upgradeTo(
newImplementation: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
upgradeToAndCall(
newImplementation: string,
data: Arrayish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
admin(overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-07-13 08:54:08 +00:00
changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-06-03 10:23:21 +00:00
2020-07-13 08:54:08 +00:00
implementation(overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-06-03 10:23:21 +00:00
upgradeTo(
newImplementation: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
upgradeToAndCall(
newImplementation: string,
data: Arrayish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {
AdminChanged(previousAdmin: null, newAdmin: null): EventFilter;
Upgraded(implementation: string | null): EventFilter;
};
estimate: {
admin(): Promise<BigNumber>;
changeAdmin(newAdmin: string): Promise<BigNumber>;
implementation(): Promise<BigNumber>;
upgradeTo(newImplementation: string): Promise<BigNumber>;
2020-07-13 08:54:08 +00:00
upgradeToAndCall(newImplementation: string, data: Arrayish): Promise<BigNumber>;
2020-06-03 10:23:21 +00:00
};
}