aave-protocol-v2/types/Ierc20DetailedFactory.ts

239 lines
4.2 KiB
TypeScript
Raw Normal View History

2020-06-03 10:23:21 +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-03 10:23:21 +00:00
2020-07-13 08:54:08 +00:00
import {Ierc20Detailed} from './Ierc20Detailed';
2020-06-03 10:23:21 +00:00
export class Ierc20DetailedFactory {
2020-07-13 08:54:08 +00:00
static connect(address: string, signerOrProvider: Signer | Provider): Ierc20Detailed {
2020-06-03 10:23:21 +00:00
return new Contract(address, _abi, signerOrProvider) as Ierc20Detailed;
}
}
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'owner',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'Approval',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'from',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'to',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'Transfer',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'owner',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'allowance',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'approve',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'account',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'balanceOf',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'decimals',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint8',
name: '',
type: 'uint8',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'name',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'string',
name: '',
type: 'string',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'symbol',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'string',
name: '',
type: 'string',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'totalSupply',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'recipient',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'transfer',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'sender',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'recipient',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'transferFrom',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
},
2020-06-03 10:23:21 +00:00
];