aave-protocol-v2/types/ATokenFactory.ts

899 lines
42 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-08-10 18:20:08 +00:00
import {Contract, ContractFactory, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import {UnsignedTransaction} from 'ethers/utils/transaction';
2020-06-03 10:23:21 +00:00
2020-08-10 18:20:08 +00:00
import {TransactionOverrides} from '.';
import {AToken} from './AToken';
2020-06-03 10:23:21 +00:00
export class ATokenFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_pool: string,
_underlyingAssetAddress: string,
2020-08-07 17:29:13 +00:00
_tokenName: string,
_tokenSymbol: string,
2020-06-03 10:23:21 +00:00
overrides?: TransactionOverrides
): Promise<AToken> {
return super.deploy(
_pool,
_underlyingAssetAddress,
_tokenName,
_tokenSymbol,
overrides
) as Promise<AToken>;
2020-06-03 10:23:21 +00:00
}
getDeployTransaction(
_pool: string,
_underlyingAssetAddress: string,
2020-08-07 17:29:13 +00:00
_tokenName: string,
_tokenSymbol: string,
2020-06-03 10:23:21 +00:00
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(
_pool,
_underlyingAssetAddress,
_tokenName,
_tokenSymbol,
overrides
);
2020-06-03 10:23:21 +00:00
}
attach(address: string): AToken {
return super.attach(address) as AToken;
}
connect(signer: Signer): ATokenFactory {
return super.connect(signer) as ATokenFactory;
}
static connect(address: string, signerOrProvider: Signer | Provider): AToken {
return new Contract(address, _abi, signerOrProvider) as AToken;
}
}
const _abi = [
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'contract LendingPool',
name: '_pool',
type: 'address',
},
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_underlyingAssetAddress',
type: 'address',
},
2020-06-03 10:23:21 +00:00
{
2020-08-10 18:20:08 +00:00
internalType: 'string',
name: '_tokenName',
type: 'string',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'string',
name: '_tokenSymbol',
type: 'string',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'constructor',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'owner',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'Approval',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_from',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_to',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_value',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_fromBalanceIncrease',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_toBalanceIncrease',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_fromIndex',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_toIndex',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'BalanceTransfer',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_from',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_value',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_fromBalanceIncrease',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_fromIndex',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'BurnOnLiquidation',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_from',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_to',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'InterestRedirectionAllowanceChanged',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_from',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_to',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_redirectedBalance',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_fromBalanceIncrease',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_fromIndex',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'InterestStreamRedirected',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_from',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_value',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_fromBalanceIncrease',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_fromIndex',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'MintOnDeposit',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_from',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_value',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_fromBalanceIncrease',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_fromIndex',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'Redeem',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_targetAddress',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_targetBalanceIncrease',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_targetIndex',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_redirectedBalanceAdded',
type: 'uint256',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_redirectedBalanceRemoved',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'RedirectedBalanceUpdated',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'from',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'to',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'Transfer',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-10 18:20:08 +00:00
name: 'ATOKEN_REVISION',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-08-07 17:29:13 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-08-07 17:29:13 +00:00
},
{
inputs: [],
2020-08-10 18:20:08 +00:00
name: 'UINT_MAX_VALUE',
2020-08-07 17:29:13 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_to',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'allowInterestRedirectionTo',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'owner',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'allowance',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'approve',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_user',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'balanceOf',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_account',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_value',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'burnOnLiquidation',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-10 18:20:08 +00:00
name: 'decimals',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint8',
name: '',
type: 'uint8',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: 'subtractedValue',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'decreaseAllowance',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_user',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'getInterestRedirectionAddress',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_user',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'getRedirectedBalance',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_user',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'getUserIndex',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: 'addedValue',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'increaseAllowance',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
2020-08-07 17:29:13 +00:00
{
2020-08-10 18:20:08 +00:00
internalType: 'uint8',
name: '_underlyingAssetDecimals',
type: 'uint8',
2020-07-13 08:54:08 +00:00
},
2020-06-03 10:23:21 +00:00
{
2020-08-10 18:20:08 +00:00
internalType: 'string',
name: '_tokenName',
type: 'string',
2020-07-13 08:54:08 +00:00
},
2020-08-07 17:29:13 +00:00
{
2020-08-10 18:20:08 +00:00
internalType: 'string',
name: '_tokenSymbol',
type: 'string',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'initialize',
2020-08-07 17:29:13 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_user',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
2020-08-07 17:29:13 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'isTransferAllowed',
2020-08-07 17:29:13 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-08-07 17:29:13 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-08-07 17:29:13 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_account',
type: 'address',
2020-07-13 08:54:08 +00:00
},
2020-08-07 17:29:13 +00:00
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'mintOnDeposit',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-10 18:20:08 +00:00
name: 'name',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'string',
name: '',
type: 'string',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_user',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'principalBalanceOf',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'redeem',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_to',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'redirectInterestStream',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_from',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_to',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'redirectInterestStreamOf',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-10 18:20:08 +00:00
name: 'symbol',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'string',
name: '',
type: 'string',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-10 18:20:08 +00:00
name: 'totalSupply',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'recipient',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'transfer',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'sender',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'recipient',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'transferFrom',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_from',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_to',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_value',
type: 'uint256',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'transferOnLiquidation',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
2020-07-23 15:18:06 +00:00
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_target',
type: 'address',
2020-07-23 15:18:06 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
2020-07-23 15:18:06 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'transferUnderlyingTo',
2020-07-23 15:18:06 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
2020-07-23 15:18:06 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-07-23 15:18:06 +00:00
},
2020-06-03 10:23:21 +00:00
{
inputs: [],
2020-08-10 18:20:08 +00:00
name: 'underlyingAssetAddress',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'view',
type: 'function',
2020-07-13 08:54:08 +00:00
},
2020-07-23 15:18:06 +00:00
{
2020-08-10 18:20:08 +00:00
stateMutability: 'payable',
type: 'receive',
},
2020-06-03 10:23:21 +00:00
];
const _bytecode =
2020-08-10 18:20:08 +00:00
'0x60c0604052600080553480156200001557600080fd5b506040516200341338038062003413833981810160405260808110156200003b57600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006757600080fd5b9083019060208201858111156200007d57600080fd5b82516401000000008111828201881017156200009857600080fd5b82525081516020918201929091019080838360005b83811015620000c7578181015183820152602001620000ad565b50505050905090810190601f168015620000f55780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011957600080fd5b9083019060208201858111156200012f57600080fd5b82516401000000008111828201881017156200014a57600080fd5b82525081516020918201929091019080838360005b83811015620001795781810151838201526020016200015f565b50505050905090810190601f168015620001a75780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001c79060379060208501906200020e565b508051620001dd9060389060208401906200020e565b50506039805460ff191660121790555050506001600160601b0319606092831b811660a052911b16608052620002b3565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200025157805160ff191683800117855562000281565b8280016001018555821562000281579182015b828111156200028157825182559160200191906001019062000264565b506200028f92915062000293565b5090565b620002b091905b808211156200028f57600081556001016200029a565b90565b60805160601c60a05160601c6130eb6200032860003980610a705280610e165280610f495280611039528061119452806114c5528061162d5280611f4452806124525250806101c55280610a9f5280610fb25280610ffd528061116752806114ec5280611f73528061248152506130eb6000f3fe6080604052600436106101bb5760003560e01c80634efecaa5116100ec578063a9059cbb1161008a578063db006a7511610064578063db006a75146107e5578063dd62ed3e1461080f578063ee9907a41461084a578063f866c3191461087d5761022f565b8063a9059cbb14610764578063c634dfaa1461079d578063d0fc81d2146107d05761022f565b806389d1a0fc116100c657806389d1a0fc146106c857806394362e8b146106dd57806395d89b4114610716578063a457c2d71461072b5761022f565b80634efecaa5146106235780635eae177c1461065c57806370a08231146106955761022f565b806323b872dd11610159578063325a9b1311610133578063325a9b131461052757806339509351146105625780633edb7cb81461059b578063445e8010146105d45761022f565b806323b872dd146103e05780633118724e14610423578063313ce567146104fc5761022f565b80630e49072d116101955780630e49072d1461033257806312c87c2d1461036557806318160ddd146103985780631d51e7cf146103ad5761022f565b806306fdde0314610234578063095ea7b3146102be5780630bd7ad3b1461030b5761022f565b3661022f576101f27f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166108c0565b61022d5760405162461bcd60e51b8152600401808060200182810382526039815260200180612e206039913960400191505060405180910390fd5b005b600080fd5b34801561024057600080fd5b506102496108e6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028357818101518382015260200161026b565b50505050905090810190601f1680156102b05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102ca57600080fd5b506102f7600480360360408110156102e157600080fd5b506001600160a01b03813516906020013561097d565b604080519115158252519081900360200190f35b34801561031757600080fd5b5061032061099b565b60408051918252519081900360200190f35b34801561033e57600080fd5b5061022d6004803603602081101561035557600080fd5b50356001600160a01b03166109a0565b34801561037157600080fd5b5061022d6004803603602081101561038857600080fd5b50356001600160a01b03166109ad565b3480156103a457600080fd5b50610320610a4c565b3480156103b957600080fd5b50610320600480360360208110156103d057600080fd5b50356001600160a01b0316610b50565b3480156103ec57600080fd5b506102f76004803603606081101561040357600080fd5b506001600160a01b03813581169160208101359091169060400135610b6b565b34801561042f57600080fd5b5061022d6004803603606081101561044657600080fd5b60ff823516919081019060408101602082013564010000000081111561046b57600080fd5b82018360208201111561047d57600080fd5b8035906020019184600183028401116401000000008311171561049f57600080fd5b9193909290916020810190356401000000008111156104bd57600080fd5b8201836020820111156104cf57600080fd5b8035906020