aave-protocol-v2/types/DebtTokenBaseFactory.ts

352 lines
6.2 KiB
TypeScript
Raw Normal View History

2020-06-30 12:09:28 +00:00
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
2020-07-13 08:54:08 +00:00
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
2020-06-30 12:09:28 +00:00
2020-07-13 08:54:08 +00:00
import {DebtTokenBase} from './DebtTokenBase';
2020-06-30 12:09:28 +00:00
export class DebtTokenBaseFactory {
2020-07-13 08:54:08 +00:00
static connect(address: string, signerOrProvider: Signer | Provider): DebtTokenBase {
2020-06-30 12:09:28 +00:00
return new Contract(address, _abi, signerOrProvider) as DebtTokenBase;
}
}
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'owner',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'Approval',
type: 'event',
2020-06-30 12:09:28 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'from',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'to',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'Transfer',
type: 'event',
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'owner',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'allowance',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'approve',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: '_user',
type: 'address',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'balanceOf',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'decimals',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint8',
name: '',
type: 'uint8',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'subtractedValue',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'decreaseAllowance',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'addedValue',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'increaseAllowance',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'string',
name: '_name',
type: 'string',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'string',
name: '_symbol',
type: 'string',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint8',
name: '_decimals',
type: 'uint8',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: '_underlying',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'contract ILendingPoolAddressesProvider',
name: '_addressesProvider',
type: 'address',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'init',
2020-06-30 12:09:28 +00:00
outputs: [],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'name',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'string',
name: '',
type: 'string',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: '_user',
type: 'address',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'principalBalanceOf',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'symbol',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'string',
name: '',
type: 'string',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'totalSupply',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'recipient',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'transfer',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'sender',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'recipient',
type: 'address',
2020-06-30 12:09:28 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'transferFrom',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-30 12:09:28 +00:00
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'underlyingAssetAddress',
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: '',
type: 'address',
},
2020-06-30 12:09:28 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
},
2020-06-30 12:09:28 +00:00
];