aave-protocol-v2/types/VariableDebtTokenFactory.ts

570 lines
21 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-08-07 17:29:13 +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-08-07 17:29:13 +00:00
import { TransactionOverrides } from ".";
import { VariableDebtToken } from "./VariableDebtToken";
2020-06-30 12:09:28 +00:00
export class VariableDebtTokenFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
2020-08-11 07:36:46 +00:00
deploy(
_pool: string,
_underlyingAsset: string,
_name: string,
_symbol: string,
2020-08-11 07:36:46 +00:00
overrides?: TransactionOverrides
): Promise<VariableDebtToken> {
return super.deploy(
_pool,
_underlyingAsset,
_name,
_symbol,
overrides
) as Promise<VariableDebtToken>;
2020-06-30 12:09:28 +00:00
}
2020-08-11 07:36:46 +00:00
getDeployTransaction(
_pool: string,
_underlyingAsset: string,
_name: string,
_symbol: string,
2020-08-11 07:36:46 +00:00
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(
_pool,
_underlyingAsset,
_name,
_symbol,
overrides
);
2020-06-30 12:09:28 +00:00
}
attach(address: string): VariableDebtToken {
return super.attach(address) as VariableDebtToken;
}
connect(signer: Signer): VariableDebtTokenFactory {
return super.connect(signer) as VariableDebtTokenFactory;
}
2020-08-07 17:29:13 +00:00
static connect(
address: string,
signerOrProvider: Signer | Provider
): VariableDebtToken {
2020-06-30 12:09:28 +00:00
return new Contract(address, _abi, signerOrProvider) as VariableDebtToken;
}
}
const _abi = [
2020-08-11 07:36:46 +00:00
{
inputs: [
{
internalType: "address",
name: "_pool",
type: "address"
},
{
internalType: "address",
name: "_underlyingAsset",
type: "address"
},
{
internalType: "string",
name: "_name",
type: "string"
},
{
internalType: "string",
name: "_symbol",
type: "string"
2020-08-11 07:36:46 +00:00
}
],
stateMutability: "nonpayable",
type: "constructor"
},
2020-06-30 12:09:28 +00:00
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "owner",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "spender",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "value",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "Approval",
type: "event"
2020-06-30 12:09:28 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "from",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "to",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "value",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "Transfer",
type: "event"
2020-06-30 12:09:28 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "_user",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_previousBalance",
type: "uint256"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_currentBalance",
type: "uint256"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_balanceIncrease",
type: "uint256"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_index",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "burnDebt",
type: "event"
2020-06-30 12:09:28 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "_user",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_previousBalance",
type: "uint256"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_currentBalance",
type: "uint256"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_balanceIncrease",
type: "uint256"
2020-06-30 12:09:28 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_index",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "mintDebt",
type: "event"
2020-06-30 12:09:28 +00:00
},
2020-08-17 19:28:50 +00:00
{
inputs: [],
name: "DEBT_TOKEN_REVISION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
2020-06-30 12:09:28 +00:00
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "owner",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "spender",
type: "address"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "allowance",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "view",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "spender",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "approve",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "_user",
type: "address"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "balanceOf",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "view",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "_user",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "burn",
2020-06-30 12:09:28 +00:00
outputs: [],
2020-08-07 17:29:13 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [],
2020-08-07 17:29:13 +00:00
name: "decimals",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "uint8",
name: "",
type: "uint8"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "view",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "spender",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "decreaseAllowance",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-30 12:09:28 +00:00
},
2020-07-03 21:20:02 +00:00
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "_user",
type: "address"
}
2020-07-03 21:20:02 +00:00
],
2020-08-07 17:29:13 +00:00
name: "getUserIndex",
2020-07-03 21:20:02 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-07-03 21:20:02 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "view",
type: "function"
2020-07-03 21:20:02 +00:00
},
2020-06-30 12:09:28 +00:00
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "spender",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "increaseAllowance",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [
2020-08-17 19:28:50 +00:00
{
internalType: "uint8",
name: "_decimals",
type: "uint8"
},
2020-06-30 12:09:28 +00:00
{
2020-08-07 17:29:13 +00:00
internalType: "string",
name: "_name",
type: "string"
2020-06-30 12:09:28 +00:00
},
{
2020-08-07 17:29:13 +00:00
internalType: "string",
name: "_symbol",
type: "string"
}
2020-06-30 12:09:28 +00:00
],
2020-08-17 19:28:50 +00:00
name: "initialize",
2020-06-30 12:09:28 +00:00
outputs: [],
2020-08-07 17:29:13 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "_user",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "mint",
2020-06-30 12:09:28 +00:00
outputs: [],
2020-08-07 17:29:13 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [],
2020-08-07 17:29:13 +00:00
name: "name",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "string",
name: "",
type: "string"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "view",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "_user",
type: "address"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "principalBalanceOf",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "view",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [],
2020-08-07 17:29:13 +00:00
name: "symbol",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "string",
name: "",
type: "string"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "view",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [],
2020-08-07 17:29:13 +00:00
name: "totalSupply",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "view",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "recipient",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "transfer",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "sender",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "recipient",
type: "address"
2020-06-30 12:09:28 +00:00
},
{
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "_amount",
type: "uint256"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "transferFrom",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "bool",
name: "",
type: "bool"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-30 12:09:28 +00:00
},
{
inputs: [],
2020-08-07 17:29:13 +00:00
name: "underlyingAssetAddress",
2020-06-30 12:09:28 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "",
type: "address"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
stateMutability: "view",
type: "function"
}
2020-06-30 12:09:28 +00:00
];
const _bytecode =
"0x60c0604052600080553480156200001557600080fd5b50604051620015b8380380620015b8833981810160405260808110156200003b57600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006757600080fd5b9083019060208201858111156200007d57600080fd5b82516401000000008111828201881017156200009857600080fd5b82525081516020918201929091019080838360005b83811015620000c7578181015183820152602001620000ad565b50505050905090810190601f168015620000f55780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011957600080fd5b9083019060208201858111156200012f57600080fd5b82516401000000008111828201881017156200014a57600080fd5b82525081516020918201929091019080838360005b83811015620001795781810151838201526020016200015f565b50505050905090810190601f168015620001a75780820380516001836020036101000a031916815260200191505b506040525050506001600160601b0319606085811b821660a05284901b1660805281518490849084908490620001e59060359060208501906200020a565b508051620001fb9060369060208401906200020a565b505050505050505050620002af565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200024d57805160ff19168380011785556200027d565b828001600101855582156200027d579182015b828111156200027d57825182559160200191906001019062000260565b506200028b9291506200028f565b5090565b620002ac91905b808211156200028b576000815560010162000296565b90565b60805160601c60a05160601c6112bc620002fc6000398061076052806107ec528061097a5280610b0b5280610bdd52508061081b52806109a95280610a835280610c0c52506112bc6000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806389d1a0fc116100a2578063a9059cbb11610071578063a9059cbb14610455578063b9a7b62214610481578063c634dfaa14610489578063dd62ed3e146104af578063ee9907a4146104dd57610116565b806389d1a0fc146103fd57806395d89b41146104215780639dc29fac14610429578063a457c2d71461037f57610116565b80633118724e116100e95780633118724e14610228578063313ce56714610361578063395093511461037f57806340c10f19146103ab57806370a08231146103d757610116565b806306fdde031461011b578063095ea7b31461019857806318160ddd146101d857806323b872dd146101f2575b600080fd5b610123610503565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101c4600480360360408110156101ae57600080fd5b506001600160a01b038135169060200135610591565b604080519115158252519081900360200190f35b6101e06105d9565b60408051918252519081900360200190f35b6101c46004803603606081101561020857600080fd5b506001600160a01b038135811691602081013590911690604001356105df565b61035f6004803603606081101561023e57600080fd5b60ff823516919081019060408101602082013564010000000081111561026357600080fd5b82018360208201111561027557600080fd5b8035906020019184600183028401116401000000008311171561029757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156102ea57600080fd5b8201836020820111156102fc57600080fd5b8035906020019184600183028401116401000000008311171561031e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610627945050505050565b005b6103696106fd565b6040805160ff9092168252519081900360200190f35b6101c46004803603604081101561039557600080fd5b506001600160a01b038135169060200135610706565b61035f600480360360408110156103c157600080fd5b506001600160a01b038135169060200135610755565b6101e0600480360360208110156103ed57600080fd5b50356001600160a01b0316610924565b610405610a81565b604080516001600160a01b039092168252519081900360200190f35b610123610aa5565b61035f6004803603604081101561043f57600080fd5b506001600160a01b038135169060200135610b00565b6101c46004803603604081101561046b57600080fd5b506001600160a01b0381351690602001356105df565b6101e0610d2a565b6101e06004803603602081101561049f57600080fd5b50356001600160a01b0316610d2f565b6101e0600480360360408110156104c557600080fd5b506001600160a01b0381358116916020013516610706565b6101e0600480360360208110156104f357600080fd5b50356001600160a01b0316610d