aave-protocol-v2/types/ILendingPoolAddressesProviderRegistryFactory.ts
2020-06-03 12:23:21 +02:00

87 lines
1.7 KiB
TypeScript

/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { ILendingPoolAddressesProviderRegistry } from "./ILendingPoolAddressesProviderRegistry";
export class ILendingPoolAddressesProviderRegistryFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): ILendingPoolAddressesProviderRegistry {
return new Contract(
address,
_abi,
signerOrProvider
) as ILendingPoolAddressesProviderRegistry;
}
}
const _abi = [
{
inputs: [],
name: "getAddressesProvidersList",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_provider",
type: "address"
}
],
name: "isAddressesProviderRegistered",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_provider",
type: "address"
},
{
internalType: "uint256",
name: "_id",
type: "uint256"
}
],
name: "registerAddressesProvider",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_provider",
type: "address"
}
],
name: "unregisterAddressesProvider",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];