aave-protocol-v2/types/ILendingPoolAddressesProviderRegistryFactory.ts

87 lines
1.7 KiB
TypeScript
Raw Normal View History

2020-06-03 10:23:21 +00:00
/* 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"
}
];