mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
104 lines
3.7 KiB
TypeScript
104 lines
3.7 KiB
TypeScript
|
/* Generated by ts-generator ver. 0.0.8 */
|
||
|
/* tslint:disable */
|
||
|
|
||
|
import { Contract, ContractFactory, Signer } from "ethers";
|
||
|
import { Provider } from "ethers/providers";
|
||
|
import { UnsignedTransaction } from "ethers/utils/transaction";
|
||
|
|
||
|
import { TransactionOverrides } from ".";
|
||
|
import { LendingPoolParametersProvider } from "./LendingPoolParametersProvider";
|
||
|
|
||
|
export class LendingPoolParametersProviderFactory extends ContractFactory {
|
||
|
constructor(signer?: Signer) {
|
||
|
super(_abi, _bytecode, signer);
|
||
|
}
|
||
|
|
||
|
deploy(
|
||
|
overrides?: TransactionOverrides
|
||
|
): Promise<LendingPoolParametersProvider> {
|
||
|
return super.deploy(overrides) as Promise<LendingPoolParametersProvider>;
|
||
|
}
|
||
|
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
|
||
|
return super.getDeployTransaction(overrides);
|
||
|
}
|
||
|
attach(address: string): LendingPoolParametersProvider {
|
||
|
return super.attach(address) as LendingPoolParametersProvider;
|
||
|
}
|
||
|
connect(signer: Signer): LendingPoolParametersProviderFactory {
|
||
|
return super.connect(signer) as LendingPoolParametersProviderFactory;
|
||
|
}
|
||
|
static connect(
|
||
|
address: string,
|
||
|
signerOrProvider: Signer | Provider
|
||
|
): LendingPoolParametersProvider {
|
||
|
return new Contract(
|
||
|
address,
|
||
|
_abi,
|
||
|
signerOrProvider
|
||
|
) as LendingPoolParametersProvider;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const _abi = [
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: "getFlashLoanFeesInBips",
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: "uint256",
|
||
|
name: "",
|
||
|
type: "uint256"
|
||
|
},
|
||
|
{
|
||
|
internalType: "uint256",
|
||
|
name: "",
|
||
|
type: "uint256"
|
||
|
}
|
||
|
],
|
||
|
stateMutability: "pure",
|
||
|
type: "function"
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: "getMaxStableRateBorrowSizePercent",
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: "uint256",
|
||
|
name: "",
|
||
|
type: "uint256"
|
||
|
}
|
||
|
],
|
||
|
stateMutability: "pure",
|
||
|
type: "function"
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: "getRebalanceDownRateDelta",
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: "uint256",
|
||
|
name: "",
|
||
|
type: "uint256"
|
||
|
}
|
||
|
],
|
||
|
stateMutability: "pure",
|
||
|
type: "function"
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: "address",
|
||
|
name: "_addressesProvider",
|
||
|
type: "address"
|
||
|
}
|
||
|
],
|
||
|
name: "initialize",
|
||
|
outputs: [],
|
||
|
stateMutability: "nonpayable",
|
||
|
type: "function"
|
||
|
}
|
||
|
];
|
||
|
|
||
|
const _bytecode =
|
||
|
"0x60806040526000805534801561001457600080fd5b50610290806100246000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806346f4f8d114610051578063586feb401461006f578063c4d66de814610094578063d6b725ac146100d8575b600080fd5b6100596100f6565b6040518082815260200191505060405180910390f35b610077610109565b604051808381526020018281526020019250505060405180910390f35b6100d6600480360360208110156100aa57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610119565b005b6100e0610209565b6040518082815260200191505060405180910390f35b60006aa56fa5b99019a5c8000000905090565b6000806009610bb8915091509091565b6000610123610212565b9050600160009054906101000a900460ff1680610144575061014361021b565b5b80610150575060005481115b6101a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061022d602e913960400191505060405180910390fd5b6000600160009054906101000a900460ff1615905080156101e25760018060006101000a81548160ff021916908315150217905550816000819055505b8015610204576000600160006101000a81548160ff0219169083151502179055505b505050565b60006019905090565b60006002905090565b600080303b9050600081149150509056fe436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a264697066735822122050334318a13f1846df34a2f3f07056510a562429c75e298756c07808c9722f5264736f6c63430006080033";
|