aave-protocol-v2/types/OwnableFactory.ts

72 lines
1.3 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-08-07 17:29:13 +00:00
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
2020-06-03 10:23:21 +00:00
2020-08-07 17:29:13 +00:00
import { Ownable } from "./Ownable";
2020-06-03 10:23:21 +00:00
export class OwnableFactory {
2020-08-07 17:29:13 +00:00
static connect(
address: string,
signerOrProvider: Signer | Provider
): Ownable {
2020-06-03 10:23:21 +00:00
return new Contract(address, _abi, signerOrProvider) as Ownable;
}
}
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "previousOwner",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "newOwner",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-07 17:29:13 +00:00
name: "OwnershipTransferred",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-07 17:29:13 +00:00
name: "owner",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-07 17:29:13 +00:00
name: "renounceOwnership",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-07 17:29:13 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "newOwner",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-07 17:29:13 +00:00
name: "transferOwnership",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-07 17:29:13 +00:00
stateMutability: "nonpayable",
type: "function"
}
2020-06-03 10:23:21 +00:00
];