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, ContractFactory, Signer} from 'ethers';
|
|
|
|
import {Provider} from 'ethers/providers';
|
|
|
|
import {UnsignedTransaction} from 'ethers/utils/transaction';
|
2020-06-30 12:09:28 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
import {TransactionOverrides} from '.';
|
|
|
|
import {StableDebtToken} from './StableDebtToken';
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
export class StableDebtTokenFactory extends ContractFactory {
|
|
|
|
constructor(signer?: Signer) {
|
|
|
|
super(_abi, _bytecode, signer);
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy(overrides?: TransactionOverrides): Promise<StableDebtToken> {
|
|
|
|
return super.deploy(overrides) as Promise<StableDebtToken>;
|
|
|
|
}
|
|
|
|
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
|
|
|
|
return super.getDeployTransaction(overrides);
|
|
|
|
}
|
|
|
|
attach(address: string): StableDebtToken {
|
|
|
|
return super.attach(address) as StableDebtToken;
|
|
|
|
}
|
|
|
|
connect(signer: Signer): StableDebtTokenFactory {
|
|
|
|
return super.connect(signer) as StableDebtTokenFactory;
|
|
|
|
}
|
2020-07-13 08:54:08 +00:00
|
|
|
static connect(address: string, signerOrProvider: Signer | Provider): StableDebtToken {
|
2020-06-30 12:09:28 +00:00
|
|
|
return new Contract(address, _abi, signerOrProvider) as StableDebtToken;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
},
|
|
|
|
{
|
|
|
|
anonymous: false,
|
|
|
|
inputs: [
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '_user',
|
|
|
|
type: 'address',
|
2020-06-30 12:09:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_amount',
|
|
|
|
type: 'uint256',
|
2020-06-30 12:09:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_previousBalance',
|
|
|
|
type: 'uint256',
|
2020-06-30 12:09:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_currentBalance',
|
|
|
|
type: 'uint256',
|
2020-06-30 12:09:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_balanceIncrease',
|
|
|
|
type: 'uint256',
|
|
|
|
},
|
2020-06-30 12:09:28 +00:00
|
|
|
],
|
2020-07-13 08:54:08 +00:00
|
|
|
name: 'burnDebt',
|
|
|
|
type: 'event',
|
2020-06-30 12:09:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
anonymous: false,
|
|
|
|
inputs: [
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '_user',
|
|
|
|
type: 'address',
|
2020-06-30 12:09:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_amount',
|
|
|
|
type: 'uint256',
|
2020-06-30 12:09:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_previousBalance',
|
|
|
|
type: 'uint256',
|
2020-06-30 12:09:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_currentBalance',
|
|
|
|
type: 'uint256',
|
2020-06-30 12:09:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_balanceIncrease',
|
|
|
|
type: 'uint256',
|
2020-06-30 12:09:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_newRate',
|
|
|
|
type: 'uint256',
|
|
|
|
},
|
2020-06-30 12:09:28 +00:00
|
|
|
],
|
2020-07-13 08:54:08 +00:00
|
|
|
name: 'mintDebt',
|
|
|
|
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: 'account',
|
|
|
|
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
|
|
|
internalType: 'address',
|
|
|
|
name: '_user',
|
|
|
|
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: 'burn',
|
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: '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
|
|
|
name: 'getAverageStableRate',
|
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
|
|
|
},
|
2020-07-03 21:20:02 +00:00
|
|
|
{
|
|
|
|
inputs: [
|
|
|
|
{
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '_user',
|
|
|
|
type: 'address',
|
|
|
|
},
|
2020-07-03 21:20:02 +00:00
|
|
|
],
|
2020-07-13 08:54:08 +00:00
|
|
|
name: 'getUserLastUpdated',
|
2020-07-03 21:20:02 +00:00
|
|
|
outputs: [
|
|
|
|
{
|
2020-07-13 08:54:08 +00:00
|
|
|
internalType: 'uint40',
|
|
|
|
name: '',
|
|
|
|
type: 'uint40',
|
|
|
|
},
|
2020-07-03 21:20:02 +00:00
|
|
|
],
|
2020-07-13 08:54:08 +00:00
|
|
|
stateMutability: 'view',
|
|
|
|
type: 'function',
|
2020-07-03 21:20:02 +00:00
|
|
|
},
|
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: 'getUserStableRate',
|
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: '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
|
|
|
internalType: 'address',
|
|
|
|
name: '_user',
|
|
|
|
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
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_rate',
|
|
|
|
type: 'uint256',
|
|
|
|
},
|
2020-06-30 12:09:28 +00:00
|
|
|
],
|
2020-07-13 08:54:08 +00:00
|
|
|
name: 'mint',
|
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
|
|
|
];
|
|
|
|
|
|
|
|
const _bytecode =
|
2020-07-13 08:54:08 +00:00
|
|
|
'0x608060405234801561001057600080fd5b506112bc806100206000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806381e75277116100ad578063a457c2d711610071578063a457c2d714610285578063a9059cbb146104be578063c634dfaa146104ea578063dd62ed3e14610510578063e78c9b3b1461053e57610121565b806381e752771461031757806389d1a0fc1461045e57806390f6fcf21461048257806395d89b411461048a5780639dc29fac1461049257610121565b806323b872dd116100f457806323b872dd14610231578063313ce56714610267578063395093511461028557806370a08231146102b157806379ce6b8c146102d757610121565b806306fdde0314610126578063095ea7b3146101a3578063156e29f6146101e357806318160ddd14610217575b600080fd5b61012e610564565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610168578181015183820152602001610150565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101cf600480360360408110156101b957600080fd5b506001600160a01b0381351690602001356105f1565b604080519115158252519081900360200190f35b610215600480360360608110156101f957600080fd5b506001600160a01b038135169060208101359060400135610639565b005b61021f610837565b60408051918252519081900360200190f35b6101cf6004803603606081101561024757600080fd5b506001600160a01b0381358116916020810135909116906040013561083d565b61026f610885565b6040805160ff9092168252519081900360200190f35b6101cf6004803603604081101561029b57600080fd5b506001600160a01b03813516906020013561088e565b61021f600480360360208110156102c757600080fd5b50356001600160a01b03166108dd565b6102fd600480360360208110156102ed57600080fd5b50356001600160a01b0316610987565b6040805164ffffffffff9092168252519081900360200190f35b610215600480360360a081101561032d57600080fd5b81019060208101813564010000000081111561034857600080fd5b82018360208201111561035a57600080fd5b8035906020019184600183028401116401000000008311171561037c57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156103cf57600080fd5b8201836020820111156103e157600080fd5b8035906020019184600183028401116401000000008311171561040357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505060ff8335169350506001600160a01b036020830135811692604001351690506109ac565b610466610a91565b604080516001600160a01b039092168252519081900360200190f35b61021f610aa5565b61012e610aac565b610215600480360360408110156104a857600080fd5b506001600160a01b038135169060200135610b04565b6101cf600480360360408110156104d457600080fd5b506001600160a01b03813516906020013561083d565b61021f6004803603602081101561050057600080fd5b50356001600160a01b0316610c8a565b61021f6004803603604081101561052657600080fd5b506001600160a01b038135811691602001351661088e565b61021f6004803603602081101561055457600080fd5b50356001600160a01b0316610ca5565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105e95780601f106105be576101008083540402835291602001916105e9565b820191906000526020600020905b8154815290600101906020018083116105cc57829003601f168201915b505050505081565b6040805162461bcd60e51b81526020600482015260166024820152751054141493d5905317d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b6004546001600160a01b031633146106825760405162461bcd60e51b81526004018080602001828103825260328152602001806112556032913960400191505060405180910390fd5b61068a61117a565b600080600061069887610cc0565b9250925092506106b386600054610d2e90919063ffffffff16565b84526106be86610d91565b60208501526107406106de6106d9848963ffffffff610d2e16565b610d91565b6020860151610734906106f7908963ffffffff610da716565b61072861070387610d91565b6001600160a01b038d166000908152600760205260409020549063ffffffff610da716565b9063ffffffff610d2e16565b9063ffffffff610deb16565b60408581018290526001600160a01b0389166000908152600760205220908155600101805464ffffffffff19164264ffffffffff1617905583516107be9061078790610d91565b6107346107a1876020015189610da790919063ffffffff16565b6107286107af600054610d91565b6006549063ffffffff610da716565b6006556107cb8787610e23565b60408085015181516001600160a01b038a
|