aave-protocol-v2/types/StableDebtTokenFactory.ts

601 lines
22 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 { StableDebtToken } from "./StableDebtToken";
2020-06-30 12:09:28 +00:00
export class StableDebtTokenFactory 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<StableDebtToken> {
return super.deploy(
_pool,
_underlyingAsset,
_name,
_symbol,
overrides
) as Promise<StableDebtToken>;
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): StableDebtToken {
return super.attach(address) as StableDebtToken;
}
connect(signer: Signer): StableDebtTokenFactory {
return super.connect(signer) as StableDebtTokenFactory;
}
2020-08-07 17:29:13 +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 = [
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
],
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: "_newRate",
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: "account",
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
},
{
inputs: [],
2020-08-07 17:29:13 +00:00
name: "getAverageStableRate",
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
},
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: "getUserLastUpdated",
2020-07-03 21:20:02 +00:00
outputs: [
{
2020-08-07 17:29:13 +00:00
internalType: "uint40",
name: "",
type: "uint40"
}
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: "_user",
type: "address"
}
2020-06-30 12:09:28 +00:00
],
2020-08-07 17:29:13 +00:00
name: "getUserStableRate",
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: "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
internalType: "uint256",
name: "_rate",
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 =
"0x60c0604052600080553480156200001557600080fd5b506040516200171638038062001716833981810160405260808110156200003b57600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006757600080fd5b9083019060208201858111156200007d57600080fd5b82516401000000008111828201881017156200009857600080fd5b82525081516020918201929091019080838360005b83811015620000c7578181015183820152602001620000ad565b50505050905090810190601f168015620000f55780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011957600080fd5b9083019060208201858111156200012f57600080fd5b82516401000000008111828201881017156200014a57600080fd5b82525081516020918201929091019080838360005b83811015620001795781810151838201526020016200015f565b50505050905090810190601f168015620001a75780820380516001836020036101000a031916815260200191505b506040525050506001600160601b0319606085811b821660a05284901b1660805281518490849084908490620001e59060359060208501906200020a565b508051620001fb9060369060208401906200020a565b505050505050505050620002af565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200024d57805160ff19168380011785556200027d565b828001600101855582156200027d579182015b828111156200027d57825182559160200191906001019062000260565b506200028b9291506200028f565b5090565b620002ac91905b808211156200028b576000815560010162000296565b90565b60805160601c60a05160601c611438620002de600039806106485280610b5f525080610ad052506114386000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806389d1a0fc116100ad578063a9059cbb11610071578063a9059cbb146104b9578063b9a7b622146104e5578063c634dfaa146104ed578063dd62ed3e14610513578063e78c9b3b146105415761012c565b806389d1a0fc1461045957806390f6fcf21461047d57806395d89b41146104855780639dc29fac1461048d578063a457c2d7146103c75761012c565b80633118724e116100f45780633118724e14610272578063313ce567146103a957806339509351146103c757806370a08231146103f357806379ce6b8c146104195761012c565b806306fdde0314610131578063095ea7b3146101ae578063156e29f6146101ee57806318160ddd1461022257806323b872dd1461023c575b600080fd5b610139610567565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017357818101518382015260200161015b565b50505050905090810190601f1680156101a05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101da600480360360408110156101c457600080fd5b506001600160a01b0381351690602001356105f5565b604080519115158252519081900360200190f35b6102206004803603606081101561020457600080fd5b506001600160a01b03813516906020810135906040013561063d565b005b61022a610883565b60408051918252519081900360200190f35b6101da6004803603606081101561025257600080fd5b506001600160a01b03813581169160208101359091169060400135610889565b6102206004803603606081101561028857600080fd5b60ff82351691908101906040810160208201356401000000008111156102ad57600080fd5b8201836020820111156102bf57600080fd5b803590602001918460018302840111640100000000831117156102e157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561033457600080fd5b82018360208201111561034657600080fd5b8035906020019184600183028401116401000000008311171561036857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506108d1945050505050565b6103b16109a7565b6040805160ff9092168252519081900360200190f35b6101da600480360360408110156103dd57600080fd5b506001600160a01b0381351690602001356109b0565b61022a6004803603602081101561040957600080fd5b50356001600160a01b03166109ff565b61043f6004803603602081101561042f57600080fd5b50356001600160a01b0316610aa9565b6040805164ffffffffff9092168252519081900360200190f35b610461610ace565b604080516001600160a01b039092168252519081900360200190f35b61022a610af2565b610139610af9565b610220600480360360408110156104a357600080fd5b506001600160a01b038135169060200135610b54565b6101da600480360360408110156104cf57600080fd5b506001600160a01b038135169060200135610889565b61022a610d59565b61022a6004803603602081101561050357600080fd5b50356001600160a01b0316610d5e565b61022a6004803603604081