aave-protocol-v2/types/VariableDebtTokenFactory.ts

570 lines
21 KiB
TypeScript

/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import { TransactionOverrides } from ".";
import { VariableDebtToken } from "./VariableDebtToken";
export class VariableDebtTokenFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_pool: string,
_underlyingAsset: string,
_name: string,
_symbol: string,
overrides?: TransactionOverrides
): Promise<VariableDebtToken> {
return super.deploy(
_pool,
_underlyingAsset,
_name,
_symbol,
overrides
) as Promise<VariableDebtToken>;
}
getDeployTransaction(
_pool: string,
_underlyingAsset: string,
_name: string,
_symbol: string,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(
_pool,
_underlyingAsset,
_name,
_symbol,
overrides
);
}
attach(address: string): VariableDebtToken {
return super.attach(address) as VariableDebtToken;
}
connect(signer: Signer): VariableDebtTokenFactory {
return super.connect(signer) as VariableDebtTokenFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): VariableDebtToken {
return new Contract(address, _abi, signerOrProvider) as VariableDebtToken;
}
}
const _abi = [
{
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"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "_user",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "_amount",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "_previousBalance",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "_currentBalance",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "_balanceIncrease",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "_index",
type: "uint256"
}
],
name: "burnDebt",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "_user",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "_amount",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "_previousBalance",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "_currentBalance",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "_balanceIncrease",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "_index",
type: "uint256"
}
],
name: "mintDebt",
type: "event"
},
{
inputs: [],
name: "DEBT_TOKEN_REVISION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_user",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_user",
type: "address"
},
{
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: "burn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
],
name: "decreaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_user",
type: "address"
}
],
name: "getUserIndex",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
],
name: "increaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint8",
name: "_decimals",
type: "uint8"
},
{
internalType: "string",
name: "_name",
type: "string"
},
{
internalType: "string",
name: "_symbol",
type: "string"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_user",
type: "address"
},
{
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: "mint",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_user",
type: "address"
}
],
name: "principalBalanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "underlyingAssetAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode =
"0x60c0604052600080553480156200001557600080fd5b50604051620015b8380380620015b8833981810160405260808110156200003b57600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006757600080fd5b9083019060208201858111156200007d57600080fd5b82516401000000008111828201881017156200009857600080fd5b82525081516020918201929091019080838360005b83811015620000c7578181015183820152602001620000ad565b50505050905090810190601f168015620000f55780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011957600080fd5b9083019060208201858111156200012f57600080fd5b82516401000000008111828201881017156200014a57600080fd5b82525081516020918201929091019080838360005b83811015620001795781810151838201526020016200015f565b50505050905090810190601f168015620001a75780820380516001836020036101000a031916815260200191505b506040525050506001600160601b0319606085811b821660a05284901b1660805281518490849084908490620001e59060359060208501906200020a565b508051620001fb9060369060208401906200020a565b505050505050505050620002af565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200024d57805160ff19168380011785556200027d565b828001600101855582156200027d579182015b828111156200027d57825182559160200191906001019062000260565b506200028b9291506200028f565b5090565b620002ac91905b808211156200028b576000815560010162000296565b90565b60805160601c60a05160601c6112bc620002fc6000398061076052806107ec528061097a5280610b0b5280610bdd52508061081b52806109a95280610a835280610c0c52506112bc6000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806389d1a0fc116100a2578063a9059cbb11610071578063a9059cbb14610455578063b9a7b62214610481578063c634dfaa14610489578063dd62ed3e146104af578063ee9907a4146104dd57610116565b806389d1a0fc146103fd57806395d89b41146104215780639dc29fac14610429578063a457c2d71461037f57610116565b80633118724e116100e95780633118724e14610228578063313ce56714610361578063395093511461037f57806340c10f19146103ab57806370a08231146103d757610116565b806306fdde031461011b578063095ea7b31461019857806318160ddd146101d857806323b872dd146101f2575b600080fd5b610123610503565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101c4600480360360408110156101ae57600080fd5b506001600160a01b038135169060200135610591565b604080519115158252519081900360200190f35b6101e06105d9565b60408051918252519081900360200190f35b6101c46004803603606081101561020857600080fd5b506001600160a01b038135811691602081013590911690604001356105df565b61035f6004803603606081101561023e57600080fd5b60ff823516919081019060408101602082013564010000000081111561026357600080fd5b82018360208201111561027557600080fd5b8035906020019184600183028401116401000000008311171561029757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156102ea57600080fd5b8201836020820111156102fc57600080fd5b8035906020019184600183028401116401000000008311171561031e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610627945050505050565b005b6103696106fd565b6040805160ff9092168252519081900360200190f35b6101c46004803603604081101561039557600080fd5b506001600160a01b038135169060200135610706565b61035f600480360360408110156103c157600080fd5b506001600160a01b038135169060200135610755565b6101e0600480360360208110156103ed57600080fd5b50356001600160a01b0316610924565b610405610a81565b604080516001600160a01b039092168252519081900360200190f35b610123610aa5565b61035f6004803603604081101561043f57600080fd5b506001600160a01b038135169060200135610b00565b6101c46004803603604081101561046b57600080fd5b506001600160a01b0381351690602001356105df565b6101e0610d2a565b6101e06004803603602081101561049f57600080fd5b50356001600160a01b0316610d2f565b6101e0600480360360408110156104c557600080fd5b506001600160a01b0381358116916020013516610706565b6101e0600480360360208110156104f357600080fd5b50356001600160a01b0316610d4a565b6035805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105895780601f1061055e57610100808354040283529160200191610589565b820191906000526020600020905b81548152906001019060200180831161056c57829003601f168201915b505050505081565b6040805162461bcd60e51b81526020600482015260166024820152751054141493d5905317d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b60345481565b6040805162461bcd60e51b81526020600482015260166024820152751514905394d1915497d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b6000610631610d65565b60015490915060ff16806106485750610648610d6b565b80610654575060005481115b61068f5760405162461bcd60e51b815260040180806020018281038252602e815260200180611227602e913960400191505060405180910390fd5b60015460ff161580156106ae576001805460ff19168117905560008290555b83516106c190603590602087019061116d565b5082516106d590603690602086019061116d565b506037805460ff191660ff871617905580156106f6576001805460ff191690555b5050505050565b60375460ff1681565b6040805162461bcd60e51b815260206004820152601760248201527f414c4c4f57414e43455f4e4f545f535550504f525445440000000000000000006044820152905160009181900360640190fd5b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107bc5760405162461bcd60e51b81526004018080602001828103825260328152602001806112556032913960400191505060405180910390fd5b60008060006107ca85610d71565b919450925090506107ea856107e5868463ffffffff610de116565b610e44565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663386497fd7f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561088057600080fd5b505afa158015610894573d6000803e3d6000fd5b505050506040513d60208110156108aa57600080fd5b50516001600160a01b03861660008181526039602090815260409182902084905581519283528201879052818101869052606082018590526080820184905260a082019290925290517f94ba3ac5ed6fee7b49ed817c5ee964eed9bd5da6860344f95fc56997e920381d9181900360c00190a15050505050565b6001600160a01b03811660009081526038602052604081205461094957506000610a7c565b610a79610a7460396000856001600160a01b03166001600160a01b0316815260200190815260200160002054610a687f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663386497fd7f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610a0e57600080fd5b505afa158015610a22573d6000803e3d6000fd5b505050506040513d6020811015610a3857600080fd5b50516001600160a01b038716600090815260386020526040902054610a5c90610ea3565b9063ffffffff610eb916565b9063ffffffff610efd16565b610f35565b90505b919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6036805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105895780601f1061055e57610100808354040283529160200191610589565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b675760405162461bcd60e51b81526004018080602001828103825260328152602001806112556032913960400191505060405180910390fd5b6000806000610b7585610d71565b92509250925083811115610b9c57610b97856107e5838763ffffffff610f5516565b610bb5565b610bb585610bb0868463ffffffff610f5516565b610f97565b83821415610bdb576001600160a01b038516600090815260396020526040812055610cb7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663386497fd7f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610c7157600080fd5b505afa158015610c85573d6000803e3d6000fd5b505050506040513d6020811015610c9b57600080fd5b50516001600160a01b0386166000908152603960205260409020555b6001600160a01b038516600081815260396020908152604091829020548251938452908301879052828201869052606083018590526080830184905260a0830152517fc57f977ee00c44453a91f798753002bf12fca5f5ca2ee8db560720f51d4b0f629181900360c00190a15050505050565b600181565b6001600160a01b031660009081526038602052604090205490565b6001600160a01b031660009081526039602052604090205490565b60015b90565b303b1590565b6001600160a01b0381166000908152603860205260408120548190819080610da3575060009250829150819050610dda565b6000610dbe82610db288610924565b9063ffffffff610f5516565b905081610dd1818363ffffffff610de116565b90955093509150505b9193909250565b600082820183811015610e3b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b603454610e57908263ffffffff610de116565b6034556001600160a01b038216600090815260386020526040902054610e83908263ffffffff610de116565b6001600160a01b0390921660009081526038602052604090209190915550565b6000610a7982633b9aca0063ffffffff610fd616565b6000610e3b6b033b2e3c9fd0803ce8000000610ef1610ede868663ffffffff610fd616565b6b019d971e4fe8401e7400000090610de1565b9063ffffffff61102f16565b600060028204610f2d83610ef1610f20876b033b2e3c9fd0803ce8000000610fd6565b849063ffffffff610de116565b949350505050565b6000631dcd6500610f4e633b9aca00610ef18386610de1565b9392505050565b6000610e3b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611071565b603454610faa908263ffffffff610f5516565b6034556001600160a01b038216600090815260386020526040902054610e83908263ffffffff610f5516565b600082610fe557506000610e3e565b82820282848281610ff257fe5b0414610e3b5760405162461bcd60e51b81526004018080602001828103825260218152602001806112066021913960400191505060405180910390fd5b6000610e3b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611108565b600081848411156111005760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156110c55781810151838201526020016110ad565b50505050905090810190601f1680156110f25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836111575760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156110c55781810151838201526020016110ad565b50600083858161116357fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111ae57805160ff19168380011785556111db565b828001600101855582156111db579182015b828111156111db5782518255916020019190600101906111c0565b506111e79291506111eb565b5090565b610d6891905b808211156111e757600081556001016111f156fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65645468652063616c6c6572206f6620746869732066756e6374696f6e206d7573742062652061206c656e64696e6720706f6f6ca26469706673582212209b025ae3240706a18ce1151e902f76bcbe7cb4433504db56ada03e6d653f0dde64736f6c63430006080033";