aave-protocol-v2/types/ATokenFactory.ts

899 lines
41 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-17 19:28:50 +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-17 19:28:50 +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-17 19:28:50 +00:00
internalType: "contract LendingPool",
name: "_pool",
type: "address"
},
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_underlyingAssetAddress",
type: "address"
},
2020-06-03 10:23:21 +00:00
{
2020-08-17 19:28:50 +00:00
internalType: "string",
name: "_tokenName",
type: "string"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "string",
name: "_tokenSymbol",
type: "string"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "constructor"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "owner",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "spender",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "value",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "Approval",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_from",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_to",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_value",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_fromBalanceIncrease",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_toBalanceIncrease",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_fromIndex",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_toIndex",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "BalanceTransfer",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_from",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_value",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_fromBalanceIncrease",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_fromIndex",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "BurnOnLiquidation",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_from",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_to",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "InterestRedirectionAllowanceChanged",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_from",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_to",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_redirectedBalance",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_fromBalanceIncrease",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_fromIndex",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "InterestStreamRedirected",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_from",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_value",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_fromBalanceIncrease",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_fromIndex",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "MintOnDeposit",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_from",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_value",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_fromBalanceIncrease",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_fromIndex",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "Redeem",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_targetAddress",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_targetBalanceIncrease",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_targetIndex",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_redirectedBalanceAdded",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_redirectedBalanceRemoved",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "RedirectedBalanceUpdated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "from",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "to",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "value",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "Transfer",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-17 19:28:50 +00:00
name: "ATOKEN_REVISION",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-08-07 17:29:13 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-08-07 17:29:13 +00:00
},
{
inputs: [],
2020-08-17 19:28:50 +00:00
name: "UINT_MAX_VALUE",
2020-08-07 17:29:13 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_to",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "allowInterestRedirectionTo",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "owner",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "spender",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "allowance",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "spender",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "amount",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "approve",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_user",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "balanceOf",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_account",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_value",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "burnOnLiquidation",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-17 19:28:50 +00:00
name: "decimals",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint8",
name: "",
type: "uint8"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "spender",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "decreaseAllowance",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_user",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "getInterestRedirectionAddress",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_user",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "getRedirectedBalance",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_user",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "getUserIndex",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "spender",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "increaseAllowance",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +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-17 19:28:50 +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-17 19:28:50 +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-17 19:28:50 +00:00
internalType: "string",
name: "_tokenSymbol",
type: "string"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "initialize",
2020-08-07 17:29:13 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_user",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
}
2020-08-07 17:29:13 +00:00
],
2020-08-17 19:28:50 +00:00
name: "isTransferAllowed",
2020-08-07 17:29:13 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-08-07 17:29:13 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-08-07 17:29:13 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_user",
type: "address"
2020-07-13 08:54:08 +00:00
},
2020-08-07 17:29:13 +00:00
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "mintOnDeposit",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-17 19:28:50 +00:00
name: "name",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "string",
name: "",
type: "string"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_user",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "principalBalanceOf",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "redeem",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_to",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "redirectInterestStream",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_from",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_to",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "redirectInterestStreamOf",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-17 19:28:50 +00:00
name: "symbol",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "string",
name: "",
type: "string"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-17 19:28:50 +00:00
name: "totalSupply",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "recipient",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "amount",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "transfer",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "sender",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "recipient",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "amount",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "transferFrom",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_from",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_to",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_value",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "transferOnLiquidation",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +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-17 19:28:50 +00:00
internalType: "address",
name: "_target",
type: "address"
2020-07-23 15:18:06 +00:00
},
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
}
2020-07-23 15:18:06 +00:00
],
2020-08-17 19:28:50 +00:00
name: "transferUnderlyingTo",
2020-07-23 15:18:06 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-07-23 15:18:06 +00:00
],
2020-08-17 19:28:50 +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-17 19:28:50 +00:00
name: "underlyingAssetAddress",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
stateMutability: "view",
type: "function"
2020-07-13 08:54:08 +00:00
},
2020-07-23 15:18:06 +00:00
{
2020-08-17 19:28:50 +00:00
stateMutability: "payable",
type: "receive"
}
2020-06-03 10:23:21 +00:00
];
const _bytecode =
"0x60c0604052600080553480156200001557600080fd5b506040516200309e3803806200309e833981810160405260808110156200003b57600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006757600080fd5b9083019060208201858111156200007d57600080fd5b82516401000000008111828201881017156200009857600080fd5b82525081516020918201929091019080838360005b83811015620000c7578181015183820152602001620000ad565b50505050905090810190601f168015620000f55780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011957600080fd5b9083019060208201858111156200012f57600080fd5b82516401000000008111828201881017156200014a57600080fd5b82525081516020918201929091019080838360005b83811015620001795781810151838201526020016200015f565b50505050905090810190601f168015620001a75780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001c79060379060208501906200020e565b508051620001dd9060389060208401906200020e565b50506039805460ff191660121790555050506001600160601b0319606092831b811660a052911b16608052620002b3565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200025157805160ff191683800117855562000281565b8280016001018555821562000281579182015b828111156200028157825182559160200191906001019062000264565b506200028f92915062000293565b5090565b620002b091905b808211156200028f57600081556001016200029a565b90565b60805160601c60a05160601c612d6762000337600039806109e25280610d005280610e335280610f23528061107e52806110ed52806114c0528061159f52806117195280611c8d5280612116525080610a115280610e9c5280610ee75280611051528061111c52806114ef52806115c65280611cbc52806121455250612d676000f3fe6080604052600436106101bb5760003560e01c80634efecaa5116100ec578063a9059cbb1161008a578063db006a7511610064578063db006a751461077d578063dd62ed3e146107a7578063ee9907a4146107e2578063f866c31914610815576101c5565b8063a9059cbb146106fc578063c634dfaa14610735578063d0fc81d214610768576101c5565b806389d1a0fc116100c657806389d1a0fc1461066057806394362e8b1461067557806395d89b41146106ae578063a457c2d7146106c3576101c5565b80634efecaa5146105bb5780635eae177c146105f457806370a082311461062d576101c5565b806323b872dd11610159578063325a9b1311610133578063325a9b13146104bf57806339509351146104fa5780633edb7cb814610533578063445e80101461056c576101c5565b806323b872dd146103785780633118724e146103bb578063313ce56714610494576101c5565b80630e49072d116101955780630e49072d146102c857806312c87c2d146102fd57806318160ddd146103305780631d51e7cf14610345576101c5565b806306fdde03146101ca578063095ea7b3146102545780630bd7ad3b146102a1576101c5565b366101c557600080fd5b600080fd5b3480156101d657600080fd5b506101df610858565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610219578181015183820152602001610201565b50505050905090810190601f1680156102465780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561026057600080fd5b5061028d6004803603604081101561027757600080fd5b506001600160a01b0381351690602001356108ef565b604080519115158252519081900360200190f35b3480156102ad57600080fd5b506102b661090d565b60408051918252519081900360200190f35b3480156102d457600080fd5b506102fb600480360360208110156102eb57600080fd5b50356001600160a01b0316610912565b005b34801561030957600080fd5b506102fb6004803603602081101561032057600080fd5b50356001600160a01b031661091f565b34801561033c57600080fd5b506102b66109be565b34801561035157600080fd5b506102b66004803603602081101561036857600080fd5b50356001600160a01b0316610ac2565b34801561038457600080fd5b5061028d6004803603606081101561039b57600080fd5b506001600160a01b03813581169160208101359091169060400135610ae1565b3480156103c757600080fd5b506102fb600480360360608110156103de57600080fd5b60ff823516919081019060408101602082013564010000000081111561040357600080fd5b82018360208201111561041557600080fd5b8035906020019184600183028401116401000000008311171561043757600080fd5b91939092909160208101903564010000000081111561045557600080fd5b82018360208201111561046757600080fd5b8035906020019184600183028401116401000000008311171561048957600080fd5b509092509050610b6e565b3480156104a057600080fd5b506104a9610c32565b6040805160ff9092168252519081900360200190f35b3480156104cb