aave-protocol-v2/types/IPriceOracleGetterFactory.ts
2020-07-13 11:54:08 +03:00

36 lines
769 B
TypeScript

/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import {IPriceOracleGetter} from './IPriceOracleGetter';
export class IPriceOracleGetterFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IPriceOracleGetter {
return new Contract(address, _abi, signerOrProvider) as IPriceOracleGetter;
}
}
const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_asset',
type: 'address',
},
],
name: 'getAssetPrice',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
];