Updated setup script

This commit is contained in:
emilio 2020-08-07 19:29:13 +02:00
parent a0bf692373
commit cf3f68653f
231 changed files with 20600 additions and 14794 deletions

View File

@ -10,6 +10,7 @@ usePlugin('buidler-typechain');
usePlugin('solidity-coverage');
usePlugin('@nomiclabs/buidler-waffle');
usePlugin('@nomiclabs/buidler-etherscan');
usePlugin('buidler-gas-reporter');
['misc'].forEach((folder) => {
const tasksPath = path.join(__dirname, 'tasks', folder);

View File

@ -6,7 +6,9 @@ import {LendingPoolAddressesProvider} from '../configuration/LendingPoolAddresse
import {LendingPool} from '../lendingpool/LendingPool.sol';
import {WadRayMath} from '../libraries/WadRayMath.sol';
import {UniversalERC20} from '../libraries/UniversalERC20.sol';
import {VersionedInitializable} from '../libraries/openzeppelin-upgradeability/VersionedInitializable.sol';
import {
VersionedInitializable
} from '../libraries/openzeppelin-upgradeability/VersionedInitializable.sol';
import '@nomiclabs/buidler/console.sol';
@ -16,7 +18,7 @@ import '@nomiclabs/buidler/console.sol';
* @dev Implementation of the interest bearing token for the DLP protocol.
* @author Aave
*/
contract AToken is VersionedInitializable, ERC20 {
contract AToken is VersionedInitializable, ERC20 {
using WadRayMath for uint256;
using UniversalERC20 for ERC20;
@ -141,8 +143,10 @@ contract AToken is VersionedInitializable, ERC20 {
_;
}
constructor() public ERC20(_name, _symbol) {
}
constructor(string memory _tokenName, string memory _tokenSymbol)
public
ERC20(_tokenName, _tokenSymbol)
{}
function getRevision() internal override pure returns (uint256) {
return ATOKEN_REVISION;
@ -155,17 +159,14 @@ contract AToken is VersionedInitializable, ERC20 {
string calldata _tokenName,
string calldata _tokenSymbol
) external initializer {
_name = _tokenName;
_symbol = _tokenSymbol;
_setupDecimals(_underlyingAssetDecimals);
addressesProvider = _addressesProvider;
pool = LendingPool(payable(addressesProvider.getLendingPool()));
underlyingAssetAddress = _underlyingAsset;
}
/**
* @notice ERC20 implementation internal function backing transfer() and transferFrom()
* @dev validates the transfer before allowing it. NOTE: This is not standard ERC20 behavior

View File

@ -5,7 +5,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x613b8Aa5BAFB5c903B8AFF84307C3D8eb6a09C9D",
"address": "0x35A2624888e207e4B3434E9a9E250bF6Ee68FeA3",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -15,7 +15,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x832517B00deEa0cD9780C94837D92b2b282C75F5",
"address": "0x1f569c307949a908A4b8Ff7453a88Ca0b8D8df13",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -25,7 +25,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x05D70e69C53E9A097E741976096ca16A4ec44Bdd",
"address": "0x0766c9592a8686CAB0081b4f35449462c6e82F11",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -34,7 +34,7 @@
"address": "0x852e3718A320aD93Ad8692E8D663d247e4c1b400"
},
"localhost": {
"address": "0x7Ca3264502Ae135bc346Ddde379D11f72a210Df2"
"address": "0x635138E91E191ec54DE7173e24c7E6C1EB4C6739"
}
},
"LendingPoolParametersProvider": {
@ -52,7 +52,7 @@
"address": "0xA10958a24032283FbE2D23cedf264d6eC9411CBA"
},
"localhost": {
"address": "0x1c9aA18db4804bD3E9788735Ac12c930a4cFAF29"
"address": "0x598cF9a680a3bac08BD271E782F40339B193f84B"
}
},
"LendingPoolDataProvider": {
@ -65,7 +65,7 @@
"address": "0x2C4603396dE2F08642354A3A102760827FfFe113"
},
"localhost": {
"address": "0x2C29ed4a90805792c56B99EFf249e28b8b3a5d36"
"address": "0x0aA65C476219C5507F920252A84a766fBA750f7d"
}
},
"PriceOracle": {
@ -74,7 +74,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0xE825E4621E95a5AE37119617bfC0165724c51762",
"address": "0xE0fC5Da76E489677078d00d3f321e9777c76381B",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -84,7 +84,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0xF1d2bdD7CFc305eb550895DdADb55b7fBA2af1E5",
"address": "0xDCAB55FBf59a253B3Fb0CD2Ba45F0c02413dF375",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -94,7 +94,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x84daCdA0B4802B6Aa8661F266A48BE4F54817119",
"address": "0x293965D84cE150Cbf5F36332ba47e997e2763bf2",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -104,17 +104,17 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x70a259a0efDF51B073497d3723630ea8ae11B32a",
"address": "0x7549d6bb05083613eF87b723595553dCc570Ca21",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
"DefaultReserveInterestRateStrategy": {
"buidlerevm": {
"address": "0x2dD8146Ad2138ac61F93E549f8F917927B47E28a",
"address": "0x09d7cb7a0606a7f10DC8a37b3e0E420F39f0FAF1",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x5737D6Be516831d7E9596e4458583c17B2662b25",
"address": "0xA106BFbDB5C925A04358bE49db41aDd308a1458f",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -146,37 +146,37 @@
},
"TokenDistributor": {
"buidlerevm": {
"address": "0xC5f7aC6895DcB76877E71db756433fB0E0478FEB"
"address": "0x9D37fB22EA7d655f12E68DABBf6B6585A00774C3"
},
"localhost": {
"address": "0x07C1cd8182AAda58009D3b547295A64046679666"
"address": "0x8E2a05B9Abd9a2a3046879074d7D136213AaDCb9"
}
},
"InitializableAdminUpgradeabilityProxy": {
"buidlerevm": {
"address": "0xC5f7aC6895DcB76877E71db756433fB0E0478FEB",
"address": "0x9D37fB22EA7d655f12E68DABBf6B6585A00774C3",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x07C1cd8182AAda58009D3b547295A64046679666",
"address": "0x8E2a05B9Abd9a2a3046879074d7D136213AaDCb9",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
"MockFlashLoanReceiver": {
"buidlerevm": {
"address": "0x24E420B42971372F060a93129846761F354Bc50B"
"address": "0x22058276Dd278bD037591805E62E797012d666f6"
},
"localhost": {
"address": "0xbCC0e6a5385C3a8A2d40Aa079F3E8d40f09Ae48d"
"address": "0x8EA6693b23224fFD1C2AfbB161f15b398F8cB5FA"
}
},
"WalletBalanceProvider": {
"buidlerevm": {
"address": "0x285671fF5C8172dE63cF5eA264B2e827aDBC6740",
"address": "0x6D3540a9F1a769bfd91A4A33169a8361aa82dC0F",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x04297834784DcB98Df9fE232DE5a97D2569c8aDd",
"address": "0xFb017937aB8EABb9506A03E6c76DcA99C6D095c7",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -186,7 +186,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x352BD2c9A3a019aC10F7fc81dB119D4a325117DE",
"address": "0xD5A0587aAEB195028909E98930B391dFB3f9F589",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -196,7 +196,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x5Cccb7f34cB05938c29442815Cc331AA6492B723",
"address": "0xaD3AdbC18E4AD090034A6C74Eda61f4310dce313",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -206,7 +206,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x7457b9406832EEa09864dcaAB82Ae3c134f9A975",
"address": "0x25a88BbA9c8D2a46e3Ff4bFe98712DF7A1044fB6",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -216,7 +216,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0xdB97f0f4a431B70Ec854b270d56e1ECa25f3113b",
"address": "0x16d1802cd7cfcb67955BBBa26bAae1cE559B5F5B",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -226,7 +226,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x8A8dC28F6C1874f573FCBd921f1fb24301caB913",
"address": "0xE58d8c88f5A670f16BE8F7864707170F43e943A6",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -236,7 +236,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x8bAE0F999E4A82191F7536E8a5e2De0412588d86",
"address": "0xfdAF4f6e47e854c05bE158993d32872e784F0502",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -246,7 +246,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0xa61F8cfACa566F8F4303cE283e9535934A8CDdD5",
"address": "0x92edC13A10036A3C50396f2B63148a3e9a8D589e",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -256,7 +256,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0xb0f645D86C1436502f45229292b117e45e1a2bC4",
"address": "0xE5C277cDb7E10372918Ac54Ce54022910A24FE88",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -266,7 +266,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x12c2160C86B21FFF1c708F77d5263CF192f2B661",
"address": "0xF5742a599a0F4520089cbf2EBBa66Bb4F471B85F",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -276,7 +276,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x155a2e68CB8Db7B1cB9066E717aE93e65A2f93EF",
"address": "0x380EF388e13D8cAdeACef6eF682C7B7D85865076",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -286,7 +286,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x94Bc72DCbdc296991dc61555e996C447cAD60369",
"address": "0xC89577DED8441e52C17C13D527b85b225C5c8311",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -296,7 +296,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x346fdD507f157a74e63a73ACf371B5bDf562De67",
"address": "0xD4b06774A717Ff5A7c20c8712e31c6BbfFcb1F01",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -306,7 +306,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0xCF8eF26FE68C88Fc899B1F40E48688F6C6FFf9E1",
"address": "0xbe66dC9DFEe580ED968403e35dF7b5159f873df8",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -316,7 +316,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x90C17f3141263b2942E843c83102ba8cD18956B7",
"address": "0x93AfC6Df4bB8F62F2493B19e577f8382c0BA9EBC",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -326,7 +326,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x58C7b3Aa19a4EEb3505564ab45c6fd16442A85ec",
"address": "0x75Ded61646B5945BdDd0CD9a9Db7c8288DA6F810",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -336,7 +336,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0xa25fA46698beE81E33e0Dd691849945B0B417ea4",
"address": "0xdE7c40e675bF1aA45c18cCbaEb9662B16b0Ddf7E",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -346,7 +346,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0xEec014eff3DBeE5a3100fb6a9128cF7c40c3e782",
"address": "0xEcb928A3c079a1696Aa5244779eEc3dE1717fACd",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -356,7 +356,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x4BD61457B65687B555fb86B8038Ffb5779970A3C",
"address": "0xDFbeeed692AA81E7f86E72F7ACbEA2A1C4d63544",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -366,7 +366,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x2114d96A6eC73Be7151938D0e7c74ec566cF0153",
"address": "0x5191aA68c7dB195181Dd2441dBE23A48EA24b040",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -376,7 +376,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x294c3d68F340883C44d50daD4Ec6737327f2f993",
"address": "0x8F9422aa37215c8b3D1Ea1674138107F84D68F26",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -386,7 +386,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x22e57AEFA0f0f5aF3f0933EBB08B2FD5E1f52389",
"address": "0xa89E20284Bd638F31b0011D0fC754Fc9d2fa73e3",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -396,7 +396,7 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0xbc80b4b4D77Df85898DCA2AbB615edC353039d2b",
"address": "0xaA935993065F2dDB1d13623B1941C7AEE3A60F23",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
@ -406,35 +406,45 @@
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x613b8Aa5BAFB5c903B8AFF84307C3D8eb6a09C9D",
"address": "0x35A2624888e207e4B3434E9a9E250bF6Ee68FeA3",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
"AaveProtocolTestHelpers": {
"buidlerevm": {
"address": "0xb840b4fe440b5E26e1840cd2D6320FAda1C0ca5d"
"address": "0x2ff3F0e437D7843a8100ac876A766081F4c4649D"
},
"localhost": {
"address": "0x40Bf3Ca3a1EFdCDFf6BaE86Cf92EC5a46E629556"
"address": "0xc6b70Da02A963fCA0016C7548E1f43511EFe11eC"
}
},
"StableDebtToken": {
"buidlerevm": {
"address": "0xBdFE372Bb5a0db801A1a17796EC5cfF2F30A714C",
"address": "0x5Ea694f66BD0CBd08FC7967af01b67Dcef68cC5c",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x9088A0A8f3e0906Fc7b1872407C8aB3EDF6D8F11",
"address": "0x9c91aEaD98b1354C7B0EAfb8ff539d0796c79894",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
"VariableDebtToken": {
"buidlerevm": {
"address": "0xD325d114a728C2114Bd33Ad47152f790f2a29c5c",
"address": "0xd4e934C2749CA8C1618659D02E7B28B074bf4df7",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x078fd0F0A179084DB4FF90399518Fd14DD006b6c",
"address": "0x145b7B6368Df63e7F3497b0A948B30fC1A4d5E55",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
},
"AToken": {
"buidlerevm": {
"address": "0x8280D40C9E9F04229D2435EAad6e0011309ce81B",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
},
"localhost": {
"address": "0x142bFA0788F794d3D0aE1EC36373ee034aABC11f",
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
}
}

View File

@ -286,6 +286,16 @@ export const deployVariableDebtToken = async ([
return token;
};
export const deployGenericAToken = async ([
name,
symbol
]: [string, string]) => {
const token = await deployContract<AToken>(eContractid.AToken, [name, symbol]);
return token;
};
export const getLendingPoolAddressesProvider = async (address?: tEthereumAddress) => {
return await getContract<LendingPoolAddressesProvider>(
eContractid.LendingPoolAddressesProvider,

View File

@ -26,6 +26,7 @@ import {
registerContractInJsonDb,
deployStableDebtToken,
deployVariableDebtToken,
deployGenericAToken
} from '../helpers/contracts-helpers';
import {LendingPoolAddressesProvider} from '../types/LendingPoolAddressesProvider';
import {Wallet, ContractTransaction, ethers, Signer} from 'ethers';
@ -239,6 +240,12 @@ const initReserves = async (
lendingPoolAddressesProvider.address,
]);
const aToken = await deployGenericAToken([
`Aave interest bearing ${assetSymbol}`,
`a${assetSymbol}`
]);
if (process.env.POOL === AavePools.secondary) {
if (assetSymbol.search('UNI') === -1) {
assetSymbol = `Uni${assetSymbol}`;
@ -249,8 +256,7 @@ const initReserves = async (
await lendingPoolConfigurator.initReserveWithData(
tokenAddress,
`Aave Interest bearing ${assetSymbol}`,
`a${assetSymbol}`,
aToken.address,
stableDebtToken.address,
variableDebtToken.address,
reserveDecimals,

2638
tsts.log Normal file

File diff suppressed because it is too large Load Diff

167
types/AToken.d.ts vendored
View File

@ -1,14 +1,20 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface ATokenInterface extends Interface {
functions: {
UINT_MAX_VALUE: TypedFunctionDescription<{encode([]: []): string}>;
ATOKEN_REVISION: TypedFunctionDescription<{ encode([]: []): string }>;
UINT_MAX_VALUE: TypedFunctionDescription<{ encode([]: []): string }>;
allowInterestRedirectionTo: TypedFunctionDescription<{
encode([_to]: [string]): string;
@ -22,13 +28,13 @@ interface ATokenInterface extends Interface {
encode([spender, amount]: [string, BigNumberish]): string;
}>;
balanceOf: TypedFunctionDescription<{encode([_user]: [string]): string}>;
balanceOf: TypedFunctionDescription<{ encode([_user]: [string]): string }>;
burnOnLiquidation: TypedFunctionDescription<{
encode([_account, _value]: [string, BigNumberish]): string;
}>;
decimals: TypedFunctionDescription<{encode([]: []): string}>;
decimals: TypedFunctionDescription<{ encode([]: []): string }>;
decreaseAllowance: TypedFunctionDescription<{
encode([spender, subtractedValue]: [string, BigNumberish]): string;
@ -50,6 +56,16 @@ interface ATokenInterface extends Interface {
encode([spender, addedValue]: [string, BigNumberish]): string;
}>;
initialize: TypedFunctionDescription<{
encode([
_addressesProvider,
_underlyingAsset,
_underlyingAssetDecimals,
_tokenName,
_tokenSymbol
]: [string, string, BigNumberish, string, string]): string;
}>;
isTransferAllowed: TypedFunctionDescription<{
encode([_user, _amount]: [string, BigNumberish]): string;
}>;
@ -58,7 +74,7 @@ interface ATokenInterface extends Interface {
encode([_account, _amount]: [string, BigNumberish]): string;
}>;
name: TypedFunctionDescription<{encode([]: []): string}>;
name: TypedFunctionDescription<{ encode([]: []): string }>;
principalBalanceOf: TypedFunctionDescription<{
encode([_user]: [string]): string;
@ -76,16 +92,20 @@ interface ATokenInterface extends Interface {
encode([_from, _to]: [string, string]): string;
}>;
symbol: TypedFunctionDescription<{encode([]: []): string}>;
symbol: TypedFunctionDescription<{ encode([]: []): string }>;
totalSupply: TypedFunctionDescription<{encode([]: []): string}>;
totalSupply: TypedFunctionDescription<{ encode([]: []): string }>;
transfer: TypedFunctionDescription<{
encode([recipient, amount]: [string, BigNumberish]): string;
}>;
transferFrom: TypedFunctionDescription<{
encode([sender, recipient, amount]: [string, string, BigNumberish]): string;
encode([sender, recipient, amount]: [
string,
string,
BigNumberish
]): string;
}>;
transferOnLiquidation: TypedFunctionDescription<{
@ -103,7 +123,11 @@ interface ATokenInterface extends Interface {
events: {
Approval: TypedEventDescription<{
encodeTopics([owner, spender, value]: [string | null, string | null, null]): string[];
encodeTopics([owner, spender, value]: [
string | null,
string | null,
null
]): string[];
}>;
BalanceTransfer: TypedEventDescription<{
@ -114,8 +138,16 @@ interface ATokenInterface extends Interface {
_fromBalanceIncrease,
_toBalanceIncrease,
_fromIndex,
_toIndex,
]: [string | null, string | null, null, null, null, null, null]): string[];
_toIndex
]: [
string | null,
string | null,
null,
null,
null,
null,
null
]): string[];
}>;
BurnOnLiquidation: TypedEventDescription<{
@ -132,13 +164,13 @@ interface ATokenInterface extends Interface {
}>;
InterestStreamRedirected: TypedEventDescription<{
encodeTopics([_from, _to, _redirectedBalance, _fromBalanceIncrease, _fromIndex]: [
string | null,
string | null,
null,
null,
null
]): string[];
encodeTopics([
_from,
_to,
_redirectedBalance,
_fromBalanceIncrease,
_fromIndex
]: [string | null, string | null, null, null, null]): string[];
}>;
MintOnDeposit: TypedEventDescription<{
@ -165,12 +197,16 @@ interface ATokenInterface extends Interface {
_targetBalanceIncrease,
_targetIndex,
_redirectedBalanceAdded,
_redirectedBalanceRemoved,
_redirectedBalanceRemoved
]: [string | null, null, null, null, null]): string[];
}>;
Transfer: TypedEventDescription<{
encodeTopics([from, to, value]: [string | null, string | null, null]): string[];
encodeTopics([from, to, value]: [
string | null,
string | null,
null
]): string[];
}>;
};
}
@ -189,6 +225,8 @@ export class AToken extends Contract {
interface: ATokenInterface;
functions: {
ATOKEN_REVISION(): Promise<BigNumber>;
UINT_MAX_VALUE(): Promise<BigNumber>;
allowInterestRedirectionTo(
@ -232,6 +270,15 @@ export class AToken extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
initialize(
_addressesProvider: string,
_underlyingAsset: string,
_underlyingAssetDecimals: BigNumberish,
_tokenName: string,
_tokenSymbol: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
isTransferAllowed(_user: string, _amount: BigNumberish): Promise<boolean>;
mintOnDeposit(
@ -244,7 +291,10 @@ export class AToken extends Contract {
principalBalanceOf(_user: string): Promise<BigNumber>;
redeem(_amount: BigNumberish, overrides?: TransactionOverrides): Promise<ContractTransaction>;
redeem(
_amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
redirectInterestStream(
_to: string,
@ -290,6 +340,8 @@ export class AToken extends Contract {
underlyingAssetAddress(): Promise<string>;
};
ATOKEN_REVISION(): Promise<BigNumber>;
UINT_MAX_VALUE(): Promise<BigNumber>;
allowInterestRedirectionTo(
@ -333,6 +385,15 @@ export class AToken extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
initialize(
_addressesProvider: string,
_underlyingAsset: string,
_underlyingAssetDecimals: BigNumberish,
_tokenName: string,
_tokenSymbol: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
isTransferAllowed(_user: string, _amount: BigNumberish): Promise<boolean>;
mintOnDeposit(
@ -345,7 +406,10 @@ export class AToken extends Contract {
principalBalanceOf(_user: string): Promise<BigNumber>;
redeem(_amount: BigNumberish, overrides?: TransactionOverrides): Promise<ContractTransaction>;
redeem(
_amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
redirectInterestStream(
_to: string,
@ -391,7 +455,11 @@ export class AToken extends Contract {
underlyingAssetAddress(): Promise<string>;
filters: {
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
Approval(
owner: string | null,
spender: string | null,
value: null
): EventFilter;
BalanceTransfer(
_from: string | null,
@ -410,7 +478,10 @@ export class AToken extends Contract {
_fromIndex: null
): EventFilter;
InterestRedirectionAllowanceChanged(_from: string | null, _to: string | null): EventFilter;
InterestRedirectionAllowanceChanged(
_from: string | null,
_to: string | null
): EventFilter;
InterestStreamRedirected(
_from: string | null,
@ -446,6 +517,8 @@ export class AToken extends Contract {
};
estimate: {
ATOKEN_REVISION(): Promise<BigNumber>;
UINT_MAX_VALUE(): Promise<BigNumber>;
allowInterestRedirectionTo(_to: string): Promise<BigNumber>;
@ -456,11 +529,17 @@ export class AToken extends Contract {
balanceOf(_user: string): Promise<BigNumber>;
burnOnLiquidation(_account: string, _value: BigNumberish): Promise<BigNumber>;
burnOnLiquidation(
_account: string,
_value: BigNumberish
): Promise<BigNumber>;
decimals(): Promise<BigNumber>;
decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise<BigNumber>;
decreaseAllowance(
spender: string,
subtractedValue: BigNumberish
): Promise<BigNumber>;
getInterestRedirectionAddress(_user: string): Promise<BigNumber>;
@ -468,7 +547,18 @@ export class AToken extends Contract {
getUserIndex(_user: string): Promise<BigNumber>;
increaseAllowance(spender: string, addedValue: BigNumberish): Promise<BigNumber>;
increaseAllowance(
spender: string,
addedValue: BigNumberish
): Promise<BigNumber>;
initialize(
_addressesProvider: string,
_underlyingAsset: string,
_underlyingAssetDecimals: BigNumberish,
_tokenName: string,
_tokenSymbol: string
): Promise<BigNumber>;
isTransferAllowed(_user: string, _amount: BigNumberish): Promise<BigNumber>;
@ -490,11 +580,22 @@ export class AToken extends Contract {
transfer(recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish
): Promise<BigNumber>;
transferOnLiquidation(_from: string, _to: string, _value: BigNumberish): Promise<BigNumber>;
transferOnLiquidation(
_from: string,
_to: string,
_value: BigNumberish
): Promise<BigNumber>;
transferUnderlyingTo(_target: string, _amount: BigNumberish): Promise<BigNumber>;
transferUnderlyingTo(
_target: string,
_amount: BigNumberish
): Promise<BigNumber>;
underlyingAssetAddress(): Promise<BigNumber>;
};

File diff suppressed because one or more lines are too long

View File

@ -1,31 +1,43 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface AaveProtocolTestHelpersInterface extends Interface {
functions: {
ADDRESSES_PROVIDER: TypedFunctionDescription<{encode([]: []): string}>;
ADDRESSES_PROVIDER: TypedFunctionDescription<{ encode([]: []): string }>;
getAllATokens: TypedFunctionDescription<{encode([]: []): string}>;
getAllATokens: TypedFunctionDescription<{ encode([]: []): string }>;
getAllReservesTokens: TypedFunctionDescription<{encode([]: []): string}>;
getAllReservesTokens: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {};
}
export class AaveProtocolTestHelpers extends Contract {
connect(signerOrProvider: Signer | Provider | string): AaveProtocolTestHelpers;
connect(
signerOrProvider: Signer | Provider | string
): AaveProtocolTestHelpers;
attach(addressOrName: string): AaveProtocolTestHelpers;
deployed(): Promise<AaveProtocolTestHelpers>;
on(event: EventFilter | string, listener: Listener): AaveProtocolTestHelpers;
once(event: EventFilter | string, listener: Listener): AaveProtocolTestHelpers;
addListener(eventName: EventFilter | string, listener: Listener): AaveProtocolTestHelpers;
once(
event: EventFilter | string,
listener: Listener
): AaveProtocolTestHelpers;
addListener(
eventName: EventFilter | string,
listener: Listener
): AaveProtocolTestHelpers;
removeAllListeners(eventName: EventFilter | string): AaveProtocolTestHelpers;
removeListener(eventName: any, listener: Listener): AaveProtocolTestHelpers;
@ -34,16 +46,24 @@ export class AaveProtocolTestHelpers extends Contract {
functions: {
ADDRESSES_PROVIDER(): Promise<string>;
getAllATokens(): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
getAllATokens(): Promise<
{ symbol: string; tokenAddress: string; 0: string; 1: string }[]
>;
getAllReservesTokens(): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
getAllReservesTokens(): Promise<
{ symbol: string; tokenAddress: string; 0: string; 1: string }[]
>;
};
ADDRESSES_PROVIDER(): Promise<string>;
getAllATokens(): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
getAllATokens(): Promise<
{ symbol: string; tokenAddress: string; 0: string; 1: string }[]
>;
getAllReservesTokens(): Promise<{symbol: string; tokenAddress: string; 0: string; 1: string}[]>;
getAllReservesTokens(): Promise<
{ symbol: string; tokenAddress: string; 0: string; 1: string }[]
>;
filters: {};

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface AddressStorageInterface extends Interface {
functions: {
@ -23,7 +27,10 @@ export class AddressStorage extends Contract {
on(event: EventFilter | string, listener: Listener): AddressStorage;
once(event: EventFilter | string, listener: Listener): AddressStorage;
addListener(eventName: EventFilter | string, listener: Listener): AddressStorage;
addListener(
eventName: EventFilter | string,
listener: Listener
): AddressStorage;
removeAllListeners(eventName: EventFilter | string): AddressStorage;
removeListener(eventName: any, listener: Listener): AddressStorage;

View File

@ -1,12 +1,12 @@
/* 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 { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import {TransactionOverrides} from '.';
import {AddressStorage} from './AddressStorage';
import { TransactionOverrides } from ".";
import { AddressStorage } from "./AddressStorage";
export class AddressStorageFactory extends ContractFactory {
constructor(signer?: Signer) {
@ -25,7 +25,10 @@ export class AddressStorageFactory extends ContractFactory {
connect(signer: Signer): AddressStorageFactory {
return super.connect(signer) as AddressStorageFactory;
}
static connect(address: string, signerOrProvider: Signer | Provider): AddressStorage {
static connect(
address: string,
signerOrProvider: Signer | Provider
): AddressStorage {
return new Contract(address, _abi, signerOrProvider) as AddressStorage;
}
}
@ -34,23 +37,23 @@ const _abi = [
{
inputs: [
{
internalType: 'bytes32',
name: '_key',
type: 'bytes32',
},
internalType: "bytes32",
name: "_key",
type: "bytes32"
}
],
name: 'getAddress',
name: "getAddress",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];
const _bytecode =
'0x6080604052348015600f57600080fd5b5060b48061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806321f8a72114602d575b600080fd5b604760048036036020811015604157600080fd5b50356063565b604080516001600160a01b039092168252519081900360200190f35b6000908152602081905260409020546001600160a01b03169056fea26469706673582212203c1dbec53972735ede35517c4ebd8e6bba33dac60fb4d0b80ff546d1a037b6dc64736f6c63430006080033';
"0x6080604052348015600f57600080fd5b5060b48061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806321f8a72114602d575b600080fd5b604760048036036020811015604157600080fd5b50356063565b604080516001600160a01b039092168252519081900360200190f35b6000908152602081905260409020546001600160a01b03169056fea26469706673582212203c1dbec53972735ede35517c4ebd8e6bba33dac60fb4d0b80ff546d1a037b6dc64736f6c63430006080033";

View File

@ -1,20 +1,24 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface AdminUpgradeabilityProxyInterface extends Interface {
functions: {
admin: TypedFunctionDescription<{encode([]: []): string}>;
admin: TypedFunctionDescription<{ encode([]: []): string }>;
changeAdmin: TypedFunctionDescription<{
encode([newAdmin]: [string]): string;
}>;
implementation: TypedFunctionDescription<{encode([]: []): string}>;
implementation: TypedFunctionDescription<{ encode([]: []): string }>;
upgradeTo: TypedFunctionDescription<{
encode([newImplementation]: [string]): string;
@ -37,13 +41,21 @@ interface AdminUpgradeabilityProxyInterface extends Interface {
}
export class AdminUpgradeabilityProxy extends Contract {
connect(signerOrProvider: Signer | Provider | string): AdminUpgradeabilityProxy;
connect(
signerOrProvider: Signer | Provider | string
): AdminUpgradeabilityProxy;
attach(addressOrName: string): AdminUpgradeabilityProxy;
deployed(): Promise<AdminUpgradeabilityProxy>;
on(event: EventFilter | string, listener: Listener): AdminUpgradeabilityProxy;
once(event: EventFilter | string, listener: Listener): AdminUpgradeabilityProxy;
addListener(eventName: EventFilter | string, listener: Listener): AdminUpgradeabilityProxy;
once(
event: EventFilter | string,
listener: Listener
): AdminUpgradeabilityProxy;
addListener(
eventName: EventFilter | string,
listener: Listener
): AdminUpgradeabilityProxy;
removeAllListeners(eventName: EventFilter | string): AdminUpgradeabilityProxy;
removeListener(eventName: any, listener: Listener): AdminUpgradeabilityProxy;
@ -52,9 +64,14 @@ export class AdminUpgradeabilityProxy extends Contract {
functions: {
admin(overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(
newAdmin: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
implementation(overrides?: TransactionOverrides): Promise<ContractTransaction>;
implementation(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
upgradeTo(
newImplementation: string,
@ -70,9 +87,14 @@ export class AdminUpgradeabilityProxy extends Contract {
admin(overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(
newAdmin: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
implementation(overrides?: TransactionOverrides): Promise<ContractTransaction>;
implementation(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
upgradeTo(
newImplementation: string,
@ -100,6 +122,9 @@ export class AdminUpgradeabilityProxy extends Contract {
upgradeTo(newImplementation: string): Promise<BigNumber>;
upgradeToAndCall(newImplementation: string, data: Arrayish): Promise<BigNumber>;
upgradeToAndCall(
newImplementation: string,
data: Arrayish
): Promise<BigNumber>;
};
}

File diff suppressed because one or more lines are too long

View File

@ -1,20 +1,24 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface BaseAdminUpgradeabilityProxyInterface extends Interface {
functions: {
admin: TypedFunctionDescription<{encode([]: []): string}>;
admin: TypedFunctionDescription<{ encode([]: []): string }>;
changeAdmin: TypedFunctionDescription<{
encode([newAdmin]: [string]): string;
}>;
implementation: TypedFunctionDescription<{encode([]: []): string}>;
implementation: TypedFunctionDescription<{ encode([]: []): string }>;
upgradeTo: TypedFunctionDescription<{
encode([newImplementation]: [string]): string;
@ -37,24 +41,45 @@ interface BaseAdminUpgradeabilityProxyInterface extends Interface {
}
export class BaseAdminUpgradeabilityProxy extends Contract {
connect(signerOrProvider: Signer | Provider | string): BaseAdminUpgradeabilityProxy;
connect(
signerOrProvider: Signer | Provider | string
): BaseAdminUpgradeabilityProxy;
attach(addressOrName: string): BaseAdminUpgradeabilityProxy;
deployed(): Promise<BaseAdminUpgradeabilityProxy>;
on(event: EventFilter | string, listener: Listener): BaseAdminUpgradeabilityProxy;
once(event: EventFilter | string, listener: Listener): BaseAdminUpgradeabilityProxy;
addListener(eventName: EventFilter | string, listener: Listener): BaseAdminUpgradeabilityProxy;
removeAllListeners(eventName: EventFilter | string): BaseAdminUpgradeabilityProxy;
removeListener(eventName: any, listener: Listener): BaseAdminUpgradeabilityProxy;
on(
event: EventFilter | string,
listener: Listener
): BaseAdminUpgradeabilityProxy;
once(
event: EventFilter | string,
listener: Listener
): BaseAdminUpgradeabilityProxy;
addListener(
eventName: EventFilter | string,
listener: Listener
): BaseAdminUpgradeabilityProxy;
removeAllListeners(
eventName: EventFilter | string
): BaseAdminUpgradeabilityProxy;
removeListener(
eventName: any,
listener: Listener
): BaseAdminUpgradeabilityProxy;
interface: BaseAdminUpgradeabilityProxyInterface;
functions: {
admin(overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(
newAdmin: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
implementation(overrides?: TransactionOverrides): Promise<ContractTransaction>;
implementation(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
upgradeTo(
newImplementation: string,
@ -70,9 +95,14 @@ export class BaseAdminUpgradeabilityProxy extends Contract {
admin(overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(
newAdmin: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
implementation(overrides?: TransactionOverrides): Promise<ContractTransaction>;
implementation(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
upgradeTo(
newImplementation: string,
@ -100,6 +130,9 @@ export class BaseAdminUpgradeabilityProxy extends Contract {
upgradeTo(newImplementation: string): Promise<BigNumber>;
upgradeToAndCall(newImplementation: string, data: Arrayish): Promise<BigNumber>;
upgradeToAndCall(
newImplementation: string,
data: Arrayish
): Promise<BigNumber>;
};
}

View File

@ -1,19 +1,21 @@
/* 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 { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import {TransactionOverrides} from '.';
import {BaseAdminUpgradeabilityProxy} from './BaseAdminUpgradeabilityProxy';
import { TransactionOverrides } from ".";
import { BaseAdminUpgradeabilityProxy } from "./BaseAdminUpgradeabilityProxy";
export class BaseAdminUpgradeabilityProxyFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides?: TransactionOverrides): Promise<BaseAdminUpgradeabilityProxy> {
deploy(
overrides?: TransactionOverrides
): Promise<BaseAdminUpgradeabilityProxy> {
return super.deploy(overrides) as Promise<BaseAdminUpgradeabilityProxy>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
@ -29,7 +31,11 @@ export class BaseAdminUpgradeabilityProxyFactory extends ContractFactory {
address: string,
signerOrProvider: Signer | Provider
): BaseAdminUpgradeabilityProxy {
return new Contract(address, _abi, signerOrProvider) as BaseAdminUpgradeabilityProxy;
return new Contract(
address,
_abi,
signerOrProvider
) as BaseAdminUpgradeabilityProxy;
}
}
@ -39,108 +45,108 @@ const _abi = [
inputs: [
{
indexed: false,
internalType: 'address',
name: 'previousAdmin',
type: 'address',
internalType: "address",
name: "previousAdmin",
type: "address"
},
{
indexed: false,
internalType: 'address',
name: 'newAdmin',
type: 'address',
},
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: 'AdminChanged',
type: 'event',
name: "AdminChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'implementation',
type: 'address',
},
internalType: "address",
name: "implementation",
type: "address"
}
],
name: 'Upgraded',
type: 'event',
name: "Upgraded",
type: "event"
},
{
stateMutability: 'payable',
type: 'fallback',
stateMutability: "payable",
type: "fallback"
},
{
inputs: [],
name: 'admin',
name: "admin",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'newAdmin',
type: 'address',
},
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: 'changeAdmin',
name: "changeAdmin",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: 'implementation',
name: "implementation",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
internalType: "address",
name: "newImplementation",
type: "address"
}
],
name: 'upgradeTo',
name: "upgradeTo",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
internalType: "address",
name: "newImplementation",
type: "address"
},
{
internalType: 'bytes',
name: 'data',
type: 'bytes',
},
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: 'upgradeToAndCall',
name: "upgradeToAndCall",
outputs: [],
stateMutability: 'payable',
type: 'function',
},
stateMutability: "payable",
type: "function"
}
];
const _bytecode =
'0x608060405234801561001057600080fd5b50610652806100206000396000f3fe60806040526004361061004a5760003560e01c80633659cfe6146100545780634f1ef286146100875780635c60da1b146101075780638f28397014610138578063f851a4401461016b575b610052610180565b005b34801561006057600080fd5b506100526004803603602081101561007757600080fd5b50356001600160a01b031661019a565b6100526004803603604081101561009d57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100c857600080fd5b8201836020820111156100da57600080fd5b803590602001918460018302840111640100000000831117156100fc57600080fd5b5090925090506101d4565b34801561011357600080fd5b5061011c610281565b604080516001600160a01b039092168252519081900360200190f35b34801561014457600080fd5b506100526004803603602081101561015b57600080fd5b50356001600160a01b03166102be565b34801561017757600080fd5b5061011c610378565b6101886103a3565b610198610193610403565b610428565b565b6101a261044c565b6001600160a01b0316336001600160a01b031614156101c9576101c481610471565b6101d1565b6101d1610180565b50565b6101dc61044c565b6001600160a01b0316336001600160a01b03161415610274576101fe83610471565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461025b576040519150601f19603f3d011682016040523d82523d6000602084013e610260565b606091505b505090508061026e57600080fd5b5061027c565b61027c610180565b505050565b600061028b61044c565b6001600160a01b0316336001600160a01b031614156102b3576102ac610403565b90506102bb565b6102bb610180565b90565b6102c661044c565b6001600160a01b0316336001600160a01b031614156101c9576001600160a01b0381166103245760405162461bcd60e51b81526004018080602001828103825260368152602001806105ac6036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61034d61044c565b604080516001600160a01b03928316815291841660208301528051918290030190a16101c4816104b1565b600061038261044c565b6001600160a01b0316336001600160a01b031614156102b3576102ac61044c565b6103ab61044c565b6001600160a01b0316336001600160a01b031614156103fb5760405162461bcd60e51b815260040180806020018281038252603281526020018061057a6032913960400191505060405180910390fd5b610198610198565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610447573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61047a816104d5565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6104de8161053d565b6105195760405162461bcd60e51b815260040180806020018281038252603b8152602001806105e2603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057157508115155b94935050505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a264697066735822122080fb7a29d20b62c9d75049f213e628259458033ab4be1b0f43737441acf9ee3064736f6c63430006080033';
"0x608060405234801561001057600080fd5b50610652806100206000396000f3fe60806040526004361061004a5760003560e01c80633659cfe6146100545780634f1ef286146100875780635c60da1b146101075780638f28397014610138578063f851a4401461016b575b610052610180565b005b34801561006057600080fd5b506100526004803603602081101561007757600080fd5b50356001600160a01b031661019a565b6100526004803603604081101561009d57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100c857600080fd5b8201836020820111156100da57600080fd5b803590602001918460018302840111640100000000831117156100fc57600080fd5b5090925090506101d4565b34801561011357600080fd5b5061011c610281565b604080516001600160a01b039092168252519081900360200190f35b34801561014457600080fd5b506100526004803603602081101561015b57600080fd5b50356001600160a01b03166102be565b34801561017757600080fd5b5061011c610378565b6101886103a3565b610198610193610403565b610428565b565b6101a261044c565b6001600160a01b0316336001600160a01b031614156101c9576101c481610471565b6101d1565b6101d1610180565b50565b6101dc61044c565b6001600160a01b0316336001600160a01b03161415610274576101fe83610471565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461025b576040519150601f19603f3d011682016040523d82523d6000602084013e610260565b606091505b505090508061026e57600080fd5b5061027c565b61027c610180565b505050565b600061028b61044c565b6001600160a01b0316336001600160a01b031614156102b3576102ac610403565b90506102bb565b6102bb610180565b90565b6102c661044c565b6001600160a01b0316336001600160a01b031614156101c9576001600160a01b0381166103245760405162461bcd60e51b81526004018080602001828103825260368152602001806105ac6036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61034d61044c565b604080516001600160a01b03928316815291841660208301528051918290030190a16101c4816104b1565b600061038261044c565b6001600160a01b0316336001600160a01b031614156102b3576102ac61044c565b6103ab61044c565b6001600160a01b0316336001600160a01b031614156103fb5760405162461bcd60e51b815260040180806020018281038252603281526020018061057a6032913960400191505060405180910390fd5b610198610198565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610447573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61047a816104d5565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6104de8161053d565b6105195760405162461bcd60e51b815260040180806020018281038252603b8152602001806105e2603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057157508115155b94935050505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a264697066735822122080fb7a29d20b62c9d75049f213e628259458033ab4be1b0f43737441acf9ee3064736f6c63430006080033";

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface BaseUpgradeabilityProxyInterface extends Interface {
functions: {};
@ -17,13 +21,21 @@ interface BaseUpgradeabilityProxyInterface extends Interface {
}
export class BaseUpgradeabilityProxy extends Contract {
connect(signerOrProvider: Signer | Provider | string): BaseUpgradeabilityProxy;
connect(
signerOrProvider: Signer | Provider | string
): BaseUpgradeabilityProxy;
attach(addressOrName: string): BaseUpgradeabilityProxy;
deployed(): Promise<BaseUpgradeabilityProxy>;
on(event: EventFilter | string, listener: Listener): BaseUpgradeabilityProxy;
once(event: EventFilter | string, listener: Listener): BaseUpgradeabilityProxy;
addListener(eventName: EventFilter | string, listener: Listener): BaseUpgradeabilityProxy;
once(
event: EventFilter | string,
listener: Listener
): BaseUpgradeabilityProxy;
addListener(
eventName: EventFilter | string,
listener: Listener
): BaseUpgradeabilityProxy;
removeAllListeners(eventName: EventFilter | string): BaseUpgradeabilityProxy;
removeListener(eventName: any, listener: Listener): BaseUpgradeabilityProxy;

View File

@ -1,12 +1,12 @@
/* 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 { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import {TransactionOverrides} from '.';
import {BaseUpgradeabilityProxy} from './BaseUpgradeabilityProxy';
import { TransactionOverrides } from ".";
import { BaseUpgradeabilityProxy } from "./BaseUpgradeabilityProxy";
export class BaseUpgradeabilityProxyFactory extends ContractFactory {
constructor(signer?: Signer) {
@ -25,8 +25,15 @@ export class BaseUpgradeabilityProxyFactory extends ContractFactory {
connect(signer: Signer): BaseUpgradeabilityProxyFactory {
return super.connect(signer) as BaseUpgradeabilityProxyFactory;
}
static connect(address: string, signerOrProvider: Signer | Provider): BaseUpgradeabilityProxy {
return new Contract(address, _abi, signerOrProvider) as BaseUpgradeabilityProxy;
static connect(
address: string,
signerOrProvider: Signer | Provider
): BaseUpgradeabilityProxy {
return new Contract(
address,
_abi,
signerOrProvider
) as BaseUpgradeabilityProxy;
}
}
@ -36,19 +43,19 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'address',
name: 'implementation',
type: 'address',
},
internalType: "address",
name: "implementation",
type: "address"
}
],
name: 'Upgraded',
type: 'event',
name: "Upgraded",
type: "event"
},
{
stateMutability: 'payable',
type: 'fallback',
},
stateMutability: "payable",
type: "fallback"
}
];
const _bytecode =
'0x6080604052348015600f57600080fd5b50609e8061001e6000396000f3fe6080604052600a600c565b005b6012601e565b601e601a6020565b6045565b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156063573d6000f35b3d6000fdfea264697066735822122026f9f0a10c55993cd5e1ec3854f2261ee54f57fd62ea6dcffd6b08e6f296847d64736f6c63430006080033';
"0x6080604052348015600f57600080fd5b50609e8061001e6000396000f3fe6080604052600a600c565b005b6012601e565b601e601a6020565b6045565b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156063573d6000f35b3d6000fdfea264697066735822122026f9f0a10c55993cd5e1ec3854f2261ee54f57fd62ea6dcffd6b08e6f296847d64736f6c63430006080033";

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface ChainlinkProxyPriceProviderInterface extends Interface {
functions: {
@ -16,15 +20,15 @@ interface ChainlinkProxyPriceProviderInterface extends Interface {
encode([_assets]: [string[]]): string;
}>;
getFallbackOracle: TypedFunctionDescription<{encode([]: []): string}>;
getFallbackOracle: TypedFunctionDescription<{ encode([]: []): string }>;
getSourceOfAsset: TypedFunctionDescription<{
encode([_asset]: [string]): string;
}>;
owner: TypedFunctionDescription<{encode([]: []): string}>;
owner: TypedFunctionDescription<{ encode([]: []): string }>;
renounceOwnership: TypedFunctionDescription<{encode([]: []): string}>;
renounceOwnership: TypedFunctionDescription<{ encode([]: []): string }>;
setAssetSources: TypedFunctionDescription<{
encode([_assets, _sources]: [string[], string[]]): string;
@ -49,21 +53,40 @@ interface ChainlinkProxyPriceProviderInterface extends Interface {
}>;
OwnershipTransferred: TypedEventDescription<{
encodeTopics([previousOwner, newOwner]: [string | null, string | null]): string[];
encodeTopics([previousOwner, newOwner]: [
string | null,
string | null
]): string[];
}>;
};
}
export class ChainlinkProxyPriceProvider extends Contract {
connect(signerOrProvider: Signer | Provider | string): ChainlinkProxyPriceProvider;
connect(
signerOrProvider: Signer | Provider | string
): ChainlinkProxyPriceProvider;
attach(addressOrName: string): ChainlinkProxyPriceProvider;
deployed(): Promise<ChainlinkProxyPriceProvider>;
on(event: EventFilter | string, listener: Listener): ChainlinkProxyPriceProvider;
once(event: EventFilter | string, listener: Listener): ChainlinkProxyPriceProvider;
addListener(eventName: EventFilter | string, listener: Listener): ChainlinkProxyPriceProvider;
removeAllListeners(eventName: EventFilter | string): ChainlinkProxyPriceProvider;
removeListener(eventName: any, listener: Listener): ChainlinkProxyPriceProvider;
on(
event: EventFilter | string,
listener: Listener
): ChainlinkProxyPriceProvider;
once(
event: EventFilter | string,
listener: Listener
): ChainlinkProxyPriceProvider;
addListener(
eventName: EventFilter | string,
listener: Listener
): ChainlinkProxyPriceProvider;
removeAllListeners(
eventName: EventFilter | string
): ChainlinkProxyPriceProvider;
removeListener(
eventName: any,
listener: Listener
): ChainlinkProxyPriceProvider;
interface: ChainlinkProxyPriceProviderInterface;
@ -78,7 +101,9 @@ export class ChainlinkProxyPriceProvider extends Contract {
owner(): Promise<string>;
renounceOwnership(overrides?: TransactionOverrides): Promise<ContractTransaction>;
renounceOwnership(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setAssetSources(
_assets: string[],
@ -107,7 +132,9 @@ export class ChainlinkProxyPriceProvider extends Contract {
owner(): Promise<string>;
renounceOwnership(overrides?: TransactionOverrides): Promise<ContractTransaction>;
renounceOwnership(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setAssetSources(
_assets: string[],
@ -126,11 +153,17 @@ export class ChainlinkProxyPriceProvider extends Contract {
): Promise<ContractTransaction>;
filters: {
AssetSourceUpdated(asset: string | null, source: string | null): EventFilter;
AssetSourceUpdated(
asset: string | null,
source: string | null
): EventFilter;
FallbackOracleUpdated(fallbackOracle: string | null): EventFilter;
OwnershipTransferred(previousOwner: string | null, newOwner: string | null): EventFilter;
OwnershipTransferred(
previousOwner: string | null,
newOwner: string | null
): EventFilter;
};
estimate: {

File diff suppressed because one or more lines are too long

View File

@ -1,17 +1,24 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface ChainlinkUsdethOracleIInterface extends Interface {
functions: {};
events: {
AnswerUpdated: TypedEventDescription<{
encodeTopics([current, answerId]: [BigNumberish | null, BigNumberish | null]): string[];
encodeTopics([current, answerId]: [
BigNumberish | null,
BigNumberish | null
]): string[];
}>;
};
}
@ -23,7 +30,10 @@ export class ChainlinkUsdethOracleI extends Contract {
on(event: EventFilter | string, listener: Listener): ChainlinkUsdethOracleI;
once(event: EventFilter | string, listener: Listener): ChainlinkUsdethOracleI;
addListener(eventName: EventFilter | string, listener: Listener): ChainlinkUsdethOracleI;
addListener(
eventName: EventFilter | string,
listener: Listener
): ChainlinkUsdethOracleI;
removeAllListeners(eventName: EventFilter | string): ChainlinkUsdethOracleI;
removeListener(eventName: any, listener: Listener): ChainlinkUsdethOracleI;
@ -32,7 +42,10 @@ export class ChainlinkUsdethOracleI extends Contract {
functions: {};
filters: {
AnswerUpdated(current: BigNumberish | null, answerId: BigNumberish | null): EventFilter;
AnswerUpdated(
current: BigNumberish | null,
answerId: BigNumberish | null
): EventFilter;
};
estimate: {};

View File

@ -1,14 +1,21 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {ChainlinkUsdethOracleI} from './ChainlinkUsdethOracleI';
import { ChainlinkUsdethOracleI } from "./ChainlinkUsdethOracleI";
export class ChainlinkUsdethOracleIFactory {
static connect(address: string, signerOrProvider: Signer | Provider): ChainlinkUsdethOracleI {
return new Contract(address, _abi, signerOrProvider) as ChainlinkUsdethOracleI;
static connect(
address: string,
signerOrProvider: Signer | Provider
): ChainlinkUsdethOracleI {
return new Contract(
address,
_abi,
signerOrProvider
) as ChainlinkUsdethOracleI;
}
}
@ -18,18 +25,18 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'int256',
name: 'current',
type: 'int256',
internalType: "int256",
name: "current",
type: "int256"
},
{
indexed: true,
internalType: 'uint256',
name: 'answerId',
type: 'uint256',
},
internalType: "uint256",
name: "answerId",
type: "uint256"
}
],
name: 'AnswerUpdated',
type: 'event',
},
name: "AnswerUpdated",
type: "event"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface DebtTokenBaseInterface extends Interface {
functions: {
@ -16,9 +20,9 @@ interface DebtTokenBaseInterface extends Interface {
encode([spender, _amount]: [string, BigNumberish]): string;
}>;
balanceOf: TypedFunctionDescription<{encode([_user]: [string]): string}>;
balanceOf: TypedFunctionDescription<{ encode([_user]: [string]): string }>;
decimals: TypedFunctionDescription<{encode([]: []): string}>;
decimals: TypedFunctionDescription<{ encode([]: []): string }>;
decreaseAllowance: TypedFunctionDescription<{
encode([spender, subtractedValue]: [string, BigNumberish]): string;
@ -38,22 +42,26 @@ interface DebtTokenBaseInterface extends Interface {
]): string;
}>;
name: TypedFunctionDescription<{encode([]: []): string}>;
name: TypedFunctionDescription<{ encode([]: []): string }>;
principalBalanceOf: TypedFunctionDescription<{
encode([_user]: [string]): string;
}>;
symbol: TypedFunctionDescription<{encode([]: []): string}>;
symbol: TypedFunctionDescription<{ encode([]: []): string }>;
totalSupply: TypedFunctionDescription<{encode([]: []): string}>;
totalSupply: TypedFunctionDescription<{ encode([]: []): string }>;
transfer: TypedFunctionDescription<{
encode([recipient, _amount]: [string, BigNumberish]): string;
}>;
transferFrom: TypedFunctionDescription<{
encode([sender, recipient, _amount]: [string, string, BigNumberish]): string;
encode([sender, recipient, _amount]: [
string,
string,
BigNumberish
]): string;
}>;
underlyingAssetAddress: TypedFunctionDescription<{
@ -63,11 +71,19 @@ interface DebtTokenBaseInterface extends Interface {
events: {
Approval: TypedEventDescription<{
encodeTopics([owner, spender, value]: [string | null, string | null, null]): string[];
encodeTopics([owner, spender, value]: [
string | null,
string | null,
null
]): string[];
}>;
Transfer: TypedEventDescription<{
encodeTopics([from, to, value]: [string | null, string | null, null]): string[];
encodeTopics([from, to, value]: [
string | null,
string | null,
null
]): string[];
}>;
};
}
@ -79,7 +95,10 @@ export class DebtTokenBase extends Contract {
on(event: EventFilter | string, listener: Listener): DebtTokenBase;
once(event: EventFilter | string, listener: Listener): DebtTokenBase;
addListener(eventName: EventFilter | string, listener: Listener): DebtTokenBase;
addListener(
eventName: EventFilter | string,
listener: Listener
): DebtTokenBase;
removeAllListeners(eventName: EventFilter | string): DebtTokenBase;
removeListener(eventName: any, listener: Listener): DebtTokenBase;
@ -200,7 +219,11 @@ export class DebtTokenBase extends Contract {
underlyingAssetAddress(): Promise<string>;
filters: {
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
Approval(
owner: string | null,
spender: string | null,
value: null
): EventFilter;
Transfer(from: string | null, to: string | null, value: null): EventFilter;
};
@ -214,9 +237,15 @@ export class DebtTokenBase extends Contract {
decimals(): Promise<BigNumber>;
decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise<BigNumber>;
decreaseAllowance(
spender: string,
subtractedValue: BigNumberish
): Promise<BigNumber>;
increaseAllowance(spender: string, addedValue: BigNumberish): Promise<BigNumber>;
increaseAllowance(
spender: string,
addedValue: BigNumberish
): Promise<BigNumber>;
init(
_name: string,
@ -236,7 +265,11 @@ export class DebtTokenBase extends Contract {
transfer(recipient: string, _amount: BigNumberish): Promise<BigNumber>;
transferFrom(sender: string, recipient: string, _amount: BigNumberish): Promise<BigNumber>;
transferFrom(
sender: string,
recipient: string,
_amount: BigNumberish
): Promise<BigNumber>;
underlyingAssetAddress(): Promise<BigNumber>;
};

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {DebtTokenBase} from './DebtTokenBase';
import { DebtTokenBase } from "./DebtTokenBase";
export class DebtTokenBaseFactory {
static connect(address: string, signerOrProvider: Signer | Provider): DebtTokenBase {
static connect(
address: string,
signerOrProvider: Signer | Provider
): DebtTokenBase {
return new Contract(address, _abi, signerOrProvider) as DebtTokenBase;
}
}
@ -18,334 +21,334 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'address',
name: 'owner',
type: 'address',
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: 'Approval',
type: 'event',
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'from',
type: 'address',
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'to',
type: 'address',
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: 'Transfer',
type: 'event',
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: 'address',
name: 'owner',
type: 'address',
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: 'address',
name: 'spender',
type: 'address',
},
internalType: "address",
name: "spender",
type: "address"
}
],
name: 'allowance',
name: "allowance",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: 'approve',
name: "approve",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
},
internalType: "address",
name: "_user",
type: "address"
}
],
name: 'balanceOf',
name: "balanceOf",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'decimals',
name: "decimals",
outputs: [
{
internalType: 'uint8',
name: '',
type: 'uint8',
},
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: 'uint256',
name: 'subtractedValue',
type: 'uint256',
},
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
],
name: 'decreaseAllowance',
name: "decreaseAllowance",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: 'uint256',
name: 'addedValue',
type: 'uint256',
},
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
],
name: 'increaseAllowance',
name: "increaseAllowance",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'string',
name: '_name',
type: 'string',
internalType: "string",
name: "_name",
type: "string"
},
{
internalType: 'string',
name: '_symbol',
type: 'string',
internalType: "string",
name: "_symbol",
type: "string"
},
{
internalType: 'uint8',
name: '_decimals',
type: 'uint8',
internalType: "uint8",
name: "_decimals",
type: "uint8"
},
{
internalType: 'address',
name: '_underlying',
type: 'address',
internalType: "address",
name: "_underlying",
type: "address"
},
{
internalType: 'contract ILendingPoolAddressesProvider',
name: '_addressesProvider',
type: 'address',
},
internalType: "contract ILendingPoolAddressesProvider",
name: "_addressesProvider",
type: "address"
}
],
name: 'init',
name: "init",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: 'name',
name: "name",
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
},
internalType: "address",
name: "_user",
type: "address"
}
],
name: 'principalBalanceOf',
name: "principalBalanceOf",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'symbol',
name: "symbol",
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'totalSupply',
name: "totalSupply",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'recipient',
type: 'address',
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: 'transfer',
name: "transfer",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'sender',
type: 'address',
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: 'address',
name: 'recipient',
type: 'address',
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: 'transferFrom',
name: "transferFrom",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: 'underlyingAssetAddress',
name: "underlyingAssetAddress",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface DefaultReserveInterestRateStrategyInterface extends Interface {
functions: {
@ -16,7 +20,7 @@ interface DefaultReserveInterestRateStrategyInterface extends Interface {
encode([]: []): string;
}>;
addressesProvider: TypedFunctionDescription<{encode([]: []): string}>;
addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>;
calculateInterestRates: TypedFunctionDescription<{
encode([
@ -24,39 +28,58 @@ interface DefaultReserveInterestRateStrategyInterface extends Interface {
_availableLiquidity,
_totalBorrowsStable,
_totalBorrowsVariable,
_averageStableBorrowRate,
]: [string, BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
_averageStableBorrowRate
]: [
string,
BigNumberish,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
}>;
getBaseVariableBorrowRate: TypedFunctionDescription<{
encode([]: []): string;
}>;
getStableRateSlope1: TypedFunctionDescription<{encode([]: []): string}>;
getStableRateSlope1: TypedFunctionDescription<{ encode([]: []): string }>;
getStableRateSlope2: TypedFunctionDescription<{encode([]: []): string}>;
getStableRateSlope2: TypedFunctionDescription<{ encode([]: []): string }>;
getVariableRateSlope1: TypedFunctionDescription<{encode([]: []): string}>;
getVariableRateSlope1: TypedFunctionDescription<{ encode([]: []): string }>;
getVariableRateSlope2: TypedFunctionDescription<{encode([]: []): string}>;
getVariableRateSlope2: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {};
}
export class DefaultReserveInterestRateStrategy extends Contract {
connect(signerOrProvider: Signer | Provider | string): DefaultReserveInterestRateStrategy;
connect(
signerOrProvider: Signer | Provider | string
): DefaultReserveInterestRateStrategy;
attach(addressOrName: string): DefaultReserveInterestRateStrategy;
deployed(): Promise<DefaultReserveInterestRateStrategy>;
on(event: EventFilter | string, listener: Listener): DefaultReserveInterestRateStrategy;
once(event: EventFilter | string, listener: Listener): DefaultReserveInterestRateStrategy;
on(
event: EventFilter | string,
listener: Listener
): DefaultReserveInterestRateStrategy;
once(
event: EventFilter | string,
listener: Listener
): DefaultReserveInterestRateStrategy;
addListener(
eventName: EventFilter | string,
listener: Listener
): DefaultReserveInterestRateStrategy;
removeAllListeners(eventName: EventFilter | string): DefaultReserveInterestRateStrategy;
removeListener(eventName: any, listener: Listener): DefaultReserveInterestRateStrategy;
removeAllListeners(
eventName: EventFilter | string
): DefaultReserveInterestRateStrategy;
removeListener(
eventName: any,
listener: Listener
): DefaultReserveInterestRateStrategy;
interface: DefaultReserveInterestRateStrategyInterface;

File diff suppressed because one or more lines are too long

60
types/Erc20.d.ts vendored
View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface Erc20Interface extends Interface {
functions: {
@ -20,7 +24,7 @@ interface Erc20Interface extends Interface {
encode([account]: [string]): string;
}>;
decimals: TypedFunctionDescription<{encode([]: []): string}>;
decimals: TypedFunctionDescription<{ encode([]: []): string }>;
decreaseAllowance: TypedFunctionDescription<{
encode([spender, subtractedValue]: [string, BigNumberish]): string;
@ -30,28 +34,40 @@ interface Erc20Interface extends Interface {
encode([spender, addedValue]: [string, BigNumberish]): string;
}>;
name: TypedFunctionDescription<{encode([]: []): string}>;
name: TypedFunctionDescription<{ encode([]: []): string }>;
symbol: TypedFunctionDescription<{encode([]: []): string}>;
symbol: TypedFunctionDescription<{ encode([]: []): string }>;
totalSupply: TypedFunctionDescription<{encode([]: []): string}>;
totalSupply: TypedFunctionDescription<{ encode([]: []): string }>;
transfer: TypedFunctionDescription<{
encode([recipient, amount]: [string, BigNumberish]): string;
}>;
transferFrom: TypedFunctionDescription<{
encode([sender, recipient, amount]: [string, string, BigNumberish]): string;
encode([sender, recipient, amount]: [
string,
string,
BigNumberish
]): string;
}>;
};
events: {
Approval: TypedEventDescription<{
encodeTopics([owner, spender, value]: [string | null, string | null, null]): string[];
encodeTopics([owner, spender, value]: [
string | null,
string | null,
null
]): string[];
}>;
Transfer: TypedEventDescription<{
encodeTopics([from, to, value]: [string | null, string | null, null]): string[];
encodeTopics([from, to, value]: [
string | null,
string | null,
null
]): string[];
}>;
};
}
@ -158,7 +174,11 @@ export class Erc20 extends Contract {
): Promise<ContractTransaction>;
filters: {
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
Approval(
owner: string | null,
spender: string | null,
value: null
): EventFilter;
Transfer(from: string | null, to: string | null, value: null): EventFilter;
};
@ -172,9 +192,15 @@ export class Erc20 extends Contract {
decimals(): Promise<BigNumber>;
decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise<BigNumber>;
decreaseAllowance(
spender: string,
subtractedValue: BigNumberish
): Promise<BigNumber>;
increaseAllowance(spender: string, addedValue: BigNumberish): Promise<BigNumber>;
increaseAllowance(
spender: string,
addedValue: BigNumberish
): Promise<BigNumber>;
name(): Promise<BigNumber>;
@ -184,6 +210,10 @@ export class Erc20 extends Contract {
transfer(recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish
): Promise<BigNumber>;
};
}

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface Erc20BurnableInterface extends Interface {
functions: {
@ -28,7 +32,7 @@ interface Erc20BurnableInterface extends Interface {
encode([account, amount]: [string, BigNumberish]): string;
}>;
decimals: TypedFunctionDescription<{encode([]: []): string}>;
decimals: TypedFunctionDescription<{ encode([]: []): string }>;
decreaseAllowance: TypedFunctionDescription<{
encode([spender, subtractedValue]: [string, BigNumberish]): string;
@ -38,28 +42,40 @@ interface Erc20BurnableInterface extends Interface {
encode([spender, addedValue]: [string, BigNumberish]): string;
}>;
name: TypedFunctionDescription<{encode([]: []): string}>;
name: TypedFunctionDescription<{ encode([]: []): string }>;
symbol: TypedFunctionDescription<{encode([]: []): string}>;
symbol: TypedFunctionDescription<{ encode([]: []): string }>;
totalSupply: TypedFunctionDescription<{encode([]: []): string}>;
totalSupply: TypedFunctionDescription<{ encode([]: []): string }>;
transfer: TypedFunctionDescription<{
encode([recipient, amount]: [string, BigNumberish]): string;
}>;
transferFrom: TypedFunctionDescription<{
encode([sender, recipient, amount]: [string, string, BigNumberish]): string;
encode([sender, recipient, amount]: [
string,
string,
BigNumberish
]): string;
}>;
};
events: {
Approval: TypedEventDescription<{
encodeTopics([owner, spender, value]: [string | null, string | null, null]): string[];
encodeTopics([owner, spender, value]: [
string | null,
string | null,
null
]): string[];
}>;
Transfer: TypedEventDescription<{
encodeTopics([from, to, value]: [string | null, string | null, null]): string[];
encodeTopics([from, to, value]: [
string | null,
string | null,
null
]): string[];
}>;
};
}
@ -71,7 +87,10 @@ export class Erc20Burnable extends Contract {
on(event: EventFilter | string, listener: Listener): Erc20Burnable;
once(event: EventFilter | string, listener: Listener): Erc20Burnable;
addListener(eventName: EventFilter | string, listener: Listener): Erc20Burnable;
addListener(
eventName: EventFilter | string,
listener: Listener
): Erc20Burnable;
removeAllListeners(eventName: EventFilter | string): Erc20Burnable;
removeListener(eventName: any, listener: Listener): Erc20Burnable;
@ -88,7 +107,10 @@ export class Erc20Burnable extends Contract {
balanceOf(account: string): Promise<BigNumber>;
burn(amount: BigNumberish, overrides?: TransactionOverrides): Promise<ContractTransaction>;
burn(
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
burnFrom(
account: string,
@ -140,7 +162,10 @@ export class Erc20Burnable extends Contract {
balanceOf(account: string): Promise<BigNumber>;
burn(amount: BigNumberish, overrides?: TransactionOverrides): Promise<ContractTransaction>;
burn(
amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
burnFrom(
account: string,
@ -182,7 +207,11 @@ export class Erc20Burnable extends Contract {
): Promise<ContractTransaction>;
filters: {
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
Approval(
owner: string | null,
spender: string | null,
value: null
): EventFilter;
Transfer(from: string | null, to: string | null, value: null): EventFilter;
};
@ -200,9 +229,15 @@ export class Erc20Burnable extends Contract {
decimals(): Promise<BigNumber>;
decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise<BigNumber>;
decreaseAllowance(
spender: string,
subtractedValue: BigNumberish
): Promise<BigNumber>;
increaseAllowance(spender: string, addedValue: BigNumberish): Promise<BigNumber>;
increaseAllowance(
spender: string,
addedValue: BigNumberish
): Promise<BigNumber>;
name(): Promise<BigNumber>;
@ -212,6 +247,10 @@ export class Erc20Burnable extends Contract {
transfer(recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish
): Promise<BigNumber>;
};
}

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {Erc20Burnable} from './Erc20Burnable';
import { Erc20Burnable } from "./Erc20Burnable";
export class Erc20BurnableFactory {
static connect(address: string, signerOrProvider: Signer | Provider): Erc20Burnable {
static connect(
address: string,
signerOrProvider: Signer | Provider
): Erc20Burnable {
return new Contract(address, _abi, signerOrProvider) as Erc20Burnable;
}
}
@ -18,300 +21,300 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'address',
name: 'owner',
type: 'address',
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: 'Approval',
type: 'event',
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'from',
type: 'address',
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'to',
type: 'address',
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: 'Transfer',
type: 'event',
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: 'address',
name: 'owner',
type: 'address',
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: 'address',
name: 'spender',
type: 'address',
},
internalType: "address",
name: "spender",
type: "address"
}
],
name: 'allowance',
name: "allowance",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'approve',
name: "approve",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
internalType: "address",
name: "account",
type: "address"
}
],
name: 'balanceOf',
name: "balanceOf",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'burn',
name: "burn",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
internalType: "address",
name: "account",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'burnFrom',
name: "burnFrom",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: 'decimals',
name: "decimals",
outputs: [
{
internalType: 'uint8',
name: '',
type: 'uint8',
},
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: 'uint256',
name: 'subtractedValue',
type: 'uint256',
},
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
],
name: 'decreaseAllowance',
name: "decreaseAllowance",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: 'uint256',
name: 'addedValue',
type: 'uint256',
},
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
],
name: 'increaseAllowance',
name: "increaseAllowance",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: 'name',
name: "name",
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'symbol',
name: "symbol",
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'totalSupply',
name: "totalSupply",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'recipient',
type: 'address',
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'transfer',
name: "transfer",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'sender',
type: 'address',
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: 'address',
name: 'recipient',
type: 'address',
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'transferFrom',
name: "transferFrom",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

File diff suppressed because one or more lines are too long

16
types/Example.d.ts vendored
View File

@ -1,16 +1,20 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface ExampleInterface extends Interface {
functions: {
_n: TypedFunctionDescription<{encode([]: []): string}>;
_n: TypedFunctionDescription<{ encode([]: []): string }>;
test: TypedFunctionDescription<{encode([]: []): string}>;
test: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {};

View File

@ -1,12 +1,12 @@
/* 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 { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import {TransactionOverrides} from '.';
import {Example} from './Example';
import { TransactionOverrides } from ".";
import { Example } from "./Example";
export class ExampleFactory extends ContractFactory {
constructor(signer?: Signer) {
@ -25,7 +25,10 @@ export class ExampleFactory extends ContractFactory {
connect(signer: Signer): ExampleFactory {
return super.connect(signer) as ExampleFactory;
}
static connect(address: string, signerOrProvider: Signer | Provider): Example {
static connect(
address: string,
signerOrProvider: Signer | Provider
): Example {
return new Contract(address, _abi, signerOrProvider) as Example;
}
}
@ -33,36 +36,36 @@ export class ExampleFactory extends ContractFactory {
const _abi = [
{
inputs: [],
stateMutability: 'nonpayable',
type: 'constructor',
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: '_n',
name: "_n",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'test',
name: "test",
outputs: [
{
internalType: 'uint256',
name: 'n',
type: 'uint256',
},
internalType: "uint256",
name: "n",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];
const _bytecode =
'0x6080604052348015600f57600080fd5b5060056000556097806100236000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80631aadff81146037578063f8a8fd6d14604f575b600080fd5b603d6055565b60408051918252519081900360200190f35b603d605b565b60005481565b6000549056fea2646970667358221220db729e656432d2a44942aae506cff90eea05978605f6847ecdf717665d7a04e664736f6c63430006080033';
"0x6080604052348015600f57600080fd5b5060056000556097806100236000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80631aadff81146037578063f8a8fd6d14604f575b600080fd5b603d6055565b60408051918252519081900360200190f35b603d605b565b60005481565b6000549056fea2646970667358221220db729e656432d2a44942aae506cff90eea05978605f6847ecdf717665d7a04e664736f6c63430006080033";

View File

@ -1,14 +1,18 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface FeeProviderInterface extends Interface {
functions: {
FEE_PROVIDER_REVISION: TypedFunctionDescription<{encode([]: []): string}>;
FEE_PROVIDER_REVISION: TypedFunctionDescription<{ encode([]: []): string }>;
calculateLoanOriginationFee: TypedFunctionDescription<{
encode([_user, _amount]: [string, BigNumberish]): string;
@ -46,7 +50,10 @@ export class FeeProvider extends Contract {
functions: {
FEE_PROVIDER_REVISION(): Promise<BigNumber>;
calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise<BigNumber>;
calculateLoanOriginationFee(
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
getLoanOriginationFeePercentage(): Promise<BigNumber>;
@ -60,7 +67,10 @@ export class FeeProvider extends Contract {
FEE_PROVIDER_REVISION(): Promise<BigNumber>;
calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise<BigNumber>;
calculateLoanOriginationFee(
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
getLoanOriginationFeePercentage(): Promise<BigNumber>;
@ -76,7 +86,10 @@ export class FeeProvider extends Contract {
estimate: {
FEE_PROVIDER_REVISION(): Promise<BigNumber>;
calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise<BigNumber>;
calculateLoanOriginationFee(
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
getLoanOriginationFeePercentage(): Promise<BigNumber>;

View File

@ -1,12 +1,12 @@
/* 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 { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import {TransactionOverrides} from '.';
import {FeeProvider} from './FeeProvider';
import { TransactionOverrides } from ".";
import { FeeProvider } from "./FeeProvider";
export class FeeProviderFactory extends ContractFactory {
constructor(signer?: Signer) {
@ -25,7 +25,10 @@ export class FeeProviderFactory extends ContractFactory {
connect(signer: Signer): FeeProviderFactory {
return super.connect(signer) as FeeProviderFactory;
}
static connect(address: string, signerOrProvider: Signer | Provider): FeeProvider {
static connect(
address: string,
signerOrProvider: Signer | Provider
): FeeProvider {
return new Contract(address, _abi, signerOrProvider) as FeeProvider;
}
}
@ -33,81 +36,81 @@ export class FeeProviderFactory extends ContractFactory {
const _abi = [
{
inputs: [],
name: 'FEE_PROVIDER_REVISION',
name: "FEE_PROVIDER_REVISION",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
internalType: "address",
name: "_user",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: 'calculateLoanOriginationFee',
name: "calculateLoanOriginationFee",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getLoanOriginationFeePercentage',
name: "getLoanOriginationFeePercentage",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_addressesProvider',
type: 'address',
},
internalType: "address",
name: "_addressesProvider",
type: "address"
}
],
name: 'initialize',
name: "initialize",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: 'originationFeePercentage',
name: "originationFeePercentage",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];
const _bytecode =
'0x60806040526000805534801561001457600080fd5b50610411806100246000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80639403ed3a1461005c578063b0d73d4e14610076578063c211f9a41461007e578063c4d66de814610086578063e563a7d0146100ae575b600080fd5b6100646100da565b60408051918252519081900360200190f35b6100646100e0565b6100646100e5565b6100ac6004803603602081101561009c57600080fd5b50356001600160a01b03166100eb565b005b610064600480360360408110156100c457600080fd5b506001600160a01b038135169060200135610193565b60345481565b600181565b60345490565b60006100f56101b3565b60015490915060ff168061010c575061010c6101b8565b80610118575060005481115b6101535760405162461bcd60e51b815260040180806020018281038252602e8152602001806103ae602e913960400191505060405180910390fd5b60015460ff16158015610172576001805460ff19168117905560008290555b6608e1bc9bf04000603455801561018e576001805460ff191690555b505050565b60006101aa603454836101be90919063ffffffff16565b90505b92915050565b600190565b303b1590565b60006101aa670de0b6b3a76400006101ee6101df868663ffffffff6101fa16565b6706f05b59d3b2000090610253565b9063ffffffff6102ad16565b600082610209575060006101ad565b8282028284828161021657fe5b04146101aa5760405162461bcd60e51b815260040180806020018281038252602181526020018061038d6021913960400191505060405180910390fd5b6000828201838110156101aa576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006101aa83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250600081836103765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561033b578181015183820152602001610323565b50505050905090810190601f1680156103685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161038257fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a2646970667358221220b1f57d34e2488cabb196d838daf85a2a940face5fe23e3b0d48f388ca9f005b864736f6c63430006080033';
"0x60806040526000805534801561001457600080fd5b50610411806100246000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80639403ed3a1461005c578063b0d73d4e14610076578063c211f9a41461007e578063c4d66de814610086578063e563a7d0146100ae575b600080fd5b6100646100da565b60408051918252519081900360200190f35b6100646100e0565b6100646100e5565b6100ac6004803603602081101561009c57600080fd5b50356001600160a01b03166100eb565b005b610064600480360360408110156100c457600080fd5b506001600160a01b038135169060200135610193565b60345481565b600181565b60345490565b60006100f56101b3565b60015490915060ff168061010c575061010c6101b8565b80610118575060005481115b6101535760405162461bcd60e51b815260040180806020018281038252602e8152602001806103ae602e913960400191505060405180910390fd5b60015460ff16158015610172576001805460ff19168117905560008290555b6608e1bc9bf04000603455801561018e576001805460ff191690555b505050565b60006101aa603454836101be90919063ffffffff16565b90505b92915050565b600190565b303b1590565b60006101aa670de0b6b3a76400006101ee6101df868663ffffffff6101fa16565b6706f05b59d3b2000090610253565b9063ffffffff6102ad16565b600082610209575060006101ad565b8282028284828161021657fe5b04146101aa5760405162461bcd60e51b815260040180806020018281038252602181526020018061038d6021913960400191505060405180910390fd5b6000828201838110156101aa576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006101aa83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250600081836103765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561033b578181015183820152602001610323565b50505050905090810190601f1680156103685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161038257fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a2646970667358221220b1f57d34e2488cabb196d838daf85a2a940face5fe23e3b0d48f388ca9f005b864736f6c63430006080033";

View File

@ -1,14 +1,18 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface FlashLoanReceiverBaseInterface extends Interface {
functions: {
addressesProvider: TypedFunctionDescription<{encode([]: []): string}>;
addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>;
executeOperation: TypedFunctionDescription<{
encode([_reserve, _destination, _amount, _fee, _params]: [
@ -31,7 +35,10 @@ export class FlashLoanReceiverBase extends Contract {
on(event: EventFilter | string, listener: Listener): FlashLoanReceiverBase;
once(event: EventFilter | string, listener: Listener): FlashLoanReceiverBase;
addListener(eventName: EventFilter | string, listener: Listener): FlashLoanReceiverBase;
addListener(
eventName: EventFilter | string,
listener: Listener
): FlashLoanReceiverBase;
removeAllListeners(eventName: EventFilter | string): FlashLoanReceiverBase;
removeListener(eventName: any, listener: Listener): FlashLoanReceiverBase;

View File

@ -1,14 +1,21 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {FlashLoanReceiverBase} from './FlashLoanReceiverBase';
import { FlashLoanReceiverBase } from "./FlashLoanReceiverBase";
export class FlashLoanReceiverBaseFactory {
static connect(address: string, signerOrProvider: Signer | Provider): FlashLoanReceiverBase {
return new Contract(address, _abi, signerOrProvider) as FlashLoanReceiverBase;
static connect(
address: string,
signerOrProvider: Signer | Provider
): FlashLoanReceiverBase {
return new Contract(
address,
_abi,
signerOrProvider
) as FlashLoanReceiverBase;
}
}
@ -16,62 +23,62 @@ const _abi = [
{
inputs: [
{
internalType: 'contract ILendingPoolAddressesProvider',
name: '_provider',
type: 'address',
},
internalType: "contract ILendingPoolAddressesProvider",
name: "_provider",
type: "address"
}
],
stateMutability: 'nonpayable',
type: 'constructor',
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: 'addressesProvider',
name: "addressesProvider",
outputs: [
{
internalType: 'contract ILendingPoolAddressesProvider',
name: '',
type: 'address',
},
internalType: "contract ILendingPoolAddressesProvider",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_reserve',
type: 'address',
internalType: "address",
name: "_reserve",
type: "address"
},
{
internalType: 'address',
name: '_destination',
type: 'address',
internalType: "address",
name: "_destination",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
internalType: "uint256",
name: "_amount",
type: "uint256"
},
{
internalType: 'uint256',
name: '_fee',
type: 'uint256',
internalType: "uint256",
name: "_fee",
type: "uint256"
},
{
internalType: 'bytes',
name: '_params',
type: 'bytes',
},
internalType: "bytes",
name: "_params",
type: "bytes"
}
],
name: 'executeOperation',
name: "executeOperation",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
stateMutability: 'payable',
type: 'receive',
},
stateMutability: "payable",
type: "receive"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface GenericLogicInterface extends Interface {
functions: {
@ -31,7 +35,10 @@ export class GenericLogic extends Contract {
on(event: EventFilter | string, listener: Listener): GenericLogic;
once(event: EventFilter | string, listener: Listener): GenericLogic;
addListener(eventName: EventFilter | string, listener: Listener): GenericLogic;
addListener(
eventName: EventFilter | string,
listener: Listener
): GenericLogic;
removeAllListeners(eventName: EventFilter | string): GenericLogic;
removeListener(eventName: any, listener: Listener): GenericLogic;

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface GenericOracleIInterface extends Interface {
functions: {
@ -12,7 +16,7 @@ interface GenericOracleIInterface extends Interface {
encode([_asset]: [string]): string;
}>;
getEthUsdPrice: TypedFunctionDescription<{encode([]: []): string}>;
getEthUsdPrice: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
@ -42,7 +46,10 @@ export class GenericOracleI extends Contract {
on(event: EventFilter | string, listener: Listener): GenericOracleI;
once(event: EventFilter | string, listener: Listener): GenericOracleI;
addListener(eventName: EventFilter | string, listener: Listener): GenericOracleI;
addListener(
eventName: EventFilter | string,
listener: Listener
): GenericOracleI;
removeAllListeners(eventName: EventFilter | string): GenericOracleI;
removeListener(eventName: any, listener: Listener): GenericOracleI;

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {GenericOracleI} from './GenericOracleI';
import { GenericOracleI } from "./GenericOracleI";
export class GenericOracleIFactory {
static connect(address: string, signerOrProvider: Signer | Provider): GenericOracleI {
static connect(
address: string,
signerOrProvider: Signer | Provider
): GenericOracleI {
return new Contract(address, _abi, signerOrProvider) as GenericOracleI;
}
}
@ -18,106 +21,106 @@ const _abi = [
inputs: [
{
indexed: false,
internalType: 'address',
name: '_asset',
type: 'address',
internalType: "address",
name: "_asset",
type: "address"
},
{
indexed: false,
internalType: 'uint256',
name: '_price',
type: 'uint256',
internalType: "uint256",
name: "_price",
type: "uint256"
},
{
indexed: false,
internalType: 'uint256',
name: 'timestamp',
type: 'uint256',
},
internalType: "uint256",
name: "timestamp",
type: "uint256"
}
],
name: 'AssetPriceUpdated',
type: 'event',
name: "AssetPriceUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: '_price',
type: 'uint256',
internalType: "uint256",
name: "_price",
type: "uint256"
},
{
indexed: false,
internalType: 'uint256',
name: 'timestamp',
type: 'uint256',
},
internalType: "uint256",
name: "timestamp",
type: "uint256"
}
],
name: 'EthPriceUpdated',
type: 'event',
name: "EthPriceUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: '_sybil',
type: 'address',
internalType: "address",
name: "_sybil",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: '_asset',
type: 'address',
internalType: "address",
name: "_asset",
type: "address"
},
{
indexed: false,
internalType: 'uint96',
name: '_sybilProphecy',
type: 'uint96',
internalType: "uint96",
name: "_sybilProphecy",
type: "uint96"
},
{
indexed: false,
internalType: 'uint96',
name: '_oracleProphecy',
type: 'uint96',
},
internalType: "uint96",
name: "_oracleProphecy",
type: "uint96"
}
],
name: 'ProphecySubmitted',
type: 'event',
name: "ProphecySubmitted",
type: "event"
},
{
inputs: [
{
internalType: 'address',
name: '_asset',
type: 'address',
},
internalType: "address",
name: "_asset",
type: "address"
}
],
name: 'getAssetPrice',
name: "getAssetPrice",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getEthUsdPrice',
name: "getEthUsdPrice",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IChainlinkAggregatorInterface extends Interface {
functions: {
@ -16,11 +20,11 @@ interface IChainlinkAggregatorInterface extends Interface {
encode([roundId]: [BigNumberish]): string;
}>;
latestAnswer: TypedFunctionDescription<{encode([]: []): string}>;
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
latestRound: TypedFunctionDescription<{encode([]: []): string}>;
latestRound: TypedFunctionDescription<{ encode([]: []): string }>;
latestTimestamp: TypedFunctionDescription<{encode([]: []): string}>;
latestTimestamp: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
@ -33,7 +37,10 @@ interface IChainlinkAggregatorInterface extends Interface {
}>;
NewRound: TypedEventDescription<{
encodeTopics([roundId, startedBy]: [BigNumberish | null, string | null]): string[];
encodeTopics([roundId, startedBy]: [
BigNumberish | null,
string | null
]): string[];
}>;
};
}
@ -45,7 +52,10 @@ export class IChainlinkAggregator extends Contract {
on(event: EventFilter | string, listener: Listener): IChainlinkAggregator;
once(event: EventFilter | string, listener: Listener): IChainlinkAggregator;
addListener(eventName: EventFilter | string, listener: Listener): IChainlinkAggregator;
addListener(
eventName: EventFilter | string,
listener: Listener
): IChainlinkAggregator;
removeAllListeners(eventName: EventFilter | string): IChainlinkAggregator;
removeListener(eventName: any, listener: Listener): IChainlinkAggregator;
@ -80,7 +90,10 @@ export class IChainlinkAggregator extends Contract {
timestamp: null
): EventFilter;
NewRound(roundId: BigNumberish | null, startedBy: string | null): EventFilter;
NewRound(
roundId: BigNumberish | null,
startedBy: string | null
): EventFilter;
};
estimate: {

View File

@ -1,14 +1,21 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IChainlinkAggregator} from './IChainlinkAggregator';
import { IChainlinkAggregator } from "./IChainlinkAggregator";
export class IChainlinkAggregatorFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IChainlinkAggregator {
return new Contract(address, _abi, signerOrProvider) as IChainlinkAggregator;
static connect(
address: string,
signerOrProvider: Signer | Provider
): IChainlinkAggregator {
return new Contract(
address,
_abi,
signerOrProvider
) as IChainlinkAggregator;
}
}
@ -18,120 +25,120 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'int256',
name: 'current',
type: 'int256',
internalType: "int256",
name: "current",
type: "int256"
},
{
indexed: true,
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
internalType: "uint256",
name: "roundId",
type: "uint256"
},
{
indexed: false,
internalType: 'uint256',
name: 'timestamp',
type: 'uint256',
},
internalType: "uint256",
name: "timestamp",
type: "uint256"
}
],
name: 'AnswerUpdated',
type: 'event',
name: "AnswerUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
internalType: "uint256",
name: "roundId",
type: "uint256"
},
{
indexed: true,
internalType: 'address',
name: 'startedBy',
type: 'address',
},
internalType: "address",
name: "startedBy",
type: "address"
}
],
name: 'NewRound',
type: 'event',
name: "NewRound",
type: "event"
},
{
inputs: [
{
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
},
internalType: "uint256",
name: "roundId",
type: "uint256"
}
],
name: 'getAnswer',
name: "getAnswer",
outputs: [
{
internalType: 'int256',
name: '',
type: 'int256',
},
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
},
internalType: "uint256",
name: "roundId",
type: "uint256"
}
],
name: 'getTimestamp',
name: "getTimestamp",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'latestAnswer',
name: "latestAnswer",
outputs: [
{
internalType: 'int256',
name: '',
type: 'int256',
},
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'latestRound',
name: "latestRound",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'latestTimestamp',
name: "latestTimestamp",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IExchangeAdapterInterface extends Interface {
functions: {
@ -42,7 +46,10 @@ export class IExchangeAdapter extends Contract {
on(event: EventFilter | string, listener: Listener): IExchangeAdapter;
once(event: EventFilter | string, listener: Listener): IExchangeAdapter;
addListener(eventName: EventFilter | string, listener: Listener): IExchangeAdapter;
addListener(
eventName: EventFilter | string,
listener: Listener
): IExchangeAdapter;
removeAllListeners(eventName: EventFilter | string): IExchangeAdapter;
removeListener(eventName: any, listener: Listener): IExchangeAdapter;

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IExchangeAdapter} from './IExchangeAdapter';
import { IExchangeAdapter } from "./IExchangeAdapter";
export class IExchangeAdapterFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IExchangeAdapter {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IExchangeAdapter {
return new Contract(address, _abi, signerOrProvider) as IExchangeAdapter;
}
}
@ -18,83 +21,83 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'address',
name: 'from',
type: 'address',
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'to',
type: 'address',
internalType: "address",
name: "to",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'platform',
type: 'address',
internalType: "address",
name: "platform",
type: "address"
},
{
indexed: false,
internalType: 'uint256',
name: 'fromAmount',
type: 'uint256',
internalType: "uint256",
name: "fromAmount",
type: "uint256"
},
{
indexed: false,
internalType: 'uint256',
name: 'toAmount',
type: 'uint256',
},
internalType: "uint256",
name: "toAmount",
type: "uint256"
}
],
name: 'Exchange',
type: 'event',
name: "Exchange",
type: "event"
},
{
inputs: [
{
internalType: 'contract IERC20[]',
name: '_tokens',
type: 'address[]',
},
internalType: "contract IERC20[]",
name: "_tokens",
type: "address[]"
}
],
name: 'approveExchange',
name: "approveExchange",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_from',
type: 'address',
internalType: "address",
name: "_from",
type: "address"
},
{
internalType: 'address',
name: '_to',
type: 'address',
internalType: "address",
name: "_to",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
internalType: "uint256",
name: "_amount",
type: "uint256"
},
{
internalType: 'uint256',
name: '_maxSlippage',
type: 'uint256',
},
internalType: "uint256",
name: "_maxSlippage",
type: "uint256"
}
],
name: 'exchange',
name: "exchange",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

View File

@ -1,22 +1,26 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IExtendedPriceAggregatorInterface extends Interface {
functions: {
getPlatformId: TypedFunctionDescription<{encode([]: []): string}>;
getPlatformId: TypedFunctionDescription<{ encode([]: []): string }>;
getSubTokens: TypedFunctionDescription<{encode([]: []): string}>;
getSubTokens: TypedFunctionDescription<{ encode([]: []): string }>;
getToken: TypedFunctionDescription<{encode([]: []): string}>;
getToken: TypedFunctionDescription<{ encode([]: []): string }>;
getTokenType: TypedFunctionDescription<{encode([]: []): string}>;
getTokenType: TypedFunctionDescription<{ encode([]: []): string }>;
latestAnswer: TypedFunctionDescription<{encode([]: []): string}>;
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {
@ -31,13 +35,21 @@ interface IExtendedPriceAggregatorInterface extends Interface {
}
export class IExtendedPriceAggregator extends Contract {
connect(signerOrProvider: Signer | Provider | string): IExtendedPriceAggregator;
connect(
signerOrProvider: Signer | Provider | string
): IExtendedPriceAggregator;
attach(addressOrName: string): IExtendedPriceAggregator;
deployed(): Promise<IExtendedPriceAggregator>;
on(event: EventFilter | string, listener: Listener): IExtendedPriceAggregator;
once(event: EventFilter | string, listener: Listener): IExtendedPriceAggregator;
addListener(eventName: EventFilter | string, listener: Listener): IExtendedPriceAggregator;
once(
event: EventFilter | string,
listener: Listener
): IExtendedPriceAggregator;
addListener(
eventName: EventFilter | string,
listener: Listener
): IExtendedPriceAggregator;
removeAllListeners(eventName: EventFilter | string): IExtendedPriceAggregator;
removeListener(eventName: any, listener: Listener): IExtendedPriceAggregator;

View File

@ -1,14 +1,21 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IExtendedPriceAggregator} from './IExtendedPriceAggregator';
import { IExtendedPriceAggregator } from "./IExtendedPriceAggregator";
export class IExtendedPriceAggregatorFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IExtendedPriceAggregator {
return new Contract(address, _abi, signerOrProvider) as IExtendedPriceAggregator;
static connect(
address: string,
signerOrProvider: Signer | Provider
): IExtendedPriceAggregator {
return new Contract(
address,
_abi,
signerOrProvider
) as IExtendedPriceAggregator;
}
}
@ -18,89 +25,89 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'int256',
name: 'current',
type: 'int256',
internalType: "int256",
name: "current",
type: "int256"
},
{
indexed: true,
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
internalType: "uint256",
name: "roundId",
type: "uint256"
},
{
indexed: false,
internalType: 'uint256',
name: 'timestamp',
type: 'uint256',
},
internalType: "uint256",
name: "timestamp",
type: "uint256"
}
],
name: 'AnswerUpdated',
type: 'event',
name: "AnswerUpdated",
type: "event"
},
{
inputs: [],
name: 'getPlatformId',
name: "getPlatformId",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getSubTokens',
name: "getSubTokens",
outputs: [
{
internalType: 'address[]',
name: '',
type: 'address[]',
},
internalType: "address[]",
name: "",
type: "address[]"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getToken',
name: "getToken",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getTokenType',
name: "getTokenType",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'latestAnswer',
name: "latestAnswer",
outputs: [
{
internalType: 'int256',
name: '',
type: 'int256',
},
internalType: "int256",
name: "",
type: "int256"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IFeeProviderInterface extends Interface {
functions: {
@ -27,26 +31,38 @@ export class IFeeProvider extends Contract {
on(event: EventFilter | string, listener: Listener): IFeeProvider;
once(event: EventFilter | string, listener: Listener): IFeeProvider;
addListener(eventName: EventFilter | string, listener: Listener): IFeeProvider;
addListener(
eventName: EventFilter | string,
listener: Listener
): IFeeProvider;
removeAllListeners(eventName: EventFilter | string): IFeeProvider;
removeListener(eventName: any, listener: Listener): IFeeProvider;
interface: IFeeProviderInterface;
functions: {
calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise<BigNumber>;
calculateLoanOriginationFee(
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
getLoanOriginationFeePercentage(): Promise<BigNumber>;
};
calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise<BigNumber>;
calculateLoanOriginationFee(
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
getLoanOriginationFeePercentage(): Promise<BigNumber>;
filters: {};
estimate: {
calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise<BigNumber>;
calculateLoanOriginationFee(
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
getLoanOriginationFeePercentage(): Promise<BigNumber>;
};

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IFeeProvider} from './IFeeProvider';
import { IFeeProvider } from "./IFeeProvider";
export class IFeeProviderFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IFeeProvider {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFeeProvider {
return new Contract(address, _abi, signerOrProvider) as IFeeProvider;
}
}
@ -16,38 +19,38 @@ const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
internalType: "address",
name: "_user",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: 'calculateLoanOriginationFee',
name: "calculateLoanOriginationFee",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getLoanOriginationFeePercentage',
name: "getLoanOriginationFeePercentage",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IFlashLoanReceiverInterface extends Interface {
functions: {
@ -29,7 +33,10 @@ export class IFlashLoanReceiver extends Contract {
on(event: EventFilter | string, listener: Listener): IFlashLoanReceiver;
once(event: EventFilter | string, listener: Listener): IFlashLoanReceiver;
addListener(eventName: EventFilter | string, listener: Listener): IFlashLoanReceiver;
addListener(
eventName: EventFilter | string,
listener: Listener
): IFlashLoanReceiver;
removeAllListeners(eventName: EventFilter | string): IFlashLoanReceiver;
removeListener(eventName: any, listener: Listener): IFlashLoanReceiver;

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IFlashLoanReceiver} from './IFlashLoanReceiver';
import { IFlashLoanReceiver } from "./IFlashLoanReceiver";
export class IFlashLoanReceiverFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IFlashLoanReceiver {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFlashLoanReceiver {
return new Contract(address, _abi, signerOrProvider) as IFlashLoanReceiver;
}
}
@ -16,34 +19,34 @@ const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_reserve',
type: 'address',
internalType: "address",
name: "_reserve",
type: "address"
},
{
internalType: 'address',
name: '_destination',
type: 'address',
internalType: "address",
name: "_destination",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
internalType: "uint256",
name: "_amount",
type: "uint256"
},
{
internalType: 'uint256',
name: '_fee',
type: 'uint256',
internalType: "uint256",
name: "_fee",
type: "uint256"
},
{
internalType: 'bytes',
name: '_params',
type: 'bytes',
},
internalType: "bytes",
name: "_params",
type: "bytes"
}
],
name: 'executeOperation',
name: "executeOperation",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

View File

@ -1,14 +1,18 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IKyberNetworkProxyInterfaceInterface extends Interface {
functions: {
enabled: TypedFunctionDescription<{encode([]: []): string}>;
enabled: TypedFunctionDescription<{ encode([]: []): string }>;
getExpectedRate: TypedFunctionDescription<{
encode([src, dest, srcQty]: [string, string, BigNumberish]): string;
@ -22,9 +26,9 @@ interface IKyberNetworkProxyInterfaceInterface extends Interface {
encode([user]: [string]): string;
}>;
info: TypedFunctionDescription<{encode([id]: [Arrayish]): string}>;
info: TypedFunctionDescription<{ encode([id]: [Arrayish]): string }>;
maxGasPrice: TypedFunctionDescription<{encode([]: []): string}>;
maxGasPrice: TypedFunctionDescription<{ encode([]: []): string }>;
tradeWithHint: TypedFunctionDescription<{
encode([
@ -35,7 +39,7 @@ interface IKyberNetworkProxyInterfaceInterface extends Interface {
maxDestAmount,
minConversionRate,
walletId,
hint,
hint
]: [
string,
BigNumberish,
@ -53,15 +57,31 @@ interface IKyberNetworkProxyInterfaceInterface extends Interface {
}
export class IKyberNetworkProxyInterface extends Contract {
connect(signerOrProvider: Signer | Provider | string): IKyberNetworkProxyInterface;
connect(
signerOrProvider: Signer | Provider | string
): IKyberNetworkProxyInterface;
attach(addressOrName: string): IKyberNetworkProxyInterface;
deployed(): Promise<IKyberNetworkProxyInterface>;
on(event: EventFilter | string, listener: Listener): IKyberNetworkProxyInterface;
once(event: EventFilter | string, listener: Listener): IKyberNetworkProxyInterface;
addListener(eventName: EventFilter | string, listener: Listener): IKyberNetworkProxyInterface;
removeAllListeners(eventName: EventFilter | string): IKyberNetworkProxyInterface;
removeListener(eventName: any, listener: Listener): IKyberNetworkProxyInterface;
on(
event: EventFilter | string,
listener: Listener
): IKyberNetworkProxyInterface;
once(
event: EventFilter | string,
listener: Listener
): IKyberNetworkProxyInterface;
addListener(
eventName: EventFilter | string,
listener: Listener
): IKyberNetworkProxyInterface;
removeAllListeners(
eventName: EventFilter | string
): IKyberNetworkProxyInterface;
removeListener(
eventName: any,
listener: Listener
): IKyberNetworkProxyInterface;
interface: IKyberNetworkProxyInterfaceInterface;
@ -138,7 +158,11 @@ export class IKyberNetworkProxyInterface extends Contract {
estimate: {
enabled(): Promise<BigNumber>;
getExpectedRate(src: string, dest: string, srcQty: BigNumberish): Promise<BigNumber>;
getExpectedRate(
src: string,
dest: string,
srcQty: BigNumberish
): Promise<BigNumber>;
getUserCapInTokenWei(user: string, token: string): Promise<BigNumber>;

View File

@ -1,195 +1,199 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IKyberNetworkProxyInterface} from './IKyberNetworkProxyInterface';
import { IKyberNetworkProxyInterface } from "./IKyberNetworkProxyInterface";
export class IKyberNetworkProxyInterfaceFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IKyberNetworkProxyInterface {
return new Contract(address, _abi, signerOrProvider) as IKyberNetworkProxyInterface;
return new Contract(
address,
_abi,
signerOrProvider
) as IKyberNetworkProxyInterface;
}
}
const _abi = [
{
inputs: [],
name: 'enabled',
name: "enabled",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'contract IERC20',
name: 'src',
type: 'address',
internalType: "contract IERC20",
name: "src",
type: "address"
},
{
internalType: 'contract IERC20',
name: 'dest',
type: 'address',
internalType: "contract IERC20",
name: "dest",
type: "address"
},
{
internalType: 'uint256',
name: 'srcQty',
type: 'uint256',
},
internalType: "uint256",
name: "srcQty",
type: "uint256"
}
],
name: 'getExpectedRate',
name: "getExpectedRate",
outputs: [
{
internalType: 'uint256',
name: 'expectedRate',
type: 'uint256',
internalType: "uint256",
name: "expectedRate",
type: "uint256"
},
{
internalType: 'uint256',
name: 'slippageRate',
type: 'uint256',
},
internalType: "uint256",
name: "slippageRate",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'user',
type: 'address',
internalType: "address",
name: "user",
type: "address"
},
{
internalType: 'contract IERC20',
name: 'token',
type: 'address',
},
internalType: "contract IERC20",
name: "token",
type: "address"
}
],
name: 'getUserCapInTokenWei',
name: "getUserCapInTokenWei",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'user',
type: 'address',
},
internalType: "address",
name: "user",
type: "address"
}
],
name: 'getUserCapInWei',
name: "getUserCapInWei",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'bytes32',
name: 'id',
type: 'bytes32',
},
internalType: "bytes32",
name: "id",
type: "bytes32"
}
],
name: 'info',
name: "info",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'maxGasPrice',
name: "maxGasPrice",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'contract IERC20',
name: 'src',
type: 'address',
internalType: "contract IERC20",
name: "src",
type: "address"
},
{
internalType: 'uint256',
name: 'srcAmount',
type: 'uint256',
internalType: "uint256",
name: "srcAmount",
type: "uint256"
},
{
internalType: 'contract IERC20',
name: 'dest',
type: 'address',
internalType: "contract IERC20",
name: "dest",
type: "address"
},
{
internalType: 'address',
name: 'destAddress',
type: 'address',
internalType: "address",
name: "destAddress",
type: "address"
},
{
internalType: 'uint256',
name: 'maxDestAmount',
type: 'uint256',
internalType: "uint256",
name: "maxDestAmount",
type: "uint256"
},
{
internalType: 'uint256',
name: 'minConversionRate',
type: 'uint256',
internalType: "uint256",
name: "minConversionRate",
type: "uint256"
},
{
internalType: 'address',
name: 'walletId',
type: 'address',
internalType: "address",
name: "walletId",
type: "address"
},
{
internalType: 'bytes',
name: 'hint',
type: 'bytes',
},
internalType: "bytes",
name: "hint",
type: "bytes"
}
],
name: 'tradeWithHint',
name: "tradeWithHint",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'payable',
type: 'function',
},
stateMutability: "payable",
type: "function"
}
];

View File

@ -1,16 +1,20 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface ILendingPoolAddressesProviderInterface extends Interface {
functions: {
getFeeProvider: TypedFunctionDescription<{encode([]: []): string}>;
getFeeProvider: TypedFunctionDescription<{ encode([]: []): string }>;
getLendingPool: TypedFunctionDescription<{encode([]: []): string}>;
getLendingPool: TypedFunctionDescription<{ encode([]: []): string }>;
getLendingPoolConfigurator: TypedFunctionDescription<{
encode([]: []): string;
@ -20,13 +24,13 @@ interface ILendingPoolAddressesProviderInterface extends Interface {
encode([]: []): string;
}>;
getLendingPoolManager: TypedFunctionDescription<{encode([]: []): string}>;
getLendingPoolManager: TypedFunctionDescription<{ encode([]: []): string }>;
getLendingRateOracle: TypedFunctionDescription<{encode([]: []): string}>;
getLendingRateOracle: TypedFunctionDescription<{ encode([]: []): string }>;
getPriceOracle: TypedFunctionDescription<{encode([]: []): string}>;
getPriceOracle: TypedFunctionDescription<{ encode([]: []): string }>;
getTokenDistributor: TypedFunctionDescription<{encode([]: []): string}>;
getTokenDistributor: TypedFunctionDescription<{ encode([]: []): string }>;
setFeeProviderImpl: TypedFunctionDescription<{
encode([_feeProvider]: [string]): string;
@ -65,15 +69,31 @@ interface ILendingPoolAddressesProviderInterface extends Interface {
}
export class ILendingPoolAddressesProvider extends Contract {
connect(signerOrProvider: Signer | Provider | string): ILendingPoolAddressesProvider;
connect(
signerOrProvider: Signer | Provider | string
): ILendingPoolAddressesProvider;
attach(addressOrName: string): ILendingPoolAddressesProvider;
deployed(): Promise<ILendingPoolAddressesProvider>;
on(event: EventFilter | string, listener: Listener): ILendingPoolAddressesProvider;
once(event: EventFilter | string, listener: Listener): ILendingPoolAddressesProvider;
addListener(eventName: EventFilter | string, listener: Listener): ILendingPoolAddressesProvider;
removeAllListeners(eventName: EventFilter | string): ILendingPoolAddressesProvider;
removeListener(eventName: any, listener: Listener): ILendingPoolAddressesProvider;
on(
event: EventFilter | string,
listener: Listener
): ILendingPoolAddressesProvider;
once(
event: EventFilter | string,
listener: Listener
): ILendingPoolAddressesProvider;
addListener(
eventName: EventFilter | string,
listener: Listener
): ILendingPoolAddressesProvider;
removeAllListeners(
eventName: EventFilter | string
): ILendingPoolAddressesProvider;
removeListener(
eventName: any,
listener: Listener
): ILendingPoolAddressesProvider;
interface: ILendingPoolAddressesProviderInterface;
@ -161,7 +181,10 @@ export class ILendingPoolAddressesProvider extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setLendingPoolImpl(_pool: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
setLendingPoolImpl(
_pool: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setLendingPoolLiquidationManager(
_manager: string,

View File

@ -1,227 +1,231 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {ILendingPoolAddressesProvider} from './ILendingPoolAddressesProvider';
import { ILendingPoolAddressesProvider } from "./ILendingPoolAddressesProvider";
export class ILendingPoolAddressesProviderFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): ILendingPoolAddressesProvider {
return new Contract(address, _abi, signerOrProvider) as ILendingPoolAddressesProvider;
return new Contract(
address,
_abi,
signerOrProvider
) as ILendingPoolAddressesProvider;
}
}
const _abi = [
{
inputs: [],
name: 'getFeeProvider',
name: "getFeeProvider",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getLendingPool',
name: "getLendingPool",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getLendingPoolConfigurator',
name: "getLendingPoolConfigurator",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getLendingPoolLiquidationManager',
name: "getLendingPoolLiquidationManager",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getLendingPoolManager',
name: "getLendingPoolManager",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getLendingRateOracle',
name: "getLendingRateOracle",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getPriceOracle',
name: "getPriceOracle",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getTokenDistributor',
name: "getTokenDistributor",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_feeProvider',
type: 'address',
},
internalType: "address",
name: "_feeProvider",
type: "address"
}
],
name: 'setFeeProviderImpl',
name: "setFeeProviderImpl",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_configurator',
type: 'address',
},
internalType: "address",
name: "_configurator",
type: "address"
}
],
name: 'setLendingPoolConfiguratorImpl',
name: "setLendingPoolConfiguratorImpl",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_pool',
type: 'address',
},
internalType: "address",
name: "_pool",
type: "address"
}
],
name: 'setLendingPoolImpl',
name: "setLendingPoolImpl",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_manager',
type: 'address',
},
internalType: "address",
name: "_manager",
type: "address"
}
],
name: 'setLendingPoolLiquidationManager',
name: "setLendingPoolLiquidationManager",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_lendingPoolManager',
type: 'address',
},
internalType: "address",
name: "_lendingPoolManager",
type: "address"
}
],
name: 'setLendingPoolManager',
name: "setLendingPoolManager",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_lendingRateOracle',
type: 'address',
},
internalType: "address",
name: "_lendingRateOracle",
type: "address"
}
],
name: 'setLendingRateOracle',
name: "setLendingRateOracle",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_priceOracle',
type: 'address',
},
internalType: "address",
name: "_priceOracle",
type: "address"
}
],
name: 'setPriceOracle',
name: "setPriceOracle",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_tokenDistributor',
type: 'address',
},
internalType: "address",
name: "_tokenDistributor",
type: "address"
}
],
name: 'setTokenDistributor',
name: "setTokenDistributor",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface ILendingPoolAddressesProviderRegistryInterface extends Interface {
functions: {
@ -29,18 +33,31 @@ interface ILendingPoolAddressesProviderRegistryInterface extends Interface {
}
export class ILendingPoolAddressesProviderRegistry extends Contract {
connect(signerOrProvider: Signer | Provider | string): ILendingPoolAddressesProviderRegistry;
connect(
signerOrProvider: Signer | Provider | string
): ILendingPoolAddressesProviderRegistry;
attach(addressOrName: string): ILendingPoolAddressesProviderRegistry;
deployed(): Promise<ILendingPoolAddressesProviderRegistry>;
on(event: EventFilter | string, listener: Listener): ILendingPoolAddressesProviderRegistry;
once(event: EventFilter | string, listener: Listener): ILendingPoolAddressesProviderRegistry;
on(
event: EventFilter | string,
listener: Listener
): ILendingPoolAddressesProviderRegistry;
once(
event: EventFilter | string,
listener: Listener
): ILendingPoolAddressesProviderRegistry;
addListener(
eventName: EventFilter | string,
listener: Listener
): ILendingPoolAddressesProviderRegistry;
removeAllListeners(eventName: EventFilter | string): ILendingPoolAddressesProviderRegistry;
removeListener(eventName: any, listener: Listener): ILendingPoolAddressesProviderRegistry;
removeAllListeners(
eventName: EventFilter | string
): ILendingPoolAddressesProviderRegistry;
removeListener(
eventName: any,
listener: Listener
): ILendingPoolAddressesProviderRegistry;
interface: ILendingPoolAddressesProviderRegistryInterface;
@ -83,7 +100,10 @@ export class ILendingPoolAddressesProviderRegistry extends Contract {
isAddressesProviderRegistered(_provider: string): Promise<BigNumber>;
registerAddressesProvider(_provider: string, _id: BigNumberish): Promise<BigNumber>;
registerAddressesProvider(
_provider: string,
_id: BigNumberish
): Promise<BigNumber>;
unregisterAddressesProvider(_provider: string): Promise<BigNumber>;
};

View File

@ -1,82 +1,86 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {ILendingPoolAddressesProviderRegistry} from './ILendingPoolAddressesProviderRegistry';
import { ILendingPoolAddressesProviderRegistry } from "./ILendingPoolAddressesProviderRegistry";
export class ILendingPoolAddressesProviderRegistryFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): ILendingPoolAddressesProviderRegistry {
return new Contract(address, _abi, signerOrProvider) as ILendingPoolAddressesProviderRegistry;
return new Contract(
address,
_abi,
signerOrProvider
) as ILendingPoolAddressesProviderRegistry;
}
}
const _abi = [
{
inputs: [],
name: 'getAddressesProvidersList',
name: "getAddressesProvidersList",
outputs: [
{
internalType: 'address[]',
name: '',
type: 'address[]',
},
internalType: "address[]",
name: "",
type: "address[]"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_provider',
type: 'address',
},
internalType: "address",
name: "_provider",
type: "address"
}
],
name: 'isAddressesProviderRegistered',
name: "isAddressesProviderRegistered",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_provider',
type: 'address',
internalType: "address",
name: "_provider",
type: "address"
},
{
internalType: 'uint256',
name: '_id',
type: 'uint256',
},
internalType: "uint256",
name: "_id",
type: "uint256"
}
],
name: 'registerAddressesProvider',
name: "registerAddressesProvider",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_provider',
type: 'address',
},
internalType: "address",
name: "_provider",
type: "address"
}
],
name: 'unregisterAddressesProvider',
name: "unregisterAddressesProvider",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface ILendingRateOracleInterface extends Interface {
functions: {
@ -27,7 +31,10 @@ export class ILendingRateOracle extends Contract {
on(event: EventFilter | string, listener: Listener): ILendingRateOracle;
once(event: EventFilter | string, listener: Listener): ILendingRateOracle;
addListener(eventName: EventFilter | string, listener: Listener): ILendingRateOracle;
addListener(
eventName: EventFilter | string,
listener: Listener
): ILendingRateOracle;
removeAllListeners(eventName: EventFilter | string): ILendingRateOracle;
removeListener(eventName: any, listener: Listener): ILendingRateOracle;
@ -56,6 +63,9 @@ export class ILendingRateOracle extends Contract {
estimate: {
getMarketBorrowRate(_asset: string): Promise<BigNumber>;
setMarketBorrowRate(_asset: string, _rate: BigNumberish): Promise<BigNumber>;
setMarketBorrowRate(
_asset: string,
_rate: BigNumberish
): Promise<BigNumber>;
};
}

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {ILendingRateOracle} from './ILendingRateOracle';
import { ILendingRateOracle } from "./ILendingRateOracle";
export class ILendingRateOracleFactory {
static connect(address: string, signerOrProvider: Signer | Provider): ILendingRateOracle {
static connect(
address: string,
signerOrProvider: Signer | Provider
): ILendingRateOracle {
return new Contract(address, _abi, signerOrProvider) as ILendingRateOracle;
}
}
@ -16,38 +19,38 @@ const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_asset',
type: 'address',
},
internalType: "address",
name: "_asset",
type: "address"
}
],
name: 'getMarketBorrowRate',
name: "getMarketBorrowRate",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_asset',
type: 'address',
internalType: "address",
name: "_asset",
type: "address"
},
{
internalType: 'uint256',
name: '_rate',
type: 'uint256',
},
internalType: "uint256",
name: "_rate",
type: "uint256"
}
],
name: 'setMarketBorrowRate',
name: "setMarketBorrowRate",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

45
types/IOneSplit.d.ts vendored
View File

@ -1,28 +1,32 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IOneSplitInterface extends Interface {
functions: {
FLAG_AAVE: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_AAVE: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_BANCOR: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_BANCOR: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_BDAI: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_BDAI: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_CHAI: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_CHAI: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_COMPOUND: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_COMPOUND: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_FULCRUM: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_FULCRUM: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_IEARN: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_IEARN: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_KYBER: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_KYBER: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_KYBER_BANCOR_RESERVE: TypedFunctionDescription<{
encode([]: []): string;
@ -36,13 +40,13 @@ interface IOneSplitInterface extends Interface {
encode([]: []): string;
}>;
FLAG_MULTI_PATH_ETH: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_MULTI_PATH_ETH: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_OASIS: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_OASIS: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_SMART_TOKEN: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_SMART_TOKEN: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_UNISWAP: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_UNISWAP: TypedFunctionDescription<{ encode([]: []): string }>;
getExpectedReturn: TypedFunctionDescription<{
encode([fromToken, toToken, amount, parts, disableFlags]: [
@ -66,7 +70,14 @@ interface IOneSplitInterface extends Interface {
}>;
swap: TypedFunctionDescription<{
encode([fromToken, toToken, amount, minReturn, distribution, disableFlags]: [
encode([
fromToken,
toToken,
amount,
minReturn,
distribution,
disableFlags
]: [
string,
string,
BigNumberish,

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IOneSplit} from './IOneSplit';
import { IOneSplit } from "./IOneSplit";
export class IOneSplitFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IOneSplit {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IOneSplit {
return new Contract(address, _abi, signerOrProvider) as IOneSplit;
}
}
@ -15,317 +18,317 @@ export class IOneSplitFactory {
const _abi = [
{
inputs: [],
name: 'FLAG_AAVE',
name: "FLAG_AAVE",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_BANCOR',
name: "FLAG_BANCOR",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_BDAI',
name: "FLAG_BDAI",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_CHAI',
name: "FLAG_CHAI",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_COMPOUND',
name: "FLAG_COMPOUND",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_FULCRUM',
name: "FLAG_FULCRUM",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_IEARN',
name: "FLAG_IEARN",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_KYBER',
name: "FLAG_KYBER",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_KYBER_BANCOR_RESERVE',
name: "FLAG_KYBER_BANCOR_RESERVE",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_KYBER_OASIS_RESERVE',
name: "FLAG_KYBER_OASIS_RESERVE",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_KYBER_UNISWAP_RESERVE',
name: "FLAG_KYBER_UNISWAP_RESERVE",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_MULTI_PATH_ETH',
name: "FLAG_MULTI_PATH_ETH",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_OASIS',
name: "FLAG_OASIS",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_SMART_TOKEN',
name: "FLAG_SMART_TOKEN",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_UNISWAP',
name: "FLAG_UNISWAP",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'contract IERC20',
name: 'fromToken',
type: 'address',
internalType: "contract IERC20",
name: "fromToken",
type: "address"
},
{
internalType: 'contract IERC20',
name: 'toToken',
type: 'address',
internalType: "contract IERC20",
name: "toToken",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: 'uint256',
name: 'parts',
type: 'uint256',
internalType: "uint256",
name: "parts",
type: "uint256"
},
{
internalType: 'uint256',
name: 'disableFlags',
type: 'uint256',
},
internalType: "uint256",
name: "disableFlags",
type: "uint256"
}
],
name: 'getExpectedReturn',
name: "getExpectedReturn",
outputs: [
{
internalType: 'uint256',
name: 'returnAmount',
type: 'uint256',
internalType: "uint256",
name: "returnAmount",
type: "uint256"
},
{
internalType: 'uint256[]',
name: 'distribution',
type: 'uint256[]',
},
internalType: "uint256[]",
name: "distribution",
type: "uint256[]"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'contract IERC20',
name: 'fromToken',
type: 'address',
internalType: "contract IERC20",
name: "fromToken",
type: "address"
},
{
internalType: 'contract IERC20',
name: 'toToken',
type: 'address',
internalType: "contract IERC20",
name: "toToken",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: 'uint256',
name: 'minReturn',
type: 'uint256',
internalType: "uint256",
name: "minReturn",
type: "uint256"
},
{
internalType: 'uint256',
name: 'parts',
type: 'uint256',
internalType: "uint256",
name: "parts",
type: "uint256"
},
{
internalType: 'uint256',
name: 'disableFlags',
type: 'uint256',
},
internalType: "uint256",
name: "disableFlags",
type: "uint256"
}
],
name: 'goodSwap',
name: "goodSwap",
outputs: [],
stateMutability: 'payable',
type: 'function',
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: 'contract IERC20',
name: 'fromToken',
type: 'address',
internalType: "contract IERC20",
name: "fromToken",
type: "address"
},
{
internalType: 'contract IERC20',
name: 'toToken',
type: 'address',
internalType: "contract IERC20",
name: "toToken",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: 'uint256',
name: 'minReturn',
type: 'uint256',
internalType: "uint256",
name: "minReturn",
type: "uint256"
},
{
internalType: 'uint256[]',
name: 'distribution',
type: 'uint256[]',
internalType: "uint256[]",
name: "distribution",
type: "uint256[]"
},
{
internalType: 'uint256',
name: 'disableFlags',
type: 'uint256',
},
internalType: "uint256",
name: "disableFlags",
type: "uint256"
}
],
name: 'swap',
name: "swap",
outputs: [],
stateMutability: 'payable',
type: 'function',
},
stateMutability: "payable",
type: "function"
}
];

View File

@ -1,28 +1,32 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IOneSplitViewInterface extends Interface {
functions: {
FLAG_AAVE: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_AAVE: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_BANCOR: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_BANCOR: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_BDAI: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_BDAI: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_CHAI: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_CHAI: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_COMPOUND: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_COMPOUND: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_FULCRUM: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_FULCRUM: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_IEARN: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_IEARN: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_KYBER: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_KYBER: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_KYBER_BANCOR_RESERVE: TypedFunctionDescription<{
encode([]: []): string;
@ -36,13 +40,13 @@ interface IOneSplitViewInterface extends Interface {
encode([]: []): string;
}>;
FLAG_MULTI_PATH_ETH: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_MULTI_PATH_ETH: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_OASIS: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_OASIS: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_SMART_TOKEN: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_SMART_TOKEN: TypedFunctionDescription<{ encode([]: []): string }>;
FLAG_UNISWAP: TypedFunctionDescription<{encode([]: []): string}>;
FLAG_UNISWAP: TypedFunctionDescription<{ encode([]: []): string }>;
getExpectedReturn: TypedFunctionDescription<{
encode([fromToken, toToken, amount, parts, disableFlags]: [
@ -65,7 +69,10 @@ export class IOneSplitView extends Contract {
on(event: EventFilter | string, listener: Listener): IOneSplitView;
once(event: EventFilter | string, listener: Listener): IOneSplitView;
addListener(eventName: EventFilter | string, listener: Listener): IOneSplitView;
addListener(
eventName: EventFilter | string,
listener: Listener
): IOneSplitView;
removeAllListeners(eventName: EventFilter | string): IOneSplitView;
removeListener(eventName: any, listener: Listener): IOneSplitView;

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IOneSplitView} from './IOneSplitView';
import { IOneSplitView } from "./IOneSplitView";
export class IOneSplitViewFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IOneSplitView {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IOneSplitView {
return new Contract(address, _abi, signerOrProvider) as IOneSplitView;
}
}
@ -15,241 +18,241 @@ export class IOneSplitViewFactory {
const _abi = [
{
inputs: [],
name: 'FLAG_AAVE',
name: "FLAG_AAVE",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_BANCOR',
name: "FLAG_BANCOR",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_BDAI',
name: "FLAG_BDAI",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_CHAI',
name: "FLAG_CHAI",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_COMPOUND',
name: "FLAG_COMPOUND",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_FULCRUM',
name: "FLAG_FULCRUM",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_IEARN',
name: "FLAG_IEARN",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_KYBER',
name: "FLAG_KYBER",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_KYBER_BANCOR_RESERVE',
name: "FLAG_KYBER_BANCOR_RESERVE",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_KYBER_OASIS_RESERVE',
name: "FLAG_KYBER_OASIS_RESERVE",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_KYBER_UNISWAP_RESERVE',
name: "FLAG_KYBER_UNISWAP_RESERVE",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_MULTI_PATH_ETH',
name: "FLAG_MULTI_PATH_ETH",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_OASIS',
name: "FLAG_OASIS",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_SMART_TOKEN',
name: "FLAG_SMART_TOKEN",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'FLAG_UNISWAP',
name: "FLAG_UNISWAP",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'contract IERC20',
name: 'fromToken',
type: 'address',
internalType: "contract IERC20",
name: "fromToken",
type: "address"
},
{
internalType: 'contract IERC20',
name: 'toToken',
type: 'address',
internalType: "contract IERC20",
name: "toToken",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: 'uint256',
name: 'parts',
type: 'uint256',
internalType: "uint256",
name: "parts",
type: "uint256"
},
{
internalType: 'uint256',
name: 'disableFlags',
type: 'uint256',
},
internalType: "uint256",
name: "disableFlags",
type: "uint256"
}
],
name: 'getExpectedReturn',
name: "getExpectedReturn",
outputs: [
{
internalType: 'uint256',
name: 'returnAmount',
type: 'uint256',
internalType: "uint256",
name: "returnAmount",
type: "uint256"
},
{
internalType: 'uint256[]',
name: 'distribution',
type: 'uint256[]',
},
internalType: "uint256[]",
name: "distribution",
type: "uint256[]"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IPriceOracleInterface extends Interface {
functions: {
@ -27,7 +31,10 @@ export class IPriceOracle extends Contract {
on(event: EventFilter | string, listener: Listener): IPriceOracle;
once(event: EventFilter | string, listener: Listener): IPriceOracle;
addListener(eventName: EventFilter | string, listener: Listener): IPriceOracle;
addListener(
eventName: EventFilter | string,
listener: Listener
): IPriceOracle;
removeAllListeners(eventName: EventFilter | string): IPriceOracle;
removeListener(eventName: any, listener: Listener): IPriceOracle;

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IPriceOracle} from './IPriceOracle';
import { IPriceOracle } from "./IPriceOracle";
export class IPriceOracleFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IPriceOracle {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IPriceOracle {
return new Contract(address, _abi, signerOrProvider) as IPriceOracle;
}
}
@ -16,38 +19,38 @@ const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_asset',
type: 'address',
},
internalType: "address",
name: "_asset",
type: "address"
}
],
name: 'getAssetPrice',
name: "getAssetPrice",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_asset',
type: 'address',
internalType: "address",
name: "_asset",
type: "address"
},
{
internalType: 'uint256',
name: '_price',
type: 'uint256',
},
internalType: "uint256",
name: "_price",
type: "uint256"
}
],
name: 'setAssetPrice',
name: "setAssetPrice",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IPriceOracleGetterInterface extends Interface {
functions: {
@ -23,7 +27,10 @@ export class IPriceOracleGetter extends Contract {
on(event: EventFilter | string, listener: Listener): IPriceOracleGetter;
once(event: EventFilter | string, listener: Listener): IPriceOracleGetter;
addListener(eventName: EventFilter | string, listener: Listener): IPriceOracleGetter;
addListener(
eventName: EventFilter | string,
listener: Listener
): IPriceOracleGetter;
removeAllListeners(eventName: EventFilter | string): IPriceOracleGetter;
removeListener(eventName: any, listener: Listener): IPriceOracleGetter;

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IPriceOracleGetter} from './IPriceOracleGetter';
import { IPriceOracleGetter } from "./IPriceOracleGetter";
export class IPriceOracleGetterFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IPriceOracleGetter {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IPriceOracleGetter {
return new Contract(address, _abi, signerOrProvider) as IPriceOracleGetter;
}
}
@ -16,20 +19,20 @@ const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_asset',
type: 'address',
},
internalType: "address",
name: "_asset",
type: "address"
}
],
name: 'getAssetPrice',
name: "getAssetPrice",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IReserveInterestRateStrategyInterface extends Interface {
functions: {
@ -14,8 +18,14 @@ interface IReserveInterestRateStrategyInterface extends Interface {
_utilizationRate,
_totalBorrowsStable,
_totalBorrowsVariable,
_averageStableBorrowRate,
]: [string, BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
_averageStableBorrowRate
]: [
string,
BigNumberish,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
}>;
getBaseVariableBorrowRate: TypedFunctionDescription<{
@ -27,15 +37,31 @@ interface IReserveInterestRateStrategyInterface extends Interface {
}
export class IReserveInterestRateStrategy extends Contract {
connect(signerOrProvider: Signer | Provider | string): IReserveInterestRateStrategy;
connect(
signerOrProvider: Signer | Provider | string
): IReserveInterestRateStrategy;
attach(addressOrName: string): IReserveInterestRateStrategy;
deployed(): Promise<IReserveInterestRateStrategy>;
on(event: EventFilter | string, listener: Listener): IReserveInterestRateStrategy;
once(event: EventFilter | string, listener: Listener): IReserveInterestRateStrategy;
addListener(eventName: EventFilter | string, listener: Listener): IReserveInterestRateStrategy;
removeAllListeners(eventName: EventFilter | string): IReserveInterestRateStrategy;
removeListener(eventName: any, listener: Listener): IReserveInterestRateStrategy;
on(
event: EventFilter | string,
listener: Listener
): IReserveInterestRateStrategy;
once(
event: EventFilter | string,
listener: Listener
): IReserveInterestRateStrategy;
addListener(
eventName: EventFilter | string,
listener: Listener
): IReserveInterestRateStrategy;
removeAllListeners(
eventName: EventFilter | string
): IReserveInterestRateStrategy;
removeListener(
eventName: any,
listener: Listener
): IReserveInterestRateStrategy;
interface: IReserveInterestRateStrategyInterface;

View File

@ -1,17 +1,21 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IReserveInterestRateStrategy} from './IReserveInterestRateStrategy';
import { IReserveInterestRateStrategy } from "./IReserveInterestRateStrategy";
export class IReserveInterestRateStrategyFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IReserveInterestRateStrategy {
return new Contract(address, _abi, signerOrProvider) as IReserveInterestRateStrategy;
return new Contract(
address,
_abi,
signerOrProvider
) as IReserveInterestRateStrategy;
}
}
@ -19,63 +23,63 @@ const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_reserve',
type: 'address',
internalType: "address",
name: "_reserve",
type: "address"
},
{
internalType: 'uint256',
name: '_utilizationRate',
type: 'uint256',
internalType: "uint256",
name: "_utilizationRate",
type: "uint256"
},
{
internalType: 'uint256',
name: '_totalBorrowsStable',
type: 'uint256',
internalType: "uint256",
name: "_totalBorrowsStable",
type: "uint256"
},
{
internalType: 'uint256',
name: '_totalBorrowsVariable',
type: 'uint256',
internalType: "uint256",
name: "_totalBorrowsVariable",
type: "uint256"
},
{
internalType: 'uint256',
name: '_averageStableBorrowRate',
type: 'uint256',
},
internalType: "uint256",
name: "_averageStableBorrowRate",
type: "uint256"
}
],
name: 'calculateInterestRates',
name: "calculateInterestRates",
outputs: [
{
internalType: 'uint256',
name: 'liquidityRate',
type: 'uint256',
internalType: "uint256",
name: "liquidityRate",
type: "uint256"
},
{
internalType: 'uint256',
name: 'stableBorrowRate',
type: 'uint256',
internalType: "uint256",
name: "stableBorrowRate",
type: "uint256"
},
{
internalType: 'uint256',
name: 'variableBorrowRate',
type: 'uint256',
},
internalType: "uint256",
name: "variableBorrowRate",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'getBaseVariableBorrowRate',
name: "getBaseVariableBorrowRate",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IStableDebtTokenInterface extends Interface {
functions: {
@ -12,7 +16,7 @@ interface IStableDebtTokenInterface extends Interface {
encode([_user, _amount]: [string, BigNumberish]): string;
}>;
getAverageStableRate: TypedFunctionDescription<{encode([]: []): string}>;
getAverageStableRate: TypedFunctionDescription<{ encode([]: []): string }>;
getUserLastUpdated: TypedFunctionDescription<{
encode([_user]: [string]): string;
@ -23,7 +27,11 @@ interface IStableDebtTokenInterface extends Interface {
}>;
mint: TypedFunctionDescription<{
encode([_user, _amount, _rate]: [string, BigNumberish, BigNumberish]): string;
encode([_user, _amount, _rate]: [
string,
BigNumberish,
BigNumberish
]): string;
}>;
};
@ -37,7 +45,10 @@ export class IStableDebtToken extends Contract {
on(event: EventFilter | string, listener: Listener): IStableDebtToken;
once(event: EventFilter | string, listener: Listener): IStableDebtToken;
addListener(eventName: EventFilter | string, listener: Listener): IStableDebtToken;
addListener(
eventName: EventFilter | string,
listener: Listener
): IStableDebtToken;
removeAllListeners(eventName: EventFilter | string): IStableDebtToken;
removeListener(eventName: any, listener: Listener): IStableDebtToken;
@ -94,6 +105,10 @@ export class IStableDebtToken extends Contract {
getUserStableRate(_user: string): Promise<BigNumber>;
mint(_user: string, _amount: BigNumberish, _rate: BigNumberish): Promise<BigNumber>;
mint(
_user: string,
_amount: BigNumberish,
_rate: BigNumberish
): Promise<BigNumber>;
};
}

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IStableDebtToken} from './IStableDebtToken';
import { IStableDebtToken } from "./IStableDebtToken";
export class IStableDebtTokenFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IStableDebtToken {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IStableDebtToken {
return new Contract(address, _abi, signerOrProvider) as IStableDebtToken;
}
}
@ -16,93 +19,93 @@ const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
internalType: "address",
name: "_user",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: 'burn',
name: "burn",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: 'getAverageStableRate',
name: "getAverageStableRate",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
},
internalType: "address",
name: "_user",
type: "address"
}
],
name: 'getUserLastUpdated',
name: "getUserLastUpdated",
outputs: [
{
internalType: 'uint40',
name: '',
type: 'uint40',
},
internalType: "uint40",
name: "",
type: "uint40"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
},
internalType: "address",
name: "_user",
type: "address"
}
],
name: 'getUserStableRate',
name: "getUserStableRate",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
internalType: "address",
name: "_user",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
internalType: "uint256",
name: "_amount",
type: "uint256"
},
{
internalType: 'uint256',
name: '_rate',
type: 'uint256',
},
internalType: "uint256",
name: "_rate",
type: "uint256"
}
],
name: 'mint',
name: "mint",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IUniswapExchangeInterface extends Interface {
functions: {};
@ -51,7 +55,10 @@ export class IUniswapExchange extends Contract {
on(event: EventFilter | string, listener: Listener): IUniswapExchange;
once(event: EventFilter | string, listener: Listener): IUniswapExchange;
addListener(eventName: EventFilter | string, listener: Listener): IUniswapExchange;
addListener(
eventName: EventFilter | string,
listener: Listener
): IUniswapExchange;
removeAllListeners(eventName: EventFilter | string): IUniswapExchange;
removeListener(eventName: any, listener: Listener): IUniswapExchange;

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IUniswapExchange} from './IUniswapExchange';
import { IUniswapExchange } from "./IUniswapExchange";
export class IUniswapExchangeFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IUniswapExchange {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IUniswapExchange {
return new Contract(address, _abi, signerOrProvider) as IUniswapExchange;
}
}
@ -18,99 +21,99 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'address',
name: 'provider',
type: 'address',
internalType: "address",
name: "provider",
type: "address"
},
{
indexed: true,
internalType: 'uint256',
name: 'eth_amount',
type: 'uint256',
internalType: "uint256",
name: "eth_amount",
type: "uint256"
},
{
indexed: true,
internalType: 'uint256',
name: 'token_amount',
type: 'uint256',
},
internalType: "uint256",
name: "token_amount",
type: "uint256"
}
],
name: 'AddLiquidity',
type: 'event',
name: "AddLiquidity",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'buyer',
type: 'address',
internalType: "address",
name: "buyer",
type: "address"
},
{
indexed: true,
internalType: 'uint256',
name: 'tokens_sold',
type: 'uint256',
internalType: "uint256",
name: "tokens_sold",
type: "uint256"
},
{
indexed: true,
internalType: 'uint256',
name: 'eth_bought',
type: 'uint256',
},
internalType: "uint256",
name: "eth_bought",
type: "uint256"
}
],
name: 'EthPurchase',
type: 'event',
name: "EthPurchase",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'provider',
type: 'address',
internalType: "address",
name: "provider",
type: "address"
},
{
indexed: true,
internalType: 'uint256',
name: 'eth_amount',
type: 'uint256',
internalType: "uint256",
name: "eth_amount",
type: "uint256"
},
{
indexed: true,
internalType: 'uint256',
name: 'token_amount',
type: 'uint256',
},
internalType: "uint256",
name: "token_amount",
type: "uint256"
}
],
name: 'RemoveLiquidity',
type: 'event',
name: "RemoveLiquidity",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'buyer',
type: 'address',
internalType: "address",
name: "buyer",
type: "address"
},
{
indexed: true,
internalType: 'uint256',
name: 'eth_sold',
type: 'uint256',
internalType: "uint256",
name: "eth_sold",
type: "uint256"
},
{
indexed: true,
internalType: 'uint256',
name: 'tokens_bought',
type: 'uint256',
},
internalType: "uint256",
name: "tokens_bought",
type: "uint256"
}
],
name: 'TokenPurchase',
type: 'event',
},
name: "TokenPurchase",
type: "event"
}
];

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface IVariableDebtTokenInterface extends Interface {
functions: {
@ -31,7 +35,10 @@ export class IVariableDebtToken extends Contract {
on(event: EventFilter | string, listener: Listener): IVariableDebtToken;
once(event: EventFilter | string, listener: Listener): IVariableDebtToken;
addListener(eventName: EventFilter | string, listener: Listener): IVariableDebtToken;
addListener(
eventName: EventFilter | string,
listener: Listener
): IVariableDebtToken;
removeAllListeners(eventName: EventFilter | string): IVariableDebtToken;
removeListener(eventName: any, listener: Listener): IVariableDebtToken;

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {IVariableDebtToken} from './IVariableDebtToken';
import { IVariableDebtToken } from "./IVariableDebtToken";
export class IVariableDebtTokenFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IVariableDebtToken {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IVariableDebtToken {
return new Contract(address, _abi, signerOrProvider) as IVariableDebtToken;
}
}
@ -16,56 +19,56 @@ const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
internalType: "address",
name: "_user",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: 'burn',
name: "burn",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
},
internalType: "address",
name: "_user",
type: "address"
}
],
name: 'getUserIndex',
name: "getUserIndex",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_user',
type: 'address',
internalType: "address",
name: "_user",
type: "address"
},
{
internalType: 'uint256',
name: '_amount',
type: 'uint256',
},
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: 'mint',
name: "mint",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

44
types/Ierc20.d.ts vendored
View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface Ierc20Interface extends Interface {
functions: {
@ -20,24 +24,36 @@ interface Ierc20Interface extends Interface {
encode([account]: [string]): string;
}>;
totalSupply: TypedFunctionDescription<{encode([]: []): string}>;
totalSupply: TypedFunctionDescription<{ encode([]: []): string }>;
transfer: TypedFunctionDescription<{
encode([recipient, amount]: [string, BigNumberish]): string;
}>;
transferFrom: TypedFunctionDescription<{
encode([sender, recipient, amount]: [string, string, BigNumberish]): string;
encode([sender, recipient, amount]: [
string,
string,
BigNumberish
]): string;
}>;
};
events: {
Approval: TypedEventDescription<{
encodeTopics([owner, spender, value]: [string | null, string | null, null]): string[];
encodeTopics([owner, spender, value]: [
string | null,
string | null,
null
]): string[];
}>;
Transfer: TypedEventDescription<{
encodeTopics([from, to, value]: [string | null, string | null, null]): string[];
encodeTopics([from, to, value]: [
string | null,
string | null,
null
]): string[];
}>;
};
}
@ -108,7 +124,11 @@ export class Ierc20 extends Contract {
): Promise<ContractTransaction>;
filters: {
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
Approval(
owner: string | null,
spender: string | null,
value: null
): EventFilter;
Transfer(from: string | null, to: string | null, value: null): EventFilter;
};
@ -124,6 +144,10 @@ export class Ierc20 extends Contract {
transfer(recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish
): Promise<BigNumber>;
};
}

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface Ierc20DetailedInterface extends Interface {
functions: {
@ -20,30 +24,42 @@ interface Ierc20DetailedInterface extends Interface {
encode([account]: [string]): string;
}>;
decimals: TypedFunctionDescription<{encode([]: []): string}>;
decimals: TypedFunctionDescription<{ encode([]: []): string }>;
name: TypedFunctionDescription<{encode([]: []): string}>;
name: TypedFunctionDescription<{ encode([]: []): string }>;
symbol: TypedFunctionDescription<{encode([]: []): string}>;
symbol: TypedFunctionDescription<{ encode([]: []): string }>;
totalSupply: TypedFunctionDescription<{encode([]: []): string}>;
totalSupply: TypedFunctionDescription<{ encode([]: []): string }>;
transfer: TypedFunctionDescription<{
encode([recipient, amount]: [string, BigNumberish]): string;
}>;
transferFrom: TypedFunctionDescription<{
encode([sender, recipient, amount]: [string, string, BigNumberish]): string;
encode([sender, recipient, amount]: [
string,
string,
BigNumberish
]): string;
}>;
};
events: {
Approval: TypedEventDescription<{
encodeTopics([owner, spender, value]: [string | null, string | null, null]): string[];
encodeTopics([owner, spender, value]: [
string | null,
string | null,
null
]): string[];
}>;
Transfer: TypedEventDescription<{
encodeTopics([from, to, value]: [string | null, string | null, null]): string[];
encodeTopics([from, to, value]: [
string | null,
string | null,
null
]): string[];
}>;
};
}
@ -55,7 +71,10 @@ export class Ierc20Detailed extends Contract {
on(event: EventFilter | string, listener: Listener): Ierc20Detailed;
once(event: EventFilter | string, listener: Listener): Ierc20Detailed;
addListener(eventName: EventFilter | string, listener: Listener): Ierc20Detailed;
addListener(
eventName: EventFilter | string,
listener: Listener
): Ierc20Detailed;
removeAllListeners(eventName: EventFilter | string): Ierc20Detailed;
removeListener(eventName: any, listener: Listener): Ierc20Detailed;
@ -126,7 +145,11 @@ export class Ierc20Detailed extends Contract {
): Promise<ContractTransaction>;
filters: {
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
Approval(
owner: string | null,
spender: string | null,
value: null
): EventFilter;
Transfer(from: string | null, to: string | null, value: null): EventFilter;
};
@ -148,6 +171,10 @@ export class Ierc20Detailed extends Contract {
transfer(recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise<BigNumber>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish
): Promise<BigNumber>;
};
}

View File

@ -1,18 +1,22 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface Ierc20DetailedBytesInterface extends Interface {
functions: {
decimals: TypedFunctionDescription<{encode([]: []): string}>;
decimals: TypedFunctionDescription<{ encode([]: []): string }>;
name: TypedFunctionDescription<{encode([]: []): string}>;
name: TypedFunctionDescription<{ encode([]: []): string }>;
symbol: TypedFunctionDescription<{encode([]: []): string}>;
symbol: TypedFunctionDescription<{ encode([]: []): string }>;
};
events: {};
@ -25,7 +29,10 @@ export class Ierc20DetailedBytes extends Contract {
on(event: EventFilter | string, listener: Listener): Ierc20DetailedBytes;
once(event: EventFilter | string, listener: Listener): Ierc20DetailedBytes;
addListener(eventName: EventFilter | string, listener: Listener): Ierc20DetailedBytes;
addListener(
eventName: EventFilter | string,
listener: Listener
): Ierc20DetailedBytes;
removeAllListeners(eventName: EventFilter | string): Ierc20DetailedBytes;
removeListener(eventName: any, listener: Listener): Ierc20DetailedBytes;

View File

@ -1,12 +1,12 @@
/* 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 { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import {TransactionOverrides} from '.';
import {Ierc20DetailedBytes} from './Ierc20DetailedBytes';
import { TransactionOverrides } from ".";
import { Ierc20DetailedBytes } from "./Ierc20DetailedBytes";
export class Ierc20DetailedBytesFactory extends ContractFactory {
constructor(signer?: Signer) {
@ -25,7 +25,10 @@ export class Ierc20DetailedBytesFactory extends ContractFactory {
connect(signer: Signer): Ierc20DetailedBytesFactory {
return super.connect(signer) as Ierc20DetailedBytesFactory;
}
static connect(address: string, signerOrProvider: Signer | Provider): Ierc20DetailedBytes {
static connect(
address: string,
signerOrProvider: Signer | Provider
): Ierc20DetailedBytes {
return new Contract(address, _abi, signerOrProvider) as Ierc20DetailedBytes;
}
}
@ -33,44 +36,44 @@ export class Ierc20DetailedBytesFactory extends ContractFactory {
const _abi = [
{
inputs: [],
name: 'decimals',
name: "decimals",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'name',
name: "name",
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'symbol',
name: "symbol",
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: 'view',
type: 'function',
},
stateMutability: "view",
type: "function"
}
];
const _bytecode =
'0x608060405234801561001057600080fd5b5060ad8061001f6000396000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c806306fdde03146041578063313ce56714605957806395d89b4114605f575b600080fd5b60476065565b60408051918252519081900360200190f35b6047606b565b60476071565b60005481565b60025481565b6001548156fea2646970667358221220a7f980b57e3d5f7cfbceb3addd64be79e3c00cc5e20c3e18d100e24d0b4ceeb164736f6c63430006080033';
"0x608060405234801561001057600080fd5b5060ad8061001f6000396000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c806306fdde03146041578063313ce56714605957806395d89b4114605f575b600080fd5b60476065565b60408051918252519081900360200190f35b6047606b565b60476071565b60005481565b60025481565b6001548156fea2646970667358221220a7f980b57e3d5f7cfbceb3addd64be79e3c00cc5e20c3e18d100e24d0b4ceeb164736f6c63430006080033";

View File

@ -1,13 +1,16 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {Ierc20Detailed} from './Ierc20Detailed';
import { Ierc20Detailed } from "./Ierc20Detailed";
export class Ierc20DetailedFactory {
static connect(address: string, signerOrProvider: Signer | Provider): Ierc20Detailed {
static connect(
address: string,
signerOrProvider: Signer | Provider
): Ierc20Detailed {
return new Contract(address, _abi, signerOrProvider) as Ierc20Detailed;
}
}
@ -18,221 +21,221 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'address',
name: 'owner',
type: 'address',
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: 'Approval',
type: 'event',
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'from',
type: 'address',
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'to',
type: 'address',
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: 'Transfer',
type: 'event',
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: 'address',
name: 'owner',
type: 'address',
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: 'address',
name: 'spender',
type: 'address',
},
internalType: "address",
name: "spender",
type: "address"
}
],
name: 'allowance',
name: "allowance",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'approve',
name: "approve",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
internalType: "address",
name: "account",
type: "address"
}
],
name: 'balanceOf',
name: "balanceOf",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'decimals',
name: "decimals",
outputs: [
{
internalType: 'uint8',
name: '',
type: 'uint8',
},
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'name',
name: "name",
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'symbol',
name: "symbol",
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'totalSupply',
name: "totalSupply",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'recipient',
type: 'address',
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'transfer',
name: "transfer",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'sender',
type: 'address',
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: 'address',
name: 'recipient',
type: 'address',
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'transferFrom',
name: "transferFrom",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

View File

@ -1,10 +1,10 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import {Ierc20} from './Ierc20';
import { Ierc20 } from "./Ierc20";
export class Ierc20Factory {
static connect(address: string, signerOrProvider: Signer | Provider): Ierc20 {
@ -18,182 +18,182 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'address',
name: 'owner',
type: 'address',
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: 'Approval',
type: 'event',
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'from',
type: 'address',
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'to',
type: 'address',
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: 'Transfer',
type: 'event',
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: 'address',
name: 'owner',
type: 'address',
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: 'address',
name: 'spender',
type: 'address',
},
internalType: "address",
name: "spender",
type: "address"
}
],
name: 'allowance',
name: "allowance",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'spender',
type: 'address',
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'approve',
name: "approve",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
internalType: "address",
name: "account",
type: "address"
}
],
name: 'balanceOf',
name: "balanceOf",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'totalSupply',
name: "totalSupply",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'recipient',
type: 'address',
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'transfer',
name: "transfer",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'sender',
type: 'address',
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: 'address',
name: 'recipient',
type: 'address',
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: 'transferFrom',
name: "transferFrom",
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];

View File

@ -1,20 +1,24 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface InitializableAdminUpgradeabilityProxyInterface extends Interface {
functions: {
admin: TypedFunctionDescription<{encode([]: []): string}>;
admin: TypedFunctionDescription<{ encode([]: []): string }>;
changeAdmin: TypedFunctionDescription<{
encode([newAdmin]: [string]): string;
}>;
implementation: TypedFunctionDescription<{encode([]: []): string}>;
implementation: TypedFunctionDescription<{ encode([]: []): string }>;
initialize: TypedFunctionDescription<{
encode([_logic, _admin, _data]: [string, string, Arrayish]): string;
@ -41,36 +45,54 @@ interface InitializableAdminUpgradeabilityProxyInterface extends Interface {
}
export class InitializableAdminUpgradeabilityProxy extends Contract {
connect(signerOrProvider: Signer | Provider | string): InitializableAdminUpgradeabilityProxy;
connect(
signerOrProvider: Signer | Provider | string
): InitializableAdminUpgradeabilityProxy;
attach(addressOrName: string): InitializableAdminUpgradeabilityProxy;
deployed(): Promise<InitializableAdminUpgradeabilityProxy>;
on(event: EventFilter | string, listener: Listener): InitializableAdminUpgradeabilityProxy;
once(event: EventFilter | string, listener: Listener): InitializableAdminUpgradeabilityProxy;
on(
event: EventFilter | string,
listener: Listener
): InitializableAdminUpgradeabilityProxy;
once(
event: EventFilter | string,
listener: Listener
): InitializableAdminUpgradeabilityProxy;
addListener(
eventName: EventFilter | string,
listener: Listener
): InitializableAdminUpgradeabilityProxy;
removeAllListeners(eventName: EventFilter | string): InitializableAdminUpgradeabilityProxy;
removeListener(eventName: any, listener: Listener): InitializableAdminUpgradeabilityProxy;
removeAllListeners(
eventName: EventFilter | string
): InitializableAdminUpgradeabilityProxy;
removeListener(
eventName: any,
listener: Listener
): InitializableAdminUpgradeabilityProxy;
interface: InitializableAdminUpgradeabilityProxyInterface;
functions: {
admin(overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(
newAdmin: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
implementation(overrides?: TransactionOverrides): Promise<ContractTransaction>;
implementation(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
'initialize(address,address,bytes)'(
"initialize(address,address,bytes)"(
_logic: string,
_admin: string,
_data: Arrayish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
'initialize(address,bytes)'(
"initialize(address,bytes)"(
_logic: string,
_data: Arrayish,
overrides?: TransactionOverrides
@ -90,18 +112,23 @@ export class InitializableAdminUpgradeabilityProxy extends Contract {
admin(overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
changeAdmin(
newAdmin: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
implementation(overrides?: TransactionOverrides): Promise<ContractTransaction>;
implementation(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
'initialize(address,address,bytes)'(
"initialize(address,address,bytes)"(
_logic: string,
_admin: string,
_data: Arrayish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
'initialize(address,bytes)'(
"initialize(address,bytes)"(
_logic: string,
_data: Arrayish,
overrides?: TransactionOverrides
@ -131,10 +158,17 @@ export class InitializableAdminUpgradeabilityProxy extends Contract {
implementation(): Promise<BigNumber>;
initialize(_logic: string, _admin: string, _data: Arrayish): Promise<BigNumber>;
initialize(
_logic: string,
_admin: string,
_data: Arrayish
): Promise<BigNumber>;
upgradeTo(newImplementation: string): Promise<BigNumber>;
upgradeToAndCall(newImplementation: string, data: Arrayish): Promise<BigNumber>;
upgradeToAndCall(
newImplementation: string,
data: Arrayish
): Promise<BigNumber>;
};
}

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface InitializableUpgradeabilityProxyInterface extends Interface {
functions: {
@ -21,18 +25,31 @@ interface InitializableUpgradeabilityProxyInterface extends Interface {
}
export class InitializableUpgradeabilityProxy extends Contract {
connect(signerOrProvider: Signer | Provider | string): InitializableUpgradeabilityProxy;
connect(
signerOrProvider: Signer | Provider | string
): InitializableUpgradeabilityProxy;
attach(addressOrName: string): InitializableUpgradeabilityProxy;
deployed(): Promise<InitializableUpgradeabilityProxy>;
on(event: EventFilter | string, listener: Listener): InitializableUpgradeabilityProxy;
once(event: EventFilter | string, listener: Listener): InitializableUpgradeabilityProxy;
on(
event: EventFilter | string,
listener: Listener
): InitializableUpgradeabilityProxy;
once(
event: EventFilter | string,
listener: Listener
): InitializableUpgradeabilityProxy;
addListener(
eventName: EventFilter | string,
listener: Listener
): InitializableUpgradeabilityProxy;
removeAllListeners(eventName: EventFilter | string): InitializableUpgradeabilityProxy;
removeListener(eventName: any, listener: Listener): InitializableUpgradeabilityProxy;
removeAllListeners(
eventName: EventFilter | string
): InitializableUpgradeabilityProxy;
removeListener(
eventName: any,
listener: Listener
): InitializableUpgradeabilityProxy;
interface: InitializableUpgradeabilityProxyInterface;

View File

@ -1,19 +1,21 @@
/* 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 { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import {TransactionOverrides} from '.';
import {InitializableUpgradeabilityProxy} from './InitializableUpgradeabilityProxy';
import { TransactionOverrides } from ".";
import { InitializableUpgradeabilityProxy } from "./InitializableUpgradeabilityProxy";
export class InitializableUpgradeabilityProxyFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides?: TransactionOverrides): Promise<InitializableUpgradeabilityProxy> {
deploy(
overrides?: TransactionOverrides
): Promise<InitializableUpgradeabilityProxy> {
return super.deploy(overrides) as Promise<InitializableUpgradeabilityProxy>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
@ -29,7 +31,11 @@ export class InitializableUpgradeabilityProxyFactory extends ContractFactory {
address: string,
signerOrProvider: Signer | Provider
): InitializableUpgradeabilityProxy {
return new Contract(address, _abi, signerOrProvider) as InitializableUpgradeabilityProxy;
return new Contract(
address,
_abi,
signerOrProvider
) as InitializableUpgradeabilityProxy;
}
}
@ -39,37 +45,37 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'address',
name: 'implementation',
type: 'address',
},
internalType: "address",
name: "implementation",
type: "address"
}
],
name: 'Upgraded',
type: 'event',
name: "Upgraded",
type: "event"
},
{
stateMutability: 'payable',
type: 'fallback',
stateMutability: "payable",
type: "fallback"
},
{
inputs: [
{
internalType: 'address',
name: '_logic',
type: 'address',
internalType: "address",
name: "_logic",
type: "address"
},
{
internalType: 'bytes',
name: '_data',
type: 'bytes',
},
internalType: "bytes",
name: "_data",
type: "bytes"
}
],
name: 'initialize',
name: "initialize",
outputs: [],
stateMutability: 'payable',
type: 'function',
},
stateMutability: "payable",
type: "function"
}
];
const _bytecode =
'0x608060405234801561001057600080fd5b50610398806100206000396000f3fe60806040526004361061001e5760003560e01c8063d1f5789414610028575b6100266100de565b005b6100266004803603604081101561003e57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561006957600080fd5b82018360208201111561007b57600080fd5b8035906020019184600183028401116401000000008311171561009d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100f8945050505050565b6100e66100f6565b6100f66100f161023a565b61025f565b565b600061010261023a565b6001600160a01b03161461011557600080fd5b604080517f656970313936372e70726f78792e696d706c656d656e746174696f6e000000008152905190819003601c0190207f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6000199091011461017557fe5b61017e82610283565b805115610236576000826001600160a01b0316826040518082805190602001908083835b602083106101c15780518252601f1990920191602091820191016101a2565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610221576040519150601f19603f3d011682016040523d82523d6000602084013e610226565b606091505b505090508061023457600080fd5b505b5050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e80801561027e573d6000f35b3d6000fd5b61028c816102eb565b6102c75760405162461bcd60e51b815260040180806020018281038252603b815260200180610328603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061031f57508115155b94935050505056fe43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a2646970667358221220d792bbb604d3254b580ef2fc38cc60725810977df950bcb0b6761d73134f984164736f6c63430006080033';
"0x608060405234801561001057600080fd5b50610398806100206000396000f3fe60806040526004361061001e5760003560e01c8063d1f5789414610028575b6100266100de565b005b6100266004803603604081101561003e57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561006957600080fd5b82018360208201111561007b57600080fd5b8035906020019184600183028401116401000000008311171561009d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100f8945050505050565b6100e66100f6565b6100f66100f161023a565b61025f565b565b600061010261023a565b6001600160a01b03161461011557600080fd5b604080517f656970313936372e70726f78792e696d706c656d656e746174696f6e000000008152905190819003601c0190207f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6000199091011461017557fe5b61017e82610283565b805115610236576000826001600160a01b0316826040518082805190602001908083835b602083106101c15780518252601f1990920191602091820191016101a2565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610221576040519150601f19603f3d011682016040523d82523d6000602084013e610226565b606091505b505090508061023457600080fd5b505b5050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e80801561027e573d6000f35b3d6000fd5b61028c816102eb565b6102c75760405162461bcd60e51b815260040180806020018281038252603b815260200180610328603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061031f57508115155b94935050505056fe43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a2646970667358221220d792bbb604d3254b580ef2fc38cc60725810977df950bcb0b6761d73134f984164736f6c63430006080033";

137
types/LendingPool.d.ts vendored
View File

@ -1,21 +1,29 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface LendingPoolInterface extends Interface {
functions: {
LENDINGPOOL_REVISION: TypedFunctionDescription<{encode([]: []): string}>;
LENDINGPOOL_REVISION: TypedFunctionDescription<{ encode([]: []): string }>;
UINT_MAX_VALUE: TypedFunctionDescription<{encode([]: []): string}>;
UINT_MAX_VALUE: TypedFunctionDescription<{ encode([]: []): string }>;
addressesProvider: TypedFunctionDescription<{encode([]: []): string}>;
addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>;
balanceDecreaseAllowed: TypedFunctionDescription<{
encode([_reserve, _user, _amount]: [string, string, BigNumberish]): string;
encode([_reserve, _user, _amount]: [
string,
string,
BigNumberish
]): string;
}>;
borrow: TypedFunctionDescription<{
@ -28,7 +36,11 @@ interface LendingPoolInterface extends Interface {
}>;
deposit: TypedFunctionDescription<{
encode([_reserve, _amount, _referralCode]: [string, BigNumberish, BigNumberish]): string;
encode([_reserve, _amount, _referralCode]: [
string,
BigNumberish,
BigNumberish
]): string;
}>;
flashLoan: TypedFunctionDescription<{
@ -64,7 +76,7 @@ interface LendingPoolInterface extends Interface {
encode([_reserve]: [string]): string;
}>;
getReserves: TypedFunctionDescription<{encode([]: []): string}>;
getReserves: TypedFunctionDescription<{ encode([]: []): string }>;
getUserAccountData: TypedFunctionDescription<{
encode([_user]: [string]): string;
@ -80,7 +92,7 @@ interface LendingPoolInterface extends Interface {
_aTokenAddress,
_stableDebtAddress,
_variableDebtAddress,
_interestRateStrategyAddress,
_interestRateStrategyAddress
]: [string, string, string, string, string]): string;
}>;
@ -150,8 +162,16 @@ interface LendingPoolInterface extends Interface {
_borrowRateMode,
_borrowRate,
_referral,
_timestamp,
]: [string | null, string | null, null, null, null, BigNumberish | null, null]): string[];
_timestamp
]: [
string | null,
string | null,
null,
null,
null,
BigNumberish | null,
null
]): string[];
}>;
Deposit: TypedEventDescription<{
@ -165,14 +185,14 @@ interface LendingPoolInterface extends Interface {
}>;
FlashLoan: TypedEventDescription<{
encodeTopics([_target, _reserve, _amount, _totalFee, _protocolFee, _timestamp]: [
string | null,
string | null,
null,
null,
null,
null
]): string[];
encodeTopics([
_target,
_reserve,
_amount,
_totalFee,
_protocolFee,
_timestamp
]: [string | null, string | null, null, null, null, null]): string[];
}>;
LiquidationCall: TypedEventDescription<{
@ -185,7 +205,7 @@ interface LendingPoolInterface extends Interface {
_accruedBorrowInterest,
_liquidator,
_receiveAToken,
_timestamp,
_timestamp
]: [
string | null,
string | null,
@ -206,12 +226,23 @@ interface LendingPoolInterface extends Interface {
_user,
_feeLiquidated,
_liquidatedCollateralForFee,
_timestamp,
]: [string | null, string | null, string | null, null, null, null]): string[];
_timestamp
]: [
string | null,
string | null,
string | null,
null,
null,
null
]): string[];
}>;
RebalanceStableBorrowRate: TypedEventDescription<{
encodeTopics([_reserve, _user, _timestamp]: [string | null, string | null, null]): string[];
encodeTopics([_reserve, _user, _timestamp]: [
string | null,
string | null,
null
]): string[];
}>;
RedeemUnderlying: TypedEventDescription<{
@ -242,7 +273,11 @@ interface LendingPoolInterface extends Interface {
}>;
Swap: TypedEventDescription<{
encodeTopics([_reserve, _user, _timestamp]: [string | null, string | null, null]): string[];
encodeTopics([_reserve, _user, _timestamp]: [
string | null,
string | null,
null
]): string[];
}>;
};
}
@ -296,7 +331,9 @@ export class LendingPool extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
getConfiguration(_reserve: string): Promise<{data: BigNumber; 0: BigNumber}>;
getConfiguration(
_reserve: string
): Promise<{ data: BigNumber; 0: BigNumber }>;
getReserveConfigurationData(
_reserve: string
@ -486,7 +523,11 @@ export class LendingPool extends Contract {
addressesProvider(): Promise<string>;
balanceDecreaseAllowed(_reserve: string, _user: string, _amount: BigNumberish): Promise<boolean>;
balanceDecreaseAllowed(
_reserve: string,
_user: string,
_amount: BigNumberish
): Promise<boolean>;
borrow(
_reserve: string,
@ -511,7 +552,9 @@ export class LendingPool extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
getConfiguration(_reserve: string): Promise<{data: BigNumber; 0: BigNumber}>;
getConfiguration(
_reserve: string
): Promise<{ data: BigNumber; 0: BigNumber }>;
getReserveConfigurationData(
_reserve: string
@ -764,11 +807,21 @@ export class LendingPool extends Contract {
_timestamp: null
): EventFilter;
ReserveUsedAsCollateralDisabled(_reserve: string | null, _user: string | null): EventFilter;
ReserveUsedAsCollateralDisabled(
_reserve: string | null,
_user: string | null
): EventFilter;
ReserveUsedAsCollateralEnabled(_reserve: string | null, _user: string | null): EventFilter;
ReserveUsedAsCollateralEnabled(
_reserve: string | null,
_user: string | null
): EventFilter;
Swap(_reserve: string | null, _user: string | null, _timestamp: null): EventFilter;
Swap(
_reserve: string | null,
_user: string | null,
_timestamp: null
): EventFilter;
};
estimate: {
@ -840,7 +893,10 @@ export class LendingPool extends Contract {
_receiveAToken: boolean
): Promise<BigNumber>;
rebalanceStableBorrowRate(_reserve: string, _user: string): Promise<BigNumber>;
rebalanceStableBorrowRate(
_reserve: string,
_user: string
): Promise<BigNumber>;
redeemUnderlying(
_reserve: string,
@ -858,15 +914,24 @@ export class LendingPool extends Contract {
reservesList(arg0: BigNumberish): Promise<BigNumber>;
setConfiguration(_reserve: string, _configuration: BigNumberish): Promise<BigNumber>;
setConfiguration(
_reserve: string,
_configuration: BigNumberish
): Promise<BigNumber>;
setReserveInterestRateStrategyAddress(
_reserve: string,
_rateStrategyAddress: string
): Promise<BigNumber>;
setUserUseReserveAsCollateral(_reserve: string, _useAsCollateral: boolean): Promise<BigNumber>;
setUserUseReserveAsCollateral(
_reserve: string,
_useAsCollateral: boolean
): Promise<BigNumber>;
swapBorrowRateMode(_reserve: string, _rateMode: BigNumberish): Promise<BigNumber>;
swapBorrowRateMode(
_reserve: string,
_rateMode: BigNumberish
): Promise<BigNumber>;
};
}

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface LendingPoolAddressesProviderInterface extends Interface {
functions: {
@ -12,9 +16,9 @@ interface LendingPoolAddressesProviderInterface extends Interface {
encode([_key]: [Arrayish]): string;
}>;
getFeeProvider: TypedFunctionDescription<{encode([]: []): string}>;
getFeeProvider: TypedFunctionDescription<{ encode([]: []): string }>;
getLendingPool: TypedFunctionDescription<{encode([]: []): string}>;
getLendingPool: TypedFunctionDescription<{ encode([]: []): string }>;
getLendingPoolConfigurator: TypedFunctionDescription<{
encode([]: []): string;
@ -24,17 +28,17 @@ interface LendingPoolAddressesProviderInterface extends Interface {
encode([]: []): string;
}>;
getLendingPoolManager: TypedFunctionDescription<{encode([]: []): string}>;
getLendingPoolManager: TypedFunctionDescription<{ encode([]: []): string }>;
getLendingRateOracle: TypedFunctionDescription<{encode([]: []): string}>;
getLendingRateOracle: TypedFunctionDescription<{ encode([]: []): string }>;
getPriceOracle: TypedFunctionDescription<{encode([]: []): string}>;
getPriceOracle: TypedFunctionDescription<{ encode([]: []): string }>;
getTokenDistributor: TypedFunctionDescription<{encode([]: []): string}>;
getTokenDistributor: TypedFunctionDescription<{ encode([]: []): string }>;
owner: TypedFunctionDescription<{encode([]: []): string}>;
owner: TypedFunctionDescription<{ encode([]: []): string }>;
renounceOwnership: TypedFunctionDescription<{encode([]: []): string}>;
renounceOwnership: TypedFunctionDescription<{ encode([]: []): string }>;
setFeeProviderImpl: TypedFunctionDescription<{
encode([_feeProvider]: [string]): string;
@ -103,7 +107,10 @@ interface LendingPoolAddressesProviderInterface extends Interface {
}>;
OwnershipTransferred: TypedEventDescription<{
encodeTopics([previousOwner, newOwner]: [string | null, string | null]): string[];
encodeTopics([previousOwner, newOwner]: [
string | null,
string | null
]): string[];
}>;
PriceOracleUpdated: TypedEventDescription<{
@ -121,15 +128,31 @@ interface LendingPoolAddressesProviderInterface extends Interface {
}
export class LendingPoolAddressesProvider extends Contract {
connect(signerOrProvider: Signer | Provider | string): LendingPoolAddressesProvider;
connect(
signerOrProvider: Signer | Provider | string
): LendingPoolAddressesProvider;
attach(addressOrName: string): LendingPoolAddressesProvider;
deployed(): Promise<LendingPoolAddressesProvider>;
on(event: EventFilter | string, listener: Listener): LendingPoolAddressesProvider;
once(event: EventFilter | string, listener: Listener): LendingPoolAddressesProvider;
addListener(eventName: EventFilter | string, listener: Listener): LendingPoolAddressesProvider;
removeAllListeners(eventName: EventFilter | string): LendingPoolAddressesProvider;
removeListener(eventName: any, listener: Listener): LendingPoolAddressesProvider;
on(
event: EventFilter | string,
listener: Listener
): LendingPoolAddressesProvider;
once(
event: EventFilter | string,
listener: Listener
): LendingPoolAddressesProvider;
addListener(
eventName: EventFilter | string,
listener: Listener
): LendingPoolAddressesProvider;
removeAllListeners(
eventName: EventFilter | string
): LendingPoolAddressesProvider;
removeListener(
eventName: any,
listener: Listener
): LendingPoolAddressesProvider;
interface: LendingPoolAddressesProviderInterface;
@ -154,7 +177,9 @@ export class LendingPoolAddressesProvider extends Contract {
owner(): Promise<string>;
renounceOwnership(overrides?: TransactionOverrides): Promise<ContractTransaction>;
renounceOwnership(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setFeeProviderImpl(
_feeProvider: string,
@ -222,7 +247,9 @@ export class LendingPoolAddressesProvider extends Contract {
owner(): Promise<string>;
renounceOwnership(overrides?: TransactionOverrides): Promise<ContractTransaction>;
renounceOwnership(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setFeeProviderImpl(
_feeProvider: string,
@ -234,7 +261,10 @@ export class LendingPoolAddressesProvider extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setLendingPoolImpl(_pool: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
setLendingPoolImpl(
_pool: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setLendingPoolLiquidationManager(
_manager: string,
@ -273,7 +303,9 @@ export class LendingPoolAddressesProvider extends Contract {
LendingPoolConfiguratorUpdated(newAddress: string | null): EventFilter;
LendingPoolLiquidationManagerUpdated(newAddress: string | null): EventFilter;
LendingPoolLiquidationManagerUpdated(
newAddress: string | null
): EventFilter;
LendingPoolManagerUpdated(newAddress: string | null): EventFilter;
@ -281,7 +313,10 @@ export class LendingPoolAddressesProvider extends Contract {
LendingRateOracleUpdated(newAddress: string | null): EventFilter;
OwnershipTransferred(previousOwner: string | null, newOwner: string | null): EventFilter;
OwnershipTransferred(
previousOwner: string | null,
newOwner: string | null
): EventFilter;
PriceOracleUpdated(newAddress: string | null): EventFilter;

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface LendingPoolAddressesProviderRegistryInterface extends Interface {
functions: {
@ -16,13 +20,13 @@ interface LendingPoolAddressesProviderRegistryInterface extends Interface {
encode([_provider]: [string]): string;
}>;
owner: TypedFunctionDescription<{encode([]: []): string}>;
owner: TypedFunctionDescription<{ encode([]: []): string }>;
registerAddressesProvider: TypedFunctionDescription<{
encode([_provider, _id]: [string, BigNumberish]): string;
}>;
renounceOwnership: TypedFunctionDescription<{encode([]: []): string}>;
renounceOwnership: TypedFunctionDescription<{ encode([]: []): string }>;
transferOwnership: TypedFunctionDescription<{
encode([newOwner]: [string]): string;
@ -43,24 +47,40 @@ interface LendingPoolAddressesProviderRegistryInterface extends Interface {
}>;
OwnershipTransferred: TypedEventDescription<{
encodeTopics([previousOwner, newOwner]: [string | null, string | null]): string[];
encodeTopics([previousOwner, newOwner]: [
string | null,
string | null
]): string[];
}>;
};
}
export class LendingPoolAddressesProviderRegistry extends Contract {
connect(signerOrProvider: Signer | Provider | string): LendingPoolAddressesProviderRegistry;
connect(
signerOrProvider: Signer | Provider | string
): LendingPoolAddressesProviderRegistry;
attach(addressOrName: string): LendingPoolAddressesProviderRegistry;
deployed(): Promise<LendingPoolAddressesProviderRegistry>;
on(event: EventFilter | string, listener: Listener): LendingPoolAddressesProviderRegistry;
once(event: EventFilter | string, listener: Listener): LendingPoolAddressesProviderRegistry;
on(
event: EventFilter | string,
listener: Listener
): LendingPoolAddressesProviderRegistry;
once(
event: EventFilter | string,
listener: Listener
): LendingPoolAddressesProviderRegistry;
addListener(
eventName: EventFilter | string,
listener: Listener
): LendingPoolAddressesProviderRegistry;
removeAllListeners(eventName: EventFilter | string): LendingPoolAddressesProviderRegistry;
removeListener(eventName: any, listener: Listener): LendingPoolAddressesProviderRegistry;
removeAllListeners(
eventName: EventFilter | string
): LendingPoolAddressesProviderRegistry;
removeListener(
eventName: any,
listener: Listener
): LendingPoolAddressesProviderRegistry;
interface: LendingPoolAddressesProviderRegistryInterface;
@ -77,7 +97,9 @@ export class LendingPoolAddressesProviderRegistry extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
renounceOwnership(overrides?: TransactionOverrides): Promise<ContractTransaction>;
renounceOwnership(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
transferOwnership(
newOwner: string,
@ -102,7 +124,9 @@ export class LendingPoolAddressesProviderRegistry extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
renounceOwnership(overrides?: TransactionOverrides): Promise<ContractTransaction>;
renounceOwnership(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
transferOwnership(
newOwner: string,
@ -119,7 +143,10 @@ export class LendingPoolAddressesProviderRegistry extends Contract {
AddressesProviderUnregistered(newAddress: string | null): EventFilter;
OwnershipTransferred(previousOwner: string | null, newOwner: string | null): EventFilter;
OwnershipTransferred(
previousOwner: string | null,
newOwner: string | null
): EventFilter;
};
estimate: {
@ -129,7 +156,10 @@ export class LendingPoolAddressesProviderRegistry extends Contract {
owner(): Promise<BigNumber>;
registerAddressesProvider(_provider: string, _id: BigNumberish): Promise<BigNumber>;
registerAddressesProvider(
_provider: string,
_id: BigNumberish
): Promise<BigNumber>;
renounceOwnership(): Promise<BigNumber>;

View File

@ -1,20 +1,24 @@
/* 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 { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import {TransactionOverrides} from '.';
import {LendingPoolAddressesProviderRegistry} from './LendingPoolAddressesProviderRegistry';
import { TransactionOverrides } from ".";
import { LendingPoolAddressesProviderRegistry } from "./LendingPoolAddressesProviderRegistry";
export class LendingPoolAddressesProviderRegistryFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides?: TransactionOverrides): Promise<LendingPoolAddressesProviderRegistry> {
return super.deploy(overrides) as Promise<LendingPoolAddressesProviderRegistry>;
deploy(
overrides?: TransactionOverrides
): Promise<LendingPoolAddressesProviderRegistry> {
return super.deploy(overrides) as Promise<
LendingPoolAddressesProviderRegistry
>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
return super.getDeployTransaction(overrides);
@ -29,7 +33,11 @@ export class LendingPoolAddressesProviderRegistryFactory extends ContractFactory
address: string,
signerOrProvider: Signer | Provider
): LendingPoolAddressesProviderRegistry {
return new Contract(address, _abi, signerOrProvider) as LendingPoolAddressesProviderRegistry;
return new Contract(
address,
_abi,
signerOrProvider
) as LendingPoolAddressesProviderRegistry;
}
}
@ -39,143 +47,143 @@ const _abi = [
inputs: [
{
indexed: true,
internalType: 'address',
name: 'newAddress',
type: 'address',
},
internalType: "address",
name: "newAddress",
type: "address"
}
],
name: 'AddressesProviderRegistered',
type: 'event',
name: "AddressesProviderRegistered",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'newAddress',
type: 'address',
},
internalType: "address",
name: "newAddress",
type: "address"
}
],
name: 'AddressesProviderUnregistered',
type: 'event',
name: "AddressesProviderUnregistered",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'previousOwner',
type: 'address',
internalType: "address",
name: "previousOwner",
type: "address"
},
{
indexed: true,
internalType: 'address',
name: 'newOwner',
type: 'address',
},
internalType: "address",
name: "newOwner",
type: "address"
}
],
name: 'OwnershipTransferred',
type: 'event',
name: "OwnershipTransferred",
type: "event"
},
{
inputs: [],
name: 'getAddressesProvidersList',
name: "getAddressesProvidersList",
outputs: [
{
internalType: 'address[]',
name: '',
type: 'address[]',
},
internalType: "address[]",
name: "",
type: "address[]"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_provider',
type: 'address',
},
internalType: "address",
name: "_provider",
type: "address"
}
],
name: 'isAddressesProviderRegistered',
name: "isAddressesProviderRegistered",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: 'owner',
name: "owner",
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: 'view',
type: 'function',
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_provider',
type: 'address',
internalType: "address",
name: "_provider",
type: "address"
},
{
internalType: 'uint256',
name: '_id',
type: 'uint256',
},
internalType: "uint256",
name: "_id",
type: "uint256"
}
],
name: 'registerAddressesProvider',
name: "registerAddressesProvider",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: 'renounceOwnership',
name: "renounceOwnership",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: 'newOwner',
type: 'address',
},
internalType: "address",
name: "newOwner",
type: "address"
}
],
name: 'transferOwnership',
name: "transferOwnership",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_provider',
type: 'address',
},
internalType: "address",
name: "_provider",
type: "address"
}
],
name: 'unregisterAddressesProvider',
name: "unregisterAddressesProvider",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode =
'0x608060405234801561001057600080fd5b5060006100246001600160e01b0361007316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610077565b3390565b610750806100866000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b1461010a578063d258191e1461012e578063d570d9541461015a578063f2fde38b146101925761007d565b80630de2670714610082578063365ccbbf146100aa578063715018a614610102575b600080fd5b6100a86004803603602081101561009857600080fd5b50356001600160a01b03166101b8565b005b6100b26102be565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156100ee5781810151838201526020016100d6565b505050509050019250505060405180910390f35b6100a86103bb565b61011261045d565b604080516001600160a01b039092168252519081900360200190f35b6100a86004803603604081101561014457600080fd5b506001600160a01b03813516906020013561046c565b6101806004803603602081101561017057600080fd5b50356001600160a01b0316610520565b60408051918252519081900360200190f35b6100a8600480360360208110156101a857600080fd5b50356001600160a01b031661053b565b6101c0610633565b6000546001600160a01b03908116911614610210576040805162461bcd60e51b815260206004820181905260248201526000805160206106fb833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205461027a576040805162461bcd60e51b815260206004820152601a60248201527f50726f7669646572206973206e6f742072656769737465726564000000000000604482015290519081900360640190fd5b6001600160a01b038116600081815260016020526040808220829055517f851e5971c053e6b76e3a1e0b8ffa81430df738007fad86e195c409a757faccd29190a250565b600254606090818167ffffffffffffffff811180156102dc57600080fd5b50604051908082528060200260200182016040528015610306578160200160208202803683370190505b50905060005b6002548110156103b4576000600160006002848154811061032957fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190205411156103ac576002818154811061036157fe5b9060005260206000200160009054906101000a90046001600160a01b031682828151811061038b57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b60010161030c565b5091505090565b6103c3610633565b6000546001600160a01b03908116911614610413576040805162461bcd60e51b815260206004820181905260248201526000805160206106fb833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610474610633565b6000546001600160a01b039081169116146104c4576040805162461bcd60e51b815260206004820181905260248201526000805160206106fb833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526001602052604090208190556104e882610637565b6040516001600160a01b038316907f2db38786c10176b033a1608361716b0ca992e3af55dc05b6dc710969790beeda90600090a25050565b6001600160a01b031660009081526001602052604090205490565b610543610633565b6000546001600160a01b03908116911614610593576040805162461bcd60e51b815260206004820181905260248201526000805160206106fb833981519152604482015290519081900360640190fd5b6001600160a01b0381166105d85760405162461bcd60e51b81526004018080602001828103825260268152602001806106d56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60005b60025481101561068457816001600160a01b03166002828154811061065b57fe5b6000918252602090912001546001600160a01b0316141561067c57506106d1565b60010161063a565b50600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0383161790555b5056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220678930bb15bb411c1dbc6c6216cc7a1722478396a23587a3e4aafcfbc69537a464736f6c63430006080033';
"0x608060405234801561001057600080fd5b5060006100246001600160e01b0361007316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610077565b3390565b610750806100866000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b1461010a578063d258191e1461012e578063d570d9541461015a578063f2fde38b146101925761007d565b80630de2670714610082578063365ccbbf146100aa578063715018a614610102575b600080fd5b6100a86004803603602081101561009857600080fd5b50356001600160a01b03166101b8565b005b6100b26102be565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156100ee5781810151838201526020016100d6565b505050509050019250505060405180910390f35b6100a86103bb565b61011261045d565b604080516001600160a01b039092168252519081900360200190f35b6100a86004803603604081101561014457600080fd5b506001600160a01b03813516906020013561046c565b6101806004803603602081101561017057600080fd5b50356001600160a01b0316610520565b60408051918252519081900360200190f35b6100a8600480360360208110156101a857600080fd5b50356001600160a01b031661053b565b6101c0610633565b6000546001600160a01b03908116911614610210576040805162461bcd60e51b815260206004820181905260248201526000805160206106fb833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205461027a576040805162461bcd60e51b815260206004820152601a60248201527f50726f7669646572206973206e6f742072656769737465726564000000000000604482015290519081900360640190fd5b6001600160a01b038116600081815260016020526040808220829055517f851e5971c053e6b76e3a1e0b8ffa81430df738007fad86e195c409a757faccd29190a250565b600254606090818167ffffffffffffffff811180156102dc57600080fd5b50604051908082528060200260200182016040528015610306578160200160208202803683370190505b50905060005b6002548110156103b4576000600160006002848154811061032957fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190205411156103ac576002818154811061036157fe5b9060005260206000200160009054906101000a90046001600160a01b031682828151811061038b57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b60010161030c565b5091505090565b6103c3610633565b6000546001600160a01b03908116911614610413576040805162461bcd60e51b815260206004820181905260248201526000805160206106fb833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610474610633565b6000546001600160a01b039081169116146104c4576040805162461bcd60e51b815260206004820181905260248201526000805160206106fb833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526001602052604090208190556104e882610637565b6040516001600160a01b038316907f2db38786c10176b033a1608361716b0ca992e3af55dc05b6dc710969790beeda90600090a25050565b6001600160a01b031660009081526001602052604090205490565b610543610633565b6000546001600160a01b03908116911614610593576040805162461bcd60e51b815260206004820181905260248201526000805160206106fb833981519152604482015290519081900360640190fd5b6001600160a01b0381166105d85760405162461bcd60e51b81526004018080602001828103825260268152602001806106d56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60005b60025481101561068457816001600160a01b03166002828154811061065b57fe5b6000918252602090912001546001600160a01b0316141561067c57506106d1565b60010161063a565b50600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0383161790555b5056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220678930bb15bb411c1dbc6c6216cc7a1722478396a23587a3e4aafcfbc69537a464736f6c63430006080033";

View File

@ -1,14 +1,18 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface LendingPoolConfiguratorInterface extends Interface {
functions: {
CONFIGURATOR_REVISION: TypedFunctionDescription<{encode([]: []): string}>;
CONFIGURATOR_REVISION: TypedFunctionDescription<{ encode([]: []): string }>;
activateReserve: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
@ -35,12 +39,12 @@ interface LendingPoolConfiguratorInterface extends Interface {
}>;
enableReserveAsCollateral: TypedFunctionDescription<{
encode([_reserve, _baseLTVasCollateral, _liquidationThreshold, _liquidationBonus]: [
string,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
encode([
_reserve,
_baseLTVasCollateral,
_liquidationThreshold,
_liquidationBonus
]: [string, BigNumberish, BigNumberish, BigNumberish]): string;
}>;
enableReserveStableRate: TypedFunctionDescription<{
@ -55,31 +59,31 @@ interface LendingPoolConfiguratorInterface extends Interface {
encode([
_reserve,
_underlyingAssetDecimals,
_aTokenInstance,
_interestRateStrategyAddress,
_stableDebtTokenAddress,
_variableDebtTokenAddress,
]: [string, BigNumberish, string, string, string]): string;
_variableDebtTokenAddress
]: [string, BigNumberish, string, string, string, string]): string;
}>;
initReserveWithData: TypedFunctionDescription<{
encode([
_reserve,
_aTokenName,
_aTokenSymbol,
_aTokenInstance,
_stableDebtTokenAddress,
_variableDebtTokenAddress,
_underlyingAssetDecimals,
_interestRateStrategyAddress,
]: [string, string, string, string, string, BigNumberish, string]): string;
_interestRateStrategyAddress
]: [string, string, string, string, BigNumberish, string]): string;
}>;
initialize: TypedFunctionDescription<{
encode([_poolAddressesProvider]: [string]): string;
}>;
pool: TypedFunctionDescription<{encode([]: []): string}>;
pool: TypedFunctionDescription<{ encode([]: []): string }>;
poolAddressesProvider: TypedFunctionDescription<{encode([]: []): string}>;
poolAddressesProvider: TypedFunctionDescription<{ encode([]: []): string }>;
setLiquidationBonus: TypedFunctionDescription<{
encode([_reserve, _bonus]: [string, BigNumberish]): string;
@ -183,13 +187,21 @@ interface LendingPoolConfiguratorInterface extends Interface {
}
export class LendingPoolConfigurator extends Contract {
connect(signerOrProvider: Signer | Provider | string): LendingPoolConfigurator;
connect(
signerOrProvider: Signer | Provider | string
): LendingPoolConfigurator;
attach(addressOrName: string): LendingPoolConfigurator;
deployed(): Promise<LendingPoolConfigurator>;
on(event: EventFilter | string, listener: Listener): LendingPoolConfigurator;
once(event: EventFilter | string, listener: Listener): LendingPoolConfigurator;
addListener(eventName: EventFilter | string, listener: Listener): LendingPoolConfigurator;
once(
event: EventFilter | string,
listener: Listener
): LendingPoolConfigurator;
addListener(
eventName: EventFilter | string,
listener: Listener
): LendingPoolConfigurator;
removeAllListeners(eventName: EventFilter | string): LendingPoolConfigurator;
removeListener(eventName: any, listener: Listener): LendingPoolConfigurator;
@ -242,11 +254,15 @@ export class LendingPoolConfigurator extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
freezeReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
initReserve(
_reserve: string,
_underlyingAssetDecimals: BigNumberish,
_aTokenInstance: string,
_interestRateStrategyAddress: string,
_stableDebtTokenAddress: string,
_variableDebtTokenAddress: string,
@ -255,8 +271,7 @@ export class LendingPoolConfigurator extends Contract {
initReserveWithData(
_reserve: string,
_aTokenName: string,
_aTokenSymbol: string,
_aTokenInstance: string,
_stableDebtTokenAddress: string,
_variableDebtTokenAddress: string,
_underlyingAssetDecimals: BigNumberish,
@ -311,7 +326,10 @@ export class LendingPoolConfigurator extends Contract {
CONFIGURATOR_REVISION(): Promise<BigNumber>;
activateReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
activateReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
deactivateReserve(
_reserve: string,
@ -352,11 +370,15 @@ export class LendingPoolConfigurator extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
freezeReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
initReserve(
_reserve: string,
_underlyingAssetDecimals: BigNumberish,
_aTokenInstance: string,
_interestRateStrategyAddress: string,
_stableDebtTokenAddress: string,
_variableDebtTokenAddress: string,
@ -365,8 +387,7 @@ export class LendingPoolConfigurator extends Contract {
initReserveWithData(
_reserve: string,
_aTokenName: string,
_aTokenSymbol: string,
_aTokenInstance: string,
_stableDebtTokenAddress: string,
_variableDebtTokenAddress: string,
_underlyingAssetDecimals: BigNumberish,
@ -413,12 +434,18 @@ export class LendingPoolConfigurator extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
unfreezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
unfreezeReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {
BorrowingDisabledOnReserve(_reserve: string | null): EventFilter;
BorrowingEnabledOnReserve(_reserve: null, _stableRateEnabled: null): EventFilter;
BorrowingEnabledOnReserve(
_reserve: null,
_stableRateEnabled: null
): EventFilter;
ReserveActivated(_reserve: string | null): EventFilter;
@ -445,11 +472,17 @@ export class LendingPoolConfigurator extends Contract {
_interestRateStrategyAddress: null
): EventFilter;
ReserveInterestRateStrategyChanged(_reserve: null, _strategy: null): EventFilter;
ReserveInterestRateStrategyChanged(
_reserve: null,
_strategy: null
): EventFilter;
ReserveLiquidationBonusChanged(_reserve: null, _bonus: null): EventFilter;
ReserveLiquidationThresholdChanged(_reserve: null, _threshold: null): EventFilter;
ReserveLiquidationThresholdChanged(
_reserve: null,
_threshold: null
): EventFilter;
ReserveUnfreezed(_reserve: string | null): EventFilter;
@ -490,6 +523,7 @@ export class LendingPoolConfigurator extends Contract {
initReserve(
_reserve: string,
_underlyingAssetDecimals: BigNumberish,
_aTokenInstance: string,
_interestRateStrategyAddress: string,
_stableDebtTokenAddress: string,
_variableDebtTokenAddress: string
@ -497,8 +531,7 @@ export class LendingPoolConfigurator extends Contract {
initReserveWithData(
_reserve: string,
_aTokenName: string,
_aTokenSymbol: string,
_aTokenInstance: string,
_stableDebtTokenAddress: string,
_variableDebtTokenAddress: string,
_underlyingAssetDecimals: BigNumberish,
@ -511,13 +544,22 @@ export class LendingPoolConfigurator extends Contract {
poolAddressesProvider(): Promise<BigNumber>;
setLiquidationBonus(_reserve: string, _bonus: BigNumberish): Promise<BigNumber>;
setLiquidationBonus(
_reserve: string,
_bonus: BigNumberish
): Promise<BigNumber>;
setLiquidationThreshold(_reserve: string, _threshold: BigNumberish): Promise<BigNumber>;
setLiquidationThreshold(
_reserve: string,
_threshold: BigNumberish
): Promise<BigNumber>;
setLtv(_reserve: string, _ltv: BigNumberish): Promise<BigNumber>;
setReserveDecimals(_reserve: string, _decimals: BigNumberish): Promise<BigNumber>;
setReserveDecimals(
_reserve: string,
_decimals: BigNumberish
): Promise<BigNumber>;
setReserveInterestRateStrategyAddress(
_reserve: string,

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface LendingPoolCoreInterface extends Interface {
functions: {
@ -12,7 +16,7 @@ interface LendingPoolCoreInterface extends Interface {
encode([_reserve]: [string]): string;
}>;
addressesProvider: TypedFunctionDescription<{encode([]: []): string}>;
addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>;
deactivateReserve: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
@ -35,12 +39,12 @@ interface LendingPoolCoreInterface extends Interface {
}>;
enableReserveAsCollateral: TypedFunctionDescription<{
encode([_reserve, _baseLTVasCollateral, _liquidationThreshold, _liquidationBonus]: [
string,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
encode([
_reserve,
_baseLTVasCollateral,
_liquidationThreshold,
_liquidationBonus
]: [string, BigNumberish, BigNumberish, BigNumberish]): string;
}>;
enableReserveStableBorrowRate: TypedFunctionDescription<{
@ -143,7 +147,7 @@ interface LendingPoolCoreInterface extends Interface {
encode([_reserve]: [string]): string;
}>;
getReserves: TypedFunctionDescription<{encode([]: []): string}>;
getReserves: TypedFunctionDescription<{ encode([]: []): string }>;
getUserBasicReserveData: TypedFunctionDescription<{
encode([_reserve, _user]: [string, string]): string;
@ -178,12 +182,12 @@ interface LendingPoolCoreInterface extends Interface {
}>;
initReserve: TypedFunctionDescription<{
encode([_reserve, _aTokenAddress, _decimals, _interestRateStrategyAddress]: [
string,
string,
BigNumberish,
string
]): string;
encode([
_reserve,
_aTokenAddress,
_decimals,
_interestRateStrategyAddress
]: [string, string, BigNumberish, string]): string;
}>;
initialize: TypedFunctionDescription<{
@ -199,20 +203,28 @@ interface LendingPoolCoreInterface extends Interface {
}>;
isUserAllowedToBorrowAtStable: TypedFunctionDescription<{
encode([_reserve, _user, _amount]: [string, string, BigNumberish]): string;
encode([_reserve, _user, _amount]: [
string,
string,
BigNumberish
]): string;
}>;
isUserUseReserveAsCollateralEnabled: TypedFunctionDescription<{
encode([_reserve, _user]: [string, string]): string;
}>;
lendingPoolAddress: TypedFunctionDescription<{encode([]: []): string}>;
lendingPoolAddress: TypedFunctionDescription<{ encode([]: []): string }>;
liquidateFee: TypedFunctionDescription<{
encode([_token, _amount, _destination]: [string, BigNumberish, string]): string;
encode([_token, _amount, _destination]: [
string,
BigNumberish,
string
]): string;
}>;
refreshConfiguration: TypedFunctionDescription<{encode([]: []): string}>;
refreshConfiguration: TypedFunctionDescription<{ encode([]: []): string }>;
removeLastAddedReserve: TypedFunctionDescription<{
encode([_reserveToRemove]: [string]): string;
@ -243,7 +255,11 @@ interface LendingPoolCoreInterface extends Interface {
}>;
setUserUseReserveAsCollateral: TypedFunctionDescription<{
encode([_reserve, _user, _useAsCollateral]: [string, string, boolean]): string;
encode([_reserve, _user, _useAsCollateral]: [
string,
string,
boolean
]): string;
}>;
transferToFeeCollectionAddress: TypedFunctionDescription<{
@ -256,11 +272,19 @@ interface LendingPoolCoreInterface extends Interface {
}>;
transferToReserve: TypedFunctionDescription<{
encode([_reserve, _user, _amount]: [string, string, BigNumberish]): string;
encode([_reserve, _user, _amount]: [
string,
string,
BigNumberish
]): string;
}>;
transferToUser: TypedFunctionDescription<{
encode([_reserve, _user, _amount]: [string, string, BigNumberish]): string;
encode([_reserve, _user, _amount]: [
string,
string,
BigNumberish
]): string;
}>;
unfreezeReserve: TypedFunctionDescription<{
@ -305,7 +329,7 @@ interface LendingPoolCoreInterface extends Interface {
_feeLiquidated,
_liquidatedCollateralForFee,
_balanceIncrease,
_liquidatorReceivesAToken,
_liquidatorReceivesAToken
]: [
string,
string,
@ -320,7 +344,11 @@ interface LendingPoolCoreInterface extends Interface {
}>;
updateStateOnRebalance: TypedFunctionDescription<{
encode([_reserve, _user, _balanceIncrease]: [string, string, BigNumberish]): string;
encode([_reserve, _user, _balanceIncrease]: [
string,
string,
BigNumberish
]): string;
}>;
updateStateOnRedeem: TypedFunctionDescription<{
@ -339,8 +367,15 @@ interface LendingPoolCoreInterface extends Interface {
_paybackAmountMinusFees,
_originationFeeRepaid,
_balanceIncrease,
_repaidWholeLoan,
]: [string, string, BigNumberish, BigNumberish, BigNumberish, boolean]): string;
_repaidWholeLoan
]: [
string,
string,
BigNumberish,
BigNumberish,
BigNumberish,
boolean
]): string;
}>;
updateStateOnSwapRate: TypedFunctionDescription<{
@ -350,8 +385,15 @@ interface LendingPoolCoreInterface extends Interface {
_principalBorrowBalance,
_compoundedBorrowBalance,
_balanceIncrease,
_currentRateMode,
]: [string, string, BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
_currentRateMode
]: [
string,
string,
BigNumberish,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
}>;
};
@ -364,7 +406,7 @@ interface LendingPoolCoreInterface extends Interface {
averageStableBorrowRate,
variableBorrowRate,
liquidityIndex,
variableBorrowIndex,
variableBorrowIndex
]: [string | null, null, null, null, null, null, null]): string[];
}>;
@ -375,7 +417,7 @@ interface LendingPoolCoreInterface extends Interface {
stableBorrowRate,
variableBorrowRate,
liquidityIndex,
variableBorrowIndex,
variableBorrowIndex
]: [string | null, null, null, null, null, null]): string[];
}>;
};
@ -388,7 +430,10 @@ export class LendingPoolCore extends Contract {
on(event: EventFilter | string, listener: Listener): LendingPoolCore;
once(event: EventFilter | string, listener: Listener): LendingPoolCore;
addListener(eventName: EventFilter | string, listener: Listener): LendingPoolCore;
addListener(
eventName: EventFilter | string,
listener: Listener
): LendingPoolCore;
removeAllListeners(eventName: EventFilter | string): LendingPoolCore;
removeListener(eventName: any, listener: Listener): LendingPoolCore;
@ -441,7 +486,10 @@ export class LendingPoolCore extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
freezeReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
getReserveATokenAddress(_reserve: string): Promise<string>;
@ -456,7 +504,9 @@ export class LendingPoolCore extends Contract {
3: boolean;
}>;
getReserveCurrentAverageStableBorrowRate(_reserve: string): Promise<BigNumber>;
getReserveCurrentAverageStableBorrowRate(
_reserve: string
): Promise<BigNumber>;
getReserveCurrentLiquidityRate(_reserve: string): Promise<BigNumber>;
@ -494,7 +544,9 @@ export class LendingPoolCore extends Contract {
getReserveUtilizationRate(_reserve: string): Promise<BigNumber>;
getReserveVariableBorrowsCumulativeIndex(_reserve: string): Promise<BigNumber>;
getReserveVariableBorrowsCumulativeIndex(
_reserve: string
): Promise<BigNumber>;
getReserves(): Promise<string[]>;
@ -517,17 +569,29 @@ export class LendingPoolCore extends Contract {
2: BigNumber;
}>;
getUserCurrentBorrowRateMode(_reserve: string, _user: string): Promise<number>;
getUserCurrentBorrowRateMode(
_reserve: string,
_user: string
): Promise<number>;
getUserCurrentStableBorrowRate(_reserve: string, _user: string): Promise<BigNumber>;
getUserCurrentStableBorrowRate(
_reserve: string,
_user: string
): Promise<BigNumber>;
getUserLastUpdate(_reserve: string, _user: string): Promise<BigNumber>;
getUserOriginationFee(_reserve: string, _user: string): Promise<BigNumber>;
getUserUnderlyingAssetBalance(_reserve: string, _user: string): Promise<BigNumber>;
getUserUnderlyingAssetBalance(
_reserve: string,
_user: string
): Promise<BigNumber>;
getUserVariableBorrowCumulativeIndex(_reserve: string, _user: string): Promise<BigNumber>;
getUserVariableBorrowCumulativeIndex(
_reserve: string,
_user: string
): Promise<BigNumber>;
initReserve(
_reserve: string,
@ -552,7 +616,10 @@ export class LendingPoolCore extends Contract {
_amount: BigNumberish
): Promise<boolean>;
isUserUseReserveAsCollateralEnabled(_reserve: string, _user: string): Promise<boolean>;
isUserUseReserveAsCollateralEnabled(
_reserve: string,
_user: string
): Promise<boolean>;
lendingPoolAddress(): Promise<string>;
@ -563,7 +630,9 @@ export class LendingPoolCore extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
refreshConfiguration(overrides?: TransactionOverrides): Promise<ContractTransaction>;
refreshConfiguration(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
removeLastAddedReserve(
_reserveToRemove: string,
@ -710,7 +779,10 @@ export class LendingPoolCore extends Contract {
): Promise<ContractTransaction>;
};
activateReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
activateReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
addressesProvider(): Promise<string>;
@ -753,7 +825,10 @@ export class LendingPoolCore extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
freezeReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
getReserveATokenAddress(_reserve: string): Promise<string>;
@ -768,7 +843,9 @@ export class LendingPoolCore extends Contract {
3: boolean;
}>;
getReserveCurrentAverageStableBorrowRate(_reserve: string): Promise<BigNumber>;
getReserveCurrentAverageStableBorrowRate(
_reserve: string
): Promise<BigNumber>;
getReserveCurrentLiquidityRate(_reserve: string): Promise<BigNumber>;
@ -806,7 +883,9 @@ export class LendingPoolCore extends Contract {
getReserveUtilizationRate(_reserve: string): Promise<BigNumber>;
getReserveVariableBorrowsCumulativeIndex(_reserve: string): Promise<BigNumber>;
getReserveVariableBorrowsCumulativeIndex(
_reserve: string
): Promise<BigNumber>;
getReserves(): Promise<string[]>;
@ -829,17 +908,29 @@ export class LendingPoolCore extends Contract {
2: BigNumber;
}>;
getUserCurrentBorrowRateMode(_reserve: string, _user: string): Promise<number>;
getUserCurrentBorrowRateMode(
_reserve: string,
_user: string
): Promise<number>;
getUserCurrentStableBorrowRate(_reserve: string, _user: string): Promise<BigNumber>;
getUserCurrentStableBorrowRate(
_reserve: string,
_user: string
): Promise<BigNumber>;
getUserLastUpdate(_reserve: string, _user: string): Promise<BigNumber>;
getUserOriginationFee(_reserve: string, _user: string): Promise<BigNumber>;
getUserUnderlyingAssetBalance(_reserve: string, _user: string): Promise<BigNumber>;
getUserUnderlyingAssetBalance(
_reserve: string,
_user: string
): Promise<BigNumber>;
getUserVariableBorrowCumulativeIndex(_reserve: string, _user: string): Promise<BigNumber>;
getUserVariableBorrowCumulativeIndex(
_reserve: string,
_user: string
): Promise<BigNumber>;
initReserve(
_reserve: string,
@ -864,7 +955,10 @@ export class LendingPoolCore extends Contract {
_amount: BigNumberish
): Promise<boolean>;
isUserUseReserveAsCollateralEnabled(_reserve: string, _user: string): Promise<boolean>;
isUserUseReserveAsCollateralEnabled(
_reserve: string,
_user: string
): Promise<boolean>;
lendingPoolAddress(): Promise<string>;
@ -875,7 +969,9 @@ export class LendingPoolCore extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
refreshConfiguration(overrides?: TransactionOverrides): Promise<ContractTransaction>;
refreshConfiguration(
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
removeLastAddedReserve(
_reserveToRemove: string,
@ -943,7 +1039,10 @@ export class LendingPoolCore extends Contract {
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
unfreezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
unfreezeReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
updateStateOnBorrow(
_reserve: string,
@ -1074,7 +1173,9 @@ export class LendingPoolCore extends Contract {
getReserveConfiguration(_reserve: string): Promise<BigNumber>;
getReserveCurrentAverageStableBorrowRate(_reserve: string): Promise<BigNumber>;
getReserveCurrentAverageStableBorrowRate(
_reserve: string
): Promise<BigNumber>;
getReserveCurrentLiquidityRate(_reserve: string): Promise<BigNumber>;
@ -1112,25 +1213,42 @@ export class LendingPoolCore extends Contract {
getReserveUtilizationRate(_reserve: string): Promise<BigNumber>;
getReserveVariableBorrowsCumulativeIndex(_reserve: string): Promise<BigNumber>;
getReserveVariableBorrowsCumulativeIndex(
_reserve: string
): Promise<BigNumber>;
getReserves(): Promise<BigNumber>;
getUserBasicReserveData(_reserve: string, _user: string): Promise<BigNumber>;
getUserBasicReserveData(
_reserve: string,
_user: string
): Promise<BigNumber>;
getUserBorrowBalances(_reserve: string, _user: string): Promise<BigNumber>;
getUserCurrentBorrowRateMode(_reserve: string, _user: string): Promise<BigNumber>;
getUserCurrentBorrowRateMode(
_reserve: string,
_user: string
): Promise<BigNumber>;
getUserCurrentStableBorrowRate(_reserve: string, _user: string): Promise<BigNumber>;
getUserCurrentStableBorrowRate(
_reserve: string,
_user: string
): Promise<BigNumber>;
getUserLastUpdate(_reserve: string, _user: string): Promise<BigNumber>;
getUserOriginationFee(_reserve: string, _user: string): Promise<BigNumber>;
getUserUnderlyingAssetBalance(_reserve: string, _user: string): Promise<BigNumber>;
getUserUnderlyingAssetBalance(
_reserve: string,
_user: string
): Promise<BigNumber>;
getUserVariableBorrowCumulativeIndex(_reserve: string, _user: string): Promise<BigNumber>;
getUserVariableBorrowCumulativeIndex(
_reserve: string,
_user: string
): Promise<BigNumber>;
initReserve(
_reserve: string,
@ -1151,11 +1269,18 @@ export class LendingPoolCore extends Contract {
_amount: BigNumberish
): Promise<BigNumber>;
isUserUseReserveAsCollateralEnabled(_reserve: string, _user: string): Promise<BigNumber>;
isUserUseReserveAsCollateralEnabled(
_reserve: string,
_user: string
): Promise<BigNumber>;
lendingPoolAddress(): Promise<BigNumber>;
liquidateFee(_token: string, _amount: BigNumberish, _destination: string): Promise<BigNumber>;
liquidateFee(
_token: string,
_amount: BigNumberish,
_destination: string
): Promise<BigNumber>;
refreshConfiguration(): Promise<BigNumber>;
@ -1163,18 +1288,30 @@ export class LendingPoolCore extends Contract {
reservesList(arg0: BigNumberish): Promise<BigNumber>;
setReserveBaseLTVasCollateral(_reserve: string, _ltv: BigNumberish): Promise<BigNumber>;
setReserveBaseLTVasCollateral(
_reserve: string,
_ltv: BigNumberish
): Promise<BigNumber>;
setReserveDecimals(_reserve: string, _decimals: BigNumberish): Promise<BigNumber>;
setReserveDecimals(
_reserve: string,
_decimals: BigNumberish
): Promise<BigNumber>;
setReserveInterestRateStrategyAddress(
_reserve: string,
_rateStrategyAddress: string
): Promise<BigNumber>;
setReserveLiquidationBonus(_reserve: string, _bonus: BigNumberish): Promise<BigNumber>;
setReserveLiquidationBonus(
_reserve: string,
_bonus: BigNumberish
): Promise<BigNumber>;
setReserveLiquidationThreshold(_reserve: string, _threshold: BigNumberish): Promise<BigNumber>;
setReserveLiquidationThreshold(
_reserve: string,
_threshold: BigNumberish
): Promise<BigNumber>;
setUserUseReserveAsCollateral(
_reserve: string,
@ -1189,9 +1326,17 @@ export class LendingPoolCore extends Contract {
_destination: string
): Promise<BigNumber>;
transferToReserve(_reserve: string, _user: string, _amount: BigNumberish): Promise<BigNumber>;
transferToReserve(
_reserve: string,
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
transferToUser(_reserve: string, _user: string, _amount: BigNumberish): Promise<BigNumber>;
transferToUser(
_reserve: string,
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
unfreezeReserve(_reserve: string): Promise<BigNumber>;

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface LendingPoolDataProviderInterface extends Interface {
functions: {
@ -16,10 +20,14 @@ interface LendingPoolDataProviderInterface extends Interface {
encode([]: []): string;
}>;
addressesProvider: TypedFunctionDescription<{encode([]: []): string}>;
addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>;
balanceDecreaseAllowed: TypedFunctionDescription<{
encode([_reserve, _user, _amount]: [string, string, BigNumberish]): string;
encode([_reserve, _user, _amount]: [
string,
string,
BigNumberish
]): string;
}>;
calculateCollateralNeededInETH: TypedFunctionDescription<{
@ -29,15 +37,22 @@ interface LendingPoolDataProviderInterface extends Interface {
_fee,
_userCurrentBorrowBalanceTH,
_userCurrentFeesETH,
_userCurrentLtv,
]: [string, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
_userCurrentLtv
]: [
string,
BigNumberish,
BigNumberish,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
}>;
calculateUserGlobalData: TypedFunctionDescription<{
encode([_user]: [string]): string;
}>;
core: TypedFunctionDescription<{encode([]: []): string}>;
core: TypedFunctionDescription<{ encode([]: []): string }>;
getHealthFactorLiquidationThreshold: TypedFunctionDescription<{
encode([]: []): string;
@ -68,13 +83,21 @@ interface LendingPoolDataProviderInterface extends Interface {
}
export class LendingPoolDataProvider extends Contract {
connect(signerOrProvider: Signer | Provider | string): LendingPoolDataProvider;
connect(
signerOrProvider: Signer | Provider | string
): LendingPoolDataProvider;
attach(addressOrName: string): LendingPoolDataProvider;
deployed(): Promise<LendingPoolDataProvider>;
on(event: EventFilter | string, listener: Listener): LendingPoolDataProvider;
once(event: EventFilter | string, listener: Listener): LendingPoolDataProvider;
addListener(eventName: EventFilter | string, listener: Listener): LendingPoolDataProvider;
once(
event: EventFilter | string,
listener: Listener
): LendingPoolDataProvider;
addListener(
eventName: EventFilter | string,
listener: Listener
): LendingPoolDataProvider;
removeAllListeners(eventName: EventFilter | string): LendingPoolDataProvider;
removeListener(eventName: any, listener: Listener): LendingPoolDataProvider;
@ -238,7 +261,11 @@ export class LendingPoolDataProvider extends Contract {
addressesProvider(): Promise<string>;
balanceDecreaseAllowed(_reserve: string, _user: string, _amount: BigNumberish): Promise<boolean>;
balanceDecreaseAllowed(
_reserve: string,
_user: string,
_amount: BigNumberish
): Promise<boolean>;
calculateCollateralNeededInETH(
_reserve: string,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,14 +1,18 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface LendingPoolLiquidationManagerInterface extends Interface {
functions: {
addressesProvider: TypedFunctionDescription<{encode([]: []): string}>;
addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>;
liquidationCall: TypedFunctionDescription<{
encode([_collateral, _reserve, _user, _purchaseAmount, _receiveAToken]: [
@ -35,22 +39,47 @@ interface LendingPoolLiquidationManagerInterface extends Interface {
_liquidatedCollateralAmount,
_liquidator,
_receiveAToken,
_timestamp,
]: [string | null, string | null, string | null, null, null, null, null, null]): string[];
_timestamp
]: [
string | null,
string | null,
string | null,
null,
null,
null,
null,
null
]): string[];
}>;
};
}
export class LendingPoolLiquidationManager extends Contract {
connect(signerOrProvider: Signer | Provider | string): LendingPoolLiquidationManager;
connect(
signerOrProvider: Signer | Provider | string
): LendingPoolLiquidationManager;
attach(addressOrName: string): LendingPoolLiquidationManager;
deployed(): Promise<LendingPoolLiquidationManager>;
on(event: EventFilter | string, listener: Listener): LendingPoolLiquidationManager;
once(event: EventFilter | string, listener: Listener): LendingPoolLiquidationManager;
addListener(eventName: EventFilter | string, listener: Listener): LendingPoolLiquidationManager;
removeAllListeners(eventName: EventFilter | string): LendingPoolLiquidationManager;
removeListener(eventName: any, listener: Listener): LendingPoolLiquidationManager;
on(
event: EventFilter | string,
listener: Listener
): LendingPoolLiquidationManager;
once(
event: EventFilter | string,
listener: Listener
): LendingPoolLiquidationManager;
addListener(
eventName: EventFilter | string,
listener: Listener
): LendingPoolLiquidationManager;
removeAllListeners(
eventName: EventFilter | string
): LendingPoolLiquidationManager;
removeListener(
eventName: any,
listener: Listener
): LendingPoolLiquidationManager;
interface: LendingPoolLiquidationManagerInterface;

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,14 @@
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
import { Listener, Provider } from "ethers/providers";
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
import {
TransactionOverrides,
TypedEventDescription,
TypedFunctionDescription
} from ".";
interface LendingPoolParametersProviderInterface extends Interface {
functions: {
@ -29,15 +33,31 @@ interface LendingPoolParametersProviderInterface extends Interface {
}
export class LendingPoolParametersProvider extends Contract {
connect(signerOrProvider: Signer | Provider | string): LendingPoolParametersProvider;
connect(
signerOrProvider: Signer | Provider | string
): LendingPoolParametersProvider;
attach(addressOrName: string): LendingPoolParametersProvider;
deployed(): Promise<LendingPoolParametersProvider>;
on(event: EventFilter | string, listener: Listener): LendingPoolParametersProvider;
once(event: EventFilter | string, listener: Listener): LendingPoolParametersProvider;
addListener(eventName: EventFilter | string, listener: Listener): LendingPoolParametersProvider;
removeAllListeners(eventName: EventFilter | string): LendingPoolParametersProvider;
removeListener(eventName: any, listener: Listener): LendingPoolParametersProvider;
on(
event: EventFilter | string,
listener: Listener
): LendingPoolParametersProvider;
once(
event: EventFilter | string,
listener: Listener
): LendingPoolParametersProvider;
addListener(
eventName: EventFilter | string,
listener: Listener
): LendingPoolParametersProvider;
removeAllListeners(
eventName: EventFilter | string
): LendingPoolParametersProvider;
removeListener(
eventName: any,
listener: Listener
): LendingPoolParametersProvider;
interface: LendingPoolParametersProviderInterface;

View File

@ -1,19 +1,21 @@
/* 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 { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
import {TransactionOverrides} from '.';
import {LendingPoolParametersProvider} from './LendingPoolParametersProvider';
import { TransactionOverrides } from ".";
import { LendingPoolParametersProvider } from "./LendingPoolParametersProvider";
export class LendingPoolParametersProviderFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides?: TransactionOverrides): Promise<LendingPoolParametersProvider> {
deploy(
overrides?: TransactionOverrides
): Promise<LendingPoolParametersProvider> {
return super.deploy(overrides) as Promise<LendingPoolParametersProvider>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
@ -29,69 +31,73 @@ export class LendingPoolParametersProviderFactory extends ContractFactory {
address: string,
signerOrProvider: Signer | Provider
): LendingPoolParametersProvider {
return new Contract(address, _abi, signerOrProvider) as LendingPoolParametersProvider;
return new Contract(
address,
_abi,
signerOrProvider
) as LendingPoolParametersProvider;
}
}
const _abi = [
{
inputs: [],
name: 'getFlashLoanFeesInBips',
name: "getFlashLoanFeesInBips",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
internalType: "uint256",
name: "",
type: "uint256"
},
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'pure',
type: 'function',
stateMutability: "pure",
type: "function"
},
{
inputs: [],
name: 'getMaxStableRateBorrowSizePercent',
name: "getMaxStableRateBorrowSizePercent",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'pure',
type: 'function',
stateMutability: "pure",
type: "function"
},
{
inputs: [],
name: 'getRebalanceDownRateDelta',
name: "getRebalanceDownRateDelta",
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: 'pure',
type: 'function',
stateMutability: "pure",
type: "function"
},
{
inputs: [
{
internalType: 'address',
name: '_addressesProvider',
type: 'address',
},
internalType: "address",
name: "_addressesProvider",
type: "address"
}
],
name: 'initialize',
name: "initialize",
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode =
'0x60806040526000805534801561001457600080fd5b506101e5806100246000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806346f4f8d114610051578063586feb401461006b578063c4d66de81461008c578063d6b725ac146100b4575b600080fd5b6100596100bc565b60408051918252519081900360200190f35b6100736100cb565b6040805192835260208301919091528051918290030190f35b6100b2600480360360208110156100a257600080fd5b50356001600160a01b03166100d4565b005b610059610171565b6aa56fa5b99019a5c800000090565b6009610bb89091565b60006100de610176565b60015490915060ff16806100f557506100f561017b565b80610101575060005481115b61013c5760405162461bcd60e51b815260040180806020018281038252602e815260200180610182602e913960400191505060405180910390fd5b60015460ff1615801561015b576001805460ff19168117905560008290555b801561016c576001805460ff191690555b505050565b601990565b600290565b303b159056fe436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a264697066735822122063901128b8eb0844da98c6440cfb4a178fa19b719b954c9bf24df1d1abd1811064736f6c63430006080033';
"0x60806040526000805534801561001457600080fd5b506101e5806100246000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806346f4f8d114610051578063586feb401461006b578063c4d66de81461008c578063d6b725ac146100b4575b600080fd5b6100596100bc565b60408051918252519081900360200190f35b6100736100cb565b6040805192835260208301919091528051918290030190f35b6100b2600480360360208110156100a257600080fd5b50356001600160a01b03166100d4565b005b610059610171565b6aa56fa5b99019a5c800000090565b6009610bb89091565b60006100de610176565b60015490915060ff16806100f557506100f561017b565b80610101575060005481115b61013c5760405162461bcd60e51b815260040180806020018281038252602e815260200180610182602e913960400191505060405180910390fd5b60015460ff1615801561015b576001805460ff19168117905560008290555b801561016c576001805460ff191690555b505050565b601990565b600290565b303b159056fe436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a264697066735822122063901128b8eb0844da98c6440cfb4a178fa19b719b954c9bf24df1d1abd1811064736f6c63430006080033";

Some files were not shown because too many files have changed in this diff Show More