aave-protocol-v2/types/FeeProviderFactory.ts

117 lines
5.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 */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { TransactionOverrides } from ".";
import { FeeProvider } from "./FeeProvider";
export class FeeProviderFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides?: TransactionOverrides): Promise<FeeProvider> {
return super.deploy(overrides) as Promise<FeeProvider>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
return super.getDeployTransaction(overrides);
}
attach(address: string): FeeProvider {
return super.attach(address) as FeeProvider;
}
connect(signer: Signer): FeeProviderFactory {
return super.connect(signer) as FeeProviderFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): FeeProvider {
return new Contract(address, _abi, signerOrProvider) as FeeProvider;
}
}
const _abi = [
{
inputs: [],
name: "FEE_PROVIDER_REVISION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_user",
type: "address"
},
{
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: "calculateLoanOriginationFee",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "getLoanOriginationFeePercentage",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_addressesProvider",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "originationFeePercentage",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x60806040526000805534801561001457600080fd5b506105a6806100246000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80639403ed3a1461005c578063b0d73d4e1461007a578063c211f9a414610098578063c4d66de8146100b6578063e563a7d0146100fa575b600080fd5b61006461015c565b6040518082815260200191505060405180910390f35b610082610162565b6040518082815260200191505060405180910390f35b6100a0610167565b6040518082815260200191505060405180910390f35b6100f8600480360360208110156100cc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610171565b005b6101466004803603604081101561011057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061026f565b6040518082815260200191505060405180910390f35b60345481565b600181565b6000603454905090565b600061017b61028e565b9050600160009054906101000a900460ff168061019c575061019b610297565b5b806101a8575060005481115b6101fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180610543602e913960400191505060405180910390fd5b6000600160009054906101000a900460ff16159050801561023a5760018060006101000a81548160ff021916908315150217905550816000819055505b6608e1bc9bf04000603481905550801561026a576000600160006101000a81548160ff0219169083151502179055505b505050565b6000610286603454836102a890919063ffffffff16565b905092915050565b60006001905090565b600080303b90506000811491505090565b60006102fb670de0b6b3a76400006102ed6102cc858761030390919063ffffffff16565b6002670de0b6b3a7640000816102de57fe5b0461038990919063ffffffff16565b61041190919063ffffffff16565b905092915050565b6000808314156103165760009050610383565b600082840290508284828161032757fe5b041461037e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806105226021913960400191505060405180910390fd5b809150505b92915050565b600080828401905083811015610407576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600061045383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061045b565b905092915050565b60008083118290610507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156104cc5780820151818401526020810190506104b1565b50505050905090810190601f1680156104f95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161051357fe5b04905080915050939250505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a264697066735822122089bcac65a55f6d08c407c046f359ea89e8c8a9faef3d94cacf55fb22990f71fb64736f6c63430006080033";