diff --git a/buidler.config.ts b/buidler.config.ts index 5b804bab..afd7b493 100644 --- a/buidler.config.ts +++ b/buidler.config.ts @@ -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); diff --git a/contracts/tokenization/AToken.sol b/contracts/tokenization/AToken.sol index adb121d6..2564b90d 100644 --- a/contracts/tokenization/AToken.sol +++ b/contracts/tokenization/AToken.sol @@ -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 diff --git a/deployed-contracts.json b/deployed-contracts.json index e6b20b9a..b2b74d54 100644 --- a/deployed-contracts.json +++ b/deployed-contracts.json @@ -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" } } diff --git a/helpers/contracts-helpers.ts b/helpers/contracts-helpers.ts index 0967e0c2..df99a09c 100644 --- a/helpers/contracts-helpers.ts +++ b/helpers/contracts-helpers.ts @@ -286,6 +286,16 @@ export const deployVariableDebtToken = async ([ return token; }; +export const deployGenericAToken = async ([ + name, + symbol +]: [string, string]) => { + const token = await deployContract(eContractid.AToken, [name, symbol]); + + return token; +}; + + export const getLendingPoolAddressesProvider = async (address?: tEthereumAddress) => { return await getContract( eContractid.LendingPoolAddressesProvider, diff --git a/test/__setup.spec.ts b/test/__setup.spec.ts index fb5b6d5d..d3b1352c 100644 --- a/test/__setup.spec.ts +++ b/test/__setup.spec.ts @@ -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, diff --git a/tsts.log b/tsts.log new file mode 100644 index 00000000..f324f568 --- /dev/null +++ b/tsts.log @@ -0,0 +1,2638 @@ +All contracts have already been compiled, skipping compilation. + +-> Deploying test environment... +*** MintableERC20 *** + +Network: localhost +tx: 0xb586d7783b4f19aca0817f2817d4d524c88a3b82eddb822789753d1569448533 +contract address: 0xD5A0587aAEB195028909E98930B391dFB3f9F589 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** DAI *** + +Network: localhost +tx: 0xb586d7783b4f19aca0817f2817d4d524c88a3b82eddb822789753d1569448533 +contract address: 0xD5A0587aAEB195028909E98930B391dFB3f9F589 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x17f1ad3a71bff8ddb086b3a29e0eab189798c7d35ac26ca1fd3cc4f739d0d4b9 +contract address: 0xaD3AdbC18E4AD090034A6C74Eda61f4310dce313 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** LEND *** + +Network: localhost +tx: 0x17f1ad3a71bff8ddb086b3a29e0eab189798c7d35ac26ca1fd3cc4f739d0d4b9 +contract address: 0xaD3AdbC18E4AD090034A6C74Eda61f4310dce313 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0xca99910956648226bd377089f602824bd5f64b05c43fda0453c2b11fde138e8b +contract address: 0x25a88BbA9c8D2a46e3Ff4bFe98712DF7A1044fB6 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** TUSD *** + +Network: localhost +tx: 0xca99910956648226bd377089f602824bd5f64b05c43fda0453c2b11fde138e8b +contract address: 0x25a88BbA9c8D2a46e3Ff4bFe98712DF7A1044fB6 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x7654a1b1e5c6f396c168a71db5a9aff5706f8f5769a9139aafeee636132dcda8 +contract address: 0x16d1802cd7cfcb67955BBBa26bAae1cE559B5F5B +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** BAT *** + +Network: localhost +tx: 0x7654a1b1e5c6f396c168a71db5a9aff5706f8f5769a9139aafeee636132dcda8 +contract address: 0x16d1802cd7cfcb67955BBBa26bAae1cE559B5F5B +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0xf0572fc05c6b6a1c492d3a01656d4bf4cfae18cf36eb2445e900f87f2bc62585 +contract address: 0xE58d8c88f5A670f16BE8F7864707170F43e943A6 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** USDC *** + +Network: localhost +tx: 0xf0572fc05c6b6a1c492d3a01656d4bf4cfae18cf36eb2445e900f87f2bc62585 +contract address: 0xE58d8c88f5A670f16BE8F7864707170F43e943A6 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x0ed01d58842adba8e7d0225f32861c619ef0d63f82b76a661dcdef8259312ff5 +contract address: 0xfdAF4f6e47e854c05bE158993d32872e784F0502 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** USDT *** + +Network: localhost +tx: 0x0ed01d58842adba8e7d0225f32861c619ef0d63f82b76a661dcdef8259312ff5 +contract address: 0xfdAF4f6e47e854c05bE158993d32872e784F0502 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0xddb5f1909ea97c0cb2fbbd04e60e6a97533911b033dae68e13e498172be3f88a +contract address: 0x92edC13A10036A3C50396f2B63148a3e9a8D589e +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** SUSD *** + +Network: localhost +tx: 0xddb5f1909ea97c0cb2fbbd04e60e6a97533911b033dae68e13e498172be3f88a +contract address: 0x92edC13A10036A3C50396f2B63148a3e9a8D589e +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0xeb716a2750602d4ba8db1c4efee18b5323b3fcd9bb1a2267cfdd14c552630d9d +contract address: 0xE5C277cDb7E10372918Ac54Ce54022910A24FE88 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** ZRX *** + +Network: localhost +tx: 0xeb716a2750602d4ba8db1c4efee18b5323b3fcd9bb1a2267cfdd14c552630d9d +contract address: 0xE5C277cDb7E10372918Ac54Ce54022910A24FE88 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x2e6f6babd892cc75a3c2630835fdb41a8ac20b06606d896ba80775c57ce99ec0 +contract address: 0xF5742a599a0F4520089cbf2EBBa66Bb4F471B85F +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** MKR *** + +Network: localhost +tx: 0x2e6f6babd892cc75a3c2630835fdb41a8ac20b06606d896ba80775c57ce99ec0 +contract address: 0xF5742a599a0F4520089cbf2EBBa66Bb4F471B85F +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x90484426bb324067dc5b2b4f897390cef832f9875973d66f5c74cc90afe4340b +contract address: 0x380EF388e13D8cAdeACef6eF682C7B7D85865076 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** WBTC *** + +Network: localhost +tx: 0x90484426bb324067dc5b2b4f897390cef832f9875973d66f5c74cc90afe4340b +contract address: 0x380EF388e13D8cAdeACef6eF682C7B7D85865076 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x180405090baf7a2cb35b4453f858ebb463aeb383d5574de209ec1ff6c9fc7d72 +contract address: 0xC89577DED8441e52C17C13D527b85b225C5c8311 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** LINK *** + +Network: localhost +tx: 0x180405090baf7a2cb35b4453f858ebb463aeb383d5574de209ec1ff6c9fc7d72 +contract address: 0xC89577DED8441e52C17C13D527b85b225C5c8311 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x0aff12a4e1949b7e88aeeac10c2dbc63126d9784aa26247e9d60938e7ca8a7df +contract address: 0xD4b06774A717Ff5A7c20c8712e31c6BbfFcb1F01 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** KNC *** + +Network: localhost +tx: 0x0aff12a4e1949b7e88aeeac10c2dbc63126d9784aa26247e9d60938e7ca8a7df +contract address: 0xD4b06774A717Ff5A7c20c8712e31c6BbfFcb1F01 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0xf94f401499afea0ef833233195ab8b3352061626b4848065309d068f81341795 +contract address: 0xbe66dC9DFEe580ED968403e35dF7b5159f873df8 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** MANA *** + +Network: localhost +tx: 0xf94f401499afea0ef833233195ab8b3352061626b4848065309d068f81341795 +contract address: 0xbe66dC9DFEe580ED968403e35dF7b5159f873df8 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x1a455d398c833e8568c2330bd08cd1398d2e327e9bc9912ebc09ef63cac19ae7 +contract address: 0x93AfC6Df4bB8F62F2493B19e577f8382c0BA9EBC +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** REP *** + +Network: localhost +tx: 0x1a455d398c833e8568c2330bd08cd1398d2e327e9bc9912ebc09ef63cac19ae7 +contract address: 0x93AfC6Df4bB8F62F2493B19e577f8382c0BA9EBC +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x5d7ef2fa40a15b6b35a850bb52298cba290dd484dc0c2220bcf6f1c59b71f572 +contract address: 0x75Ded61646B5945BdDd0CD9a9Db7c8288DA6F810 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** SNX *** + +Network: localhost +tx: 0x5d7ef2fa40a15b6b35a850bb52298cba290dd484dc0c2220bcf6f1c59b71f572 +contract address: 0x75Ded61646B5945BdDd0CD9a9Db7c8288DA6F810 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x66323417565315754c3e690c819da610047a75eea1dbff9ace2e4f1b96f722e9 +contract address: 0xdE7c40e675bF1aA45c18cCbaEb9662B16b0Ddf7E +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** BUSD *** + +Network: localhost +tx: 0x66323417565315754c3e690c819da610047a75eea1dbff9ace2e4f1b96f722e9 +contract address: 0xdE7c40e675bF1aA45c18cCbaEb9662B16b0Ddf7E +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770555 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x590cf5ab8151b9c3f791c52537ff1d5350fef57119dade8feaad1dd1a7da7500 +contract address: 0xEcb928A3c079a1696Aa5244779eEc3dE1717fACd +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** USD *** + +Network: localhost +tx: 0x590cf5ab8151b9c3f791c52537ff1d5350fef57119dade8feaad1dd1a7da7500 +contract address: 0xEcb928A3c079a1696Aa5244779eEc3dE1717fACd +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3770435 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x99b8ab1454c11bc7772d5d74d561b3303245172fcebe4fd0bf0eadc7c630d973 +contract address: 0xDFbeeed692AA81E7f86E72F7ACbEA2A1C4d63544 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771395 + +****** + +*** UNI_DAI_ETH *** + +Network: localhost +tx: 0x99b8ab1454c11bc7772d5d74d561b3303245172fcebe4fd0bf0eadc7c630d973 +contract address: 0xDFbeeed692AA81E7f86E72F7ACbEA2A1C4d63544 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771395 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x0c2bdc441aa4b7f78ba04c26053aaf04807b8ebd1558e779d0a12cc86fb51fce +contract address: 0x5191aA68c7dB195181Dd2441dBE23A48EA24b040 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771515 + +****** + +*** UNI_USDC_ETH *** + +Network: localhost +tx: 0x0c2bdc441aa4b7f78ba04c26053aaf04807b8ebd1558e779d0a12cc86fb51fce +contract address: 0x5191aA68c7dB195181Dd2441dBE23A48EA24b040 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771515 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x8a093c424df4bfee30b00570abe92496772d8c6510ac37623fe2ff9dba6a8bba +contract address: 0x8F9422aa37215c8b3D1Ea1674138107F84D68F26 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771515 + +****** + +*** UNI_SETH_ETH *** + +Network: localhost +tx: 0x8a093c424df4bfee30b00570abe92496772d8c6510ac37623fe2ff9dba6a8bba +contract address: 0x8F9422aa37215c8b3D1Ea1674138107F84D68F26 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771515 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x94d62111a7ffcdca5888e8ac7eea84ca0977ee44ee7b52517039536446897c80 +contract address: 0xa89E20284Bd638F31b0011D0fC754Fc9d2fa73e3 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771515 + +****** + +*** UNI_LINK_ETH *** + +Network: localhost +tx: 0x94d62111a7ffcdca5888e8ac7eea84ca0977ee44ee7b52517039536446897c80 +contract address: 0xa89E20284Bd638F31b0011D0fC754Fc9d2fa73e3 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771515 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x4b5d449af171dc55d70923e1d41f0bee93d0d0f371b98cf1072e552e18d041fd +contract address: 0xaA935993065F2dDB1d13623B1941C7AEE3A60F23 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771395 + +****** + +*** UNI_MKR_ETH *** + +Network: localhost +tx: 0x4b5d449af171dc55d70923e1d41f0bee93d0d0f371b98cf1072e552e18d041fd +contract address: 0xaA935993065F2dDB1d13623B1941C7AEE3A60F23 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771395 + +****** + +*** MintableERC20 *** + +Network: localhost +tx: 0x876f15e035bb292b0f73707a18abb5568abb6381084d989e999a05e95de46121 +contract address: 0x35A2624888e207e4B3434E9a9E250bF6Ee68FeA3 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771515 + +****** + +*** UNI_LEND_ETH *** + +Network: localhost +tx: 0x876f15e035bb292b0f73707a18abb5568abb6381084d989e999a05e95de46121 +contract address: 0x35A2624888e207e4B3434E9a9E250bF6Ee68FeA3 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 3771515 + +****** + +*** LendingPoolAddressesProvider *** + +Network: localhost +tx: 0x3fce8f0464b62f280e1c7b8dd33e27d15b6f716adf04106873adb61bc3bf7a53 +contract address: 0x1f569c307949a908A4b8Ff7453a88Ca0b8D8df13 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 7132975 + +****** + +*** LendingPoolAddressesProviderRegistry *** + +Network: localhost +tx: 0xc5f5f7f5f572a0f2b6539cddd35d50bdb340b7a79296efacfd25945ddfa5066c +contract address: 0x0766c9592a8686CAB0081b4f35449462c6e82F11 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2407480 + +****** + +*** FeeProvider *** + +Network: localhost +tx: 0xb1ad34af13934db51b5717e5f1b835dd0d978c21e53aae0bc6009d90203268dd +contract address: 0x48bb3E35D2D6994374db457a6Bf61de2d9cC8E49 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 1393725 + +****** + +Deployed lending pool, address: 0x09F7bF33B3F8922268B34103af3a8AF83148C9B1 +Added pool to addresses provider +Address is 0x0aA65C476219C5507F920252A84a766fBA750f7d +implementation set, address: 0x0aA65C476219C5507F920252A84a766fBA750f7d +*** LendingPoolConfigurator *** + +Network: localhost +tx: 0xb51529c0793a473a3982ba7314edab9d613c4ce83fbad05bd67565aac39ba2aa +contract address: 0x0Aac5442574A9b15d65fc3DCF536C43a1bB4e512 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** PriceOracle *** + +Network: localhost +tx: 0x2b4e27f785af2d067f0d274568cfbdb016d85a9076bca507e4b8b9b5ec9ae467 +contract address: 0xE0fC5Da76E489677078d00d3f321e9777c76381B +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 767525 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x83fc39840efebce5312a964640fc0036c5b14cc2e1c33d9bea51c2402492f9e5 +contract address: 0x82939Bfa1608CB3Cb4c8E3AF848C195Cc1ea5b63 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524490 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x00d8b37e7bfcfb1f75ed89ad6efd11f98a2227468d95548135bc430fd6307a61 +contract address: 0xBB4BfCbfA82dA2dD614E5bd0454b76de16519d05 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x20235dbccc8ca31f61f05e9c7d34cebfe18a2d762f02c591ef61c3d0f8f69c0a +contract address: 0x44Bb29434CB04e2Ca36F034A470CA95f64aEbc7E +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x86c571896d74d3a55f74b78f63600835ab3fe16465e0a72c26823306f09c862a +contract address: 0x8038eE724A0F18bB11634CC78f123047Fa01bc80 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x46de2d0fc1bd0a2708fa5bddb33fc28c66222bbd423ebef46fb956417bce68ce +contract address: 0xF82a40B63CBCEc5e80d577167B8d3b1DcfE84e5c +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524490 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x60f63168eb72023b798702dafa8aa0d4587eecd410d5e47ed7eaee34753cf88b +contract address: 0xA6004580E827191150006D4748330F7F57FDB054 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524490 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x01aa9c52bbdb824545c70d1e386fa31b27ae481cbddbbba82870ad89f5ed2a75 +contract address: 0x2B46D647B648Cc432dca68aa0f2Edc08386e7b57 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0xa369e6bdd66fae952bcd4820f55c965b05eab6aae218c0bd716bd9bb79fb936a +contract address: 0xb207EcaA1771F05A674E7d24A082b2892DDC66bc +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524490 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x12824ebced7299823ea62b962c5bf53866576739114c2828a144165be60f93af +contract address: 0x2F7e8dCe87DE8d723b897b8220Cf25e1CD2a2Ea6 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0xa36cddf6caff448dc0454af5fe33929f88c86d17d54a1e905b1db402e82f7d5e +contract address: 0xa191baa1E96FeFE2b700C536E245725F09717275 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x40bd33f15fb9d9b7232159422b1570c398c26204faff63588b37e13e3c90aa0b +contract address: 0xbD51e397Aa5012aa91628f0354f9670805BfA94E +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524550 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x33a21c4f39473824c720f0d956a6f4b35c62077a097f204dbbaed3ff3a6e3cb7 +contract address: 0xFc40e47aFD52bD460D65B06c828E54A13d288CE4 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x1faa932094ef2a5fd7d1d6189f9d2bc45aa19769118a42186e8d99e2d89bc068 +contract address: 0x5795a1e56931bB7Fb8389821f3574983502A785d +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524370 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x4ce6fb9d018f5c1164150e3e99923b870e5af843597329e272f3ce3d6409c960 +contract address: 0x715Ad5d800535dB0d334F9F42e3eC393947996e3 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524370 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x443e96ba770ae00e109d83f9ed6799cc0e0c318e477f13366cde539a4a88dc2b +contract address: 0xC452C5244F701108B4e8E8BCe693160046b30332 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x1f861433bf8be55232170a5b6eaf1f16e4a335821f4c42b5e79f6eee405bcd15 +contract address: 0x0B63c002cb44B2e5e580C3B3560a27F4101D95c0 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0xbc759930c4b4202686ca6f1597b0c50e529b231ebc1a3f8bf74371d7cd0af3e5 +contract address: 0x3F80d60280cc4AdF3e5891765b5545A6B36ebe57 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x2fbc3e3a032ab919e4ac94274bf1b4a71e6586c14818303941a40dfb05fd24b4 +contract address: 0xCeB290A2C6614BF23B2faa0f0B8067F29C48DB0F +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x4174404dc611a04751bfee2754742a4a5213fdd493614bb289248b7841f4ccc2 +contract address: 0x90ee8009AA6add17A0de8Ee22666a91602fa4adf +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x863e04b0b967fe53e664d9c3cc8617b1fbafd7f36b8922567e02e7c577b2d784 +contract address: 0xc5BeCE9e44E7dE5464f102f6cD4e5b7aBC94B059 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x365c924632506d3c1b3c94b361719a6d9a72aaf2bf16a8a302fa5fa465758e99 +contract address: 0xF63EA31f84CFF5D1Eb4b8C3ca0D9489490fB98d5 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0x0b28e3dc60d77543c41d9140624daf77796467269a4dcbe5533e8301c9444f74 +contract address: 0xD8f534d97D241Fc9EC4A224C90BDD5E3F3990874 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** MockAggregator *** + +Network: localhost +tx: 0xebdfc0702b3e8fa0937922a35084b8ee7ac18ad96670567992fe6d142eec0d31 +contract address: 0xDCAB55FBf59a253B3Fb0CD2Ba45F0c02413dF375 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 524430 + +****** + +*** ChainlinkProxyPriceProvider *** + +Network: localhost +tx: 0x252c1220976c612e307ba95546ab521169ec3a2d834e558309a88f097f13d2df +contract address: 0x293965D84cE150Cbf5F36332ba47e997e2763bf2 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 6220980 + +****** + +*** LendingRateOracle *** + +Network: localhost +tx: 0xd1419a6cc75c664b8ca393ec7d9da98b2c43d8405acfc49daa7617248feacfb4 +contract address: 0x7549d6bb05083613eF87b723595553dCc570Ca21 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 1719980 + +****** + +Initialize configuration +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x17a7e5dcc03fb1a55300548f547c6a97d682a29576108481f27654a67b64e6e7 +contract address: 0xd5B734c970729Cc6372F7d712C485827d93eD14f +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2894455 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0xc82988f9a8e23d20d2a78ac935bbbe06d60f8b9f71705772674c995c56f925e9 +contract address: 0xb4A57e40bD901D0987F7A3b45ECdE67779E394D6 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0xd8a3d3c280c625409aaa52c0e8cbf7350c4ae22751c0c76627670c0be85b70f5 +contract address: 0xA16D202146aC158562294F67a5631aabdc96B1aD +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0x32ba625b68069b863e911a594214ea7dd7bd7405ba53c21a02572347e88b3c84 +contract address: 0x4A9559FEF44B25F1A7157e047cD09683fe45c599 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0xcf2358a9c62d40389a64cc1952dbfde666b741936ac1b9c094125da2a783d2dd +contract address: 0xe94Cb57AD747445c13C08A931F3f1421C540eB5F +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2894455 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0xf4aa282d726eed9c329098a21e2df10d8dd5f3adbba8e02624ee881dcfc6c3fa +contract address: 0xE2ba935c1b3e833aFD45dA9CBCBDd2e90875ba30 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0x530d34cbf1eed77cb7b0cf0235e9a52921176944466aeb6f3576db74c39377a0 +contract address: 0x303CEAFd0aF91A63576FF7dEFc01E66ca2D19E3a +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0xe6c93a13ec6fdeeb44c80fa9f888ca14fd384acd705866551f893e9839cc0e80 +contract address: 0x5366cD335B002b009304Dc74a21EC97e94510177 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x18896d7ea90749e376733f53ded0bc35192eb240af22e0c2e1ce2351cb6210ac +contract address: 0x71FF58Af627447C233Febdb9390CFB6c52fAA3a7 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2894455 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0xe9b91854c458b0afc9033dbec4eaf485e4367a1c672d2ab6cf3ec95b87f1ede9 +contract address: 0x3E447b144e446558c2467d95FcF17Eaee9d704Bf +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0xeb4d8103ac1056631cbae0553dafbd908049d8feb8b5cca92adbb2d9dbbd79b1 +contract address: 0x6174769FBbC16D956a7bf70c3Ae7283341CAe3B6 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0x51cb8e5f536a05ca4eb21fe2fb7046a780996def5ded7bbcacdf284ec8a133d1 +contract address: 0x09d5c8d8EB9dF4A9779778d4B2c66943F1A0f923 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0xf53898b9abef9f08550b54f552fd74adee31e74d5986d63d93a5eb6088843769 +contract address: 0x23Fa899d0b780f2f439354DcdC325ff738d1234d +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2894455 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0xe509995bf97d52be3a8e86c57a526f00ef8493fb2dbd6a9af98e9b0469d9d710 +contract address: 0x398A7a447E4D9007Fa1A5F82F2D07F0B369bD26f +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0xa3ec3a0ff5900819819f1b68b9ef5cea33797ba73c44cc5bc8f767528c84f056 +contract address: 0xE95b5DF6c8c8b8AE04bb8ccA9802E5faf8E2a380 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0x6a227b837b83929185ad091b87d8b237f558220bdb7085b4619d62718ba7797a +contract address: 0x9cbEE5c0A6178F61dcD57C3b21180C8602aBdAc1 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x23fe6c2e83c173ea95031c47d56dc4d279c5d4a1cab6cc46d88f83a771f3abfb +contract address: 0x3Eb52adc2294219C9A8F27C6a0BCcBBBEEeB0637 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2894455 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0x2c2dc2bc4e87408bd8fbf517c4d6431a3bbadaa8d02d1fa036a5ef1d3eccb8e3 +contract address: 0x1b52F7d75DA9b64daF2D8ad2E7eaf75205c99d3B +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0x68e01336deeef4f2d494fa2a4b2d6ff73e64f6d13a79f7f2141de43bf678a3af +contract address: 0xEC828976783079948F5DfAc8e61de6a895EB59D2 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0xc6ec785b8a82511ffcc15c0573fdd6590795705aa29d02fe5d90681226f4d795 +contract address: 0xdB70141346347383D8e01c565E74b1a607f3Dd05 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0xc1e41b9c5256a08443a6eeaf991490c1b460d20ea36ffcac2f38e055a18948cd +contract address: 0x3597899d1c79b516D724b33c6b5e404dCdD45Da1 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2893975 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0x9b5ec497973ae678f4cffe5845d61c0f44ca824fb8b4552f18014fb203270ca5 +contract address: 0xc489495Ad73C2E75fbBA3916df7BD186F6b1696F +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0xf13b63caec88020573d4f55cca61b7891bc5c9d663b7a9fc8b622df4fcf1cecc +contract address: 0x1FB3ccD743653c4f8533268fFe4a9a9DA97db500 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0x6e94e7e8ee70f6df78c35160bcfdcff8682912fcd57a7ca74e3fdae7410dacbe +contract address: 0x54f9224C1A99951ABc0A7e843CE19a92dFA2E3c4 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x0d9532270cc3f366e8cde750e0505d0970bf6274f2f966d69351a42c0dbdf2c6 +contract address: 0x662b3D8C8Dc691C46334bcB2229336063e3c2487 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2893975 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0xab74ca6869857c82008a1e29326f92573c484db33b618deeb052d4df5f5c0446 +contract address: 0xEa02aebdf8DccbD3bf2BaA9eeBa48b0275D370b8 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0x6f687710634d834f8e41044253e3849b15069e8e6bac8456bf271ae029ce2b82 +contract address: 0x5a3343A0CF72dC6933362676Bb5831784CaA0014 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0xfc17f737acea5399366c6ee283f8fa33defe386cac8d2bee0b380d6dc414c9e1 +contract address: 0x3c3AB51fF33032159e82E1FDEe6503dEd082F1d9 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x4d4701fadeb218ad077ad9ef81babaffcb738eeb308ca77a7bb02caec4ab961f +contract address: 0x50fE7A36aE65481EDD7EAc23bb8E317B7B6bB3E4 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2893975 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0x0a2da6bb7bfb307b6b0aea321d5d999ee6f94d1b57a9f7d53cd4aadee8ab645c +contract address: 0x09e2af829b1C36A6A8876925D1557C0FA1FF7eF5 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0x7df04703a54863a123a3c86fca710d1d88977de643750dfe39fedeb9172bcdab +contract address: 0x912e47ab2257B0fE50516444bb6a12CffaCFA322 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0x201043d0143f780adb92bc45f0649929eb3cb113ba929806b8b72f03977e581f +contract address: 0x04e3A49CE67e0030B455b915c091B02473F0C564 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x68ec4522283aac98f8e96998cf238b33940fb25290d32bdefe1af26f06bd2ed2 +contract address: 0xAB45290275E6970b7B76FbaC8b39619EE05D0B69 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2893975 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0xc0baf40da2684ab97dd25cfd41cfcf156d78120127da7af33f963db2ea01031f +contract address: 0xb1c9e66a9064208a930e446811aBE8f4c24310e0 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0xd49cf021c25e552dc070454193f22f21771fd62c36cc5dd28b32f44b3a199bfa +contract address: 0x26976F523B6dE4315c6A181b0983Eb98F638Bac6 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0x64f34395df43a62a220e7d96fffd26860d525f21aca610f1407f1b4486f4865f +contract address: 0x43d8f4f99eCEE76977B75F1659ad34d6A7652c93 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x59bb3c704f40cfc66fdca8cdd6f499bd7fbc420806d302d14987f030906cab1d +contract address: 0x2f77845F39273850bf6d734e21c0D8E7bdfF50F8 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2893975 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0x41d6f64f12525966590670c30982789b2e99562af9d2a0734892590a552d3e2f +contract address: 0x36e10ACD624a048BC1e2B3B70B37B46a4BA36534 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0x41288fb10efbd96f61c6a15a83f881d30c46e25636bba4d072d672c759f69b8a +contract address: 0x708e2B13F6EB3f62686BAC1795c1e3C09e91eEaF +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0xd3604771fa07de8a051ceabff9a685d1d79c182732f7e34c0e93ddb015fdac5c +contract address: 0x65df659Be90a49356a33458d806d9dE3d8F03969 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x92dbacbff977df187e7189123d5b2b63368febb34e761277b7599223582faba8 +contract address: 0xE5464F611113932335B397Eb0dD1601a896005C6 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2893975 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0x0148f2dd93282f475c0ac15a07709268c5dd58a6fce01fe55acff3cecf6d8305 +contract address: 0xF0cDB2EcE3A2188048b79B1f94b434c594B807fB +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0xdd5e77a53b106861a3e9c2ae036cb8e3d5608237cf43a5b390a8f4547b1487c8 +contract address: 0x7C95b1ad025F0C9aB14192f87bF2aD53889bE4F7 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0x798402acc384eddd9197c7375cf9eb31c12e164952c0a1a0aa6db6af9a6d0383 +contract address: 0x9bD0Bec44106D8Ea8fFb6296d7A84742a290E064 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x42639282634282b44aa8f16f23d337dcb57353014dfaa4987856acab3dc16690 +contract address: 0x34Ac3eB6180FdD94043664C22043F004734Dc480 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2893975 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0xb8ae978124802e1aa93dc3d42da9de44b6d43818fd27d1b3096bda66f31b6959 +contract address: 0x04dE7A5bCCf369cb28AB389BfD7a6262E870B0a6 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0x65647123c5a778c59c670e5e15592c0a1b5ab7be584870d199b16d1f169214f5 +contract address: 0xC9366C94D1760624DFa702Ee99a04E9f6271Aa70 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0xa288a1069e06c47c959a10a51986209396cba4ec8d5ac056287443b8d5620364 +contract address: 0x54F1df7dB2E46dbeF18CF97A376b79108166fa36 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x80b9a652e3b430b97157425adb5d2c186e0423fa9218a5d0771b1fef786a9c1d +contract address: 0xe681Daa8C5aA5029F448592566407df7752B598f +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2893975 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0x2fbc56e578008d75138a6134da27a28f17f5f273ac2279b9c2bfa6a68fd2d1e2 +contract address: 0x267B07Fd1032e9A4e10dBF2600C8407ee6CA1e8c +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0xc80b72e899c867ccb8ecb02fae690a5875d3c3becfde60cacd2d816f98ded2c1 +contract address: 0x2E10b24b10692fa972510051A1e296D4535043ad +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0x118d82908574b47c2c96baea811a1157b7c2bbcbf98233c7d96494d739b40cc2 +contract address: 0xdF19a9539Fdd701D8334299C6Dd04931e4022303 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x314555024b1197ce574d97db099aba5bd79944f22ae9c0d585c80ecf1f9f9eaa +contract address: 0x02BB514187B830d6A2111197cd7D8cb60650B970 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2893975 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0x94bce0fa8e80f653108a008145512d3ba902bbb49ef77380b0b01992e6dd1798 +contract address: 0x6774Ce86Abf5EBB22E9F45b5f55daCbB4170aD7f +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0x7b24ce6596f6079de9c62f7718e9d1f4e6473018c6302bb9fc1ccafe855826e3 +contract address: 0x06b98cAa1CAAe2B91Fb9af09348eDC09CEe99785 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0x5b415df3d680696fde66f03dc345437ea6069a445c480ad02775a68a42b805d3 +contract address: 0xd8f831Ef919D3f38694f2797CD44D7Cc7d595A67 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x3bb8d016b9f8fa56f58208510459ca98e612d04dd414029a6e800c81bd503cfb +contract address: 0xc52Df73f1BBe582061C65a2bd36A1d685f0a2BE5 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2893975 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0x4f8e0f57cfed31132f47c4da4da70270934af455ee96e58ffa197115311d87c8 +contract address: 0x90E125753e21Eb5b955e9C0937E372061151AbC9 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0x3b331d27bec69ae268455156f9098a02e64d91f0a4a344b6fb9b17de5ce1edf0 +contract address: 0x09157249a5937Bd78fea52CE189887Bd55c13050 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0x663957fccce41b06194f2231e610677c80a3eacdd493c5a1742594cbe16915cf +contract address: 0xF85d6001ADaD5376ef63143bdf1f11D9b163ac4f +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x5b6663de08b715d3fa236fccef530ed9dee2ce565360ebcc99a6c01f9bf92ea7 +contract address: 0xEe0765D93faB6C76de1Bf6026Ba7437695B43aC5 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2894455 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0x55dba43d79dcfed558dedf193d37386f890a33d7bb5e96085b1e68f5e996933d +contract address: 0x532447985f1d598c0B07DE5310953d6AE6253F09 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0x21f04ccc7c43f69d69d56a47aaba9e73afc97a3c24c0e3292aadebab57ac8d93 +contract address: 0x2c71cD16ec6a8AC3F0768ff56A6Ab944F676cFe2 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0xa189496ad16fe2b668bb2b7f3a94326a35714b69c285bb7b07414fc5af6ad2ff +contract address: 0x8eF6CAbcAE15FB78b436e67B26FFE80Ba7ef8424 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** DefaultReserveInterestRateStrategy *** + +Network: localhost +tx: 0x08b33ac77d57c986ed8294b8ad9ed271fc83afe9447168ac586c982568e47fee +contract address: 0xA106BFbDB5C925A04358bE49db41aDd308a1458f +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2894455 + +****** + +*** StableDebtToken *** + +Network: localhost +tx: 0x94451a9819c88f248847094985b88e7c3770313cc9d1acc80fd07b2a30354d40 +contract address: 0x9c91aEaD98b1354C7B0EAfb8ff539d0796c79894 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5442070 + +****** + +*** VariableDebtToken *** + +Network: localhost +tx: 0x7596bc800660d0cf45c83079467d411e49a3c545583b5862d18b1e33404587e6 +contract address: 0x145b7B6368Df63e7F3497b0A948B30fC1A4d5E55 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 5016520 + +****** + +*** AToken *** + +Network: localhost +tx: 0xe22c7593b3442952259b1619377a2c4a4978f0e818010289eb8975e8cb665c2b +contract address: 0x142bFA0788F794d3D0aE1EC36373ee034aABC11f +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 9499999 + +****** + +*** TokenDistributor *** + +Network: localhost +tx: 0xb829e68bba9b67bcd27c4793b8e25aceca28324f38177175d0ee529723834c01 +contract address: 0xEd9d04D6ab74581b95567C9aFcF8459B5a6A4Ccf +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 7785615 + +****** + +WARNING: Multiple definitions for initialize +*** InitializableAdminUpgradeabilityProxy *** + +Network: localhost +tx: 0xd1a52cdd2095ee0d3609f3600f6c89fc734549e1a67a81ddfa91782f0bb07368 +contract address: 0x8E2a05B9Abd9a2a3046879074d7D136213AaDCb9 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2954430 + +****** + +*** MockFlashLoanReceiver *** + +Network: localhost +tx: 0x361c98faf968a5f0e753ae6e5cdadf97b57be83cddd44fc925c4b1f0998eaedb +contract address: 0x8EA6693b23224fFD1C2AfbB161f15b398F8cB5FA +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2861720 + +****** + +*** WalletBalanceProvider *** + +Network: localhost +tx: 0x00e823ab98484ebe48686e7e2dd79cd57b114209c6967cf00a37423e29b5769a +contract address: 0xFb017937aB8EABb9506A03E6c76DcA99C6D095c7 +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2899900 + +****** + +*** AaveProtocolTestHelpers *** + +Network: localhost +tx: 0xc8f41a659f0db9fcce0769dc2e51937a1629912260de835a53a682ac1df5a95a +contract address: 0xc6b70Da02A963fCA0016C7548E1f43511EFe11eC +deployer address: 0xc783df8a850f42e7F7e57013759C285caa701eB6 +gas price: 8000000000 +gas used: 2818975 + +****** + +setup: 35.826s +Pool loaded +Configurator loaded + +*************** +Setup and snapshot finished +*************** + + AToken: Modifiers + ✓ Tries to invoke mintOnDeposit not being the LendingPool + ✓ Tries to invoke burnOnLiquidation not being the LendingPool + ✓ Tries to invoke transferOnLiquidation not being the LendingPool + ✓ Tries to invoke transferUnderlyingTo not being the LendingPool + + AToken: Transfer + ✓ User 0 deposits 1000 DAI, transfers to user 1 + ✓ User 1 redirects interest to user 2, transfers 500 DAI back to user 0 + ✓ User 0 transfers back to user 1 + ✓ User 0 deposits 1 ETH and user tries to borrow, but the aTokens received as a transfer are not available as collateral (revert expected) + ✓ User 1 sets the DAI as collateral and borrows, tries to transfer everything back to user 0 (revert expected) + ✓ User 0 tries to transfer 0 balance (revert expected) + ✓ User 1 repays the borrow, transfers aDAI back to user 0 + ✓ User 0 redirects interest to user 2, transfers 500 aDAI to user 1. User 1 redirects to user 3. User 0 transfers another 100 aDAI + ✓ User 1 transfers the whole amount to himself + + LendingPoolConfigurator + + 1) Deactivates the ETH reserve + ✓ Rectivates the ETH reserve + ✓ Check the onlyLendingPoolManager on deactivateReserve + ✓ Check the onlyLendingPoolManager on activateReserve + ✓ Freezes the ETH reserve + ✓ Unfreezes the ETH reserve + ✓ Check the onlyLendingPoolManager on freezeReserve + ✓ Check the onlyLendingPoolManager on unfreezeReserve + ✓ Deactivates the ETH reserve for borrowing + + 2) Activates the ETH reserve for borrowing + ✓ Check the onlyLendingPoolManager on disableBorrowingOnReserve + ✓ Check the onlyLendingPoolManager on enableBorrowingOnReserve + ✓ Deactivates the ETH reserve as collateral + ✓ Activates the ETH reserve as collateral + ✓ Check the onlyLendingPoolManager on disableReserveAsCollateral + ✓ Check the onlyLendingPoolManager on enableReserveAsCollateral + ✓ Disable stable borrow rate on the ETH reserve + ✓ Enables stable borrow rate on the ETH reserve + ✓ Check the onlyLendingPoolManager on disableReserveStableRate + ✓ Check the onlyLendingPoolManager on enableReserveStableRate + ✓ Changes LTV of the reserve + ✓ Check the onlyLendingPoolManager on setLtv + ✓ Changes liquidation threshold of the reserve + ✓ Check the onlyLendingPoolManager on setLiquidationThreshold + ✓ Changes liquidation bonus of the reserve + ✓ Check the onlyLendingPoolManager on setLiquidationBonus + ✓ Check the onlyLendingPoolManager on setReserveDecimals + ✓ Check the onlyLendingPoolManager on setLiquidationBonus + ✓ Reverts when trying to disable the DAI reserve with liquidity on it + + LendingPool FlashLoan function + ✓ Deposits ETH into the reserve + + 3) Takes ETH flashloan, returns the funds correctly + + 4) Takes an ETH flashloan as big as the available liquidity + ✓ Takes ETH flashloan, does not return the funds (revert expected) + ✓ tries to take a very small flashloan, which would result in 0 fees (revert expected) + + 5) tries to take a flashloan that is bigger than the available liquidity (revert expected) + ✓ tries to take a flashloan using a non contract address as receiver (revert expected) + ✓ Deposits DAI into the reserve + + 6) Takes out a 500 DAI flashloan, returns the funds correctly + ✓ Takes out a 500 DAI flashloan, does not return the funds (revert expected) + + LendingPoolAddressesProvider + ✓ Test the accessibility of the LendingPoolAddressesProvider + + LendingPool liquidation - liquidator receiving aToken + + 7) LIQUIDATION - Deposits ETH, borrows DAI/Check liquidation fails because health factor is above 1 + + 8) LIQUIDATION - Drop the health factor below 1 + + 9) LIQUIDATION - Tries to liquidate a different currency than the loan principal + + 10) LIQUIDATION - Tries to liquidate a different collateral than the borrower collateral + + 11) LIQUIDATION - Liquidates the borrow + + 12) User 3 deposits 1000 USDC, user 4 1 ETH, user 4 borrows - drops HF, liquidates the borrow + + LendingPool liquidation - liquidator receiving the underlying asset + + 13) LIQUIDATION - Deposits ETH, borrows DAI + + 14) LIQUIDATION - Drop the health factor below 1 + + 15) LIQUIDATION - Liquidates the borrow + + 16) User 3 deposits 1000 USDC, user 4 1 ETH, user 4 borrows - drops HF, liquidates the borrow + + 17) User 4 deposits 1000 LEND - drops HF, liquidates the LEND, which results on a lower amount being liquidated + + LendingPool: Borrow negatives (reverts) + ✓ User 0 deposits 1000 DAI, user 1 deposits 1 ETH as collateral and tries to borrow 100 DAI with rate mode NONE (revert expected) + ✓ User 0 deposits 1000 DAI, user 1 deposits 1 ETH as collateral and tries to borrow 100 DAI with an invalid rate mode (revert expected) + + LendingPool: Borrow/repay (stable rate) + + 18) User 0 deposits 1000 DAI, user 1 deposits 1 ETH as collateral and borrows 100 DAI at stable rate + ✓ User 1 tries to borrow the rest of the DAI liquidity (revert expected) + ✓ User 1 repays the DAI borrow after one year + ✓ User 0 redeems the deposited DAI plus interest + + 19) User 1 deposits 1000 DAI, user 2 tries to borrow 1000 DAI at a stable rate without any collateral (revert expected) + + 20) User 0 deposits 1000 DAI, user 1,2,3,4 deposit 1 ETH each and borrow 100 DAI at stable rate. Everything is repaid, user 0 redeems + ✓ User 0 deposits 1000 DAI, user 1 deposits 2 ETH and borrow 100 DAI at stable rate first, then 100 DAI at variable rate, repays everything. User 0 redeems + + LendingPool: Borrow/repay (variable rate) + ✓ User 2 deposits 1 DAI to account for rounding errors + ✓ User 0 deposits 1000 DAI, user 1 deposits 1 ETH as collateral and borrows 100 DAI at variable rate + ✓ User 1 tries to borrow the rest of the DAI liquidity (revert expected) + ✓ User 1 tries to repay 0 DAI (revert expected) + ✓ User 1 repays a small amount of DAI, enough to cover a small part of the interest + ✓ User 1 repays the DAI borrow after one year + ✓ User 0 redeems the deposited DAI plus interest + ✓ User 1 redeems the collateral + ✓ User 2 deposits a small amount of ETH to account for rounding errors + ✓ User 0 deposits 1 ETH, user 1 deposits 100 LINK as collateral and borrows 0.5 ETH at variable rate + ✓ User 1 tries to repay 0 ETH + ✓ User 1 tries to repay without sending any ETH value (revert expected) + ✓ User 2 tries to repay everything on behalf of user 1 using uint(-1) (revert expected) + ✓ User 3 repays a small amount of ETH on behalf of user 1 + ✓ User 1 repays the ETH borrow after one year + ✓ User 0 redeems the deposited ETH plus interest + ✓ User 1 redeems the collateral + ✓ User 2 deposits 1 USDC to account for rounding errors + ✓ User 0 deposits 1000 USDC, user 1 deposits 1 ETH as collateral and borrows 100 USDC at variable rate + + 21) User 1 tries to borrow the rest of the USDC liquidity (revert expected) + ✓ User 1 repays the USDC borrow after one year + ✓ User 0 redeems the deposited USDC plus interest + ✓ User 1 redeems the collateral + + 22) User 1 deposits 1000 DAI, user 3 tries to borrow 1000 DAI without any collateral (revert expected) + + 23) user 3 deposits 0.1 ETH collateral to borrow 100 DAI; 0.1 ETH is not enough to borrow 100 DAI (revert expected) + ✓ user 3 redeems the 0.1 ETH + ✓ User 1 deposits 1000 USDC, user 3 tries to borrow 1000 USDC without any collateral (revert expected) + + 24) user 3 deposits 0.1 ETH collateral to borrow 100 USDC; 0.1 ETH is not enough to borrow 100 USDC (revert expected) + ✓ user 3 redeems the 0.1 ETH + + 25) User 0 deposits 1000 DAI, user 6 deposits 2 ETH and borrow 100 DAI at variable rate first, then 100 DAI at stable rate, repays everything. User 0 redeems + + LendingPool: Deposit + ✓ User 0 Deposits 1000 DAI in an empty reserve + ✓ User 1 deposits 1000 DAI after user 1 + ✓ User 0 deposits 1000 USDC in an empty reserve + ✓ User 1 deposits 1000 USDC after user 0 + ✓ User 0 deposits 1 ETH in an empty reserve + ✓ User 1 deposits 1 ETH after user 0 + ✓ User 1 deposits 0 ETH (revert expected) + ✓ User 1 deposits 0 DAI + ✓ User 1 tries to deposit ETH without sending any value + ✓ User 1 tries to deposit ETH by sending less value than required + + AToken: interest rate redirection negative test cases + ✓ User 0 deposits 1000 DAI, tries to give allowance to redirect interest to himself (revert expected) + ✓ User 1 tries to redirect the interest of user 0 without allowance (revert expected) + + 26) User 0 tries to redirect the interest to user 2 twice (revert expected) + + 27) User 3 with 0 balance tries to redirect the interest to user 2 (revert expected) + + AToken: interest rate redirection + + 28) User 0 deposits 1000 DAI, redirects the interest to user 2 + ✓ User 1 deposits 1 ETH, borrows 100 DAI, repays after one year. Users 0 deposits another 1000 DAI. Redirected balance of user 2 is updated + ✓ User 1 borrows another 100 DAI, repay the whole amount. Users 0 and User 2 redeem + + 29) User 0 deposits 1000 DAI, redirects interest to user 2, user 1 borrows 100 DAI. After one year, user 0 redirects interest back to himself, user 1 borrows another 100 DAI and after another year repays the whole amount. Users 0 and User 2 redeem + + 30) User 0 deposits 1000 DAI, redirects interest to user 2, user 1 borrows 100 DAI. After one year, user 2 redirects interest to user 3. user 1 borrows another 100 DAI, user 0 deposits another 100 DAI. User 1 repays the whole amount. Users 0, 2 first 1 DAI, then everything. User 3 redeems + + LendingPool: Rebalance stable rate + ✓ User 0 tries to rebalance user 1 who has no borrows in progress (revert expected) + ✓ User 0 deposits 1000 DAI, user 1 deposits 1 ETH, borrows 100 DAI at a variable rate, user 0 rebalances user 1 (revert expected) + + 31) User 1 swaps to stable, user 0 tries to rebalance but the conditions are not met (revert expected) + + 32) User 2 deposits ETH and borrows the remaining DAI, causing the stable rates to rise (liquidity rate < user 1 borrow rate). User 0 tries to rebalance user 1 (revert expected) + + 33) User 2 borrows more DAI, causing the liquidity rate to rise above user 1 stable borrow rate User 0 rebalances user 1 + + LendingPool: Redeem negative test cases + ✓ Users 0 Deposits 1000 DAI and tries to redeem 0 DAI (revert expected) + + 34) Users 0 tries to redeem 1100 DAI from the 1000 DAI deposited (revert expected) + + 35) Users 1 deposits 1 ETH, borrows 100 DAI, tries to redeem the 1 ETH deposited (revert expected) + + LendingPool: Redeem + ✓ User 0 Deposits 1000 DAI in an empty reserve + ✓ User 0 redeems half of the deposited DAI + ✓ User 0 redeems remaining half of the deposited DAI + ✓ User 0 Deposits 1000 USDC in an empty reserve + ✓ User 0 redeems half of the deposited USDC + ✓ User 0 redeems remaining half of the deposited USDC + ✓ User 0 Deposits 1 ETH in an empty reserve + ✓ User 0 redeems half of the deposited ETH + ✓ User 0 redeems remaining half of the deposited ETH + + 36) Users 0 and 1 Deposit 1000 DAI, both redeem + ✓ Users 0 deposits 1000 DAI, user 1 Deposit 1000 USDC and 1 ETH, borrows 100 DAI. User 1 tries to redeem all the USDC + + LendingPool: Usage as collateral + + 37) User 0 Deposits 1000 DAI, disables DAI as collateral + + 38) User 1 Deposits 2 ETH, disables ETH as collateral, borrows 400 DAI (revert expected) + ✓ User 1 enables ETH as collateral, borrows 400 DAI + + 39) User 1 disables ETH as collateral (revert expected) + + LendingPool: Swap rate mode + ✓ User 0 tries to swap rate mode without any variable rate loan in progress (revert expected) + + 40) User 0 tries to swap rate mode without any stable rate loan in progress (revert expected) + + 41) User 0 deposits 1000 DAI, user 1 deposits 2 ETH as collateral, borrows 100 DAI at variable rate and swaps to stable after one year + + 42) User 1 borrows another 100 DAI, and swaps back to variable after one year, repays the loan + + Stable debt token tests + ✓ Tries to invoke mint not being the LendingPool + ✓ Tries to invoke burn not being the LendingPool + + Variable debt token tests + ✓ Tries to invoke mint not being the LendingPool + ✓ Tries to invoke burn not being the LendingPool + +·------------------------------------------------------------------|---------------------------|-------------|-----------------------------· +| Solc version: 0.6.8 · Optimizer enabled: true · Runs: 200 · Block limit: 10000000 gas │ +···································································|···························|·············|······························ +| Methods · 75 gwei/gas · 320.77 eur/eth │ +·································|·································|·············|·············|·············|···············|·············· +| Contract · Method · Min · Max · Avg · # calls · eur (avg) │ +·································|·································|·············|·············|·············|···············|·············· +| AToken · redeem · 245418 · 619747 · 502050 · 32 · 12.08 │ +·································|·································|·············|·············|·············|···············|·············· +| AToken · redirectInterestStream · 130611 · 149823 · 143415 · 3 · 3.45 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPool · borrow · 556414 · 628041 · 586871 · 17 · 14.12 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPool · deposit · 169815 · 332253 · 220161 · 69 · 5.30 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPool · flashLoan · 148930 · 189947 · 169439 · 2 · 4.08 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPool · repay · 97914 · 253341 · 175710 · 15 · 4.23 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPool · setUserUseReserveAsCollateral · 99215 · 404713 · 201091 · 3 · 4.84 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPool · swapBorrowRateMode · - · - · 235403 · 4 · 5.66 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolAddressesProvider · transferOwnership · - · - · 30839 · 1 · 0.74 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · activateReserve · - · - · 47054 · 4 · 1.13 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · disableBorrowingOnReserve · - · - · 51242 · 1 · 1.23 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · disableReserveAsCollateral · - · - · 51156 · 2 · 1.23 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · disableReserveStableRate · - · - · 51285 · 2 · 1.23 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · enableBorrowingOnReserve · - · - · 51767 · 3 · 1.25 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · enableReserveAsCollateral · - · - · 52667 · 4 · 1.27 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · enableReserveStableRate · - · - · 51165 · 4 · 1.23 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · freezeReserve · - · - · 51200 · 2 · 1.23 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · setLiquidationBonus · - · - · 51477 · 5 · 1.24 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · setLiquidationThreshold · - · - · 51500 · 3 · 1.24 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · setLtv · - · - · 51506 · 3 · 1.24 │ +·································|·································|·············|·············|·············|···············|·············· +| LendingPoolConfigurator · unfreezeReserve · - · - · 51263 · 4 · 1.23 │ +·································|·································|·············|·············|·············|···············|·············· +| MintableERC20 · approve · 24907 · 44119 · 33110 · 29 · 0.80 │ +·································|·································|·············|·············|·············|···············|·············· +| MintableERC20 · mint · 35427 · 65475 · 41150 · 29 · 0.99 │ +·································|·································|·············|·············|·············|···············|·············· +| MintableERC20 · transfer · 211451 · 542702 · 437409 · 13 · 10.52 │ +·································|·································|·············|·············|·············|···············|·············· +| MockFlashLoanReceiver · setFailExecutionTransfer · - · - · 27239 · 6 · 0.66 │ +·································|·································|·············|·············|·············|···············|·············· +| Deployments · · % of limit · │ +···································································|·············|·············|·············|···············|·············· +| ValidationLogic · - · - · 1232435 · 12.3 % · 29.65 │ +·------------------------------------------------------------------|-------------|-------------|-------------|---------------|-------------· + + 111 passing (8m) + 42 failing + + 1) LendingPoolConfigurator + Deactivates the ETH reserve: + Error: VM Exception while processing transaction: revert The liquidity of the reserve needs to be 0 + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 2) LendingPoolConfigurator + Activates the ETH reserve for borrowing: + + AssertionError: expected '1000000000951293759814590868' to equal '1000000000000000000000000000' + + expected - actual + + -1000000000951293759814590868 + +1000000000000000000000000000 + + at /src/test/configurator.spec.ts:199:66 + at step (test/configurator.spec.ts:33:23) + at Object.next (test/configurator.spec.ts:14:53) + at fulfilled (test/configurator.spec.ts:5:58) + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 3) LendingPool FlashLoan function + Takes ETH flashloan, returns the funds correctly: + + AssertionError: expected '2000504000285388128' to equal '1000504000000000000' + + expected - actual + + -2000504000285388128 + +1000504000000000000 + + at /src/test/flashloan.spec.ts:112:61 + at step (test/flashloan.spec.ts:33:23) + at Object.next (test/flashloan.spec.ts:14:53) + at fulfilled (test/flashloan.spec.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 4) LendingPool FlashLoan function + Takes an ETH flashloan as big as the available liquidity: + + AssertionError: expected '2001134317805388128' to equal '1001134317520000000' + + expected - actual + + -2001134317805388128 + +1001134317520000000 + + at /src/test/flashloan.spec.ts:148:61 + at step (test/flashloan.spec.ts:33:23) + at Object.next (test/flashloan.spec.ts:14:53) + at fulfilled (test/flashloan.spec.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 5) LendingPool FlashLoan function + tries to take a flashloan that is bigger than the available liquidity (revert expected): + + AssertionError: There is not enough liquidity available to borrow: Expected transaction to be reverted with There is not enough liquidity available to borrow, but other exception was thrown: VM Exception while processing transaction: revert The actual balance of the protocol is inconsistent + + expected - actual + + -VM Exception while processing transaction: revert The actual balance of the protocol is inconsistent + +Transaction reverted with There is not enough liquidity available to borrow. + + + + 6) LendingPool FlashLoan function + Takes out a 500 DAI flashloan, returns the funds correctly: + AssertionError: Expected "3000315000000000000000" to be equal 1000315000000000000000 + at /src/test/flashloan.spec.ts:275:50 + at step (test/flashloan.spec.ts:33:23) + at Object.next (test/flashloan.spec.ts:14:53) + at fulfilled (test/flashloan.spec.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 7) LendingPool liquidation - liquidator receiving aToken + LIQUIDATION - Deposits ETH, borrows DAI/Check liquidation fails because health factor is above 1: + + AssertionError: expected '4239' to equal '8000' + + expected - actual + + -4239 + +8000 + + at /src/test/liquidation-atoken.spec.ts:115:93 + at step (test/liquidation-atoken.spec.ts:33:23) + at Object.next (test/liquidation-atoken.spec.ts:14:53) + at fulfilled (test/liquidation-atoken.spec.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 8) LendingPool liquidation - liquidator receiving aToken + LIQUIDATION - Drop the health factor below 1: + + AssertionError: expected '1124284537640968172' to be less than '1000000000000000000' + + expected - actual + + -1124284537640968172 + +1000000000000000000 + + at /src/test/liquidation-atoken.spec.ts:141:84 + at step (test/liquidation-atoken.spec.ts:33:23) + at Object.next (test/liquidation-atoken.spec.ts:14:53) + at fulfilled (test/liquidation-atoken.spec.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 9) LendingPool liquidation - liquidator receiving aToken + LIQUIDATION - Tries to liquidate a different currency than the loan principal: + + AssertionError: Expected transaction to be reverted with User did not borrow the specified currency, but other exception was thrown: VM Exception while processing transaction: revert Health factor is not below the threshold + + expected - actual + + -VM Exception while processing transaction: revert Health factor is not below the threshold + +Transaction reverted with User did not borrow the specified currency. + + + + 10) LendingPool liquidation - liquidator receiving aToken + LIQUIDATION - Tries to liquidate a different collateral than the borrower collateral: + + AssertionError: Expected transaction to be reverted with Invalid collateral to liquidate, but other exception was thrown: VM Exception while processing transaction: revert Health factor is not below the threshold + + expected - actual + + -VM Exception while processing transaction: revert Health factor is not below the threshold + +Transaction reverted with Invalid collateral to liquidate. + + + + 11) LendingPool liquidation - liquidator receiving aToken + LIQUIDATION - Liquidates the borrow: + Error: VM Exception while processing transaction: revert Health factor is not below the threshold + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 12) LendingPool liquidation - liquidator receiving aToken + User 3 deposits 1000 USDC, user 4 1 ETH, user 4 borrows - drops HF, liquidates the borrow: + Error: VM Exception while processing transaction: revert SafeMath: division by zero + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 13) LendingPool liquidation - liquidator receiving the underlying asset + LIQUIDATION - Deposits ETH, borrows DAI: + + AssertionError: expected '3713' to equal '8000' + + expected - actual + + -3713 + +8000 + + at /src/test/liquidation-underlying.spec.ts:131:104 + at step (test/liquidation-underlying.spec.ts:33:23) + at Object.next (test/liquidation-underlying.spec.ts:14:53) + at fulfilled (test/liquidation-underlying.spec.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 14) LendingPool liquidation - liquidator receiving the underlying asset + LIQUIDATION - Drop the health factor below 1: + + AssertionError: expected '1071094219531376009' to be less than '1000000000000000000' + + expected - actual + + -1071094219531376009 + +1000000000000000000 + + at /src/test/liquidation-underlying.spec.ts:152:84 + at step (test/liquidation-underlying.spec.ts:33:23) + at Object.next (test/liquidation-underlying.spec.ts:14:53) + at fulfilled (test/liquidation-underlying.spec.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 15) LendingPool liquidation - liquidator receiving the underlying asset + LIQUIDATION - Liquidates the borrow: + Error: VM Exception while processing transaction: revert Health factor is not below the threshold + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 16) LendingPool liquidation - liquidator receiving the underlying asset + User 3 deposits 1000 USDC, user 4 1 ETH, user 4 borrows - drops HF, liquidates the borrow: + Error: VM Exception while processing transaction: revert Health factor is not below the threshold + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 17) LendingPool liquidation - liquidator receiving the underlying asset + User 4 deposits 1000 LEND - drops HF, liquidates the LEND, which results on a lower amount being liquidated: + Error: VM Exception while processing transaction: revert Health factor is not below the threshold + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 18) LendingPool: Borrow/repay (stable rate) + User 0 deposits 1000 DAI, user 1 deposits 1 ETH as collateral and borrows 100 DAI at stable rate: + Error: VM Exception while processing transaction: revert There is not enough collateral to cover a new borrow + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 19) LendingPool: Borrow/repay (stable rate) + User 1 deposits 1000 DAI, user 2 tries to borrow 1000 DAI at a stable rate without any collateral (revert expected): + + AssertionError: expected '0' to be almost equal or equal '430000012860363335935' for property principalStableDebt + + expected - actual + + -0 + +430000012860363335935 + + at expectEqual (test/helpers/actions.ts:618:30) + at /src/test/helpers/actions.ts:206:17 + at step (test/helpers/actions.ts:33:23) + at Object.next (test/helpers/actions.ts:14:53) + at fulfilled (test/helpers/actions.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 20) LendingPool: Borrow/repay (stable rate) + User 0 deposits 1000 DAI, user 1,2,3,4 deposit 1 ETH each and borrow 100 DAI at stable rate. Everything is repaid, user 0 redeems: + Error: VM Exception while processing transaction: revert There is not enough collateral to cover a new borrow + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 21) LendingPool: Borrow/repay (variable rate) + User 1 tries to borrow the rest of the USDC liquidity (revert expected): + + AssertionError: There is not enough collateral to cover a new borrow: Expected transaction to be reverted + + expected - actual + + -Transaction NOT reverted. + +Transaction reverted. + + + + 22) LendingPool: Borrow/repay (variable rate) + User 1 deposits 1000 DAI, user 3 tries to borrow 1000 DAI without any collateral (revert expected): + + AssertionError: The collateral balance is 0: Expected transaction to be reverted + + expected - actual + + -Transaction NOT reverted. + +Transaction reverted. + + + + 23) LendingPool: Borrow/repay (variable rate) + user 3 deposits 0.1 ETH collateral to borrow 100 DAI; 0.1 ETH is not enough to borrow 100 DAI (revert expected): + + AssertionError: There is not enough collateral to cover a new borrow: Expected transaction to be reverted + + expected - actual + + -Transaction NOT reverted. + +Transaction reverted. + + + + 24) LendingPool: Borrow/repay (variable rate) + user 3 deposits 0.1 ETH collateral to borrow 100 USDC; 0.1 ETH is not enough to borrow 100 USDC (revert expected): + + AssertionError: There is not enough collateral to cover a new borrow: Expected transaction to be reverted + + expected - actual + + -Transaction NOT reverted. + +Transaction reverted. + + + + 25) LendingPool: Borrow/repay (variable rate) + User 0 deposits 1000 DAI, user 6 deposits 2 ETH and borrow 100 DAI at variable rate first, then 100 DAI at stable rate, repays everything. User 0 redeems: + Error: VM Exception while processing transaction: revert There is not enough collateral to cover a new borrow + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 26) AToken: interest rate redirection negative test cases + User 0 tries to redirect the interest to user 2 twice (revert expected): + + AssertionError: expected '3000000004822739128894' to be almost equal or equal '3000002775243319210929' for property redirectionAddressRedirectedBalance + + expected - actual + + -3000000004822739128894 + +3000002775243319210929 + + at expectEqual (test/helpers/actions.ts:618:30) + at /src/test/helpers/actions.ts:537:17 + at step (test/helpers/actions.ts:33:23) + at Object.next (test/helpers/actions.ts:14:53) + at fulfilled (test/helpers/actions.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 27) AToken: interest rate redirection negative test cases + User 3 with 0 balance tries to redirect the interest to user 2 (revert expected): + + AssertionError: Interest stream can only be redirected if there is a valid balance: Expected transaction to be reverted + + expected - actual + + -Transaction NOT reverted. + +Transaction reverted. + + + + 28) AToken: interest rate redirection + User 0 deposits 1000 DAI, redirects the interest to user 2: + Error: VM Exception while processing transaction: revert Interest is already redirected to the user + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 29) AToken: interest rate redirection + User 0 deposits 1000 DAI, redirects interest to user 2, user 1 borrows 100 DAI. After one year, user 0 redirects interest back to himself, user 1 borrows another 100 DAI and after another year repays the whole amount. Users 0 and User 2 redeem: + + AssertionError: expected '1020723447797511083136' to be almost equal or equal '1020723447806037392232' for property redirectionAddressRedirectedBalance + + expected - actual + + -1020723447797511083136 + +1020723447806037392232 + + at expectEqual (test/helpers/actions.ts:618:30) + at /src/test/helpers/actions.ts:537:17 + at step (test/helpers/actions.ts:33:23) + at Object.next (test/helpers/actions.ts:14:53) + at fulfilled (test/helpers/actions.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 30) AToken: interest rate redirection + User 0 deposits 1000 DAI, redirects interest to user 2, user 1 borrows 100 DAI. After one year, user 2 redirects interest to user 3. user 1 borrows another 100 DAI, user 0 deposits another 100 DAI. User 1 repays the whole amount. Users 0, 2 first 1 DAI, then everything. User 3 redeems: + Error: VM Exception while processing transaction: revert Interest is already redirected to the user + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 31) LendingPool: Rebalance stable rate + User 1 swaps to stable, user 0 tries to rebalance but the conditions are not met (revert expected): + Error: VM Exception while processing transaction: revert 12 + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 32) LendingPool: Rebalance stable rate + User 2 deposits ETH and borrows the remaining DAI, causing the stable rates to rise (liquidity rate < user 1 borrow rate). User 0 tries to rebalance user 1 (revert expected): + Error: VM Exception while processing transaction: revert There is not enough collateral to cover a new borrow + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 33) LendingPool: Rebalance stable rate + User 2 borrows more DAI, causing the liquidity rate to rise above user 1 stable borrow rate User 0 rebalances user 1: + Error: VM Exception while processing transaction: revert There is not enough collateral to cover a new borrow + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 34) LendingPool: Redeem negative test cases + Users 0 tries to redeem 1100 DAI from the 1000 DAI deposited (revert expected): + + AssertionError: User cannot redeem more than the available balance: Expected transaction to be reverted + + expected - actual + + -Transaction NOT reverted. + +Transaction reverted. + + + + 35) LendingPool: Redeem negative test cases + Users 1 deposits 1 ETH, borrows 100 DAI, tries to redeem the 1 ETH deposited (revert expected): + + AssertionError: Transfer cannot be allowed.: Expected transaction to be reverted + + expected - actual + + -Transaction NOT reverted. + +Transaction reverted. + + + + 36) LendingPool: Redeem + Users 0 and 1 Deposit 1000 DAI, both redeem: + + AssertionError: expected '100000000000000000000' to be almost equal or equal '101885376842214025499' for property principalStableDebt + + expected - actual + + -100000000000000000000 + +101885376842214025499 + + at expectEqual (test/helpers/actions.ts:618:30) + at /src/test/helpers/actions.ts:206:17 + at step (test/helpers/actions.ts:33:23) + at Object.next (test/helpers/actions.ts:14:53) + at fulfilled (test/helpers/actions.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 37) LendingPool: Usage as collateral + User 0 Deposits 1000 DAI, disables DAI as collateral: + + AssertionError: expected '3000000006486135113480' to be almost equal or equal '3000000005405612189577' for property currentATokenBalance + + expected - actual + + -3000000006486135113480 + +3000000005405612189577 + + at expectEqual (test/helpers/actions.ts:618:30) + at /src/test/helpers/actions.ts:420:17 + at step (test/helpers/actions.ts:33:23) + at Object.next (test/helpers/actions.ts:14:53) + at fulfilled (test/helpers/actions.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + 38) LendingPool: Usage as collateral + User 1 Deposits 2 ETH, disables ETH as collateral, borrows 400 DAI (revert expected): + + AssertionError: The collateral balance is 0: Expected transaction to be reverted + + expected - actual + + -Transaction NOT reverted. + +Transaction reverted. + + + + 39) LendingPool: Usage as collateral + User 1 disables ETH as collateral (revert expected): + + AssertionError: User deposit is already being used as collateral: Expected transaction to be reverted + + expected - actual + + -Transaction NOT reverted. + +Transaction reverted. + + + + 40) LendingPool: Swap rate mode + User 0 tries to swap rate mode without any stable rate loan in progress (revert expected): + + AssertionError: User does not have a stable rate loan in progress on this reserve: Expected transaction to be reverted + + expected - actual + + -Transaction NOT reverted. + +Transaction reverted. + + + + 41) LendingPool: Swap rate mode + User 0 deposits 1000 DAI, user 1 deposits 2 ETH as collateral, borrows 100 DAI at variable rate and swaps to stable after one year: + Error: VM Exception while processing transaction: revert 12 + at HttpProvider.send (node_modules/@nomiclabs/buidler/src/internal/core/providers/http.ts:36:34) + at getMultipliedGasEstimation (node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:150:45) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:108:14 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/accounts.ts:219:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:63:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at /src/node_modules/@nomiclabs/buidler/src/internal/core/providers/gas-providers.ts:82:21 + at Proxy.cloningSendWrapper (node_modules/@nomiclabs/buidler/src/internal/core/providers/wrapper.ts:9:12) + at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:48) + at EthersProviderWrapper.JsonRpcProvider.perform (node_modules/ethers/providers/json-rpc-provider.js:304:29) + at /src/node_modules/ethers/providers/base-provider.js:846:34 + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + at async Promise.all (index 1) + at async Promise.all (index 0) + + 42) LendingPool: Swap rate mode + User 1 borrows another 100 DAI, and swaps back to variable after one year, repays the loan: + + AssertionError: expected '10711430955331434378759' to be almost equal or equal '10652813512167291105893' for property totalLiquidity + + expected - actual + + -10711430955331434378759 + +10652813512167291105893 + + at expectEqual (test/helpers/actions.ts:618:30) + at /src/test/helpers/actions.ts:458:17 + at step (test/helpers/actions.ts:33:23) + at Object.next (test/helpers/actions.ts:14:53) + at fulfilled (test/helpers/actions.ts:5:58) + at runMicrotasks () + at processTicksAndRejections (internal/process/task_queues.js:97:5) + + + diff --git a/types/AToken.d.ts b/types/AToken.d.ts index 38ae9531..cac8f155 100644 --- a/types/AToken.d.ts +++ b/types/AToken.d.ts @@ -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; + UINT_MAX_VALUE(): Promise; allowInterestRedirectionTo( @@ -232,6 +270,15 @@ export class AToken extends Contract { overrides?: TransactionOverrides ): Promise; + initialize( + _addressesProvider: string, + _underlyingAsset: string, + _underlyingAssetDecimals: BigNumberish, + _tokenName: string, + _tokenSymbol: string, + overrides?: TransactionOverrides + ): Promise; + isTransferAllowed(_user: string, _amount: BigNumberish): Promise; mintOnDeposit( @@ -244,7 +291,10 @@ export class AToken extends Contract { principalBalanceOf(_user: string): Promise; - redeem(_amount: BigNumberish, overrides?: TransactionOverrides): Promise; + redeem( + _amount: BigNumberish, + overrides?: TransactionOverrides + ): Promise; redirectInterestStream( _to: string, @@ -290,6 +340,8 @@ export class AToken extends Contract { underlyingAssetAddress(): Promise; }; + ATOKEN_REVISION(): Promise; + UINT_MAX_VALUE(): Promise; allowInterestRedirectionTo( @@ -333,6 +385,15 @@ export class AToken extends Contract { overrides?: TransactionOverrides ): Promise; + initialize( + _addressesProvider: string, + _underlyingAsset: string, + _underlyingAssetDecimals: BigNumberish, + _tokenName: string, + _tokenSymbol: string, + overrides?: TransactionOverrides + ): Promise; + isTransferAllowed(_user: string, _amount: BigNumberish): Promise; mintOnDeposit( @@ -345,7 +406,10 @@ export class AToken extends Contract { principalBalanceOf(_user: string): Promise; - redeem(_amount: BigNumberish, overrides?: TransactionOverrides): Promise; + redeem( + _amount: BigNumberish, + overrides?: TransactionOverrides + ): Promise; redirectInterestStream( _to: string, @@ -391,7 +455,11 @@ export class AToken extends Contract { underlyingAssetAddress(): Promise; 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; + UINT_MAX_VALUE(): Promise; allowInterestRedirectionTo(_to: string): Promise; @@ -456,11 +529,17 @@ export class AToken extends Contract { balanceOf(_user: string): Promise; - burnOnLiquidation(_account: string, _value: BigNumberish): Promise; + burnOnLiquidation( + _account: string, + _value: BigNumberish + ): Promise; decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; getInterestRedirectionAddress(_user: string): Promise; @@ -468,7 +547,18 @@ export class AToken extends Contract { getUserIndex(_user: string): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; + + initialize( + _addressesProvider: string, + _underlyingAsset: string, + _underlyingAssetDecimals: BigNumberish, + _tokenName: string, + _tokenSymbol: string + ): Promise; isTransferAllowed(_user: string, _amount: BigNumberish): Promise; @@ -490,11 +580,22 @@ export class AToken extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; - transferOnLiquidation(_from: string, _to: string, _value: BigNumberish): Promise; + transferOnLiquidation( + _from: string, + _to: string, + _value: BigNumberish + ): Promise; - transferUnderlyingTo(_target: string, _amount: BigNumberish): Promise; + transferUnderlyingTo( + _target: string, + _amount: BigNumberish + ): Promise; underlyingAssetAddress(): Promise; }; diff --git a/types/ATokenFactory.ts b/types/ATokenFactory.ts index 1a183215..35ebbbe4 100644 --- a/types/ATokenFactory.ts +++ b/types/ATokenFactory.ts @@ -1,13 +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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; -import {TransactionOverrides} from '.'; -import {AToken} from './AToken'; +import { TransactionOverrides } from "."; +import { AToken } from "./AToken"; export class ATokenFactory extends ContractFactory { constructor(signer?: Signer) { @@ -15,38 +14,18 @@ export class ATokenFactory extends ContractFactory { } deploy( - _addressesProvider: string, - _underlyingAsset: string, - _underlyingAssetDecimals: BigNumberish, - _name: string, - _symbol: string, + _tokenName: string, + _tokenSymbol: string, overrides?: TransactionOverrides ): Promise { - return super.deploy( - _addressesProvider, - _underlyingAsset, - _underlyingAssetDecimals, - _name, - _symbol, - overrides - ) as Promise; + return super.deploy(_tokenName, _tokenSymbol, overrides) as Promise; } getDeployTransaction( - _addressesProvider: string, - _underlyingAsset: string, - _underlyingAssetDecimals: BigNumberish, - _name: string, - _symbol: string, + _tokenName: string, + _tokenSymbol: string, overrides?: TransactionOverrides ): UnsignedTransaction { - return super.getDeployTransaction( - _addressesProvider, - _underlyingAsset, - _underlyingAssetDecimals, - _name, - _symbol, - overrides - ); + return super.getDeployTransaction(_tokenName, _tokenSymbol, overrides); } attach(address: string): AToken { return super.attach(address) as AToken; @@ -63,810 +42,841 @@ const _abi = [ { inputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '_addressesProvider', - type: 'address', + internalType: "string", + name: "_tokenName", + type: "string" }, { - internalType: 'address', - name: '_underlyingAsset', - type: 'address', - }, - { - internalType: 'uint8', - name: '_underlyingAssetDecimals', - type: 'uint8', - }, - { - internalType: 'string', - name: '_name', - type: 'string', - }, - { - internalType: 'string', - name: '_symbol', - type: 'string', - }, + internalType: "string", + name: "_tokenSymbol", + type: "string" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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" }, { indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_fromBalanceIncrease", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_toBalanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_toBalanceIncrease", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', + internalType: "uint256", + name: "_fromIndex", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_toIndex', - type: 'uint256', - }, + internalType: "uint256", + name: "_toIndex", + type: "uint256" + } ], - name: 'BalanceTransfer', - type: 'event', + name: "BalanceTransfer", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_from', - type: 'address', + internalType: "address", + name: "_from", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', + internalType: "uint256", + name: "_value", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_fromBalanceIncrease", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, + internalType: "uint256", + name: "_fromIndex", + type: "uint256" + } ], - name: 'BurnOnLiquidation', - type: 'event', + name: "BurnOnLiquidation", + 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" + } ], - name: 'InterestRedirectionAllowanceChanged', - type: 'event', + name: "InterestRedirectionAllowanceChanged", + 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: '_redirectedBalance', - type: 'uint256', + internalType: "uint256", + name: "_redirectedBalance", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_fromBalanceIncrease", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, + internalType: "uint256", + name: "_fromIndex", + type: "uint256" + } ], - name: 'InterestStreamRedirected', - type: 'event', + name: "InterestStreamRedirected", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_from', - type: 'address', + internalType: "address", + name: "_from", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', + internalType: "uint256", + name: "_value", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_fromBalanceIncrease", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, + internalType: "uint256", + name: "_fromIndex", + type: "uint256" + } ], - name: 'MintOnDeposit', - type: 'event', + name: "MintOnDeposit", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_from', - type: 'address', + internalType: "address", + name: "_from", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', + internalType: "uint256", + name: "_value", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_fromBalanceIncrease", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, + internalType: "uint256", + name: "_fromIndex", + type: "uint256" + } ], - name: 'Redeem', - type: 'event', + name: "Redeem", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_targetAddress', - type: 'address', + internalType: "address", + name: "_targetAddress", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_targetBalanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_targetBalanceIncrease", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_targetIndex', - type: 'uint256', + internalType: "uint256", + name: "_targetIndex", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_redirectedBalanceAdded', - type: 'uint256', + internalType: "uint256", + name: "_redirectedBalanceAdded", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_redirectedBalanceRemoved', - type: 'uint256', - }, + internalType: "uint256", + name: "_redirectedBalanceRemoved", + type: "uint256" + } ], - name: 'RedirectedBalanceUpdated', - type: 'event', + name: "RedirectedBalanceUpdated", + 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: [], - name: 'UINT_MAX_VALUE', + name: "ATOKEN_REVISION", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_to', - type: 'address', - }, - ], - name: 'allowInterestRedirectionTo', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - ], - name: 'allowance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'approve', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_user', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_account', - type: 'address', - }, - { - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - ], - name: 'burnOnLiquidation', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'decimals', + name: "UINT_MAX_VALUE", outputs: [ { - internalType: 'uint8', - name: '', - type: 'uint8', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'subtractedValue', - type: 'uint256', - }, + internalType: "address", + name: "_to", + type: "address" + } ], - name: 'decreaseAllowance', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_user', - type: 'address', - }, - ], - name: 'getInterestRedirectionAddress', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_user', - type: 'address', - }, - ], - name: 'getRedirectedBalance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_user', - type: 'address', - }, - ], - name: 'getUserIndex', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'addedValue', - type: 'uint256', - }, - ], - name: 'increaseAllowance', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_user', - type: 'address', - }, - { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'isTransferAllowed', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_account', - type: 'address', - }, - { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'mintOnDeposit', + name: "allowInterestRedirectionTo", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address" + }, + { + internalType: "address", + name: "spender", + type: "address" + } + ], + name: "allowance", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256" + } + ], + stateMutability: "view", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address" + }, + { + internalType: "uint256", + name: "amount", + type: "uint256" + } + ], + name: "approve", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool" + } + ], + stateMutability: "nonpayable", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "_user", + type: "address" + } + ], + name: "balanceOf", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256" + } + ], + stateMutability: "view", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "_account", + type: "address" + }, + { + internalType: "uint256", + name: "_value", + type: "uint256" + } + ], + name: "burnOnLiquidation", + outputs: [], + stateMutability: "nonpayable", + type: "function" }, { inputs: [], - name: 'name', + name: "decimals", outputs: [ { - internalType: 'string', - name: '', - type: 'string', - }, + internalType: "uint8", + name: "", + type: "uint8" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "spender", + type: "address" }, + { + internalType: "uint256", + name: "subtractedValue", + type: "uint256" + } ], - name: 'principalBalanceOf', + name: "decreaseAllowance", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'redeem', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', + name: "getInterestRedirectionAddress", + outputs: [ + { + internalType: "address", + name: "", + type: "address" + } + ], + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_to', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'redirectInterestStream', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', + name: "getRedirectedBalance", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256" + } + ], + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_from', - type: 'address', + internalType: "address", + name: "_user", + type: "address" + } + ], + name: "getUserIndex", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256" + } + ], + stateMutability: "view", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address" }, { - internalType: 'address', - name: '_to', - type: 'address', - }, + internalType: "uint256", + name: "addedValue", + type: "uint256" + } ], - name: 'redirectInterestStreamOf', + name: "increaseAllowance", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool" + } + ], + stateMutability: "nonpayable", + type: "function" + }, + { + inputs: [ + { + internalType: "contract LendingPoolAddressesProvider", + name: "_addressesProvider", + type: "address" + }, + { + internalType: "address", + name: "_underlyingAsset", + type: "address" + }, + { + internalType: "uint8", + name: "_underlyingAssetDecimals", + type: "uint8" + }, + { + internalType: "string", + name: "_tokenName", + type: "string" + }, + { + internalType: "string", + name: "_tokenSymbol", + type: "string" + } + ], + name: "initialize", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "_user", + type: "address" + }, + { + internalType: "uint256", + name: "_amount", + type: "uint256" + } + ], + name: "isTransferAllowed", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool" + } + ], + stateMutability: "view", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "_account", + type: "address" + }, + { + internalType: "uint256", + name: "_amount", + type: "uint256" + } + ], + name: "mintOnDeposit", + outputs: [], + stateMutability: "nonpayable", + type: "function" }, { inputs: [], - name: 'symbol', + name: "name", outputs: [ { - internalType: 'string', - name: '', - type: 'string', - }, + internalType: "string", + name: "", + type: "string" + } ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'transfer', + name: "principalBalanceOf", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, + internalType: "uint256", + name: "_amount", + type: "uint256" + } ], - name: 'transferFrom', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_from', - type: 'address', - }, - { - internalType: 'address', - name: '_to', - type: 'address', - }, - { - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - ], - name: 'transferOnLiquidation', + name: "redeem", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_target', - type: 'address', + internalType: "address", + name: "_to", + type: "address" + } + ], + name: "redirectInterestStream", + outputs: [], + stateMutability: "nonpayable", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "_from", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + internalType: "address", + name: "_to", + type: "address" + } ], - name: 'transferUnderlyingTo', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'function', + name: "redirectInterestStreamOf", + outputs: [], + stateMutability: "nonpayable", + type: "function" }, { inputs: [], - name: 'underlyingAssetAddress', + name: "symbol", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "string", + name: "", + type: "string" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { - stateMutability: 'payable', - type: 'receive', + inputs: [], + name: "totalSupply", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256" + } + ], + stateMutability: "view", + type: "function" }, + { + inputs: [ + { + internalType: "address", + name: "recipient", + type: "address" + }, + { + internalType: "uint256", + name: "amount", + type: "uint256" + } + ], + name: "transfer", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool" + } + ], + stateMutability: "nonpayable", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "sender", + type: "address" + }, + { + internalType: "address", + name: "recipient", + type: "address" + }, + { + internalType: "uint256", + name: "amount", + type: "uint256" + } + ], + name: "transferFrom", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool" + } + ], + stateMutability: "nonpayable", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "_from", + type: "address" + }, + { + internalType: "address", + name: "_to", + type: "address" + }, + { + internalType: "uint256", + name: "_value", + type: "uint256" + } + ], + name: "transferOnLiquidation", + outputs: [], + stateMutability: "nonpayable", + type: "function" + }, + { + inputs: [ + { + internalType: "address", + name: "_target", + type: "address" + }, + { + internalType: "uint256", + name: "_amount", + type: "uint256" + } + ], + name: "transferUnderlyingTo", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256" + } + ], + stateMutability: "nonpayable", + type: "function" + }, + { + inputs: [], + name: "underlyingAssetAddress", + outputs: [ + { + internalType: "address", + name: "", + type: "address" + } + ], + stateMutability: "view", + type: "function" + }, + { + stateMutability: "payable", + type: "receive" + } ]; const _bytecode = - '0x60806040523480156200001157600080fd5b5060405162002bac38038062002bac833981810160405260a08110156200003757600080fd5b8151602083015160408085015160608601805192519496939591949391820192846401000000008211156200006b57600080fd5b9083019060208201858111156200008157600080fd5b82516401000000008111828201881017156200009c57600080fd5b82525081516020918201929091019080838360005b83811015620000cb578181015183820152602001620000b1565b50505050905090810190601f168015620000f95780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011d57600080fd5b9083019060208201858111156200013357600080fd5b82516401000000008111828201881017156200014e57600080fd5b82525081516020918201929091019080838360005b838110156200017d57818101518382015260200162000163565b50505050905090810190601f168015620001ab5780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001cb906003906020850190620002eb565b508051620001e1906004906020840190620002eb565b50506005805460ff191660121790555062000205836001600160e01b03620002d516565b600a80546001600160a01b0319166001600160a01b03878116919091179182905560408051630261bf8b60e01b815290519290911691630261bf8b91600480820192602092909190829003018186803b1580156200026257600080fd5b505afa15801562000277573d6000803e3d6000fd5b505050506040513d60208110156200028e57600080fd5b5051600b80546001600160a01b0319166001600160a01b0392831617905560058054610100600160a81b031916610100969092169590950217909355506200039092505050565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200032e57805160ff19168380011785556200035e565b828001600101855582156200035e579182015b828111156200035e57825182559160200191906001019062000341565b506200036c92915062000370565b5090565b6200038d91905b808211156200036c576000815560010162000377565b90565b61280c80620003a06000396000f3fe6080604052600436106101855760003560e01c80635eae177c116100d1578063a9059cbb1161008a578063db006a7511610064578063db006a75146106a9578063dd62ed3e146106d3578063ee9907a41461070e578063f866c31914610741576101e1565b8063a9059cbb14610628578063c634dfaa14610661578063d0fc81d214610694576101e1565b80635eae177c1461052057806370a082311461055957806389d1a0fc1461058c57806394362e8b146105a157806395d89b41146105da578063a457c2d7146105ef576101e1565b806323b872dd1161013e578063395093511161011857806339509351146104265780633edb7cb81461045f578063445e8010146104985780634efecaa5146104e7576101e1565b806323b872dd1461037d578063313ce567146103c0578063325a9b13146103eb576101e1565b806306fdde03146101e6578063095ea7b3146102705780630e49072d146102bd57806312c87c2d146102f057806318160ddd146103235780631d51e7cf1461034a576101e1565b366101e1576005546101a49061010090046001600160a01b0316610784565b6101df5760405162461bcd60e51b815260040180806020018281038252603981526020018061256f6039913960400191505060405180910390fd5b005b600080fd5b3480156101f257600080fd5b506101fb6107aa565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023557818101518382015260200161021d565b50505050905090810190601f1680156102625780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027c57600080fd5b506102a96004803603604081101561029357600080fd5b506001600160a01b038135169060200135610841565b604080519115158252519081900360200190f35b3480156102c957600080fd5b506101df600480360360208110156102e057600080fd5b50356001600160a01b031661085f565b3480156102fc57600080fd5b506101df6004803603602081101561031357600080fd5b50356001600160a01b031661086c565b34801561032f57600080fd5b5061033861090b565b60408051918252519081900360200190f35b34801561035657600080fd5b506103386004803603602081101561036d57600080fd5b50356001600160a01b03166109cd565b34801561038957600080fd5b506102a9600480360360608110156103a057600080fd5b506001600160a01b038135811691602081013590911690604001356109e8565b3480156103cc57600080fd5b506103d5610a75565b6040805160ff9092168252519081900360200190f35b3480156103f757600080fd5b506101df6004803603604081101561040e57600080fd5b506001600160a01b0381358116916020013516610a7e565b34801561043257600080fd5b506102a96004803603604081101561044957600080fd5b506001600160a01b038135169060200135610ae4565b34801561046b57600080fd5b506101df6004803603604081101561048257600080fd5b506001600160a01b038135169060200135610b38565b3480156104a457600080fd5b506104cb600480360360208110156104bb57600080fd5b50356001600160a01b0316610c2d565b604080516001600160a01b039092168252519081900360200190f35b3480156104f357600080fd5b506103386004803603604081101561050a57600080fd5b506001600160a01b038135169060200135610c4b565b34801561052c57600080fd5b506102a96004803603604081101561054357600080fd5b506001600160a01b038135169060200135610cb9565b34801561056557600080fd5b506103386004803603602081101561057c57600080fd5b50356001600160a01b0316610d54565b34801561059857600080fd5b506104cb610e07565b3480156105ad57600080fd5b506101df600480360360408110156105c457600080fd5b506001600160a01b038135169060200135610e1b565b3480156105e657600080fd5b506101fb610ef0565b3480156105fb57600080fd5b506102a96004803603604081101561061257600080fd5b506001600160a01b038135169060200135610f51565b34801561063457600080fd5b506102a96004803603604081101561064b57600080fd5b506001600160a01b038135169060200135610fbf565b34801561066d57600080fd5b506103386004803603602081101561068457600080fd5b50356001600160a01b0316610fd3565b3480156106a057600080fd5b50610338610fde565b3480156106b557600080fd5b506101df600480360360208110156106cc57600080fd5b5035610fe4565b3480156106df57600080fd5b50610338600480360360408110156106f657600080fd5b506001600160a01b038135811691602001351661121e565b34801561071a57600080fd5b506103386004803603602081101561073157600080fd5b50356001600160a01b0316611249565b34801561074d57600080fd5b506101df6004803603606081101561076457600080fd5b506001600160a01b03813581169160208101359091169060400135611264565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b919050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108365780601f1061080b57610100808354040283529160200191610836565b820191906000526020600020905b81548152906001019060200180831161081957829003601f168201915b505050505090505b90565b600061085561084e6112bd565b84846112c1565b5060015b92915050565b61086933826113ad565b50565b6001600160a01b0381163314156108b45760405162461bcd60e51b81526004018080602001828103825260258152602001806125a86025913960400191505060405180910390fd5b3360008181526009602052604080822080546001600160a01b0319166001600160a01b03861690811790915590519092917fc2d6a42a9d5273283f73009a07aacfb043f2f91173a8d9d33b504afe898db08b91a350565b60008061091661159c565b90508061092757600091505061083e565b600b546005546040805163d15e005360e01b81526001600160a01b036101009093048316600482015290516109c7936109c293169163d15e0053916024808301926020929190829003018186803b15801561098157600080fd5b505afa158015610995573d6000803e3d6000fd5b505050506040513d60208110156109ab57600080fd5b50516109b6846115a2565b9063ffffffff6115b816565b611603565b91505090565b6001600160a01b031660009081526008602052604090205490565b60006109f584848461161c565b610a6b84610a016112bd565b610a66856040518060600160405280602881526020016125ee602891396001600160a01b038a16600090815260016020526040812090610a3f6112bd565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61168b16565b6112c1565b5060019392505050565b60055460ff1690565b6001600160a01b03828116600090815260096020526040902054163314610ad65760405162461bcd60e51b815260040180806020018281038252603a81526020018061279d603a913960400191505060405180910390fd5b610ae082826113ad565b5050565b6000610855610af16112bd565b84610a668560016000610b026112bd565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61172216565b600b546001600160a01b03163314610b815760405162461bcd60e51b81526004018080602001828103825260328152602001806127466032913960400191505060405180910390fd5b6000806000610b8f8561177c565b93509350935050610ba185838661186d565b610bab858561196d565b6000610bbd848663ffffffff611a7516565b610bcd57610bca86611ab7565b90505b856001600160a01b03167f90e5d3d68ec162d9c7de393037a3ede04dd44f68e051bf2ace4a73c299dbc4db868584610c055785610c08565b60005b60408051938452602084019290925282820152519081900360600190a2505050505050565b6001600160a01b039081166000908152600760205260409020541690565b600b546000906001600160a01b03163314610c975760405162461bcd60e51b81526004018080602001828103825260328152602001806127466032913960400191505060405180910390fd5b600554610cb39061010090046001600160a01b03168484611b69565b50919050565b600b54600554604080516376e9d61560e01b81526101009092046001600160a01b039081166004840152858116602484015260448301859052905160009391909116916376e9d615916064808301926020929190829003018186803b158015610d2157600080fd5b505afa158015610d35573d6000803e3d6000fd5b505050506040513d6020811015610d4b57600080fd5b50519392505050565b600080610d6083611c42565b6001600160a01b03841660009081526008602052604090205490915081158015610d88575080155b15610d98576000925050506107a5565b6001600160a01b0384811660009081526007602052604090205416610de957610de081610dd486610dcf868463ffffffff61172216565b611c5d565b9063ffffffff611a7516565b925050506107a5565b610de0610dfa82610dd48785611c5d565b839063ffffffff61172216565b60055461010090046001600160a01b031681565b600b546001600160a01b03163314610e645760405162461bcd60e51b81526004018080602001828103825260328152602001806127466032913960400191505060405180910390fd5b600080610e708461177c565b935093505050610e9484610e8d858561172290919063ffffffff16565b600061186d565b610e9e8484611d12565b604080518481526020810184905280820183905290516001600160a01b038616917fbe7799898ca2d813ff902b487c1b434ab45b47edd8f38b77ad5e99aae8341b7a919081900360600190a250505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108365780601f1061080b57610100808354040283529160200191610836565b6000610855610f5e6112bd565b84610a66856040518060600160405280602581526020016127786025913960016000610f886112bd565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61168b16565b6000610855610fcc6112bd565b848461161c565b600061085982611c42565b60001981565b60008111611039576040805162461bcd60e51b815260206004820181905260248201527f416d6f756e7420746f2072656465656d206e6565647320746f206265203e2030604482015290519081900360640190fd5b60008060006110473361177c565b9195509350915084905060001981141561105e5750825b8381111561109d5760405162461bcd60e51b81526004018080602001828103825260328152602001806124f56032913960400191505060405180910390fd5b6110a73382610cb9565b6110f8576040805162461bcd60e51b815260206004820152601b60248201527f5472616e736665722063616e6e6f7420626520616c6c6f7765642e0000000000604482015290519081900360640190fd5b61110333848361186d565b61110d338261196d565b600061111f858363ffffffff611a7516565b61112f5761112c33611ab7565b90505b600b546005546001600160a01b0391821691639895e3d891610100900416338561115f8a8263ffffffff611a7516565b6040518563ffffffff1660e01b815260040180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b03168152602001838152602001828152602001945050505050600060405180830381600087803b1580156111ce57600080fd5b505af11580156111e2573d6000803e3d6000fd5b50505050336001600160a01b03167fbd5034ffbd47e4e72a94baa2cdb74c6fad73cb3bcdc13036b72ec8306f5a7646838684610c055786610c08565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b031660009081526006602052604090205490565b600b546001600160a01b031633146112ad5760405162461bcd60e51b81526004018080602001828103825260328152602001806127466032913960400191505060405180910390fd5b6112b8838383611e0e565b505050565b3390565b6001600160a01b0383166113065760405162461bcd60e51b81526004018080602001828103825260248152602001806126f86024913960400191505060405180910390fd5b6001600160a01b03821661134b5760405162461bcd60e51b81526004018080602001828103825260228152602001806125276022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03808316600090815260076020526040902054811690821681141561140a5760405162461bcd60e51b815260040180806020018281038252602a815260200180612616602a913960400191505060405180910390fd5b6000806000806114198761177c565b9350935093509350600083116114605760405162461bcd60e51b81526004018080602001828103825260428152602001806126406042913960600191505060405180910390fd5b6001600160a01b0385161561147b5761147b8760008661186d565b866001600160a01b0316866001600160a01b03161415611507576001600160a01b038716600081815260076020908152604080832080546001600160a01b03191690558051878152918201869052818101859052519192917f5e3cad45b1fe24159d1cb39788d82d0f69cc15770aa96fba1d3d1a73487355949181900360600190a35050505050610ae0565b6001600160a01b03878116600090815260076020526040812080546001600160a01b03191692891692909217909155611543908890859061186d565b604080518481526020810184905280820183905290516001600160a01b0380891692908a16917f5e3cad45b1fe24159d1cb39788d82d0f69cc15770aa96fba1d3d1a73487355949181900360600190a350505050505050565b60025490565b600061085982633b9aca0063ffffffff611f5d16565b60006115fc6b033b2e3c9fd0803ce80000006115f06115dd868663ffffffff611f5d16565b6b019d971e4fe8401e7400000090611722565b9063ffffffff611fb616565b9392505050565b6000631dcd65006115fc633b9aca006115f08386611722565b82816116288282610cb9565b611679576040805162461bcd60e51b815260206004820152601b60248201527f5472616e736665722063616e6e6f7420626520616c6c6f7765642e0000000000604482015290519081900360640190fd5b611684858585611e0e565b5050505050565b6000818484111561171a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116df5781810151838201526020016116c7565b50505050905090810190601f16801561170c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156115fc576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600080600080600061178d86611c42565b9050600061179e82610dd489610d54565b90506117aa8782611d12565b600b546005546040805163d15e005360e01b81526101009092046001600160a01b0390811660048401529051600093919091169163d15e0053916024808301926020929190829003018186803b15801561180357600080fd5b505afa158015611817573d6000803e3d6000fd5b505050506040513d602081101561182d57600080fd5b50516001600160a01b038916600090815260066020526040902081905590508261185d818463ffffffff61172216565b9099909850919650945092505050565b6001600160a01b03808416600090815260076020526040902054168061189357506112b8565b60008061189f8361177c565b6001600160a01b03871660009081526008602052604090205491955093506118d59250869150610dd4908863ffffffff61172216565b6001600160a01b03808516600090815260086020908152604080832094909455600790529190912054168015611911576119118484600061186d565b60408051848152602081018490528082018890526060810187905290516001600160a01b038616917f70ff8cf632603e2bfd1afb7e4061acce53d95356b1be9726b99fa22ba733b01f919081900360800190a250505050505050565b6001600160a01b0382166119b25760405162461bcd60e51b81526004018080602001828103825260218152602001806126b26021913960400191505060405180910390fd5b6119be826000836112b8565b611a01816040518060600160405280602281526020016124d3602291396001600160a01b038516600090815260208190526040902054919063ffffffff61168b16565b6001600160a01b038316600090815260208190526040902055600254611a2d908263ffffffff611a7516565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006115fc83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061168b565b6001600160a01b038116600081815260076020908152604080832080546001600160a01b03191690558051838152918201839052818101839052519192839290917f5e3cad45b1fe24159d1cb39788d82d0f69cc15770aa96fba1d3d1a7348735594919081900360600190a36001600160a01b038216600090815260086020526040902054611b6157506001600160a01b03811660009081526006602052604081205560016107a5565b5060006107a5565b80611b73576112b8565b611b7c83610784565b15611c28576040516000906001600160a01b0384169061c35090849084818181858888f193505050503d8060008114611bd1576040519150601f19603f3d011682016040523d82523d6000602084013e611bd6565b606091505b5050905080611c22576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b506112b8565b6112b86001600160a01b038416838363ffffffff611ff816565b6001600160a01b031660009081526020819052604090205490565b6001600160a01b03808316600090815260066020908152604080832054600b54600554835163d15e005360e01b815261010090910487166004820152925194956115fc956109c2959394611d0694939092169263d15e00539260248082019391829003018186803b158015611cd157600080fd5b505afa158015611ce5573d6000803e3d6000fd5b505050506040513d6020811015611cfb57600080fd5b50516109b6876115a2565b9063ffffffff61204a16565b6001600160a01b038216611d6d576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611d79600083836112b8565b600254611d8c908263ffffffff61172216565b6002556001600160a01b038216600090815260208190526040902054611db8908263ffffffff61172216565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008111611e4d5760405162461bcd60e51b81526004018080602001828103825260308152602001806126826030913960400191505060405180910390fd5b6000806000611e5b8661177c565b93509350935050600080611e6e8761177c565b935093505050611e7f88858861186d565b611e9387610e8d848963ffffffff61172216565b611e9e888888612082565b6000611eb0868863ffffffff611a7516565b158015611ecf5750876001600160a01b0316896001600160a01b031614155b15611ee057611edd89611ab7565b90505b876001600160a01b0316896001600160a01b03167f89a178eaa27e0cd201bd795ca8ff716ac0df9618494510ca79771cfc66ffcde889888786611f235789611f26565b60005b60408051948552602085019390935283830191909152606083015260808201879052519081900360a00190a3505050505050505050565b600082611f6c57506000610859565b82820282848281611f7957fe5b04146115fc5760405162461bcd60e51b81526004018080602001828103825260218152602001806125cd6021913960400191505060405180910390fd5b60006115fc83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506121e9565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112b890849061224e565b60006002820461207a836115f061206d876b033b2e3c9fd0803ce8000000611f5d565b849063ffffffff61172216565b949350505050565b6001600160a01b0383166120c75760405162461bcd60e51b81526004018080602001828103825260258152602001806126d36025913960400191505060405180910390fd5b6001600160a01b03821661210c5760405162461bcd60e51b81526004018080602001828103825260238152602001806124b06023913960400191505060405180910390fd5b6121178383836112b8565b61215a81604051806060016040528060268152602001612549602691396001600160a01b038616600090815260208190526040902054919063ffffffff61168b16565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461218f908263ffffffff61172216565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081836122385760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156116df5781810151838201526020016116c7565b50600083858161224457fe5b0495945050505050565b60606122a3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122ff9092919063ffffffff16565b8051909150156112b8578080602001905160208110156122c257600080fd5b50516112b85760405162461bcd60e51b815260040180806020018281038252602a81526020018061271c602a913960400191505060405180910390fd5b606061207a8484600085606061231485612476565b612365576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106123a45780518252601f199092019160209182019101612385565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612406576040519150601f19603f3d011682016040523d82523d6000602084013e61240b565b606091505b5091509150811561241f57915061207a9050565b80511561242f5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156116df5781810151838201526020016116c7565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061207a57505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e6365557365722063616e6e6f742072656465656d206d6f7265207468616e2074686520617661696c61626c652062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655472616e736665727320617265206f6e6c7920616c6c6f7765642069662074686520756e6465726c79696e6720617373657420697320455448557365722063616e6e6f74206769766520616c6c6f77616e636520746f2068696d73656c66536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365496e74657265737420697320616c7265616479207265646972656374656420746f207468652075736572496e7465726573742073747265616d2063616e206f6e6c79206265207265646972656374656420696620746865726520697320612076616c69642062616c616e63655472616e7366657272656420616d6f756e74206e6565647320746f2062652067726561746572207468616e207a65726f45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645468652063616c6c6572206f6620746869732066756e6374696f6e206d7573742062652061206c656e64696e6720706f6f6c45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f43616c6c6572206973206e6f7420616c6c6f77656420746f2072656469726563742074686520696e746572657374206f66207468652075736572a264697066735822122036124f60105c60035698f550a3f538626a6e2de559fc7e3944d631faf8b418db64736f6c63430006080033'; + "0x6080604052600080553480156200001557600080fd5b5060405162002e6238038062002e62833981810160405260408110156200003b57600080fd5b81019080805160405193929190846401000000008211156200005c57600080fd5b9083019060208201858111156200007257600080fd5b82516401000000008111828201881017156200008d57600080fd5b82525081516020918201929091019080838360005b83811015620000bc578181015183820152602001620000a2565b50505050905090810190601f168015620000ea5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010e57600080fd5b9083019060208201858111156200012457600080fd5b82516401000000008111828201881017156200013f57600080fd5b82525081516020918201929091019080838360005b838110156200016e57818101518382015260200162000154565b50505050905090810190601f1680156200019c5780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001bc906037906020850190620001eb565b508051620001d2906038906020840190620001eb565b50506039805460ff191660121790555062000290915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200022e57805160ff19168380011785556200025e565b828001600101855582156200025e579182015b828111156200025e57825182559160200191906001019062000241565b506200026c92915062000270565b5090565b6200028d91905b808211156200026c576000815560010162000277565b90565b612bc280620002a06000396000f3fe6080604052600436106101bb5760003560e01c80635eae177c116100ec578063c634dfaa1161008a578063dd62ed3e11610064578063dd62ed3e1461071e578063ee9907a414610759578063f85f6f741461078c578063f866c3191461087e57610217565b8063c634dfaa146106ac578063d0fc81d2146106df578063db006a75146106f457610217565b806394362e8b116100c657806394362e8b146105ec57806395d89b4114610625578063a457c2d71461063a578063a9059cbb1461067357610217565b80635eae177c1461056b57806370a08231146105a457806389d1a0fc146105d757610217565b806323b872dd11610159578063395093511161013357806339509351146104715780633edb7cb8146104aa578063445e8010146104e35780634efecaa51461053257610217565b806323b872dd146103c8578063313ce5671461040b578063325a9b131461043657610217565b80630e49072d116101955780630e49072d1461031a57806312c87c2d1461034d57806318160ddd146103805780631d51e7cf1461039557610217565b806306fdde031461021c578063095ea7b3146102a65780630bd7ad3b146102f357610217565b36610217576039546101da9061010090046001600160a01b03166108c1565b6102155760405162461bcd60e51b81526004018080602001828103825260398152602001806128f76039913960400191505060405180910390fd5b005b600080fd5b34801561022857600080fd5b506102316108e7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026b578181015183820152602001610253565b50505050905090810190601f1680156102985780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102b257600080fd5b506102df600480360360408110156102c957600080fd5b506001600160a01b03813516906020013561097e565b604080519115158252519081900360200190f35b3480156102ff57600080fd5b5061030861099c565b60408051918252519081900360200190f35b34801561032657600080fd5b506102156004803603602081101561033d57600080fd5b50356001600160a01b03166109a1565b34801561035957600080fd5b506102156004803603602081101561037057600080fd5b50356001600160a01b03166109ae565b34801561038c57600080fd5b50610308610a4d565b3480156103a157600080fd5b50610308600480360360208110156103b857600080fd5b50356001600160a01b0316610b0f565b3480156103d457600080fd5b506102df600480360360608110156103eb57600080fd5b506001600160a01b03813581169160208101359091169060400135610b2a565b34801561041757600080fd5b50610420610bb7565b6040805160ff9092168252519081900360200190f35b34801561044257600080fd5b506102156004803603604081101561045957600080fd5b506001600160a01b0381358116916020013516610bc0565b34801561047d57600080fd5b506102df6004803603604081101561049457600080fd5b506001600160a01b038135169060200135610c26565b3480156104b657600080fd5b50610215600480360360408110156104cd57600080fd5b506001600160a01b038135169060200135610c7a565b3480156104ef57600080fd5b506105166004803603602081101561050657600080fd5b50356001600160a01b0316610d6f565b604080516001600160a01b039092168252519081900360200190f35b34801561053e57600080fd5b506103086004803603604081101561055557600080fd5b506001600160a01b038135169060200135610d8d565b34801561057757600080fd5b506102df6004803603604081101561058e57600080fd5b506001600160a01b038135169060200135610dfb565b3480156105b057600080fd5b50610308600480360360208110156105c757600080fd5b50356001600160a01b0316610e96565b3480156105e357600080fd5b50610516610f49565b3480156105f857600080fd5b506102156004803603604081101561060f57600080fd5b506001600160a01b038135169060200135610f5d565b34801561063157600080fd5b50610231611032565b34801561064657600080fd5b506102df6004803603604081101561065d57600080fd5b506001600160a01b038135169060200135611093565b34801561067f57600080fd5b506102df6004803603604081101561069657600080fd5b506001600160a01b038135169060200135611101565b3480156106b857600080fd5b50610308600480360360208110156106cf57600080fd5b50356001600160a01b0316611115565b3480156106eb57600080fd5b50610308611120565b34801561070057600080fd5b506102156004803603602081101561071757600080fd5b5035611126565b34801561072a57600080fd5b506103086004803603604081101561074157600080fd5b506001600160a01b0381358116916020013516611360565b34801561076557600080fd5b506103086004803603602081101561077c57600080fd5b50356001600160a01b031661138b565b34801561079857600080fd5b50610215600480360360a08110156107af57600080fd5b6001600160a01b03823581169260208101359091169160ff60408301351691908101906080810160608201356401000000008111156107ed57600080fd5b8201836020820111156107ff57600080fd5b8035906020019184600183028401116401000000008311171561082157600080fd5b91939092909160208101903564010000000081111561083f57600080fd5b82018360208201111561085157600080fd5b8035906020019184600183028401116401000000008311171561087357600080fd5b5090925090506113a6565b34801561088a57600080fd5b50610215600480360360608110156108a157600080fd5b506001600160a01b0381358116916020810135909116906040013561152f565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b919050565b60378054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109735780601f1061094857610100808354040283529160200191610973565b820191906000526020600020905b81548152906001019060200180831161095657829003601f168201915b505050505090505b90565b600061099261098b611588565b848461158c565b5060015b92915050565b600181565b6109ab3382611678565b50565b6001600160a01b0381163314156109f65760405162461bcd60e51b81526004018080602001828103825260258152602001806129306025913960400191505060405180910390fd5b336000818152603d602052604080822080546001600160a01b0319166001600160a01b03861690811790915590519092917fc2d6a42a9d5273283f73009a07aacfb043f2f91173a8d9d33b504afe898db08b91a350565b600080610a58611867565b905080610a6957600091505061097b565b603f546039546040805163d15e005360e01b81526001600160a01b03610100909304831660048201529051610b0993610b0493169163d15e0053916024808301926020929190829003018186803b158015610ac357600080fd5b505afa158015610ad7573d6000803e3d6000fd5b505050506040513d6020811015610aed57600080fd5b5051610af88461186d565b9063ffffffff61188316565b6118ce565b91505090565b6001600160a01b03166000908152603c602052604090205490565b6000610b378484846118e7565b610bad84610b43611588565b610ba885604051806060016040528060288152602001612976602891396001600160a01b038a16600090815260356020526040812090610b81611588565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61195616565b61158c565b5060019392505050565b60395460ff1690565b6001600160a01b038281166000908152603d6020526040902054163314610c185760405162461bcd60e51b815260040180806020018281038252603a815260200180612b53603a913960400191505060405180910390fd5b610c228282611678565b5050565b6000610992610c33611588565b84610ba88560356000610c44611588565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6119ed16565b603f546001600160a01b03163314610cc35760405162461bcd60e51b8152600401808060200182810382526032815260200180612afc6032913960400191505060405180910390fd5b6000806000610cd185611a47565b93509350935050610ce3858386611b38565b610ced8585611c38565b6000610cff848663ffffffff611d4016565b610d0f57610d0c86611d82565b90505b856001600160a01b03167f90e5d3d68ec162d9c7de393037a3ede04dd44f68e051bf2ace4a73c299dbc4db868584610d475785610d4a565b60005b60408051938452602084019290925282820152519081900360600190a2505050505050565b6001600160a01b039081166000908152603b60205260409020541690565b603f546000906001600160a01b03163314610dd95760405162461bcd60e51b8152600401808060200182810382526032815260200180612afc6032913960400191505060405180910390fd5b603954610df59061010090046001600160a01b03168484611e34565b50919050565b603f54603954604080516376e9d61560e01b81526101009092046001600160a01b039081166004840152858116602484015260448301859052905160009391909116916376e9d615916064808301926020929190829003018186803b158015610e6357600080fd5b505afa158015610e77573d6000803e3d6000fd5b505050506040513d6020811015610e8d57600080fd5b50519392505050565b600080610ea283611f0d565b6001600160a01b0384166000908152603c602052604090205490915081158015610eca575080155b15610eda576000925050506108e2565b6001600160a01b038481166000908152603b602052604090205416610f2b57610f2281610f1686610f11868463ffffffff6119ed16565b611f28565b9063ffffffff611d4016565b925050506108e2565b610f22610f3c82610f168785611f28565b839063ffffffff6119ed16565b60395461010090046001600160a01b031681565b603f546001600160a01b03163314610fa65760405162461bcd60e51b8152600401808060200182810382526032815260200180612afc6032913960400191505060405180910390fd5b600080610fb284611a47565b935093505050610fd684610fcf85856119ed90919063ffffffff16565b6000611b38565b610fe08484611fdd565b604080518481526020810184905280820183905290516001600160a01b038616917fbe7799898ca2d813ff902b487c1b434ab45b47edd8f38b77ad5e99aae8341b7a919081900360600190a250505050565b60388054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109735780601f1061094857610100808354040283529160200191610973565b60006109926110a0611588565b84610ba885604051806060016040528060258152602001612b2e60259139603560006110ca611588565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61195616565b600061099261110e611588565b84846118e7565b600061099682611f0d565b60001981565b6000811161117b576040805162461bcd60e51b815260206004820181905260248201527f416d6f756e7420746f2072656465656d206e6565647320746f206265203e2030604482015290519081900360640190fd5b600080600061118933611a47565b919550935091508490506000198114156111a05750825b838111156111df5760405162461bcd60e51b815260040180806020018281038252603281526020018061287d6032913960400191505060405180910390fd5b6111e93382610dfb565b61123a576040805162461bcd60e51b815260206004820152601b60248201527f5472616e736665722063616e6e6f7420626520616c6c6f7765642e0000000000604482015290519081900360640190fd5b611245338483611b38565b61124f3382611c38565b6000611261858363ffffffff611d4016565b6112715761126e33611d82565b90505b603f546039546001600160a01b0391821691639895e3d89161010090041633856112a18a8263ffffffff611d4016565b6040518563ffffffff1660e01b815260040180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b03168152602001838152602001828152602001945050505050600060405180830381600087803b15801561131057600080fd5b505af1158015611324573d6000803e3d6000fd5b50505050336001600160a01b03167fbd5034ffbd47e4e72a94baa2cdb74c6fad73cb3bcdc13036b72ec8306f5a7646838684610d475786610d4a565b6001600160a01b03918216600090815260356020908152604080832093909416825291909152205490565b6001600160a01b03166000908152603a602052604090205490565b60006113b06120db565b60015490915060ff16806113c757506113c76120e0565b806113d3575060005481115b61140e5760405162461bcd60e51b815260040180806020018281038252602e8152602001806129c8602e913960400191505060405180910390fd5b60015460ff1615801561142d576001805460ff19168117905560008290555b6114396037878761279f565b506114466038858561279f565b50611450876120e6565b603e80546001600160a01b0319166001600160a01b038b8116919091179182905560408051630261bf8b60e01b815290519290911691630261bf8b91600480820192602092909190829003018186803b1580156114ac57600080fd5b505afa1580156114c0573d6000803e3d6000fd5b505050506040513d60208110156114d657600080fd5b5051603f80546001600160a01b0319166001600160a01b0392831617905560398054610100600160a81b031916610100928b16929092029190911790558015611524576001805460ff191690555b505050505050505050565b603f546001600160a01b031633146115785760405162461bcd60e51b8152600401808060200182810382526032815260200180612afc6032913960400191505060405180910390fd5b6115838383836120fc565b505050565b3390565b6001600160a01b0383166115d15760405162461bcd60e51b8152600401808060200182810382526024815260200180612aae6024913960400191505060405180910390fd5b6001600160a01b0382166116165760405162461bcd60e51b81526004018080602001828103825260228152602001806128af6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260356020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038083166000908152603b602052604090205481169082168114156116d55760405162461bcd60e51b815260040180806020018281038252602a81526020018061299e602a913960400191505060405180910390fd5b6000806000806116e487611a47565b93509350935093506000831161172b5760405162461bcd60e51b81526004018080602001828103825260428152602001806129f66042913960600191505060405180910390fd5b6001600160a01b038516156117465761174687600086611b38565b866001600160a01b0316866001600160a01b031614156117d2576001600160a01b0387166000818152603b6020908152604080832080546001600160a01b03191690558051878152918201869052818101859052519192917f5e3cad45b1fe24159d1cb39788d82d0f69cc15770aa96fba1d3d1a73487355949181900360600190a35050505050610c22565b6001600160a01b038781166000908152603b6020526040812080546001600160a01b0319169289169290921790915561180e9088908590611b38565b604080518481526020810184905280820183905290516001600160a01b0380891692908a16917f5e3cad45b1fe24159d1cb39788d82d0f69cc15770aa96fba1d3d1a73487355949181900360600190a350505050505050565b60365490565b600061099682633b9aca0063ffffffff61224b16565b60006118c76b033b2e3c9fd0803ce80000006118bb6118a8868663ffffffff61224b16565b6b019d971e4fe8401e74000000906119ed565b9063ffffffff6122a416565b9392505050565b6000631dcd65006118c7633b9aca006118bb83866119ed565b82816118f38282610dfb565b611944576040805162461bcd60e51b815260206004820152601b60248201527f5472616e736665722063616e6e6f7420626520616c6c6f7765642e0000000000604482015290519081900360640190fd5b61194f8585856120fc565b5050505050565b600081848411156119e55760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156119aa578181015183820152602001611992565b50505050905090810190601f1680156119d75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156118c7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000806000806000611a5886611f0d565b90506000611a6982610f1689610e96565b9050611a758782611fdd565b603f546039546040805163d15e005360e01b81526101009092046001600160a01b0390811660048401529051600093919091169163d15e0053916024808301926020929190829003018186803b158015611ace57600080fd5b505afa158015611ae2573d6000803e3d6000fd5b505050506040513d6020811015611af857600080fd5b50516001600160a01b0389166000908152603a60205260409020819055905082611b28818463ffffffff6119ed16565b9099909850919650945092505050565b6001600160a01b038084166000908152603b60205260409020541680611b5e5750611583565b600080611b6a83611a47565b6001600160a01b0387166000908152603c60205260409020549195509350611ba09250869150610f16908863ffffffff6119ed16565b6001600160a01b038085166000908152603c6020908152604080832094909455603b90529190912054168015611bdc57611bdc84846000611b38565b60408051848152602081018490528082018890526060810187905290516001600160a01b038616917f70ff8cf632603e2bfd1afb7e4061acce53d95356b1be9726b99fa22ba733b01f919081900360800190a250505050505050565b6001600160a01b038216611c7d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612a686021913960400191505060405180910390fd5b611c8982600083611583565b611ccc8160405180606001604052806022815260200161285b602291396001600160a01b038516600090815260346020526040902054919063ffffffff61195616565b6001600160a01b038316600090815260346020526040902055603654611cf8908263ffffffff611d4016565b6036556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006118c783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611956565b6001600160a01b0381166000818152603b6020908152604080832080546001600160a01b03191690558051838152918201839052818101839052519192839290917f5e3cad45b1fe24159d1cb39788d82d0f69cc15770aa96fba1d3d1a7348735594919081900360600190a36001600160a01b0382166000908152603c6020526040902054611e2c57506001600160a01b0381166000908152603a602052604081205560016108e2565b5060006108e2565b80611e3e57611583565b611e47836108c1565b15611ef3576040516000906001600160a01b0384169061c35090849084818181858888f193505050503d8060008114611e9c576040519150601f19603f3d011682016040523d82523d6000602084013e611ea1565b606091505b5050905080611eed576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b50611583565b6115836001600160a01b038416838363ffffffff6122e616565b6001600160a01b031660009081526034602052604090205490565b6001600160a01b038083166000908152603a6020908152604080832054603f54603954835163d15e005360e01b815261010090910487166004820152925194956118c795610b04959394611fd194939092169263d15e00539260248082019391829003018186803b158015611f9c57600080fd5b505afa158015611fb0573d6000803e3d6000fd5b505050506040513d6020811015611fc657600080fd5b5051610af88761186d565b9063ffffffff61233816565b6001600160a01b038216612038576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61204460008383611583565b603654612057908263ffffffff6119ed16565b6036556001600160a01b038216600090815260346020526040902054612083908263ffffffff6119ed16565b6001600160a01b03831660008181526034602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600190565b303b1590565b6039805460ff191660ff92909216919091179055565b6000811161213b5760405162461bcd60e51b8152600401808060200182810382526030815260200180612a386030913960400191505060405180910390fd5b600080600061214986611a47565b9350935093505060008061215c87611a47565b93509350505061216d888588611b38565b61218187610fcf848963ffffffff6119ed16565b61218c888888612370565b600061219e868863ffffffff611d4016565b1580156121bd5750876001600160a01b0316896001600160a01b031614155b156121ce576121cb89611d82565b90505b876001600160a01b0316896001600160a01b03167f89a178eaa27e0cd201bd795ca8ff716ac0df9618494510ca79771cfc66ffcde8898887866122115789612214565b60005b60408051948552602085019390935283830191909152606083015260808201879052519081900360a00190a3505050505050505050565b60008261225a57506000610996565b8282028284828161226757fe5b04146118c75760405162461bcd60e51b81526004018080602001828103825260218152602001806129556021913960400191505060405180910390fd5b60006118c783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506124d9565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261158390849061253e565b600060028204612368836118bb61235b876b033b2e3c9fd0803ce800000061224b565b849063ffffffff6119ed16565b949350505050565b6001600160a01b0383166123b55760405162461bcd60e51b8152600401808060200182810382526025815260200180612a896025913960400191505060405180910390fd5b6001600160a01b0382166123fa5760405162461bcd60e51b81526004018080602001828103825260238152602001806128386023913960400191505060405180910390fd5b612405838383611583565b612448816040518060600160405280602681526020016128d1602691396001600160a01b038616600090815260346020526040902054919063ffffffff61195616565b6001600160a01b03808516600090815260346020526040808220939093559084168152205461247d908263ffffffff6119ed16565b6001600160a01b0380841660008181526034602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081836125285760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156119aa578181015183820152602001611992565b50600083858161253457fe5b0495945050505050565b6060612593826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125ef9092919063ffffffff16565b805190915015611583578080602001905160208110156125b257600080fd5b50516115835760405162461bcd60e51b815260040180806020018281038252602a815260200180612ad2602a913960400191505060405180910390fd5b60606123688484600085606061260485612766565b612655576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106126945780518252601f199092019160209182019101612675565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146126f6576040519150601f19603f3d011682016040523d82523d6000602084013e6126fb565b606091505b5091509150811561270f5791506123689050565b80511561271f5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156119aa578181015183820152602001611992565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612368575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106127e05782800160ff1982351617855561280d565b8280016001018555821561280d579182015b8281111561280d5782358255916020019190600101906127f2565b5061281992915061281d565b5090565b61097b91905b80821115612819576000815560010161282356fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e6365557365722063616e6e6f742072656465656d206d6f7265207468616e2074686520617661696c61626c652062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655472616e736665727320617265206f6e6c7920616c6c6f7765642069662074686520756e6465726c79696e6720617373657420697320455448557365722063616e6e6f74206769766520616c6c6f77616e636520746f2068696d73656c66536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365496e74657265737420697320616c7265616479207265646972656374656420746f207468652075736572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564496e7465726573742073747265616d2063616e206f6e6c79206265207265646972656374656420696620746865726520697320612076616c69642062616c616e63655472616e7366657272656420616d6f756e74206e6565647320746f2062652067726561746572207468616e207a65726f45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645468652063616c6c6572206f6620746869732066756e6374696f6e206d7573742062652061206c656e64696e6720706f6f6c45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f43616c6c6572206973206e6f7420616c6c6f77656420746f2072656469726563742074686520696e746572657374206f66207468652075736572a2646970667358221220bbe3ae28c9bda65fb2e89f4b71fd0a9cda9128f6b741ee2a4718c5a6882b746164736f6c63430006080033"; diff --git a/types/AaveProtocolTestHelpers.d.ts b/types/AaveProtocolTestHelpers.d.ts index d848a8f2..6ba01eb0 100644 --- a/types/AaveProtocolTestHelpers.d.ts +++ b/types/AaveProtocolTestHelpers.d.ts @@ -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; 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; - 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; - 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: {}; diff --git a/types/AaveProtocolTestHelpersFactory.ts b/types/AaveProtocolTestHelpersFactory.ts index 10ead672..9d9e14be 100644 --- a/types/AaveProtocolTestHelpersFactory.ts +++ b/types/AaveProtocolTestHelpersFactory.ts @@ -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 {AaveProtocolTestHelpers} from './AaveProtocolTestHelpers'; +import { TransactionOverrides } from "."; +import { AaveProtocolTestHelpers } from "./AaveProtocolTestHelpers"; export class AaveProtocolTestHelpersFactory extends ContractFactory { constructor(signer?: Signer) { @@ -17,7 +17,9 @@ export class AaveProtocolTestHelpersFactory extends ContractFactory { addressesProvider: string, overrides?: TransactionOverrides ): Promise { - return super.deploy(addressesProvider, overrides) as Promise; + return super.deploy(addressesProvider, overrides) as Promise< + AaveProtocolTestHelpers + >; } getDeployTransaction( addressesProvider: string, @@ -31,8 +33,15 @@ export class AaveProtocolTestHelpersFactory extends ContractFactory { connect(signer: Signer): AaveProtocolTestHelpersFactory { return super.connect(signer) as AaveProtocolTestHelpersFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): AaveProtocolTestHelpers { - return new Contract(address, _abi, signerOrProvider) as AaveProtocolTestHelpers; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): AaveProtocolTestHelpers { + return new Contract( + address, + _abi, + signerOrProvider + ) as AaveProtocolTestHelpers; } } @@ -40,78 +49,78 @@ const _abi = [ { inputs: [ { - internalType: 'contract ILendingPoolAddressesProvider', - name: 'addressesProvider', - type: 'address', - }, + internalType: "contract ILendingPoolAddressesProvider", + name: "addressesProvider", + type: "address" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { inputs: [], - name: 'ADDRESSES_PROVIDER', + name: "ADDRESSES_PROVIDER", outputs: [ { - internalType: 'contract ILendingPoolAddressesProvider', - name: '', - type: 'address', - }, + internalType: "contract ILendingPoolAddressesProvider", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getAllATokens', + name: "getAllATokens", outputs: [ { components: [ { - internalType: 'string', - name: 'symbol', - type: 'string', + internalType: "string", + name: "symbol", + type: "string" }, { - internalType: 'address', - name: 'tokenAddress', - type: 'address', - }, + internalType: "address", + name: "tokenAddress", + type: "address" + } ], - internalType: 'struct AaveProtocolTestHelpers.TokenData[]', - name: '', - type: 'tuple[]', - }, + internalType: "struct AaveProtocolTestHelpers.TokenData[]", + name: "", + type: "tuple[]" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getAllReservesTokens', + name: "getAllReservesTokens", outputs: [ { components: [ { - internalType: 'string', - name: 'symbol', - type: 'string', + internalType: "string", + name: "symbol", + type: "string" }, { - internalType: 'address', - name: 'tokenAddress', - type: 'address', - }, + internalType: "address", + name: "tokenAddress", + type: "address" + } ], - internalType: 'struct AaveProtocolTestHelpers.TokenData[]', - name: '', - type: 'tuple[]', - }, + internalType: "struct AaveProtocolTestHelpers.TokenData[]", + name: "", + type: "tuple[]" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x60a060405234801561001057600080fd5b506040516109df3803806109df83398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c610948610097600039806083528060ab528061035f52506109486000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630542975c14610046578063b316ff8914610064578063f561ae4114610079575b600080fd5b61004e610081565b60405161005b91906107ed565b60405180910390f35b61006c6100a5565b60405161005b9190610801565b61006c610359565b7f000000000000000000000000000000000000000000000000000000000000000081565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561010257600080fd5b505afa158015610116573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013a9190610648565b90506060816001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160006040518083038186803b15801561017757600080fd5b505afa15801561018b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101b391908101906106b6565b90506060815167ffffffffffffffff811180156101cf57600080fd5b5060405190808252806020026020018201604052801561020957816020015b6101f6610613565b8152602001906001900390816101ee5790505b50905060005b825181101561035157604051806040016040528084838151811061022f57fe5b60200260200101516001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316146102f05784838151811061026f57fe5b60200260200101516001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156102af57600080fd5b505afa1580156102c3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526102eb9190810190610761565b61030d565b6040518060400160405280600381526020016208aa8960eb1b8152505b815260200184838151811061031e57fe5b60200260200101516001600160a01b031681525082828151811061033e57fe5b602090810291909101015260010161020f565b509250505090565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103b657600080fd5b505afa1580156103ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ee9190610648565b90506060816001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160006040518083038186803b15801561042b57600080fd5b505afa15801561043f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261046791908101906106b6565b90506060815167ffffffffffffffff8111801561048357600080fd5b506040519080825280602002602001820160405280156104bd57816020015b6104aa610613565b8152602001906001900390816104a25790505b50905060005b8251811015610351576000846001600160a01b031663d2493b6c8584815181106104e957fe5b60200260200101516040518263ffffffff1660e01b815260040161050d91906107ed565b60606040518083038186803b15801561052557600080fd5b505afa158015610539573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055d919061066a565b505090506040518060400160405280826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156105a557600080fd5b505afa1580156105b9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105e19190810190610761565b8152602001826001600160a01b03168152508383815181106105ff57fe5b6020908102919091010152506001016104c3565b60408051808201909152606081526000602082015290565b80516001600160a01b038116811461064257600080fd5b92915050565b600060208284031215610659578081fd5b610663838361062b565b9392505050565b60008060006060848603121561067e578182fd5b8351610689816108fa565b602085015190935061069a816108fa565b60408501519092506106ab816108fa565b809150509250925092565b600060208083850312156106c8578182fd5b825167ffffffffffffffff808211156106df578384fd5b81850186601f8201126106f0578485fd5b8051925081831115610700578485fd5b838302915061071084830161089a565b8381528481019082860184840187018a101561072a578788fd5b8794505b85851015610754576107408a8261062b565b83526001949094019391860191860161072e565b5098975050505050505050565b600060208284031215610772578081fd5b815167ffffffffffffffff80821115610789578283fd5b81840185601f82011261079a578384fd5b80519250818311156107aa578384fd5b6107bd601f8401601f191660200161089a565b91508282528560208483010111156107d3578384fd5b6107e48360208401602084016108ca565b50949350505050565b6001600160a01b0391909116815260200190565b60208082528251828201819052600091906040908185019080840286018301878501865b8381101561088c57888303603f1901855281518051878552805161084b818a88016108c1565b61085882828d86016108ca565b928a01516001600160a01b0316958a01959095525094870194601f93909301601f1916929092019190860190600101610825565b509098975050505050505050565b60405181810167ffffffffffffffff811182821017156108b957600080fd5b604052919050565b90815260200190565b60005b838110156108e55781810151838201526020016108cd565b838111156108f4576000848401525b50505050565b6001600160a01b038116811461090f57600080fd5b5056fea2646970667358221220c6d9c3ee3b7840765774d91be270d13caff4d3f46e7549ed0256b6e15c2b04dc64736f6c63430006080033'; + "0x60a060405234801561001057600080fd5b506040516109cd3803806109cd83398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c610936610097600039806083528060ab528061035f52506109366000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630542975c14610046578063b316ff8914610064578063f561ae4114610079575b600080fd5b61004e610081565b60405161005b91906107ed565b60405180910390f35b61006c6100a5565b60405161005b9190610801565b61006c610359565b7f000000000000000000000000000000000000000000000000000000000000000081565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561010257600080fd5b505afa158015610116573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013a9190610648565b90506060816001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160006040518083038186803b15801561017757600080fd5b505afa15801561018b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101b391908101906106b6565b90506060815167ffffffffffffffff811180156101cf57600080fd5b5060405190808252806020026020018201604052801561020957816020015b6101f6610613565b8152602001906001900390816101ee5790505b50905060005b825181101561035157604051806040016040528084838151811061022f57fe5b60200260200101516001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316146102f05784838151811061026f57fe5b60200260200101516001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156102af57600080fd5b505afa1580156102c3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526102eb9190810190610761565b61030d565b6040518060400160405280600381526020016208aa8960eb1b8152505b815260200184838151811061031e57fe5b60200260200101516001600160a01b031681525082828151811061033e57fe5b602090810291909101015260010161020f565b509250505090565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103b657600080fd5b505afa1580156103ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ee9190610648565b90506060816001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160006040518083038186803b15801561042b57600080fd5b505afa15801561043f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261046791908101906106b6565b90506060815167ffffffffffffffff8111801561048357600080fd5b506040519080825280602002602001820160405280156104bd57816020015b6104aa610613565b8152602001906001900390816104a25790505b50905060005b8251811015610351576000846001600160a01b031663d2493b6c8584815181106104e957fe5b60200260200101516040518263ffffffff1660e01b815260040161050d91906107ed565b60606040518083038186803b15801561052557600080fd5b505afa158015610539573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055d919061066a565b505090506040518060400160405280826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156105a557600080fd5b505afa1580156105b9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105e19190810190610761565b8152602001826001600160a01b03168152508383815181106105ff57fe5b6020908102919091010152506001016104c3565b60408051808201909152606081526000602082015290565b80516001600160a01b038116811461064257600080fd5b92915050565b600060208284031215610659578081fd5b610663838361062b565b9392505050565b60008060006060848603121561067e578182fd5b8351610689816108e8565b602085015190935061069a816108e8565b60408501519092506106ab816108e8565b809150509250925092565b600060208083850312156106c8578182fd5b825167ffffffffffffffff808211156106df578384fd5b81850186601f8201126106f0578485fd5b8051925081831115610700578485fd5b8383029150610710848301610891565b8381528481019082860184840187018a101561072a578788fd5b8794505b85851015610754576107408a8261062b565b83526001949094019391860191860161072e565b5098975050505050505050565b600060208284031215610772578081fd5b815167ffffffffffffffff80821115610789578283fd5b81840185601f82011261079a578384fd5b80519250818311156107aa578384fd5b6107bd601f8401601f1916602001610891565b91508282528560208483010111156107d3578384fd5b6107e48360208401602084016108b8565b50949350505050565b6001600160a01b0391909116815260200190565b60208082528251828201819052600091906040908185019080840286018301878501865b8381101561088357603f1989840301855281518051878552805180898701526060610855828289018d86016108b8565b928a01516001600160a01b0316868b015296890196601f01601f191690940101925090860190600101610825565b509098975050505050505050565b60405181810167ffffffffffffffff811182821017156108b057600080fd5b604052919050565b60005b838110156108d35781810151838201526020016108bb565b838111156108e2576000848401525b50505050565b6001600160a01b03811681146108fd57600080fd5b5056fea26469706673582212203a3381fb8716221b56c5efb284d1120c52f3772d4bd68fb6ebc309de5969d6a264736f6c63430006080033"; diff --git a/types/AddressStorage.d.ts b/types/AddressStorage.d.ts index cd55973c..1d324de0 100644 --- a/types/AddressStorage.d.ts +++ b/types/AddressStorage.d.ts @@ -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; diff --git a/types/AddressStorageFactory.ts b/types/AddressStorageFactory.ts index 2478ee60..bdfa282e 100644 --- a/types/AddressStorageFactory.ts +++ b/types/AddressStorageFactory.ts @@ -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"; diff --git a/types/AdminUpgradeabilityProxy.d.ts b/types/AdminUpgradeabilityProxy.d.ts index ca2f4807..a7fe4958 100644 --- a/types/AdminUpgradeabilityProxy.d.ts +++ b/types/AdminUpgradeabilityProxy.d.ts @@ -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; 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; - changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise; + changeAdmin( + newAdmin: string, + overrides?: TransactionOverrides + ): Promise; - implementation(overrides?: TransactionOverrides): Promise; + implementation( + overrides?: TransactionOverrides + ): Promise; upgradeTo( newImplementation: string, @@ -70,9 +87,14 @@ export class AdminUpgradeabilityProxy extends Contract { admin(overrides?: TransactionOverrides): Promise; - changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise; + changeAdmin( + newAdmin: string, + overrides?: TransactionOverrides + ): Promise; - implementation(overrides?: TransactionOverrides): Promise; + implementation( + overrides?: TransactionOverrides + ): Promise; upgradeTo( newImplementation: string, @@ -100,6 +122,9 @@ export class AdminUpgradeabilityProxy extends Contract { upgradeTo(newImplementation: string): Promise; - upgradeToAndCall(newImplementation: string, data: Arrayish): Promise; + upgradeToAndCall( + newImplementation: string, + data: Arrayish + ): Promise; }; } diff --git a/types/AdminUpgradeabilityProxyFactory.ts b/types/AdminUpgradeabilityProxyFactory.ts index f1a2ad3a..98938278 100644 --- a/types/AdminUpgradeabilityProxyFactory.ts +++ b/types/AdminUpgradeabilityProxyFactory.ts @@ -1,13 +1,13 @@ /* 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 {Arrayish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { Arrayish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {AdminUpgradeabilityProxy} from './AdminUpgradeabilityProxy'; +import { TransactionOverrides } from "."; +import { AdminUpgradeabilityProxy } from "./AdminUpgradeabilityProxy"; export class AdminUpgradeabilityProxyFactory extends ContractFactory { constructor(signer?: Signer) { @@ -20,7 +20,9 @@ export class AdminUpgradeabilityProxyFactory extends ContractFactory { _data: Arrayish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_logic, _admin, _data, overrides) as Promise; + return super.deploy(_logic, _admin, _data, overrides) as Promise< + AdminUpgradeabilityProxy + >; } getDeployTransaction( _logic: string, @@ -36,8 +38,15 @@ export class AdminUpgradeabilityProxyFactory extends ContractFactory { connect(signer: Signer): AdminUpgradeabilityProxyFactory { return super.connect(signer) as AdminUpgradeabilityProxyFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): AdminUpgradeabilityProxy { - return new Contract(address, _abi, signerOrProvider) as AdminUpgradeabilityProxy; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): AdminUpgradeabilityProxy { + return new Contract( + address, + _abi, + signerOrProvider + ) as AdminUpgradeabilityProxy; } } @@ -45,131 +54,131 @@ const _abi = [ { inputs: [ { - internalType: 'address', - name: '_logic', - type: 'address', + internalType: "address", + name: "_logic", + type: "address" }, { - internalType: 'address', - name: '_admin', - type: 'address', + internalType: "address", + name: "_admin", + type: "address" }, { - internalType: 'bytes', - name: '_data', - type: 'bytes', - }, + internalType: "bytes", + name: "_data", + type: "bytes" + } ], - stateMutability: 'payable', - type: 'constructor', + stateMutability: "payable", + type: "constructor" }, { anonymous: false, 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 = - '0x60806040526040516109f73803806109f78339818101604052606081101561002657600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005157600080fd5b90830190602082018581111561006657600080fd5b825164010000000081118282018810171561008057600080fd5b82525081516020918201929091019080838360005b838110156100ad578181015183820152602001610095565b50505050905090810190601f1680156100da5780820380516001836020036101000a031916815260200191505b5060408181527f656970313936372e70726f78792e696d706c656d656e746174696f6e0000000082525190819003601c01902086935084925060008051602061099c83398151915260001990910114905061013157fe5b610143826001600160e01b0361026516565b8051156101fb576000826001600160a01b0316826040518082805190602001908083835b602083106101865780518252601f199092019160209182019101610167565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101e6576040519150601f19603f3d011682016040523d82523d6000602084013e6101eb565b606091505b50509050806101f957600080fd5b505b5050604080517f656970313936372e70726f78792e61646d696e000000000000000000000000008152905190819003601301902060008051602061097c8339815191526000199091011461024b57fe5b61025d826001600160e01b036102c516565b505050610313565b610278816102d760201b6103a31760201c565b6102b35760405162461bcd60e51b815260040180806020018281038252603b8152602001806109bc603b913960400191505060405180910390fd5b60008051602061099c83398151915255565b60008051602061097c83398151915255565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061030b57508115155b949350505050565b61065a806103226000396000f3fe60806040526004361061004a5760003560e01c80633659cfe6146100545780634f1ef286146100875780635c60da1b146101075780638f28397014610138578063f851a4401461016b575b610052610180565b005b34801561006057600080fd5b506100526004803603602081101561007757600080fd5b50356001600160a01b031661019a565b6100526004803603604081101561009d57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100c857600080fd5b8201836020820111156100da57600080fd5b803590602001918460018302840111640100000000831117156100fc57600080fd5b5090925090506101d4565b34801561011357600080fd5b5061011c610281565b604080516001600160a01b039092168252519081900360200190f35b34801561014457600080fd5b506100526004803603602081101561015b57600080fd5b50356001600160a01b03166102be565b34801561017757600080fd5b5061011c610378565b6101886103df565b6101986101936103e7565b61040c565b565b6101a2610430565b6001600160a01b0316336001600160a01b031614156101c9576101c481610455565b6101d1565b6101d1610180565b50565b6101dc610430565b6001600160a01b0316336001600160a01b03161415610274576101fe83610455565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461025b576040519150601f19603f3d011682016040523d82523d6000602084013e610260565b606091505b505090508061026e57600080fd5b5061027c565b61027c610180565b505050565b600061028b610430565b6001600160a01b0316336001600160a01b031614156102b3576102ac6103e7565b90506102bb565b6102bb610180565b90565b6102c6610430565b6001600160a01b0316336001600160a01b031614156101c9576001600160a01b0381166103245760405162461bcd60e51b81526004018080602001828103825260368152602001806105b46036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61034d610430565b604080516001600160a01b03928316815291841660208301528051918290030190a16101c481610495565b6000610382610430565b6001600160a01b0316336001600160a01b031614156102b3576102ac610430565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906103d757508115155b949350505050565b6101986104b9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e80801561042b573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61045e81610519565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6104c1610430565b6001600160a01b0316336001600160a01b031614156105115760405162461bcd60e51b81526004018080602001828103825260328152602001806105826032913960400191505060405180910390fd5b610198610198565b610522816103a3565b61055d5760405162461bcd60e51b815260040180806020018281038252603b8152602001806105ea603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5556fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a2646970667358221220ab2d41e63cbe522ce3aa66ed2dc31ddf58bbba61391748206b6c58e7214fb2e264736f6c63430006080033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373'; + "0x60806040526040516109f73803806109f78339818101604052606081101561002657600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005157600080fd5b90830190602082018581111561006657600080fd5b825164010000000081118282018810171561008057600080fd5b82525081516020918201929091019080838360005b838110156100ad578181015183820152602001610095565b50505050905090810190601f1680156100da5780820380516001836020036101000a031916815260200191505b5060408181527f656970313936372e70726f78792e696d706c656d656e746174696f6e0000000082525190819003601c01902086935084925060008051602061099c83398151915260001990910114905061013157fe5b610143826001600160e01b0361026516565b8051156101fb576000826001600160a01b0316826040518082805190602001908083835b602083106101865780518252601f199092019160209182019101610167565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101e6576040519150601f19603f3d011682016040523d82523d6000602084013e6101eb565b606091505b50509050806101f957600080fd5b505b5050604080517f656970313936372e70726f78792e61646d696e000000000000000000000000008152905190819003601301902060008051602061097c8339815191526000199091011461024b57fe5b61025d826001600160e01b036102c516565b505050610313565b610278816102d760201b6103a31760201c565b6102b35760405162461bcd60e51b815260040180806020018281038252603b8152602001806109bc603b913960400191505060405180910390fd5b60008051602061099c83398151915255565b60008051602061097c83398151915255565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061030b57508115155b949350505050565b61065a806103226000396000f3fe60806040526004361061004a5760003560e01c80633659cfe6146100545780634f1ef286146100875780635c60da1b146101075780638f28397014610138578063f851a4401461016b575b610052610180565b005b34801561006057600080fd5b506100526004803603602081101561007757600080fd5b50356001600160a01b031661019a565b6100526004803603604081101561009d57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100c857600080fd5b8201836020820111156100da57600080fd5b803590602001918460018302840111640100000000831117156100fc57600080fd5b5090925090506101d4565b34801561011357600080fd5b5061011c610281565b604080516001600160a01b039092168252519081900360200190f35b34801561014457600080fd5b506100526004803603602081101561015b57600080fd5b50356001600160a01b03166102be565b34801561017757600080fd5b5061011c610378565b6101886103df565b6101986101936103e7565b61040c565b565b6101a2610430565b6001600160a01b0316336001600160a01b031614156101c9576101c481610455565b6101d1565b6101d1610180565b50565b6101dc610430565b6001600160a01b0316336001600160a01b03161415610274576101fe83610455565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461025b576040519150601f19603f3d011682016040523d82523d6000602084013e610260565b606091505b505090508061026e57600080fd5b5061027c565b61027c610180565b505050565b600061028b610430565b6001600160a01b0316336001600160a01b031614156102b3576102ac6103e7565b90506102bb565b6102bb610180565b90565b6102c6610430565b6001600160a01b0316336001600160a01b031614156101c9576001600160a01b0381166103245760405162461bcd60e51b81526004018080602001828103825260368152602001806105b46036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61034d610430565b604080516001600160a01b03928316815291841660208301528051918290030190a16101c481610495565b6000610382610430565b6001600160a01b0316336001600160a01b031614156102b3576102ac610430565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906103d757508115155b949350505050565b6101986104b9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e80801561042b573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61045e81610519565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6104c1610430565b6001600160a01b0316336001600160a01b031614156105115760405162461bcd60e51b81526004018080602001828103825260328152602001806105826032913960400191505060405180910390fd5b610198610198565b610522816103a3565b61055d5760405162461bcd60e51b815260040180806020018281038252603b8152602001806105ea603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5556fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a2646970667358221220ab2d41e63cbe522ce3aa66ed2dc31ddf58bbba61391748206b6c58e7214fb2e264736f6c63430006080033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373"; diff --git a/types/BaseAdminUpgradeabilityProxy.d.ts b/types/BaseAdminUpgradeabilityProxy.d.ts index 006aed32..0955361c 100644 --- a/types/BaseAdminUpgradeabilityProxy.d.ts +++ b/types/BaseAdminUpgradeabilityProxy.d.ts @@ -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; - 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; - changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise; + changeAdmin( + newAdmin: string, + overrides?: TransactionOverrides + ): Promise; - implementation(overrides?: TransactionOverrides): Promise; + implementation( + overrides?: TransactionOverrides + ): Promise; upgradeTo( newImplementation: string, @@ -70,9 +95,14 @@ export class BaseAdminUpgradeabilityProxy extends Contract { admin(overrides?: TransactionOverrides): Promise; - changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise; + changeAdmin( + newAdmin: string, + overrides?: TransactionOverrides + ): Promise; - implementation(overrides?: TransactionOverrides): Promise; + implementation( + overrides?: TransactionOverrides + ): Promise; upgradeTo( newImplementation: string, @@ -100,6 +130,9 @@ export class BaseAdminUpgradeabilityProxy extends Contract { upgradeTo(newImplementation: string): Promise; - upgradeToAndCall(newImplementation: string, data: Arrayish): Promise; + upgradeToAndCall( + newImplementation: string, + data: Arrayish + ): Promise; }; } diff --git a/types/BaseAdminUpgradeabilityProxyFactory.ts b/types/BaseAdminUpgradeabilityProxyFactory.ts index 1f04542f..047a140b 100644 --- a/types/BaseAdminUpgradeabilityProxyFactory.ts +++ b/types/BaseAdminUpgradeabilityProxyFactory.ts @@ -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 { + deploy( + overrides?: TransactionOverrides + ): Promise { return super.deploy(overrides) as Promise; } 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"; diff --git a/types/BaseUpgradeabilityProxy.d.ts b/types/BaseUpgradeabilityProxy.d.ts index d8070242..b163011a 100644 --- a/types/BaseUpgradeabilityProxy.d.ts +++ b/types/BaseUpgradeabilityProxy.d.ts @@ -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; 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; diff --git a/types/BaseUpgradeabilityProxyFactory.ts b/types/BaseUpgradeabilityProxyFactory.ts index 125e10c8..ca4df17d 100644 --- a/types/BaseUpgradeabilityProxyFactory.ts +++ b/types/BaseUpgradeabilityProxyFactory.ts @@ -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"; diff --git a/types/ChainlinkProxyPriceProvider.d.ts b/types/ChainlinkProxyPriceProvider.d.ts index 88bd3170..ead8e048 100644 --- a/types/ChainlinkProxyPriceProvider.d.ts +++ b/types/ChainlinkProxyPriceProvider.d.ts @@ -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; - 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; - renounceOwnership(overrides?: TransactionOverrides): Promise; + renounceOwnership( + overrides?: TransactionOverrides + ): Promise; setAssetSources( _assets: string[], @@ -107,7 +132,9 @@ export class ChainlinkProxyPriceProvider extends Contract { owner(): Promise; - renounceOwnership(overrides?: TransactionOverrides): Promise; + renounceOwnership( + overrides?: TransactionOverrides + ): Promise; setAssetSources( _assets: string[], @@ -126,11 +153,17 @@ export class ChainlinkProxyPriceProvider extends Contract { ): Promise; 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: { diff --git a/types/ChainlinkProxyPriceProviderFactory.ts b/types/ChainlinkProxyPriceProviderFactory.ts index fe46408e..fb390122 100644 --- a/types/ChainlinkProxyPriceProviderFactory.ts +++ b/types/ChainlinkProxyPriceProviderFactory.ts @@ -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 {ChainlinkProxyPriceProvider} from './ChainlinkProxyPriceProvider'; +import { TransactionOverrides } from "."; +import { ChainlinkProxyPriceProvider } from "./ChainlinkProxyPriceProvider"; export class ChainlinkProxyPriceProviderFactory extends ContractFactory { constructor(signer?: Signer) { @@ -19,9 +19,12 @@ export class ChainlinkProxyPriceProviderFactory extends ContractFactory { _fallbackOracle: string, overrides?: TransactionOverrides ): Promise { - return super.deploy(_assets, _sources, _fallbackOracle, overrides) as Promise< - ChainlinkProxyPriceProvider - >; + return super.deploy( + _assets, + _sources, + _fallbackOracle, + overrides + ) as Promise; } getDeployTransaction( _assets: string[], @@ -29,7 +32,12 @@ export class ChainlinkProxyPriceProviderFactory extends ContractFactory { _fallbackOracle: string, overrides?: TransactionOverrides ): UnsignedTransaction { - return super.getDeployTransaction(_assets, _sources, _fallbackOracle, overrides); + return super.getDeployTransaction( + _assets, + _sources, + _fallbackOracle, + overrides + ); } attach(address: string): ChainlinkProxyPriceProvider { return super.attach(address) as ChainlinkProxyPriceProvider; @@ -41,7 +49,11 @@ export class ChainlinkProxyPriceProviderFactory extends ContractFactory { address: string, signerOrProvider: Signer | Provider ): ChainlinkProxyPriceProvider { - return new Contract(address, _abi, signerOrProvider) as ChainlinkProxyPriceProvider; + return new Contract( + address, + _abi, + signerOrProvider + ) as ChainlinkProxyPriceProvider; } } @@ -49,210 +61,210 @@ const _abi = [ { inputs: [ { - internalType: 'address[]', - name: '_assets', - type: 'address[]', + internalType: "address[]", + name: "_assets", + type: "address[]" }, { - internalType: 'address[]', - name: '_sources', - type: 'address[]', + internalType: "address[]", + name: "_sources", + type: "address[]" }, { - internalType: 'address', - name: '_fallbackOracle', - type: 'address', - }, + internalType: "address", + name: "_fallbackOracle", + type: "address" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'asset', - type: 'address', + internalType: "address", + name: "asset", + type: "address" }, { indexed: true, - internalType: 'address', - name: 'source', - type: 'address', - }, + internalType: "address", + name: "source", + type: "address" + } ], - name: 'AssetSourceUpdated', - type: 'event', + name: "AssetSourceUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'fallbackOracle', - type: 'address', - }, + internalType: "address", + name: "fallbackOracle", + type: "address" + } ], - name: 'FallbackOracleUpdated', - type: 'event', + name: "FallbackOracleUpdated", + 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: [ { - 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: '_assets', - type: 'address[]', - }, + internalType: "address[]", + name: "_assets", + type: "address[]" + } ], - name: 'getAssetsPrices', + name: "getAssetsPrices", outputs: [ { - internalType: 'uint256[]', - name: '', - type: 'uint256[]', - }, + internalType: "uint256[]", + name: "", + type: "uint256[]" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getFallbackOracle', + name: "getFallbackOracle", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_asset', - type: 'address', - }, + internalType: "address", + name: "_asset", + type: "address" + } ], - name: 'getSourceOfAsset', + name: "getSourceOfAsset", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - 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: [], - name: 'renounceOwnership', + name: "renounceOwnership", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address[]', - name: '_assets', - type: 'address[]', + internalType: "address[]", + name: "_assets", + type: "address[]" }, { - internalType: 'address[]', - name: '_sources', - type: 'address[]', - }, + internalType: "address[]", + name: "_sources", + type: "address[]" + } ], - name: 'setAssetSources', + name: "setAssetSources", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_fallbackOracle', - type: 'address', - }, + internalType: "address", + name: "_fallbackOracle", + type: "address" + } ], - name: 'setFallbackOracle', + name: "setFallbackOracle", 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" + } ]; const _bytecode = - '0x60806040523480156200001157600080fd5b5060405162000e3538038062000e35833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82518660208202830111640100000000821117156200008c57600080fd5b82525081516020918201928201910280838360005b83811015620000bb578181015183820152602001620000a1565b5050505090500160405260200180516040519392919084640100000000821115620000e557600080fd5b908301906020820185811115620000fb57600080fd5b82518660208202830111640100000000821117156200011957600080fd5b82525081516020918201928201910280838360005b83811015620001485781810151838201526020016200012e565b50505050919091016040525060200151915060009050620001716001600160e01b03620001ed16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620001cf816001600160e01b03620001f116565b620001e483836001600160e01b036200023b16565b50505062000387565b3390565b600280546001600160a01b0319166001600160a01b0383169081179091556040517fce7a780d33665b1ea097af5f155e3821b809ecbaa839d3b33aa83ba28168cefb90600090a250565b805182511462000292576040805162461bcd60e51b815260206004820152601a60248201527f494e434f4e53495354454e545f504152414d535f4c454e475448000000000000604482015290519081900360640190fd5b60005b82518110156200038257818181518110620002ac57fe5b602002602001015160016000858481518110620002c557fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508181815181106200031e57fe5b60200260200101516001600160a01b03168382815181106200033c57fe5b60200260200101516001600160a01b03167f22c5b7b2d8561d39f7f210b6b326a1aa69f15311163082308ac4877db6339dc160405160405180910390a360010162000295565b505050565b610a9e80620003976000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c806392bf2be01161006657806392bf2be0146100f45780639d23d9f21461011a578063abfd5310146101da578063b3596f071461029c578063f2fde38b146102d457610093565b8063170aee73146100985780636210308c146100c0578063715018a6146100e45780638da5cb5b146100ec575b600080fd5b6100be600480360360208110156100ae57600080fd5b50356001600160a01b03166102fa565b005b6100c861035e565b604080516001600160a01b039092168252519081900360200190f35b6100be61036d565b6100c861040f565b6100c86004803603602081101561010a57600080fd5b50356001600160a01b031661041e565b61018a6004803603602081101561013057600080fd5b81019060208101813564010000000081111561014b57600080fd5b82018360208201111561015d57600080fd5b8035906020019184602083028401116401000000008311171561017f57600080fd5b50909250905061043f565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156101c65781810151838201526020016101ae565b505050509050019250505060405180910390f35b6100be600480360360408110156101f057600080fd5b81019060208101813564010000000081111561020b57600080fd5b82018360208201111561021d57600080fd5b8035906020019184602083028401116401000000008311171561023f57600080fd5b91939092909160208101903564010000000081111561025d57600080fd5b82018360208201111561026f57600080fd5b8035906020019184602083028401116401000000008311171561029157600080fd5b5090925090506104dc565b6102c2600480360360208110156102b257600080fd5b50356001600160a01b03166105a7565b60408051918252519081900360200190f35b6100be600480360360208110156102ea57600080fd5b50356001600160a01b0316610772565b61030261086a565b6000546001600160a01b03908116911614610352576040805162461bcd60e51b81526020600482018190526024820152600080516020610a49833981519152604482015290519081900360640190fd5b61035b8161086e565b50565b6002546001600160a01b031690565b61037561086a565b6000546001600160a01b039081169116146103c5576040805162461bcd60e51b81526020600482018190526024820152600080516020610a49833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b03808216600090815260016020526040902054165b919050565b6060808267ffffffffffffffff8111801561045957600080fd5b50604051908082528060200260200182016040528015610483578160200160208202803683370190505b50905060005b838110156104d4576104b58585838181106104a057fe5b905060200201356001600160a01b03166105a7565b8282815181106104c157fe5b6020908102919091010152600101610489565b509392505050565b6104e461086a565b6000546001600160a01b03908116911614610534576040805162461bcd60e51b81526020600482018190526024820152600080516020610a49833981519152604482015290519081900360640190fd5b6105a1848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040805160208088028281018201909352878252909350879250869182918501908490808284376000920191909152506108b892505050565b50505050565b6001600160a01b03808216600081815260016020526040812054909216906105ce906109fd565b156105e457670de0b6b3a764000091505061043a565b6001600160a01b038116610674576002546040805163b3596f0760e01b81526001600160a01b0386811660048301529151919092169163b3596f07916024808301926020929190829003018186803b15801561063f57600080fd5b505afa158015610653573d6000803e3d6000fd5b505050506040513d602081101561066957600080fd5b5051915061043a9050565b6000816001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106af57600080fd5b505afa1580156106c3573d6000803e3d6000fd5b505050506040513d60208110156106d957600080fd5b5051905060008113156106ef57915061043a9050565b6002546040805163b3596f0760e01b81526001600160a01b0387811660048301529151919092169163b3596f07916024808301926020929190829003018186803b15801561073c57600080fd5b505afa158015610750573d6000803e3d6000fd5b505050506040513d602081101561076657600080fd5b5051925061043a915050565b61077a61086a565b6000546001600160a01b039081169116146107ca576040805162461bcd60e51b81526020600482018190526024820152600080516020610a49833981519152604482015290519081900360640190fd5b6001600160a01b03811661080f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610a236026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b600280546001600160a01b0319166001600160a01b0383169081179091556040517fce7a780d33665b1ea097af5f155e3821b809ecbaa839d3b33aa83ba28168cefb90600090a250565b805182511461090e576040805162461bcd60e51b815260206004820152601a60248201527f494e434f4e53495354454e545f504152414d535f4c454e475448000000000000604482015290519081900360640190fd5b60005b82518110156109f85781818151811061092657fe5b60200260200101516001600085848151811061093e57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081818151811061099657fe5b60200260200101516001600160a01b03168382815181106109b357fe5b60200260200101516001600160a01b03167f22c5b7b2d8561d39f7f210b6b326a1aa69f15311163082308ac4877db6339dc160405160405180910390a3600101610911565b505050565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1491905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220beb59e0ee54ed1ee1c6a54ddf3c7f0462a22dba0d07fbdf4672b6c5e9d6ddea064736f6c63430006080033'; + "0x60806040523480156200001157600080fd5b5060405162000e3538038062000e35833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82518660208202830111640100000000821117156200008c57600080fd5b82525081516020918201928201910280838360005b83811015620000bb578181015183820152602001620000a1565b5050505090500160405260200180516040519392919084640100000000821115620000e557600080fd5b908301906020820185811115620000fb57600080fd5b82518660208202830111640100000000821117156200011957600080fd5b82525081516020918201928201910280838360005b83811015620001485781810151838201526020016200012e565b50505050919091016040525060200151915060009050620001716001600160e01b03620001ed16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620001cf816001600160e01b03620001f116565b620001e483836001600160e01b036200023b16565b50505062000387565b3390565b600280546001600160a01b0319166001600160a01b0383169081179091556040517fce7a780d33665b1ea097af5f155e3821b809ecbaa839d3b33aa83ba28168cefb90600090a250565b805182511462000292576040805162461bcd60e51b815260206004820152601a60248201527f494e434f4e53495354454e545f504152414d535f4c454e475448000000000000604482015290519081900360640190fd5b60005b82518110156200038257818181518110620002ac57fe5b602002602001015160016000858481518110620002c557fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508181815181106200031e57fe5b60200260200101516001600160a01b03168382815181106200033c57fe5b60200260200101516001600160a01b03167f22c5b7b2d8561d39f7f210b6b326a1aa69f15311163082308ac4877db6339dc160405160405180910390a360010162000295565b505050565b610a9e80620003976000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c806392bf2be01161006657806392bf2be0146100f45780639d23d9f21461011a578063abfd5310146101da578063b3596f071461029c578063f2fde38b146102d457610093565b8063170aee73146100985780636210308c146100c0578063715018a6146100e45780638da5cb5b146100ec575b600080fd5b6100be600480360360208110156100ae57600080fd5b50356001600160a01b03166102fa565b005b6100c861035e565b604080516001600160a01b039092168252519081900360200190f35b6100be61036d565b6100c861040f565b6100c86004803603602081101561010a57600080fd5b50356001600160a01b031661041e565b61018a6004803603602081101561013057600080fd5b81019060208101813564010000000081111561014b57600080fd5b82018360208201111561015d57600080fd5b8035906020019184602083028401116401000000008311171561017f57600080fd5b50909250905061043f565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156101c65781810151838201526020016101ae565b505050509050019250505060405180910390f35b6100be600480360360408110156101f057600080fd5b81019060208101813564010000000081111561020b57600080fd5b82018360208201111561021d57600080fd5b8035906020019184602083028401116401000000008311171561023f57600080fd5b91939092909160208101903564010000000081111561025d57600080fd5b82018360208201111561026f57600080fd5b8035906020019184602083028401116401000000008311171561029157600080fd5b5090925090506104dc565b6102c2600480360360208110156102b257600080fd5b50356001600160a01b03166105a7565b60408051918252519081900360200190f35b6100be600480360360208110156102ea57600080fd5b50356001600160a01b0316610772565b61030261086a565b6000546001600160a01b03908116911614610352576040805162461bcd60e51b81526020600482018190526024820152600080516020610a49833981519152604482015290519081900360640190fd5b61035b8161086e565b50565b6002546001600160a01b031690565b61037561086a565b6000546001600160a01b039081169116146103c5576040805162461bcd60e51b81526020600482018190526024820152600080516020610a49833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b03808216600090815260016020526040902054165b919050565b6060808267ffffffffffffffff8111801561045957600080fd5b50604051908082528060200260200182016040528015610483578160200160208202803683370190505b50905060005b838110156104d4576104b58585838181106104a057fe5b905060200201356001600160a01b03166105a7565b8282815181106104c157fe5b6020908102919091010152600101610489565b509392505050565b6104e461086a565b6000546001600160a01b03908116911614610534576040805162461bcd60e51b81526020600482018190526024820152600080516020610a49833981519152604482015290519081900360640190fd5b6105a1848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040805160208088028281018201909352878252909350879250869182918501908490808284376000920191909152506108b892505050565b50505050565b6001600160a01b03808216600081815260016020526040812054909216906105ce906109fd565b156105e457670de0b6b3a764000091505061043a565b6001600160a01b038116610674576002546040805163b3596f0760e01b81526001600160a01b0386811660048301529151919092169163b3596f07916024808301926020929190829003018186803b15801561063f57600080fd5b505afa158015610653573d6000803e3d6000fd5b505050506040513d602081101561066957600080fd5b5051915061043a9050565b6000816001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106af57600080fd5b505afa1580156106c3573d6000803e3d6000fd5b505050506040513d60208110156106d957600080fd5b5051905060008113156106ef57915061043a9050565b6002546040805163b3596f0760e01b81526001600160a01b0387811660048301529151919092169163b3596f07916024808301926020929190829003018186803b15801561073c57600080fd5b505afa158015610750573d6000803e3d6000fd5b505050506040513d602081101561076657600080fd5b5051925061043a915050565b61077a61086a565b6000546001600160a01b039081169116146107ca576040805162461bcd60e51b81526020600482018190526024820152600080516020610a49833981519152604482015290519081900360640190fd5b6001600160a01b03811661080f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610a236026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b600280546001600160a01b0319166001600160a01b0383169081179091556040517fce7a780d33665b1ea097af5f155e3821b809ecbaa839d3b33aa83ba28168cefb90600090a250565b805182511461090e576040805162461bcd60e51b815260206004820152601a60248201527f494e434f4e53495354454e545f504152414d535f4c454e475448000000000000604482015290519081900360640190fd5b60005b82518110156109f85781818151811061092657fe5b60200260200101516001600085848151811061093e57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081818151811061099657fe5b60200260200101516001600160a01b03168382815181106109b357fe5b60200260200101516001600160a01b03167f22c5b7b2d8561d39f7f210b6b326a1aa69f15311163082308ac4877db6339dc160405160405180910390a3600101610911565b505050565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1491905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220beb59e0ee54ed1ee1c6a54ddf3c7f0462a22dba0d07fbdf4672b6c5e9d6ddea064736f6c63430006080033"; diff --git a/types/ChainlinkUsdethOracleI.d.ts b/types/ChainlinkUsdethOracleI.d.ts index 876a1938..eb82f221 100644 --- a/types/ChainlinkUsdethOracleI.d.ts +++ b/types/ChainlinkUsdethOracleI.d.ts @@ -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: {}; diff --git a/types/ChainlinkUsdethOracleIFactory.ts b/types/ChainlinkUsdethOracleIFactory.ts index c99c80f5..e10bef05 100644 --- a/types/ChainlinkUsdethOracleIFactory.ts +++ b/types/ChainlinkUsdethOracleIFactory.ts @@ -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" + } ]; diff --git a/types/DebtTokenBase.d.ts b/types/DebtTokenBase.d.ts index 120d765f..d701ee65 100644 --- a/types/DebtTokenBase.d.ts +++ b/types/DebtTokenBase.d.ts @@ -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; 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; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; init( _name: string, @@ -236,7 +265,11 @@ export class DebtTokenBase extends Contract { transfer(recipient: string, _amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, _amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + _amount: BigNumberish + ): Promise; underlyingAssetAddress(): Promise; }; diff --git a/types/DebtTokenBaseFactory.ts b/types/DebtTokenBaseFactory.ts index c232e4fb..28f29eb0 100644 --- a/types/DebtTokenBaseFactory.ts +++ b/types/DebtTokenBaseFactory.ts @@ -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" + } ]; diff --git a/types/DefaultReserveInterestRateStrategy.d.ts b/types/DefaultReserveInterestRateStrategy.d.ts index 746e14e8..47444997 100644 --- a/types/DefaultReserveInterestRateStrategy.d.ts +++ b/types/DefaultReserveInterestRateStrategy.d.ts @@ -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; - 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; diff --git a/types/DefaultReserveInterestRateStrategyFactory.ts b/types/DefaultReserveInterestRateStrategyFactory.ts index e021d4c4..ee1c52de 100644 --- a/types/DefaultReserveInterestRateStrategyFactory.ts +++ b/types/DefaultReserveInterestRateStrategyFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {DefaultReserveInterestRateStrategy} from './DefaultReserveInterestRateStrategy'; +import { TransactionOverrides } from "."; +import { DefaultReserveInterestRateStrategy } from "./DefaultReserveInterestRateStrategy"; export class DefaultReserveInterestRateStrategyFactory extends ContractFactory { constructor(signer?: Signer) { @@ -62,7 +62,11 @@ export class DefaultReserveInterestRateStrategyFactory extends ContractFactory { address: string, signerOrProvider: Signer | Provider ): DefaultReserveInterestRateStrategy { - return new Contract(address, _abi, signerOrProvider) as DefaultReserveInterestRateStrategy; + return new Contract( + address, + _abi, + signerOrProvider + ) as DefaultReserveInterestRateStrategy; } } @@ -70,193 +74,193 @@ const _abi = [ { inputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '_provider', - type: 'address', + internalType: "contract LendingPoolAddressesProvider", + name: "_provider", + type: "address" }, { - internalType: 'uint256', - name: '_baseVariableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "_baseVariableBorrowRate", + type: "uint256" }, { - internalType: 'uint256', - name: '_variableRateSlope1', - type: 'uint256', + internalType: "uint256", + name: "_variableRateSlope1", + type: "uint256" }, { - internalType: 'uint256', - name: '_variableRateSlope2', - type: 'uint256', + internalType: "uint256", + name: "_variableRateSlope2", + type: "uint256" }, { - internalType: 'uint256', - name: '_stableRateSlope1', - type: 'uint256', + internalType: "uint256", + name: "_stableRateSlope1", + type: "uint256" }, { - internalType: 'uint256', - name: '_stableRateSlope2', - type: 'uint256', - }, + internalType: "uint256", + name: "_stableRateSlope2", + type: "uint256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { inputs: [], - name: 'EXCESS_UTILIZATION_RATE', + name: "EXCESS_UTILIZATION_RATE", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'OPTIMAL_UTILIZATION_RATE', + name: "OPTIMAL_UTILIZATION_RATE", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'addressesProvider', + name: "addressesProvider", outputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + 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: 'uint256', - name: '_availableLiquidity', - type: 'uint256', + internalType: "uint256", + name: "_availableLiquidity", + 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: 'currentLiquidityRate', - type: 'uint256', + internalType: "uint256", + name: "currentLiquidityRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'currentStableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "currentStableBorrowRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'currentVariableBorrowRate', - type: 'uint256', - }, + internalType: "uint256", + name: "currentVariableBorrowRate", + 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" }, { inputs: [], - name: 'getStableRateSlope1', + name: "getStableRateSlope1", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getStableRateSlope2', + name: "getStableRateSlope2", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getVariableRateSlope1', + name: "getVariableRateSlope1", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getVariableRateSlope2', + name: "getVariableRateSlope2", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x61014060405234801561001157600080fd5b50604051610a77380380610a77833981810160405260c081101561003457600080fd5b5080516020820151604083015160608085015160808087015160a0978801516001600160601b03199790941b9690961690529290945260c05260e052610100526101205260805160601c60a05160c05160e05161010051610120516109866100f16000398061018852806103845250806103b5528061049c52806105aa5250806103f552806105ce525080610164528061044652806104de5250806101bb52806104255280610527525080610232528061058652506109866000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c806357e37af01161006657806357e37af0146100ca578063a15f30ac14610126578063c72c4d101461012e578063d5cd739114610152578063f42024091461015a57610093565b80630b3429a21461009857806314e32da4146100b257806317319873146100ba57806334762ca5146100c2575b600080fd5b6100a0610162565b60408051918252519081900360200190f35b6100a0610186565b6100a06101aa565b6100a06101b9565b610108600480360360a08110156100e057600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001356101dd565b60408051938452602084019290925282820152519081900360600190f35b6100a0610574565b610136610584565b604080516001600160a01b039092168252519081900360200190f35b6100a06105a8565b6100a06105cc565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b6aa56fa5b99019a5c800000081565b7f000000000000000000000000000000000000000000000000000000000000000090565b60008080806101f2878763ffffffff6105f016565b9050600081158015610202575088155b61022b576102266102198a8463ffffffff6105f016565b839063ffffffff61065316565b61022e565b60005b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633618abba6040518163ffffffff1660e01b815260040160206040518083038186803b15801561028957600080fd5b505afa15801561029d573d6000803e3d6000fd5b505050506040513d60208110156102b357600080fd5b50516040805163bb85c0bb60e01b81526001600160a01b038d811660048301529151919092169163bb85c0bb916024808301926020929190829003018186803b1580156102ff57600080fd5b505afa158015610313573d6000803e3d6000fd5b505050506040513d602081101561032957600080fd5b505193506b0295be96e64066972000000081111561047857600061037a6aa56fa5b99019a5c800000061036e846b0295be96e64066972000000063ffffffff61069716565b9063ffffffff61065316565b90506103eb6103af7f00000000000000000000000000000000000000000000000000000000000000008363ffffffff6106d916565b6103df877f000000000000000000000000000000000000000000000000000000000000000063ffffffff6105f016565b9063ffffffff6105f016565b94506104706104207f00000000000000000000000000000000000000000000000000000000000000008363ffffffff6106d916565b6103df7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000063ffffffff6105f016565b935050610555565b6104d46104c761049a836b0295be96e64066972000000063ffffffff61065316565b7f00000000000000000000000000000000000000000000000000000000000000009063ffffffff6106d916565b859063ffffffff6105f016565b93506105526105257f0000000000000000000000000000000000000000000000000000000000000000610519846b0295be96e64066972000000063ffffffff61065316565b9063ffffffff6106d916565b7f00000000000000000000000000000000000000000000000000000000000000009063ffffffff6105f016565b92505b610565816105198a8a878b610711565b94505050955095509592505050565b6b0295be96e64066972000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b60008282018381101561064a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60006002820461068f83610683610676876b033b2e3c9fd0803ce8000000610782565b849063ffffffff6105f016565b9063ffffffff6107db16565b949350505050565b600061064a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061081d565b600061064a6b033b2e3c9fd0803ce80000006106836106fe868663ffffffff61078216565b6b019d971e4fe8401e74000000906105f0565b600080610724868663ffffffff6105f016565b90508061073557600091505061068f565b600061074485610519886108b4565b90506000610755856105198a6108b4565b90506000610775610765856108b4565b61036e858563ffffffff6105f016565b9998505050505050505050565b6000826107915750600061064d565b8282028284828161079e57fe5b041461064a5760405162461bcd60e51b81526004018080602001828103825260218152602001806109306021913960400191505060405180910390fd5b600061064a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506108ca565b600081848411156108ac5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610871578181015183820152602001610859565b50505050905090810190601f16801561089e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600061064d82633b9aca0063ffffffff61078216565b600081836109195760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610871578181015183820152602001610859565b50600083858161092557fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220175aebdffa875d06b5847c42f5d0afc64ad241d294adaf7d3339b85ee7be3fe964736f6c63430006080033'; + "0x61014060405234801561001157600080fd5b50604051610a77380380610a77833981810160405260c081101561003457600080fd5b5080516020820151604083015160608085015160808087015160a0978801516001600160601b03199790941b9690961690529290945260c05260e052610100526101205260805160601c60a05160c05160e05161010051610120516109866100f16000398061018852806103845250806103b5528061049c52806105aa5250806103f552806105ce525080610164528061044652806104de5250806101bb52806104255280610527525080610232528061058652506109866000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c806357e37af01161006657806357e37af0146100ca578063a15f30ac14610126578063c72c4d101461012e578063d5cd739114610152578063f42024091461015a57610093565b80630b3429a21461009857806314e32da4146100b257806317319873146100ba57806334762ca5146100c2575b600080fd5b6100a0610162565b60408051918252519081900360200190f35b6100a0610186565b6100a06101aa565b6100a06101b9565b610108600480360360a08110156100e057600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001356101dd565b60408051938452602084019290925282820152519081900360600190f35b6100a0610574565b610136610584565b604080516001600160a01b039092168252519081900360200190f35b6100a06105a8565b6100a06105cc565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b6aa56fa5b99019a5c800000081565b7f000000000000000000000000000000000000000000000000000000000000000090565b60008080806101f2878763ffffffff6105f016565b9050600081158015610202575088155b61022b576102266102198a8463ffffffff6105f016565b839063ffffffff61065316565b61022e565b60005b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633618abba6040518163ffffffff1660e01b815260040160206040518083038186803b15801561028957600080fd5b505afa15801561029d573d6000803e3d6000fd5b505050506040513d60208110156102b357600080fd5b50516040805163bb85c0bb60e01b81526001600160a01b038d811660048301529151919092169163bb85c0bb916024808301926020929190829003018186803b1580156102ff57600080fd5b505afa158015610313573d6000803e3d6000fd5b505050506040513d602081101561032957600080fd5b505193506b0295be96e64066972000000081111561047857600061037a6aa56fa5b99019a5c800000061036e846b0295be96e64066972000000063ffffffff61069716565b9063ffffffff61065316565b90506103eb6103af7f00000000000000000000000000000000000000000000000000000000000000008363ffffffff6106d916565b6103df877f000000000000000000000000000000000000000000000000000000000000000063ffffffff6105f016565b9063ffffffff6105f016565b94506104706104207f00000000000000000000000000000000000000000000000000000000000000008363ffffffff6106d916565b6103df7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000063ffffffff6105f016565b935050610555565b6104d46104c761049a836b0295be96e64066972000000063ffffffff61065316565b7f00000000000000000000000000000000000000000000000000000000000000009063ffffffff6106d916565b859063ffffffff6105f016565b93506105526105257f0000000000000000000000000000000000000000000000000000000000000000610519846b0295be96e64066972000000063ffffffff61065316565b9063ffffffff6106d916565b7f00000000000000000000000000000000000000000000000000000000000000009063ffffffff6105f016565b92505b610565816105198a8a878b610711565b94505050955095509592505050565b6b0295be96e64066972000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b60008282018381101561064a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60006002820461068f83610683610676876b033b2e3c9fd0803ce8000000610782565b849063ffffffff6105f016565b9063ffffffff6107db16565b949350505050565b600061064a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061081d565b600061064a6b033b2e3c9fd0803ce80000006106836106fe868663ffffffff61078216565b6b019d971e4fe8401e74000000906105f0565b600080610724868663ffffffff6105f016565b90508061073557600091505061068f565b600061074485610519886108b4565b90506000610755856105198a6108b4565b90506000610775610765856108b4565b61036e858563ffffffff6105f016565b9998505050505050505050565b6000826107915750600061064d565b8282028284828161079e57fe5b041461064a5760405162461bcd60e51b81526004018080602001828103825260218152602001806109306021913960400191505060405180910390fd5b600061064a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506108ca565b600081848411156108ac5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610871578181015183820152602001610859565b50505050905090810190601f16801561089e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600061064d82633b9aca0063ffffffff61078216565b600081836109195760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610871578181015183820152602001610859565b50600083858161092557fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220175aebdffa875d06b5847c42f5d0afc64ad241d294adaf7d3339b85ee7be3fe964736f6c63430006080033"; diff --git a/types/Erc20.d.ts b/types/Erc20.d.ts index dbc778e2..921995d4 100644 --- a/types/Erc20.d.ts +++ b/types/Erc20.d.ts @@ -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; 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; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; name(): Promise; @@ -184,6 +210,10 @@ export class Erc20 extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/Erc20Burnable.d.ts b/types/Erc20Burnable.d.ts index 65b9c999..b5a370c2 100644 --- a/types/Erc20Burnable.d.ts +++ b/types/Erc20Burnable.d.ts @@ -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; - burn(amount: BigNumberish, overrides?: TransactionOverrides): Promise; + burn( + amount: BigNumberish, + overrides?: TransactionOverrides + ): Promise; burnFrom( account: string, @@ -140,7 +162,10 @@ export class Erc20Burnable extends Contract { balanceOf(account: string): Promise; - burn(amount: BigNumberish, overrides?: TransactionOverrides): Promise; + burn( + amount: BigNumberish, + overrides?: TransactionOverrides + ): Promise; burnFrom( account: string, @@ -182,7 +207,11 @@ export class Erc20Burnable extends Contract { ): Promise; 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; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; name(): Promise; @@ -212,6 +247,10 @@ export class Erc20Burnable extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/Erc20BurnableFactory.ts b/types/Erc20BurnableFactory.ts index 3b827f89..63a81044 100644 --- a/types/Erc20BurnableFactory.ts +++ b/types/Erc20BurnableFactory.ts @@ -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" + } ]; diff --git a/types/Erc20Factory.ts b/types/Erc20Factory.ts index 30e3a93f..29f251b4 100644 --- a/types/Erc20Factory.ts +++ b/types/Erc20Factory.ts @@ -1,19 +1,23 @@ /* 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 {Erc20} from './Erc20'; +import { TransactionOverrides } from "."; +import { Erc20 } from "./Erc20"; export class Erc20Factory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } - deploy(name: string, symbol: string, overrides?: TransactionOverrides): Promise { + deploy( + name: string, + symbol: string, + overrides?: TransactionOverrides + ): Promise { return super.deploy(name, symbol, overrides) as Promise; } getDeployTransaction( @@ -38,290 +42,290 @@ const _abi = [ { 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" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: [ { - 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" + } ]; const _bytecode = - '0x60806040523480156200001157600080fd5b5060405162000ca538038062000ca5833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250508251620001b491506003906020850190620001e0565b508051620001ca906004906020840190620001e0565b50506005805460ff191660121790555062000285565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200022357805160ff191683800117855562000253565b8280016001018555821562000253579182015b828111156200025357825182559160200191906001019062000236565b506200026192915062000265565b5090565b6200028291905b808211156200026157600081556001016200026c565b90565b610a1080620002956000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103ff565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610408565b6101736004803603602081101561021b57600080fd5b50356001600160a01b031661045c565b6100b6610477565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104d8565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610546565b610173600480360360408110156102a157600080fd5b506001600160a01b038135811691602001351661055a565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610585565b8484610589565b50600192915050565b60025490565b600061037f848484610675565b6103f58461038b610585565b6103f085604051806060016040528060288152602001610945602891396001600160a01b038a166000908152600160205260408120906103c9610585565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6107dc16565b610589565b5060019392505050565b60055460ff1690565b6000610363610415610585565b846103f08560016000610426610585565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61087316565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104e5610585565b846103f0856040518060600160405280602581526020016109b6602591396001600061050f610585565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6107dc16565b6000610363610553610585565b8484610675565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105ce5760405162461bcd60e51b81526004018080602001828103825260248152602001806109926024913960400191505060405180910390fd5b6001600160a01b0382166106135760405162461bcd60e51b81526004018080602001828103825260228152602001806108fd6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106ba5760405162461bcd60e51b815260040180806020018281038252602581526020018061096d6025913960400191505060405180910390fd5b6001600160a01b0382166106ff5760405162461bcd60e51b81526004018080602001828103825260238152602001806108da6023913960400191505060405180910390fd5b61070a8383836108d4565b61074d8160405180606001604052806026815260200161091f602691396001600160a01b038616600090815260208190526040902054919063ffffffff6107dc16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610782908263ffffffff61087316565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561086b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610830578181015183820152602001610818565b50505050905090810190601f16801561085d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108cd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f39522f9107b92268ffd6076ae1a1ec2e2ff6a6cffc0a9ea3ff2d793569935ea64736f6c63430006080033'; + "0x60806040523480156200001157600080fd5b5060405162000ca538038062000ca5833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250508251620001b491506003906020850190620001e0565b508051620001ca906004906020840190620001e0565b50506005805460ff191660121790555062000285565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200022357805160ff191683800117855562000253565b8280016001018555821562000253579182015b828111156200025357825182559160200191906001019062000236565b506200026192915062000265565b5090565b6200028291905b808211156200026157600081556001016200026c565b90565b610a1080620002956000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103ff565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610408565b6101736004803603602081101561021b57600080fd5b50356001600160a01b031661045c565b6100b6610477565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104d8565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610546565b610173600480360360408110156102a157600080fd5b506001600160a01b038135811691602001351661055a565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610585565b8484610589565b50600192915050565b60025490565b600061037f848484610675565b6103f58461038b610585565b6103f085604051806060016040528060288152602001610945602891396001600160a01b038a166000908152600160205260408120906103c9610585565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6107dc16565b610589565b5060019392505050565b60055460ff1690565b6000610363610415610585565b846103f08560016000610426610585565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61087316565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104e5610585565b846103f0856040518060600160405280602581526020016109b6602591396001600061050f610585565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6107dc16565b6000610363610553610585565b8484610675565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105ce5760405162461bcd60e51b81526004018080602001828103825260248152602001806109926024913960400191505060405180910390fd5b6001600160a01b0382166106135760405162461bcd60e51b81526004018080602001828103825260228152602001806108fd6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106ba5760405162461bcd60e51b815260040180806020018281038252602581526020018061096d6025913960400191505060405180910390fd5b6001600160a01b0382166106ff5760405162461bcd60e51b81526004018080602001828103825260238152602001806108da6023913960400191505060405180910390fd5b61070a8383836108d4565b61074d8160405180606001604052806026815260200161091f602691396001600160a01b038616600090815260208190526040902054919063ffffffff6107dc16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610782908263ffffffff61087316565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561086b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610830578181015183820152602001610818565b50505050905090810190601f16801561085d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108cd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122046f77458965fe0fb428ddac22bfa58278ca6e6253fa323e1c7323a9cc5a7225e64736f6c63430006080033"; diff --git a/types/Example.d.ts b/types/Example.d.ts index 25bff81e..9ac05376 100644 --- a/types/Example.d.ts +++ b/types/Example.d.ts @@ -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: {}; diff --git a/types/ExampleFactory.ts b/types/ExampleFactory.ts index 3d3a0fc8..14abe647 100644 --- a/types/ExampleFactory.ts +++ b/types/ExampleFactory.ts @@ -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"; diff --git a/types/FeeProvider.d.ts b/types/FeeProvider.d.ts index 326ebaab..d76db24a 100644 --- a/types/FeeProvider.d.ts +++ b/types/FeeProvider.d.ts @@ -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; - calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise; + calculateLoanOriginationFee( + _user: string, + _amount: BigNumberish + ): Promise; getLoanOriginationFeePercentage(): Promise; @@ -60,7 +67,10 @@ export class FeeProvider extends Contract { FEE_PROVIDER_REVISION(): Promise; - calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise; + calculateLoanOriginationFee( + _user: string, + _amount: BigNumberish + ): Promise; getLoanOriginationFeePercentage(): Promise; @@ -76,7 +86,10 @@ export class FeeProvider extends Contract { estimate: { FEE_PROVIDER_REVISION(): Promise; - calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise; + calculateLoanOriginationFee( + _user: string, + _amount: BigNumberish + ): Promise; getLoanOriginationFeePercentage(): Promise; diff --git a/types/FeeProviderFactory.ts b/types/FeeProviderFactory.ts index f326f954..3b3b7f9c 100644 --- a/types/FeeProviderFactory.ts +++ b/types/FeeProviderFactory.ts @@ -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"; diff --git a/types/FlashLoanReceiverBase.d.ts b/types/FlashLoanReceiverBase.d.ts index a78d0a56..9f40641d 100644 --- a/types/FlashLoanReceiverBase.d.ts +++ b/types/FlashLoanReceiverBase.d.ts @@ -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; diff --git a/types/FlashLoanReceiverBaseFactory.ts b/types/FlashLoanReceiverBaseFactory.ts index f6bc5166..fe65209a 100644 --- a/types/FlashLoanReceiverBaseFactory.ts +++ b/types/FlashLoanReceiverBaseFactory.ts @@ -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" + } ]; diff --git a/types/GenericLogic.d.ts b/types/GenericLogic.d.ts index 96121341..de46a763 100644 --- a/types/GenericLogic.d.ts +++ b/types/GenericLogic.d.ts @@ -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; diff --git a/types/GenericLogicFactory.ts b/types/GenericLogicFactory.ts index 21fd91cb..d20c5ba7 100644 --- a/types/GenericLogicFactory.ts +++ b/types/GenericLogicFactory.ts @@ -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 {GenericLogic} from './GenericLogic'; +import { TransactionOverrides } from "."; +import { GenericLogic } from "./GenericLogic"; export class GenericLogicFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class GenericLogicFactory extends ContractFactory { connect(signer: Signer): GenericLogicFactory { return super.connect(signer) as GenericLogicFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): GenericLogic { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): GenericLogic { return new Contract(address, _abi, signerOrProvider) as GenericLogic; } } @@ -33,47 +36,47 @@ export class GenericLogicFactory extends ContractFactory { const _abi = [ { inputs: [], - name: 'HEALTH_FACTOR_LIQUIDATION_THRESHOLD', + name: "HEALTH_FACTOR_LIQUIDATION_THRESHOLD", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'uint256', - name: 'collateralBalanceETH', - type: 'uint256', + internalType: "uint256", + name: "collateralBalanceETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'borrowBalanceETH', - type: 'uint256', + internalType: "uint256", + name: "borrowBalanceETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'ltv', - type: 'uint256', - }, + internalType: "uint256", + name: "ltv", + type: "uint256" + } ], - name: 'calculateAvailableBorrowsETH', + name: "calculateAvailableBorrowsETH", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x610e73610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c806392eeb05c1461005b578063c3525c2814610150578063d609bd1b1461016a578063daae705514610193575b600080fd5b610125600480360360a081101561007157600080fd5b6001600160a01b0382351691602081013591604082013591908101906080810160608201356401000000008111156100a857600080fd5b8201836020820111156100ba57600080fd5b803590602001918460208302840111640100000000831117156100dc57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505090356001600160a01b0316915061024c9050565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b6101586107b7565b60408051918252519081900360200190f35b6101586004803603606081101561018057600080fd5b50803590602081013590604001356107c3565b610238600480360360e08110156101a957600080fd5b6001600160a01b0382358116926020810135909116916040820135916060810135916080820135919081019060c0810160a08201356401000000008111156101f057600080fd5b82018360208201111561020257600080fd5b8035906020019184602083028401116401000000008311171561022457600080fd5b9193509150356001600160a01b031661080a565b604080519115158252519081900360200190f35b600080600080600061025c610d26565b600060e08201525b87518160e00151101561070357878160e001518151811061028157fe5b6020026020010151816101e001906001600160a01b031690816001600160a01b03168152505060008a6000836101e001516001600160a01b03166001600160a01b0316815260200190815260200160002090508060060160009054906101000a90046001600160a01b03166001600160a01b03166370a082318d6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561034157600080fd5b505afa158015610355573d6000803e3d6000fd5b505050506040513d602081101561036b57600080fd5b5051604080840191909152600782015481516370a0823160e01b81526001600160a01b038f81166004830152925192909116916370a0823191602480820192602092909190829003018186803b1580156103c457600080fd5b505afa1580156103d8573d6000803e3d6000fd5b505050506040513d60208110156103ee57600080fd5b505160608301526008810154604080516370a0823160e01b81526001600160a01b038f8116600483015291516104869392909216916370a0823191602480820192602092909190829003018186803b15801561044957600080fd5b505afa15801561045d573d6000803e3d6000fd5b505050506040513d602081101561047357600080fd5b505160608401519063ffffffff610a3a16565b6060830152604082015115801561049f57506060820151155b156104aa57506106f3565b6104b681600501610a9d565b6080860181905260c08601929092525060a0840191909152600a0a602083015260e082015189516001600160a01b038a169163b3596f07918c919081106104f957fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561054757600080fd5b505afa15801561055b573d6000803e3d6000fd5b505050506040513d602081101561057157600080fd5b505182526040820151156106a85760006105b083602001516105a485604001518660000151610ae490919063ffffffff16565b9063ffffffff610b3d16565b90508260a0015160001415801561062057508a60008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008b8560e00151815181106105f857fe5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff165b156106a65761012083015161063b908263ffffffff610a3a16565b61012084015260a083015161066d9061065b90839063ffffffff610ae416565b6101808501519063ffffffff610a3a16565b61018084015260c083015161069f9061068d90839063ffffffff610ae416565b6101a08501519063ffffffff610a3a16565b6101a08401525b505b6060820151156106f1576106ea6106d883602001516105a485606001518660000151610ae490919063ffffffff16565b6101408401519063ffffffff610a3a16565b6101408301525b505b60e0810180516001019052610264565b600081610120015111610717576000610732565b6101208101516101808201516107329163ffffffff610b3d16565b610180820152610120810151610749576000610764565b6101208101516101a08201516107649163ffffffff610b3d16565b6101a0820181905261012082015161014083015161078192610b7f565b61010082018190526101208201516101408301516101808401516101a090940151919e909d50929b509950975095505050505050565b670de0b6b3a764000081565b6000806107db60646105a4878663ffffffff610ae416565b9050838110156107ef576000915050610803565b6107ff818563ffffffff610bbc16565b9150505b9392505050565b6000610814610dc0565b6001600160a01b038a16600090815260208890526040902061083890600501610a9d565b8452505060208201819052158061087357506001600160a01b03808a16600090815260208881526040808320938e168352929052205460ff16155b15610882576001915050610a2e565b6108c38988888888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508a925061024c915050565b506080850152506060830181905260408301919091526108e7576001915050610a2e565b6109848160000151600a0a6105a48a866001600160a01b031663b3596f078f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561094c57600080fd5b505afa158015610960573d6000803e3d6000fd5b505050506040513d602081101561097657600080fd5b50519063ffffffff610ae416565b60c08201819052604082015161099f9163ffffffff610bbc16565b60e082018190526109b4576000915050610a2e565b6109ff8160e001516105a46109da8460a001518560c00151610ae490919063ffffffff16565b608085015160408601516109f39163ffffffff610ae416565b9063ffffffff610bbc16565b610100820181905260e08201516060830151600092610a1f929190610b7f565b670de0b6b3a764000010925050505b98975050505050505050565b600082820183811015610a94576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b54670fffffffffff000019811691601082901c650fffffff0001600160f01b031691602081901c630fff0001600160e01b03169160309190911c610100600160d01b031690565b600082610af357506000610a97565b82820282848281610b0057fe5b0414610a945760405162461bcd60e51b8152600401808060200182810382526021815260200180610e1d6021913960400191505060405180910390fd5b6000610a9483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610bfe565b600082610b8f5750600019610803565b610bb483610ba860646105a4888763ffffffff610ae416565b9063ffffffff610ca016565b949350505050565b6000610a9483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ccc565b60008183610c8a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c4f578181015183820152602001610c37565b50505050905090810190601f168015610c7c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610c9657fe5b0495945050505050565b600060028204610bb4836105a4610cbf87670de0b6b3a7640000610ae4565b849063ffffffff610a3a16565b60008184841115610d1e5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c4f578181015183820152602001610c37565b505050900390565b604051806102400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681526020016000151581526020016000151581525090565b60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152509056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220535cd5b101da8302ea4516afb93a66cc4779e89449c80fe7c619246fd3b1002664736f6c63430006080033'; + "0x610e94610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c806392eeb05c1461005b578063c3525c2814610150578063d609bd1b1461016a578063daae705514610193575b600080fd5b610125600480360360a081101561007157600080fd5b6001600160a01b0382351691602081013591604082013591908101906080810160608201356401000000008111156100a857600080fd5b8201836020820111156100ba57600080fd5b803590602001918460208302840111640100000000831117156100dc57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505090356001600160a01b0316915061024c9050565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b6101586107b7565b60408051918252519081900360200190f35b6101586004803603606081101561018057600080fd5b50803590602081013590604001356107c3565b610238600480360360e08110156101a957600080fd5b6001600160a01b0382358116926020810135909116916040820135916060810135916080820135919081019060c0810160a08201356401000000008111156101f057600080fd5b82018360208201111561020257600080fd5b8035906020019184602083028401116401000000008311171561022457600080fd5b9193509150356001600160a01b0316610805565b604080519115158252519081900360200190f35b600080600080600061025c610d40565b600060e08201525b87518160e00151101561070357878160e001518151811061028157fe5b60200260200101518161020001906001600160a01b031690816001600160a01b03168152505060008a60008361020001516001600160a01b03166001600160a01b0316815260200190815260200160002090508060060160009054906101000a90046001600160a01b03166001600160a01b03166370a082318d6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561034157600080fd5b505afa158015610355573d6000803e3d6000fd5b505050506040513d602081101561036b57600080fd5b5051604080840191909152600782015481516370a0823160e01b81526001600160a01b038f81166004830152925192909116916370a0823191602480820192602092909190829003018186803b1580156103c457600080fd5b505afa1580156103d8573d6000803e3d6000fd5b505050506040513d60208110156103ee57600080fd5b505160608301526008810154604080516370a0823160e01b81526001600160a01b038f8116600483015291516104869392909216916370a0823191602480820192602092909190829003018186803b15801561044957600080fd5b505afa15801561045d573d6000803e3d6000fd5b505050506040513d602081101561047357600080fd5b505160608401519063ffffffff610a3516565b6060830152604082015115801561049f57506060820151155b156104aa57506106f3565b6104b681600501610a98565b6080860181905260c08601929092525060a0840191909152600a0a602083015260e082015189516001600160a01b038a169163b3596f07918c919081106104f957fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561054757600080fd5b505afa15801561055b573d6000803e3d6000fd5b505050506040513d602081101561057157600080fd5b505182526040820151156106a85760006105b083602001516105a485604001518660000151610adf90919063ffffffff16565b9063ffffffff610b3816565b90508260a0015160001415801561062057508a60008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008b8560e00151815181106105f857fe5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff165b156106a65761012083015161063b908263ffffffff610a3516565b61012084015260a083015161066d9061065b90839063ffffffff610adf16565b6101808501519063ffffffff610a3516565b61018084015260c083015161069f9061068d90839063ffffffff610adf16565b6101a08501519063ffffffff610a3516565b6101a08401525b505b6060820151156106f1576106ea6106d883602001516105a485606001518660000151610adf90919063ffffffff16565b6101408401519063ffffffff610a3516565b6101408301525b505b60e0810180516001019052610264565b600081610120015111610717576000610732565b6101208101516101808201516107329163ffffffff610b3816565b610180820152610120810151610749576000610764565b6101208101516101a08201516107649163ffffffff610b3816565b6101a0820181905261012082015161014083015161078192610b7a565b61010082018190526101208201516101408301516101808401516101a090940151919e909d50929b509950975095505050505050565b670de0b6b3a764000081565b6000806107d6858463ffffffff610bb216565b9050838110156107ea5760009150506107fe565b6107fa818563ffffffff610bd616565b9150505b9392505050565b600061080f610de1565b6001600160a01b038a16600090815260208890526040902061083390600501610a98565b8452505060208201819052158061086e57506001600160a01b03808a16600090815260208881526040808320938e168352929052205460ff16155b1561087d576001915050610a29565b6108be8988888888808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508a925061024c915050565b506080850152506060830181905260408301919091526108e2576001915050610a29565b61097f8160000151600a0a6105a48a866001600160a01b031663b3596f078f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561094757600080fd5b505afa15801561095b573d6000803e3d6000fd5b505050506040513d602081101561097157600080fd5b50519063ffffffff610adf16565b60c08201819052604082015161099a9163ffffffff610bd616565b60e082018190526109af576000915050610a29565b6109fa8160e001516105a46109d58460a001518560c00151610adf90919063ffffffff16565b608085015160408601516109ee9163ffffffff610adf16565b9063ffffffff610bd616565b610100820181905260e08201516060830151600092610a1a929190610b7a565b670de0b6b3a764000010925050505b98975050505050505050565b600082820183811015610a8f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b54670fffffffffff000019811691601082901c650fffffff0001600160f01b031691602081901c630fff0001600160e01b03169160309190911c610f01600160d01b031690565b600082610aee57506000610a92565b82820282848281610afb57fe5b0414610a8f5760405162461bcd60e51b8152600401808060200182810382526021815260200180610e3e6021913960400191505060405180910390fd5b6000610a8f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610c18565b600082610b8a57506000196107fe565b610baa83610b9e868563ffffffff610bb216565b9063ffffffff610cba16565b949350505050565b6000610a8f6127106105a4610bcd868663ffffffff610adf16565b61138890610a35565b6000610a8f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ce6565b60008183610ca45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c69578181015183820152602001610c51565b50505050905090810190601f168015610c965780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610cb057fe5b0495945050505050565b600060028204610baa836105a4610cd987670de0b6b3a7640000610adf565b849063ffffffff610a3516565b60008184841115610d385760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c69578181015183820152602001610c51565b505050900390565b60405180610260016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681526020016000151581526020016000151581525090565b60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152509056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122081191d9499c232caefcd8b7ee9722ed83db470a143f1b0267c75f0cf36151e0064736f6c63430006080033"; diff --git a/types/GenericOracleI.d.ts b/types/GenericOracleI.d.ts index e11acc78..bad14d31 100644 --- a/types/GenericOracleI.d.ts +++ b/types/GenericOracleI.d.ts @@ -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; diff --git a/types/GenericOracleIFactory.ts b/types/GenericOracleIFactory.ts index eed3b2cc..2821eb01 100644 --- a/types/GenericOracleIFactory.ts +++ b/types/GenericOracleIFactory.ts @@ -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" + } ]; diff --git a/types/IChainlinkAggregator.d.ts b/types/IChainlinkAggregator.d.ts index 44fa2c79..0297b369 100644 --- a/types/IChainlinkAggregator.d.ts +++ b/types/IChainlinkAggregator.d.ts @@ -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: { diff --git a/types/IChainlinkAggregatorFactory.ts b/types/IChainlinkAggregatorFactory.ts index d9e26bc8..d4ae5fc1 100644 --- a/types/IChainlinkAggregatorFactory.ts +++ b/types/IChainlinkAggregatorFactory.ts @@ -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" + } ]; diff --git a/types/IExchangeAdapter.d.ts b/types/IExchangeAdapter.d.ts index 3de5be75..d6c8bcfb 100644 --- a/types/IExchangeAdapter.d.ts +++ b/types/IExchangeAdapter.d.ts @@ -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; diff --git a/types/IExchangeAdapterFactory.ts b/types/IExchangeAdapterFactory.ts index 987d1cb4..3e4d6c85 100644 --- a/types/IExchangeAdapterFactory.ts +++ b/types/IExchangeAdapterFactory.ts @@ -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" + } ]; diff --git a/types/IExtendedPriceAggregator.d.ts b/types/IExtendedPriceAggregator.d.ts index 6f2db82f..68184651 100644 --- a/types/IExtendedPriceAggregator.d.ts +++ b/types/IExtendedPriceAggregator.d.ts @@ -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; 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; diff --git a/types/IExtendedPriceAggregatorFactory.ts b/types/IExtendedPriceAggregatorFactory.ts index 2aace7ea..46f3ca12 100644 --- a/types/IExtendedPriceAggregatorFactory.ts +++ b/types/IExtendedPriceAggregatorFactory.ts @@ -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" + } ]; diff --git a/types/IFeeProvider.d.ts b/types/IFeeProvider.d.ts index 6e203492..793e8c57 100644 --- a/types/IFeeProvider.d.ts +++ b/types/IFeeProvider.d.ts @@ -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; + calculateLoanOriginationFee( + _user: string, + _amount: BigNumberish + ): Promise; getLoanOriginationFeePercentage(): Promise; }; - calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise; + calculateLoanOriginationFee( + _user: string, + _amount: BigNumberish + ): Promise; getLoanOriginationFeePercentage(): Promise; filters: {}; estimate: { - calculateLoanOriginationFee(_user: string, _amount: BigNumberish): Promise; + calculateLoanOriginationFee( + _user: string, + _amount: BigNumberish + ): Promise; getLoanOriginationFeePercentage(): Promise; }; diff --git a/types/IFeeProviderFactory.ts b/types/IFeeProviderFactory.ts index 7165c6c4..18cdfcc4 100644 --- a/types/IFeeProviderFactory.ts +++ b/types/IFeeProviderFactory.ts @@ -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" + } ]; diff --git a/types/IFlashLoanReceiver.d.ts b/types/IFlashLoanReceiver.d.ts index 79ee702a..8c34b2ea 100644 --- a/types/IFlashLoanReceiver.d.ts +++ b/types/IFlashLoanReceiver.d.ts @@ -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; diff --git a/types/IFlashLoanReceiverFactory.ts b/types/IFlashLoanReceiverFactory.ts index 1f97bdfc..323d84c2 100644 --- a/types/IFlashLoanReceiverFactory.ts +++ b/types/IFlashLoanReceiverFactory.ts @@ -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" + } ]; diff --git a/types/IKyberNetworkProxyInterface.d.ts b/types/IKyberNetworkProxyInterface.d.ts index c6903cf8..e149d2c1 100644 --- a/types/IKyberNetworkProxyInterface.d.ts +++ b/types/IKyberNetworkProxyInterface.d.ts @@ -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; - 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; - getExpectedRate(src: string, dest: string, srcQty: BigNumberish): Promise; + getExpectedRate( + src: string, + dest: string, + srcQty: BigNumberish + ): Promise; getUserCapInTokenWei(user: string, token: string): Promise; diff --git a/types/IKyberNetworkProxyInterfaceFactory.ts b/types/IKyberNetworkProxyInterfaceFactory.ts index 16a02d47..22d8d676 100644 --- a/types/IKyberNetworkProxyInterfaceFactory.ts +++ b/types/IKyberNetworkProxyInterfaceFactory.ts @@ -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" + } ]; diff --git a/types/ILendingPoolAddressesProvider.d.ts b/types/ILendingPoolAddressesProvider.d.ts index 6b4333db..e47ed7c7 100644 --- a/types/ILendingPoolAddressesProvider.d.ts +++ b/types/ILendingPoolAddressesProvider.d.ts @@ -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; - 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; - setLendingPoolImpl(_pool: string, overrides?: TransactionOverrides): Promise; + setLendingPoolImpl( + _pool: string, + overrides?: TransactionOverrides + ): Promise; setLendingPoolLiquidationManager( _manager: string, diff --git a/types/ILendingPoolAddressesProviderFactory.ts b/types/ILendingPoolAddressesProviderFactory.ts index 0545b2fe..81cfa103 100644 --- a/types/ILendingPoolAddressesProviderFactory.ts +++ b/types/ILendingPoolAddressesProviderFactory.ts @@ -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" + } ]; diff --git a/types/ILendingPoolAddressesProviderRegistry.d.ts b/types/ILendingPoolAddressesProviderRegistry.d.ts index 6d298fe5..e6733539 100644 --- a/types/ILendingPoolAddressesProviderRegistry.d.ts +++ b/types/ILendingPoolAddressesProviderRegistry.d.ts @@ -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; - 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; - registerAddressesProvider(_provider: string, _id: BigNumberish): Promise; + registerAddressesProvider( + _provider: string, + _id: BigNumberish + ): Promise; unregisterAddressesProvider(_provider: string): Promise; }; diff --git a/types/ILendingPoolAddressesProviderRegistryFactory.ts b/types/ILendingPoolAddressesProviderRegistryFactory.ts index 7fc1e874..b34efbb1 100644 --- a/types/ILendingPoolAddressesProviderRegistryFactory.ts +++ b/types/ILendingPoolAddressesProviderRegistryFactory.ts @@ -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" + } ]; diff --git a/types/ILendingRateOracle.d.ts b/types/ILendingRateOracle.d.ts index 06abbde8..8da18663 100644 --- a/types/ILendingRateOracle.d.ts +++ b/types/ILendingRateOracle.d.ts @@ -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; - setMarketBorrowRate(_asset: string, _rate: BigNumberish): Promise; + setMarketBorrowRate( + _asset: string, + _rate: BigNumberish + ): Promise; }; } diff --git a/types/ILendingRateOracleFactory.ts b/types/ILendingRateOracleFactory.ts index 573f28bd..06b93c3c 100644 --- a/types/ILendingRateOracleFactory.ts +++ b/types/ILendingRateOracleFactory.ts @@ -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" + } ]; diff --git a/types/IOneSplit.d.ts b/types/IOneSplit.d.ts index d9431255..093474e3 100644 --- a/types/IOneSplit.d.ts +++ b/types/IOneSplit.d.ts @@ -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, diff --git a/types/IOneSplitFactory.ts b/types/IOneSplitFactory.ts index 09218265..a8083faa 100644 --- a/types/IOneSplitFactory.ts +++ b/types/IOneSplitFactory.ts @@ -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" + } ]; diff --git a/types/IOneSplitView.d.ts b/types/IOneSplitView.d.ts index 6e1dafc8..5c76003d 100644 --- a/types/IOneSplitView.d.ts +++ b/types/IOneSplitView.d.ts @@ -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; diff --git a/types/IOneSplitViewFactory.ts b/types/IOneSplitViewFactory.ts index 0811a03c..addc32ce 100644 --- a/types/IOneSplitViewFactory.ts +++ b/types/IOneSplitViewFactory.ts @@ -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" + } ]; diff --git a/types/IPriceOracle.d.ts b/types/IPriceOracle.d.ts index 9bfd9d71..cb361743 100644 --- a/types/IPriceOracle.d.ts +++ b/types/IPriceOracle.d.ts @@ -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; diff --git a/types/IPriceOracleFactory.ts b/types/IPriceOracleFactory.ts index a25d83f0..ae7832b4 100644 --- a/types/IPriceOracleFactory.ts +++ b/types/IPriceOracleFactory.ts @@ -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" + } ]; diff --git a/types/IPriceOracleGetter.d.ts b/types/IPriceOracleGetter.d.ts index 40fa833b..25623017 100644 --- a/types/IPriceOracleGetter.d.ts +++ b/types/IPriceOracleGetter.d.ts @@ -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; diff --git a/types/IPriceOracleGetterFactory.ts b/types/IPriceOracleGetterFactory.ts index 8b1b5ed6..30db45b7 100644 --- a/types/IPriceOracleGetterFactory.ts +++ b/types/IPriceOracleGetterFactory.ts @@ -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" + } ]; diff --git a/types/IReserveInterestRateStrategy.d.ts b/types/IReserveInterestRateStrategy.d.ts index 10fb0898..7e7fd2d7 100644 --- a/types/IReserveInterestRateStrategy.d.ts +++ b/types/IReserveInterestRateStrategy.d.ts @@ -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; - 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; diff --git a/types/IReserveInterestRateStrategyFactory.ts b/types/IReserveInterestRateStrategyFactory.ts index a837f547..2c49a55f 100644 --- a/types/IReserveInterestRateStrategyFactory.ts +++ b/types/IReserveInterestRateStrategyFactory.ts @@ -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" + } ]; diff --git a/types/IStableDebtToken.d.ts b/types/IStableDebtToken.d.ts index c2f30d8e..c3ed9db0 100644 --- a/types/IStableDebtToken.d.ts +++ b/types/IStableDebtToken.d.ts @@ -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; - mint(_user: string, _amount: BigNumberish, _rate: BigNumberish): Promise; + mint( + _user: string, + _amount: BigNumberish, + _rate: BigNumberish + ): Promise; }; } diff --git a/types/IStableDebtTokenFactory.ts b/types/IStableDebtTokenFactory.ts index aa862cdf..ca66ebe4 100644 --- a/types/IStableDebtTokenFactory.ts +++ b/types/IStableDebtTokenFactory.ts @@ -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" + } ]; diff --git a/types/IUniswapExchange.d.ts b/types/IUniswapExchange.d.ts index f65bd0ae..7ab54488 100644 --- a/types/IUniswapExchange.d.ts +++ b/types/IUniswapExchange.d.ts @@ -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; diff --git a/types/IUniswapExchangeFactory.ts b/types/IUniswapExchangeFactory.ts index 8d56711b..f3fa4186 100644 --- a/types/IUniswapExchangeFactory.ts +++ b/types/IUniswapExchangeFactory.ts @@ -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" + } ]; diff --git a/types/IVariableDebtToken.d.ts b/types/IVariableDebtToken.d.ts index e843cc6d..8b5496de 100644 --- a/types/IVariableDebtToken.d.ts +++ b/types/IVariableDebtToken.d.ts @@ -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; diff --git a/types/IVariableDebtTokenFactory.ts b/types/IVariableDebtTokenFactory.ts index 47652633..294509fb 100644 --- a/types/IVariableDebtTokenFactory.ts +++ b/types/IVariableDebtTokenFactory.ts @@ -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" + } ]; diff --git a/types/Ierc20.d.ts b/types/Ierc20.d.ts index d2c29aa3..23639535 100644 --- a/types/Ierc20.d.ts +++ b/types/Ierc20.d.ts @@ -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; 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; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/Ierc20Detailed.d.ts b/types/Ierc20Detailed.d.ts index acceaebf..b9eead33 100644 --- a/types/Ierc20Detailed.d.ts +++ b/types/Ierc20Detailed.d.ts @@ -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; 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; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/Ierc20DetailedBytes.d.ts b/types/Ierc20DetailedBytes.d.ts index 34137350..ddb51ebc 100644 --- a/types/Ierc20DetailedBytes.d.ts +++ b/types/Ierc20DetailedBytes.d.ts @@ -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; diff --git a/types/Ierc20DetailedBytesFactory.ts b/types/Ierc20DetailedBytesFactory.ts index 4af28fdc..671f3f4b 100644 --- a/types/Ierc20DetailedBytesFactory.ts +++ b/types/Ierc20DetailedBytesFactory.ts @@ -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"; diff --git a/types/Ierc20DetailedFactory.ts b/types/Ierc20DetailedFactory.ts index cb958c33..63f7abef 100644 --- a/types/Ierc20DetailedFactory.ts +++ b/types/Ierc20DetailedFactory.ts @@ -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" + } ]; diff --git a/types/Ierc20Factory.ts b/types/Ierc20Factory.ts index 0c132f56..7462a780 100644 --- a/types/Ierc20Factory.ts +++ b/types/Ierc20Factory.ts @@ -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" + } ]; diff --git a/types/InitializableAdminUpgradeabilityProxy.d.ts b/types/InitializableAdminUpgradeabilityProxy.d.ts index 5ab23650..d5d790bd 100644 --- a/types/InitializableAdminUpgradeabilityProxy.d.ts +++ b/types/InitializableAdminUpgradeabilityProxy.d.ts @@ -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; - 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; - changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise; + changeAdmin( + newAdmin: string, + overrides?: TransactionOverrides + ): Promise; - implementation(overrides?: TransactionOverrides): Promise; + implementation( + overrides?: TransactionOverrides + ): Promise; - 'initialize(address,address,bytes)'( + "initialize(address,address,bytes)"( _logic: string, _admin: string, _data: Arrayish, overrides?: TransactionOverrides ): Promise; - '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; - changeAdmin(newAdmin: string, overrides?: TransactionOverrides): Promise; + changeAdmin( + newAdmin: string, + overrides?: TransactionOverrides + ): Promise; - implementation(overrides?: TransactionOverrides): Promise; + implementation( + overrides?: TransactionOverrides + ): Promise; - 'initialize(address,address,bytes)'( + "initialize(address,address,bytes)"( _logic: string, _admin: string, _data: Arrayish, overrides?: TransactionOverrides ): Promise; - 'initialize(address,bytes)'( + "initialize(address,bytes)"( _logic: string, _data: Arrayish, overrides?: TransactionOverrides @@ -131,10 +158,17 @@ export class InitializableAdminUpgradeabilityProxy extends Contract { implementation(): Promise; - initialize(_logic: string, _admin: string, _data: Arrayish): Promise; + initialize( + _logic: string, + _admin: string, + _data: Arrayish + ): Promise; upgradeTo(newImplementation: string): Promise; - upgradeToAndCall(newImplementation: string, data: Arrayish): Promise; + upgradeToAndCall( + newImplementation: string, + data: Arrayish + ): Promise; }; } diff --git a/types/InitializableAdminUpgradeabilityProxyFactory.ts b/types/InitializableAdminUpgradeabilityProxyFactory.ts index 5f8e8171..0703e4b7 100644 --- a/types/InitializableAdminUpgradeabilityProxyFactory.ts +++ b/types/InitializableAdminUpgradeabilityProxyFactory.ts @@ -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 {InitializableAdminUpgradeabilityProxy} from './InitializableAdminUpgradeabilityProxy'; +import { TransactionOverrides } from "."; +import { InitializableAdminUpgradeabilityProxy } from "./InitializableAdminUpgradeabilityProxy"; export class InitializableAdminUpgradeabilityProxyFactory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } - deploy(overrides?: TransactionOverrides): Promise { - return super.deploy(overrides) as Promise; + deploy( + overrides?: TransactionOverrides + ): Promise { + return super.deploy(overrides) as Promise< + InitializableAdminUpgradeabilityProxy + >; } getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction { return super.getDeployTransaction(overrides); @@ -23,13 +27,19 @@ export class InitializableAdminUpgradeabilityProxyFactory extends ContractFactor return super.attach(address) as InitializableAdminUpgradeabilityProxy; } connect(signer: Signer): InitializableAdminUpgradeabilityProxyFactory { - return super.connect(signer) as InitializableAdminUpgradeabilityProxyFactory; + return super.connect( + signer + ) as InitializableAdminUpgradeabilityProxyFactory; } static connect( address: string, signerOrProvider: Signer | Provider ): InitializableAdminUpgradeabilityProxy { - return new Contract(address, _abi, signerOrProvider) as InitializableAdminUpgradeabilityProxy; + return new Contract( + address, + _abi, + signerOrProvider + ) as InitializableAdminUpgradeabilityProxy; } } @@ -39,149 +49,149 @@ 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: '_logic', - type: 'address', + internalType: "address", + name: "_logic", + type: "address" }, { - internalType: 'address', - name: '_admin', - type: 'address', + internalType: "address", + name: "_admin", + 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" }, { 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" }, { 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 = - '0x608060405234801561001057600080fd5b506109bb806100206000396000f3fe6080604052600436106100705760003560e01c80638f2839701161004e5780638f2839701461015e578063cf7a1d7714610191578063d1f5789414610250578063f851a4401461030657610070565b80633659cfe61461007a5780634f1ef286146100ad5780635c60da1b1461012d575b61007861031b565b005b34801561008657600080fd5b506100786004803603602081101561009d57600080fd5b50356001600160a01b0316610335565b610078600480360360408110156100c357600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100ee57600080fd5b82018360208201111561010057600080fd5b8035906020019184600183028401116401000000008311171561012257600080fd5b50909250905061036f565b34801561013957600080fd5b5061014261041c565b604080516001600160a01b039092168252519081900360200190f35b34801561016a57600080fd5b506100786004803603602081101561018157600080fd5b50356001600160a01b0316610459565b610078600480360360608110156101a757600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156101db57600080fd5b8201836020820111156101ed57600080fd5b8035906020019184600183028401116401000000008311171561020f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610513945050505050565b6100786004803603604081101561026657600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561029157600080fd5b8201836020820111156102a357600080fd5b803590602001918460018302840111640100000000831117156102c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610599945050505050565b34801561031257600080fd5b506101426106d9565b610323610704565b61033361032e61070c565b610731565b565b61033d610755565b6001600160a01b0316336001600160a01b031614156103645761035f8161077a565b61036c565b61036c61031b565b50565b610377610755565b6001600160a01b0316336001600160a01b0316141561040f576103998361077a565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d80600081146103f6576040519150601f19603f3d011682016040523d82523d6000602084013e6103fb565b606091505b505090508061040957600080fd5b50610417565b61041761031b565b505050565b6000610426610755565b6001600160a01b0316336001600160a01b0316141561044e5761044761070c565b9050610456565b61045661031b565b90565b610461610755565b6001600160a01b0316336001600160a01b03161415610364576001600160a01b0381166104bf5760405162461bcd60e51b81526004018080602001828103825260368152602001806109156036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104e8610755565b604080516001600160a01b03928316815291841660208301528051918290030190a161035f816107ba565b600061051d61070c565b6001600160a01b03161461053057600080fd5b61053a8382610599565b604080517232b4b8189c9b1b97383937bc3c9730b236b4b760691b815290519081900360130190207fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61036000199091011461059057fe5b610417826107ba565b60006105a361070c565b6001600160a01b0316146105b657600080fd5b604080517f656970313936372e70726f78792e696d706c656d656e746174696f6e000000008152905190819003601c0190207f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6000199091011461061657fe5b61061f826107de565b8051156106d5576000826001600160a01b0316826040518082805190602001908083835b602083106106625780518252601f199092019160209182019101610643565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146106c2576040519150601f19603f3d011682016040523d82523d6000602084013e6106c7565b606091505b505090508061041757600080fd5b5050565b60006106e3610755565b6001600160a01b0316336001600160a01b0316141561044e57610447610755565b610333610846565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610750573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b610783816107de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6107e7816108a6565b6108225760405162461bcd60e51b815260040180806020018281038252603b81526020018061094b603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b61084e610755565b6001600160a01b0316336001600160a01b0316141561089e5760405162461bcd60e51b81526004018080602001828103825260328152602001806108e36032913960400191505060405180910390fd5b610333610333565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906108da57508115155b94935050505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a26469706673582212205332daad1efa09e03cc1b95b9d51cadb3cf32e2d57907a628c0b4a5a20d8051f64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506109bb806100206000396000f3fe6080604052600436106100705760003560e01c80638f2839701161004e5780638f2839701461015e578063cf7a1d7714610191578063d1f5789414610250578063f851a4401461030657610070565b80633659cfe61461007a5780634f1ef286146100ad5780635c60da1b1461012d575b61007861031b565b005b34801561008657600080fd5b506100786004803603602081101561009d57600080fd5b50356001600160a01b0316610335565b610078600480360360408110156100c357600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100ee57600080fd5b82018360208201111561010057600080fd5b8035906020019184600183028401116401000000008311171561012257600080fd5b50909250905061036f565b34801561013957600080fd5b5061014261041c565b604080516001600160a01b039092168252519081900360200190f35b34801561016a57600080fd5b506100786004803603602081101561018157600080fd5b50356001600160a01b0316610459565b610078600480360360608110156101a757600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156101db57600080fd5b8201836020820111156101ed57600080fd5b8035906020019184600183028401116401000000008311171561020f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610513945050505050565b6100786004803603604081101561026657600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561029157600080fd5b8201836020820111156102a357600080fd5b803590602001918460018302840111640100000000831117156102c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610599945050505050565b34801561031257600080fd5b506101426106d9565b610323610704565b61033361032e61070c565b610731565b565b61033d610755565b6001600160a01b0316336001600160a01b031614156103645761035f8161077a565b61036c565b61036c61031b565b50565b610377610755565b6001600160a01b0316336001600160a01b0316141561040f576103998361077a565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d80600081146103f6576040519150601f19603f3d011682016040523d82523d6000602084013e6103fb565b606091505b505090508061040957600080fd5b50610417565b61041761031b565b505050565b6000610426610755565b6001600160a01b0316336001600160a01b0316141561044e5761044761070c565b9050610456565b61045661031b565b90565b610461610755565b6001600160a01b0316336001600160a01b03161415610364576001600160a01b0381166104bf5760405162461bcd60e51b81526004018080602001828103825260368152602001806109156036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104e8610755565b604080516001600160a01b03928316815291841660208301528051918290030190a161035f816107ba565b600061051d61070c565b6001600160a01b03161461053057600080fd5b61053a8382610599565b604080517232b4b8189c9b1b97383937bc3c9730b236b4b760691b815290519081900360130190207fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61036000199091011461059057fe5b610417826107ba565b60006105a361070c565b6001600160a01b0316146105b657600080fd5b604080517f656970313936372e70726f78792e696d706c656d656e746174696f6e000000008152905190819003601c0190207f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6000199091011461061657fe5b61061f826107de565b8051156106d5576000826001600160a01b0316826040518082805190602001908083835b602083106106625780518252601f199092019160209182019101610643565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146106c2576040519150601f19603f3d011682016040523d82523d6000602084013e6106c7565b606091505b505090508061041757600080fd5b5050565b60006106e3610755565b6001600160a01b0316336001600160a01b0316141561044e57610447610755565b610333610846565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610750573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b610783816107de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6107e7816108a6565b6108225760405162461bcd60e51b815260040180806020018281038252603b81526020018061094b603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b61084e610755565b6001600160a01b0316336001600160a01b0316141561089e5760405162461bcd60e51b81526004018080602001828103825260328152602001806108e36032913960400191505060405180910390fd5b610333610333565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906108da57508115155b94935050505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a26469706673582212205332daad1efa09e03cc1b95b9d51cadb3cf32e2d57907a628c0b4a5a20d8051f64736f6c63430006080033"; diff --git a/types/InitializableUpgradeabilityProxy.d.ts b/types/InitializableUpgradeabilityProxy.d.ts index ccfe2f84..1c9e116a 100644 --- a/types/InitializableUpgradeabilityProxy.d.ts +++ b/types/InitializableUpgradeabilityProxy.d.ts @@ -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; - 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; diff --git a/types/InitializableUpgradeabilityProxyFactory.ts b/types/InitializableUpgradeabilityProxyFactory.ts index 7de6d1f3..16d90f9d 100644 --- a/types/InitializableUpgradeabilityProxyFactory.ts +++ b/types/InitializableUpgradeabilityProxyFactory.ts @@ -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 { + deploy( + overrides?: TransactionOverrides + ): Promise { return super.deploy(overrides) as Promise; } 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"; diff --git a/types/LendingPool.d.ts b/types/LendingPool.d.ts index 3410f64e..866851a0 100644 --- a/types/LendingPool.d.ts +++ b/types/LendingPool.d.ts @@ -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; - 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; - balanceDecreaseAllowed(_reserve: string, _user: string, _amount: BigNumberish): Promise; + balanceDecreaseAllowed( + _reserve: string, + _user: string, + _amount: BigNumberish + ): Promise; borrow( _reserve: string, @@ -511,7 +552,9 @@ export class LendingPool extends Contract { overrides?: TransactionOverrides ): Promise; - 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; - rebalanceStableBorrowRate(_reserve: string, _user: string): Promise; + rebalanceStableBorrowRate( + _reserve: string, + _user: string + ): Promise; redeemUnderlying( _reserve: string, @@ -858,15 +914,24 @@ export class LendingPool extends Contract { reservesList(arg0: BigNumberish): Promise; - setConfiguration(_reserve: string, _configuration: BigNumberish): Promise; + setConfiguration( + _reserve: string, + _configuration: BigNumberish + ): Promise; setReserveInterestRateStrategyAddress( _reserve: string, _rateStrategyAddress: string ): Promise; - setUserUseReserveAsCollateral(_reserve: string, _useAsCollateral: boolean): Promise; + setUserUseReserveAsCollateral( + _reserve: string, + _useAsCollateral: boolean + ): Promise; - swapBorrowRateMode(_reserve: string, _rateMode: BigNumberish): Promise; + swapBorrowRateMode( + _reserve: string, + _rateMode: BigNumberish + ): Promise; }; } diff --git a/types/LendingPoolAddressesProvider.d.ts b/types/LendingPoolAddressesProvider.d.ts index 7a9a2ea0..3ba12051 100644 --- a/types/LendingPoolAddressesProvider.d.ts +++ b/types/LendingPoolAddressesProvider.d.ts @@ -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; - 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; - renounceOwnership(overrides?: TransactionOverrides): Promise; + renounceOwnership( + overrides?: TransactionOverrides + ): Promise; setFeeProviderImpl( _feeProvider: string, @@ -222,7 +247,9 @@ export class LendingPoolAddressesProvider extends Contract { owner(): Promise; - renounceOwnership(overrides?: TransactionOverrides): Promise; + renounceOwnership( + overrides?: TransactionOverrides + ): Promise; setFeeProviderImpl( _feeProvider: string, @@ -234,7 +261,10 @@ export class LendingPoolAddressesProvider extends Contract { overrides?: TransactionOverrides ): Promise; - setLendingPoolImpl(_pool: string, overrides?: TransactionOverrides): Promise; + setLendingPoolImpl( + _pool: string, + overrides?: TransactionOverrides + ): Promise; 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; diff --git a/types/LendingPoolAddressesProviderFactory.ts b/types/LendingPoolAddressesProviderFactory.ts index 67ea7a35..b0b91f19 100644 --- a/types/LendingPoolAddressesProviderFactory.ts +++ b/types/LendingPoolAddressesProviderFactory.ts @@ -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 {LendingPoolAddressesProvider} from './LendingPoolAddressesProvider'; +import { TransactionOverrides } from "."; +import { LendingPoolAddressesProvider } from "./LendingPoolAddressesProvider"; export class LendingPoolAddressesProviderFactory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } - deploy(overrides?: TransactionOverrides): Promise { + deploy( + overrides?: TransactionOverrides + ): Promise { return super.deploy(overrides) as Promise; } getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction { @@ -29,7 +31,11 @@ export class LendingPoolAddressesProviderFactory extends ContractFactory { address: string, signerOrProvider: Signer | Provider ): LendingPoolAddressesProvider { - return new Contract(address, _abi, signerOrProvider) as LendingPoolAddressesProvider; + return new Contract( + address, + _abi, + signerOrProvider + ) as LendingPoolAddressesProvider; } } @@ -39,417 +45,417 @@ const _abi = [ inputs: [ { indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, + internalType: "address", + name: "newAddress", + type: "address" + } ], - name: 'EthereumAddressUpdated', - type: 'event', + name: "EthereumAddressUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, + internalType: "address", + name: "newAddress", + type: "address" + } ], - name: 'FeeProviderUpdated', - type: 'event', + name: "FeeProviderUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, + internalType: "address", + name: "newAddress", + type: "address" + } ], - name: 'LendingPoolConfiguratorUpdated', - type: 'event', + name: "LendingPoolConfiguratorUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, + internalType: "address", + name: "newAddress", + type: "address" + } ], - name: 'LendingPoolLiquidationManagerUpdated', - type: 'event', + name: "LendingPoolLiquidationManagerUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, + internalType: "address", + name: "newAddress", + type: "address" + } ], - name: 'LendingPoolManagerUpdated', - type: 'event', + name: "LendingPoolManagerUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, + internalType: "address", + name: "newAddress", + type: "address" + } ], - name: 'LendingPoolUpdated', - type: 'event', + name: "LendingPoolUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, + internalType: "address", + name: "newAddress", + type: "address" + } ], - name: 'LendingRateOracleUpdated', - type: 'event', + name: "LendingRateOracleUpdated", + 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" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, + internalType: "address", + name: "newAddress", + type: "address" + } ], - name: 'PriceOracleUpdated', - type: 'event', + name: "PriceOracleUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'bytes32', - name: 'id', - type: 'bytes32', + internalType: "bytes32", + name: "id", + type: "bytes32" }, { indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, + internalType: "address", + name: "newAddress", + type: "address" + } ], - name: 'ProxyCreated', - type: 'event', + name: "ProxyCreated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, + internalType: "address", + name: "newAddress", + type: "address" + } ], - name: 'TokenDistributorUpdated', - type: 'event', + name: "TokenDistributorUpdated", + type: "event" }, { 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" }, { 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: [], - name: 'owner', + name: "owner", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'renounceOwnership', + name: "renounceOwnership", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + 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" }, { 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b5060006100246001600160e01b0361007316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610077565b3390565b61186a806100866000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635aef021f116100ad578063c12542df11610071578063c12542df146102ae578063ee891296146102d4578063f2fde38b146102dc578063fbeefc3c14610302578063fca513a81461030a5761012c565b80635aef021f1461024a578063715018a614610270578063820d12741461027857806385c858b11461029e5780638da5cb5b146102a65761012c565b806338280e6b116100f457806338280e6b146101aa57806340fdcadc146101d057806344ce375b146101f6578063530e784f1461021c5780635834eb9a146102425761012c565b80630261bf8b1461013157806321f8a721146101555780632a62c6361461017257806333128d591461019a5780633618abba146101a2575b600080fd5b610139610312565b604080516001600160a01b039092168252519081900360200190f35b6101396004803603602081101561016b57600080fd5b5035610331565b6101986004803603602081101561018857600080fd5b50356001600160a01b031661034c565b005b6101396103f4565b610139610416565b610198600480360360208110156101c057600080fd5b50356001600160a01b0316610437565b610198600480360360208110156101e657600080fd5b50356001600160a01b03166104e4565b6101986004803603602081101561020c57600080fd5b50356001600160a01b0316610594565b6101986004803603602081101561023257600080fd5b50356001600160a01b0316610643565b6101396106eb565b6101986004803603602081101561026057600080fd5b50356001600160a01b031661070c565b6101986107b4565b6101986004803603602081101561028e57600080fd5b50356001600160a01b0316610856565b610139610905565b61013961092c565b610198600480360360208110156102c457600080fd5b50356001600160a01b031661093b565b6101396109f0565b610198600480360360208110156102f257600080fd5b50356001600160a01b0316610a0f565b610139610b07565b610139610b21565b600061032c6b13115391125391d7d413d3d360a21b610331565b905090565b6000908152600160205260409020546001600160a01b031690565b610354610b3b565b6000546001600160a01b039081169116146103a4576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6103bd6b2322a2afa82927ab24a222a960a11b82610b3f565b6040516001600160a01b038216907f18e1a55b8eff9c93921eecfa1462d6a8cbb80b3988db3eb14c039e43fdb2266190600090a250565b600061032c732622a72224a723afa827a7a62fa6a0a720a3a2a960611b610331565b600061032c724c454e44494e475f524154455f4f5241434c4560681b610331565b61043f610b3b565b6000546001600160a01b0390811691161461048f576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6104ad702a27a5a2a72fa224a9aa2924a12aaa27a960791b82610dd8565b6040516001600160a01b038216907fa8b48a56ec01f81c3615a21ec43e16b925c26293e0801cf6330427f2a687f05390600090a250565b6104ec610b3b565b6000546001600160a01b0390811691161461053c576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b61055d732622a72224a723afa827a7a62fa6a0a720a3a2a960611b82610dd8565b6040516001600160a01b038216907fd5280c51185a38d36f7a0f5e56cac6248312bb70d0974782fa5a595127e0e08e90600090a250565b61059c610b3b565b6000546001600160a01b039081169116146105ec576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b61060c722624a8aaa4a220aa24a7a72fa6a0a720a3a2a960691b82610dd8565b6040516001600160a01b038216907f1a76cb769b814bc038223da86932b099b20aae03473683e6d98f5c3554e2606490600090a250565b61064b610b3b565b6000546001600160a01b0390811691161461069b576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6106b46b50524943455f4f5241434c4560a01b82610dd8565b6040516001600160a01b038216907fefe8ab924ca486283a79dc604baa67add51afb82af1db8ac386ebbba643cdffd90600090a250565b600061032c722624a8aaa4a220aa24a7a72fa6a0a720a3a2a960691b610331565b610714610b3b565b6000546001600160a01b03908116911614610764576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b61077d6b13115391125391d7d413d3d360a21b82610b3f565b6040516001600160a01b038216907fc4e6c6cdf28d0edbd8bcf071d724d33cc2e7a30be7d06443925656e9cb492aa490600090a250565b6107bc610b3b565b6000546001600160a01b0390811691161461080c576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61085e610b3b565b6000546001600160a01b039081169116146108ae576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6108ce724c454e44494e475f524154455f4f5241434c4560681b82610dd8565b6040516001600160a01b038216907f5c29179aba6942020a8a2d38f65de02fb6b7f784e7f049ed3a3cab97621859b590600090a250565b600061032c782622a72224a723afa827a7a62fa1a7a72324a3aaa920aa27a960391b610331565b6000546001600160a01b031690565b610943610b3b565b6000546001600160a01b03908116911614610993576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6109b9782622a72224a723afa827a7a62fa1a7a72324a3aaa920aa27a960391b82610b3f565b6040516001600160a01b038216907fdfabe479bad36782fb1e77fbfddd4e382671713527e4786cfc93a022ae76372990600090a250565b600061032c702a27a5a2a72fa224a9aa2924a12aaa27a960791b610331565b610a17610b3b565b6000546001600160a01b03908116911614610a67576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6001600160a01b038116610aac5760405162461bcd60e51b81526004018080602001828103825260268152602001806117ef6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061032c6b2322a2afa82927ab24a222a960a11b610331565b600061032c6b50524943455f4f5241434c4560a01b610331565b3390565b6000610b4a83610331565b60408051306024808301919091528251808303909101815260449091019091526020810180516001600160e01b031663189acdbd60e31b17905290915081906001600160a01b038216610d0457604051610ba390610e06565b604051809103906000f080158015610bbf573d6000803e3d6000fd5b509150816001600160a01b031663cf7a1d778530846040518463ffffffff1660e01b815260040180846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c50578181015183820152602001610c38565b50505050905090810190601f168015610c7d5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b158015610c9e57600080fd5b505af1158015610cb2573d6000803e3d6000fd5b50505050610cc08583610dd8565b6040805186815290516001600160a01b038416917f1eb35cb4b5bbb23d152f3b4016a5a46c37a07ae930ed0956aba951e231142438919081900360200190a2610dd1565b6040805163278f794360e11b81526001600160a01b03868116600483019081526024830193845284516044840152845191861693634f1ef2869389938793929160640190602085019080838360005b83811015610d6b578181015183820152602001610d53565b50505050905090810190601f168015610d985780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b158015610db857600080fd5b505af1158015610dcc573d6000803e3d6000fd5b505050505b5050505050565b60009182526001602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6109db80610e148339019056fe608060405234801561001057600080fd5b506109bb806100206000396000f3fe6080604052600436106100705760003560e01c80638f2839701161004e5780638f2839701461015e578063cf7a1d7714610191578063d1f5789414610250578063f851a4401461030657610070565b80633659cfe61461007a5780634f1ef286146100ad5780635c60da1b1461012d575b61007861031b565b005b34801561008657600080fd5b506100786004803603602081101561009d57600080fd5b50356001600160a01b0316610335565b610078600480360360408110156100c357600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100ee57600080fd5b82018360208201111561010057600080fd5b8035906020019184600183028401116401000000008311171561012257600080fd5b50909250905061036f565b34801561013957600080fd5b5061014261041c565b604080516001600160a01b039092168252519081900360200190f35b34801561016a57600080fd5b506100786004803603602081101561018157600080fd5b50356001600160a01b0316610459565b610078600480360360608110156101a757600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156101db57600080fd5b8201836020820111156101ed57600080fd5b8035906020019184600183028401116401000000008311171561020f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610513945050505050565b6100786004803603604081101561026657600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561029157600080fd5b8201836020820111156102a357600080fd5b803590602001918460018302840111640100000000831117156102c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610599945050505050565b34801561031257600080fd5b506101426106d9565b610323610704565b61033361032e61070c565b610731565b565b61033d610755565b6001600160a01b0316336001600160a01b031614156103645761035f8161077a565b61036c565b61036c61031b565b50565b610377610755565b6001600160a01b0316336001600160a01b0316141561040f576103998361077a565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d80600081146103f6576040519150601f19603f3d011682016040523d82523d6000602084013e6103fb565b606091505b505090508061040957600080fd5b50610417565b61041761031b565b505050565b6000610426610755565b6001600160a01b0316336001600160a01b0316141561044e5761044761070c565b9050610456565b61045661031b565b90565b610461610755565b6001600160a01b0316336001600160a01b03161415610364576001600160a01b0381166104bf5760405162461bcd60e51b81526004018080602001828103825260368152602001806109156036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104e8610755565b604080516001600160a01b03928316815291841660208301528051918290030190a161035f816107ba565b600061051d61070c565b6001600160a01b03161461053057600080fd5b61053a8382610599565b604080517232b4b8189c9b1b97383937bc3c9730b236b4b760691b815290519081900360130190207fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61036000199091011461059057fe5b610417826107ba565b60006105a361070c565b6001600160a01b0316146105b657600080fd5b604080517f656970313936372e70726f78792e696d706c656d656e746174696f6e000000008152905190819003601c0190207f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6000199091011461061657fe5b61061f826107de565b8051156106d5576000826001600160a01b0316826040518082805190602001908083835b602083106106625780518252601f199092019160209182019101610643565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146106c2576040519150601f19603f3d011682016040523d82523d6000602084013e6106c7565b606091505b505090508061041757600080fd5b5050565b60006106e3610755565b6001600160a01b0316336001600160a01b0316141561044e57610447610755565b610333610846565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610750573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b610783816107de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6107e7816108a6565b6108225760405162461bcd60e51b815260040180806020018281038252603b81526020018061094b603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b61084e610755565b6001600160a01b0316336001600160a01b0316141561089e5760405162461bcd60e51b81526004018080602001828103825260328152602001806108e36032913960400191505060405180910390fd5b610333610333565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906108da57508115155b94935050505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a26469706673582212205332daad1efa09e03cc1b95b9d51cadb3cf32e2d57907a628c0b4a5a20d8051f64736f6c634300060800334f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122029246c15c3dfc97c297923ce5a86da7e9cbc30fe90f0fd9ab2034e56926f8c0e64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b5060006100246001600160e01b0361007316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610077565b3390565b61186a806100866000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635aef021f116100ad578063c12542df11610071578063c12542df146102ae578063ee891296146102d4578063f2fde38b146102dc578063fbeefc3c14610302578063fca513a81461030a5761012c565b80635aef021f1461024a578063715018a614610270578063820d12741461027857806385c858b11461029e5780638da5cb5b146102a65761012c565b806338280e6b116100f457806338280e6b146101aa57806340fdcadc146101d057806344ce375b146101f6578063530e784f1461021c5780635834eb9a146102425761012c565b80630261bf8b1461013157806321f8a721146101555780632a62c6361461017257806333128d591461019a5780633618abba146101a2575b600080fd5b610139610312565b604080516001600160a01b039092168252519081900360200190f35b6101396004803603602081101561016b57600080fd5b5035610331565b6101986004803603602081101561018857600080fd5b50356001600160a01b031661034c565b005b6101396103f4565b610139610416565b610198600480360360208110156101c057600080fd5b50356001600160a01b0316610437565b610198600480360360208110156101e657600080fd5b50356001600160a01b03166104e4565b6101986004803603602081101561020c57600080fd5b50356001600160a01b0316610594565b6101986004803603602081101561023257600080fd5b50356001600160a01b0316610643565b6101396106eb565b6101986004803603602081101561026057600080fd5b50356001600160a01b031661070c565b6101986107b4565b6101986004803603602081101561028e57600080fd5b50356001600160a01b0316610856565b610139610905565b61013961092c565b610198600480360360208110156102c457600080fd5b50356001600160a01b031661093b565b6101396109f0565b610198600480360360208110156102f257600080fd5b50356001600160a01b0316610a0f565b610139610b07565b610139610b21565b600061032c6b13115391125391d7d413d3d360a21b610331565b905090565b6000908152600160205260409020546001600160a01b031690565b610354610b3b565b6000546001600160a01b039081169116146103a4576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6103bd6b2322a2afa82927ab24a222a960a11b82610b3f565b6040516001600160a01b038216907f18e1a55b8eff9c93921eecfa1462d6a8cbb80b3988db3eb14c039e43fdb2266190600090a250565b600061032c732622a72224a723afa827a7a62fa6a0a720a3a2a960611b610331565b600061032c724c454e44494e475f524154455f4f5241434c4560681b610331565b61043f610b3b565b6000546001600160a01b0390811691161461048f576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6104ad702a27a5a2a72fa224a9aa2924a12aaa27a960791b82610dd8565b6040516001600160a01b038216907fa8b48a56ec01f81c3615a21ec43e16b925c26293e0801cf6330427f2a687f05390600090a250565b6104ec610b3b565b6000546001600160a01b0390811691161461053c576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b61055d732622a72224a723afa827a7a62fa6a0a720a3a2a960611b82610dd8565b6040516001600160a01b038216907fd5280c51185a38d36f7a0f5e56cac6248312bb70d0974782fa5a595127e0e08e90600090a250565b61059c610b3b565b6000546001600160a01b039081169116146105ec576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b61060c722624a8aaa4a220aa24a7a72fa6a0a720a3a2a960691b82610dd8565b6040516001600160a01b038216907f1a76cb769b814bc038223da86932b099b20aae03473683e6d98f5c3554e2606490600090a250565b61064b610b3b565b6000546001600160a01b0390811691161461069b576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6106b46b50524943455f4f5241434c4560a01b82610dd8565b6040516001600160a01b038216907fefe8ab924ca486283a79dc604baa67add51afb82af1db8ac386ebbba643cdffd90600090a250565b600061032c722624a8aaa4a220aa24a7a72fa6a0a720a3a2a960691b610331565b610714610b3b565b6000546001600160a01b03908116911614610764576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b61077d6b13115391125391d7d413d3d360a21b82610b3f565b6040516001600160a01b038216907fc4e6c6cdf28d0edbd8bcf071d724d33cc2e7a30be7d06443925656e9cb492aa490600090a250565b6107bc610b3b565b6000546001600160a01b0390811691161461080c576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61085e610b3b565b6000546001600160a01b039081169116146108ae576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6108ce724c454e44494e475f524154455f4f5241434c4560681b82610dd8565b6040516001600160a01b038216907f5c29179aba6942020a8a2d38f65de02fb6b7f784e7f049ed3a3cab97621859b590600090a250565b600061032c782622a72224a723afa827a7a62fa1a7a72324a3aaa920aa27a960391b610331565b6000546001600160a01b031690565b610943610b3b565b6000546001600160a01b03908116911614610993576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6109b9782622a72224a723afa827a7a62fa1a7a72324a3aaa920aa27a960391b82610b3f565b6040516001600160a01b038216907fdfabe479bad36782fb1e77fbfddd4e382671713527e4786cfc93a022ae76372990600090a250565b600061032c702a27a5a2a72fa224a9aa2924a12aaa27a960791b610331565b610a17610b3b565b6000546001600160a01b03908116911614610a67576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6001600160a01b038116610aac5760405162461bcd60e51b81526004018080602001828103825260268152602001806117ef6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061032c6b2322a2afa82927ab24a222a960a11b610331565b600061032c6b50524943455f4f5241434c4560a01b610331565b3390565b6000610b4a83610331565b60408051306024808301919091528251808303909101815260449091019091526020810180516001600160e01b031663189acdbd60e31b17905290915081906001600160a01b038216610d0457604051610ba390610e06565b604051809103906000f080158015610bbf573d6000803e3d6000fd5b509150816001600160a01b031663cf7a1d778530846040518463ffffffff1660e01b815260040180846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c50578181015183820152602001610c38565b50505050905090810190601f168015610c7d5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b158015610c9e57600080fd5b505af1158015610cb2573d6000803e3d6000fd5b50505050610cc08583610dd8565b6040805186815290516001600160a01b038416917f1eb35cb4b5bbb23d152f3b4016a5a46c37a07ae930ed0956aba951e231142438919081900360200190a2610dd1565b6040805163278f794360e11b81526001600160a01b03868116600483019081526024830193845284516044840152845191861693634f1ef2869389938793929160640190602085019080838360005b83811015610d6b578181015183820152602001610d53565b50505050905090810190601f168015610d985780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b158015610db857600080fd5b505af1158015610dcc573d6000803e3d6000fd5b505050505b5050505050565b60009182526001602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6109db80610e148339019056fe608060405234801561001057600080fd5b506109bb806100206000396000f3fe6080604052600436106100705760003560e01c80638f2839701161004e5780638f2839701461015e578063cf7a1d7714610191578063d1f5789414610250578063f851a4401461030657610070565b80633659cfe61461007a5780634f1ef286146100ad5780635c60da1b1461012d575b61007861031b565b005b34801561008657600080fd5b506100786004803603602081101561009d57600080fd5b50356001600160a01b0316610335565b610078600480360360408110156100c357600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100ee57600080fd5b82018360208201111561010057600080fd5b8035906020019184600183028401116401000000008311171561012257600080fd5b50909250905061036f565b34801561013957600080fd5b5061014261041c565b604080516001600160a01b039092168252519081900360200190f35b34801561016a57600080fd5b506100786004803603602081101561018157600080fd5b50356001600160a01b0316610459565b610078600480360360608110156101a757600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156101db57600080fd5b8201836020820111156101ed57600080fd5b8035906020019184600183028401116401000000008311171561020f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610513945050505050565b6100786004803603604081101561026657600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561029157600080fd5b8201836020820111156102a357600080fd5b803590602001918460018302840111640100000000831117156102c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610599945050505050565b34801561031257600080fd5b506101426106d9565b610323610704565b61033361032e61070c565b610731565b565b61033d610755565b6001600160a01b0316336001600160a01b031614156103645761035f8161077a565b61036c565b61036c61031b565b50565b610377610755565b6001600160a01b0316336001600160a01b0316141561040f576103998361077a565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d80600081146103f6576040519150601f19603f3d011682016040523d82523d6000602084013e6103fb565b606091505b505090508061040957600080fd5b50610417565b61041761031b565b505050565b6000610426610755565b6001600160a01b0316336001600160a01b0316141561044e5761044761070c565b9050610456565b61045661031b565b90565b610461610755565b6001600160a01b0316336001600160a01b03161415610364576001600160a01b0381166104bf5760405162461bcd60e51b81526004018080602001828103825260368152602001806109156036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104e8610755565b604080516001600160a01b03928316815291841660208301528051918290030190a161035f816107ba565b600061051d61070c565b6001600160a01b03161461053057600080fd5b61053a8382610599565b604080517232b4b8189c9b1b97383937bc3c9730b236b4b760691b815290519081900360130190207fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61036000199091011461059057fe5b610417826107ba565b60006105a361070c565b6001600160a01b0316146105b657600080fd5b604080517f656970313936372e70726f78792e696d706c656d656e746174696f6e000000008152905190819003601c0190207f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6000199091011461061657fe5b61061f826107de565b8051156106d5576000826001600160a01b0316826040518082805190602001908083835b602083106106625780518252601f199092019160209182019101610643565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146106c2576040519150601f19603f3d011682016040523d82523d6000602084013e6106c7565b606091505b505090508061041757600080fd5b5050565b60006106e3610755565b6001600160a01b0316336001600160a01b0316141561044e57610447610755565b610333610846565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610750573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b610783816107de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6107e7816108a6565b6108225760405162461bcd60e51b815260040180806020018281038252603b81526020018061094b603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b61084e610755565b6001600160a01b0316336001600160a01b0316141561089e5760405162461bcd60e51b81526004018080602001828103825260328152602001806108e36032913960400191505060405180910390fd5b610333610333565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906108da57508115155b94935050505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a26469706673582212205332daad1efa09e03cc1b95b9d51cadb3cf32e2d57907a628c0b4a5a20d8051f64736f6c634300060800334f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122029246c15c3dfc97c297923ce5a86da7e9cbc30fe90f0fd9ab2034e56926f8c0e64736f6c63430006080033"; diff --git a/types/LendingPoolAddressesProviderRegistry.d.ts b/types/LendingPoolAddressesProviderRegistry.d.ts index 801092ec..a58835ca 100644 --- a/types/LendingPoolAddressesProviderRegistry.d.ts +++ b/types/LendingPoolAddressesProviderRegistry.d.ts @@ -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; - 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; - renounceOwnership(overrides?: TransactionOverrides): Promise; + renounceOwnership( + overrides?: TransactionOverrides + ): Promise; transferOwnership( newOwner: string, @@ -102,7 +124,9 @@ export class LendingPoolAddressesProviderRegistry extends Contract { overrides?: TransactionOverrides ): Promise; - renounceOwnership(overrides?: TransactionOverrides): Promise; + renounceOwnership( + overrides?: TransactionOverrides + ): Promise; 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; - registerAddressesProvider(_provider: string, _id: BigNumberish): Promise; + registerAddressesProvider( + _provider: string, + _id: BigNumberish + ): Promise; renounceOwnership(): Promise; diff --git a/types/LendingPoolAddressesProviderRegistryFactory.ts b/types/LendingPoolAddressesProviderRegistryFactory.ts index 83569a52..0bbfdcb8 100644 --- a/types/LendingPoolAddressesProviderRegistryFactory.ts +++ b/types/LendingPoolAddressesProviderRegistryFactory.ts @@ -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 { - return super.deploy(overrides) as Promise; + deploy( + overrides?: TransactionOverrides + ): Promise { + 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"; diff --git a/types/LendingPoolConfigurator.d.ts b/types/LendingPoolConfigurator.d.ts index 62ef14bf..442d0522 100644 --- a/types/LendingPoolConfigurator.d.ts +++ b/types/LendingPoolConfigurator.d.ts @@ -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; 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; - freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + freezeReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; 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; - activateReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + activateReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; deactivateReserve( _reserve: string, @@ -352,11 +370,15 @@ export class LendingPoolConfigurator extends Contract { overrides?: TransactionOverrides ): Promise; - freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + freezeReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; 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; - unfreezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + unfreezeReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; 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; - setLiquidationBonus(_reserve: string, _bonus: BigNumberish): Promise; + setLiquidationBonus( + _reserve: string, + _bonus: BigNumberish + ): Promise; - setLiquidationThreshold(_reserve: string, _threshold: BigNumberish): Promise; + setLiquidationThreshold( + _reserve: string, + _threshold: BigNumberish + ): Promise; setLtv(_reserve: string, _ltv: BigNumberish): Promise; - setReserveDecimals(_reserve: string, _decimals: BigNumberish): Promise; + setReserveDecimals( + _reserve: string, + _decimals: BigNumberish + ): Promise; setReserveInterestRateStrategyAddress( _reserve: string, diff --git a/types/LendingPoolConfiguratorFactory.ts b/types/LendingPoolConfiguratorFactory.ts index 66e67c1b..c5682bd4 100644 --- a/types/LendingPoolConfiguratorFactory.ts +++ b/types/LendingPoolConfiguratorFactory.ts @@ -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 {LendingPoolConfigurator} from './LendingPoolConfigurator'; +import { TransactionOverrides } from "."; +import { LendingPoolConfigurator } from "./LendingPoolConfigurator"; export class LendingPoolConfiguratorFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,8 +25,15 @@ export class LendingPoolConfiguratorFactory extends ContractFactory { connect(signer: Signer): LendingPoolConfiguratorFactory { return super.connect(signer) as LendingPoolConfiguratorFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): LendingPoolConfigurator { - return new Contract(address, _abi, signerOrProvider) as LendingPoolConfigurator; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): LendingPoolConfigurator { + return new Contract( + address, + _abi, + signerOrProvider + ) as LendingPoolConfigurator; } } @@ -36,644 +43,644 @@ const _abi = [ inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'BorrowingDisabledOnReserve', - type: 'event', + name: "BorrowingDisabledOnReserve", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: false, - internalType: 'bool', - name: '_stableRateEnabled', - type: 'bool', - }, + internalType: "bool", + name: "_stableRateEnabled", + type: "bool" + } ], - name: 'BorrowingEnabledOnReserve', - type: 'event', + name: "BorrowingEnabledOnReserve", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'ReserveActivated', - type: 'event', + name: "ReserveActivated", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_ltv', - type: 'uint256', - }, + internalType: "uint256", + name: "_ltv", + type: "uint256" + } ], - name: 'ReserveBaseLtvChanged', - type: 'event', + name: "ReserveBaseLtvChanged", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'ReserveDeactivated', - type: 'event', + name: "ReserveDeactivated", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_decimals', - type: 'uint256', - }, + internalType: "uint256", + name: "_decimals", + type: "uint256" + } ], - name: 'ReserveDecimalsChanged', - type: 'event', + name: "ReserveDecimalsChanged", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'ReserveDisabledAsCollateral', - type: 'event', + name: "ReserveDisabledAsCollateral", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_ltv', - type: 'uint256', + internalType: "uint256", + name: "_ltv", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_liquidationThreshold', - type: 'uint256', + internalType: "uint256", + name: "_liquidationThreshold", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_liquidationBonus', - type: 'uint256', - }, + internalType: "uint256", + name: "_liquidationBonus", + type: "uint256" + } ], - name: 'ReserveEnabledAsCollateral', - type: 'event', + name: "ReserveEnabledAsCollateral", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'ReserveFreezed', - type: 'event', + name: "ReserveFreezed", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_aToken', - type: 'address', + internalType: "address", + name: "_aToken", + type: "address" }, { indexed: false, - internalType: 'address', - name: '_interestRateStrategyAddress', - type: 'address', - }, + internalType: "address", + name: "_interestRateStrategyAddress", + type: "address" + } ], - name: 'ReserveInitialized', - type: 'event', + name: "ReserveInitialized", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: false, - internalType: 'address', - name: '_strategy', - type: 'address', - }, + internalType: "address", + name: "_strategy", + type: "address" + } ], - name: 'ReserveInterestRateStrategyChanged', - type: 'event', + name: "ReserveInterestRateStrategyChanged", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_bonus', - type: 'uint256', - }, + internalType: "uint256", + name: "_bonus", + type: "uint256" + } ], - name: 'ReserveLiquidationBonusChanged', - type: 'event', + name: "ReserveLiquidationBonusChanged", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, + internalType: "uint256", + name: "_threshold", + type: "uint256" + } ], - name: 'ReserveLiquidationThresholdChanged', - type: 'event', + name: "ReserveLiquidationThresholdChanged", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'ReserveUnfreezed', - type: 'event', + name: "ReserveUnfreezed", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'StableRateDisabledOnReserve', - type: 'event', + name: "StableRateDisabledOnReserve", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'StableRateEnabledOnReserve', - type: 'event', + name: "StableRateEnabledOnReserve", + type: "event" }, { inputs: [], - name: 'CONFIGURATOR_REVISION', + name: "CONFIGURATOR_REVISION", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'activateReserve', + name: "activateReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'deactivateReserve', + name: "deactivateReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'disableBorrowingOnReserve', + name: "disableBorrowingOnReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'disableReserveAsCollateral', + name: "disableReserveAsCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'disableReserveStableRate', + name: "disableReserveStableRate", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'bool', - name: '_stableBorrowRateEnabled', - type: 'bool', - }, + internalType: "bool", + name: "_stableBorrowRateEnabled", + type: "bool" + } ], - name: 'enableBorrowingOnReserve', + name: "enableBorrowingOnReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_baseLTVasCollateral', - type: 'uint256', + internalType: "uint256", + name: "_baseLTVasCollateral", + type: "uint256" }, { - internalType: 'uint256', - name: '_liquidationThreshold', - type: 'uint256', + internalType: "uint256", + name: "_liquidationThreshold", + type: "uint256" }, { - internalType: 'uint256', - name: '_liquidationBonus', - type: 'uint256', - }, + internalType: "uint256", + name: "_liquidationBonus", + type: "uint256" + } ], - name: 'enableReserveAsCollateral', + name: "enableReserveAsCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'enableReserveStableRate', + name: "enableReserveStableRate", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'freezeReserve', + name: "freezeReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint8', - name: '_underlyingAssetDecimals', - type: 'uint8', + internalType: "uint8", + name: "_underlyingAssetDecimals", + type: "uint8" }, { - internalType: 'address', - name: '_interestRateStrategyAddress', - type: 'address', + internalType: "address", + name: "_aTokenInstance", + type: "address" }, { - internalType: 'address', - name: '_stableDebtTokenAddress', - type: 'address', + internalType: "address", + name: "_interestRateStrategyAddress", + type: "address" }, { - internalType: 'address', - name: '_variableDebtTokenAddress', - type: 'address', + internalType: "address", + name: "_stableDebtTokenAddress", + type: "address" }, + { + internalType: "address", + name: "_variableDebtTokenAddress", + type: "address" + } ], - name: 'initReserve', + name: "initReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'string', - name: '_aTokenName', - type: 'string', + internalType: "address", + name: "_aTokenInstance", + type: "address" }, { - internalType: 'string', - name: '_aTokenSymbol', - type: 'string', + internalType: "address", + name: "_stableDebtTokenAddress", + type: "address" }, { - internalType: 'address', - name: '_stableDebtTokenAddress', - type: 'address', + internalType: "address", + name: "_variableDebtTokenAddress", + type: "address" }, { - internalType: 'address', - name: '_variableDebtTokenAddress', - type: 'address', + internalType: "uint8", + name: "_underlyingAssetDecimals", + type: "uint8" }, { - internalType: 'uint8', - name: '_underlyingAssetDecimals', - type: 'uint8', - }, - { - internalType: 'address', - name: '_interestRateStrategyAddress', - type: 'address', - }, + internalType: "address", + name: "_interestRateStrategyAddress", + type: "address" + } ], - name: 'initReserveWithData', + name: "initReserveWithData", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '_poolAddressesProvider', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + name: "_poolAddressesProvider", + type: "address" + } ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [], - name: 'pool', + name: "pool", outputs: [ { - internalType: 'contract LendingPool', - name: '', - type: 'address', - }, + internalType: "contract LendingPool", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'poolAddressesProvider', + name: "poolAddressesProvider", outputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + 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: 'uint256', - name: '_bonus', - type: 'uint256', - }, + internalType: "uint256", + name: "_bonus", + type: "uint256" + } ], - name: 'setLiquidationBonus', + name: "setLiquidationBonus", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, + internalType: "uint256", + name: "_threshold", + type: "uint256" + } ], - name: 'setLiquidationThreshold', + name: "setLiquidationThreshold", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_ltv', - type: 'uint256', - }, + internalType: "uint256", + name: "_ltv", + type: "uint256" + } ], - name: 'setLtv', + name: "setLtv", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_decimals', - type: 'uint256', - }, + internalType: "uint256", + name: "_decimals", + type: "uint256" + } ], - name: 'setReserveDecimals', + name: "setReserveDecimals", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_rateStrategyAddress', - type: 'address', - }, + internalType: "address", + name: "_rateStrategyAddress", + type: "address" + } ], - name: 'setReserveInterestRateStrategyAddress', + name: "setReserveInterestRateStrategyAddress", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'unfreezeReserve', + name: "unfreezeReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, + stateMutability: "nonpayable", + type: "function" + } ]; const _bytecode = - '0x60806040526000805534801561001457600080fd5b50615cbe806100246000396000f3fe60806040523480156200001157600080fd5b5060043610620001545760003560e01c80637cadffd911620000c9578063bf3441831162000087578063bf34418314620002b4578063c4d66de814620002cb578063e8ae2f5b14620002e2578063eede87c114620002f9578063ef1f93731462000310578063f53a251514620003275762000154565b80637cadffd9146200024e57806380e17d871462000265578063a5bc826c146200026f578063a8dc0f451462000286578063b75d6f34146200029d5762000154565b80635dd9a18911620001175780635dd9a18914620001d957806366bbd92814620001f057806372f46aaa14620002075780637aca76eb146200021e5780637af635a614620002355762000154565b80630e30428d14620001595780631133c0f7146200017257806316f0115b14620001895780631d2118f914620001ab5780633e72a45414620001c2575b600080fd5b620001706200016a36600462002b77565b6200033e565b005b620001706200018336600462002aa7565b6200053d565b62000193620008cb565b604051620001a2919062002e43565b60405180910390f35b62000170620001bc36600462002a35565b620008da565b62000170620001d3366004620029f0565b62000a2a565b62000170620001ea36600462002be2565b62000cee565b620001706200020136600462002b77565b62000eed565b620001706200021836600462002b77565b620010d6565b620001706200022f366004620029f0565b620012bf565b6200023f620014ae565b604051620001a2919062003024565b620001706200025f36600462002b77565b620014b3565b620001936200169c565b620001706200028036600462002ba5565b620016ab565b6200017062000297366004620029f0565b620018d3565b62000170620002ae366004620029f0565b62001ac2565b62000170620002c5366004620029f0565b62001cb1565b62000170620002dc366004620029f0565b62001ea0565b62000170620002f3366004620029f0565b62001fe1565b620001706200030a36600462002a72565b620021d0565b6200017062000321366004620029f0565b620023ba565b6200017062000338366004620029f0565b620025a9565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156200038357600080fd5b505afa15801562000398573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003be919062002a16565b6001600160a01b031614620003f05760405162461bcd60e51b8152600401620003e79062002f43565b60405180910390fd5b620003fa6200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906200042c90869060040162002e43565b60206040518083038186803b1580156200044557600080fd5b505afa1580156200045a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000480919062002cdb565b905062000494818363ffffffff6200279816565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691620004c99187919060040162002ebe565b600060405180830381600087803b158015620004e457600080fd5b505af1158015620004f9573d6000803e3d6000fd5b505050507f437dd3b61b7c7eee7fc70515c8846482dfca92e2e1e02af5d638c5d4878d671483836040516200053092919062002ebe565b60405180910390a1505050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156200058257600080fd5b505afa15801562000597573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005bd919062002a16565b6001600160a01b031614620005e65760405162461bcd60e51b8152600401620003e79062002f43565b6034546040516000916001600160a01b031690899085908a908a906200060c9062002971565b6200061c95949392919062002ed7565b604051809103906000f08015801562000639573d6000803e3d6000fd5b5090506200066d6040518060400160405280600e81526020016d34b734ba34b0b634bd34b733971760911b815250620027af565b603554604051633d38474960e11b81526001600160a01b0390911690637a708e9290620006a7908b9085908a908a90899060040162002e71565b600060405180830381600087803b158015620006c257600080fd5b505af1158015620006d7573d6000803e3d6000fd5b50505050620006e56200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f79062000717908c9060040162002e43565b60206040518083038186803b1580156200073057600080fd5b505afa15801562000745573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200076b919062002cdb565b9050620007828160ff861663ffffffff6200285916565b620007b36040518060400160405280600e81526020016d53657474696e672061637469766560901b815250620027af565b620007c681600163ffffffff6200286f16565b620007f76040518060400160405280600e81526020016d53657474696e6720667265657a6560901b815250620027af565b6200080a81600063ffffffff6200289e16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d29276916200083f918d919060040162002ebe565b600060405180830381600087803b1580156200085a57600080fd5b505af11580156200086f573d6000803e3d6000fd5b50505050816001600160a01b0316896001600160a01b03167f1d9fcd0dc935b4778d5af97f55c4d7b2553257382f1ef25c412114c8eeebd88e85604051620008b8919062002e43565b60405180910390a3505050505050505050565b6035546001600160a01b031681565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156200091f57600080fd5b505afa15801562000934573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200095a919062002a16565b6001600160a01b031614620009835760405162461bcd60e51b8152600401620003e79062002f43565b603554604051631d2118f960e01b81526001600160a01b0390911690631d2118f990620009b7908590859060040162002e57565b600060405180830381600087803b158015620009d257600080fd5b505af1158015620009e7573d6000803e3d6000fd5b505050507f5644b64ebb0ce18c4032248ca52f58355469092ff072866c3dcd8640e817d6a5828260405162000a1e92919062002e57565b60405180910390a15050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801562000a6f57600080fd5b505afa15801562000a84573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000aaa919062002a16565b6001600160a01b03161462000ad35760405162461bcd60e51b8152600401620003e79062002f43565b6035546040516335ea6a7560e01b8152600091829182916001600160a01b0316906335ea6a759062000b0a90879060040162002e43565b6101406040518083038186803b15801562000b2457600080fd5b505afa15801562000b39573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000b5f919062002d03565b5050505050505092509250925082600014801562000b7b575081155b801562000b86575080155b62000ba55760405162461bcd60e51b8152600401620003e79062002fda565b62000baf6200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f79062000be190889060040162002e43565b60206040518083038186803b15801562000bfa57600080fd5b505afa15801562000c0f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000c35919062002cdb565b905062000c4a81600063ffffffff6200286f16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d292769162000c7f9189919060040162002ebe565b600060405180830381600087803b15801562000c9a57600080fd5b505af115801562000caf573d6000803e3d6000fd5b50506040516001600160a01b03881692507f6f60cf8bd0f218cabe1ea3150bd07b0b758c35c4cfdf7138017a283e65564d5e9150600090a25050505050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801562000d3357600080fd5b505afa15801562000d48573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d6e919062002a16565b6001600160a01b03161462000d975760405162461bcd60e51b8152600401620003e79062002f43565b6060856001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801562000dd357600080fd5b505afa15801562000de8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000e12919081019062002c5c565b60405160200162000e24919062002e03565b60405160208183030381529060405290506060866001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801562000e7157600080fd5b505afa15801562000e86573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000eb0919081019062002c5c565b60405160200162000ec2919062002dd8565b604051602081830303815290604052905062000ee487838387878b8b6200053d565b50505050505050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801562000f3257600080fd5b505afa15801562000f47573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f6d919062002a16565b6001600160a01b03161462000f965760405162461bcd60e51b8152600401620003e79062002f43565b62000fa06200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f79062000fd290869060040162002e43565b60206040518083038186803b15801562000feb57600080fd5b505afa15801562001000573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001026919062002cdb565b90506200103a818363ffffffff6200285916565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d29276916200106f9187919060040162002ebe565b600060405180830381600087803b1580156200108a57600080fd5b505af11580156200109f573d6000803e3d6000fd5b505050507f2e73b7f1df792712003e6859f940c1e8711c3f1329474771fee71d2ec116312983836040516200053092919062002ebe565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156200111b57600080fd5b505afa15801562001130573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001156919062002a16565b6001600160a01b0316146200117f5760405162461bcd60e51b8152600401620003e79062002f43565b620011896200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f790620011bb90869060040162002e43565b60206040518083038186803b158015620011d457600080fd5b505afa158015620011e9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200120f919062002cdb565b905062001223818363ffffffff620028cd16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691620012589187919060040162002ebe565b600060405180830381600087803b1580156200127357600080fd5b505af115801562001288573d6000803e3d6000fd5b505050507fda47540c7f7fd5a68c3285f3bb708f322424f948f41df6f51622fa24b396866483836040516200053092919062002ebe565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156200130457600080fd5b505afa15801562001319573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200133f919062002a16565b6001600160a01b031614620013685760405162461bcd60e51b8152600401620003e79062002f43565b620013726200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f790620013a490859060040162002e43565b60206040518083038186803b158015620013bd57600080fd5b505afa158015620013d2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620013f8919062002cdb565b90506200140d81600163ffffffff6200289e16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691620014429186919060040162002ebe565b600060405180830381600087803b1580156200145d57600080fd5b505af115801562001472573d6000803e3d6000fd5b50506040516001600160a01b03851692507fda5cdb66c77023db6abe5226a4d4a40c3b8e768012f4ff4e446f62f60127fc569150600090a25050565b600381565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b158015620014f857600080fd5b505afa1580156200150d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001533919062002a16565b6001600160a01b0316146200155c5760405162461bcd60e51b8152600401620003e79062002f43565b620015666200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906200159890869060040162002e43565b60206040518083038186803b158015620015b157600080fd5b505afa158015620015c6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620015ec919062002cdb565b905062001600818363ffffffff620028de16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691620016359187919060040162002ebe565b600060405180830381600087803b1580156200165057600080fd5b505af115801562001665573d6000803e3d6000fd5b505050507fe3ba662f7011e701056a43e8cf832242322eeff01453e7a72d01ec2af36d9aec83836040516200053092919062002ebe565b6034546001600160a01b031681565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b158015620016f057600080fd5b505afa15801562001705573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200172b919062002a16565b6001600160a01b031614620017545760405162461bcd60e51b8152600401620003e79062002f43565b6200175e6200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906200179090889060040162002e43565b60206040518083038186803b158015620017a957600080fd5b505afa158015620017be573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620017e4919062002cdb565b9050620017f8818563ffffffff620028cd16565b6200180a818463ffffffff6200279816565b6200181c818363ffffffff620028de16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691620018519189919060040162002ebe565b600060405180830381600087803b1580156200186c57600080fd5b505af115801562001881573d6000803e3d6000fd5b50505050846001600160a01b03167fdfe62f53e7707d64f99bca15d2bdf3facc4074bc047e7dec2ea130300e992744858585604051620018c4939291906200302d565b60405180910390a25050505050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156200191857600080fd5b505afa1580156200192d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001953919062002a16565b6001600160a01b0316146200197c5760405162461bcd60e51b8152600401620003e79062002f43565b620019866200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f790620019b890859060040162002e43565b60206040518083038186803b158015620019d157600080fd5b505afa158015620019e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001a0c919062002cdb565b905062001a2181600063ffffffff620028f516565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d292769162001a569186919060040162002ebe565b600060405180830381600087803b15801562001a7157600080fd5b505af115801562001a86573d6000803e3d6000fd5b50506040516001600160a01b03851692507fe9a7e5fd4fc8ea18e602350324bf48e8f05d12434af0ce0be05743e6a5fdcb9e9150600090a25050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801562001b0757600080fd5b505afa15801562001b1c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001b42919062002a16565b6001600160a01b03161462001b6b5760405162461bcd60e51b8152600401620003e79062002f43565b62001b756200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f79062001ba790859060040162002e43565b60206040518083038186803b15801562001bc057600080fd5b505afa15801562001bd5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001bfb919062002cdb565b905062001c1081600163ffffffff6200286f16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d292769162001c459186919060040162002ebe565b600060405180830381600087803b15801562001c6057600080fd5b505af115801562001c75573d6000803e3d6000fd5b50506040516001600160a01b03851692507f35b80cd8ea3440e9a8454f116fa658b858da1b64c86c48451f4559cefcdfb56c9150600090a25050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801562001cf657600080fd5b505afa15801562001d0b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001d31919062002a16565b6001600160a01b03161462001d5a5760405162461bcd60e51b8152600401620003e79062002f43565b62001d646200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f79062001d9690859060040162002e43565b60206040518083038186803b15801562001daf57600080fd5b505afa15801562001dc4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001dea919062002cdb565b905062001dff81600163ffffffff6200292416565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d292769162001e349186919060040162002ebe565b600060405180830381600087803b15801562001e4f57600080fd5b505af115801562001e64573d6000803e3d6000fd5b50506040516001600160a01b03851692507f8dee2b2f3e98319ae6347eda521788f73f4086c9be9a594942b370b137fb8cb19150600090a25050565b600062001eac62002953565b60015490915060ff168062001ec6575062001ec662002958565b8062001ed3575060005481115b62001ef25760405162461bcd60e51b8152600401620003e79062002f8c565b60015460ff1615801562001f12576001805460ff19168117905560008290555b603480546001600160a01b0319166001600160a01b03858116919091179182905560408051630261bf8b60e01b815290519290911691630261bf8b91600480820192602092909190829003018186803b15801562001f6f57600080fd5b505afa15801562001f84573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001faa919062002a16565b603580546001600160a01b0319166001600160a01b0392909216919091179055801562001fdc576001805460ff191690555b505050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156200202657600080fd5b505afa1580156200203b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002061919062002a16565b6001600160a01b0316146200208a5760405162461bcd60e51b8152600401620003e79062002f43565b620020946200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f790620020c690859060040162002e43565b60206040518083038186803b158015620020df57600080fd5b505afa158015620020f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200211a919062002cdb565b90506200212f81600063ffffffff620028cd16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691620021649186919060040162002ebe565b600060405180830381600087803b1580156200217f57600080fd5b505af115801562002194573d6000803e3d6000fd5b50506040516001600160a01b03851692507f9cc75e4cafc9a556a369bc53468649075680eb554d225d5918f199453824796d9150600090a25050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156200221557600080fd5b505afa1580156200222a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002250919062002a16565b6001600160a01b031614620022795760405162461bcd60e51b8152600401620003e79062002f43565b620022836200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f790620022b590869060040162002e43565b60206040518083038186803b158015620022ce57600080fd5b505afa158015620022e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002309919062002cdb565b90506200231e81600163ffffffff620028f516565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691620023539187919060040162002ebe565b600060405180830381600087803b1580156200236e57600080fd5b505af115801562002383573d6000803e3d6000fd5b505050507fab2f7f9e5ca2772fafa94f355c1842a80ae6b9e41f83083098d81f67d7a0b50883836040516200053092919062002ea3565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b158015620023ff57600080fd5b505afa15801562002414573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200243a919062002a16565b6001600160a01b031614620024635760405162461bcd60e51b8152600401620003e79062002f43565b6200246d6200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906200249f90859060040162002e43565b60206040518083038186803b158015620024b857600080fd5b505afa158015620024cd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620024f3919062002cdb565b90506200250881600063ffffffff6200289e16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d29276916200253d9186919060040162002ebe565b600060405180830381600087803b1580156200255857600080fd5b505af11580156200256d573d6000803e3d6000fd5b50506040516001600160a01b03851692507f995959c2ceab6ce20e8cd89c904e449fd3e21918a0f420c9ec9340595585526b9150600090a25050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b158015620025ee57600080fd5b505afa15801562002603573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002629919062002a16565b6001600160a01b031614620026525760405162461bcd60e51b8152600401620003e79062002f43565b6200265c6200295e565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906200268e90859060040162002e43565b60206040518083038186803b158015620026a757600080fd5b505afa158015620026bc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620026e2919062002cdb565b9050620026f781600063ffffffff6200292416565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d29276916200272c9186919060040162002ebe565b600060405180830381600087803b1580156200274757600080fd5b505af11580156200275c573d6000803e3d6000fd5b50506040516001600160a01b03851692507f8bbf35441ac2c607ddecadd3d8ee58636d32f217fad201fb2655581502dd84e39150600090a25050565b8151670fffffff0000ffff1660109190911b179052565b60006a636f6e736f6c652e6c6f676001600160a01b031682604051602401620027d9919062002f2e565b60408051601f198184030181529181526020820180516001600160e01b031663104c13eb60e21b1790525162002810919062002dba565b600060405180830381855afa9150503d80600081146200284d576040519150601f19603f3d011682016040523d82523d6000602084013e62002852565b606091505b5050505050565b815166ffffffffffffff1660309190911b179052565b6038816200287f57600062002882565b60015b8351670fffffffffffffff1660ff91821690921b161790915250565b603981620028ae576000620028b1565b60015b8351671fffffffffffffff1660ff91821690921b161790915250565b8151670fffffffffff000016179052565b8151670fff0000ffffffff1660209190911b179052565b603a816200290557600062002908565b60015b8351673fffffffffffffff1660ff91821690921b161790915250565b603b816200293457600062002937565b60015b8351677fffffffffffffff1660ff91821690921b161790915250565b600390565b303b1590565b6040518060200160405280600081525090565b612bac80620030dd83390190565b600082601f83011262002990578081fd5b8135620029a7620029a1826200306b565b62003043565b9150808252836020828501011115620029bf57600080fd5b8060208401602084013760009082016020015292915050565b803560ff81168114620029ea57600080fd5b92915050565b60006020828403121562002a02578081fd5b813562002a0f81620030c3565b9392505050565b60006020828403121562002a28578081fd5b815162002a0f81620030c3565b6000806040838503121562002a48578081fd5b823562002a5581620030c3565b9150602083013562002a6781620030c3565b809150509250929050565b6000806040838503121562002a85578182fd5b823562002a9281620030c3565b91506020830135801515811462002a67578182fd5b600080600080600080600060e0888a03121562002ac2578283fd5b873562002acf81620030c3565b9650602088013567ffffffffffffffff8082111562002aec578485fd5b62002afa8b838c016200297f565b975060408a013591508082111562002b10578485fd5b5062002b1f8a828b016200297f565b955050606088013562002b3281620030c3565b9350608088013562002b4481620030c3565b925062002b558960a08a01620029d8565b915060c088013562002b6781620030c3565b8091505092959891949750929550565b6000806040838503121562002b8a578182fd5b823562002b9781620030c3565b946020939093013593505050565b6000806000806080858703121562002bbb578384fd5b843562002bc881620030c3565b966020860135965060408601359560600135945092505050565b600080600080600060a0868803121562002bfa578081fd5b853562002c0781620030c3565b945062002c188760208801620029d8565b9350604086013562002c2a81620030c3565b9250606086013562002c3c81620030c3565b9150608086013562002c4e81620030c3565b809150509295509295909350565b60006020828403121562002c6e578081fd5b815167ffffffffffffffff81111562002c85578182fd5b80830184601f82011262002c97578283fd5b8051915062002caa620029a1836200306b565b82815285602084840101111562002cbf578384fd5b62002cd283602083016020850162003090565b95945050505050565b60006020828403121562002ced578081fd5b62002cf9602062003043565b9151825250919050565b6000806000806000806000806000806101408b8d03121562002d23578384fd5b8a51995060208b0151985060408b0151975060608b0151965060808b0151955060a08b0151945060c08b0151935060e08b015192506101008b015191506101208b015164ffffffffff8116811462002d79578182fd5b809150509295989b9194979a5092959850565b6000815180845262002da681602086016020860162003090565b601f01601f19169290920160200192915050565b6000825162002dce81846020870162003090565b9190910192915050565b6000606160f81b8252825162002df681600185016020870162003090565b9190910160010192915050565b600075020b0bb329024b73a32b932b9ba103132b0b934b733960551b8252825162002e3681601685016020870162003090565b9190910160160192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b0395861681529385166020850152918416604084015283166060830152909116608082015260a00190565b6001600160a01b039290921682521515602082015260400190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0386811682528516602082015260ff8416604082015260a06060820181905260009062002f0e9083018562002d8c565b828103608084015262002f22818562002d8c565b98975050505050505050565b60006020825262002a0f602083018462002d8c565b60208082526029908201527f5468652063616c6c6572206d7573742062652061206c656e64696e6720706f6f604082015268361036b0b730b3b2b960b91b606082015260800190565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602a908201527f546865206c6971756964697479206f66207468652072657365727665206e65656040820152690647320746f20626520360b41b606082015260800190565b90815260200190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff811182821017156200306357600080fd5b604052919050565b600067ffffffffffffffff82111562003082578081fd5b50601f01601f191660200190565b60005b83811015620030ad57818101518382015260200162003093565b83811115620030bd576000848401525b50505050565b6001600160a01b0381168114620030d957600080fd5b5056fe60806040523480156200001157600080fd5b5060405162002bac38038062002bac833981810160405260a08110156200003757600080fd5b8151602083015160408085015160608601805192519496939591949391820192846401000000008211156200006b57600080fd5b9083019060208201858111156200008157600080fd5b82516401000000008111828201881017156200009c57600080fd5b82525081516020918201929091019080838360005b83811015620000cb578181015183820152602001620000b1565b50505050905090810190601f168015620000f95780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011d57600080fd5b9083019060208201858111156200013357600080fd5b82516401000000008111828201881017156200014e57600080fd5b82525081516020918201929091019080838360005b838110156200017d57818101518382015260200162000163565b50505050905090810190601f168015620001ab5780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001cb906003906020850190620002eb565b508051620001e1906004906020840190620002eb565b50506005805460ff191660121790555062000205836001600160e01b03620002d516565b600a80546001600160a01b0319166001600160a01b03878116919091179182905560408051630261bf8b60e01b815290519290911691630261bf8b91600480820192602092909190829003018186803b1580156200026257600080fd5b505afa15801562000277573d6000803e3d6000fd5b505050506040513d60208110156200028e57600080fd5b5051600b80546001600160a01b0319166001600160a01b0392831617905560058054610100600160a81b031916610100969092169590950217909355506200039092505050565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200032e57805160ff19168380011785556200035e565b828001600101855582156200035e579182015b828111156200035e57825182559160200191906001019062000341565b506200036c92915062000370565b5090565b6200038d91905b808211156200036c576000815560010162000377565b90565b61280c80620003a06000396000f3fe6080604052600436106101855760003560e01c80635eae177c116100d1578063a9059cbb1161008a578063db006a7511610064578063db006a75146106a9578063dd62ed3e146106d3578063ee9907a41461070e578063f866c31914610741576101e1565b8063a9059cbb14610628578063c634dfaa14610661578063d0fc81d214610694576101e1565b80635eae177c1461052057806370a082311461055957806389d1a0fc1461058c57806394362e8b146105a157806395d89b41146105da578063a457c2d7146105ef576101e1565b806323b872dd1161013e578063395093511161011857806339509351146104265780633edb7cb81461045f578063445e8010146104985780634efecaa5146104e7576101e1565b806323b872dd1461037d578063313ce567146103c0578063325a9b13146103eb576101e1565b806306fdde03146101e6578063095ea7b3146102705780630e49072d146102bd57806312c87c2d146102f057806318160ddd146103235780631d51e7cf1461034a576101e1565b366101e1576005546101a49061010090046001600160a01b0316610784565b6101df5760405162461bcd60e51b815260040180806020018281038252603981526020018061256f6039913960400191505060405180910390fd5b005b600080fd5b3480156101f257600080fd5b506101fb6107aa565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023557818101518382015260200161021d565b50505050905090810190601f1680156102625780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027c57600080fd5b506102a96004803603604081101561029357600080fd5b506001600160a01b038135169060200135610841565b604080519115158252519081900360200190f35b3480156102c957600080fd5b506101df600480360360208110156102e057600080fd5b50356001600160a01b031661085f565b3480156102fc57600080fd5b506101df6004803603602081101561031357600080fd5b50356001600160a01b031661086c565b34801561032f57600080fd5b5061033861090b565b60408051918252519081900360200190f35b34801561035657600080fd5b506103386004803603602081101561036d57600080fd5b50356001600160a01b03166109cd565b34801561038957600080fd5b506102a9600480360360608110156103a057600080fd5b506001600160a01b038135811691602081013590911690604001356109e8565b3480156103cc57600080fd5b506103d5610a75565b6040805160ff9092168252519081900360200190f35b3480156103f757600080fd5b506101df6004803603604081101561040e57600080fd5b506001600160a01b0381358116916020013516610a7e565b34801561043257600080fd5b506102a96004803603604081101561044957600080fd5b506001600160a01b038135169060200135610ae4565b34801561046b57600080fd5b506101df6004803603604081101561048257600080fd5b506001600160a01b038135169060200135610b38565b3480156104a457600080fd5b506104cb600480360360208110156104bb57600080fd5b50356001600160a01b0316610c2d565b604080516001600160a01b039092168252519081900360200190f35b3480156104f357600080fd5b506103386004803603604081101561050a57600080fd5b506001600160a01b038135169060200135610c4b565b34801561052c57600080fd5b506102a96004803603604081101561054357600080fd5b506001600160a01b038135169060200135610cb9565b34801561056557600080fd5b506103386004803603602081101561057c57600080fd5b50356001600160a01b0316610d54565b34801561059857600080fd5b506104cb610e07565b3480156105ad57600080fd5b506101df600480360360408110156105c457600080fd5b506001600160a01b038135169060200135610e1b565b3480156105e657600080fd5b506101fb610ef0565b3480156105fb57600080fd5b506102a96004803603604081101561061257600080fd5b506001600160a01b038135169060200135610f51565b34801561063457600080fd5b506102a96004803603604081101561064b57600080fd5b506001600160a01b038135169060200135610fbf565b34801561066d57600080fd5b506103386004803603602081101561068457600080fd5b50356001600160a01b0316610fd3565b3480156106a057600080fd5b50610338610fde565b3480156106b557600080fd5b506101df600480360360208110156106cc57600080fd5b5035610fe4565b3480156106df57600080fd5b50610338600480360360408110156106f657600080fd5b506001600160a01b038135811691602001351661121e565b34801561071a57600080fd5b506103386004803603602081101561073157600080fd5b50356001600160a01b0316611249565b34801561074d57600080fd5b506101df6004803603606081101561076457600080fd5b506001600160a01b03813581169160208101359091169060400135611264565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b919050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108365780601f1061080b57610100808354040283529160200191610836565b820191906000526020600020905b81548152906001019060200180831161081957829003601f168201915b505050505090505b90565b600061085561084e6112bd565b84846112c1565b5060015b92915050565b61086933826113ad565b50565b6001600160a01b0381163314156108b45760405162461bcd60e51b81526004018080602001828103825260258152602001806125a86025913960400191505060405180910390fd5b3360008181526009602052604080822080546001600160a01b0319166001600160a01b03861690811790915590519092917fc2d6a42a9d5273283f73009a07aacfb043f2f91173a8d9d33b504afe898db08b91a350565b60008061091661159c565b90508061092757600091505061083e565b600b546005546040805163d15e005360e01b81526001600160a01b036101009093048316600482015290516109c7936109c293169163d15e0053916024808301926020929190829003018186803b15801561098157600080fd5b505afa158015610995573d6000803e3d6000fd5b505050506040513d60208110156109ab57600080fd5b50516109b6846115a2565b9063ffffffff6115b816565b611603565b91505090565b6001600160a01b031660009081526008602052604090205490565b60006109f584848461161c565b610a6b84610a016112bd565b610a66856040518060600160405280602881526020016125ee602891396001600160a01b038a16600090815260016020526040812090610a3f6112bd565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61168b16565b6112c1565b5060019392505050565b60055460ff1690565b6001600160a01b03828116600090815260096020526040902054163314610ad65760405162461bcd60e51b815260040180806020018281038252603a81526020018061279d603a913960400191505060405180910390fd5b610ae082826113ad565b5050565b6000610855610af16112bd565b84610a668560016000610b026112bd565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61172216565b600b546001600160a01b03163314610b815760405162461bcd60e51b81526004018080602001828103825260328152602001806127466032913960400191505060405180910390fd5b6000806000610b8f8561177c565b93509350935050610ba185838661186d565b610bab858561196d565b6000610bbd848663ffffffff611a7516565b610bcd57610bca86611ab7565b90505b856001600160a01b03167f90e5d3d68ec162d9c7de393037a3ede04dd44f68e051bf2ace4a73c299dbc4db868584610c055785610c08565b60005b60408051938452602084019290925282820152519081900360600190a2505050505050565b6001600160a01b039081166000908152600760205260409020541690565b600b546000906001600160a01b03163314610c975760405162461bcd60e51b81526004018080602001828103825260328152602001806127466032913960400191505060405180910390fd5b600554610cb39061010090046001600160a01b03168484611b69565b50919050565b600b54600554604080516376e9d61560e01b81526101009092046001600160a01b039081166004840152858116602484015260448301859052905160009391909116916376e9d615916064808301926020929190829003018186803b158015610d2157600080fd5b505afa158015610d35573d6000803e3d6000fd5b505050506040513d6020811015610d4b57600080fd5b50519392505050565b600080610d6083611c42565b6001600160a01b03841660009081526008602052604090205490915081158015610d88575080155b15610d98576000925050506107a5565b6001600160a01b0384811660009081526007602052604090205416610de957610de081610dd486610dcf868463ffffffff61172216565b611c5d565b9063ffffffff611a7516565b925050506107a5565b610de0610dfa82610dd48785611c5d565b839063ffffffff61172216565b60055461010090046001600160a01b031681565b600b546001600160a01b03163314610e645760405162461bcd60e51b81526004018080602001828103825260328152602001806127466032913960400191505060405180910390fd5b600080610e708461177c565b935093505050610e9484610e8d858561172290919063ffffffff16565b600061186d565b610e9e8484611d12565b604080518481526020810184905280820183905290516001600160a01b038616917fbe7799898ca2d813ff902b487c1b434ab45b47edd8f38b77ad5e99aae8341b7a919081900360600190a250505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108365780601f1061080b57610100808354040283529160200191610836565b6000610855610f5e6112bd565b84610a66856040518060600160405280602581526020016127786025913960016000610f886112bd565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61168b16565b6000610855610fcc6112bd565b848461161c565b600061085982611c42565b60001981565b60008111611039576040805162461bcd60e51b815260206004820181905260248201527f416d6f756e7420746f2072656465656d206e6565647320746f206265203e2030604482015290519081900360640190fd5b60008060006110473361177c565b9195509350915084905060001981141561105e5750825b8381111561109d5760405162461bcd60e51b81526004018080602001828103825260328152602001806124f56032913960400191505060405180910390fd5b6110a73382610cb9565b6110f8576040805162461bcd60e51b815260206004820152601b60248201527f5472616e736665722063616e6e6f7420626520616c6c6f7765642e0000000000604482015290519081900360640190fd5b61110333848361186d565b61110d338261196d565b600061111f858363ffffffff611a7516565b61112f5761112c33611ab7565b90505b600b546005546001600160a01b0391821691639895e3d891610100900416338561115f8a8263ffffffff611a7516565b6040518563ffffffff1660e01b815260040180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b03168152602001838152602001828152602001945050505050600060405180830381600087803b1580156111ce57600080fd5b505af11580156111e2573d6000803e3d6000fd5b50505050336001600160a01b03167fbd5034ffbd47e4e72a94baa2cdb74c6fad73cb3bcdc13036b72ec8306f5a7646838684610c055786610c08565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b031660009081526006602052604090205490565b600b546001600160a01b031633146112ad5760405162461bcd60e51b81526004018080602001828103825260328152602001806127466032913960400191505060405180910390fd5b6112b8838383611e0e565b505050565b3390565b6001600160a01b0383166113065760405162461bcd60e51b81526004018080602001828103825260248152602001806126f86024913960400191505060405180910390fd5b6001600160a01b03821661134b5760405162461bcd60e51b81526004018080602001828103825260228152602001806125276022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03808316600090815260076020526040902054811690821681141561140a5760405162461bcd60e51b815260040180806020018281038252602a815260200180612616602a913960400191505060405180910390fd5b6000806000806114198761177c565b9350935093509350600083116114605760405162461bcd60e51b81526004018080602001828103825260428152602001806126406042913960600191505060405180910390fd5b6001600160a01b0385161561147b5761147b8760008661186d565b866001600160a01b0316866001600160a01b03161415611507576001600160a01b038716600081815260076020908152604080832080546001600160a01b03191690558051878152918201869052818101859052519192917f5e3cad45b1fe24159d1cb39788d82d0f69cc15770aa96fba1d3d1a73487355949181900360600190a35050505050610ae0565b6001600160a01b03878116600090815260076020526040812080546001600160a01b03191692891692909217909155611543908890859061186d565b604080518481526020810184905280820183905290516001600160a01b0380891692908a16917f5e3cad45b1fe24159d1cb39788d82d0f69cc15770aa96fba1d3d1a73487355949181900360600190a350505050505050565b60025490565b600061085982633b9aca0063ffffffff611f5d16565b60006115fc6b033b2e3c9fd0803ce80000006115f06115dd868663ffffffff611f5d16565b6b019d971e4fe8401e7400000090611722565b9063ffffffff611fb616565b9392505050565b6000631dcd65006115fc633b9aca006115f08386611722565b82816116288282610cb9565b611679576040805162461bcd60e51b815260206004820152601b60248201527f5472616e736665722063616e6e6f7420626520616c6c6f7765642e0000000000604482015290519081900360640190fd5b611684858585611e0e565b5050505050565b6000818484111561171a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116df5781810151838201526020016116c7565b50505050905090810190601f16801561170c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156115fc576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600080600080600061178d86611c42565b9050600061179e82610dd489610d54565b90506117aa8782611d12565b600b546005546040805163d15e005360e01b81526101009092046001600160a01b0390811660048401529051600093919091169163d15e0053916024808301926020929190829003018186803b15801561180357600080fd5b505afa158015611817573d6000803e3d6000fd5b505050506040513d602081101561182d57600080fd5b50516001600160a01b038916600090815260066020526040902081905590508261185d818463ffffffff61172216565b9099909850919650945092505050565b6001600160a01b03808416600090815260076020526040902054168061189357506112b8565b60008061189f8361177c565b6001600160a01b03871660009081526008602052604090205491955093506118d59250869150610dd4908863ffffffff61172216565b6001600160a01b03808516600090815260086020908152604080832094909455600790529190912054168015611911576119118484600061186d565b60408051848152602081018490528082018890526060810187905290516001600160a01b038616917f70ff8cf632603e2bfd1afb7e4061acce53d95356b1be9726b99fa22ba733b01f919081900360800190a250505050505050565b6001600160a01b0382166119b25760405162461bcd60e51b81526004018080602001828103825260218152602001806126b26021913960400191505060405180910390fd5b6119be826000836112b8565b611a01816040518060600160405280602281526020016124d3602291396001600160a01b038516600090815260208190526040902054919063ffffffff61168b16565b6001600160a01b038316600090815260208190526040902055600254611a2d908263ffffffff611a7516565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006115fc83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061168b565b6001600160a01b038116600081815260076020908152604080832080546001600160a01b03191690558051838152918201839052818101839052519192839290917f5e3cad45b1fe24159d1cb39788d82d0f69cc15770aa96fba1d3d1a7348735594919081900360600190a36001600160a01b038216600090815260086020526040902054611b6157506001600160a01b03811660009081526006602052604081205560016107a5565b5060006107a5565b80611b73576112b8565b611b7c83610784565b15611c28576040516000906001600160a01b0384169061c35090849084818181858888f193505050503d8060008114611bd1576040519150601f19603f3d011682016040523d82523d6000602084013e611bd6565b606091505b5050905080611c22576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b506112b8565b6112b86001600160a01b038416838363ffffffff611ff816565b6001600160a01b031660009081526020819052604090205490565b6001600160a01b03808316600090815260066020908152604080832054600b54600554835163d15e005360e01b815261010090910487166004820152925194956115fc956109c2959394611d0694939092169263d15e00539260248082019391829003018186803b158015611cd157600080fd5b505afa158015611ce5573d6000803e3d6000fd5b505050506040513d6020811015611cfb57600080fd5b50516109b6876115a2565b9063ffffffff61204a16565b6001600160a01b038216611d6d576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611d79600083836112b8565b600254611d8c908263ffffffff61172216565b6002556001600160a01b038216600090815260208190526040902054611db8908263ffffffff61172216565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008111611e4d5760405162461bcd60e51b81526004018080602001828103825260308152602001806126826030913960400191505060405180910390fd5b6000806000611e5b8661177c565b93509350935050600080611e6e8761177c565b935093505050611e7f88858861186d565b611e9387610e8d848963ffffffff61172216565b611e9e888888612082565b6000611eb0868863ffffffff611a7516565b158015611ecf5750876001600160a01b0316896001600160a01b031614155b15611ee057611edd89611ab7565b90505b876001600160a01b0316896001600160a01b03167f89a178eaa27e0cd201bd795ca8ff716ac0df9618494510ca79771cfc66ffcde889888786611f235789611f26565b60005b60408051948552602085019390935283830191909152606083015260808201879052519081900360a00190a3505050505050505050565b600082611f6c57506000610859565b82820282848281611f7957fe5b04146115fc5760405162461bcd60e51b81526004018080602001828103825260218152602001806125cd6021913960400191505060405180910390fd5b60006115fc83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506121e9565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112b890849061224e565b60006002820461207a836115f061206d876b033b2e3c9fd0803ce8000000611f5d565b849063ffffffff61172216565b949350505050565b6001600160a01b0383166120c75760405162461bcd60e51b81526004018080602001828103825260258152602001806126d36025913960400191505060405180910390fd5b6001600160a01b03821661210c5760405162461bcd60e51b81526004018080602001828103825260238152602001806124b06023913960400191505060405180910390fd5b6121178383836112b8565b61215a81604051806060016040528060268152602001612549602691396001600160a01b038616600090815260208190526040902054919063ffffffff61168b16565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461218f908263ffffffff61172216565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081836122385760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156116df5781810151838201526020016116c7565b50600083858161224457fe5b0495945050505050565b60606122a3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122ff9092919063ffffffff16565b8051909150156112b8578080602001905160208110156122c257600080fd5b50516112b85760405162461bcd60e51b815260040180806020018281038252602a81526020018061271c602a913960400191505060405180910390fd5b606061207a8484600085606061231485612476565b612365576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106123a45780518252601f199092019160209182019101612385565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612406576040519150601f19603f3d011682016040523d82523d6000602084013e61240b565b606091505b5091509150811561241f57915061207a9050565b80511561242f5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156116df5781810151838201526020016116c7565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061207a57505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e6365557365722063616e6e6f742072656465656d206d6f7265207468616e2074686520617661696c61626c652062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655472616e736665727320617265206f6e6c7920616c6c6f7765642069662074686520756e6465726c79696e6720617373657420697320455448557365722063616e6e6f74206769766520616c6c6f77616e636520746f2068696d73656c66536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365496e74657265737420697320616c7265616479207265646972656374656420746f207468652075736572496e7465726573742073747265616d2063616e206f6e6c79206265207265646972656374656420696620746865726520697320612076616c69642062616c616e63655472616e7366657272656420616d6f756e74206e6565647320746f2062652067726561746572207468616e207a65726f45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645468652063616c6c6572206f6620746869732066756e6374696f6e206d7573742062652061206c656e64696e6720706f6f6c45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f43616c6c6572206973206e6f7420616c6c6f77656420746f2072656469726563742074686520696e746572657374206f66207468652075736572a264697066735822122036124f60105c60035698f550a3f538626a6e2de559fc7e3944d631faf8b418db64736f6c63430006080033a26469706673582212208570bd564a9af315e1bffc8f4e1757c54de968df3869f64d6c40e0e9aac176e264736f6c63430006080033'; + "0x60806040526000805534801561001457600080fd5b5061369a806100246000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80637cadffd9116100b8578063bf3441831161007c578063bf3441831461025d578063c4d66de814610270578063e8ae2f5b14610283578063eede87c114610296578063ef1f9373146102a9578063f53a2515146102bc57610137565b80637cadffd91461020957806380e17d871461021c578063a5bc826c14610224578063a8dc0f4514610237578063b75d6f341461024a57610137565b80634aebfb74116100ff5780634aebfb74146101a857806366bbd928146101bb57806372f46aaa146101ce5780637aca76eb146101e15780637af635a6146101f457610137565b80630dbb166d1461013c5780630e30428d1461015157806316f0115b146101645780631d2118f9146101825780633e72a45414610195575b600080fd5b61014f61014a366004612722565b6102cf565b005b61014f61015f3660046127d3565b610730565b61016c61090f565b60405161017991906129fe565b60405180910390f35b61014f6101903660046126ea565b61091e565b61014f6101a33660046126ab565b610a61565b61014f6101b6366004612838565b610d05565b61014f6101c93660046127d3565b610dbd565b61014f6101dc3660046127d3565b610f8f565b61014f6101ef3660046126ab565b611161565b6101fc61133b565b6040516101799190612bfb565b61014f6102173660046127d3565b611340565b61016c611512565b61014f6102323660046127fe565b611521565b61014f6102453660046126ab565b61172e565b61014f6102583660046126ab565b611908565b61014f61026b3660046126ab565b611ae2565b61014f61027e3660046126ab565b611cbc565b61014f6102913660046126ab565b611dee565b61014f6102a43660046127a2565b611fc8565b61014f6102b73660046126ab565b6121ab565b61014f6102ca3660046126ab565b612385565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801561031357600080fd5b505afa158015610327573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034b91906126ce565b6001600160a01b03161461037a5760405162461bcd60e51b815260040161037190612b1a565b60405180910390fd5b600060405161038890612674565b604051809103906000f0801580156103a4573d6000803e3d6000fd5b5090506060603460009054906101000a90046001600160a01b03168885896001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156103fa57600080fd5b505afa15801561040e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610436919081019061289a565b8a6001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b15801561046f57600080fd5b505afa158015610483573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104ab919081019061289a565b6040516024016104bf959493929190612a93565b60408051601f198184030181529181526020820180516001600160e01b0316633e17dbdd60e21b1790525163cf7a1d7760e01b81529091506001600160a01b0383169063cf7a1d779061051a908a9030908690600401612a5e565b600060405180830381600087803b15801561053457600080fd5b505af1158015610548573d6000803e3d6000fd5b5050603554604051633d38474960e11b81526001600160a01b039091169250637a708e929150610584908b9086908b908b908a90600401612a2c565b600060405180830381600087803b15801561059e57600080fd5b505af11580156105b2573d6000803e3d6000fd5b505050506105be612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906105ee908c906004016129fe565b60206040518083038186803b15801561060657600080fd5b505afa15801561061a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063e9190612926565b90506106538160ff871663ffffffff61255f16565b61066481600163ffffffff61257616565b61067581600063ffffffff6125a316565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d29276916106a8918d9190600401612b01565b600060405180830381600087803b1580156106c257600080fd5b505af11580156106d6573d6000803e3d6000fd5b50505050826001600160a01b0316896001600160a01b03167f1d9fcd0dc935b4778d5af97f55c4d7b2553257382f1ef25c412114c8eeebd88e8660405161071d91906129fe565b60405180910390a3505050505050505050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801561077457600080fd5b505afa158015610788573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ac91906126ce565b6001600160a01b0316146107d25760405162461bcd60e51b815260040161037190612b1a565b6107da612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f79061080a9086906004016129fe565b60206040518083038186803b15801561082257600080fd5b505afa158015610836573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085a9190612926565b905061086c818363ffffffff6125d016565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d292769161089f91879190600401612b01565b600060405180830381600087803b1580156108b957600080fd5b505af11580156108cd573d6000803e3d6000fd5b505050507f437dd3b61b7c7eee7fc70515c8846482dfca92e2e1e02af5d638c5d4878d67148383604051610902929190612b01565b60405180910390a1505050565b6035546001600160a01b031681565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801561096257600080fd5b505afa158015610976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099a91906126ce565b6001600160a01b0316146109c05760405162461bcd60e51b815260040161037190612b1a565b603554604051631d2118f960e01b81526001600160a01b0390911690631d2118f9906109f29085908590600401612a12565b600060405180830381600087803b158015610a0c57600080fd5b505af1158015610a20573d6000803e3d6000fd5b505050507f5644b64ebb0ce18c4032248ca52f58355469092ff072866c3dcd8640e817d6a58282604051610a55929190612a12565b60405180910390a15050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b158015610aa557600080fd5b505afa158015610ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610add91906126ce565b6001600160a01b031614610b035760405162461bcd60e51b815260040161037190612b1a565b6035546040516335ea6a7560e01b8152600091829182916001600160a01b0316906335ea6a7590610b389087906004016129fe565b6101406040518083038186803b158015610b5157600080fd5b505afa158015610b65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b89919061294b565b50505050505050925092509250826000148015610ba4575081155b8015610bae575080155b610bca5760405162461bcd60e51b815260040161037190612bb1565b610bd2612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f790610c029088906004016129fe565b60206040518083038186803b158015610c1a57600080fd5b505afa158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c529190612926565b9050610c6581600063ffffffff61257616565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691610c9891899190600401612b01565b600060405180830381600087803b158015610cb257600080fd5b505af1158015610cc6573d6000803e3d6000fd5b50506040516001600160a01b03881692507f6f60cf8bd0f218cabe1ea3150bd07b0b758c35c4cfdf7138017a283e65564d5e9150600090a25050505050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b158015610d4957600080fd5b505afa158015610d5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8191906126ce565b6001600160a01b031614610da75760405162461bcd60e51b815260040161037190612b1a565b610db58685848489886102cf565b505050505050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b158015610e0157600080fd5b505afa158015610e15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3991906126ce565b6001600160a01b031614610e5f5760405162461bcd60e51b815260040161037190612b1a565b610e67612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f790610e979086906004016129fe565b60206040518083038186803b158015610eaf57600080fd5b505afa158015610ec3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee79190612926565b9050610ef9818363ffffffff61255f16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691610f2c91879190600401612b01565b600060405180830381600087803b158015610f4657600080fd5b505af1158015610f5a573d6000803e3d6000fd5b505050507f2e73b7f1df792712003e6859f940c1e8711c3f1329474771fee71d2ec11631298383604051610902929190612b01565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b158015610fd357600080fd5b505afa158015610fe7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100b91906126ce565b6001600160a01b0316146110315760405162461bcd60e51b815260040161037190612b1a565b611039612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906110699086906004016129fe565b60206040518083038186803b15801561108157600080fd5b505afa158015611095573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b99190612926565b90506110cb818363ffffffff6125e716565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d29276916110fe91879190600401612b01565b600060405180830381600087803b15801561111857600080fd5b505af115801561112c573d6000803e3d6000fd5b505050507fda47540c7f7fd5a68c3285f3bb708f322424f948f41df6f51622fa24b39686648383604051610902929190612b01565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156111a557600080fd5b505afa1580156111b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111dd91906126ce565b6001600160a01b0316146112035760405162461bcd60e51b815260040161037190612b1a565b61120b612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f79061123b9085906004016129fe565b60206040518083038186803b15801561125357600080fd5b505afa158015611267573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128b9190612926565b905061129e81600163ffffffff6125a316565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d29276916112d191869190600401612b01565b600060405180830381600087803b1580156112eb57600080fd5b505af11580156112ff573d6000803e3d6000fd5b50506040516001600160a01b03851692507fda5cdb66c77023db6abe5226a4d4a40c3b8e768012f4ff4e446f62f60127fc569150600090a25050565b600381565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801561138457600080fd5b505afa158015611398573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bc91906126ce565b6001600160a01b0316146113e25760405162461bcd60e51b815260040161037190612b1a565b6113ea612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f79061141a9086906004016129fe565b60206040518083038186803b15801561143257600080fd5b505afa158015611446573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146a9190612926565b905061147c818363ffffffff6125f816565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d29276916114af91879190600401612b01565b600060405180830381600087803b1580156114c957600080fd5b505af11580156114dd573d6000803e3d6000fd5b505050507fe3ba662f7011e701056a43e8cf832242322eeff01453e7a72d01ec2af36d9aec8383604051610902929190612b01565b6034546001600160a01b031681565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801561156557600080fd5b505afa158015611579573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159d91906126ce565b6001600160a01b0316146115c35760405162461bcd60e51b815260040161037190612b1a565b6115cb612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906115fb9088906004016129fe565b60206040518083038186803b15801561161357600080fd5b505afa158015611627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164b9190612926565b905061165d818563ffffffff6125e716565b61166d818463ffffffff6125d016565b61167d818363ffffffff6125f816565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d29276916116b091899190600401612b01565b600060405180830381600087803b1580156116ca57600080fd5b505af11580156116de573d6000803e3d6000fd5b50505050846001600160a01b03167fdfe62f53e7707d64f99bca15d2bdf3facc4074bc047e7dec2ea130300e99274485858560405161171f93929190612c04565b60405180910390a25050505050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801561177257600080fd5b505afa158015611786573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117aa91906126ce565b6001600160a01b0316146117d05760405162461bcd60e51b815260040161037190612b1a565b6117d8612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906118089085906004016129fe565b60206040518083038186803b15801561182057600080fd5b505afa158015611834573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118589190612926565b905061186b81600063ffffffff61260f16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d292769161189e91869190600401612b01565b600060405180830381600087803b1580156118b857600080fd5b505af11580156118cc573d6000803e3d6000fd5b50506040516001600160a01b03851692507fe9a7e5fd4fc8ea18e602350324bf48e8f05d12434af0ce0be05743e6a5fdcb9e9150600090a25050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801561194c57600080fd5b505afa158015611960573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198491906126ce565b6001600160a01b0316146119aa5760405162461bcd60e51b815260040161037190612b1a565b6119b2612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906119e29085906004016129fe565b60206040518083038186803b1580156119fa57600080fd5b505afa158015611a0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a329190612926565b9050611a4581600163ffffffff61257616565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691611a7891869190600401612b01565b600060405180830381600087803b158015611a9257600080fd5b505af1158015611aa6573d6000803e3d6000fd5b50506040516001600160a01b03851692507f35b80cd8ea3440e9a8454f116fa658b858da1b64c86c48451f4559cefcdfb56c9150600090a25050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b158015611b2657600080fd5b505afa158015611b3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b5e91906126ce565b6001600160a01b031614611b845760405162461bcd60e51b815260040161037190612b1a565b611b8c612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f790611bbc9085906004016129fe565b60206040518083038186803b158015611bd457600080fd5b505afa158015611be8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0c9190612926565b9050611c1f81600163ffffffff61263c16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691611c5291869190600401612b01565b600060405180830381600087803b158015611c6c57600080fd5b505af1158015611c80573d6000803e3d6000fd5b50506040516001600160a01b03851692507f8dee2b2f3e98319ae6347eda521788f73f4086c9be9a594942b370b137fb8cb19150600090a25050565b6000611cc6612669565b60015490915060ff1680611cdd5750611cdd61266e565b80611ce9575060005481115b611d055760405162461bcd60e51b815260040161037190612b63565b60015460ff16158015611d24576001805460ff19168117905560008290555b603480546001600160a01b0319166001600160a01b03858116919091179182905560408051630261bf8b60e01b815290519290911691630261bf8b91600480820192602092909190829003018186803b158015611d8057600080fd5b505afa158015611d94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db891906126ce565b603580546001600160a01b0319166001600160a01b03929092169190911790558015611de9576001805460ff191690555b505050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b158015611e3257600080fd5b505afa158015611e46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6a91906126ce565b6001600160a01b031614611e905760405162461bcd60e51b815260040161037190612b1a565b611e98612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f790611ec89085906004016129fe565b60206040518083038186803b158015611ee057600080fd5b505afa158015611ef4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f189190612926565b9050611f2b81600063ffffffff6125e716565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d2927691611f5e91869190600401612b01565b600060405180830381600087803b158015611f7857600080fd5b505af1158015611f8c573d6000803e3d6000fd5b50506040516001600160a01b03851692507f9cc75e4cafc9a556a369bc53468649075680eb554d225d5918f199453824796d9150600090a25050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b15801561200c57600080fd5b505afa158015612020573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204491906126ce565b6001600160a01b03161461206a5760405162461bcd60e51b815260040161037190612b1a565b612072612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906120a29086906004016129fe565b60206040518083038186803b1580156120ba57600080fd5b505afa1580156120ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120f29190612926565b905061210581600163ffffffff61260f16565b612115818363ffffffff61263c16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d292769161214891879190600401612b01565b600060405180830381600087803b15801561216257600080fd5b505af1158015612176573d6000803e3d6000fd5b505050507fab2f7f9e5ca2772fafa94f355c1842a80ae6b9e41f83083098d81f67d7a0b5088383604051610902929190612ae6565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156121ef57600080fd5b505afa158015612203573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222791906126ce565b6001600160a01b03161461224d5760405162461bcd60e51b815260040161037190612b1a565b612255612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f7906122859085906004016129fe565b60206040518083038186803b15801561229d57600080fd5b505afa1580156122b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d59190612926565b90506122e881600063ffffffff6125a316565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d292769161231b91869190600401612b01565b600060405180830381600087803b15801561233557600080fd5b505af1158015612349573d6000803e3d6000fd5b50506040516001600160a01b03851692507f995959c2ceab6ce20e8cd89c904e449fd3e21918a0f420c9ec9340595585526b9150600090a25050565b603454604080516333128d5960e01b8152905133926001600160a01b0316916333128d59916004808301926020929190829003018186803b1580156123c957600080fd5b505afa1580156123dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061240191906126ce565b6001600160a01b0316146124275760405162461bcd60e51b815260040161037190612b1a565b61242f612681565b60355460405163c44b11f760e01b81526001600160a01b039091169063c44b11f79061245f9085906004016129fe565b60206040518083038186803b15801561247757600080fd5b505afa15801561248b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124af9190612926565b90506124c281600063ffffffff61263c16565b6035548151604051635c69493b60e11b81526001600160a01b039092169163b8d29276916124f591869190600401612b01565b600060405180830381600087803b15801561250f57600080fd5b505af1158015612523573d6000803e3d6000fd5b50506040516001600160a01b03851692507f8bbf35441ac2c607ddecadd3d8ee58636d32f217fad201fb2655581502dd84e39150600090a25050565b8151670f00ffffffffffff1660309190911b179052565b603881612584576000612587565b60015b8351670effffffffffffff1660ff9190911690911b1790915250565b6039816125b15760006125b4565b60015b8351670dffffffffffffff1660ff9190911690911b1790915250565b8151670fffffff0000ffff1660109190911b179052565b8151670fffffffffff000016179052565b8151670fff0000ffffffff1660209190911b179052565b603a8161261d576000612620565b60015b8351670bffffffffffffff1660ff9190911690911b1790915250565b603b8161264a57600061264d565b60015b83516707ffffffffffffff1660ff9190911690911b1790915250565b600390565b303b1590565b6109db80612c8a83390190565b6040518060200160405280600081525090565b803560ff811681146126a557600080fd5b92915050565b6000602082840312156126bc578081fd5b81356126c781612c71565b9392505050565b6000602082840312156126df578081fd5b81516126c781612c71565b600080604083850312156126fc578081fd5b823561270781612c71565b9150602083013561271781612c71565b809150509250929050565b60008060008060008060c0878903121561273a578182fd5b863561274581612c71565b9550602087013561275581612c71565b9450604087013561276581612c71565b9350606087013561277581612c71565b92506127848860808901612694565b915060a087013561279481612c71565b809150509295509295509295565b600080604083850312156127b4578182fd5b82356127bf81612c71565b915060208301358015158114612717578182fd5b600080604083850312156127e5578182fd5b82356127f081612c71565b946020939093013593505050565b60008060008060808587031215612813578384fd5b843561281e81612c71565b966020860135965060408601359560600135945092505050565b60008060008060008060c08789031215612850578182fd5b863561285b81612c71565b955061286a8860208901612694565b9450604087013561287a81612c71565b9350606087013561288a81612c71565b9250608087013561278481612c71565b6000602082840312156128ab578081fd5b815167ffffffffffffffff808211156128c2578283fd5b81840185601f8201126128d3578384fd5b80519250818311156128e3578384fd5b6128f6601f8401601f1916602001612c1a565b915082825285602084830101111561290c578384fd5b61291d836020840160208401612c41565b50949350505050565b600060208284031215612937578081fd5b6129416020612c1a565b9151825250919050565b6000806000806000806000806000806101408b8d03121561296a578788fd5b8a51995060208b0151985060408b0151975060608b0151965060808b0151955060a08b0151945060c08b0151935060e08b015192506101008b015191506101208b015164ffffffffff811681146129bf578182fd5b809150509295989b9194979a5092959850565b600081518084526129ea816020860160208601612c41565b601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b0395861681529385166020850152918416604084015283166060830152909116608082015260a00190565b6001600160a01b03848116825283166020820152606060408201819052600090612a8a908301846129d2565b95945050505050565b6001600160a01b0386811682528516602082015260ff8416604082015260a060608201819052600090612ac8908301856129d2565b8281036080840152612ada81856129d2565b98975050505050505050565b6001600160a01b039290921682521515602082015260400190565b6001600160a01b03929092168252602082015260400190565b60208082526029908201527f5468652063616c6c6572206d7573742062652061206c656e64696e6720706f6f604082015268361036b0b730b3b2b960b91b606082015260800190565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602a908201527f546865206c6971756964697479206f66207468652072657365727665206e65656040820152690647320746f20626520360b41b606082015260800190565b90815260200190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff81118282101715612c3957600080fd5b604052919050565b60005b83811015612c5c578181015183820152602001612c44565b83811115612c6b576000848401525b50505050565b6001600160a01b0381168114612c8657600080fd5b5056fe608060405234801561001057600080fd5b506109bb806100206000396000f3fe6080604052600436106100705760003560e01c80638f2839701161004e5780638f2839701461015e578063cf7a1d7714610191578063d1f5789414610250578063f851a4401461030657610070565b80633659cfe61461007a5780634f1ef286146100ad5780635c60da1b1461012d575b61007861031b565b005b34801561008657600080fd5b506100786004803603602081101561009d57600080fd5b50356001600160a01b0316610335565b610078600480360360408110156100c357600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100ee57600080fd5b82018360208201111561010057600080fd5b8035906020019184600183028401116401000000008311171561012257600080fd5b50909250905061036f565b34801561013957600080fd5b5061014261041c565b604080516001600160a01b039092168252519081900360200190f35b34801561016a57600080fd5b506100786004803603602081101561018157600080fd5b50356001600160a01b0316610459565b610078600480360360608110156101a757600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156101db57600080fd5b8201836020820111156101ed57600080fd5b8035906020019184600183028401116401000000008311171561020f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610513945050505050565b6100786004803603604081101561026657600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561029157600080fd5b8201836020820111156102a357600080fd5b803590602001918460018302840111640100000000831117156102c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610599945050505050565b34801561031257600080fd5b506101426106d9565b610323610704565b61033361032e61070c565b610731565b565b61033d610755565b6001600160a01b0316336001600160a01b031614156103645761035f8161077a565b61036c565b61036c61031b565b50565b610377610755565b6001600160a01b0316336001600160a01b0316141561040f576103998361077a565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d80600081146103f6576040519150601f19603f3d011682016040523d82523d6000602084013e6103fb565b606091505b505090508061040957600080fd5b50610417565b61041761031b565b505050565b6000610426610755565b6001600160a01b0316336001600160a01b0316141561044e5761044761070c565b9050610456565b61045661031b565b90565b610461610755565b6001600160a01b0316336001600160a01b03161415610364576001600160a01b0381166104bf5760405162461bcd60e51b81526004018080602001828103825260368152602001806109156036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104e8610755565b604080516001600160a01b03928316815291841660208301528051918290030190a161035f816107ba565b600061051d61070c565b6001600160a01b03161461053057600080fd5b61053a8382610599565b604080517232b4b8189c9b1b97383937bc3c9730b236b4b760691b815290519081900360130190207fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61036000199091011461059057fe5b610417826107ba565b60006105a361070c565b6001600160a01b0316146105b657600080fd5b604080517f656970313936372e70726f78792e696d706c656d656e746174696f6e000000008152905190819003601c0190207f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6000199091011461061657fe5b61061f826107de565b8051156106d5576000826001600160a01b0316826040518082805190602001908083835b602083106106625780518252601f199092019160209182019101610643565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146106c2576040519150601f19603f3d011682016040523d82523d6000602084013e6106c7565b606091505b505090508061041757600080fd5b5050565b60006106e3610755565b6001600160a01b0316336001600160a01b0316141561044e57610447610755565b610333610846565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610750573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b610783816107de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6107e7816108a6565b6108225760405162461bcd60e51b815260040180806020018281038252603b81526020018061094b603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b61084e610755565b6001600160a01b0316336001600160a01b0316141561089e5760405162461bcd60e51b81526004018080602001828103825260328152602001806108e36032913960400191505060405180910390fd5b610333610333565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906108da57508115155b94935050505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a26469706673582212205332daad1efa09e03cc1b95b9d51cadb3cf32e2d57907a628c0b4a5a20d8051f64736f6c63430006080033a264697066735822122088ca88e032811b81a92441fd08f080aae1525acd0a4fc036ff9b0fcea57cb1a764736f6c63430006080033"; diff --git a/types/LendingPoolCore.d.ts b/types/LendingPoolCore.d.ts index b3904cd8..74f2637e 100644 --- a/types/LendingPoolCore.d.ts +++ b/types/LendingPoolCore.d.ts @@ -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; - freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + freezeReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; getReserveATokenAddress(_reserve: string): Promise; @@ -456,7 +504,9 @@ export class LendingPoolCore extends Contract { 3: boolean; }>; - getReserveCurrentAverageStableBorrowRate(_reserve: string): Promise; + getReserveCurrentAverageStableBorrowRate( + _reserve: string + ): Promise; getReserveCurrentLiquidityRate(_reserve: string): Promise; @@ -494,7 +544,9 @@ export class LendingPoolCore extends Contract { getReserveUtilizationRate(_reserve: string): Promise; - getReserveVariableBorrowsCumulativeIndex(_reserve: string): Promise; + getReserveVariableBorrowsCumulativeIndex( + _reserve: string + ): Promise; getReserves(): Promise; @@ -517,17 +569,29 @@ export class LendingPoolCore extends Contract { 2: BigNumber; }>; - getUserCurrentBorrowRateMode(_reserve: string, _user: string): Promise; + getUserCurrentBorrowRateMode( + _reserve: string, + _user: string + ): Promise; - getUserCurrentStableBorrowRate(_reserve: string, _user: string): Promise; + getUserCurrentStableBorrowRate( + _reserve: string, + _user: string + ): Promise; getUserLastUpdate(_reserve: string, _user: string): Promise; getUserOriginationFee(_reserve: string, _user: string): Promise; - getUserUnderlyingAssetBalance(_reserve: string, _user: string): Promise; + getUserUnderlyingAssetBalance( + _reserve: string, + _user: string + ): Promise; - getUserVariableBorrowCumulativeIndex(_reserve: string, _user: string): Promise; + getUserVariableBorrowCumulativeIndex( + _reserve: string, + _user: string + ): Promise; initReserve( _reserve: string, @@ -552,7 +616,10 @@ export class LendingPoolCore extends Contract { _amount: BigNumberish ): Promise; - isUserUseReserveAsCollateralEnabled(_reserve: string, _user: string): Promise; + isUserUseReserveAsCollateralEnabled( + _reserve: string, + _user: string + ): Promise; lendingPoolAddress(): Promise; @@ -563,7 +630,9 @@ export class LendingPoolCore extends Contract { overrides?: TransactionOverrides ): Promise; - refreshConfiguration(overrides?: TransactionOverrides): Promise; + refreshConfiguration( + overrides?: TransactionOverrides + ): Promise; removeLastAddedReserve( _reserveToRemove: string, @@ -710,7 +779,10 @@ export class LendingPoolCore extends Contract { ): Promise; }; - activateReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + activateReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; addressesProvider(): Promise; @@ -753,7 +825,10 @@ export class LendingPoolCore extends Contract { overrides?: TransactionOverrides ): Promise; - freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + freezeReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; getReserveATokenAddress(_reserve: string): Promise; @@ -768,7 +843,9 @@ export class LendingPoolCore extends Contract { 3: boolean; }>; - getReserveCurrentAverageStableBorrowRate(_reserve: string): Promise; + getReserveCurrentAverageStableBorrowRate( + _reserve: string + ): Promise; getReserveCurrentLiquidityRate(_reserve: string): Promise; @@ -806,7 +883,9 @@ export class LendingPoolCore extends Contract { getReserveUtilizationRate(_reserve: string): Promise; - getReserveVariableBorrowsCumulativeIndex(_reserve: string): Promise; + getReserveVariableBorrowsCumulativeIndex( + _reserve: string + ): Promise; getReserves(): Promise; @@ -829,17 +908,29 @@ export class LendingPoolCore extends Contract { 2: BigNumber; }>; - getUserCurrentBorrowRateMode(_reserve: string, _user: string): Promise; + getUserCurrentBorrowRateMode( + _reserve: string, + _user: string + ): Promise; - getUserCurrentStableBorrowRate(_reserve: string, _user: string): Promise; + getUserCurrentStableBorrowRate( + _reserve: string, + _user: string + ): Promise; getUserLastUpdate(_reserve: string, _user: string): Promise; getUserOriginationFee(_reserve: string, _user: string): Promise; - getUserUnderlyingAssetBalance(_reserve: string, _user: string): Promise; + getUserUnderlyingAssetBalance( + _reserve: string, + _user: string + ): Promise; - getUserVariableBorrowCumulativeIndex(_reserve: string, _user: string): Promise; + getUserVariableBorrowCumulativeIndex( + _reserve: string, + _user: string + ): Promise; initReserve( _reserve: string, @@ -864,7 +955,10 @@ export class LendingPoolCore extends Contract { _amount: BigNumberish ): Promise; - isUserUseReserveAsCollateralEnabled(_reserve: string, _user: string): Promise; + isUserUseReserveAsCollateralEnabled( + _reserve: string, + _user: string + ): Promise; lendingPoolAddress(): Promise; @@ -875,7 +969,9 @@ export class LendingPoolCore extends Contract { overrides?: TransactionOverrides ): Promise; - refreshConfiguration(overrides?: TransactionOverrides): Promise; + refreshConfiguration( + overrides?: TransactionOverrides + ): Promise; removeLastAddedReserve( _reserveToRemove: string, @@ -943,7 +1039,10 @@ export class LendingPoolCore extends Contract { overrides?: TransactionOverrides ): Promise; - unfreezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + unfreezeReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; updateStateOnBorrow( _reserve: string, @@ -1074,7 +1173,9 @@ export class LendingPoolCore extends Contract { getReserveConfiguration(_reserve: string): Promise; - getReserveCurrentAverageStableBorrowRate(_reserve: string): Promise; + getReserveCurrentAverageStableBorrowRate( + _reserve: string + ): Promise; getReserveCurrentLiquidityRate(_reserve: string): Promise; @@ -1112,25 +1213,42 @@ export class LendingPoolCore extends Contract { getReserveUtilizationRate(_reserve: string): Promise; - getReserveVariableBorrowsCumulativeIndex(_reserve: string): Promise; + getReserveVariableBorrowsCumulativeIndex( + _reserve: string + ): Promise; getReserves(): Promise; - getUserBasicReserveData(_reserve: string, _user: string): Promise; + getUserBasicReserveData( + _reserve: string, + _user: string + ): Promise; getUserBorrowBalances(_reserve: string, _user: string): Promise; - getUserCurrentBorrowRateMode(_reserve: string, _user: string): Promise; + getUserCurrentBorrowRateMode( + _reserve: string, + _user: string + ): Promise; - getUserCurrentStableBorrowRate(_reserve: string, _user: string): Promise; + getUserCurrentStableBorrowRate( + _reserve: string, + _user: string + ): Promise; getUserLastUpdate(_reserve: string, _user: string): Promise; getUserOriginationFee(_reserve: string, _user: string): Promise; - getUserUnderlyingAssetBalance(_reserve: string, _user: string): Promise; + getUserUnderlyingAssetBalance( + _reserve: string, + _user: string + ): Promise; - getUserVariableBorrowCumulativeIndex(_reserve: string, _user: string): Promise; + getUserVariableBorrowCumulativeIndex( + _reserve: string, + _user: string + ): Promise; initReserve( _reserve: string, @@ -1151,11 +1269,18 @@ export class LendingPoolCore extends Contract { _amount: BigNumberish ): Promise; - isUserUseReserveAsCollateralEnabled(_reserve: string, _user: string): Promise; + isUserUseReserveAsCollateralEnabled( + _reserve: string, + _user: string + ): Promise; lendingPoolAddress(): Promise; - liquidateFee(_token: string, _amount: BigNumberish, _destination: string): Promise; + liquidateFee( + _token: string, + _amount: BigNumberish, + _destination: string + ): Promise; refreshConfiguration(): Promise; @@ -1163,18 +1288,30 @@ export class LendingPoolCore extends Contract { reservesList(arg0: BigNumberish): Promise; - setReserveBaseLTVasCollateral(_reserve: string, _ltv: BigNumberish): Promise; + setReserveBaseLTVasCollateral( + _reserve: string, + _ltv: BigNumberish + ): Promise; - setReserveDecimals(_reserve: string, _decimals: BigNumberish): Promise; + setReserveDecimals( + _reserve: string, + _decimals: BigNumberish + ): Promise; setReserveInterestRateStrategyAddress( _reserve: string, _rateStrategyAddress: string ): Promise; - setReserveLiquidationBonus(_reserve: string, _bonus: BigNumberish): Promise; + setReserveLiquidationBonus( + _reserve: string, + _bonus: BigNumberish + ): Promise; - setReserveLiquidationThreshold(_reserve: string, _threshold: BigNumberish): Promise; + setReserveLiquidationThreshold( + _reserve: string, + _threshold: BigNumberish + ): Promise; setUserUseReserveAsCollateral( _reserve: string, @@ -1189,9 +1326,17 @@ export class LendingPoolCore extends Contract { _destination: string ): Promise; - transferToReserve(_reserve: string, _user: string, _amount: BigNumberish): Promise; + transferToReserve( + _reserve: string, + _user: string, + _amount: BigNumberish + ): Promise; - transferToUser(_reserve: string, _user: string, _amount: BigNumberish): Promise; + transferToUser( + _reserve: string, + _user: string, + _amount: BigNumberish + ): Promise; unfreezeReserve(_reserve: string): Promise; diff --git a/types/LendingPoolCoreFactory.ts b/types/LendingPoolCoreFactory.ts index ab8b8a18..bfa06307 100644 --- a/types/LendingPoolCoreFactory.ts +++ b/types/LendingPoolCoreFactory.ts @@ -1,25 +1,34 @@ /* 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 {LendingPoolCore} from './LendingPoolCore'; +import { TransactionOverrides } from "."; +import { LendingPoolCore } from "./LendingPoolCore"; export class LendingPoolCoreFactory extends ContractFactory { - constructor(linkLibraryAddresses: LendingPoolCoreLibraryAddresses, signer?: Signer) { - super(_abi, LendingPoolCoreFactory.linkBytecode(linkLibraryAddresses), signer); + constructor( + linkLibraryAddresses: LendingPoolCoreLibraryAddresses, + signer?: Signer + ) { + super( + _abi, + LendingPoolCoreFactory.linkBytecode(linkLibraryAddresses), + signer + ); } - static linkBytecode(linkLibraryAddresses: LendingPoolCoreLibraryAddresses): string { + static linkBytecode( + linkLibraryAddresses: LendingPoolCoreLibraryAddresses + ): string { let linkedBytecode = _bytecode; linkedBytecode = linkedBytecode.replace( - new RegExp('__\\$2ec35834968386f54fa313129cf94664e4\\$__', 'g'), - linkLibraryAddresses['__$2ec35834968386f54fa313129cf94664e4$__'] - .replace(/^0x/, '') + new RegExp("__\\$2ec35834968386f54fa313129cf94664e4\\$__", "g"), + linkLibraryAddresses["__$2ec35834968386f54fa313129cf94664e4$__"] + .replace(/^0x/, "") .toLowerCase() ); @@ -38,7 +47,10 @@ export class LendingPoolCoreFactory extends ContractFactory { connect(signer: Signer): LendingPoolCoreFactory { return super.connect(signer) as LendingPoolCoreFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): LendingPoolCore { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): LendingPoolCore { return new Contract(address, _abi, signerOrProvider) as LendingPoolCore; } } @@ -49,1638 +61,1638 @@ const _abi = [ inputs: [ { indexed: true, - internalType: 'address', - name: 'reserve', - type: 'address', + internalType: "address", + name: "reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: 'liquidityRate', - type: 'uint256', + internalType: "uint256", + name: "liquidityRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'stableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "stableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'averageStableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "averageStableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'variableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'liquidityIndex', - type: 'uint256', + internalType: "uint256", + name: "liquidityIndex", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'variableBorrowIndex', - type: 'uint256', - }, + internalType: "uint256", + name: "variableBorrowIndex", + type: "uint256" + } ], - name: 'ReserveDataUpdated', - type: 'event', + name: "ReserveDataUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'reserve', - type: 'address', + internalType: "address", + name: "reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: 'liquidityRate', - type: 'uint256', + internalType: "uint256", + name: "liquidityRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'stableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "stableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'variableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'liquidityIndex', - type: 'uint256', + internalType: "uint256", + name: "liquidityIndex", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'variableBorrowIndex', - type: 'uint256', - }, + internalType: "uint256", + name: "variableBorrowIndex", + type: "uint256" + } ], - name: 'ReserveUpdated', - type: 'event', + name: "ReserveUpdated", + type: "event" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'activateReserve', + name: "activateReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [], - name: 'addressesProvider', + name: "addressesProvider", outputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'deactivateReserve', + name: "deactivateReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'disableBorrowingOnReserve', + name: "disableBorrowingOnReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'disableReserveAsCollateral', + name: "disableReserveAsCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'disableReserveStableBorrowRate', + name: "disableReserveStableBorrowRate", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'bool', - name: '_stableBorrowRateEnabled', - type: 'bool', - }, + internalType: "bool", + name: "_stableBorrowRateEnabled", + type: "bool" + } ], - name: 'enableBorrowingOnReserve', + name: "enableBorrowingOnReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_baseLTVasCollateral', - type: 'uint256', + internalType: "uint256", + name: "_baseLTVasCollateral", + type: "uint256" }, { - internalType: 'uint256', - name: '_liquidationThreshold', - type: 'uint256', + internalType: "uint256", + name: "_liquidationThreshold", + type: "uint256" }, { - internalType: 'uint256', - name: '_liquidationBonus', - type: 'uint256', - }, + internalType: "uint256", + name: "_liquidationBonus", + type: "uint256" + } ], - name: 'enableReserveAsCollateral', + name: "enableReserveAsCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'enableReserveStableBorrowRate', + name: "enableReserveStableBorrowRate", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'freezeReserve', + name: "freezeReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveATokenAddress', + name: "getReserveATokenAddress", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveAvailableLiquidity', + name: "getReserveAvailableLiquidity", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveConfiguration', + name: "getReserveConfiguration", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveCurrentAverageStableBorrowRate', + name: "getReserveCurrentAverageStableBorrowRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveCurrentLiquidityRate', + name: "getReserveCurrentLiquidityRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveCurrentStableBorrowRate', + name: "getReserveCurrentStableBorrowRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveCurrentVariableBorrowRate', + name: "getReserveCurrentVariableBorrowRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveDecimals', + name: "getReserveDecimals", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveInterestRateStrategyAddress', + name: "getReserveInterestRateStrategyAddress", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveIsActive', + name: "getReserveIsActive", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveIsFreezed', + name: "getReserveIsFreezed", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveIsStableBorrowRateEnabled', + name: "getReserveIsStableBorrowRateEnabled", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveLastUpdate', + name: "getReserveLastUpdate", outputs: [ { - internalType: 'uint40', - name: 'timestamp', - type: 'uint40', - }, + internalType: "uint40", + name: "timestamp", + type: "uint40" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveLiquidationBonus', + name: "getReserveLiquidationBonus", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveLiquidationThreshold', + name: "getReserveLiquidationThreshold", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveLiquidityCumulativeIndex', + name: "getReserveLiquidityCumulativeIndex", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveNormalizedIncome', + name: "getReserveNormalizedIncome", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveTotalBorrows', + name: "getReserveTotalBorrows", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveTotalBorrowsStable', + name: "getReserveTotalBorrowsStable", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveTotalBorrowsVariable', + name: "getReserveTotalBorrowsVariable", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveTotalLiquidity', + name: "getReserveTotalLiquidity", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveUtilizationRate', + name: "getReserveUtilizationRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveVariableBorrowsCumulativeIndex', + name: "getReserveVariableBorrowsCumulativeIndex", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getReserves', + name: "getReserves", outputs: [ { - internalType: 'address[]', - name: '', - type: 'address[]', - }, + internalType: "address[]", + 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: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserBasicReserveData', + name: "getUserBasicReserveData", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserBorrowBalances', + name: "getUserBorrowBalances", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserCurrentBorrowRateMode', + name: "getUserCurrentBorrowRateMode", outputs: [ { - internalType: 'enum CoreLibrary.InterestRateMode', - name: '', - type: 'uint8', - }, + internalType: "enum CoreLibrary.InterestRateMode", + name: "", + type: "uint8" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserCurrentStableBorrowRate', + name: "getUserCurrentStableBorrowRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserLastUpdate', + name: "getUserLastUpdate", outputs: [ { - internalType: 'uint256', - name: 'timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "timestamp", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserOriginationFee', + name: "getUserOriginationFee", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserUnderlyingAssetBalance', + name: "getUserUnderlyingAssetBalance", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserVariableBorrowCumulativeIndex', + name: "getUserVariableBorrowCumulativeIndex", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_aTokenAddress', - type: 'address', + internalType: "address", + name: "_aTokenAddress", + type: "address" }, { - internalType: 'uint256', - name: '_decimals', - type: 'uint256', + internalType: "uint256", + name: "_decimals", + type: "uint256" }, { - internalType: 'address', - name: '_interestRateStrategyAddress', - type: 'address', - }, + internalType: "address", + name: "_interestRateStrategyAddress", + type: "address" + } ], - name: 'initReserve', + name: "initReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '_addressesProvider', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + name: "_addressesProvider", + type: "address" + } ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'isReserveBorrowingEnabled', + name: "isReserveBorrowingEnabled", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'isReserveUsageAsCollateralEnabled', + name: "isReserveUsageAsCollateralEnabled", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - 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: 'isUserAllowedToBorrowAtStable', + name: "isUserAllowedToBorrowAtStable", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'isUserUseReserveAsCollateralEnabled', + name: "isUserUseReserveAsCollateralEnabled", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'lendingPoolAddress', + name: "lendingPoolAddress", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_token', - type: 'address', + internalType: "address", + name: "_token", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { - internalType: 'address', - name: '_destination', - type: 'address', - }, + internalType: "address", + name: "_destination", + type: "address" + } ], - name: 'liquidateFee', + name: "liquidateFee", outputs: [], - stateMutability: 'payable', - type: 'function', + stateMutability: "payable", + type: "function" }, { inputs: [], - name: 'refreshConfiguration', + name: "refreshConfiguration", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserveToRemove', - type: 'address', - }, + internalType: "address", + name: "_reserveToRemove", + type: "address" + } ], - name: 'removeLastAddedReserve', + name: "removeLastAddedReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - name: 'reservesList', + name: "reservesList", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + 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: 'uint256', - name: '_ltv', - type: 'uint256', - }, + internalType: "uint256", + name: "_ltv", + type: "uint256" + } ], - name: 'setReserveBaseLTVasCollateral', + name: "setReserveBaseLTVasCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_decimals', - type: 'uint256', - }, + internalType: "uint256", + name: "_decimals", + type: "uint256" + } ], - name: 'setReserveDecimals', + name: "setReserveDecimals", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_rateStrategyAddress', - type: 'address', - }, + internalType: "address", + name: "_rateStrategyAddress", + type: "address" + } ], - name: 'setReserveInterestRateStrategyAddress', + name: "setReserveInterestRateStrategyAddress", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_bonus', - type: 'uint256', - }, + internalType: "uint256", + name: "_bonus", + type: "uint256" + } ], - name: 'setReserveLiquidationBonus', + name: "setReserveLiquidationBonus", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, + internalType: "uint256", + name: "_threshold", + type: "uint256" + } ], - name: 'setReserveLiquidationThreshold', + name: "setReserveLiquidationThreshold", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'bool', - name: '_useAsCollateral', - type: 'bool', - }, + internalType: "bool", + name: "_useAsCollateral", + type: "bool" + } ], - name: 'setUserUseReserveAsCollateral', + name: "setUserUseReserveAsCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_token', - type: 'address', + internalType: "address", + name: "_token", + type: "address" }, { - 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: 'address', - name: '_destination', - type: 'address', - }, + internalType: "address", + name: "_destination", + type: "address" + } ], - name: 'transferToFeeCollectionAddress', + name: "transferToFeeCollectionAddress", outputs: [], - stateMutability: 'payable', - type: 'function', + stateMutability: "payable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address payable', - name: '_user', - type: 'address', + internalType: "address payable", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + internalType: "uint256", + name: "_amount", + type: "uint256" + } ], - name: 'transferToReserve', + name: "transferToReserve", outputs: [], - stateMutability: 'payable', - type: 'function', + stateMutability: "payable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address payable', - name: '_user', - type: 'address', + internalType: "address payable", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + internalType: "uint256", + name: "_amount", + type: "uint256" + } ], - name: 'transferToUser', + name: "transferToUser", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'unfreezeReserve', + name: "unfreezeReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amountBorrowed', - type: 'uint256', + internalType: "uint256", + name: "_amountBorrowed", + type: "uint256" }, { - internalType: 'uint256', - name: '_borrowFee', - type: 'uint256', + internalType: "uint256", + name: "_borrowFee", + type: "uint256" }, { - internalType: 'enum CoreLibrary.InterestRateMode', - name: '_rateMode', - type: 'uint8', - }, + internalType: "enum CoreLibrary.InterestRateMode", + name: "_rateMode", + type: "uint8" + } ], - name: 'updateStateOnBorrow', + name: "updateStateOnBorrow", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - 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: 'bool', - name: '_isFirstDeposit', - type: 'bool', - }, + internalType: "bool", + name: "_isFirstDeposit", + type: "bool" + } ], - name: 'updateStateOnDeposit', + name: "updateStateOnDeposit", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_availableLiquidityBefore', - type: 'uint256', + internalType: "uint256", + name: "_availableLiquidityBefore", + type: "uint256" }, { - internalType: 'uint256', - name: '_income', - type: 'uint256', + internalType: "uint256", + name: "_income", + type: "uint256" }, { - internalType: 'uint256', - name: '_protocolFee', - type: 'uint256', - }, + internalType: "uint256", + name: "_protocolFee", + type: "uint256" + } ], - name: 'updateStateOnFlashLoan', + name: "updateStateOnFlashLoan", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_principalReserve', - type: 'address', + internalType: "address", + name: "_principalReserve", + type: "address" }, { - internalType: 'address', - name: '_collateralReserve', - type: 'address', + internalType: "address", + name: "_collateralReserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amountToLiquidate', - type: 'uint256', + internalType: "uint256", + name: "_amountToLiquidate", + type: "uint256" }, { - internalType: 'uint256', - name: '_collateralToLiquidate', - type: 'uint256', + internalType: "uint256", + name: "_collateralToLiquidate", + type: "uint256" }, { - internalType: 'uint256', - name: '_feeLiquidated', - type: 'uint256', + internalType: "uint256", + name: "_feeLiquidated", + type: "uint256" }, { - internalType: 'uint256', - name: '_liquidatedCollateralForFee', - type: 'uint256', + internalType: "uint256", + name: "_liquidatedCollateralForFee", + type: "uint256" }, { - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" }, { - internalType: 'bool', - name: '_liquidatorReceivesAToken', - type: 'bool', - }, + internalType: "bool", + name: "_liquidatorReceivesAToken", + type: "bool" + } ], - name: 'updateStateOnLiquidation', + name: "updateStateOnLiquidation", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', - }, + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" + } ], - name: 'updateStateOnRebalance', + name: "updateStateOnRebalance", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amountRedeemed', - type: 'uint256', + internalType: "uint256", + name: "_amountRedeemed", + type: "uint256" }, { - internalType: 'bool', - name: '_userRedeemedEverything', - type: 'bool', - }, + internalType: "bool", + name: "_userRedeemedEverything", + type: "bool" + } ], - name: 'updateStateOnRedeem', + name: "updateStateOnRedeem", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_paybackAmountMinusFees', - type: 'uint256', + internalType: "uint256", + name: "_paybackAmountMinusFees", + type: "uint256" }, { - internalType: 'uint256', - name: '_originationFeeRepaid', - type: 'uint256', + internalType: "uint256", + name: "_originationFeeRepaid", + type: "uint256" }, { - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" }, { - internalType: 'bool', - name: '_repaidWholeLoan', - type: 'bool', - }, + internalType: "bool", + name: "_repaidWholeLoan", + type: "bool" + } ], - name: 'updateStateOnRepay', + name: "updateStateOnRepay", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_principalBorrowBalance', - type: 'uint256', + internalType: "uint256", + name: "_principalBorrowBalance", + type: "uint256" }, { - internalType: 'uint256', - name: '_compoundedBorrowBalance', - type: 'uint256', + internalType: "uint256", + name: "_compoundedBorrowBalance", + type: "uint256" }, { - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" }, { - internalType: 'enum CoreLibrary.InterestRateMode', - name: '_currentRateMode', - type: 'uint8', - }, + internalType: "enum CoreLibrary.InterestRateMode", + name: "_currentRateMode", + type: "uint8" + } ], - name: 'updateStateOnSwapRate', + name: "updateStateOnSwapRate", outputs: [ { - internalType: 'enum CoreLibrary.InterestRateMode', - name: '', - type: 'uint8', + internalType: "enum CoreLibrary.InterestRateMode", + name: "", + type: "uint8" }, { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { - stateMutability: 'payable', - type: 'receive', - }, + stateMutability: "payable", + type: "receive" + } ]; const _bytecode = - '0x60806040526000805534801561001457600080fd5b506158c180620000256000396000f3fe6080604052600436106104145760003560e01c8063a2353fdc1161021e578063d15e005311610123578063e8ae2f5b116100ab578063f61483111161007a578063f6148311146113ad578063f6ea8d7614611431578063fa51854c1461146c578063fa93b2a5146114b1578063feab31ac146114f45761045f565b8063e8ae2f5b146112d9578063eede87c11461130c578063ef1f937314611347578063f054ab461461137a5761045f565b8063dae4c4e7116100f2578063dae4c4e7146111c2578063e10076ad146111f5578063e2174d8614611230578063e240301914611273578063e6d18190146112a65761045f565b8063d15e0053146110ea578063d3ae26b31461111d578063d466016f14611132578063da12d96f1461116b5761045f565b8063bd7fd79a116101a6578063c540148e11610175578063c540148e14611000578063c72c4d1014611033578063c76a6c9c14611048578063c7d142371461107b578063d06e2ec1146110b75761045f565b8063bd7fd79a14610f34578063bfacad8414610f67578063c33cfd9014610f9a578063c4d66de814610fcd5761045f565b8063afcdbea3116101ed578063afcdbea314610e05578063b701d09314610e50578063b75d6f3414610e83578063b8c0f74514610eb6578063bcd6ffa414610ee95761045f565b8063a2353fdc14610d17578063a5bc826c14610d4a578063a8dc0f4514610d8f578063af825b0714610dc25761045f565b80635cf2e656116103245780637aca76eb116102ac578063906c0a411161027b578063906c0a4114610bea57806398bd473714610c1d5780639e3c4f3b14610c505780639e67484814610c8b5780639fb8afcd14610cbe5761045f565b80637aca76eb14610b1b5780637f90fec514610b4e57806388079d8814610b815780638f385c2214610bb45761045f565b806366d103f3116102f357806366d103f3146109ce57806368beb4d614610a095780636ae1441614610a745780636fffab0c14610aa757806370fb84f414610ae25761045f565b80635cf2e656146108f25780635fc526ff14610925578063646810831461098057806366bbd928146109955761045f565b80633443a14b116103a757806345330a401161037657806345330a40146107cc57806346bc0f28146108155780634a08accb146108485780634f1446091461087b5780634fe7a6e5146108c85761045f565b80633443a14b146106a557806334b3beee146106de57806337ac6fe41461072d5780633e72a454146107995761045f565b806318f9bbae116103e357806318f9bbae146105a25780631ca19f19146105d55780631d2118f91461063457806328fcf4d31461066f5761045f565b806305075d6e146104645780630902f1ac146104ab57806309ac29531461051057806318a4dbca146105555761045f565b3661045f576104223361152f565b61045d5760405162461bcd60e51b81526004018080602001828103825260368152602001806155f06036913960400191505060405180910390fd5b005b600080fd5b34801561047057600080fd5b506104976004803603602081101561048757600080fd5b50356001600160a01b031661156d565b604080519115158252519081900360200190f35b3480156104b757600080fd5b506104c0611595565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104fc5781810151838201526020016104e4565b505050509050019250505060405180910390f35b34801561051c57600080fd5b5061045d6004803603608081101561053357600080fd5b506001600160a01b0381351690602081013590604081013590606001356115f7565b34801561056157600080fd5b506105906004803603604081101561057857600080fd5b506001600160a01b03813581169160200135166116c5565b60408051918252519081900360200190f35b3480156105ae57600080fd5b50610497600480360360208110156105c557600080fd5b50356001600160a01b0316611758565b3480156105e157600080fd5b50610610600480360360408110156105f857600080fd5b506001600160a01b0381358116916020013516611780565b6040518082600281111561062057fe5b60ff16815260200191505060405180910390f35b34801561064057600080fd5b5061045d6004803603604081101561065757600080fd5b506001600160a01b03813581169160200135166117d5565b61045d6004803603606081101561068557600080fd5b506001600160a01b038135811691602081013590911690604001356118bb565b3480156106b157600080fd5b5061045d600480360360408110156106c857600080fd5b506001600160a01b038135169060200135611a86565b3480156106ea57600080fd5b506107116004803603602081101561070157600080fd5b50356001600160a01b0316611b5a565b604080516001600160a01b039092168252519081900360200190f35b34801561073957600080fd5b50610780600480360360a081101561075057600080fd5b5080356001600160a01b03908116916020810135909116906040810135906060810135906080013560ff16611b7b565b6040805192835260208301919091528051918290030190f35b3480156107a557600080fd5b5061045d600480360360208110156107bc57600080fd5b50356001600160a01b0316611c1b565b3480156107d857600080fd5b5061045d600480360360808110156107ef57600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516611cf7565b34801561082157600080fd5b506105906004803603602081101561083857600080fd5b50356001600160a01b0316611e51565b34801561085457600080fd5b506104976004803603602081101561086b57600080fd5b50356001600160a01b0316611e6f565b34801561088757600080fd5b506108ae6004803603602081101561089e57600080fd5b50356001600160a01b0316611e97565b6040805164ffffffffff9092168252519081900360200190f35b3480156108d457600080fd5b50610711600480360360208110156108eb57600080fd5b5035611ec3565b3480156108fe57600080fd5b506104976004803603602081101561091557600080fd5b50356001600160a01b0316611eea565b34801561093157600080fd5b506109586004803603602081101561094857600080fd5b50356001600160a01b0316611f12565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b34801561098c57600080fd5b5061045d611f50565b3480156109a157600080fd5b5061045d600480360360408110156109b857600080fd5b506001600160a01b03813516906020013561200f565b3480156109da57600080fd5b50610590600480360360408110156109f157600080fd5b506001600160a01b03813581169160200135166120e3565b348015610a1557600080fd5b5061045d6004803603610120811015610a2d57600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a08101359060c08101359060e08101359061010001351515612119565b348015610a8057600080fd5b5061071160048036036020811015610a9757600080fd5b50356001600160a01b03166121bb565b348015610ab357600080fd5b5061059060048036036040811015610aca57600080fd5b506001600160a01b03813581169160200135166121dc565b348015610aee57600080fd5b5061045d60048036036040811015610b0557600080fd5b506001600160a01b03813516906020013561220b565b348015610b2757600080fd5b5061045d60048036036020811015610b3e57600080fd5b50356001600160a01b03166122df565b348015610b5a57600080fd5b5061059060048036036020811015610b7157600080fd5b50356001600160a01b03166123c1565b348015610b8d57600080fd5b5061059060048036036020811015610ba457600080fd5b50356001600160a01b03166123df565b61045d60048036036060811015610bca57600080fd5b506001600160a01b03813581169160208101359160409091013516612507565b348015610bf657600080fd5b5061059060048036036020811015610c0d57600080fd5b50356001600160a01b031661261d565b348015610c2957600080fd5b5061059060048036036020811015610c4057600080fd5b50356001600160a01b03166126cd565b348015610c5c57600080fd5b5061049760048036036040811015610c7357600080fd5b506001600160a01b03813581169160200135166126eb565b348015610c9757600080fd5b5061049760048036036020811015610cae57600080fd5b50356001600160a01b0316612724565b348015610cca57600080fd5b50610cf960048036036040811015610ce157600080fd5b506001600160a01b038135811691602001351661274c565b60408051938452602084019290925282820152519081900360600190f35b348015610d2357600080fd5b5061059060048036036020811015610d3a57600080fd5b50356001600160a01b03166127d7565b348015610d5657600080fd5b5061045d60048036036080811015610d6d57600080fd5b506001600160a01b0381351690602081013590604081013590606001356127f5565b348015610d9b57600080fd5b5061045d60048036036020811015610db257600080fd5b50356001600160a01b0316612943565b348015610dce57600080fd5b5061059060048036036060811015610de557600080fd5b506001600160a01b03813581169160208101359091169060400135612a72565b348015610e1157600080fd5b5061045d60048036036080811015610e2857600080fd5b506001600160a01b038135811691602081013590911690604081013590606001351515612b12565b348015610e5c57600080fd5b5061059060048036036020811015610e7357600080fd5b50356001600160a01b0316612b9a565b348015610e8f57600080fd5b5061045d60048036036020811015610ea657600080fd5b50356001600160a01b0316612bb8565b348015610ec257600080fd5b5061045d60048036036020811015610ed957600080fd5b50356001600160a01b0316612ceb565b348015610ef557600080fd5b5061045d60048036036080811015610f0c57600080fd5b506001600160a01b038135811691602081013590911690604081013590606001351515612dc7565b348015610f4057600080fd5b5061059060048036036020811015610f5757600080fd5b50356001600160a01b0316612e4f565b348015610f7357600080fd5b5061059060048036036020811015610f8a57600080fd5b50356001600160a01b0316612e6a565b348015610fa657600080fd5b5061059060048036036020811015610fbd57600080fd5b50356001600160a01b0316612ed4565b348015610fd957600080fd5b5061045d60048036036020811015610ff057600080fd5b50356001600160a01b0316612f0d565b34801561100c57600080fd5b506105906004803603602081101561102357600080fd5b50356001600160a01b0316612fcc565b34801561103f57600080fd5b50610711612fea565b34801561105457600080fd5b506105906004803603602081101561106b57600080fd5b50356001600160a01b0316612ff9565b61045d6004803603608081101561109157600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516613017565b3480156110c357600080fd5b5061045d600480360360208110156110da57600080fd5b50356001600160a01b03166131c9565b3480156110f657600080fd5b506105906004803603602081101561110d57600080fd5b50356001600160a01b03166133ce565b34801561112957600080fd5b506107116133ef565b34801561113e57600080fd5b5061045d6004803603604081101561115557600080fd5b506001600160a01b0381351690602001356133fe565b34801561117757600080fd5b5061045d600480360360c081101561118e57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a0013515156134d2565b3480156111ce57600080fd5b5061045d600480360360208110156111e557600080fd5b50356001600160a01b0316613541565b34801561120157600080fd5b506109586004803603604081101561121857600080fd5b506001600160a01b0381358116916020013516613623565b34801561123c57600080fd5b506104976004803603606081101561125357600080fd5b506001600160a01b038135811691602081013590911690604001356136d0565b34801561127f57600080fd5b506105906004803603602081101561129657600080fd5b50356001600160a01b0316613766565b3480156112b257600080fd5b50610590600480360360208110156112c957600080fd5b50356001600160a01b031661380a565b3480156112e557600080fd5b5061045d600480360360208110156112fc57600080fd5b50356001600160a01b031661382b565b34801561131857600080fd5b5061045d6004803603604081101561132f57600080fd5b506001600160a01b0381351690602001351515613946565b34801561135357600080fd5b5061045d6004803603602081101561136a57600080fd5b50356001600160a01b0316613a7d565b34801561138657600080fd5b506105906004803603602081101561139d57600080fd5b50356001600160a01b0316613b59565b3480156113b957600080fd5b50611406600480360360c08110156113d057600080fd5b5080356001600160a01b039081169160208101359091169060408101359060608101359060808101359060a0013560ff16613b77565b6040518083600281111561141657fe5b60ff1681526020018281526020019250505060405180910390f35b34801561143d57600080fd5b506105906004803603604081101561145457600080fd5b506001600160a01b0381358116916020013516613c09565b34801561147857600080fd5b5061045d6004803603606081101561148f57600080fd5b506001600160a01b038135811691602081013590911690604001351515613c38565b3480156114bd57600080fd5b5061045d600480360360608110156114d457600080fd5b506001600160a01b03813581169160208101359091169060400135613cca565b34801561150057600080fd5b506105906004803603604081101561151757600080fd5b506001600160a01b0381358116916020013516613df1565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061156357508115155b925050505b919050565b6001600160a01b03166000908152603660205260409020600d0154600160e01b900460ff1690565b606060388054806020026020016040519081016040528092919081815260200182805480156115ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116115cf575b5050505050905090565b6034546001600160a01b031633146116405760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b61164a8482613e20565b6001600160a01b038416600090815260366020526040902061166b90613f5d565b60006116866116798661380a565b859063ffffffff613ff516565b6001600160a01b03861660009081526036602052604090209091506116b290828563ffffffff61404f16565b6116be858460006140ad565b5050505050565b6001600160a01b038083166000908152603660209081526040808320600c015481516370a0823160e01b8152868616600482015291519394169283926370a082319260248082019391829003018186803b15801561172257600080fd5b505afa158015611736573d6000803e3d6000fd5b505050506040513d602081101561174c57600080fd5b50519150505b92915050565b6001600160a01b03166000908152603660205260409020600d0154600160d01b900460ff1690565b6001600160a01b038082166000908152603760209081526040808320938616835292905290812080546117b7576000915050611752565b60008160030154116117ca5760026117cd565b60015b949350505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561181957600080fd5b505afa15801561182d573d6000803e3d6000fd5b505050506040513d602081101561184357600080fd5b50516001600160a01b03161461188a5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b039182166000908152603660205260409020600d0180546001600160a01b03191691909216179055565b6034546001600160a01b031633146119045760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b61190c614252565b6001600160a01b0316836001600160a01b0316146119815734156119615760405162461bcd60e51b81526004018080602001828103825260328152602001806156866032913960400191505060405180910390fd5b61197c6001600160a01b03841683308463ffffffff61426a16565b611a81565b803410156119c05760405162461bcd60e51b81526004018080602001828103825260358152602001806155bb6035913960400191505060405180910390fd5b80341115611a815760006119da348363ffffffff6142c416565b6040519091506000906001600160a01b0385169061c35090859084818181858888f193505050503d8060008114611a2d576040519150601f19603f3d011682016040523d82523d6000602084013e611a32565b606091505b50509050806116be576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611aca57600080fd5b505afa158015611ade573d6000803e3d6000fd5b505050506040513d6020811015611af457600080fd5b50516001600160a01b031614611b3b5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03909116600090815260366020526040902060090155565b6001600160a01b039081166000908152603660205260409020600c01541690565b60345460009081906001600160a01b03163314611bc95760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b600080611bd6898961274c565b9250509150611be9898984848b8a614306565b611bf7898989848a8a614335565b611c03896000896140ad565b611c0d898961445a565b999098509650505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611c5f57600080fd5b505afa158015611c73573d6000803e3d6000fd5b505050506040513d6020811015611c8957600080fd5b50516001600160a01b031614611cd05760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e01b19169055565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611d3b57600080fd5b505afa158015611d4f573d6000803e3d6000fd5b505050506040513d6020811015611d6557600080fd5b50516001600160a01b031614611dac5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b0380851660009081526036602052604080822081516304dda73560e21b8152600481019190915286841660248201526044810186905292841660648401525173__$2ec35834968386f54fa313129cf94664e4$__926313769cd4926084808301939192829003018186803b158015611e2a57600080fd5b505af4158015611e3e573d6000803e3d6000fd5b50505050611e4b846144ec565b50505050565b6001600160a01b031660009081526036602052604090206006015490565b6001600160a01b03166000908152603660205260409020600d0154600160e81b900460ff1690565b6001600160a01b03166000908152603660205260409020600d0154600160a01b900464ffffffffff1690565b60388181548110611ed057fe5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03166000908152603660205260409020600d0154600160c81b900460ff1690565b6001600160a01b03166000908152603660205260409020600b81015460088201546009830154600d909301549193909291600160d01b900460ff1690565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611f9457600080fd5b505afa158015611fa8573d6000803e3d6000fd5b505050506040513d6020811015611fbe57600080fd5b50516001600160a01b0316146120055760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b61200d614590565b565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561205357600080fd5b505afa158015612067573d6000803e3d6000fd5b505050506040513d602081101561207d57600080fd5b50516001600160a01b0316146120c45760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b039091166000908152603660205260409020600b0155565b6001600160a01b0390811660009081526037602090815260408083209490931682529290925290206004015464ffffffffff1690565b6034546001600160a01b031633146121625760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b61216e8988888561462b565b612177886146e4565b6121848988888786614708565b612190898760006140ad565b806121b0576121b08860006121ab888763ffffffff613ff516565b6140ad565b505050505050505050565b6001600160a01b039081166000908152603660205260409020600d01541690565b6001600160a01b0380821660009081526037602090815260408083209386168352929052206003015492915050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561224f57600080fd5b505afa158015612263573d6000803e3d6000fd5b505050506040513d602081101561227957600080fd5b50516001600160a01b0316146122c05760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b039091166000908152603660205260409020600a0155565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561232357600080fd5b505afa158015612337573d6000803e3d6000fd5b505050506040513d602081101561234d57600080fd5b50516001600160a01b0316146123945760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e81b1916600160e81b179055565b6001600160a01b031660009081526036602052604090206002015490565b6001600160a01b0380821660009081526036602090815260408083206035548251631b0c55dd60e11b815292519495919486949190921692633618abba9260048083019392829003018186803b15801561243857600080fd5b505afa15801561244c573d6000803e3d6000fd5b505050506040513d602081101561246257600080fd5b505160058301549091506124fc57806001600160a01b031663bb85c0bb856040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156124c657600080fd5b505afa1580156124da573d6000803e3d6000fd5b505050506040513d60208110156124f057600080fd5b50519250611568915050565b506005015492915050565b6034546001600160a01b031633146125505760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b80341561258e5760405162461bcd60e51b81526004018080602001828103825260368152602001806155356036913960400191505060405180910390fd5b612596614252565b6001600160a01b0316846001600160a01b0316146125cd576125c86001600160a01b038516828563ffffffff6147ba16565b611e4b565b6040516000906001600160a01b0383169061c35090869084818181858888f193505050503d8060008114611a2d576040519150601f19603f3d011682016040523d82523d6000602084013e611a32565b6001600160a01b038116600090815260366020526040812060048101546126c35780600d0160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b15801561268e57600080fd5b505afa1580156126a2573d6000803e3d6000fd5b505050506040513d60208110156126b857600080fd5b505191506115689050565b6004015492915050565b6001600160a01b031660009081526036602052604090206003015490565b6001600160a01b03908116600090815260376020908152604080832094909316825292909252902060040154600160281b900460ff1690565b6001600160a01b03166000908152603660205260409020600d0154600160d81b900460ff1690565b6001600160a01b038082166000908152603760209081526040808320938616835292905290812080548291829161278d5750600092508291508190506127d0565b80546001600160a01b03871660009081526036602052604081206127b290849061480c565b905081816127c6818363ffffffff6142c416565b9550955095505050505b9250925092565b6001600160a01b03166000908152603660205260409020600b015490565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561283957600080fd5b505afa15801561284d573d6000803e3d6000fd5b505050506040513d602081101561286357600080fd5b50516001600160a01b0316146128aa5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b038416600090815260366020526040808220815163126ee27360e11b81526004810191909152602481018690526044810185905260648101849052905173__$2ec35834968386f54fa313129cf94664e4$__926324ddc4e69260848082019391829003018186803b15801561292557600080fd5b505af4158015612939573d6000803e3d6000fd5b5050505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561298757600080fd5b505afa15801561299b573d6000803e3d6000fd5b505050506040513d60208110156129b157600080fd5b50516001600160a01b0316146129f85760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03811660009081526036602052604080822081516372efab5360e11b81526004810191909152905173__$2ec35834968386f54fa313129cf94664e4$__9263e5df56a69260248082019391829003018186803b158015612a5e57600080fd5b505af41580156116be573d6000803e3d6000fd5b6034546000906001600160a01b03163314612abe5760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b612ac98484846148fe565b612ad484848461494e565b612ae0846000806140ad565b506001600160a01b038083166000908152603760209081526040808320938716835292905220600301545b9392505050565b6034546001600160a01b03163314612b5b5760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b6001600160a01b0384166000908152603660205260409020612b7c90613f5d565b612b88846000846140ad565b8015611e4b57611e4b84846000613c38565b6001600160a01b031660009081526036602052604090206007015490565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015612bfc57600080fd5b505afa158015612c10573d6000803e3d6000fd5b505050506040513d6020811015612c2657600080fd5b50516001600160a01b031614612c6d5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b0381166000908152603660205260409020805415801590612c99575060008160070154115b612cd45760405162461bcd60e51b815260040180806020018281038252602481526020018061577e6024913960400191505060405180910390fd5b600d01805460ff60e01b1916600160e01b17905550565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015612d2f57600080fd5b505afa158015612d43573d6000803e3d6000fd5b505050506040513d6020811015612d5957600080fd5b50516001600160a01b031614612da05760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60d81b19169055565b6034546001600160a01b03163314612e105760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b6001600160a01b0384166000908152603660205260409020612e3190613f5d565b612e3d848360006140ad565b8015611e4b57611e4b84846001613c38565b6001600160a01b031660009081526036602052604090205490565b6001600160a01b038116600090815260366020526040812081612e8c826149b7565b905080612e9e57600092505050611568565b6000612ea985613766565b9050612ecb612ebe828463ffffffff613ff516565b839063ffffffff6149d416565b95945050505050565b6001600160a01b0381166000908152603660205260408120612b0b612ef8826149b7565b612f0185613766565b9063ffffffff613ff516565b6000612f17614a10565b60015490915060ff1680612f2e5750612f2e614a15565b80612f3a575060005481115b612f755760405162461bcd60e51b815260040180806020018281038252602e8152602001806157e7602e913960400191505060405180910390fd5b60015460ff16158015612f94576001805460ff19168117905560008290555b603580546001600160a01b0319166001600160a01b038516179055612fb7614590565b8015611a81576001805460ff19169055505050565b6001600160a01b031660009081526036602052604090206001015490565b6035546001600160a01b031681565b6001600160a01b03166000908152603660205260409020600a015490565b6034546001600160a01b031633146130605760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b80613069614252565b6001600160a01b0316856001600160a01b0316146130de5734156130be5760405162461bcd60e51b815260040180806020018281038252605f8152602001806156b8605f913960600191505060405180910390fd5b6130d96001600160a01b03861685838663ffffffff61426a16565b6116be565b8234101561311d5760405162461bcd60e51b81526004018080602001828103825260358152602001806155bb6035913960400191505060405180910390fd5b6040516000906001600160a01b0383169061c35090869084818181858888f193505050503d806000811461316d576040519150601f19603f3d011682016040523d82523d6000602084013e613172565b606091505b50509050806131c1576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561320d57600080fd5b505afa158015613221573d6000803e3d6000fd5b505050506040513d602081101561323757600080fd5b50516001600160a01b03161461327e5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6038805460009190600019810190811061329457fe5b6000918252602090912001546001600160a01b039081169150821681146132ec5760405162461bcd60e51b815260040180806020018281038252603d815260200180615649603d913960400191505060405180910390fd5b6132f58161380a565b156133315760405162461bcd60e51b81526004018080602001828103825260308152602001806157176030913960400191505060405180910390fd5b6001600160a01b0381166000908152603660205260408120600d81018054600c830180546001600160a01b0319169055600b8301849055838355600783018490556008830184905560098301849055600a90920192909255600168ff00ffff000000000160a01b031916905560388054806133a857fe5b600082815260209020810160001990810180546001600160a01b03191690550190555050565b6001600160a01b0381166000908152603660205260408120612b0b81614a1b565b6034546001600160a01b031681565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561344257600080fd5b505afa158015613456573d6000803e3d6000fd5b505050506040513d602081101561346c57600080fd5b50516001600160a01b0316146134b35760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03909116600090815260366020526040902060080155565b6034546001600160a01b0316331461351b5760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b61352786868685614a49565b613535868686868686614ab0565b6131c1868560006140ad565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561358557600080fd5b505afa158015613599573d6000803e3d6000fd5b505050506040513d60208110156135af57600080fd5b50516001600160a01b0316146135f65760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60d81b1916600160d81b179055565b6001600160a01b03808316600081815260366020908152604080832094861683526037825280832093835292905290812090918291829182918261366789896116c5565b8254909150613694576004909101549095506000945084935060ff600160281b9091041691506136c79050565b806136a5838563ffffffff61480c16565b6002840154600490940154919850965091945050600160281b900460ff169150505b92959194509250565b6001600160a01b038381166000818152603660209081526040808320948716835260378252808320938352929052908120600d830154919291600160d81b900460ff1661372257600092505050612b0b565b6004810154600160281b900460ff1615806137495750600d820154600160d01b900460ff16155b8061375c575061375986866116c5565b84115b9695505050505050565b600080613771614252565b6001600160a01b0316836001600160a01b03161415613791575047611752565b604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156137d757600080fd5b505afa1580156137eb573d6000803e3d6000fd5b505050506040513d602081101561380157600080fd5b50519392505050565b6001600160a01b0381166000908152603660205260408120611752906149b7565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561386f57600080fd5b505afa158015613883573d6000803e3d6000fd5b505050506040513d602081101561389957600080fd5b50516001600160a01b0316146138e05760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b038116600090815260366020526040808220815163041e0b2d60e51b81526004810191909152905173__$2ec35834968386f54fa313129cf94664e4$__926383c165a09260248082019391829003018186803b158015612a5e57600080fd5b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561398a57600080fd5b505afa15801561399e573d6000803e3d6000fd5b505050506040513d60208110156139b457600080fd5b50516001600160a01b0316146139fb5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b0382166000908152603660205260408082208151637b1dd5df60e11b815260048101919091528315156024820152905173__$2ec35834968386f54fa313129cf94664e4$__9263f63babbe9260448082019391829003018186803b158015613a6957600080fd5b505af41580156131c1573d6000803e3d6000fd5b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015613ac157600080fd5b505afa158015613ad5573d6000803e3d6000fd5b505050506040513d6020811015613aeb57600080fd5b50516001600160a01b031614613b325760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e81b19169055565b6001600160a01b031660009081526036602052604090206009015490565b60345460009081906001600160a01b03163314613bc55760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b613bd28888888887614b2d565b6000613be089898787614c2c565b9050613bee896000806140ad565b80613bf98a8a61445a565b9250925050965096945050505050565b6001600160a01b0380821660009081526037602090815260408083209386168352929052206001015492915050565b6034546001600160a01b03163314613c815760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b6001600160a01b0391821660009081526037602090815260408083209590941682529390935291206004018054911515600160281b0265ff000000000019909216919091179055565b6034546001600160a01b03163314613d135760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b613d1b614252565b6001600160a01b0316836001600160a01b031614613d4d5761197c6001600160a01b038416838363ffffffff6147ba16565b6040516000906001600160a01b0384169061c35090849084818181858888f193505050503d8060008114613d9d576040519150601f19603f3d011682016040523d82523d6000602084013e613da2565b606091505b5050905080611e4b576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b6001600160a01b0380821660009081526037602090815260408083209386168352929052206002015492915050565b60355460408051637744894b60e11b815290516000926001600160a01b03169163ee891296916004808301926020929190829003018186803b158015613e6557600080fd5b505afa158015613e79573d6000803e3d6000fd5b505050506040513d6020811015613e8f57600080fd5b50519050613e9b614252565b6001600160a01b0316836001600160a01b031614613ecd5761197c6001600160a01b038416828463ffffffff6147ba16565b6040516000906001600160a01b0383169084908381818185875af1925050503d8060008114613f18576040519150601f19603f3d011682016040523d82523d6000602084013e613f1d565b606091505b5050905080611e4b5760405162461bcd60e51b81526004018080602001828103825260248152602001806157c36024913960400191505060405180910390fd5b6000613f68826149b7565b90508015613ff1576001820154600d830154600091613f9491600160a01b900464ffffffffff16614d2a565b8354909150613faa90829063ffffffff614d7516565b83556004830154600d840154600091613fd091600160a01b900464ffffffffff16614dad565b9050613fe9846007015482614d7590919063ffffffff16565b600785015550505b5050565b600082820183811015612b0b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061407261405d84614dfc565b61406684614dfc565b9063ffffffff6149d416565b9050600061408e614081614e12565b839063ffffffff613ff516565b85549091506140a490829063ffffffff614d7516565b90945550505050565b6001600160a01b0380841660009081526036602052604081206006810154600d820154919390929182918291166357e37af0896140fd896140f18c612f0185613766565b9063ffffffff6142c416565b88600201548960030154896040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b031681526020018581526020018481526020018381526020018281526020019550505050505060606040518083038186803b15801561416a57600080fd5b505afa15801561417e573d6000803e3d6000fd5b505050506040513d606081101561419457600080fd5b50805160208083015160409384015160018a0184905560058a0182905560048a01819055600d8a01805464ffffffffff4216600160a01b0264ffffffffff60a01b19909116179055895460078b015486518681529485018490528487018b905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a25050505050505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611e4b908590614e22565b6000612b0b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614fda565b6001600160a01b038616600090815260366020526040902061432790613f5d565b6131c1868686868686615071565b6001600160a01b038087166000818152603660209081526040808320948a1683526037825280832093835292905220600183600281111561437257fe5b141561438e576005820154600382015560006001820155614405565b600283600281111561439c57fe5b14156143b8576000600382015560078201546001820155614405565b6040805162461bcd60e51b815260206004820152601860248201527f496e76616c696420626f72726f772072617465206d6f64650000000000000000604482015290519081900360640190fd5b805461441d908690612f01908963ffffffff613ff516565b81556002810154614434908563ffffffff613ff516565b6002820155600401805464ffffffffff19164264ffffffffff1617905550505050505050565b6000806144678484611780565b9050600081600281111561447757fe5b1415614487576000915050611752565b600181600281111561449557fe5b146144bb576001600160a01b0384166000908152603660205260409020600401546117cd565b50506001600160a01b0390811660009081526037602090815260408083209490931682529290925290206003015490565b6000805b60385481101561453957826001600160a01b03166038828154811061451157fe5b6000918252602090912001546001600160a01b0316141561453157600191505b6001016144f0565b5080613ff157603880546001810182556000919091527f38395c5dceade9603479b177b68959049485df8aa97b39f3533039af5f4561990180546001600160a01b0384166001600160a01b03199091161790555050565b603560009054906101000a90046001600160a01b03166001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156145de57600080fd5b505afa1580156145f2573d6000803e3d6000fd5b505050506040513d602081101561460857600080fd5b5051603480546001600160a01b0319166001600160a01b03909216919091179055565b6001600160a01b0380851660008181526036602090815260408083209488168352603782528083209383529290522061466382613f5d565b600061466f8787611780565b905060015b81600281111561468057fe5b14156146bb57600382015461469e908490869063ffffffff6151cd16565b60038201546146b6908490879063ffffffff61523d16565b6146db565b6146cb838563ffffffff61534816565b6146db838663ffffffff61536916565b50505050505050565b6001600160a01b038116600090815260366020526040902061470590613f5d565b50565b6001600160a01b03808516600090815260376020908152604080832093891683529281528282206036909152919020815461474f9086906140f1908663ffffffff613ff516565b8255600261475d8888611780565b600281111561476857fe5b141561477957600781015460018301555b831561479a576002820154614794908563ffffffff6142c416565b60028301555b50600401805464ffffffffff19164264ffffffffff161790555050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a81908490614e22565b815460009061481d57506000611752565b600061482c8460000154614dfc565b60038501549091506000908190156148605760038601546004870154614859919064ffffffffff16614dad565b90506148a2565b61489f8660010154614066876007015461489389600401548a600d0160149054906101000a900464ffffffffff16614dad565b9063ffffffff614d7516565b90505b6148ba6148b5848363ffffffff614d7516565b6153c1565b86549092508214156148f557600486015464ffffffffff1642146148f55785546148eb90600163ffffffff613ff516565b9350505050611752565b50949350505050565b6001600160a01b0380841660008181526036602090815260408083209487168352603782528083209383529290522061493682613f5d565b60038101546116be908390859063ffffffff6151cd16565b6001600160a01b03808316600090815260376020908152604080832093871683529281528282206036909152919020815461498f908463ffffffff613ff516565b8255600501546003820155600401805464ffffffffff19164264ffffffffff16179055505050565b600061175282600301548360020154613ff590919063ffffffff16565b6000600282046117cd83614a046149f7876b033b2e3c9fd0803ce80000006153da565b849063ffffffff613ff516565b9063ffffffff61543316565b600790565b303b1590565b600080612b0b8360000154614893856001015486600d0160149054906101000a900464ffffffffff16614d2a565b6001600160a01b03808516600081815260366020908152604080832094881683526037825280832093835292905290812090614a858787611780565b6001600160a01b0388166000908152603660205260409020909150614aa990613f5d565b6001614674565b6001600160a01b038087166000818152603660209081526040808320948a16835260378252808320938352929052208054614af79087906140f1908763ffffffff613ff516565b8155600782015460018201558215614b185760006003820181905560018201555b6002810154614434908663ffffffff6142c416565b6001600160a01b03808616600081815260366020908152604080832094891683526037825280832093835292905220614b6582613f5d565b6001836002811115614b7357fe5b1415614ba5576003810154614b8f83878363ffffffff61523d16565b614b9f838663ffffffff61534816565b506146db565b6002836002811115614bb357fe5b1415614bdf576005820154614bce838763ffffffff61536916565b614b9f83868363ffffffff6151cd16565b6040805162461bcd60e51b815260206004820152601a60248201527f496e76616c69642072617465206d6f6465207265636569766564000000000000604482015290519081900360640190fd5b6001600160a01b03808416600090815260376020908152604080832093881683529281528282206036909152918120909190826002856002811115614c6d57fe5b1415614c8e5750600581015460038301556000600183810191909155614cf2565b6001856002811115614c9c57fe5b1415614cbb575060006003830155600781015460018301556002614cf2565b60405162461bcd60e51b815260040180806020018281038252602381526020018061583f6023913960400191505060405180910390fd5b8254614d04908763ffffffff613ff516565b83556004909201805464ffffffffff19164264ffffffffff161790555095945050505050565b600080614d444264ffffffffff851663ffffffff6142c416565b90506000614d5861405d6301e13380614dfc565b9050612ecb614d65614e12565b612f01878463ffffffff614d7516565b6000612b0b6b033b2e3c9fd0803ce8000000614a04614d9a868663ffffffff6153da16565b6b019d971e4fe8401e7400000090613ff5565b600080614dc74264ffffffffff851663ffffffff6142c416565b90506000614ddf856301e1338063ffffffff61543316565b9050612ecb82614df06149f7614e12565b9063ffffffff61547516565b600061175282633b9aca0063ffffffff6153da16565b6b033b2e3c9fd0803ce800000090565b614e34826001600160a01b031661152f565b614e85576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310614ec35780518252601f199092019160209182019101614ea4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614f25576040519150601f19603f3d011682016040523d82523d6000602084013e614f2a565b606091505b509150915081614f81576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611e4b57808060200190516020811015614f9d57600080fd5b5051611e4b5760405162461bcd60e51b815260040180806020018281038252602a815260200180615862602a913960400191505060405180910390fd5b600081848411156150695760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561502e578181015183820152602001615016565b50505050905090810190601f16801561505b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600061507d8787611780565b6001600160a01b038816600090815260366020526040902090915060018260028111156150a657fe5b14156150ef576001600160a01b038088166000908152603760209081526040808320938c1683529290522060038101546150e9908390899063ffffffff61523d16565b50615113565b60028260028111156150fd57fe5b141561511357615113818763ffffffff61536916565b600061512985612f01898963ffffffff613ff516565b9050600184600281111561513957fe5b141561515c576005820154615157908390839063ffffffff6151cd16565b6121b0565b600284600281111561516a57fe5b141561518057615157828263ffffffff61534816565b6040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206e657720626f72726f772072617465206d6f646500000000604482015290519081900360640190fd5b60028301546151e2818463ffffffff613ff516565b600285015560006151f68361489386614dfc565b9050600061520b866006015461489385614dfc565b905061522d61521d8760020154614dfc565b614066848463ffffffff613ff516565b8660060181905550505050505050565b8183600201541015615296576040805162461bcd60e51b815260206004820152601a60248201527f496e76616c696420616d6f756e7420746f206465637265617365000000000000604482015290519081900360640190fd5b60028301546152ab818463ffffffff6142c416565b600285018190556152c3575060006006840155611a81565b60006152d28361489386614dfc565b905060006152e7866006015461489385614dfc565b9050818110156153285760405162461bcd60e51b81526004018080602001828103825260238152602001806156266023913960400191505060405180910390fd5b61522d6153388760020154614dfc565b614066838563ffffffff6142c416565b600382015461535d908263ffffffff613ff516565b82600301819055505050565b80826003015410156153ac5760405162461bcd60e51b815260040180806020018281038252605081526020018061556b6050913960600191505060405180910390fd5b600382015461535d908263ffffffff6142c416565b6000631dcd6500612b0b633b9aca00614a048386613ff5565b6000826153e957506000611752565b828202828482816153f657fe5b0414612b0b5760405162461bcd60e51b81526004018080602001828103825260218152602001806157a26021913960400191505060405180910390fd5b6000612b0b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506154cf565b600060028206615491576b033b2e3c9fd0803ce8000000615493565b825b90506002820491505b8115611752576154ac8384614d75565b925060028206156154c4576154c18184614d75565b90505b60028204915061549c565b6000818361551e5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561502e578181015183820152602001615016565b50600083858161552a57fe5b049594505050505056fe466565206c69717569646174696f6e20646f6573206e6f74207265717569726520616e79207472616e73666572206f662076616c756554686520616d6f756e742074686174206973206265696e6720737562747261637465642066726f6d20746865207661726961626c6520746f74616c20626f72726f777320697320696e636f727265637454686520616d6f756e7420616e64207468652076616c75652073656e7420746f206465706f73697420646f206e6f74206d617463684f6e6c7920636f6e7472616374732063616e2073656e6420657468657220746f20746865204c656e64696e6720706f6f6c20636f726554686520616d6f756e747320746f20737562747261637420646f6e2774206d6174636852657365727665206265696e672072656d6f76656420697320646966666572656e74207468616e20746865207265736572766520726571756573746564557365722069732073656e64696e672045544820616c6f6e67207769746820746865204552433230207472616e736665722e557365722069732073656e64696e672045544820616c6f6e67207769746820746865204552433230207472616e736665722e20436865636b207468652076616c756520617474726962757465206f6620746865207472616e73616374696f6e43616e6e6f742072656d6f7665206120726573657276652077697468206c6971756964697479206465706f73697465645468652063616c6c6572206d7573742062652061206c656e64696e6720706f6f6c20636f6e666967757261746f7220636f6e74726163745265736572766520686173206e6f74206265656e20696e697469616c697a656420796574536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775472616e7366657220746f20746f6b656e206469737472696275746f72206661696c6564436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65645468652063616c6c6572206d7573742062652061206c656e64696e6720706f6f6c20636f6e7472616374496e76616c696420696e7465726573742072617465206d6f64652072656365697665645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122085ecebc0b6ea7654d4fd399b74f9b075839bf5fe9c23bda63907b987cbec1fe264736f6c63430006080033'; + "0x60806040526000805534801561001457600080fd5b506158c180620000256000396000f3fe6080604052600436106104145760003560e01c8063a2353fdc1161021e578063d15e005311610123578063e8ae2f5b116100ab578063f61483111161007a578063f6148311146113ad578063f6ea8d7614611431578063fa51854c1461146c578063fa93b2a5146114b1578063feab31ac146114f45761045f565b8063e8ae2f5b146112d9578063eede87c11461130c578063ef1f937314611347578063f054ab461461137a5761045f565b8063dae4c4e7116100f2578063dae4c4e7146111c2578063e10076ad146111f5578063e2174d8614611230578063e240301914611273578063e6d18190146112a65761045f565b8063d15e0053146110ea578063d3ae26b31461111d578063d466016f14611132578063da12d96f1461116b5761045f565b8063bd7fd79a116101a6578063c540148e11610175578063c540148e14611000578063c72c4d1014611033578063c76a6c9c14611048578063c7d142371461107b578063d06e2ec1146110b75761045f565b8063bd7fd79a14610f34578063bfacad8414610f67578063c33cfd9014610f9a578063c4d66de814610fcd5761045f565b8063afcdbea3116101ed578063afcdbea314610e05578063b701d09314610e50578063b75d6f3414610e83578063b8c0f74514610eb6578063bcd6ffa414610ee95761045f565b8063a2353fdc14610d17578063a5bc826c14610d4a578063a8dc0f4514610d8f578063af825b0714610dc25761045f565b80635cf2e656116103245780637aca76eb116102ac578063906c0a411161027b578063906c0a4114610bea57806398bd473714610c1d5780639e3c4f3b14610c505780639e67484814610c8b5780639fb8afcd14610cbe5761045f565b80637aca76eb14610b1b5780637f90fec514610b4e57806388079d8814610b815780638f385c2214610bb45761045f565b806366d103f3116102f357806366d103f3146109ce57806368beb4d614610a095780636ae1441614610a745780636fffab0c14610aa757806370fb84f414610ae25761045f565b80635cf2e656146108f25780635fc526ff14610925578063646810831461098057806366bbd928146109955761045f565b80633443a14b116103a757806345330a401161037657806345330a40146107cc57806346bc0f28146108155780634a08accb146108485780634f1446091461087b5780634fe7a6e5146108c85761045f565b80633443a14b146106a557806334b3beee146106de57806337ac6fe41461072d5780633e72a454146107995761045f565b806318f9bbae116103e357806318f9bbae146105a25780631ca19f19146105d55780631d2118f91461063457806328fcf4d31461066f5761045f565b806305075d6e146104645780630902f1ac146104ab57806309ac29531461051057806318a4dbca146105555761045f565b3661045f576104223361152f565b61045d5760405162461bcd60e51b81526004018080602001828103825260368152602001806155f06036913960400191505060405180910390fd5b005b600080fd5b34801561047057600080fd5b506104976004803603602081101561048757600080fd5b50356001600160a01b031661156d565b604080519115158252519081900360200190f35b3480156104b757600080fd5b506104c0611595565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104fc5781810151838201526020016104e4565b505050509050019250505060405180910390f35b34801561051c57600080fd5b5061045d6004803603608081101561053357600080fd5b506001600160a01b0381351690602081013590604081013590606001356115f7565b34801561056157600080fd5b506105906004803603604081101561057857600080fd5b506001600160a01b03813581169160200135166116c5565b60408051918252519081900360200190f35b3480156105ae57600080fd5b50610497600480360360208110156105c557600080fd5b50356001600160a01b0316611758565b3480156105e157600080fd5b50610610600480360360408110156105f857600080fd5b506001600160a01b0381358116916020013516611780565b6040518082600281111561062057fe5b60ff16815260200191505060405180910390f35b34801561064057600080fd5b5061045d6004803603604081101561065757600080fd5b506001600160a01b03813581169160200135166117d5565b61045d6004803603606081101561068557600080fd5b506001600160a01b038135811691602081013590911690604001356118bb565b3480156106b157600080fd5b5061045d600480360360408110156106c857600080fd5b506001600160a01b038135169060200135611a86565b3480156106ea57600080fd5b506107116004803603602081101561070157600080fd5b50356001600160a01b0316611b5a565b604080516001600160a01b039092168252519081900360200190f35b34801561073957600080fd5b50610780600480360360a081101561075057600080fd5b5080356001600160a01b03908116916020810135909116906040810135906060810135906080013560ff16611b7b565b6040805192835260208301919091528051918290030190f35b3480156107a557600080fd5b5061045d600480360360208110156107bc57600080fd5b50356001600160a01b0316611c1b565b3480156107d857600080fd5b5061045d600480360360808110156107ef57600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516611cf7565b34801561082157600080fd5b506105906004803603602081101561083857600080fd5b50356001600160a01b0316611e51565b34801561085457600080fd5b506104976004803603602081101561086b57600080fd5b50356001600160a01b0316611e6f565b34801561088757600080fd5b506108ae6004803603602081101561089e57600080fd5b50356001600160a01b0316611e97565b6040805164ffffffffff9092168252519081900360200190f35b3480156108d457600080fd5b50610711600480360360208110156108eb57600080fd5b5035611ec3565b3480156108fe57600080fd5b506104976004803603602081101561091557600080fd5b50356001600160a01b0316611eea565b34801561093157600080fd5b506109586004803603602081101561094857600080fd5b50356001600160a01b0316611f12565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b34801561098c57600080fd5b5061045d611f50565b3480156109a157600080fd5b5061045d600480360360408110156109b857600080fd5b506001600160a01b03813516906020013561200f565b3480156109da57600080fd5b50610590600480360360408110156109f157600080fd5b506001600160a01b03813581169160200135166120e3565b348015610a1557600080fd5b5061045d6004803603610120811015610a2d57600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a08101359060c08101359060e08101359061010001351515612119565b348015610a8057600080fd5b5061071160048036036020811015610a9757600080fd5b50356001600160a01b03166121bb565b348015610ab357600080fd5b5061059060048036036040811015610aca57600080fd5b506001600160a01b03813581169160200135166121dc565b348015610aee57600080fd5b5061045d60048036036040811015610b0557600080fd5b506001600160a01b03813516906020013561220b565b348015610b2757600080fd5b5061045d60048036036020811015610b3e57600080fd5b50356001600160a01b03166122df565b348015610b5a57600080fd5b5061059060048036036020811015610b7157600080fd5b50356001600160a01b03166123c1565b348015610b8d57600080fd5b5061059060048036036020811015610ba457600080fd5b50356001600160a01b03166123df565b61045d60048036036060811015610bca57600080fd5b506001600160a01b03813581169160208101359160409091013516612507565b348015610bf657600080fd5b5061059060048036036020811015610c0d57600080fd5b50356001600160a01b031661261d565b348015610c2957600080fd5b5061059060048036036020811015610c4057600080fd5b50356001600160a01b03166126cd565b348015610c5c57600080fd5b5061049760048036036040811015610c7357600080fd5b506001600160a01b03813581169160200135166126eb565b348015610c9757600080fd5b5061049760048036036020811015610cae57600080fd5b50356001600160a01b0316612724565b348015610cca57600080fd5b50610cf960048036036040811015610ce157600080fd5b506001600160a01b038135811691602001351661274c565b60408051938452602084019290925282820152519081900360600190f35b348015610d2357600080fd5b5061059060048036036020811015610d3a57600080fd5b50356001600160a01b03166127d7565b348015610d5657600080fd5b5061045d60048036036080811015610d6d57600080fd5b506001600160a01b0381351690602081013590604081013590606001356127f5565b348015610d9b57600080fd5b5061045d60048036036020811015610db257600080fd5b50356001600160a01b0316612943565b348015610dce57600080fd5b5061059060048036036060811015610de557600080fd5b506001600160a01b03813581169160208101359091169060400135612a72565b348015610e1157600080fd5b5061045d60048036036080811015610e2857600080fd5b506001600160a01b038135811691602081013590911690604081013590606001351515612b12565b348015610e5c57600080fd5b5061059060048036036020811015610e7357600080fd5b50356001600160a01b0316612b9a565b348015610e8f57600080fd5b5061045d60048036036020811015610ea657600080fd5b50356001600160a01b0316612bb8565b348015610ec257600080fd5b5061045d60048036036020811015610ed957600080fd5b50356001600160a01b0316612ceb565b348015610ef557600080fd5b5061045d60048036036080811015610f0c57600080fd5b506001600160a01b038135811691602081013590911690604081013590606001351515612dc7565b348015610f4057600080fd5b5061059060048036036020811015610f5757600080fd5b50356001600160a01b0316612e4f565b348015610f7357600080fd5b5061059060048036036020811015610f8a57600080fd5b50356001600160a01b0316612e6a565b348015610fa657600080fd5b5061059060048036036020811015610fbd57600080fd5b50356001600160a01b0316612ed4565b348015610fd957600080fd5b5061045d60048036036020811015610ff057600080fd5b50356001600160a01b0316612f0d565b34801561100c57600080fd5b506105906004803603602081101561102357600080fd5b50356001600160a01b0316612fcc565b34801561103f57600080fd5b50610711612fea565b34801561105457600080fd5b506105906004803603602081101561106b57600080fd5b50356001600160a01b0316612ff9565b61045d6004803603608081101561109157600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516613017565b3480156110c357600080fd5b5061045d600480360360208110156110da57600080fd5b50356001600160a01b03166131c9565b3480156110f657600080fd5b506105906004803603602081101561110d57600080fd5b50356001600160a01b03166133ce565b34801561112957600080fd5b506107116133ef565b34801561113e57600080fd5b5061045d6004803603604081101561115557600080fd5b506001600160a01b0381351690602001356133fe565b34801561117757600080fd5b5061045d600480360360c081101561118e57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a0013515156134d2565b3480156111ce57600080fd5b5061045d600480360360208110156111e557600080fd5b50356001600160a01b0316613541565b34801561120157600080fd5b506109586004803603604081101561121857600080fd5b506001600160a01b0381358116916020013516613623565b34801561123c57600080fd5b506104976004803603606081101561125357600080fd5b506001600160a01b038135811691602081013590911690604001356136d0565b34801561127f57600080fd5b506105906004803603602081101561129657600080fd5b50356001600160a01b0316613766565b3480156112b257600080fd5b50610590600480360360208110156112c957600080fd5b50356001600160a01b031661380a565b3480156112e557600080fd5b5061045d600480360360208110156112fc57600080fd5b50356001600160a01b031661382b565b34801561131857600080fd5b5061045d6004803603604081101561132f57600080fd5b506001600160a01b0381351690602001351515613946565b34801561135357600080fd5b5061045d6004803603602081101561136a57600080fd5b50356001600160a01b0316613a7d565b34801561138657600080fd5b506105906004803603602081101561139d57600080fd5b50356001600160a01b0316613b59565b3480156113b957600080fd5b50611406600480360360c08110156113d057600080fd5b5080356001600160a01b039081169160208101359091169060408101359060608101359060808101359060a0013560ff16613b77565b6040518083600281111561141657fe5b60ff1681526020018281526020019250505060405180910390f35b34801561143d57600080fd5b506105906004803603604081101561145457600080fd5b506001600160a01b0381358116916020013516613c09565b34801561147857600080fd5b5061045d6004803603606081101561148f57600080fd5b506001600160a01b038135811691602081013590911690604001351515613c38565b3480156114bd57600080fd5b5061045d600480360360608110156114d457600080fd5b506001600160a01b03813581169160208101359091169060400135613cca565b34801561150057600080fd5b506105906004803603604081101561151757600080fd5b506001600160a01b0381358116916020013516613df1565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061156357508115155b925050505b919050565b6001600160a01b03166000908152603660205260409020600d0154600160e01b900460ff1690565b606060388054806020026020016040519081016040528092919081815260200182805480156115ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116115cf575b5050505050905090565b6034546001600160a01b031633146116405760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b61164a8482613e20565b6001600160a01b038416600090815260366020526040902061166b90613f5d565b60006116866116798661380a565b859063ffffffff613ff516565b6001600160a01b03861660009081526036602052604090209091506116b290828563ffffffff61404f16565b6116be858460006140ad565b5050505050565b6001600160a01b038083166000908152603660209081526040808320600c015481516370a0823160e01b8152868616600482015291519394169283926370a082319260248082019391829003018186803b15801561172257600080fd5b505afa158015611736573d6000803e3d6000fd5b505050506040513d602081101561174c57600080fd5b50519150505b92915050565b6001600160a01b03166000908152603660205260409020600d0154600160d01b900460ff1690565b6001600160a01b038082166000908152603760209081526040808320938616835292905290812080546117b7576000915050611752565b60008160030154116117ca5760026117cd565b60015b949350505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561181957600080fd5b505afa15801561182d573d6000803e3d6000fd5b505050506040513d602081101561184357600080fd5b50516001600160a01b03161461188a5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b039182166000908152603660205260409020600d0180546001600160a01b03191691909216179055565b6034546001600160a01b031633146119045760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b61190c614252565b6001600160a01b0316836001600160a01b0316146119815734156119615760405162461bcd60e51b81526004018080602001828103825260328152602001806156866032913960400191505060405180910390fd5b61197c6001600160a01b03841683308463ffffffff61426a16565b611a81565b803410156119c05760405162461bcd60e51b81526004018080602001828103825260358152602001806155bb6035913960400191505060405180910390fd5b80341115611a815760006119da348363ffffffff6142c416565b6040519091506000906001600160a01b0385169061c35090859084818181858888f193505050503d8060008114611a2d576040519150601f19603f3d011682016040523d82523d6000602084013e611a32565b606091505b50509050806116be576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611aca57600080fd5b505afa158015611ade573d6000803e3d6000fd5b505050506040513d6020811015611af457600080fd5b50516001600160a01b031614611b3b5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03909116600090815260366020526040902060090155565b6001600160a01b039081166000908152603660205260409020600c01541690565b60345460009081906001600160a01b03163314611bc95760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b600080611bd6898961274c565b9250509150611be9898984848b8a614306565b611bf7898989848a8a614335565b611c03896000896140ad565b611c0d898961445a565b999098509650505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611c5f57600080fd5b505afa158015611c73573d6000803e3d6000fd5b505050506040513d6020811015611c8957600080fd5b50516001600160a01b031614611cd05760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e01b19169055565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611d3b57600080fd5b505afa158015611d4f573d6000803e3d6000fd5b505050506040513d6020811015611d6557600080fd5b50516001600160a01b031614611dac5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b0380851660009081526036602052604080822081516304dda73560e21b8152600481019190915286841660248201526044810186905292841660648401525173__$2ec35834968386f54fa313129cf94664e4$__926313769cd4926084808301939192829003018186803b158015611e2a57600080fd5b505af4158015611e3e573d6000803e3d6000fd5b50505050611e4b846144ec565b50505050565b6001600160a01b031660009081526036602052604090206006015490565b6001600160a01b03166000908152603660205260409020600d0154600160e81b900460ff1690565b6001600160a01b03166000908152603660205260409020600d0154600160a01b900464ffffffffff1690565b60388181548110611ed057fe5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03166000908152603660205260409020600d0154600160c81b900460ff1690565b6001600160a01b03166000908152603660205260409020600b81015460088201546009830154600d909301549193909291600160d01b900460ff1690565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611f9457600080fd5b505afa158015611fa8573d6000803e3d6000fd5b505050506040513d6020811015611fbe57600080fd5b50516001600160a01b0316146120055760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b61200d614590565b565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561205357600080fd5b505afa158015612067573d6000803e3d6000fd5b505050506040513d602081101561207d57600080fd5b50516001600160a01b0316146120c45760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b039091166000908152603660205260409020600b0155565b6001600160a01b0390811660009081526037602090815260408083209490931682529290925290206004015464ffffffffff1690565b6034546001600160a01b031633146121625760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b61216e8988888561462b565b612177886146e4565b6121848988888786614708565b612190898760006140ad565b806121b0576121b08860006121ab888763ffffffff613ff516565b6140ad565b505050505050505050565b6001600160a01b039081166000908152603660205260409020600d01541690565b6001600160a01b0380821660009081526037602090815260408083209386168352929052206003015492915050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561224f57600080fd5b505afa158015612263573d6000803e3d6000fd5b505050506040513d602081101561227957600080fd5b50516001600160a01b0316146122c05760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b039091166000908152603660205260409020600a0155565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561232357600080fd5b505afa158015612337573d6000803e3d6000fd5b505050506040513d602081101561234d57600080fd5b50516001600160a01b0316146123945760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e81b1916600160e81b179055565b6001600160a01b031660009081526036602052604090206002015490565b6001600160a01b0380821660009081526036602090815260408083206035548251631b0c55dd60e11b815292519495919486949190921692633618abba9260048083019392829003018186803b15801561243857600080fd5b505afa15801561244c573d6000803e3d6000fd5b505050506040513d602081101561246257600080fd5b505160058301549091506124fc57806001600160a01b031663bb85c0bb856040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156124c657600080fd5b505afa1580156124da573d6000803e3d6000fd5b505050506040513d60208110156124f057600080fd5b50519250611568915050565b506005015492915050565b6034546001600160a01b031633146125505760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b80341561258e5760405162461bcd60e51b81526004018080602001828103825260368152602001806155356036913960400191505060405180910390fd5b612596614252565b6001600160a01b0316846001600160a01b0316146125cd576125c86001600160a01b038516828563ffffffff6147ba16565b611e4b565b6040516000906001600160a01b0383169061c35090869084818181858888f193505050503d8060008114611a2d576040519150601f19603f3d011682016040523d82523d6000602084013e611a32565b6001600160a01b038116600090815260366020526040812060048101546126c35780600d0160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b15801561268e57600080fd5b505afa1580156126a2573d6000803e3d6000fd5b505050506040513d60208110156126b857600080fd5b505191506115689050565b6004015492915050565b6001600160a01b031660009081526036602052604090206003015490565b6001600160a01b03908116600090815260376020908152604080832094909316825292909252902060040154600160281b900460ff1690565b6001600160a01b03166000908152603660205260409020600d0154600160d81b900460ff1690565b6001600160a01b038082166000908152603760209081526040808320938616835292905290812080548291829161278d5750600092508291508190506127d0565b80546001600160a01b03871660009081526036602052604081206127b290849061480c565b905081816127c6818363ffffffff6142c416565b9550955095505050505b9250925092565b6001600160a01b03166000908152603660205260409020600b015490565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561283957600080fd5b505afa15801561284d573d6000803e3d6000fd5b505050506040513d602081101561286357600080fd5b50516001600160a01b0316146128aa5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b038416600090815260366020526040808220815163126ee27360e11b81526004810191909152602481018690526044810185905260648101849052905173__$2ec35834968386f54fa313129cf94664e4$__926324ddc4e69260848082019391829003018186803b15801561292557600080fd5b505af4158015612939573d6000803e3d6000fd5b5050505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561298757600080fd5b505afa15801561299b573d6000803e3d6000fd5b505050506040513d60208110156129b157600080fd5b50516001600160a01b0316146129f85760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03811660009081526036602052604080822081516372efab5360e11b81526004810191909152905173__$2ec35834968386f54fa313129cf94664e4$__9263e5df56a69260248082019391829003018186803b158015612a5e57600080fd5b505af41580156116be573d6000803e3d6000fd5b6034546000906001600160a01b03163314612abe5760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b612ac98484846148fe565b612ad484848461494e565b612ae0846000806140ad565b506001600160a01b038083166000908152603760209081526040808320938716835292905220600301545b9392505050565b6034546001600160a01b03163314612b5b5760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b6001600160a01b0384166000908152603660205260409020612b7c90613f5d565b612b88846000846140ad565b8015611e4b57611e4b84846000613c38565b6001600160a01b031660009081526036602052604090206007015490565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015612bfc57600080fd5b505afa158015612c10573d6000803e3d6000fd5b505050506040513d6020811015612c2657600080fd5b50516001600160a01b031614612c6d5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b0381166000908152603660205260409020805415801590612c99575060008160070154115b612cd45760405162461bcd60e51b815260040180806020018281038252602481526020018061577e6024913960400191505060405180910390fd5b600d01805460ff60e01b1916600160e01b17905550565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015612d2f57600080fd5b505afa158015612d43573d6000803e3d6000fd5b505050506040513d6020811015612d5957600080fd5b50516001600160a01b031614612da05760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60d81b19169055565b6034546001600160a01b03163314612e105760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b6001600160a01b0384166000908152603660205260409020612e3190613f5d565b612e3d848360006140ad565b8015611e4b57611e4b84846001613c38565b6001600160a01b031660009081526036602052604090205490565b6001600160a01b038116600090815260366020526040812081612e8c826149b7565b905080612e9e57600092505050611568565b6000612ea985613766565b9050612ecb612ebe828463ffffffff613ff516565b839063ffffffff6149d416565b95945050505050565b6001600160a01b0381166000908152603660205260408120612b0b612ef8826149b7565b612f0185613766565b9063ffffffff613ff516565b6000612f17614a10565b60015490915060ff1680612f2e5750612f2e614a15565b80612f3a575060005481115b612f755760405162461bcd60e51b815260040180806020018281038252602e8152602001806157e7602e913960400191505060405180910390fd5b60015460ff16158015612f94576001805460ff19168117905560008290555b603580546001600160a01b0319166001600160a01b038516179055612fb7614590565b8015611a81576001805460ff19169055505050565b6001600160a01b031660009081526036602052604090206001015490565b6035546001600160a01b031681565b6001600160a01b03166000908152603660205260409020600a015490565b6034546001600160a01b031633146130605760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b80613069614252565b6001600160a01b0316856001600160a01b0316146130de5734156130be5760405162461bcd60e51b815260040180806020018281038252605f8152602001806156b8605f913960600191505060405180910390fd5b6130d96001600160a01b03861685838663ffffffff61426a16565b6116be565b8234101561311d5760405162461bcd60e51b81526004018080602001828103825260358152602001806155bb6035913960400191505060405180910390fd5b6040516000906001600160a01b0383169061c35090869084818181858888f193505050503d806000811461316d576040519150601f19603f3d011682016040523d82523d6000602084013e613172565b606091505b50509050806131c1576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561320d57600080fd5b505afa158015613221573d6000803e3d6000fd5b505050506040513d602081101561323757600080fd5b50516001600160a01b03161461327e5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6038805460009190600019810190811061329457fe5b6000918252602090912001546001600160a01b039081169150821681146132ec5760405162461bcd60e51b815260040180806020018281038252603d815260200180615649603d913960400191505060405180910390fd5b6132f58161380a565b156133315760405162461bcd60e51b81526004018080602001828103825260308152602001806157176030913960400191505060405180910390fd5b6001600160a01b0381166000908152603660205260408120600d81018054600c830180546001600160a01b0319169055600b8301849055838355600783018490556008830184905560098301849055600a90920192909255600168ff00ffff000000000160a01b031916905560388054806133a857fe5b600082815260209020810160001990810180546001600160a01b03191690550190555050565b6001600160a01b0381166000908152603660205260408120612b0b81614a1b565b6034546001600160a01b031681565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561344257600080fd5b505afa158015613456573d6000803e3d6000fd5b505050506040513d602081101561346c57600080fd5b50516001600160a01b0316146134b35760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03909116600090815260366020526040902060080155565b6034546001600160a01b0316331461351b5760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b61352786868685614a49565b613535868686868686614ab0565b6131c1868560006140ad565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561358557600080fd5b505afa158015613599573d6000803e3d6000fd5b505050506040513d60208110156135af57600080fd5b50516001600160a01b0316146135f65760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60d81b1916600160d81b179055565b6001600160a01b03808316600081815260366020908152604080832094861683526037825280832093835292905290812090918291829182918261366789896116c5565b8254909150613694576004909101549095506000945084935060ff600160281b9091041691506136c79050565b806136a5838563ffffffff61480c16565b6002840154600490940154919850965091945050600160281b900460ff169150505b92959194509250565b6001600160a01b038381166000818152603660209081526040808320948716835260378252808320938352929052908120600d830154919291600160d81b900460ff1661372257600092505050612b0b565b6004810154600160281b900460ff1615806137495750600d820154600160d01b900460ff16155b8061375c575061375986866116c5565b84115b9695505050505050565b600080613771614252565b6001600160a01b0316836001600160a01b03161415613791575047611752565b604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156137d757600080fd5b505afa1580156137eb573d6000803e3d6000fd5b505050506040513d602081101561380157600080fd5b50519392505050565b6001600160a01b0381166000908152603660205260408120611752906149b7565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561386f57600080fd5b505afa158015613883573d6000803e3d6000fd5b505050506040513d602081101561389957600080fd5b50516001600160a01b0316146138e05760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b038116600090815260366020526040808220815163041e0b2d60e51b81526004810191909152905173__$2ec35834968386f54fa313129cf94664e4$__926383c165a09260248082019391829003018186803b158015612a5e57600080fd5b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561398a57600080fd5b505afa15801561399e573d6000803e3d6000fd5b505050506040513d60208110156139b457600080fd5b50516001600160a01b0316146139fb5760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b0382166000908152603660205260408082208151637b1dd5df60e11b815260048101919091528315156024820152905173__$2ec35834968386f54fa313129cf94664e4$__9263f63babbe9260448082019391829003018186803b158015613a6957600080fd5b505af41580156131c1573d6000803e3d6000fd5b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015613ac157600080fd5b505afa158015613ad5573d6000803e3d6000fd5b505050506040513d6020811015613aeb57600080fd5b50516001600160a01b031614613b325760405162461bcd60e51b81526004018080602001828103825260378152602001806157476037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e81b19169055565b6001600160a01b031660009081526036602052604090206009015490565b60345460009081906001600160a01b03163314613bc55760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b613bd28888888887614b2d565b6000613be089898787614c2c565b9050613bee896000806140ad565b80613bf98a8a61445a565b9250925050965096945050505050565b6001600160a01b0380821660009081526037602090815260408083209386168352929052206001015492915050565b6034546001600160a01b03163314613c815760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b6001600160a01b0391821660009081526037602090815260408083209590941682529390935291206004018054911515600160281b0265ff000000000019909216919091179055565b6034546001600160a01b03163314613d135760405162461bcd60e51b815260040180806020018281038252602a815260200180615815602a913960400191505060405180910390fd5b613d1b614252565b6001600160a01b0316836001600160a01b031614613d4d5761197c6001600160a01b038416838363ffffffff6147ba16565b6040516000906001600160a01b0384169061c35090849084818181858888f193505050503d8060008114613d9d576040519150601f19603f3d011682016040523d82523d6000602084013e613da2565b606091505b5050905080611e4b576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b6001600160a01b0380821660009081526037602090815260408083209386168352929052206002015492915050565b60355460408051637744894b60e11b815290516000926001600160a01b03169163ee891296916004808301926020929190829003018186803b158015613e6557600080fd5b505afa158015613e79573d6000803e3d6000fd5b505050506040513d6020811015613e8f57600080fd5b50519050613e9b614252565b6001600160a01b0316836001600160a01b031614613ecd5761197c6001600160a01b038416828463ffffffff6147ba16565b6040516000906001600160a01b0383169084908381818185875af1925050503d8060008114613f18576040519150601f19603f3d011682016040523d82523d6000602084013e613f1d565b606091505b5050905080611e4b5760405162461bcd60e51b81526004018080602001828103825260248152602001806157c36024913960400191505060405180910390fd5b6000613f68826149b7565b90508015613ff1576001820154600d830154600091613f9491600160a01b900464ffffffffff16614d2a565b8354909150613faa90829063ffffffff614d7516565b83556004830154600d840154600091613fd091600160a01b900464ffffffffff16614dad565b9050613fe9846007015482614d7590919063ffffffff16565b600785015550505b5050565b600082820183811015612b0b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061407261405d84614dfc565b61406684614dfc565b9063ffffffff6149d416565b9050600061408e614081614e12565b839063ffffffff613ff516565b85549091506140a490829063ffffffff614d7516565b90945550505050565b6001600160a01b0380841660009081526036602052604081206006810154600d820154919390929182918291166357e37af0896140fd896140f18c612f0185613766565b9063ffffffff6142c416565b88600201548960030154896040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b031681526020018581526020018481526020018381526020018281526020019550505050505060606040518083038186803b15801561416a57600080fd5b505afa15801561417e573d6000803e3d6000fd5b505050506040513d606081101561419457600080fd5b50805160208083015160409384015160018a0184905560058a0182905560048a01819055600d8a01805464ffffffffff4216600160a01b0264ffffffffff60a01b19909116179055895460078b015486518681529485018490528487018b905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a25050505050505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611e4b908590614e22565b6000612b0b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614fda565b6001600160a01b038616600090815260366020526040902061432790613f5d565b6131c1868686868686615071565b6001600160a01b038087166000818152603660209081526040808320948a1683526037825280832093835292905220600183600281111561437257fe5b141561438e576005820154600382015560006001820155614405565b600283600281111561439c57fe5b14156143b8576000600382015560078201546001820155614405565b6040805162461bcd60e51b815260206004820152601860248201527f496e76616c696420626f72726f772072617465206d6f64650000000000000000604482015290519081900360640190fd5b805461441d908690612f01908963ffffffff613ff516565b81556002810154614434908563ffffffff613ff516565b6002820155600401805464ffffffffff19164264ffffffffff1617905550505050505050565b6000806144678484611780565b9050600081600281111561447757fe5b1415614487576000915050611752565b600181600281111561449557fe5b146144bb576001600160a01b0384166000908152603660205260409020600401546117cd565b50506001600160a01b0390811660009081526037602090815260408083209490931682529290925290206003015490565b6000805b60385481101561453957826001600160a01b03166038828154811061451157fe5b6000918252602090912001546001600160a01b0316141561453157600191505b6001016144f0565b5080613ff157603880546001810182556000919091527f38395c5dceade9603479b177b68959049485df8aa97b39f3533039af5f4561990180546001600160a01b0384166001600160a01b03199091161790555050565b603560009054906101000a90046001600160a01b03166001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156145de57600080fd5b505afa1580156145f2573d6000803e3d6000fd5b505050506040513d602081101561460857600080fd5b5051603480546001600160a01b0319166001600160a01b03909216919091179055565b6001600160a01b0380851660008181526036602090815260408083209488168352603782528083209383529290522061466382613f5d565b600061466f8787611780565b905060015b81600281111561468057fe5b14156146bb57600382015461469e908490869063ffffffff6151cd16565b60038201546146b6908490879063ffffffff61523d16565b6146db565b6146cb838563ffffffff61534816565b6146db838663ffffffff61536916565b50505050505050565b6001600160a01b038116600090815260366020526040902061470590613f5d565b50565b6001600160a01b03808516600090815260376020908152604080832093891683529281528282206036909152919020815461474f9086906140f1908663ffffffff613ff516565b8255600261475d8888611780565b600281111561476857fe5b141561477957600781015460018301555b831561479a576002820154614794908563ffffffff6142c416565b60028301555b50600401805464ffffffffff19164264ffffffffff161790555050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a81908490614e22565b815460009061481d57506000611752565b600061482c8460000154614dfc565b60038501549091506000908190156148605760038601546004870154614859919064ffffffffff16614dad565b90506148a2565b61489f8660010154614066876007015461489389600401548a600d0160149054906101000a900464ffffffffff16614dad565b9063ffffffff614d7516565b90505b6148ba6148b5848363ffffffff614d7516565b6153c1565b86549092508214156148f557600486015464ffffffffff1642146148f55785546148eb90600163ffffffff613ff516565b9350505050611752565b50949350505050565b6001600160a01b0380841660008181526036602090815260408083209487168352603782528083209383529290522061493682613f5d565b60038101546116be908390859063ffffffff6151cd16565b6001600160a01b03808316600090815260376020908152604080832093871683529281528282206036909152919020815461498f908463ffffffff613ff516565b8255600501546003820155600401805464ffffffffff19164264ffffffffff16179055505050565b600061175282600301548360020154613ff590919063ffffffff16565b6000600282046117cd83614a046149f7876b033b2e3c9fd0803ce80000006153da565b849063ffffffff613ff516565b9063ffffffff61543316565b600790565b303b1590565b600080612b0b8360000154614893856001015486600d0160149054906101000a900464ffffffffff16614d2a565b6001600160a01b03808516600081815260366020908152604080832094881683526037825280832093835292905290812090614a858787611780565b6001600160a01b0388166000908152603660205260409020909150614aa990613f5d565b6001614674565b6001600160a01b038087166000818152603660209081526040808320948a16835260378252808320938352929052208054614af79087906140f1908763ffffffff613ff516565b8155600782015460018201558215614b185760006003820181905560018201555b6002810154614434908663ffffffff6142c416565b6001600160a01b03808616600081815260366020908152604080832094891683526037825280832093835292905220614b6582613f5d565b6001836002811115614b7357fe5b1415614ba5576003810154614b8f83878363ffffffff61523d16565b614b9f838663ffffffff61534816565b506146db565b6002836002811115614bb357fe5b1415614bdf576005820154614bce838763ffffffff61536916565b614b9f83868363ffffffff6151cd16565b6040805162461bcd60e51b815260206004820152601a60248201527f496e76616c69642072617465206d6f6465207265636569766564000000000000604482015290519081900360640190fd5b6001600160a01b03808416600090815260376020908152604080832093881683529281528282206036909152918120909190826002856002811115614c6d57fe5b1415614c8e5750600581015460038301556000600183810191909155614cf2565b6001856002811115614c9c57fe5b1415614cbb575060006003830155600781015460018301556002614cf2565b60405162461bcd60e51b815260040180806020018281038252602381526020018061583f6023913960400191505060405180910390fd5b8254614d04908763ffffffff613ff516565b83556004909201805464ffffffffff19164264ffffffffff161790555095945050505050565b600080614d444264ffffffffff851663ffffffff6142c416565b90506000614d5861405d6301e13380614dfc565b9050612ecb614d65614e12565b612f01878463ffffffff614d7516565b6000612b0b6b033b2e3c9fd0803ce8000000614a04614d9a868663ffffffff6153da16565b6b019d971e4fe8401e7400000090613ff5565b600080614dc74264ffffffffff851663ffffffff6142c416565b90506000614ddf856301e1338063ffffffff61543316565b9050612ecb82614df06149f7614e12565b9063ffffffff61547516565b600061175282633b9aca0063ffffffff6153da16565b6b033b2e3c9fd0803ce800000090565b614e34826001600160a01b031661152f565b614e85576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310614ec35780518252601f199092019160209182019101614ea4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614f25576040519150601f19603f3d011682016040523d82523d6000602084013e614f2a565b606091505b509150915081614f81576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611e4b57808060200190516020811015614f9d57600080fd5b5051611e4b5760405162461bcd60e51b815260040180806020018281038252602a815260200180615862602a913960400191505060405180910390fd5b600081848411156150695760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561502e578181015183820152602001615016565b50505050905090810190601f16801561505b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600061507d8787611780565b6001600160a01b038816600090815260366020526040902090915060018260028111156150a657fe5b14156150ef576001600160a01b038088166000908152603760209081526040808320938c1683529290522060038101546150e9908390899063ffffffff61523d16565b50615113565b60028260028111156150fd57fe5b141561511357615113818763ffffffff61536916565b600061512985612f01898963ffffffff613ff516565b9050600184600281111561513957fe5b141561515c576005820154615157908390839063ffffffff6151cd16565b6121b0565b600284600281111561516a57fe5b141561518057615157828263ffffffff61534816565b6040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206e657720626f72726f772072617465206d6f646500000000604482015290519081900360640190fd5b60028301546151e2818463ffffffff613ff516565b600285015560006151f68361489386614dfc565b9050600061520b866006015461489385614dfc565b905061522d61521d8760020154614dfc565b614066848463ffffffff613ff516565b8660060181905550505050505050565b8183600201541015615296576040805162461bcd60e51b815260206004820152601a60248201527f496e76616c696420616d6f756e7420746f206465637265617365000000000000604482015290519081900360640190fd5b60028301546152ab818463ffffffff6142c416565b600285018190556152c3575060006006840155611a81565b60006152d28361489386614dfc565b905060006152e7866006015461489385614dfc565b9050818110156153285760405162461bcd60e51b81526004018080602001828103825260238152602001806156266023913960400191505060405180910390fd5b61522d6153388760020154614dfc565b614066838563ffffffff6142c416565b600382015461535d908263ffffffff613ff516565b82600301819055505050565b80826003015410156153ac5760405162461bcd60e51b815260040180806020018281038252605081526020018061556b6050913960600191505060405180910390fd5b600382015461535d908263ffffffff6142c416565b6000631dcd6500612b0b633b9aca00614a048386613ff5565b6000826153e957506000611752565b828202828482816153f657fe5b0414612b0b5760405162461bcd60e51b81526004018080602001828103825260218152602001806157a26021913960400191505060405180910390fd5b6000612b0b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506154cf565b600060028206615491576b033b2e3c9fd0803ce8000000615493565b825b90506002820491505b8115611752576154ac8384614d75565b925060028206156154c4576154c18184614d75565b90505b60028204915061549c565b6000818361551e5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561502e578181015183820152602001615016565b50600083858161552a57fe5b049594505050505056fe466565206c69717569646174696f6e20646f6573206e6f74207265717569726520616e79207472616e73666572206f662076616c756554686520616d6f756e742074686174206973206265696e6720737562747261637465642066726f6d20746865207661726961626c6520746f74616c20626f72726f777320697320696e636f727265637454686520616d6f756e7420616e64207468652076616c75652073656e7420746f206465706f73697420646f206e6f74206d617463684f6e6c7920636f6e7472616374732063616e2073656e6420657468657220746f20746865204c656e64696e6720706f6f6c20636f726554686520616d6f756e747320746f20737562747261637420646f6e2774206d6174636852657365727665206265696e672072656d6f76656420697320646966666572656e74207468616e20746865207265736572766520726571756573746564557365722069732073656e64696e672045544820616c6f6e67207769746820746865204552433230207472616e736665722e557365722069732073656e64696e672045544820616c6f6e67207769746820746865204552433230207472616e736665722e20436865636b207468652076616c756520617474726962757465206f6620746865207472616e73616374696f6e43616e6e6f742072656d6f7665206120726573657276652077697468206c6971756964697479206465706f73697465645468652063616c6c6572206d7573742062652061206c656e64696e6720706f6f6c20636f6e666967757261746f7220636f6e74726163745265736572766520686173206e6f74206265656e20696e697469616c697a656420796574536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775472616e7366657220746f20746f6b656e206469737472696275746f72206661696c6564436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65645468652063616c6c6572206d7573742062652061206c656e64696e6720706f6f6c20636f6e7472616374496e76616c696420696e7465726573742072617465206d6f64652072656365697665645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122085ecebc0b6ea7654d4fd399b74f9b075839bf5fe9c23bda63907b987cbec1fe264736f6c63430006080033"; export interface LendingPoolCoreLibraryAddresses { - ['__$2ec35834968386f54fa313129cf94664e4$__']: string; + ["__$2ec35834968386f54fa313129cf94664e4$__"]: string; } diff --git a/types/LendingPoolDataProvider.d.ts b/types/LendingPoolDataProvider.d.ts index 49ee88b5..234e254b 100644 --- a/types/LendingPoolDataProvider.d.ts +++ b/types/LendingPoolDataProvider.d.ts @@ -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; 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; - balanceDecreaseAllowed(_reserve: string, _user: string, _amount: BigNumberish): Promise; + balanceDecreaseAllowed( + _reserve: string, + _user: string, + _amount: BigNumberish + ): Promise; calculateCollateralNeededInETH( _reserve: string, diff --git a/types/LendingPoolDataProviderFactory.ts b/types/LendingPoolDataProviderFactory.ts index f8662dd0..ac967199 100644 --- a/types/LendingPoolDataProviderFactory.ts +++ b/types/LendingPoolDataProviderFactory.ts @@ -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 {LendingPoolDataProvider} from './LendingPoolDataProvider'; +import { TransactionOverrides } from "."; +import { LendingPoolDataProvider } from "./LendingPoolDataProvider"; export class LendingPoolDataProviderFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,474 +25,481 @@ export class LendingPoolDataProviderFactory extends ContractFactory { connect(signer: Signer): LendingPoolDataProviderFactory { return super.connect(signer) as LendingPoolDataProviderFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): LendingPoolDataProvider { - return new Contract(address, _abi, signerOrProvider) as LendingPoolDataProvider; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): LendingPoolDataProvider { + return new Contract( + address, + _abi, + signerOrProvider + ) as LendingPoolDataProvider; } } const _abi = [ { inputs: [], - name: 'DATA_PROVIDER_REVISION', + name: "DATA_PROVIDER_REVISION", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'HEALTH_FACTOR_LIQUIDATION_THRESHOLD', + name: "HEALTH_FACTOR_LIQUIDATION_THRESHOLD", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'addressesProvider', + name: "addressesProvider", outputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + 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: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + internalType: "uint256", + name: "_amount", + type: "uint256" + } ], - name: 'balanceDecreaseAllowed', + name: "balanceDecreaseAllowed", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + 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: 'uint256', - name: '_userCurrentBorrowBalanceTH', - type: 'uint256', + internalType: "uint256", + name: "_userCurrentBorrowBalanceTH", + type: "uint256" }, { - internalType: 'uint256', - name: '_userCurrentFeesETH', - type: 'uint256', + internalType: "uint256", + name: "_userCurrentFeesETH", + type: "uint256" }, { - internalType: 'uint256', - name: '_userCurrentLtv', - type: 'uint256', - }, + internalType: "uint256", + name: "_userCurrentLtv", + type: "uint256" + } ], - name: 'calculateCollateralNeededInETH', + name: "calculateCollateralNeededInETH", 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: 'calculateUserGlobalData', + name: "calculateUserGlobalData", outputs: [ { - internalType: 'uint256', - name: 'totalLiquidityBalanceETH', - type: 'uint256', + internalType: "uint256", + name: "totalLiquidityBalanceETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'totalCollateralBalanceETH', - type: 'uint256', + internalType: "uint256", + name: "totalCollateralBalanceETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'totalBorrowBalanceETH', - type: 'uint256', + internalType: "uint256", + name: "totalBorrowBalanceETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'totalFeesETH', - type: 'uint256', + internalType: "uint256", + name: "totalFeesETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'currentLtv', - type: 'uint256', + internalType: "uint256", + name: "currentLtv", + type: "uint256" }, { - internalType: 'uint256', - name: 'currentLiquidationThreshold', - type: 'uint256', + internalType: "uint256", + name: "currentLiquidationThreshold", + type: "uint256" }, { - internalType: 'uint256', - name: 'healthFactor', - type: 'uint256', + internalType: "uint256", + name: "healthFactor", + type: "uint256" }, { - internalType: 'bool', - name: 'healthFactorBelowThreshold', - type: 'bool', - }, + internalType: "bool", + name: "healthFactorBelowThreshold", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'core', + name: "core", outputs: [ { - internalType: 'contract LendingPoolCore', - name: '', - type: 'address', - }, + internalType: "contract LendingPoolCore", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getHealthFactorLiquidationThreshold', + name: "getHealthFactorLiquidationThreshold", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'pure', - type: 'function', + stateMutability: "pure", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveConfigurationData', + name: "getReserveConfigurationData", outputs: [ { - internalType: 'uint256', - name: 'ltv', - type: 'uint256', + internalType: "uint256", + name: "ltv", + type: "uint256" }, { - internalType: 'uint256', - name: 'liquidationThreshold', - type: 'uint256', + internalType: "uint256", + name: "liquidationThreshold", + type: "uint256" }, { - internalType: 'uint256', - name: 'liquidationBonus', - type: 'uint256', + internalType: "uint256", + name: "liquidationBonus", + type: "uint256" }, { - internalType: 'address', - name: 'rateStrategyAddress', - type: 'address', + internalType: "address", + name: "rateStrategyAddress", + type: "address" }, { - internalType: 'bool', - name: 'usageAsCollateralEnabled', - type: 'bool', + internalType: "bool", + name: "usageAsCollateralEnabled", + type: "bool" }, { - internalType: 'bool', - name: 'borrowingEnabled', - type: 'bool', + internalType: "bool", + name: "borrowingEnabled", + type: "bool" }, { - internalType: 'bool', - name: 'stableBorrowRateEnabled', - type: 'bool', + internalType: "bool", + name: "stableBorrowRateEnabled", + type: "bool" }, { - internalType: 'bool', - name: 'isActive', - type: 'bool', - }, + internalType: "bool", + name: "isActive", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveData', + name: "getReserveData", outputs: [ { - internalType: 'uint256', - name: 'totalLiquidity', - type: 'uint256', + internalType: "uint256", + name: "totalLiquidity", + type: "uint256" }, { - internalType: 'uint256', - name: 'availableLiquidity', - type: 'uint256', + internalType: "uint256", + name: "availableLiquidity", + 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: 'liquidityRate', - type: 'uint256', + internalType: "uint256", + name: "liquidityRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'variableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'stableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "stableBorrowRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'averageStableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "averageStableBorrowRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'utilizationRate', - type: 'uint256', + internalType: "uint256", + name: "utilizationRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'liquidityIndex', - type: 'uint256', + internalType: "uint256", + name: "liquidityIndex", + type: "uint256" }, { - internalType: 'uint256', - name: 'variableBorrowIndex', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowIndex", + type: "uint256" }, { - internalType: 'address', - name: 'aTokenAddress', - type: 'address', + internalType: "address", + name: "aTokenAddress", + type: "address" }, { - internalType: 'uint40', - name: 'lastUpdateTimestamp', - type: 'uint40', - }, + internalType: "uint40", + name: "lastUpdateTimestamp", + type: "uint40" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserAccountData', + name: "getUserAccountData", outputs: [ { - internalType: 'uint256', - name: 'totalLiquidityETH', - type: 'uint256', + internalType: "uint256", + name: "totalLiquidityETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'totalCollateralETH', - type: 'uint256', + internalType: "uint256", + name: "totalCollateralETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'totalBorrowsETH', - type: 'uint256', + internalType: "uint256", + name: "totalBorrowsETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'totalFeesETH', - type: 'uint256', + internalType: "uint256", + name: "totalFeesETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'availableBorrowsETH', - type: 'uint256', + internalType: "uint256", + name: "availableBorrowsETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'currentLiquidationThreshold', - type: 'uint256', + internalType: "uint256", + name: "currentLiquidationThreshold", + type: "uint256" }, { - internalType: 'uint256', - name: 'ltv', - type: 'uint256', + internalType: "uint256", + name: "ltv", + type: "uint256" }, { - internalType: 'uint256', - name: 'healthFactor', - type: 'uint256', - }, + internalType: "uint256", + name: "healthFactor", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserReserveData', + name: "getUserReserveData", outputs: [ { - internalType: 'uint256', - name: 'currentATokenBalance', - type: 'uint256', + internalType: "uint256", + name: "currentATokenBalance", + type: "uint256" }, { - internalType: 'uint256', - name: 'currentBorrowBalance', - type: 'uint256', + internalType: "uint256", + name: "currentBorrowBalance", + type: "uint256" }, { - internalType: 'uint256', - name: 'principalBorrowBalance', - type: 'uint256', + internalType: "uint256", + name: "principalBorrowBalance", + type: "uint256" }, { - internalType: 'uint256', - name: 'borrowRateMode', - type: 'uint256', + internalType: "uint256", + name: "borrowRateMode", + type: "uint256" }, { - internalType: 'uint256', - name: 'borrowRate', - type: 'uint256', + internalType: "uint256", + name: "borrowRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'liquidityRate', - type: 'uint256', + internalType: "uint256", + name: "liquidityRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'originationFee', - type: 'uint256', + internalType: "uint256", + name: "originationFee", + type: "uint256" }, { - internalType: 'uint256', - name: 'variableBorrowIndex', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowIndex", + type: "uint256" }, { - internalType: 'uint256', - name: 'lastUpdateTimestamp', - type: 'uint256', + internalType: "uint256", + name: "lastUpdateTimestamp", + type: "uint256" }, { - internalType: 'bool', - name: 'usageAsCollateralEnabled', - type: 'bool', - }, + internalType: "bool", + name: "usageAsCollateralEnabled", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '_addressesProvider', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + name: "_addressesProvider", + type: "address" + } ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, + stateMutability: "nonpayable", + type: "function" + } ]; const _bytecode = - '0x60806040526000805534801561001457600080fd5b50612a01806100246000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806376e9d6151161008c578063c3525c2811610066578063c3525c28146103e4578063c4d66de8146103ec578063c72c4d1014610414578063f2f4eb2614610438576100cf565b806376e9d6151461032b5780638daf609f14610375578063bf92857c1461037d576100cf565b806312737c33146100d457806328dd2d011461012a5780632c6d0e9b146101aa57806335ea6a75146102135780633e150141146102ae5780633e44bee814610323575b600080fd5b610118600480360360c08110156100ea57600080fd5b506001600160a01b038135169060208101359060408101359060608101359060808101359060a00135610440565b60408051918252519081900360200190f35b6101586004803603604081101561014057600080fd5b506001600160a01b0381358116916020013516610633565b604080519a8b5260208b0199909952898901979097526060890195909552608088019390935260a087019190915260c086015260e0850152610100840152151561012083015251908190036101400190f35b6101d0600480360360208110156101c057600080fd5b50356001600160a01b0316610e1e565b604080519889526020890197909752878701959095526060870193909352608086019190915260a085015260c0840152151560e083015251908190036101000190f35b6102396004803603602081101561022957600080fd5b50356001600160a01b03166113c8565b604080519d8e5260208e019c909c528c8c019a909a5260608c019890985260808b019690965260a08a019490945260c089019290925260e08801526101008701526101208601526101408501526001600160a01b031661016084015264ffffffffff1661018083015251908190036101a00190f35b6102d4600480360360208110156102c457600080fd5b50356001600160a01b0316611c6f565b604080519889526020890197909752878701959095526001600160a01b0390931660608701529015156080860152151560a0850152151560c0840152151560e083015251908190036101000190f35b610118611fe2565b6103616004803603606081101561034157600080fd5b506001600160a01b03813581169160208101359091169060400135611fee565b604080519115158252519081900360200190f35b6101186122e9565b6103a36004803603602081101561039357600080fd5b50356001600160a01b03166122ee565b604080519889526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b61011861232f565b6104126004803603602081101561040257600080fd5b50356001600160a01b031661233b565b005b61041c612477565b604080516001600160a01b039092168252519081900360200190f35b61041c612486565b6034546040805163288d4ff760e21b81526001600160a01b03898116600483015291516000938493169163a2353fdc916024808301926020929190829003018186803b15801561048f57600080fd5b505afa1580156104a3573d6000803e3d6000fd5b505050506040513d60208110156104b957600080fd5b505160355460408051631f94a27560e31b815290519293506000926001600160a01b039092169163fca513a891600480820192602092909190829003018186803b15801561050657600080fd5b505afa15801561051a573d6000803e3d6000fd5b505050506040513d602081101561053057600080fd5b5051905060006105eb600a84900a6105df6105518c8c63ffffffff61249516565b856001600160a01b031663b3596f078f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156105a757600080fd5b505afa1580156105bb573d6000803e3d6000fd5b505050506040513d60208110156105d157600080fd5b50519063ffffffff6124f816565b9063ffffffff61255116565b90506000610624866105df60646106188661060c8e8e63ffffffff61249516565b9063ffffffff61249516565b9063ffffffff6124f816565b9b9a5050505050505050505050565b600080600080600080600080600080603460009054906101000a90046001600160a01b03166001600160a01b03166334b3beee8d6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156106ad57600080fd5b505afa1580156106c1573d6000803e3d6000fd5b505050506040513d60208110156106d757600080fd5b5051604080516370a0823160e01b81526001600160a01b038e81166004830152915191909216916370a08231916024808301926020929190829003018186803b15801561072357600080fd5b505afa158015610737573d6000803e3d6000fd5b505050506040513d602081101561074d57600080fd5b810190808051906020019092919050505099506000603460009054906101000a90046001600160a01b03166001600160a01b0316631ca19f198e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b1580156107e757600080fd5b505afa1580156107fb573d6000803e3d6000fd5b505050506040513d602081101561081157600080fd5b81019080805190602001909291905050509050603460009054906101000a90046001600160a01b03166001600160a01b0316639fb8afcd8e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060606040518083038186803b1580156108a957600080fd5b505afa1580156108bd573d6000803e3d6000fd5b505050506040513d60608110156108d357600080fd5b5080516020909101519a50985060018160028111156108ee57fe5b14156109ac57603460009054906101000a90046001600160a01b03166001600160a01b0316636fffab0c8e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b15801561097957600080fd5b505afa15801561098d573d6000803e3d6000fd5b505050506040513d60208110156109a357600080fd5b50519650610a5a565b60028160028111156109ba57fe5b1415610a5a57603460009054906101000a90046001600160a01b03166001600160a01b031663906c0a418e6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610a2b57600080fd5b505afa158015610a3f573d6000803e3d6000fd5b505050506040513d6020811015610a5557600080fd5b505196505b806002811115610a6657fe5b9750603460009054906101000a90046001600160a01b03166001600160a01b031663c540148e8e6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610ad357600080fd5b505afa158015610ae7573d6000803e3d6000fd5b505050506040513d6020811015610afd57600080fd5b81019080805190602001909291905050509550603460009054906101000a90046001600160a01b03166001600160a01b031663feab31ac8e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b158015610b9557600080fd5b505afa158015610ba9573d6000803e3d6000fd5b505050506040513d6020811015610bbf57600080fd5b81019080805190602001909291905050509450603460009054906101000a90046001600160a01b03166001600160a01b031663f6ea8d768e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b158015610c5757600080fd5b505afa158015610c6b573d6000803e3d6000fd5b505050506040513d6020811015610c8157600080fd5b81019080805190602001909291905050509350603460009054906101000a90046001600160a01b03166001600160a01b03166366d103f38e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b158015610d1957600080fd5b505afa158015610d2d573d6000803e3d6000fd5b505050506040513d6020811015610d4357600080fd5b81019080805190602001909291905050509250603460009054906101000a90046001600160a01b03166001600160a01b0316639e3c4f3b8e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b158015610ddb57600080fd5b505afa158015610def573d6000803e3d6000fd5b505050506040513d6020811015610e0557600080fd5b50519a9d999c50979a5095989497939650919450929091565b6000806000806000806000806000603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b158015610e7a57600080fd5b505afa158015610e8e573d6000803e3d6000fd5b505050506040513d6020811015610ea457600080fd5b50519050610eb06128b9565b60345460408051630240bc6b60e21b815290516060926001600160a01b031691630902f1ac916004808301926000929190829003018186803b158015610ef557600080fd5b505afa158015610f09573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610f3257600080fd5b8101908080516040519392919084640100000000821115610f5257600080fd5b908301906020820185811115610f6757600080fd5b8251866020820283011164010000000082111715610f8457600080fd5b82525081516020918201928201910280838360005b83811015610fb1578181015183820152602001610f99565b50505050905001604052505050905060008090505b815181101561135c57818181518110610fdb57fe5b60200260200101518361014001906001600160a01b031690816001600160a01b031681525050603460009054906101000a90046001600160a01b03166001600160a01b031663e10076ad8461014001518f6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060806040518083038186803b15801561108b57600080fd5b505afa15801561109f573d6000803e3d6000fd5b505050506040513d60808110156110b557600080fd5b5080516020820151604080840151606094850151151561012089015260e0880152928601529084018190521580156110ef57506060830151155b156110f957611354565b60345461014084015160408051635fc526ff60e01b81526001600160a01b03928316600482015290519190921691635fc526ff916024808301926080929190829003018186803b15801561114c57600080fd5b505afa158015611160573d6000803e3d6000fd5b505050506040513d608081101561117657600080fd5b508051602080830151604080850151606090950151151561010089015260c088019490945260a087015260808601829052600a9190910a85820152610140850151825163b3596f0760e01b81526001600160a01b03918216600482015292519087169263b3596f07926024808301939192829003018186803b1580156111fb57600080fd5b505afa15801561120f573d6000803e3d6000fd5b505050506040513d602081101561122557600080fd5b505183526040830151156112ec57600061125884602001516105df866040015187600001516124f890919063ffffffff16565b905061126a8d8263ffffffff61249516565b9c50836101000151801561128057508361012001515b156112ea576112958c8263ffffffff61249516565b9b506112be6112b18560a00151836124f890919063ffffffff16565b8a9063ffffffff61249516565b98506112e76112da8560c00151836124f890919063ffffffff16565b899063ffffffff61249516565b97505b505b6060830151156113545761132961131c84602001516105df866060015187600001516124f890919063ffffffff16565b8b9063ffffffff61249516565b99506113516112b184602001516105df86600001518760e001516124f890919063ffffffff16565b98505b600101610fc6565b5060008a1161136c57600061137c565b61137c878b63ffffffff61255116565b965060008a1161138d57600061139d565b61139d868b63ffffffff61255116565b95506113ab8a8a8a89612593565b9450670de0b6b3a764000085109350505050919395975091939597565b6000806000806000806000806000806000806000603460009054906101000a90046001600160a01b03166001600160a01b031663c33cfd908f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561144757600080fd5b505afa15801561145b573d6000803e3d6000fd5b505050506040513d602081101561147157600080fd5b81019080805190602001909291905050509c50603460009054906101000a90046001600160a01b03166001600160a01b031663e24030198f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156114ef57600080fd5b505afa158015611503573d6000803e3d6000fd5b505050506040513d602081101561151957600080fd5b81019080805190602001909291905050509b50603460009054906101000a90046001600160a01b03166001600160a01b0316637f90fec58f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561159757600080fd5b505afa1580156115ab573d6000803e3d6000fd5b505050506040513d60208110156115c157600080fd5b81019080805190602001909291905050509a50603460009054906101000a90046001600160a01b03166001600160a01b03166398bd47378f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561163f57600080fd5b505afa158015611653573d6000803e3d6000fd5b505050506040513d602081101561166957600080fd5b81019080805190602001909291905050509950603460009054906101000a90046001600160a01b03166001600160a01b031663c540148e8f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156116e757600080fd5b505afa1580156116fb573d6000803e3d6000fd5b505050506040513d602081101561171157600080fd5b81019080805190602001909291905050509850603460009054906101000a90046001600160a01b03166001600160a01b031663906c0a418f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561178f57600080fd5b505afa1580156117a3573d6000803e3d6000fd5b505050506040513d60208110156117b957600080fd5b81019080805190602001909291905050509750603460009054906101000a90046001600160a01b03166001600160a01b03166388079d888f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561183757600080fd5b505afa15801561184b573d6000803e3d6000fd5b505050506040513d602081101561186157600080fd5b81019080805190602001909291905050509650603460009054906101000a90046001600160a01b03166001600160a01b03166346bc0f288f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156118df57600080fd5b505afa1580156118f3573d6000803e3d6000fd5b505050506040513d602081101561190957600080fd5b81019080805190602001909291905050509550603460009054906101000a90046001600160a01b03166001600160a01b031663bfacad848f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561198757600080fd5b505afa15801561199b573d6000803e3d6000fd5b505050506040513d60208110156119b157600080fd5b81019080805190602001909291905050509450603460009054906101000a90046001600160a01b03166001600160a01b031663bd7fd79a8f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611a2f57600080fd5b505afa158015611a43573d6000803e3d6000fd5b505050506040513d6020811015611a5957600080fd5b81019080805190602001909291905050509350603460009054906101000a90046001600160a01b03166001600160a01b031663b701d0938f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611ad757600080fd5b505afa158015611aeb573d6000803e3d6000fd5b505050506040513d6020811015611b0157600080fd5b81019080805190602001909291905050509250603460009054906101000a90046001600160a01b03166001600160a01b03166334b3beee8f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611b7f57600080fd5b505afa158015611b93573d6000803e3d6000fd5b505050506040513d6020811015611ba957600080fd5b81019080805190602001909291905050509150603460009054906101000a90046001600160a01b03166001600160a01b0316634f1446098f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611c2757600080fd5b505afa158015611c3b573d6000803e3d6000fd5b505050506040513d6020811015611c5157600080fd5b50519c9e9b9d50999b989a9799509597949693959294919390929190565b600080600080600080600080603460009054906101000a90046001600160a01b03166001600160a01b0316635fc526ff8a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060806040518083038186803b158015611ce657600080fd5b505afa158015611cfa573d6000803e3d6000fd5b505050506040513d6080811015611d1057600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919050505090919250809650819950829a50505050603460009054906101000a90046001600160a01b03166001600160a01b0316639e6748488a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611dba57600080fd5b505afa158015611dce573d6000803e3d6000fd5b505050506040513d6020811015611de457600080fd5b505160345460408051632e79732b60e11b81526001600160a01b038d811660048301529151939550911691635cf2e65691602480820192602092909190829003018186803b158015611e3557600080fd5b505afa158015611e49573d6000803e3d6000fd5b505050506040513d6020811015611e5f57600080fd5b505160345460408051630283aeb760e11b81526001600160a01b038d8116600483015291519396509116916305075d6e91602480820192602092909190829003018186803b158015611eb057600080fd5b505afa158015611ec4573d6000803e3d6000fd5b505050506040513d6020811015611eda57600080fd5b5051603454604080516331da9b2760e21b81526001600160a01b038d81166004830152915193945091169163c76a6c9c91602480820192602092909190829003018186803b158015611f2b57600080fd5b505afa158015611f3f573d6000803e3d6000fd5b505050506040513d6020811015611f5557600080fd5b505160345460408051633570a20b60e11b81526001600160a01b038d811660048301529151939950911691636ae1441691602480820192602092909190829003018186803b158015611fa657600080fd5b505afa158015611fba573d6000803e3d6000fd5b505050506040513d6020811015611fd057600080fd5b50519799969850949695929491935091565b670de0b6b3a764000090565b6000611ff8612920565b60345460408051635fc526ff60e01b81526001600160a01b03888116600483015291519190921691635fc526ff916024808301926080929190829003018186803b15801561204557600080fd5b505afa158015612059573d6000803e3d6000fd5b505050506040513d608081101561206f57600080fd5b508051604082015160609092015115801561014085015260a0840192909252825280612119575060345460408051639e3c4f3b60e01b81526001600160a01b038881166004830152878116602483015291519190921691639e3c4f3b916044808301926020929190829003018186803b1580156120eb57600080fd5b505afa1580156120ff573d6000803e3d6000fd5b505050506040513d602081101561211557600080fd5b5051155b156121285760019150506122e2565b61213184610e1e565b505060808701525060608501526040840181905260208401919091521515905061215f5760019150506122e2565b60355460408051631f94a27560e31b815290516000926001600160a01b03169163fca513a8916004808301926020929190829003018186803b1580156121a457600080fd5b505afa1580156121b8573d6000803e3d6000fd5b505050506040513d60208110156121ce57600080fd5b505182516040805163b3596f0760e01b81526001600160a01b038a81166004830152915193945061223093600a9390930a926105df9289929087169163b3596f0791602480820192602092909190829003018186803b1580156105a757600080fd5b60c08301819052602083015161224b9163ffffffff6125e216565b60e08301819052612261576000925050506122e2565b6122ac8260e001516105df6122878560a001518660c001516124f890919063ffffffff16565b608086015160208701516122a09163ffffffff6124f816565b9063ffffffff6125e216565b610100830181905260e0830151604084015160608501516000936122d293929190612593565b670de0b6b3a76400001093505050505b9392505050565b600181565b60008060008060008060008061230389610e1e565b50959d50939b5091995097509094509250905061232287878785612624565b9350919395975091939597565b670de0b6b3a764000081565b6000612345612786565b60015490915060ff168061235c575061235c61278b565b80612368575060005481115b6123a35760405162461bcd60e51b815260040180806020018281038252602e81526020018061299e602e913960400191505060405180910390fd5b60015460ff161580156123c2576001805460ff19168117905560008290555b603580546001600160a01b0319166001600160a01b0385169081179091556040805163076b7fbb60e51b8152905163ed6ff76091600480820192602092909190829003018186803b15801561241657600080fd5b505afa15801561242a573d6000803e3d6000fd5b505050506040513d602081101561244057600080fd5b5051603480546001600160a01b0319166001600160a01b039092169190911790558015612472576001805460ff191690555b505050565b6035546001600160a01b031681565b6034546001600160a01b031681565b6000828201838110156124ef576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600082612507575060006124f2565b8282028284828161251457fe5b04146124ef5760405162461bcd60e51b815260040180806020018281038252602181526020018061297d6021913960400191505060405180910390fd5b60006124ef83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612791565b6000836125a357506000196125da565b6125d76125b6858563ffffffff61249516565b6125cb60646105df898763ffffffff6124f816565b9063ffffffff61283316565b90505b949350505050565b60006124ef83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061285f565b60008061263c60646105df888663ffffffff6124f816565b9050848110156126505760009150506125da565b612670612663868663ffffffff61249516565b829063ffffffff6125e216565b90506000603560009054906101000a90046001600160a01b03166001600160a01b031663fbeefc3c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156126c257600080fd5b505afa1580156126d6573d6000803e3d6000fd5b505050506040513d60208110156126ec57600080fd5b505160408051630e563a7d60e41b81523360048201526024810185905290516001600160a01b039092169163e563a7d091604480820192602092909190829003018186803b15801561273d57600080fd5b505afa158015612751573d6000803e3d6000fd5b505050506040513d602081101561276757600080fd5b5051905061277b828263ffffffff6125e216565b979650505050505050565b600190565b303b1590565b6000818361281d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127e25781810151838201526020016127ca565b50505050905090810190601f16801561280f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161282957fe5b0495945050505050565b6000600282046125da836105df61285287670de0b6b3a76400006124f8565b849063ffffffff61249516565b600081848411156128b15760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156127e25781810151838201526020016127ca565b505050900390565b604051806101600160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160001515815260200160006001600160a01b031681525090565b60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152509056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a26469706673582212204dec32370fdb6050034257123313969d8273ba205eaa127c7c6c9e207905a59564736f6c63430006080033'; + "0x60806040526000805534801561001457600080fd5b50612a01806100246000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806376e9d6151161008c578063c3525c2811610066578063c3525c28146103e4578063c4d66de8146103ec578063c72c4d1014610414578063f2f4eb2614610438576100cf565b806376e9d6151461032b5780638daf609f14610375578063bf92857c1461037d576100cf565b806312737c33146100d457806328dd2d011461012a5780632c6d0e9b146101aa57806335ea6a75146102135780633e150141146102ae5780633e44bee814610323575b600080fd5b610118600480360360c08110156100ea57600080fd5b506001600160a01b038135169060208101359060408101359060608101359060808101359060a00135610440565b60408051918252519081900360200190f35b6101586004803603604081101561014057600080fd5b506001600160a01b0381358116916020013516610633565b604080519a8b5260208b0199909952898901979097526060890195909552608088019390935260a087019190915260c086015260e0850152610100840152151561012083015251908190036101400190f35b6101d0600480360360208110156101c057600080fd5b50356001600160a01b0316610e1e565b604080519889526020890197909752878701959095526060870193909352608086019190915260a085015260c0840152151560e083015251908190036101000190f35b6102396004803603602081101561022957600080fd5b50356001600160a01b03166113c8565b604080519d8e5260208e019c909c528c8c019a909a5260608c019890985260808b019690965260a08a019490945260c089019290925260e08801526101008701526101208601526101408501526001600160a01b031661016084015264ffffffffff1661018083015251908190036101a00190f35b6102d4600480360360208110156102c457600080fd5b50356001600160a01b0316611c6f565b604080519889526020890197909752878701959095526001600160a01b0390931660608701529015156080860152151560a0850152151560c0840152151560e083015251908190036101000190f35b610118611fe2565b6103616004803603606081101561034157600080fd5b506001600160a01b03813581169160208101359091169060400135611fee565b604080519115158252519081900360200190f35b6101186122e9565b6103a36004803603602081101561039357600080fd5b50356001600160a01b03166122ee565b604080519889526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b61011861232f565b6104126004803603602081101561040257600080fd5b50356001600160a01b031661233b565b005b61041c612477565b604080516001600160a01b039092168252519081900360200190f35b61041c612486565b6034546040805163288d4ff760e21b81526001600160a01b03898116600483015291516000938493169163a2353fdc916024808301926020929190829003018186803b15801561048f57600080fd5b505afa1580156104a3573d6000803e3d6000fd5b505050506040513d60208110156104b957600080fd5b505160355460408051631f94a27560e31b815290519293506000926001600160a01b039092169163fca513a891600480820192602092909190829003018186803b15801561050657600080fd5b505afa15801561051a573d6000803e3d6000fd5b505050506040513d602081101561053057600080fd5b5051905060006105eb600a84900a6105df6105518c8c63ffffffff61249516565b856001600160a01b031663b3596f078f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156105a757600080fd5b505afa1580156105bb573d6000803e3d6000fd5b505050506040513d60208110156105d157600080fd5b50519063ffffffff6124f816565b9063ffffffff61255116565b90506000610624866105df60646106188661060c8e8e63ffffffff61249516565b9063ffffffff61249516565b9063ffffffff6124f816565b9b9a5050505050505050505050565b600080600080600080600080600080603460009054906101000a90046001600160a01b03166001600160a01b03166334b3beee8d6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156106ad57600080fd5b505afa1580156106c1573d6000803e3d6000fd5b505050506040513d60208110156106d757600080fd5b5051604080516370a0823160e01b81526001600160a01b038e81166004830152915191909216916370a08231916024808301926020929190829003018186803b15801561072357600080fd5b505afa158015610737573d6000803e3d6000fd5b505050506040513d602081101561074d57600080fd5b810190808051906020019092919050505099506000603460009054906101000a90046001600160a01b03166001600160a01b0316631ca19f198e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b1580156107e757600080fd5b505afa1580156107fb573d6000803e3d6000fd5b505050506040513d602081101561081157600080fd5b81019080805190602001909291905050509050603460009054906101000a90046001600160a01b03166001600160a01b0316639fb8afcd8e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060606040518083038186803b1580156108a957600080fd5b505afa1580156108bd573d6000803e3d6000fd5b505050506040513d60608110156108d357600080fd5b5080516020909101519a50985060018160028111156108ee57fe5b14156109ac57603460009054906101000a90046001600160a01b03166001600160a01b0316636fffab0c8e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b15801561097957600080fd5b505afa15801561098d573d6000803e3d6000fd5b505050506040513d60208110156109a357600080fd5b50519650610a5a565b60028160028111156109ba57fe5b1415610a5a57603460009054906101000a90046001600160a01b03166001600160a01b031663906c0a418e6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610a2b57600080fd5b505afa158015610a3f573d6000803e3d6000fd5b505050506040513d6020811015610a5557600080fd5b505196505b806002811115610a6657fe5b9750603460009054906101000a90046001600160a01b03166001600160a01b031663c540148e8e6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610ad357600080fd5b505afa158015610ae7573d6000803e3d6000fd5b505050506040513d6020811015610afd57600080fd5b81019080805190602001909291905050509550603460009054906101000a90046001600160a01b03166001600160a01b031663feab31ac8e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b158015610b9557600080fd5b505afa158015610ba9573d6000803e3d6000fd5b505050506040513d6020811015610bbf57600080fd5b81019080805190602001909291905050509450603460009054906101000a90046001600160a01b03166001600160a01b031663f6ea8d768e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b158015610c5757600080fd5b505afa158015610c6b573d6000803e3d6000fd5b505050506040513d6020811015610c8157600080fd5b81019080805190602001909291905050509350603460009054906101000a90046001600160a01b03166001600160a01b03166366d103f38e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b158015610d1957600080fd5b505afa158015610d2d573d6000803e3d6000fd5b505050506040513d6020811015610d4357600080fd5b81019080805190602001909291905050509250603460009054906101000a90046001600160a01b03166001600160a01b0316639e3c4f3b8e8e6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b158015610ddb57600080fd5b505afa158015610def573d6000803e3d6000fd5b505050506040513d6020811015610e0557600080fd5b50519a9d999c50979a5095989497939650919450929091565b6000806000806000806000806000603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b158015610e7a57600080fd5b505afa158015610e8e573d6000803e3d6000fd5b505050506040513d6020811015610ea457600080fd5b50519050610eb06128b9565b60345460408051630240bc6b60e21b815290516060926001600160a01b031691630902f1ac916004808301926000929190829003018186803b158015610ef557600080fd5b505afa158015610f09573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610f3257600080fd5b8101908080516040519392919084640100000000821115610f5257600080fd5b908301906020820185811115610f6757600080fd5b8251866020820283011164010000000082111715610f8457600080fd5b82525081516020918201928201910280838360005b83811015610fb1578181015183820152602001610f99565b50505050905001604052505050905060008090505b815181101561135c57818181518110610fdb57fe5b60200260200101518361014001906001600160a01b031690816001600160a01b031681525050603460009054906101000a90046001600160a01b03166001600160a01b031663e10076ad8461014001518f6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b03168152602001826001600160a01b03166001600160a01b031681526020019250505060806040518083038186803b15801561108b57600080fd5b505afa15801561109f573d6000803e3d6000fd5b505050506040513d60808110156110b557600080fd5b5080516020820151604080840151606094850151151561012089015260e0880152928601529084018190521580156110ef57506060830151155b156110f957611354565b60345461014084015160408051635fc526ff60e01b81526001600160a01b03928316600482015290519190921691635fc526ff916024808301926080929190829003018186803b15801561114c57600080fd5b505afa158015611160573d6000803e3d6000fd5b505050506040513d608081101561117657600080fd5b508051602080830151604080850151606090950151151561010089015260c088019490945260a087015260808601829052600a9190910a85820152610140850151825163b3596f0760e01b81526001600160a01b03918216600482015292519087169263b3596f07926024808301939192829003018186803b1580156111fb57600080fd5b505afa15801561120f573d6000803e3d6000fd5b505050506040513d602081101561122557600080fd5b505183526040830151156112ec57600061125884602001516105df866040015187600001516124f890919063ffffffff16565b905061126a8d8263ffffffff61249516565b9c50836101000151801561128057508361012001515b156112ea576112958c8263ffffffff61249516565b9b506112be6112b18560a00151836124f890919063ffffffff16565b8a9063ffffffff61249516565b98506112e76112da8560c00151836124f890919063ffffffff16565b899063ffffffff61249516565b97505b505b6060830151156113545761132961131c84602001516105df866060015187600001516124f890919063ffffffff16565b8b9063ffffffff61249516565b99506113516112b184602001516105df86600001518760e001516124f890919063ffffffff16565b98505b600101610fc6565b5060008a1161136c57600061137c565b61137c878b63ffffffff61255116565b965060008a1161138d57600061139d565b61139d868b63ffffffff61255116565b95506113ab8a8a8a89612593565b9450670de0b6b3a764000085109350505050919395975091939597565b6000806000806000806000806000806000806000603460009054906101000a90046001600160a01b03166001600160a01b031663c33cfd908f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561144757600080fd5b505afa15801561145b573d6000803e3d6000fd5b505050506040513d602081101561147157600080fd5b81019080805190602001909291905050509c50603460009054906101000a90046001600160a01b03166001600160a01b031663e24030198f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156114ef57600080fd5b505afa158015611503573d6000803e3d6000fd5b505050506040513d602081101561151957600080fd5b81019080805190602001909291905050509b50603460009054906101000a90046001600160a01b03166001600160a01b0316637f90fec58f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561159757600080fd5b505afa1580156115ab573d6000803e3d6000fd5b505050506040513d60208110156115c157600080fd5b81019080805190602001909291905050509a50603460009054906101000a90046001600160a01b03166001600160a01b03166398bd47378f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561163f57600080fd5b505afa158015611653573d6000803e3d6000fd5b505050506040513d602081101561166957600080fd5b81019080805190602001909291905050509950603460009054906101000a90046001600160a01b03166001600160a01b031663c540148e8f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156116e757600080fd5b505afa1580156116fb573d6000803e3d6000fd5b505050506040513d602081101561171157600080fd5b81019080805190602001909291905050509850603460009054906101000a90046001600160a01b03166001600160a01b031663906c0a418f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561178f57600080fd5b505afa1580156117a3573d6000803e3d6000fd5b505050506040513d60208110156117b957600080fd5b81019080805190602001909291905050509750603460009054906101000a90046001600160a01b03166001600160a01b03166388079d888f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561183757600080fd5b505afa15801561184b573d6000803e3d6000fd5b505050506040513d602081101561186157600080fd5b81019080805190602001909291905050509650603460009054906101000a90046001600160a01b03166001600160a01b03166346bc0f288f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156118df57600080fd5b505afa1580156118f3573d6000803e3d6000fd5b505050506040513d602081101561190957600080fd5b81019080805190602001909291905050509550603460009054906101000a90046001600160a01b03166001600160a01b031663bfacad848f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561198757600080fd5b505afa15801561199b573d6000803e3d6000fd5b505050506040513d60208110156119b157600080fd5b81019080805190602001909291905050509450603460009054906101000a90046001600160a01b03166001600160a01b031663bd7fd79a8f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611a2f57600080fd5b505afa158015611a43573d6000803e3d6000fd5b505050506040513d6020811015611a5957600080fd5b81019080805190602001909291905050509350603460009054906101000a90046001600160a01b03166001600160a01b031663b701d0938f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611ad757600080fd5b505afa158015611aeb573d6000803e3d6000fd5b505050506040513d6020811015611b0157600080fd5b81019080805190602001909291905050509250603460009054906101000a90046001600160a01b03166001600160a01b03166334b3beee8f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611b7f57600080fd5b505afa158015611b93573d6000803e3d6000fd5b505050506040513d6020811015611ba957600080fd5b81019080805190602001909291905050509150603460009054906101000a90046001600160a01b03166001600160a01b0316634f1446098f6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611c2757600080fd5b505afa158015611c3b573d6000803e3d6000fd5b505050506040513d6020811015611c5157600080fd5b50519c9e9b9d50999b989a9799509597949693959294919390929190565b600080600080600080600080603460009054906101000a90046001600160a01b03166001600160a01b0316635fc526ff8a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060806040518083038186803b158015611ce657600080fd5b505afa158015611cfa573d6000803e3d6000fd5b505050506040513d6080811015611d1057600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919050505090919250809650819950829a50505050603460009054906101000a90046001600160a01b03166001600160a01b0316639e6748488a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611dba57600080fd5b505afa158015611dce573d6000803e3d6000fd5b505050506040513d6020811015611de457600080fd5b505160345460408051632e79732b60e11b81526001600160a01b038d811660048301529151939550911691635cf2e65691602480820192602092909190829003018186803b158015611e3557600080fd5b505afa158015611e49573d6000803e3d6000fd5b505050506040513d6020811015611e5f57600080fd5b505160345460408051630283aeb760e11b81526001600160a01b038d8116600483015291519396509116916305075d6e91602480820192602092909190829003018186803b158015611eb057600080fd5b505afa158015611ec4573d6000803e3d6000fd5b505050506040513d6020811015611eda57600080fd5b5051603454604080516331da9b2760e21b81526001600160a01b038d81166004830152915193945091169163c76a6c9c91602480820192602092909190829003018186803b158015611f2b57600080fd5b505afa158015611f3f573d6000803e3d6000fd5b505050506040513d6020811015611f5557600080fd5b505160345460408051633570a20b60e11b81526001600160a01b038d811660048301529151939950911691636ae1441691602480820192602092909190829003018186803b158015611fa657600080fd5b505afa158015611fba573d6000803e3d6000fd5b505050506040513d6020811015611fd057600080fd5b50519799969850949695929491935091565b670de0b6b3a764000090565b6000611ff8612920565b60345460408051635fc526ff60e01b81526001600160a01b03888116600483015291519190921691635fc526ff916024808301926080929190829003018186803b15801561204557600080fd5b505afa158015612059573d6000803e3d6000fd5b505050506040513d608081101561206f57600080fd5b508051604082015160609092015115801561014085015260a0840192909252825280612119575060345460408051639e3c4f3b60e01b81526001600160a01b038881166004830152878116602483015291519190921691639e3c4f3b916044808301926020929190829003018186803b1580156120eb57600080fd5b505afa1580156120ff573d6000803e3d6000fd5b505050506040513d602081101561211557600080fd5b5051155b156121285760019150506122e2565b61213184610e1e565b505060808701525060608501526040840181905260208401919091521515905061215f5760019150506122e2565b60355460408051631f94a27560e31b815290516000926001600160a01b03169163fca513a8916004808301926020929190829003018186803b1580156121a457600080fd5b505afa1580156121b8573d6000803e3d6000fd5b505050506040513d60208110156121ce57600080fd5b505182516040805163b3596f0760e01b81526001600160a01b038a81166004830152915193945061223093600a9390930a926105df9289929087169163b3596f0791602480820192602092909190829003018186803b1580156105a757600080fd5b60c08301819052602083015161224b9163ffffffff6125e216565b60e08301819052612261576000925050506122e2565b6122ac8260e001516105df6122878560a001518660c001516124f890919063ffffffff16565b608086015160208701516122a09163ffffffff6124f816565b9063ffffffff6125e216565b610100830181905260e0830151604084015160608501516000936122d293929190612593565b670de0b6b3a76400001093505050505b9392505050565b600181565b60008060008060008060008061230389610e1e565b50959d50939b5091995097509094509250905061232287878785612624565b9350919395975091939597565b670de0b6b3a764000081565b6000612345612786565b60015490915060ff168061235c575061235c61278b565b80612368575060005481115b6123a35760405162461bcd60e51b815260040180806020018281038252602e81526020018061299e602e913960400191505060405180910390fd5b60015460ff161580156123c2576001805460ff19168117905560008290555b603580546001600160a01b0319166001600160a01b0385169081179091556040805163076b7fbb60e51b8152905163ed6ff76091600480820192602092909190829003018186803b15801561241657600080fd5b505afa15801561242a573d6000803e3d6000fd5b505050506040513d602081101561244057600080fd5b5051603480546001600160a01b0319166001600160a01b039092169190911790558015612472576001805460ff191690555b505050565b6035546001600160a01b031681565b6034546001600160a01b031681565b6000828201838110156124ef576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600082612507575060006124f2565b8282028284828161251457fe5b04146124ef5760405162461bcd60e51b815260040180806020018281038252602181526020018061297d6021913960400191505060405180910390fd5b60006124ef83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612791565b6000836125a357506000196125da565b6125d76125b6858563ffffffff61249516565b6125cb60646105df898763ffffffff6124f816565b9063ffffffff61283316565b90505b949350505050565b60006124ef83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061285f565b60008061263c60646105df888663ffffffff6124f816565b9050848110156126505760009150506125da565b612670612663868663ffffffff61249516565b829063ffffffff6125e216565b90506000603560009054906101000a90046001600160a01b03166001600160a01b031663fbeefc3c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156126c257600080fd5b505afa1580156126d6573d6000803e3d6000fd5b505050506040513d60208110156126ec57600080fd5b505160408051630e563a7d60e41b81523360048201526024810185905290516001600160a01b039092169163e563a7d091604480820192602092909190829003018186803b15801561273d57600080fd5b505afa158015612751573d6000803e3d6000fd5b505050506040513d602081101561276757600080fd5b5051905061277b828263ffffffff6125e216565b979650505050505050565b600190565b303b1590565b6000818361281d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127e25781810151838201526020016127ca565b50505050905090810190601f16801561280f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161282957fe5b0495945050505050565b6000600282046125da836105df61285287670de0b6b3a76400006124f8565b849063ffffffff61249516565b600081848411156128b15760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156127e25781810151838201526020016127ca565b505050900390565b604051806101600160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160001515815260200160006001600160a01b031681525090565b60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152509056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a26469706673582212204dec32370fdb6050034257123313969d8273ba205eaa127c7c6c9e207905a59564736f6c63430006080033"; diff --git a/types/LendingPoolFactory.ts b/types/LendingPoolFactory.ts index a4470b86..64887a3a 100644 --- a/types/LendingPoolFactory.ts +++ b/types/LendingPoolFactory.ts @@ -1,39 +1,44 @@ /* 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 {LendingPool} from './LendingPool'; +import { TransactionOverrides } from "."; +import { LendingPool } from "./LendingPool"; export class LendingPoolFactory extends ContractFactory { - constructor(linkLibraryAddresses: LendingPoolLibraryAddresses, signer?: Signer) { + constructor( + linkLibraryAddresses: LendingPoolLibraryAddresses, + signer?: Signer + ) { super(_abi, LendingPoolFactory.linkBytecode(linkLibraryAddresses), signer); } - static linkBytecode(linkLibraryAddresses: LendingPoolLibraryAddresses): string { + static linkBytecode( + linkLibraryAddresses: LendingPoolLibraryAddresses + ): string { let linkedBytecode = _bytecode; linkedBytecode = linkedBytecode.replace( - new RegExp('__\\$69254465eb8f179ea24caa73cf68b23524\\$__', 'g'), - linkLibraryAddresses['__$69254465eb8f179ea24caa73cf68b23524$__'] - .replace(/^0x/, '') + new RegExp("__\\$69254465eb8f179ea24caa73cf68b23524\\$__", "g"), + linkLibraryAddresses["__$69254465eb8f179ea24caa73cf68b23524$__"] + .replace(/^0x/, "") .toLowerCase() ); linkedBytecode = linkedBytecode.replace( - new RegExp('__\\$5e6137a1b5a0a366e2874209b5abf71c10\\$__', 'g'), - linkLibraryAddresses['__$5e6137a1b5a0a366e2874209b5abf71c10$__'] - .replace(/^0x/, '') + new RegExp("__\\$5e6137a1b5a0a366e2874209b5abf71c10\\$__", "g"), + linkLibraryAddresses["__$5e6137a1b5a0a366e2874209b5abf71c10$__"] + .replace(/^0x/, "") .toLowerCase() ); linkedBytecode = linkedBytecode.replace( - new RegExp('__\\$7347ff53b2b46c21e26a37164ae7f6739f\\$__', 'g'), - linkLibraryAddresses['__$7347ff53b2b46c21e26a37164ae7f6739f$__'] - .replace(/^0x/, '') + new RegExp("__\\$7347ff53b2b46c21e26a37164ae7f6739f\\$__", "g"), + linkLibraryAddresses["__$7347ff53b2b46c21e26a37164ae7f6739f$__"] + .replace(/^0x/, "") .toLowerCase() ); @@ -52,7 +57,10 @@ export class LendingPoolFactory extends ContractFactory { connect(signer: Signer): LendingPoolFactory { return super.connect(signer) as LendingPoolFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): LendingPool { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): LendingPool { return new Contract(address, _abi, signerOrProvider) as LendingPool; } } @@ -63,1139 +71,1139 @@ const _abi = [ inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_borrowRateMode', - type: 'uint256', + internalType: "uint256", + name: "_borrowRateMode", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_borrowRate', - type: 'uint256', + internalType: "uint256", + name: "_borrowRate", + type: "uint256" }, { indexed: true, - internalType: 'uint16', - name: '_referral', - type: 'uint16', + internalType: "uint16", + name: "_referral", + type: "uint16" }, { indexed: false, - internalType: 'uint256', - name: '_timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "_timestamp", + type: "uint256" + } ], - name: 'Borrow', - type: 'event', + name: "Borrow", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: true, - internalType: 'uint16', - name: '_referral', - type: 'uint16', + internalType: "uint16", + name: "_referral", + type: "uint16" }, { indexed: false, - internalType: 'uint256', - name: '_timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "_timestamp", + type: "uint256" + } ], - name: 'Deposit', - type: 'event', + name: "Deposit", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_target', - type: 'address', + internalType: "address", + name: "_target", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_totalFee', - type: 'uint256', + internalType: "uint256", + name: "_totalFee", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_protocolFee', - type: 'uint256', + internalType: "uint256", + name: "_protocolFee", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "_timestamp", + type: "uint256" + } ], - name: 'FlashLoan', - type: 'event', + name: "FlashLoan", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_collateral', - type: 'address', + internalType: "address", + name: "_collateral", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_purchaseAmount', - type: 'uint256', + internalType: "uint256", + name: "_purchaseAmount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_liquidatedCollateralAmount', - type: 'uint256', + internalType: "uint256", + name: "_liquidatedCollateralAmount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_accruedBorrowInterest', - type: 'uint256', + internalType: "uint256", + name: "_accruedBorrowInterest", + type: "uint256" }, { indexed: false, - internalType: 'address', - name: '_liquidator', - type: 'address', + internalType: "address", + name: "_liquidator", + type: "address" }, { indexed: false, - internalType: 'bool', - name: '_receiveAToken', - type: 'bool', + internalType: "bool", + name: "_receiveAToken", + type: "bool" }, { indexed: false, - internalType: 'uint256', - name: '_timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "_timestamp", + type: "uint256" + } ], - name: 'LiquidationCall', - type: 'event', + name: "LiquidationCall", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_collateral', - type: 'address', + internalType: "address", + name: "_collateral", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_feeLiquidated', - type: 'uint256', + internalType: "uint256", + name: "_feeLiquidated", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_liquidatedCollateralForFee', - type: 'uint256', + internalType: "uint256", + name: "_liquidatedCollateralForFee", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "_timestamp", + type: "uint256" + } ], - name: 'OriginationFeeLiquidated', - type: 'event', + name: "OriginationFeeLiquidated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "_timestamp", + type: "uint256" + } ], - name: 'RebalanceStableBorrowRate', - type: 'event', + name: "RebalanceStableBorrowRate", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "_timestamp", + type: "uint256" + } ], - name: 'RedeemUnderlying', - type: 'event', + name: "RedeemUnderlying", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_repayer', - type: 'address', + internalType: "address", + name: "_repayer", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "_timestamp", + type: "uint256" + } ], - name: 'Repay', - type: 'event', + name: "Repay", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'ReserveUsedAsCollateralDisabled', - type: 'event', + name: "ReserveUsedAsCollateralDisabled", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'ReserveUsedAsCollateralEnabled', - type: 'event', + name: "ReserveUsedAsCollateralEnabled", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "_timestamp", + type: "uint256" + } ], - name: 'Swap', - type: 'event', + name: "Swap", + type: "event" }, { inputs: [], - name: 'LENDINGPOOL_REVISION', + name: "LENDINGPOOL_REVISION", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'UINT_MAX_VALUE', + name: "UINT_MAX_VALUE", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'addressesProvider', + name: "addressesProvider", outputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + 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: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + internalType: "uint256", + name: "_amount", + type: "uint256" + } ], - name: 'balanceDecreaseAllowed', + name: "balanceDecreaseAllowed", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { - internalType: 'uint256', - name: '_interestRateMode', - type: 'uint256', + internalType: "uint256", + name: "_interestRateMode", + type: "uint256" }, { - internalType: 'uint16', - name: '_referralCode', - type: 'uint16', - }, + internalType: "uint16", + name: "_referralCode", + type: "uint16" + } ], - name: 'borrow', + name: "borrow", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { - internalType: 'uint16', - name: '_referralCode', - type: 'uint16', - }, + internalType: "uint16", + name: "_referralCode", + type: "uint16" + } ], - name: 'deposit', + name: "deposit", outputs: [], - stateMutability: 'payable', - type: 'function', + stateMutability: "payable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_receiver', - type: 'address', + internalType: "address", + name: "_receiver", + type: "address" }, { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { - internalType: 'bytes', - name: '_params', - type: 'bytes', - }, + internalType: "bytes", + name: "_params", + type: "bytes" + } ], - name: 'flashLoan', + name: "flashLoan", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getConfiguration', + name: "getConfiguration", outputs: [ { components: [ { - internalType: 'uint256', - name: 'data', - type: 'uint256', - }, + internalType: "uint256", + name: "data", + type: "uint256" + } ], - internalType: 'struct ReserveConfiguration.Map', - name: '', - type: 'tuple', - }, + internalType: "struct ReserveConfiguration.Map", + name: "", + type: "tuple" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveConfigurationData', + name: "getReserveConfigurationData", outputs: [ { - internalType: 'uint256', - name: 'decimals', - type: 'uint256', + internalType: "uint256", + name: "decimals", + type: "uint256" }, { - internalType: 'uint256', - name: 'ltv', - type: 'uint256', + internalType: "uint256", + name: "ltv", + type: "uint256" }, { - internalType: 'uint256', - name: 'liquidationThreshold', - type: 'uint256', + internalType: "uint256", + name: "liquidationThreshold", + type: "uint256" }, { - internalType: 'uint256', - name: 'liquidationBonus', - type: 'uint256', + internalType: "uint256", + name: "liquidationBonus", + type: "uint256" }, { - internalType: 'address', - name: 'interestRateStrategyAddress', - type: 'address', + internalType: "address", + name: "interestRateStrategyAddress", + type: "address" }, { - internalType: 'bool', - name: 'usageAsCollateralEnabled', - type: 'bool', + internalType: "bool", + name: "usageAsCollateralEnabled", + type: "bool" }, { - internalType: 'bool', - name: 'borrowingEnabled', - type: 'bool', + internalType: "bool", + name: "borrowingEnabled", + type: "bool" }, { - internalType: 'bool', - name: 'stableBorrowRateEnabled', - type: 'bool', + internalType: "bool", + name: "stableBorrowRateEnabled", + type: "bool" }, { - internalType: 'bool', - name: 'isActive', - type: 'bool', + internalType: "bool", + name: "isActive", + type: "bool" }, { - internalType: 'bool', - name: 'isFreezed', - type: 'bool', - }, + internalType: "bool", + name: "isFreezed", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveData', + name: "getReserveData", outputs: [ { - internalType: 'uint256', - name: 'availableLiquidity', - type: 'uint256', + internalType: "uint256", + name: "availableLiquidity", + 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: 'liquidityRate', - type: 'uint256', + internalType: "uint256", + name: "liquidityRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'variableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'stableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "stableBorrowRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'averageStableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "averageStableBorrowRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'liquidityIndex', - type: 'uint256', + internalType: "uint256", + name: "liquidityIndex", + type: "uint256" }, { - internalType: 'uint256', - name: 'variableBorrowIndex', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowIndex", + type: "uint256" }, { - internalType: 'uint40', - name: 'lastUpdateTimestamp', - type: 'uint40', - }, + internalType: "uint40", + name: "lastUpdateTimestamp", + type: "uint40" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveNormalizedIncome', + name: "getReserveNormalizedIncome", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveNormalizedVariableDebt', + name: "getReserveNormalizedVariableDebt", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveTokensAddresses', + name: "getReserveTokensAddresses", outputs: [ { - internalType: 'address', - name: 'aTokenAddress', - type: 'address', + internalType: "address", + name: "aTokenAddress", + type: "address" }, { - internalType: 'address', - name: 'stableDebtTokenAddress', - type: 'address', + internalType: "address", + name: "stableDebtTokenAddress", + type: "address" }, { - internalType: 'address', - name: 'variableDebtTokenAddress', - type: 'address', - }, + internalType: "address", + name: "variableDebtTokenAddress", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getReserves', + name: "getReserves", outputs: [ { - internalType: 'address[]', - name: '', - type: 'address[]', - }, + internalType: "address[]", + name: "", + type: "address[]" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserAccountData', + name: "getUserAccountData", outputs: [ { - internalType: 'uint256', - name: 'totalCollateralETH', - type: 'uint256', + internalType: "uint256", + name: "totalCollateralETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'totalBorrowsETH', - type: 'uint256', + internalType: "uint256", + name: "totalBorrowsETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'availableBorrowsETH', - type: 'uint256', + internalType: "uint256", + name: "availableBorrowsETH", + type: "uint256" }, { - internalType: 'uint256', - name: 'currentLiquidationThreshold', - type: 'uint256', + internalType: "uint256", + name: "currentLiquidationThreshold", + type: "uint256" }, { - internalType: 'uint256', - name: 'ltv', - type: 'uint256', + internalType: "uint256", + name: "ltv", + type: "uint256" }, { - internalType: 'uint256', - name: 'healthFactor', - type: 'uint256', - }, + internalType: "uint256", + name: "healthFactor", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserReserveData', + name: "getUserReserveData", outputs: [ { - internalType: 'uint256', - name: 'currentATokenBalance', - type: 'uint256', + internalType: "uint256", + name: "currentATokenBalance", + type: "uint256" }, { - internalType: 'uint256', - name: 'currentStableDebt', - type: 'uint256', + internalType: "uint256", + name: "currentStableDebt", + type: "uint256" }, { - internalType: 'uint256', - name: 'currentVariableDebt', - type: 'uint256', + internalType: "uint256", + name: "currentVariableDebt", + type: "uint256" }, { - internalType: 'uint256', - name: 'principalStableDebt', - type: 'uint256', + internalType: "uint256", + name: "principalStableDebt", + type: "uint256" }, { - internalType: 'uint256', - name: 'principalVariableDebt', - type: 'uint256', + internalType: "uint256", + name: "principalVariableDebt", + type: "uint256" }, { - internalType: 'uint256', - name: 'stableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "stableBorrowRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'liquidityRate', - type: 'uint256', + internalType: "uint256", + name: "liquidityRate", + type: "uint256" }, { - internalType: 'uint256', - name: 'variableBorrowIndex', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowIndex", + type: "uint256" }, { - internalType: 'uint40', - name: 'stableRateLastUpdated', - type: 'uint40', + internalType: "uint40", + name: "stableRateLastUpdated", + type: "uint40" }, { - internalType: 'bool', - name: 'usageAsCollateralEnabled', - type: 'bool', - }, + internalType: "bool", + name: "usageAsCollateralEnabled", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_aTokenAddress', - type: 'address', + internalType: "address", + name: "_aTokenAddress", + type: "address" }, { - internalType: 'address', - name: '_stableDebtAddress', - type: 'address', + internalType: "address", + name: "_stableDebtAddress", + type: "address" }, { - internalType: 'address', - name: '_variableDebtAddress', - type: 'address', + internalType: "address", + name: "_variableDebtAddress", + type: "address" }, { - internalType: 'address', - name: '_interestRateStrategyAddress', - type: 'address', - }, + internalType: "address", + name: "_interestRateStrategyAddress", + type: "address" + } ], - name: 'initReserve', + name: "initReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '_addressesProvider', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + name: "_addressesProvider", + type: "address" + } ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_collateral', - type: 'address', + internalType: "address", + name: "_collateral", + type: "address" }, { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_purchaseAmount', - type: 'uint256', + internalType: "uint256", + name: "_purchaseAmount", + type: "uint256" }, { - internalType: 'bool', - name: '_receiveAToken', - type: 'bool', - }, + internalType: "bool", + name: "_receiveAToken", + type: "bool" + } ], - name: 'liquidationCall', + name: "liquidationCall", outputs: [], - stateMutability: 'payable', - type: 'function', + stateMutability: "payable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'rebalanceStableBorrowRate', + name: "rebalanceStableBorrowRate", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address payable', - name: '_user', - type: 'address', + internalType: "address payable", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { - internalType: 'uint256', - name: '_aTokenBalanceAfterRedeem', - type: 'uint256', - }, + internalType: "uint256", + name: "_aTokenBalanceAfterRedeem", + type: "uint256" + } ], - name: 'redeemUnderlying', + name: "redeemUnderlying", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { - internalType: 'uint256', - name: '_rateMode', - type: 'uint256', + internalType: "uint256", + name: "_rateMode", + type: "uint256" }, { - internalType: 'address payable', - name: '_onBehalfOf', - type: 'address', - }, + internalType: "address payable", + name: "_onBehalfOf", + type: "address" + } ], - name: 'repay', + name: "repay", outputs: [], - stateMutability: 'payable', - type: 'function', + stateMutability: "payable", + type: "function" }, { inputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - name: 'reservesList', + name: "reservesList", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + 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: 'uint256', - name: '_configuration', - type: 'uint256', - }, + internalType: "uint256", + name: "_configuration", + type: "uint256" + } ], - name: 'setConfiguration', + name: "setConfiguration", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_rateStrategyAddress', - type: 'address', - }, + internalType: "address", + name: "_rateStrategyAddress", + type: "address" + } ], - name: 'setReserveInterestRateStrategyAddress', + name: "setReserveInterestRateStrategyAddress", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'bool', - name: '_useAsCollateral', - type: 'bool', - }, + internalType: "bool", + name: "_useAsCollateral", + type: "bool" + } ], - name: 'setUserUseReserveAsCollateral', + name: "setUserUseReserveAsCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_rateMode', - type: 'uint256', - }, + internalType: "uint256", + name: "_rateMode", + type: "uint256" + } ], - name: 'swapBorrowRateMode', + name: "swapBorrowRateMode", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { - stateMutability: 'payable', - type: 'receive', - }, + stateMutability: "payable", + type: "receive" + } ]; const _bytecode = - '0x6080604052600060015534801561001557600080fd5b506001600055614f7f8061002a6000396000f3fe60806040526004361061019f5760003560e01c80638afaff02116100ec578063c72c4d101161008a578063d0fc81d211610064578063d0fc81d21461051c578063d15e005314610531578063d2493b6c14610551578063d2d0e06614610580576101d4565b8063c72c4d10146104c7578063c858f5f9146104dc578063cd112382146104fc576101d4565b8063b8d29276116100c6578063b8d2927614610428578063bf92857c14610448578063c44b11f71461047a578063c4d66de8146104a7576101d4565b80638afaff02146103d357806394ba89a2146103e85780639895e3d814610408576101d4565b80633e150141116101595780635a3b74b9116101335780635a3b74b9146103465780635cffe9de1461036657806376e9d615146103865780637a708e92146103b3576101d4565b80633e150141146102d05780634fe7a6e514610306578063573ade8114610333576101d4565b8062a718a9146101d95780630902f1ac146101ec5780631d2118f91461021757806328dd2d011461023757806335ea6a751461026d578063386497fd146102a3576101d4565b366101d4576101ad33610593565b6101d25760405162461bcd60e51b81526004016101c990614a7d565b60405180910390fd5b005b600080fd5b6101d26101e73660046140ca565b6105cf565b3480156101f857600080fd5b506102016107a1565b60405161020e91906146fc565b60405180910390f35b34801561022357600080fd5b506101d2610232366004613fdd565b610803565b34801561024357600080fd5b50610257610252366004613fdd565b6108d6565b60405161020e9a99989796959493929190614e54565b34801561027957600080fd5b5061028d610288366004613fa5565b610baa565b60405161020e9a99989796959493929190614e08565b3480156102af57600080fd5b506102c36102be366004613fa5565b610e32565b60405161020e9190614d4e565b3480156102dc57600080fd5b506102f06102eb366004613fa5565b610e59565b60405161020e9a99989796959493929190614d88565b34801561031257600080fd5b50610326610321366004614356565b610f2f565b60405161020e919061452a565b6101d26103413660046142ad565b610f56565b34801561035257600080fd5b506101d261036136600461420e565b611297565b34801561037257600080fd5b506101d2610381366004614163565b611469565b34801561039257600080fd5b506103a66103a1366004614123565b6118cd565b60405161020e9190614749565b3480156103bf57600080fd5b506101d26103ce36600461405a565b6119ea565b3480156103df57600080fd5b506102c3611b23565b3480156103f457600080fd5b506101d261040336600461423b565b611b28565b34801561041457600080fd5b506101d2610423366004614015565b611e3f565b34801561043457600080fd5b506101d261044336600461423b565b612005565b34801561045457600080fd5b50610468610463366004613fa5565b6120c6565b60405161020e96959493929190614de0565b34801561048657600080fd5b5061049a610495366004613fa5565b612288565b60405161020e9190614b6c565b3480156104b357600080fd5b506101d26104c2366004613fa5565b6122bf565b3480156104d357600080fd5b506103266123f3565b3480156104e857600080fd5b506101d26104f73660046142f6565b612402565b34801561050857600080fd5b506101d2610517366004613fdd565b612934565b34801561052857600080fd5b506102c3612c24565b34801561053d57600080fd5b506102c361054c366004613fa5565b612c2a565b34801561055d57600080fd5b5061057161056c366004613fa5565b612c4b565b60405161020e939291906145bd565b6101d261058e366004614266565b612c80565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906105c757508115155b949350505050565b600260005414156105f25760405162461bcd60e51b81526004016101c990614b35565b6002600090815560355460408051632c1a75cd60e11b815290516001600160a01b0390921691635834eb9a91600480820192602092909190829003018186803b15801561063e57600080fd5b505afa158015610652573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106769190613fc1565b905060006060826001600160a01b0316888888888860405160240161069f9594939291906145e0565b60408051601f198184030181529181526020820180516001600160e01b031662a718a960e01b179052516106d3919061450b565b600060405180830381855af49150503d806000811461070e576040519150601f19603f3d011682016040523d82523d6000602084013e610713565b606091505b5091509150816107355760405162461bcd60e51b81526004016101c99061497c565b600060608280602001905181019061074d9190614386565b9150915081600014610790578060405160200161076a919061450b565b60408051601f198184030181529082905262461bcd60e51b82526101c991600401614754565b505060016000555050505050505050565b606060398054806020026020016040519081016040528092919081815260200182805480156107f957602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107db575b5050505050905090565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561084757600080fd5b505afa15801561085b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087f9190613fc1565b6001600160a01b0316146108a55760405162461bcd60e51b81526004016101c9906149b3565b6001600160a01b03918216600090815260376020526040902060090180546001600160a01b03191691909216179055565b6001600160a01b03808316600090815260376020526040808220600681015491516370a0823160e01b81529293849384938493849384938493849384938493919216906370a082319061092d908f9060040161452a565b60206040518083038186803b15801561094557600080fd5b505afa158015610959573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097d919061436e565b9a506109898c82612ed3565b909a5098506109988c82612fe7565b6001830154600784015460405163e78c9b3b60e01b8152939b5091995096506001600160a01b03169063e78c9b3b906109d5908f9060040161452a565b60206040518083038186803b1580156109ed57600080fd5b505afa158015610a01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a25919061436e565b6007820154604051631e739ae360e21b81529197506001600160a01b0316906379ce6b8c90610a58908f9060040161452a565b60206040518083038186803b158015610a7057600080fd5b505afa158015610a84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa89190614474565b9250603860008d6001600160a01b03166001600160a01b0316815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002060000160009054906101000a900460ff1691508060080160009054906101000a90046001600160a01b03166001600160a01b031663ee9907a48d6040518263ffffffff1660e01b8152600401610b48919061452a565b60206040518083038186803b158015610b6057600080fd5b505afa158015610b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b98919061436e565b9350509295989b9194979a5092959850565b600080600080600080600080600080610bc1613ec4565b506001600160a01b038b811660008181526037602090815260409182902082516101808101845281548152600182015481840152600282015481850152600382015460608201526004820154608082015283519283019093526005810154825260a08301919091526006810154841660c083018190526007820154851660e084015260088201548516610100840152600990910154938416610120830152600160a01b840464ffffffffff16610140830152600160c81b90930460ff16151561016082015291610c9191906130a0565b8160e001516001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cce57600080fd5b505afa158015610ce2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d06919061436e565b8261010001516001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d4457600080fd5b505afa158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c919061436e565b8360200151846040015185606001518660e001516001600160a01b03166390f6fcf26040518163ffffffff1660e01b815260040160206040518083038186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e00919061436e565b876000015188608001518961014001519a509a509a509a509a509a509a509a509a509a50509193959799509193959799565b6001600160a01b0381166000908152603760205260408120610e5390613144565b92915050565b6000806000806000806000806000806000603760008d6001600160a01b03166001600160a01b031681526020019081526020016000209050610e9d8160050161317e565b610ea98260050161318f565b610eb58360050161319e565b610ec1846005016131b3565b60098501546001600160a01b0316610edb6005870161318f565b1515610ee9600588016131c6565b610ef5886005016131d8565b610f01896005016131ea565b610f0d8a6005016131fc565b9a509a509a509a509a509a509a509a509a509a50509193959799509193959799565b60398181548110610f3c57fe5b6000918252602090912001546001600160a01b0316905081565b60026000541415610f795760405162461bcd60e51b81526004016101c990614b35565b6002600055610f86613f2b565b6001600160a01b03808616600081815260376020908152604080832094871683526038825280832093835292905220610fbf8483612ed3565b602085015283526000856002811115610fd457fe5b90506001816002811115610fe457fe5b14610ff3578360200151610ff6565b83515b604085015260001987148015906110105750836040015187105b1561101d57604084018790525b83516020850151604080870151905163152be4bd60e31b815273__$69254465eb8f179ea24caa73cf68b23524$__9363a95f25e89361106a9389938f938f938a938f933490600401614c0d565b60006040518083038186803b15801561108257600080fd5b505af4158015611096573d6000803e3d6000fd5b505050506110a38361320e565b60018160028111156110b157fe5b14156111265760078301546040808601519051632770a7eb60e21b81526001600160a01b0390921691639dc29fac916110ef9189919060040161453e565b600060405180830381600087803b15801561110957600080fd5b505af115801561111d573d6000803e3d6000fd5b50505050611191565b60088301546040808601519051632770a7eb60e21b81526001600160a01b0390921691639dc29fac9161115e9189919060040161453e565b600060405180830381600087803b15801561117857600080fd5b505af115801561118c573d6000803e3d6000fd5b505050505b60408401516111ab9084908a90600063ffffffff6132c616565b600683015460408501516111d9916001600160a01b038b81169233929190911690600063ffffffff6135a716565b6111eb886001600160a01b0316613735565b1561122d57600061120985604001513461375a90919063ffffffff16565b9050801561122b5761122b6001600160a01b038a16338363ffffffff61379c16565b505b336001600160a01b0316856001600160a01b0316896001600160a01b03167f81cfb79463601de705d4cf6b8d69112983d76a685120e5e4d3581f30871b87fc876040015142604051611280929190614d40565b60405180910390a450506001600055505050505050565b600260005414156112ba5760405162461bcd60e51b81526004016101c990614b35565b600260009081556001600160a01b038084168083526037602081815260408086203387526038808452828820958852948352958190206035548251631f94a27560e31b81529251919673__$69254465eb8f179ea24caa73cf68b23524$__9663e1717580968a968d9691959294603994169263fca513a8926004808201939291829003018186803b15801561134e57600080fd5b505afa158015611362573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113869190613fc1565b6040518763ffffffff1660e01b81526004016113a796959493929190614ba4565b60006040518083038186803b1580156113bf57600080fd5b505af41580156113d3573d6000803e3d6000fd5b5050825460ff191685158015919091178455915061142790505760405133906001600160a01b038616907e058a56ea94653cdf4f152d227ace22d4c00ad99e2a43f58cb7d9e3feb295f290600090a361145e565b60405133906001600160a01b038616907f44c58d81365b66dd4b1a7f36c25aa97b8c71c361ee4937adc1a00000227db5dd90600090a35b505060016000555050565b6002600054141561148c5760405162461bcd60e51b81526004016101c990614b35565b6002600055611499613f53565b6001600160a01b038085166000818152603760205260409020600681015490921660a084018190526114d1919063ffffffff6130a016565b82526114f66127106114ea86600963ffffffff61385516565b9063ffffffff61388f16565b6060830181905261151790612710906114ea90610bb863ffffffff61385516565b6080830152815184111561153d5760405162461bcd60e51b81526004016101c990614767565b60008260600151118015611555575060008260800151115b6115715760405162461bcd60e51b81526004016101c990614a99565b60a0820151604051634efecaa560e01b8152879182916001600160a01b0390911690634efecaa5906115a99084908a9060040161453e565b602060405180830381600087803b1580156115c357600080fd5b505af11580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb919061436e565b5060a0840151606085015160405163405b019d60e01b81526001600160a01b0385169263405b019d92611637928c92918c918c90600401614578565b600060405180830381600087803b15801561165157600080fd5b505af1158015611665573d6000803e3d6000fd5b50505050600061168b8560a00151896001600160a01b03166130a090919063ffffffff16565b606086015186519192506116a5919063ffffffff6138d116565b81146116c35760405162461bcd60e51b81526004016101c99061483e565b8373__$5e6137a1b5a0a366e2874209b5abf71c10$__638acb830b90918a88600001516117018a608001518b6060015161375a90919063ffffffff16565b8a608001516040518663ffffffff1660e01b8152600401611726959493929190614c6c565b60006040518083038186803b15801561173e57600080fd5b505af4158015611752573d6000803e3d6000fd5b505050508460a001516001600160a01b0316634efecaa5603560009054906101000a90046001600160a01b03166001600160a01b031663ee8912966040518163ffffffff1660e01b815260040160206040518083038186803b1580156117b757600080fd5b505afa1580156117cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ef9190613fc1565b87608001516040518363ffffffff1660e01b815260040161181192919061453e565b602060405180830381600087803b15801561182b57600080fd5b505af115801561183f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611863919061436e565b50876001600160a01b0316896001600160a01b03167f5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b558988606001518960800151426040516118b59493929190614d6d565b60405180910390a35050600160005550505050505050565b600073__$7347ff53b2b46c21e26a37164ae7f6739f$__63daae7055858585603760386039603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b15801561194057600080fd5b505afa158015611954573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119789190613fc1565b6040518863ffffffff1660e01b815260040161199a9796959493929190614638565b60206040518083038186803b1580156119b257600080fd5b505af41580156119c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c7919061433a565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611a2e57600080fd5b505afa158015611a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a669190613fc1565b6001600160a01b031614611a8c5760405162461bcd60e51b81526004016101c9906149b3565b6001600160a01b038516600090815260376020526040908190209051632d621e9960e21b815273__$5e6137a1b5a0a366e2874209b5abf71c10$__9163b5887a6491611ae391908890889088908890600401614b76565b60006040518083038186803b158015611afb57600080fd5b505af4158015611b0f573d6000803e3d6000fd5b50505050611b1c856138f6565b5050505050565b600281565b60026000541415611b4b5760405162461bcd60e51b81526004016101c990614b35565b600260009081556001600160a01b0383168082526037602090815260408084203380865260388452828620948652939092528320909290918190611b8f9085612ed3565b915091506000856002811115611ba157fe5b604051639e29334160e01b815290915073__$69254465eb8f179ea24caa73cf68b23524$__90639e29334190611be39088908890889088908890600401614d0a565b60006040518083038186803b158015611bfb57600080fd5b505af4158015611c0f573d6000803e3d6000fd5b50505050611c1c8561320e565b6001816002811115611c2a57fe5b1415611d01576007850154604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac90611c64903390879060040161453e565b600060405180830381600087803b158015611c7e57600080fd5b505af1158015611c92573d6000803e3d6000fd5b50505060088601546040516340c10f1960e01b81526001600160a01b0390911691506340c10f1990611cca903390879060040161453e565b600060405180830381600087803b158015611ce457600080fd5b505af1158015611cf8573d6000803e3d6000fd5b50505050611dd3565b6008850154604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac90611d35903390869060040161453e565b600060405180830381600087803b158015611d4f57600080fd5b505af1158015611d63573d6000803e3d6000fd5b5050505060078501546003860154604051630ab714fb60e11b81526001600160a01b039092169163156e29f691611da09133918791600401614557565b600060405180830381600087803b158015611dba57600080fd5b505af1158015611dce573d6000803e3d6000fd5b505050505b611de6858860008063ffffffff6132c616565b336001600160a01b0316876001600160a01b03167fea368a40e9570069bb8e6511d668293ad2e1f03b0d982431fd223de9f3b70ca642604051611e299190614d4e565b60405180910390a3505060016000555050505050565b60026000541415611e625760405162461bcd60e51b81526004016101c990614b35565b600260009081556001600160a01b0380861680835260376020908152604080852088851686526038835281862093865292909152928390206006820154935163cf478a7960e01b815291939092169073__$69254465eb8f179ea24caa73cf68b23524$__9063cf478a7990611edf9086908b908a90600401614bee565b60006040518083038186803b158015611ef757600080fd5b505af4158015611f0b573d6000803e3d6000fd5b50505050611f188361320e565b611f2b838860008863ffffffff6132c616565b83611f3957815460ff191682555b6006830154604051634efecaa560e01b81526001600160a01b0390911690634efecaa590611f6d908990899060040161453e565b602060405180830381600087803b158015611f8757600080fd5b505af1158015611f9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fbf919061436e565b50856001600160a01b0316876001600160a01b03167f9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c68742604051611e29929190614d40565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561204957600080fd5b505afa15801561205d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120819190613fc1565b6001600160a01b0316146120a75760405162461bcd60e51b81526004016101c9906149b3565b6001600160a01b03909116600090815260376020526040902060050155565b60008060008060008073__$7347ff53b2b46c21e26a37164ae7f6739f$__6392eeb05c88603760386039603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b15801561213e57600080fd5b505afa158015612152573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121769190613fc1565b6040518663ffffffff1660e01b815260040161219695949392919061468b565b60a06040518083038186803b1580156121ae57600080fd5b505af41580156121c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e69190614435565b60405163d609bd1b60e01b8152949a5092985095509350915073__$7347ff53b2b46c21e26a37164ae7f6739f$__9063d609bd1b9061222d90899089908790600401614d57565b60206040518083038186803b15801561224557600080fd5b505af4158015612259573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061227d919061436e565b935091939550919395565b612290613f92565b506001600160a01b03166000908152603760209081526040918290208251918201909252600590910154815290565b60006122c9613999565b60025490915060ff16806122e057506122e061399e565b806122ec575060015481115b6123085760405162461bcd60e51b81526004016101c99061492e565b60025460ff16158015612329576002805460ff191660019081179091558290555b603580546001600160a01b0319166001600160a01b03858116919091179182905560408051633efbbf0f60e21b81529051929091169163fbeefc3c91600480820192602092909190829003018186803b15801561238557600080fd5b505afa158015612399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123bd9190613fc1565b603680546001600160a01b0319166001600160a01b039290921691909117905580156123ee576002805460ff191690555b505050565b6035546001600160a01b031681565b600260005414156124255760405162461bcd60e51b81526004016101c990614b35565b600260009081556001600160a01b03851680825260376020908152604080842033855260388352818520938552929091528220909161257d6124696005850161317e565b600a0a6114ea88603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156124be57600080fd5b505afa1580156124d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f69190613fc1565b6001600160a01b031663b3596f078c6040518263ffffffff1660e01b8152600401612521919061452a565b60206040518083038186803b15801561253957600080fd5b505afa15801561254d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612571919061436e565b9063ffffffff61385516565b905073__$69254465eb8f179ea24caa73cf68b23524$__63335c5e8984848a8a868b6019603760386039603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156125f557600080fd5b505afa158015612609573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262d9190613fc1565b6040518c63ffffffff1660e01b81526004016126539b9a99989796959493929190614c98565b60006040518083038186803b15801561266b57600080fd5b505af415801561267f573d6000803e3d6000fd5b5050505061268c8361320e565b60098301805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055600383015460018660028111156126c157fe5b60028111156126cc57fe5b14156127c5576007840154604051630ab714fb60e11b81526001600160a01b039091169063156e29f6906127089033908b908690600401614557565b600060405180830381600087803b15801561272257600080fd5b505af1158015612736573d6000803e3d6000fd5b505050506007840154604051631e739ae360e21b81526000916001600160a01b0316906379ce6b8c9061276d90339060040161452a565b60206040518083038186803b15801561278557600080fd5b505afa158015612799573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127bd9190614474565b90505061282c565b60088401546040516340c10f1960e01b81526001600160a01b03909116906340c10f19906127f99033908b9060040161453e565b600060405180830381600087803b15801561281357600080fd5b505af1158015612827573d6000803e3d6000fd5b505050505b61283f848960008a63ffffffff6132c616565b6006840154604051634efecaa560e01b81526001600160a01b0390911690634efecaa5906128739033908b9060040161453e565b602060405180830381600087803b15801561288d57600080fd5b505af11580156128a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c5919061436e565b5061ffff8516336001600160a01b038a167fe002884724be85e729c98360169e709585b299ace6fbe12aa791d2fee6f652808a8a60018c600281111561290757fe5b600281111561291257fe5b14612921578960020154612923565b865b426040516112809493929190614d6d565b600260005414156129575760405162461bcd60e51b81526004016101c990614b35565b600260009081556001600160a01b03808416825260376020526040808320600781015491516370a0823160e01b81529093919092169182906370a08231906129a390879060040161452a565b60206040518083038186803b1580156129bb57600080fd5b505afa1580156129cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f3919061436e565b905060008111612a155760405162461bcd60e51b81526004016101c9906148d1565b6000612a4e612a3d6aa56fa5b99019a5c8000000612a316139a4565b9063ffffffff6138d116565b60038601549063ffffffff6139b416565b90506000836001600160a01b031663e78c9b3b876040518263ffffffff1660e01b8152600401612a7e919061452a565b60206040518083038186803b158015612a9657600080fd5b505afa158015612aaa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ace919061436e565b90508460010154811080612ae157508181115b612afd5760405162461bcd60e51b81526004016101c9906147ef565b612b068561320e565b604051632770a7eb60e21b81526001600160a01b03851690639dc29fac90612b34908990879060040161453e565b600060405180830381600087803b158015612b4e57600080fd5b505af1158015612b62573d6000803e3d6000fd5b5050506003860154604051630ab714fb60e11b81526001600160a01b038716925063156e29f691612b99918a918891600401614557565b600060405180830381600087803b158015612bb357600080fd5b505af1158015612bc7573d6000803e3d6000fd5b50612be1925087915089905060008063ffffffff6132c616565b856001600160a01b0316876001600160a01b03167f443060d15ff6dac05881a7c07a46ef8085d8af4399e436be6c25250df40c5f1842604051611e299190614d4e565b60001981565b6001600160a01b0381166000908152603760205260408120610e53906139ec565b6001600160a01b0390811660009081526037602052604090206006810154600782015460089092015490831693918316921690565b60026000541415612ca35760405162461bcd60e51b81526004016101c990614b35565b600260009081556001600160a01b038416808252603760209081526040808420338552603883528185209385529290915291829020915163b25dc48d60e01b815290919073__$69254465eb8f179ea24caa73cf68b23524$__9063b25dc48d90612d139085908890600401614d40565b60006040518083038186803b158015612d2b57600080fd5b505af4158015612d3f573d6000803e3d6000fd5b50505060068301546040516370a0823160e01b81526001600160a01b03909116915060009082906370a0823190612d7a90339060040161452a565b60206040518083038186803b158015612d9257600080fd5b505afa158015612da6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dca919061436e565b159050612dd68461320e565b612de9848888600063ffffffff6132c616565b8015612dfb57825460ff191660011783555b6040516394362e8b60e01b81526001600160a01b038316906394362e8b90612e299033908a9060040161453e565b600060405180830381600087803b158015612e4357600080fd5b505af1158015612e57573d6000803e3d6000fd5b50612e73925050506001600160a01b03881633848960016135a7565b8461ffff16336001600160a01b0316886001600160a01b03167fc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c828942604051612ebd929190614d40565b60405180910390a4505060016000555050505050565b60078101546040516370a0823160e01b815260009182916001600160a01b03909116906370a0823190612f0a90879060040161452a565b60206040518083038186803b158015612f2257600080fd5b505afa158015612f36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f5a919061436e565b60088401546040516370a0823160e01b81526001600160a01b03909116906370a0823190612f8c90889060040161452a565b60206040518083038186803b158015612fa457600080fd5b505afa158015612fb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fdc919061436e565b915091509250929050565b600781015460405163631a6fd560e11b815260009182916001600160a01b039091169063c634dfaa9061301e90879060040161452a565b60206040518083038186803b15801561303657600080fd5b505afa15801561304a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061306e919061436e565b600884015460405163631a6fd560e11b81526001600160a01b039091169063c634dfaa90612f8c90889060040161452a565b60006130ab83613735565b156130c157506001600160a01b03811631610e53565b6040516370a0823160e01b81526001600160a01b038416906370a08231906130ed90859060040161452a565b60206040518083038186803b15801561310557600080fd5b505afa158015613119573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061313d919061436e565b9392505050565b60008061313d836004015461317285600201548660090160149054906101000a900464ffffffffff16613a1a565b9063ffffffff6139b416565b5460301c610100600160d01b031690565b54670fffffffffff0000191690565b5460101c650fffffff0001600160f01b031690565b5460201c630fff0001600160e01b031690565b54603a1c6010600160c61b0316151590565b54603b1c6010600160c51b0316151590565b5460381c6010600160c81b0316151590565b5460391c6010600160c71b0316151590565b600061321982613a7f565b905080156132a2576001820154600983015460009161324591600160a01b900464ffffffffff16613b94565b835490915061325b90829063ffffffff6139b416565b83556002830154600984015460009161328191600160a01b900464ffffffffff16613a1a565b905061329a8460040154826139b490919063ffffffff16565b600485015550505b50600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b15801561330d57600080fd5b505afa158015613321573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613345919061436e565b600686015490915060009061336c906001600160a01b03878116911663ffffffff6130a016565b6009870154909150600090819081906001600160a01b03166357e37af0896133aa8961339e898d63ffffffff6138d116565b9063ffffffff61375a16565b8c60070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156133fa57600080fd5b505afa15801561340e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613432919061436e565b8d60080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561348257600080fd5b505afa158015613496573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134ba919061436e565b8a6040518663ffffffff1660e01b81526004016134db9594939291906146ce565b60606040518083038186803b1580156134f357600080fd5b505afa158015613507573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061352b9190614408565b60018c0183905560038c0182905560028c018190558b5460048d01546040519497509295509093506001600160a01b038b16927f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a49261359492889288928c928992909190614de0565b60405180910390a2505050505050505050565b816135b157611b1c565b6135ba85613735565b1561371a57813410156135df5760405162461bcd60e51b81526004016101c990614a06565b6001600160a01b0383163014613672576000836001600160a01b03168361c3509060405161360c90614527565b600060405180830381858888f193505050503d806000811461364a576040519150601f19603f3d011682016040523d82523d6000602084013e61364f565b606091505b50509050806136705760405162461bcd60e51b81526004016101c990614a50565b505b80801561367e57508134115b156137155760006001600160a01b03851661369f348563ffffffff61375a16565b61c350906040516136af90614527565b600060405180830381858888f193505050503d80600081146136ed576040519150601f19603f3d011682016040523d82523d6000602084013e6136f2565b606091505b50509050806137135760405162461bcd60e51b81526004016101c990614a50565b505b611b1c565b611b1c6001600160a01b03861685858563ffffffff613bf416565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b600061313d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613c52565b806137a6576123ee565b6137af83613735565b1561383b576000826001600160a01b03168261c350906040516137d190614527565b600060405180830381858888f193505050503d806000811461380f576040519150601f19603f3d011682016040523d82523d6000602084013e613814565b606091505b50509050806138355760405162461bcd60e51b81526004016101c990614a50565b506123ee565b6123ee6001600160a01b038416838363ffffffff613c7e16565b60008261386457506000610e53565b8282028284828161387157fe5b041461313d5760405162461bcd60e51b81526004016101c990614890565b600061313d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613c9d565b60008282018381101561313d5760405162461bcd60e51b81526004016101c9906147b8565b6000805b60395481101561394357826001600160a01b03166039828154811061391b57fe5b6000918252602090912001546001600160a01b0316141561393b57600191505b6001016138fa565b508061399557603980546001810182556000919091527fdc16fef70f8d5ddbc01ee3d903d1e69c18a3c7be080eb86a81e0578814ee58d30180546001600160a01b0319166001600160a01b0384161790555b5050565b600290565b303b1590565b6b033b2e3c9fd0803ce800000090565b600061313d6b033b2e3c9fd0803ce80000006114ea6139d9868663ffffffff61385516565b6b019d971e4fe8401e74000000906138d1565b60008061313d836000015461317285600101548660090160149054906101000a900464ffffffffff16613b94565b600080613a344264ffffffffff851663ffffffff61375a16565b90506000613a4c856301e1338063ffffffff61388f16565b9050613a7682613a6a613a5d6139a4565b849063ffffffff6138d116565b9063ffffffff613cd416565b95945050505050565b6000610e538260080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015613ad457600080fd5b505afa158015613ae8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b0c919061436e565b8360070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015613b5c57600080fd5b505afa158015613b70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a31919061436e565b600080613bae4264ffffffffff851663ffffffff61375a16565b90506000613bd7613bc26301e13380613d2e565b613bcb84613d2e565b9063ffffffff613d4416565b9050613a76613be46139a4565b612a31878463ffffffff6139b416565b613c4c846323b872dd60e01b858585604051602401613c1593929190614614565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613d67565b50505050565b60008184841115613c765760405162461bcd60e51b81526004016101c99190614754565b505050900390565b6123ee8363a9059cbb60e01b8484604051602401613c1592919061453e565b60008183613cbe5760405162461bcd60e51b81526004016101c99190614754565b506000838581613cca57fe5b0495945050505050565b600060028206613cf0576b033b2e3c9fd0803ce8000000613cf2565b825b90506002820491505b8115610e5357613d0b83846139b4565b92506002820615613d2357613d2081846139b4565b90505b600282049150613cfb565b6000610e5382633b9aca0063ffffffff61385516565b6000600282046105c7836114ea613a5d876b033b2e3c9fd0803ce8000000613855565b6060613dbc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613df69092919063ffffffff16565b8051909150156123ee5780806020019051810190613dda919061433a565b6123ee5760405162461bcd60e51b81526004016101c990614aeb565b60606105c784846000856060613e0b85610593565b613e275760405162461bcd60e51b81526004016101c9906149cf565b60006060866001600160a01b03168587604051613e44919061450b565b60006040518083038185875af1925050503d8060008114613e81576040519150601f19603f3d011682016040523d82523d6000602084013e613e86565b606091505b50915091508115613e9a5791506105c79050565b805115613eaa5780518082602001fd5b8360405162461bcd60e51b81526004016101c99190614754565b6040518061018001604052806000815260200160008152602001600081526020016000815260200160008152602001613efb613f92565b815260006020820181905260408201819052606082018190526080820181905260a0820181905260c09091015290565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b6040518060c00160405280600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b6040518060200160405280600081525090565b600060208284031215613fb6578081fd5b813561313d81614f26565b600060208284031215613fd2578081fd5b815161313d81614f26565b60008060408385031215613fef578081fd5b8235613ffa81614f26565b9150602083013561400a81614f26565b809150509250929050565b6000806000806080858703121561402a578182fd5b843561403581614f26565b9350602085013561404581614f26565b93969395505050506040820135916060013590565b600080600080600060a08688031215614071578081fd5b853561407c81614f26565b9450602086013561408c81614f26565b9350604086013561409c81614f26565b925060608601356140ac81614f26565b915060808601356140bc81614f26565b809150509295509295909350565b600080600080600060a086880312156140e1578081fd5b85356140ec81614f26565b945060208601356140fc81614f26565b9350604086013561410c81614f26565b92506060860135915060808601356140bc81614f3b565b600080600060608486031215614137578283fd5b833561414281614f26565b9250602084013561415281614f26565b929592945050506040919091013590565b60008060008060808587031215614178578384fd5b843561418381614f26565b9350602085013561419381614f26565b925060408501359150606085013567ffffffffffffffff8111156141b5578182fd5b80860187601f8201126141c6578283fd5b803591506141db6141d683614ec9565b614ea2565b8281528860208484010111156141ef578384fd5b8260208301602083013791820160200192909252939692955090935050565b60008060408385031215614220578182fd5b823561422b81614f26565b9150602083013561400a81614f3b565b6000806040838503121561424d578182fd5b823561425881614f26565b946020939093013593505050565b60008060006060848603121561427a578081fd5b833561428581614f26565b925060208401359150604084013561ffff811681146142a2578182fd5b809150509250925092565b600080600080608085870312156142c2578182fd5b84356142cd81614f26565b9350602085013592506040850135915060608501356142eb81614f26565b939692955090935050565b6000806000806080858703121561430b578182fd5b843561431681614f26565b93506020850135925060408501359150606085013561ffff811681146142eb578182fd5b60006020828403121561434b578081fd5b815161313d81614f3b565b600060208284031215614367578081fd5b5035919050565b60006020828403121561437f578081fd5b5051919050565b60008060408385031215614398578182fd5b82519150602083015167ffffffffffffffff8111156143b5578182fd5b80840185601f8201126143c6578283fd5b805191506143d66141d683614ec9565b8281528660208484010111156143ea578384fd5b6143fb836020830160208501614eed565b8093505050509250929050565b60008060006060848603121561441c578081fd5b8351925060208401519150604084015190509250925092565b600080600080600060a0868803121561444c578283fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b600060208284031215614485578081fd5b815164ffffffffff8116811461313d578182fd5b6000815480845260208085019450838352808320835b838110156144d45781546001600160a01b0316875295820195600191820191016144af565b509495945050505050565b600081518084526144f7816020860160208601614eed565b601f01601f19169290920160200192915050565b6000825161451d818460208701614eed565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906145b2908301846144df565b979650505050505050565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252901515608082015260a00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060018060a01b03808a168352808916602084015287604084015286606084015285608084015260e060a084015261467460e0840186614499565b915080841660c08401525098975050505050505050565b600060018060a01b03808816835286602084015285604084015260a060608401526146b960a0840186614499565b91508084166080840152509695505050505050565b6001600160a01b03959095168552602085019390935260408401919091526060830152608082015260a00190565b6020808252825182820181905260009190848201906040850190845b8181101561473d5783516001600160a01b031683529284019291840191600101614718565b50909695505050505050565b901515815260200190565b60006020825261313d60208301846144df565b60208082526031908201527f5468657265206973206e6f7420656e6f756768206c697175696469747920617660408201527061696c61626c6520746f20626f72726f7760781b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252602f908201527f496e746572657374207261746520726562616c616e636520636f6e646974696f60408201526e1b9cc81dd95c99481b9bdd081b595d608a1b606082015260800190565b60208082526032908201527f5468652061637475616c2062616c616e6365206f66207468652070726f746f636040820152711bdb081a5cc81a5b98dbdb9cda5cdd195b9d60721b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526038908201527f5573657220646f6573206e6f74206861766520616e7920737461626c6520726160408201527f7465206c6f616e20666f72207468697320726573657276650000000000000000606082015260800190565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526017908201527f4c69717569646174696f6e2063616c6c206661696c6564000000000000000000604082015260600190565b602080825260029082015261033360f41b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f57726f6e67207573616765206f66204554482e756e6976657273616c5472616e6040820152697366657246726f6d282960b01b606082015260800190565b60208082526013908201527211551217d514905394d1915497d19052531151606a1b604082015260600190565b602080825260029082015261191960f11b604082015260600190565b60208082526032908201527f5468652072657175657374656420616d6f756e7420697320746f6f20736d616c60408201527136103337b9103090233630b9b42637b0b71760711b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b9051815260200190565b9485526001600160a01b03938416602086015291831660408501528216606084015216608082015260a00190565b600087825260018060a01b03808816602084015286604084015285606084015260c06080840152614bd860c0840186614499565b915080841660a084015250979650505050505050565b9283526001600160a01b03919091166020830152604082015260600190565b8981526001600160a01b03898116602083015260408201899052610120820190614c3689614f19565b8860608401528088166080840152508560a08301528460c08301528360e0830152826101008301529a9950505050505050505050565b9485526001600160a01b0393909316602085015260408401919091526060830152608082015260a00190565b60006101608d83528c602084015260018060a01b03808d1660408501528b60608501528a60808501528960a08501528860c08501528760e08501528661010085015281610120850152614ced82850187614499565b925080851661014085015250509c9b505050505050505050505050565b600060a082019050868252856020830152846040830152836060830152614d3083614f19565b8260808301529695505050505050565b918252602082015260400190565b90815260200190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b998a5260208a0198909852604089019690965260608801949094526001600160a01b03929092166080870152151560a0860152151560c0850152151560e0840152151561010083015215156101208201526101400190565b958652602086019490945260408501929092526060840152608083015260a082015260c00190565b998a5260208a019890985260408901969096526060880194909452608087019290925260a086015260c085015260e084015261010083015264ffffffffff166101208201526101400190565b998a5260208a019890985260408901969096526060880194909452608087019290925260a086015260c085015260e084015264ffffffffff1661010083015215156101208201526101400190565b60405181810167ffffffffffffffff81118282101715614ec157600080fd5b604052919050565b600067ffffffffffffffff821115614edf578081fd5b50601f01601f191660200190565b60005b83811015614f08578181015183820152602001614ef0565b83811115613c4c5750506000910152565b60038110614f2357fe5b50565b6001600160a01b0381168114614f2357600080fd5b8015158114614f2357600080fdfea2646970667358221220cf44fc9637ebbe427367506ae10c6899f9bd61b3a77cff08e37b840242acafca64736f6c63430006080033'; + "0x6080604052600060015534801561001557600080fd5b506001600055614f7c8061002a6000396000f3fe60806040526004361061019f5760003560e01c80638afaff02116100ec578063c72c4d101161008a578063d0fc81d211610064578063d0fc81d21461051c578063d15e005314610531578063d2493b6c14610551578063d2d0e06614610580576101d4565b8063c72c4d10146104c7578063c858f5f9146104dc578063cd112382146104fc576101d4565b8063b8d29276116100c6578063b8d2927614610428578063bf92857c14610448578063c44b11f71461047a578063c4d66de8146104a7576101d4565b80638afaff02146103d357806394ba89a2146103e85780639895e3d814610408576101d4565b80633e150141116101595780635a3b74b9116101335780635a3b74b9146103465780635cffe9de1461036657806376e9d615146103865780637a708e92146103b3576101d4565b80633e150141146102d05780634fe7a6e514610306578063573ade8114610333576101d4565b8062a718a9146101d95780630902f1ac146101ec5780631d2118f91461021757806328dd2d011461023757806335ea6a751461026d578063386497fd146102a3576101d4565b366101d4576101ad33610593565b6101d25760405162461bcd60e51b81526004016101c990614a7e565b60405180910390fd5b005b600080fd5b6101d26101e73660046140cb565b6105d1565b3480156101f857600080fd5b506102016107a3565b60405161020e91906146fd565b60405180910390f35b34801561022357600080fd5b506101d2610232366004613fde565b610805565b34801561024357600080fd5b50610257610252366004613fde565b6108d8565b60405161020e9a99989796959493929190614e50565b34801561027957600080fd5b5061028d610288366004613fa6565b610bac565b60405161020e9a99989796959493929190614e04565b3480156102af57600080fd5b506102c36102be366004613fa6565b610e34565b60405161020e9190614d4a565b3480156102dc57600080fd5b506102f06102eb366004613fa6565b610e5b565b60405161020e9a99989796959493929190614d84565b34801561031257600080fd5b50610326610321366004614357565b610f31565b60405161020e919061452b565b6101d26103413660046142ae565b610f58565b34801561035257600080fd5b506101d261036136600461420f565b611299565b34801561037257600080fd5b506101d2610381366004614164565b61146b565b34801561039257600080fd5b506103a66103a1366004614124565b6118cf565b60405161020e919061474a565b3480156103bf57600080fd5b506101d26103ce36600461405b565b6119f4565b3480156103df57600080fd5b506102c3611b2d565b3480156103f457600080fd5b506101d261040336600461423c565b611b32565b34801561041457600080fd5b506101d2610423366004614016565b611e49565b34801561043457600080fd5b506101d261044336600461423c565b61200f565b34801561045457600080fd5b50610468610463366004613fa6565b6120d0565b60405161020e96959493929190614ddc565b34801561048657600080fd5b5061049a610495366004613fa6565b612292565b60405161020e9190614b6d565b3480156104b357600080fd5b506101d26104c2366004613fa6565b6122c9565b3480156104d357600080fd5b506103266123fd565b3480156104e857600080fd5b506101d26104f73660046142f7565b61240c565b34801561050857600080fd5b506101d2610517366004613fde565b61293e565b34801561052857600080fd5b506102c3612c2e565b34801561053d57600080fd5b506102c361054c366004613fa6565b612c34565b34801561055d57600080fd5b5061057161056c366004613fa6565b612c55565b60405161020e939291906145be565b6101d261058e366004614267565b612c8a565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906105c757508115155b925050505b919050565b600260005414156105f45760405162461bcd60e51b81526004016101c990614b36565b6002600090815560355460408051632c1a75cd60e11b815290516001600160a01b0390921691635834eb9a91600480820192602092909190829003018186803b15801561064057600080fd5b505afa158015610654573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106789190613fc2565b905060006060826001600160a01b031688888888886040516024016106a19594939291906145e1565b60408051601f198184030181529181526020820180516001600160e01b031662a718a960e01b179052516106d5919061450c565b600060405180830381855af49150503d8060008114610710576040519150601f19603f3d011682016040523d82523d6000602084013e610715565b606091505b5091509150816107375760405162461bcd60e51b81526004016101c99061497d565b600060608280602001905181019061074f9190614387565b9150915081600014610792578060405160200161076c919061450c565b60408051601f198184030181529082905262461bcd60e51b82526101c991600401614755565b505060016000555050505050505050565b606060398054806020026020016040519081016040528092919081815260200182805480156107fb57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107dd575b5050505050905090565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561084957600080fd5b505afa15801561085d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108819190613fc2565b6001600160a01b0316146108a75760405162461bcd60e51b81526004016101c9906149b4565b6001600160a01b03918216600090815260376020526040902060090180546001600160a01b03191691909216179055565b6001600160a01b03808316600090815260376020526040808220600681015491516370a0823160e01b81529293849384938493849384938493849384938493919216906370a082319061092f908f9060040161452b565b60206040518083038186803b15801561094757600080fd5b505afa15801561095b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097f919061436f565b9a5061098b8c82612edd565b909a50985061099a8c82612ff1565b6001830154600784015460405163e78c9b3b60e01b8152939b5091995096506001600160a01b03169063e78c9b3b906109d7908f9060040161452b565b60206040518083038186803b1580156109ef57600080fd5b505afa158015610a03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a27919061436f565b6007820154604051631e739ae360e21b81529197506001600160a01b0316906379ce6b8c90610a5a908f9060040161452b565b60206040518083038186803b158015610a7257600080fd5b505afa158015610a86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aaa9190614475565b9250603860008d6001600160a01b03166001600160a01b0316815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002060000160009054906101000a900460ff1691508060080160009054906101000a90046001600160a01b03166001600160a01b031663ee9907a48d6040518263ffffffff1660e01b8152600401610b4a919061452b565b60206040518083038186803b158015610b6257600080fd5b505afa158015610b76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9a919061436f565b9350509295989b9194979a5092959850565b600080600080600080600080600080610bc3613ec5565b506001600160a01b038b811660008181526037602090815260409182902082516101808101845281548152600182015481840152600282015481850152600382015460608201526004820154608082015283519283019093526005810154825260a08301919091526006810154841660c083018190526007820154851660e084015260088201548516610100840152600990910154938416610120830152600160a01b840464ffffffffff16610140830152600160c81b90930460ff16151561016082015291610c9391906130aa565b8160e001516001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cd057600080fd5b505afa158015610ce4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d08919061436f565b8261010001516001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d4657600080fd5b505afa158015610d5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7e919061436f565b8360200151846040015185606001518660e001516001600160a01b03166390f6fcf26040518163ffffffff1660e01b815260040160206040518083038186803b158015610dca57600080fd5b505afa158015610dde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e02919061436f565b876000015188608001518961014001519a509a509a509a509a509a509a509a509a509a50509193959799509193959799565b6001600160a01b0381166000908152603760205260408120610e559061314e565b92915050565b6000806000806000806000806000806000603760008d6001600160a01b03166001600160a01b031681526020019081526020016000209050610e9f81600501613188565b610eab82600501613199565b610eb7836005016131a8565b610ec3846005016131bd565b60098501546001600160a01b0316610edd60058701613199565b1515610eeb600588016131d0565b610ef7886005016131e2565b610f03896005016131eb565b610f0f8a6005016131fd565b9a509a509a509a509a509a509a509a509a509a50509193959799509193959799565b60398181548110610f3e57fe5b6000918252602090912001546001600160a01b0316905081565b60026000541415610f7b5760405162461bcd60e51b81526004016101c990614b36565b6002600055610f88613f2c565b6001600160a01b03808616600081815260376020908152604080832094871683526038825280832093835292905220610fc18483612edd565b602085015283526000856002811115610fd657fe5b90506001816002811115610fe657fe5b14610ff5578360200151610ff8565b83515b604085015260001987148015906110125750836040015187105b1561101f57604084018790525b83516020850151604080870151905163152be4bd60e31b815273__$69254465eb8f179ea24caa73cf68b23524$__9363a95f25e89361106c9389938f938f938a938f933490600401614c0e565b60006040518083038186803b15801561108457600080fd5b505af4158015611098573d6000803e3d6000fd5b505050506110a58361320f565b60018160028111156110b357fe5b14156111285760078301546040808601519051632770a7eb60e21b81526001600160a01b0390921691639dc29fac916110f19189919060040161453f565b600060405180830381600087803b15801561110b57600080fd5b505af115801561111f573d6000803e3d6000fd5b50505050611193565b60088301546040808601519051632770a7eb60e21b81526001600160a01b0390921691639dc29fac916111609189919060040161453f565b600060405180830381600087803b15801561117a57600080fd5b505af115801561118e573d6000803e3d6000fd5b505050505b60408401516111ad9084908a90600063ffffffff6132c716565b600683015460408501516111db916001600160a01b038b81169233929190911690600063ffffffff6135a816565b6111ed886001600160a01b0316613736565b1561122f57600061120b85604001513461375b90919063ffffffff16565b9050801561122d5761122d6001600160a01b038a16338363ffffffff61379d16565b505b336001600160a01b0316856001600160a01b0316896001600160a01b03167f81cfb79463601de705d4cf6b8d69112983d76a685120e5e4d3581f30871b87fc876040015142604051611282929190614d3c565b60405180910390a450506001600055505050505050565b600260005414156112bc5760405162461bcd60e51b81526004016101c990614b36565b600260009081556001600160a01b038084168083526037602081815260408086203387526038808452828820958852948352958190206035548251631f94a27560e31b81529251919673__$69254465eb8f179ea24caa73cf68b23524$__9663e1717580968a968d9691959294603994169263fca513a8926004808201939291829003018186803b15801561135057600080fd5b505afa158015611364573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113889190613fc2565b6040518763ffffffff1660e01b81526004016113a996959493929190614ba5565b60006040518083038186803b1580156113c157600080fd5b505af41580156113d5573d6000803e3d6000fd5b5050825460ff191685158015919091178455915061142990505760405133906001600160a01b038616907e058a56ea94653cdf4f152d227ace22d4c00ad99e2a43f58cb7d9e3feb295f290600090a3611460565b60405133906001600160a01b038616907f44c58d81365b66dd4b1a7f36c25aa97b8c71c361ee4937adc1a00000227db5dd90600090a35b505060016000555050565b6002600054141561148e5760405162461bcd60e51b81526004016101c990614b36565b600260005561149b613f54565b6001600160a01b038085166000818152603760205260409020600681015490921660a084018190526114d3919063ffffffff6130aa16565b82526114f86127106114ec86600963ffffffff61385616565b9063ffffffff61389016565b6060830181905261151990612710906114ec90610bb863ffffffff61385616565b6080830152815184111561153f5760405162461bcd60e51b81526004016101c990614768565b60008260600151118015611557575060008260800151115b6115735760405162461bcd60e51b81526004016101c990614a9a565b60a0820151604051634efecaa560e01b8152879182916001600160a01b0390911690634efecaa5906115ab9084908a9060040161453f565b602060405180830381600087803b1580156115c557600080fd5b505af11580156115d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fd919061436f565b5060a0840151606085015160405163405b019d60e01b81526001600160a01b0385169263405b019d92611639928c92918c918c90600401614579565b600060405180830381600087803b15801561165357600080fd5b505af1158015611667573d6000803e3d6000fd5b50505050600061168d8560a00151896001600160a01b03166130aa90919063ffffffff16565b606086015186519192506116a7919063ffffffff6138d216565b81146116c55760405162461bcd60e51b81526004016101c99061483f565b8373__$5e6137a1b5a0a366e2874209b5abf71c10$__638acb830b90918a88600001516117038a608001518b6060015161375b90919063ffffffff16565b8a608001516040518663ffffffff1660e01b8152600401611728959493929190614c69565b60006040518083038186803b15801561174057600080fd5b505af4158015611754573d6000803e3d6000fd5b505050508460a001516001600160a01b0316634efecaa5603560009054906101000a90046001600160a01b03166001600160a01b031663ee8912966040518163ffffffff1660e01b815260040160206040518083038186803b1580156117b957600080fd5b505afa1580156117cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f19190613fc2565b87608001516040518363ffffffff1660e01b815260040161181392919061453f565b602060405180830381600087803b15801561182d57600080fd5b505af1158015611841573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611865919061436f565b50876001600160a01b0316896001600160a01b03167f5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b558988606001518960800151426040516118b79493929190614d69565b60405180910390a35050600160005550505050505050565b600073__$7347ff53b2b46c21e26a37164ae7f6739f$__63daae7055858585603760386039603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b15801561194257600080fd5b505afa158015611956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197a9190613fc2565b6040518863ffffffff1660e01b815260040161199c9796959493929190614639565b60206040518083038186803b1580156119b457600080fd5b505af41580156119c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ec919061433b565b949350505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611a3857600080fd5b505afa158015611a4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a709190613fc2565b6001600160a01b031614611a965760405162461bcd60e51b81526004016101c9906149b4565b6001600160a01b038516600090815260376020526040908190209051632d621e9960e21b815273__$5e6137a1b5a0a366e2874209b5abf71c10$__9163b5887a6491611aed91908890889088908890600401614b77565b60006040518083038186803b158015611b0557600080fd5b505af4158015611b19573d6000803e3d6000fd5b50505050611b26856138f7565b5050505050565b600281565b60026000541415611b555760405162461bcd60e51b81526004016101c990614b36565b600260009081556001600160a01b0383168082526037602090815260408084203380865260388452828620948652939092528320909290918190611b999085612edd565b915091506000856002811115611bab57fe5b604051639e29334160e01b815290915073__$69254465eb8f179ea24caa73cf68b23524$__90639e29334190611bed9088908890889088908890600401614d07565b60006040518083038186803b158015611c0557600080fd5b505af4158015611c19573d6000803e3d6000fd5b50505050611c268561320f565b6001816002811115611c3457fe5b1415611d0b576007850154604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac90611c6e903390879060040161453f565b600060405180830381600087803b158015611c8857600080fd5b505af1158015611c9c573d6000803e3d6000fd5b50505060088601546040516340c10f1960e01b81526001600160a01b0390911691506340c10f1990611cd4903390879060040161453f565b600060405180830381600087803b158015611cee57600080fd5b505af1158015611d02573d6000803e3d6000fd5b50505050611ddd565b6008850154604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac90611d3f903390869060040161453f565b600060405180830381600087803b158015611d5957600080fd5b505af1158015611d6d573d6000803e3d6000fd5b5050505060078501546003860154604051630ab714fb60e11b81526001600160a01b039092169163156e29f691611daa9133918791600401614558565b600060405180830381600087803b158015611dc457600080fd5b505af1158015611dd8573d6000803e3d6000fd5b505050505b611df0858860008063ffffffff6132c716565b336001600160a01b0316876001600160a01b03167fea368a40e9570069bb8e6511d668293ad2e1f03b0d982431fd223de9f3b70ca642604051611e339190614d4a565b60405180910390a3505060016000555050505050565b60026000541415611e6c5760405162461bcd60e51b81526004016101c990614b36565b600260009081556001600160a01b0380861680835260376020908152604080852088851686526038835281862093865292909152928390206006820154935163cf478a7960e01b815291939092169073__$69254465eb8f179ea24caa73cf68b23524$__9063cf478a7990611ee99086908b908a90600401614bef565b60006040518083038186803b158015611f0157600080fd5b505af4158015611f15573d6000803e3d6000fd5b50505050611f228361320f565b611f35838860008863ffffffff6132c716565b83611f4357815460ff191682555b6006830154604051634efecaa560e01b81526001600160a01b0390911690634efecaa590611f77908990899060040161453f565b602060405180830381600087803b158015611f9157600080fd5b505af1158015611fa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc9919061436f565b50856001600160a01b0316876001600160a01b03167f9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c68742604051611e33929190614d3c565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561205357600080fd5b505afa158015612067573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208b9190613fc2565b6001600160a01b0316146120b15760405162461bcd60e51b81526004016101c9906149b4565b6001600160a01b03909116600090815260376020526040902060050155565b60008060008060008073__$7347ff53b2b46c21e26a37164ae7f6739f$__6392eeb05c88603760386039603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b15801561214857600080fd5b505afa15801561215c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121809190613fc2565b6040518663ffffffff1660e01b81526004016121a095949392919061468c565b60a06040518083038186803b1580156121b857600080fd5b505af41580156121cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f09190614436565b60405163d609bd1b60e01b8152949a5092985095509350915073__$7347ff53b2b46c21e26a37164ae7f6739f$__9063d609bd1b9061223790899089908790600401614d53565b60206040518083038186803b15801561224f57600080fd5b505af4158015612263573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612287919061436f565b935091939550919395565b61229a613f93565b506001600160a01b03166000908152603760209081526040918290208251918201909252600590910154815290565b60006122d361399a565b60025490915060ff16806122ea57506122ea61399f565b806122f6575060015481115b6123125760405162461bcd60e51b81526004016101c99061492f565b60025460ff16158015612333576002805460ff191660019081179091558290555b603580546001600160a01b0319166001600160a01b03858116919091179182905560408051633efbbf0f60e21b81529051929091169163fbeefc3c91600480820192602092909190829003018186803b15801561238f57600080fd5b505afa1580156123a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123c79190613fc2565b603680546001600160a01b0319166001600160a01b039290921691909117905580156123f8576002805460ff191690555b505050565b6035546001600160a01b031681565b6002600054141561242f5760405162461bcd60e51b81526004016101c990614b36565b600260009081556001600160a01b03851680825260376020908152604080842033855260388352818520938552929091528220909161258761247360058501613188565b600a0a6114ec88603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156124c857600080fd5b505afa1580156124dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125009190613fc2565b6001600160a01b031663b3596f078c6040518263ffffffff1660e01b815260040161252b919061452b565b60206040518083038186803b15801561254357600080fd5b505afa158015612557573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061257b919061436f565b9063ffffffff61385616565b905073__$69254465eb8f179ea24caa73cf68b23524$__63335c5e8984848a8a868b6019603760386039603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156125ff57600080fd5b505afa158015612613573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126379190613fc2565b6040518c63ffffffff1660e01b815260040161265d9b9a99989796959493929190614c95565b60006040518083038186803b15801561267557600080fd5b505af4158015612689573d6000803e3d6000fd5b505050506126968361320f565b60098301805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055600383015460018660028111156126cb57fe5b60028111156126d657fe5b14156127cf576007840154604051630ab714fb60e11b81526001600160a01b039091169063156e29f6906127129033908b908690600401614558565b600060405180830381600087803b15801561272c57600080fd5b505af1158015612740573d6000803e3d6000fd5b505050506007840154604051631e739ae360e21b81526000916001600160a01b0316906379ce6b8c9061277790339060040161452b565b60206040518083038186803b15801561278f57600080fd5b505afa1580156127a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c79190614475565b905050612836565b60088401546040516340c10f1960e01b81526001600160a01b03909116906340c10f19906128039033908b9060040161453f565b600060405180830381600087803b15801561281d57600080fd5b505af1158015612831573d6000803e3d6000fd5b505050505b612849848960008a63ffffffff6132c716565b6006840154604051634efecaa560e01b81526001600160a01b0390911690634efecaa59061287d9033908b9060040161453f565b602060405180830381600087803b15801561289757600080fd5b505af11580156128ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128cf919061436f565b5061ffff8516336001600160a01b038a167fe002884724be85e729c98360169e709585b299ace6fbe12aa791d2fee6f652808a8a60018c600281111561291157fe5b600281111561291c57fe5b1461292b57896002015461292d565b865b426040516112829493929190614d69565b600260005414156129615760405162461bcd60e51b81526004016101c990614b36565b600260009081556001600160a01b03808416825260376020526040808320600781015491516370a0823160e01b81529093919092169182906370a08231906129ad90879060040161452b565b60206040518083038186803b1580156129c557600080fd5b505afa1580156129d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129fd919061436f565b905060008111612a1f5760405162461bcd60e51b81526004016101c9906148d2565b6000612a58612a476aa56fa5b99019a5c8000000612a3b6139a5565b9063ffffffff6138d216565b60038601549063ffffffff6139b516565b90506000836001600160a01b031663e78c9b3b876040518263ffffffff1660e01b8152600401612a88919061452b565b60206040518083038186803b158015612aa057600080fd5b505afa158015612ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ad8919061436f565b90508460010154811080612aeb57508181115b612b075760405162461bcd60e51b81526004016101c9906147f0565b612b108561320f565b604051632770a7eb60e21b81526001600160a01b03851690639dc29fac90612b3e908990879060040161453f565b600060405180830381600087803b158015612b5857600080fd5b505af1158015612b6c573d6000803e3d6000fd5b5050506003860154604051630ab714fb60e11b81526001600160a01b038716925063156e29f691612ba3918a918891600401614558565b600060405180830381600087803b158015612bbd57600080fd5b505af1158015612bd1573d6000803e3d6000fd5b50612beb925087915089905060008063ffffffff6132c716565b856001600160a01b0316876001600160a01b03167f443060d15ff6dac05881a7c07a46ef8085d8af4399e436be6c25250df40c5f1842604051611e339190614d4a565b60001981565b6001600160a01b0381166000908152603760205260408120610e55906139ed565b6001600160a01b0390811660009081526037602052604090206006810154600782015460089092015490831693918316921690565b60026000541415612cad5760405162461bcd60e51b81526004016101c990614b36565b600260009081556001600160a01b038416808252603760209081526040808420338552603883528185209385529290915291829020915163b25dc48d60e01b815290919073__$69254465eb8f179ea24caa73cf68b23524$__9063b25dc48d90612d1d9085908890600401614d3c565b60006040518083038186803b158015612d3557600080fd5b505af4158015612d49573d6000803e3d6000fd5b50505060068301546040516370a0823160e01b81526001600160a01b03909116915060009082906370a0823190612d8490339060040161452b565b60206040518083038186803b158015612d9c57600080fd5b505afa158015612db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd4919061436f565b159050612de08461320f565b612df3848888600063ffffffff6132c716565b8015612e0557825460ff191660011783555b6040516394362e8b60e01b81526001600160a01b038316906394362e8b90612e339033908a9060040161453f565b600060405180830381600087803b158015612e4d57600080fd5b505af1158015612e61573d6000803e3d6000fd5b50612e7d925050506001600160a01b03881633848960016135a8565b8461ffff16336001600160a01b0316886001600160a01b03167fc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c828942604051612ec7929190614d3c565b60405180910390a4505060016000555050505050565b60078101546040516370a0823160e01b815260009182916001600160a01b03909116906370a0823190612f1490879060040161452b565b60206040518083038186803b158015612f2c57600080fd5b505afa158015612f40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f64919061436f565b60088401546040516370a0823160e01b81526001600160a01b03909116906370a0823190612f9690889060040161452b565b60206040518083038186803b158015612fae57600080fd5b505afa158015612fc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fe6919061436f565b915091509250929050565b600781015460405163631a6fd560e11b815260009182916001600160a01b039091169063c634dfaa9061302890879060040161452b565b60206040518083038186803b15801561304057600080fd5b505afa158015613054573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613078919061436f565b600884015460405163631a6fd560e11b81526001600160a01b039091169063c634dfaa90612f9690889060040161452b565b60006130b583613736565b156130cb57506001600160a01b03811631610e55565b6040516370a0823160e01b81526001600160a01b038416906370a08231906130f790859060040161452b565b60206040518083038186803b15801561310f57600080fd5b505afa158015613123573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613147919061436f565b9392505050565b600080613147836004015461317c85600201548660090160149054906101000a900464ffffffffff16613a1b565b9063ffffffff6139b516565b5460301c610f01600160d01b031690565b54670fffffffffff0000191690565b5460101c650fffffff0001600160f01b031690565b5460201c630fff0001600160e01b031690565b54603a1c6003600160c61b0316151590565b54603b1c151590565b5460381c600f600160c81b0316151590565b5460391c6007600160c71b0316151590565b600061321a82613a80565b905080156132a3576001820154600983015460009161324691600160a01b900464ffffffffff16613b95565b835490915061325c90829063ffffffff6139b516565b83556002830154600984015460009161328291600160a01b900464ffffffffff16613a1b565b905061329b8460040154826139b590919063ffffffff16565b600485015550505b50600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b15801561330e57600080fd5b505afa158015613322573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613346919061436f565b600686015490915060009061336d906001600160a01b03878116911663ffffffff6130aa16565b6009870154909150600090819081906001600160a01b03166357e37af0896133ab8961339f898d63ffffffff6138d216565b9063ffffffff61375b16565b8c60070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156133fb57600080fd5b505afa15801561340f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613433919061436f565b8d60080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561348357600080fd5b505afa158015613497573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134bb919061436f565b8a6040518663ffffffff1660e01b81526004016134dc9594939291906146cf565b60606040518083038186803b1580156134f457600080fd5b505afa158015613508573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061352c9190614409565b60018c0183905560038c0182905560028c018190558b5460048d01546040519497509295509093506001600160a01b038b16927f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a49261359592889288928c928992909190614ddc565b60405180910390a2505050505050505050565b816135b257611b26565b6135bb85613736565b1561371b57813410156135e05760405162461bcd60e51b81526004016101c990614a07565b6001600160a01b0383163014613673576000836001600160a01b03168361c3509060405161360d90614528565b600060405180830381858888f193505050503d806000811461364b576040519150601f19603f3d011682016040523d82523d6000602084013e613650565b606091505b50509050806136715760405162461bcd60e51b81526004016101c990614a51565b505b80801561367f57508134115b156137165760006001600160a01b0385166136a0348563ffffffff61375b16565b61c350906040516136b090614528565b600060405180830381858888f193505050503d80600081146136ee576040519150601f19603f3d011682016040523d82523d6000602084013e6136f3565b606091505b50509050806137145760405162461bcd60e51b81526004016101c990614a51565b505b611b26565b611b266001600160a01b03861685858563ffffffff613bf516565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b600061314783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613c53565b806137a7576123f8565b6137b083613736565b1561383c576000826001600160a01b03168261c350906040516137d290614528565b600060405180830381858888f193505050503d8060008114613810576040519150601f19603f3d011682016040523d82523d6000602084013e613815565b606091505b50509050806138365760405162461bcd60e51b81526004016101c990614a51565b506123f8565b6123f86001600160a01b038416838363ffffffff613c7f16565b60008261386557506000610e55565b8282028284828161387257fe5b04146131475760405162461bcd60e51b81526004016101c990614891565b600061314783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613c9e565b6000828201838110156131475760405162461bcd60e51b81526004016101c9906147b9565b6000805b60395481101561394457826001600160a01b03166039828154811061391c57fe5b6000918252602090912001546001600160a01b0316141561393c57600191505b6001016138fb565b508061399657603980546001810182556000919091527fdc16fef70f8d5ddbc01ee3d903d1e69c18a3c7be080eb86a81e0578814ee58d30180546001600160a01b0319166001600160a01b0384161790555b5050565b600290565b303b1590565b6b033b2e3c9fd0803ce800000090565b60006131476b033b2e3c9fd0803ce80000006114ec6139da868663ffffffff61385616565b6b019d971e4fe8401e74000000906138d2565b600080613147836000015461317c85600101548660090160149054906101000a900464ffffffffff16613b95565b600080613a354264ffffffffff851663ffffffff61375b16565b90506000613a4d856301e1338063ffffffff61389016565b9050613a7782613a6b613a5e6139a5565b849063ffffffff6138d216565b9063ffffffff613cd516565b95945050505050565b6000610e558260080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015613ad557600080fd5b505afa158015613ae9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b0d919061436f565b8360070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015613b5d57600080fd5b505afa158015613b71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a3b919061436f565b600080613baf4264ffffffffff851663ffffffff61375b16565b90506000613bd8613bc36301e13380613d2f565b613bcc84613d2f565b9063ffffffff613d4516565b9050613a77613be56139a5565b612a3b878463ffffffff6139b516565b613c4d846323b872dd60e01b858585604051602401613c1693929190614615565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613d68565b50505050565b60008184841115613c775760405162461bcd60e51b81526004016101c99190614755565b505050900390565b6123f88363a9059cbb60e01b8484604051602401613c1692919061453f565b60008183613cbf5760405162461bcd60e51b81526004016101c99190614755565b506000838581613ccb57fe5b0495945050505050565b600060028206613cf1576b033b2e3c9fd0803ce8000000613cf3565b825b90506002820491505b8115610e5557613d0c83846139b5565b92506002820615613d2457613d2181846139b5565b90505b600282049150613cfc565b6000610e5582633b9aca0063ffffffff61385616565b6000600282046119ec836114ec613a5e876b033b2e3c9fd0803ce8000000613856565b6060613dbd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613df79092919063ffffffff16565b8051909150156123f85780806020019051810190613ddb919061433b565b6123f85760405162461bcd60e51b81526004016101c990614aec565b60606119ec84846000856060613e0c85610593565b613e285760405162461bcd60e51b81526004016101c9906149d0565b60006060866001600160a01b03168587604051613e45919061450c565b60006040518083038185875af1925050503d8060008114613e82576040519150601f19603f3d011682016040523d82523d6000602084013e613e87565b606091505b50915091508115613e9b5791506119ec9050565b805115613eab5780518082602001fd5b8360405162461bcd60e51b81526004016101c99190614755565b6040518061018001604052806000815260200160008152602001600081526020016000815260200160008152602001613efc613f93565b815260006020820181905260408201819052606082018190526080820181905260a0820181905260c09091015290565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b6040518060c00160405280600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b6040518060200160405280600081525090565b600060208284031215613fb7578081fd5b813561314781614f20565b600060208284031215613fd3578081fd5b815161314781614f20565b60008060408385031215613ff0578081fd5b8235613ffb81614f20565b9150602083013561400b81614f20565b809150509250929050565b6000806000806080858703121561402b578182fd5b843561403681614f20565b9350602085013561404681614f20565b93969395505050506040820135916060013590565b600080600080600060a08688031215614072578081fd5b853561407d81614f20565b9450602086013561408d81614f20565b9350604086013561409d81614f20565b925060608601356140ad81614f20565b915060808601356140bd81614f20565b809150509295509295909350565b600080600080600060a086880312156140e2578081fd5b85356140ed81614f20565b945060208601356140fd81614f20565b9350604086013561410d81614f20565b92506060860135915060808601356140bd81614f38565b600080600060608486031215614138578283fd5b833561414381614f20565b9250602084013561415381614f20565b929592945050506040919091013590565b60008060008060808587031215614179578384fd5b843561418481614f20565b9350602085013561419481614f20565b925060408501359150606085013567ffffffffffffffff8111156141b6578182fd5b80860187601f8201126141c7578283fd5b803591506141dc6141d783614ec5565b614e9e565b8281528860208484010111156141f0578384fd5b8260208301602083013791820160200192909252939692955090935050565b60008060408385031215614221578182fd5b823561422c81614f20565b9150602083013561400b81614f38565b6000806040838503121561424e578182fd5b823561425981614f20565b946020939093013593505050565b60008060006060848603121561427b578081fd5b833561428681614f20565b925060208401359150604084013561ffff811681146142a3578182fd5b809150509250925092565b600080600080608085870312156142c3578182fd5b84356142ce81614f20565b9350602085013592506040850135915060608501356142ec81614f20565b939692955090935050565b6000806000806080858703121561430c578182fd5b843561431781614f20565b93506020850135925060408501359150606085013561ffff811681146142ec578182fd5b60006020828403121561434c578081fd5b815161314781614f38565b600060208284031215614368578081fd5b5035919050565b600060208284031215614380578081fd5b5051919050565b60008060408385031215614399578182fd5b82519150602083015167ffffffffffffffff8111156143b6578182fd5b80840185601f8201126143c7578283fd5b805191506143d76141d783614ec5565b8281528660208484010111156143eb578384fd5b6143fc836020830160208501614ef4565b8093505050509250929050565b60008060006060848603121561441d578081fd5b8351925060208401519150604084015190509250925092565b600080600080600060a0868803121561444d578283fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b600060208284031215614486578081fd5b815164ffffffffff81168114613147578182fd5b6000815480845260208085019450838352808320835b838110156144d55781546001600160a01b0316875295820195600191820191016144b0565b509495945050505050565b600081518084526144f8816020860160208601614ef4565b601f01601f19169290920160200192915050565b6000825161451e818460208701614ef4565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906145b3908301846144e0565b979650505050505050565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252901515608082015260a00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060018060a01b03808a168352808916602084015287604084015286606084015285608084015260e060a084015261467560e084018661449a565b915080841660c08401525098975050505050505050565b600060018060a01b03808816835286602084015285604084015260a060608401526146ba60a084018661449a565b91508084166080840152509695505050505050565b6001600160a01b03959095168552602085019390935260408401919091526060830152608082015260a00190565b6020808252825182820181905260009190848201906040850190845b8181101561473e5783516001600160a01b031683529284019291840191600101614719565b50909695505050505050565b901515815260200190565b60006020825261314760208301846144e0565b60208082526031908201527f5468657265206973206e6f7420656e6f756768206c697175696469747920617660408201527061696c61626c6520746f20626f72726f7760781b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252602f908201527f496e746572657374207261746520726562616c616e636520636f6e646974696f60408201526e1b9cc81dd95c99481b9bdd081b595d608a1b606082015260800190565b60208082526032908201527f5468652061637475616c2062616c616e6365206f66207468652070726f746f636040820152711bdb081a5cc81a5b98dbdb9cda5cdd195b9d60721b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526038908201527f5573657220646f6573206e6f74206861766520616e7920737461626c6520726160408201527f7465206c6f616e20666f72207468697320726573657276650000000000000000606082015260800190565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526017908201527f4c69717569646174696f6e2063616c6c206661696c6564000000000000000000604082015260600190565b602080825260029082015261033360f41b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f57726f6e67207573616765206f66204554482e756e6976657273616c5472616e6040820152697366657246726f6d282960b01b606082015260800190565b60208082526013908201527211551217d514905394d1915497d19052531151606a1b604082015260600190565b602080825260029082015261191960f11b604082015260600190565b60208082526032908201527f5468652072657175657374656420616d6f756e7420697320746f6f20736d616c60408201527136103337b9103090233630b9b42637b0b71760711b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b9051815260200190565b9485526001600160a01b03938416602086015291831660408501528216606084015216608082015260a00190565b600087825260018060a01b03808816602084015286604084015285606084015260c06080840152614bd960c084018661449a565b915080841660a084015250979650505050505050565b9283526001600160a01b03919091166020830152604082015260600190565b8981526001600160a01b03898116602083015260408201899052610120820190614c3789614ee9565b606084015296909616608082015260a081019490945260c084019290925260e083015261010090910152949350505050565b9485526001600160a01b0393909316602085015260408401919091526060830152608082015260a00190565b60006101608d83528c602084015260018060a01b03808d1660408501528b60608501528a60808501528960a08501528860c08501528760e08501528661010085015281610120850152614cea8285018761449a565b925080851661014085015250509c9b505050505050505050505050565b600060a082019050868252856020830152846040830152836060830152614d2d83614ee9565b60808301529695505050505050565b918252602082015260400190565b90815260200190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b998a5260208a0198909852604089019690965260608801949094526001600160a01b03929092166080870152151560a0860152151560c0850152151560e0840152151561010083015215156101208201526101400190565b958652602086019490945260408501929092526060840152608083015260a082015260c00190565b998a5260208a019890985260408901969096526060880194909452608087019290925260a086015260c085015260e084015261010083015264ffffffffff166101208201526101400190565b998a5260208a019890985260408901969096526060880194909452608087019290925260a086015260c085015260e084015264ffffffffff1661010083015215156101208201526101400190565b60405181810167ffffffffffffffff81118282101715614ebd57600080fd5b604052919050565b600067ffffffffffffffff821115614edb578081fd5b50601f01601f191660200190565b80600381106105cc57fe5b60005b83811015614f0f578181015183820152602001614ef7565b83811115613c4d5750506000910152565b6001600160a01b0381168114614f3557600080fd5b50565b8015158114614f3557600080fdfea26469706673582212204c8029c1fc543349336d995efd1fbe30c4e008b3035de75046f4152eba5ae7ec64736f6c63430006080033"; export interface LendingPoolLibraryAddresses { - ['__$69254465eb8f179ea24caa73cf68b23524$__']: string; - ['__$5e6137a1b5a0a366e2874209b5abf71c10$__']: string; - ['__$7347ff53b2b46c21e26a37164ae7f6739f$__']: string; + ["__$69254465eb8f179ea24caa73cf68b23524$__"]: string; + ["__$5e6137a1b5a0a366e2874209b5abf71c10$__"]: string; + ["__$7347ff53b2b46c21e26a37164ae7f6739f$__"]: string; } diff --git a/types/LendingPoolLiquidationManager.d.ts b/types/LendingPoolLiquidationManager.d.ts index 3e8dc34b..97f98cd2 100644 --- a/types/LendingPoolLiquidationManager.d.ts +++ b/types/LendingPoolLiquidationManager.d.ts @@ -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; - 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; diff --git a/types/LendingPoolLiquidationManagerFactory.ts b/types/LendingPoolLiquidationManagerFactory.ts index eabe6965..a385ea1d 100644 --- a/types/LendingPoolLiquidationManagerFactory.ts +++ b/types/LendingPoolLiquidationManagerFactory.ts @@ -1,35 +1,43 @@ /* 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 {LendingPoolLiquidationManager} from './LendingPoolLiquidationManager'; +import { TransactionOverrides } from "."; +import { LendingPoolLiquidationManager } from "./LendingPoolLiquidationManager"; export class LendingPoolLiquidationManagerFactory extends ContractFactory { constructor( linkLibraryAddresses: LendingPoolLiquidationManagerLibraryAddresses, signer?: Signer ) { - super(_abi, LendingPoolLiquidationManagerFactory.linkBytecode(linkLibraryAddresses), signer); + super( + _abi, + LendingPoolLiquidationManagerFactory.linkBytecode(linkLibraryAddresses), + signer + ); } - static linkBytecode(linkLibraryAddresses: LendingPoolLiquidationManagerLibraryAddresses): string { + static linkBytecode( + linkLibraryAddresses: LendingPoolLiquidationManagerLibraryAddresses + ): string { let linkedBytecode = _bytecode; linkedBytecode = linkedBytecode.replace( - new RegExp('__\\$7347ff53b2b46c21e26a37164ae7f6739f\\$__', 'g'), - linkLibraryAddresses['__$7347ff53b2b46c21e26a37164ae7f6739f$__'] - .replace(/^0x/, '') + new RegExp("__\\$7347ff53b2b46c21e26a37164ae7f6739f\\$__", "g"), + linkLibraryAddresses["__$7347ff53b2b46c21e26a37164ae7f6739f$__"] + .replace(/^0x/, "") .toLowerCase() ); return linkedBytecode; } - deploy(overrides?: TransactionOverrides): Promise { + deploy( + overrides?: TransactionOverrides + ): Promise { return super.deploy(overrides) as Promise; } getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction { @@ -45,7 +53,11 @@ export class LendingPoolLiquidationManagerFactory extends ContractFactory { address: string, signerOrProvider: Signer | Provider ): LendingPoolLiquidationManager { - return new Contract(address, _abi, signerOrProvider) as LendingPoolLiquidationManager; + return new Contract( + address, + _abi, + signerOrProvider + ) as LendingPoolLiquidationManager; } } @@ -55,137 +67,137 @@ const _abi = [ inputs: [ { indexed: true, - internalType: 'address', - name: '_collateral', - type: 'address', + internalType: "address", + name: "_collateral", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: true, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_purchaseAmount', - type: 'uint256', + internalType: "uint256", + name: "_purchaseAmount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_liquidatedCollateralAmount', - type: 'uint256', + internalType: "uint256", + name: "_liquidatedCollateralAmount", + type: "uint256" }, { indexed: false, - internalType: 'address', - name: '_liquidator', - type: 'address', + internalType: "address", + name: "_liquidator", + type: "address" }, { indexed: false, - internalType: 'bool', - name: '_receiveAToken', - type: 'bool', + internalType: "bool", + name: "_receiveAToken", + type: "bool" }, { indexed: false, - internalType: 'uint256', - name: '_timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "_timestamp", + type: "uint256" + } ], - name: 'LiquidationCall', - type: 'event', + name: "LiquidationCall", + type: "event" }, { inputs: [], - name: 'addressesProvider', + name: "addressesProvider", outputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_collateral', - type: 'address', + internalType: "address", + name: "_collateral", + type: "address" }, { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_purchaseAmount', - type: 'uint256', + internalType: "uint256", + name: "_purchaseAmount", + type: "uint256" }, { - internalType: 'bool', - name: '_receiveAToken', - type: 'bool', - }, + internalType: "bool", + name: "_receiveAToken", + type: "bool" + } ], - name: 'liquidationCall', + name: "liquidationCall", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'string', - name: '', - type: 'string', - }, + internalType: "string", + name: "", + type: "string" + } ], - stateMutability: 'payable', - type: 'function', + stateMutability: "payable", + type: "function" }, { inputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - name: 'reservesList', + name: "reservesList", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x6080604052600060015534801561001557600080fd5b506001600055611e848061002a6000396000f3fe6080604052600436106100335760003560e01c8062a718a9146100385780634fe7a6e5146100fb578063c72c4d1014610141575b600080fd5b61007c600480360360a081101561004e57600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013590608001351515610156565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156100bf5781810151838201526020016100a7565b50505050905090810190601f1680156100ec5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561010757600080fd5b506101256004803603602081101561011e57600080fd5b5035610a0f565b604080516001600160a01b039092168252519081900360200190f35b34801561014d57600080fd5b50610125610a36565b6001600160a01b0380851660009081526037602090815260408083208985168085528285209589168552603884528285209085529092528220919260609261019c611c53565b73__$7347ff53b2b46c21e26a37164ae7f6739f$__6392eeb05c8a603760386039603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b15801561020b57600080fd5b505afa15801561021f573d6000803e3d6000fd5b505050506040513d602081101561023557600080fd5b50516040516001600160e01b031960e088901b1681526001600160a01b03808716600483019081526024830187905260448301869052908316608483015260a060648301908152845460a484018190529192909160c490910190859080156102c657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116102a8575b5050965050505050505060a06040518083038186803b1580156102e857600080fd5b505af41580156102fc573d6000803e3d6000fd5b505050506040513d60a081101561031257600080fd5b50608001516101c08201819052670de0b6b3a764000011610355576004604051806060016040528060288152602001611dfd602891399550955050505050610a05565b6006830154604080516370a0823160e01b81526001600160a01b038c81166004830152915191909216916370a08231916024808301926020929190829003018186803b1580156103a457600080fd5b505afa1580156103b8573d6000803e3d6000fd5b505050506040513d60208110156103ce57600080fd5b505180825261041c5760016040518060400160405280601f81526020017f496e76616c696420636f6c6c61746572616c20746f206c6971756964617465008152509550955050505050610a05565b600061042a84600501610a45565b1180156104385750815460ff165b1515610200820181905261046e5760026040518060600160405280602a8152602001611d7f602a91399550955050505050610a05565b6104788985610a5a565b60408301526020820181905215801561049357506040810151155b156104c05760036040518060600160405280602a8152602001611e25602a91399550955050505050610a05565b6104fd60646104f160326104e585604001518660200151610b5d90919063ffffffff16565b9063ffffffff610bc016565b9063ffffffff610c1916565b6060820181905288116105105787610516565b80606001515b60808201819052815161053191859187918f918f9190610c5b565b6101a0830181905261018083019190915260808201511115610559576101a081015160808201525b60068301546001600160a01b03166101e0820152866105cf576000610595826101e001518d6001600160a01b0316610edc90919063ffffffff16565b90508161018001518110156105cd576005604051806060016040528060338152602001611d4c60339139965096505050505050610a05565b505b6105d884610f86565b60808101516105f29085908c90600063ffffffff61103e16565b806080015181604001511061067b576008840154608082015160408051632770a7eb60e21b81526001600160a01b038d81166004830152602482019390935290519190921691639dc29fac91604480830192600092919082900301818387803b15801561065e57600080fd5b505af1158015610672573d6000803e3d6000fd5b50505050610782565b60088401546040808301518151632770a7eb60e21b81526001600160a01b038d8116600483015260248201929092529151921691639dc29fac9160448082019260009290919082900301818387803b1580156106d657600080fd5b505af11580156106ea573d6000803e3d6000fd5b505050506007840154604082015160808301516001600160a01b0390921691639dc29fac918c9161071a9161132b565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561076957600080fd5b505af115801561077d573d6000803e3d6000fd5b505050505b861561080a576101e08101516101808201516040805163f866c31960e01b81526001600160a01b038d8116600483015233602483015260448201939093529051919092169163f866c31991606480830192600092919082900301818387803b1580156107ed57600080fd5b505af1158015610801573d6000803e3d6000fd5b5050505061093a565b61081383610f86565b61018081015161082f9084908d9060009063ffffffff61103e16565b806101e001516001600160a01b0316633edb7cb88a8361018001516040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561089957600080fd5b505af11580156108ad573d6000803e3d6000fd5b5050506101e082015161018083015160408051634efecaa560e01b81523360048201526024810192909252516001600160a01b039092169250634efecaa59160448083019260209291908290030181600087803b15801561090d57600080fd5b505af1158015610921573d6000803e3d6000fd5b505050506040513d602081101561093757600080fd5b50505b60068401546080820151610968916001600160a01b038d81169233929190911690600163ffffffff61136d16565b60808082015161018083015160408051928352602083019190915233828201528915156060830152429282019290925290516001600160a01b03808c16928d821692918f16917f54343dd5791108d018f6fb8def2c14d746f777c51e9924962237813a527528709181900360a00190a46000604051806040016040528060098152602001684e6f206572726f727360b81b81525095509550505050505b9550959350505050565b60398181548110610a1c57fe5b6000918252602090912001546001600160a01b0316905081565b6035546001600160a01b031681565b5460101c650fffffff0001600160f01b031690565b6007810154604080516370a0823160e01b81526001600160a01b0385811660048301529151600093849316916370a08231916024808301926020929190829003018186803b158015610aab57600080fd5b505afa158015610abf573d6000803e3d6000fd5b505050506040513d6020811015610ad557600080fd5b50516008840154604080516370a0823160e01b81526001600160a01b038881166004830152915191909216916370a08231916024808301926020929190829003018186803b158015610b2657600080fd5b505afa158015610b3a573d6000803e3d6000fd5b505050506040513d6020811015610b5057600080fd5b5051909590945092505050565b600082820183811015610bb7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600082610bcf57506000610bba565b82820282848281610bdc57fe5b0414610bb75760405162461bcd60e51b8152600401808060200182810382526021815260200180611d2b6021913960400191505060405180910390fd5b6000610bb783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611560565b60355460408051631f94a27560e31b81529051600092839283926001600160a01b039092169163fca513a891600480820192602092909190829003018186803b158015610ca757600080fd5b505afa158015610cbb573d6000803e3d6000fd5b505050506040513d6020811015610cd157600080fd5b50519050610cdd611ced565b816001600160a01b031663b3596f07896040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610d3357600080fd5b505afa158015610d47573d6000803e3d6000fd5b505050506040513d6020811015610d5d57600080fd5b5051604080830191909152805163b3596f0760e01b81526001600160a01b03898116600483015291519184169163b3596f0791602480820192602092909190829003018186803b158015610db057600080fd5b505afa158015610dc4573d6000803e3d6000fd5b505050506040513d6020811015610dda57600080fd5b50516060820152610ded60058b01611602565b60c0850152602084015250610e06905060058a01611649565b60a0820181905260208201516040830151610e5c926064926104f19290916104e591610e3a91600a0a63ffffffff610bc016565b6104f18760c00151600a0a6104e58e8a60600151610bc090919063ffffffff16565b60808201819052851015610ec457849350610ebd81602001516104f160646104e5610e9b8660c00151600a0a8760600151610bc090919063ffffffff16565b6104f18760a00151600a0a6104e58c8a60400151610bc090919063ffffffff16565b9250610ecf565b806080015193508592505b5050965096945050505050565b6000610ee78361165a565b15610efd57506001600160a01b03811631610bba565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610f5357600080fd5b505afa158015610f67573d6000803e3d6000fd5b505050506040513d6020811015610f7d57600080fd5b50519050610bba565b6000610f918261167f565b9050801561101a5760018201546009830154600091610fbd91600160a01b900464ffffffffff1661177f565b8354909150610fd390829063ffffffff6117f416565b835560028301546009840154600091610ff991600160a01b900464ffffffffff1661182c565b90506110128460040154826117f490919063ffffffff16565b600485015550505b50600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b15801561108557600080fd5b505afa158015611099573d6000803e3d6000fd5b505050506040513d60208110156110af57600080fd5b505160068601549091506000906110d8906001600160a01b03878116911663ffffffff610edc16565b6009870154909150600090819081906001600160a01b03166357e37af0896111168961110a898d63ffffffff610b5d16565b9063ffffffff61132b16565b8c60070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561116657600080fd5b505afa15801561117a573d6000803e3d6000fd5b505050506040513d602081101561119057600080fd5b505160088e0154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b1580156111d957600080fd5b505afa1580156111ed573d6000803e3d6000fd5b505050506040513d602081101561120357600080fd5b5051604080516001600160e01b031960e088901b1681526001600160a01b039095166004860152602485019390935260448401919091526064830152608482018990525160a4808301926060929190829003018186803b15801561126657600080fd5b505afa15801561127a573d6000803e3d6000fd5b505050506040513d606081101561129057600080fd5b50805160208083015160409384015160018e0184905560038e0182905560028e018190558d5460048f015486518681529485018490528487018c905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a2505050505050505050565b6000610bb783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611888565b8161137757611559565b6113808561165a565b1561153e57813410156113c45760405162461bcd60e51b815260040180806020018281038252602a815260200180611da9602a913960400191505060405180910390fd5b6001600160a01b0383163014611477576040516000906001600160a01b0385169061c35090859084818181858888f193505050503d8060008114611424576040519150601f19603f3d011682016040523d82523d6000602084013e611429565b606091505b5050905080611475576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b505b80801561148357508134115b156115395760006001600160a01b0385166114a4348563ffffffff61132b16565b60405161c35091906000818181858888f193505050503d80600081146114e6576040519150601f19603f3d011682016040523d82523d6000602084013e6114eb565b606091505b5050905080611537576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b505b611559565b6115596001600160a01b03861685858563ffffffff6118e216565b5050505050565b600081836115ec5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115b1578181015183820152602001611599565b50505050905090810190601f1680156115de5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816115f857fe5b0495945050505050565b54670fffffffffff000019811691601082901c650fffffff0001600160f01b031691602081901c630fff0001600160e01b03169160309190911c610100600160d01b031690565b5460301c610100600160d01b031690565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b6000610bba8260080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156116d457600080fd5b505afa1580156116e8573d6000803e3d6000fd5b505050506040513d60208110156116fe57600080fd5b50516007840154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561174757600080fd5b505afa15801561175b573d6000803e3d6000fd5b505050506040513d602081101561177157600080fd5b50519063ffffffff610b5d16565b6000806117994264ffffffffff851663ffffffff61132b16565b905060006117c26117ad6301e13380611942565b6117b684611942565b9063ffffffff61195816565b90506117eb6117cf611983565b6117df878463ffffffff6117f416565b9063ffffffff610b5d16565b95945050505050565b6000610bb76b033b2e3c9fd0803ce80000006104f1611819868663ffffffff610bc016565b6b019d971e4fe8401e7400000090610b5d565b6000806118464264ffffffffff851663ffffffff61132b16565b9050600061185e856301e1338063ffffffff610c1916565b90506117eb8261187c61186f611983565b849063ffffffff610b5d16565b9063ffffffff61199316565b600081848411156118da5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156115b1578181015183820152602001611599565b505050900390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261193c9085906119ed565b50505050565b6000610bba82633b9aca0063ffffffff610bc016565b60006002820461197b836104f161186f876b033b2e3c9fd0803ce8000000610bc0565b949350505050565b6b033b2e3c9fd0803ce800000090565b6000600282066119af576b033b2e3c9fd0803ce80000006119b1565b825b90506002820491505b8115610bba576119ca83846117f4565b925060028206156119e2576119df81846117f4565b90505b6002820491506119ba565b6060611a42826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611aa39092919063ffffffff16565b805190915015611a9e57808060200190516020811015611a6157600080fd5b5051611a9e5760405162461bcd60e51b815260040180806020018281038252602a815260200180611dd3602a913960400191505060405180910390fd5b505050565b606061197b84846000856060611ab885611c1a565b611b09576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611b485780518252601f199092019160209182019101611b29565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611baa576040519150601f19603f3d011682016040523d82523d6000602084013e611baf565b606091505b50915091508115611bc357915061197b9050565b805115611bd35780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156115b1578181015183820152602001611599565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061197b575050151592915050565b6040518061022001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006002811115611cb257fe5b81526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681526020016000151581525090565b6040518060e0016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152509056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7754686572652069736e277420656e6f756768206c697175696469747920617661696c61626c6520746f206c697175696461746554686520636f6c6c61746572616c2063686f73656e2063616e6e6f74206265206c69717569646174656457726f6e67207573616765206f66204554482e756e6976657273616c5472616e7366657246726f6d28295361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644865616c746820666163746f72206973206e6f742062656c6f7720746865207468726573686f6c645573657220646964206e6f7420626f72726f7720746865207370656369666965642063757272656e6379a26469706673582212208b1ee7a4d75ac55c3473a69bedf0630c2487c5658a274dbabc75554b85cfa99864736f6c63430006080033'; + "0x6080604052600060015534801561001557600080fd5b506001600055611ed28061002a6000396000f3fe6080604052600436106100335760003560e01c8062a718a9146100385780634fe7a6e5146100fb578063c72c4d1014610141575b600080fd5b61007c600480360360a081101561004e57600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013590608001351515610156565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156100bf5781810151838201526020016100a7565b50505050905090810190601f1680156100ec5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561010757600080fd5b506101256004803603602081101561011e57600080fd5b50356109ff565b604080516001600160a01b039092168252519081900360200190f35b34801561014d57600080fd5b50610125610a26565b6001600160a01b0380851660009081526037602090815260408083208985168085528285209589168552603884528285209085529092528220919260609261019c611ca1565b73__$7347ff53b2b46c21e26a37164ae7f6739f$__6392eeb05c8a603760386039603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b15801561020b57600080fd5b505afa15801561021f573d6000803e3d6000fd5b505050506040513d602081101561023557600080fd5b50516040516001600160e01b031960e088901b1681526001600160a01b03808716600483019081526024830187905260448301869052908316608483015260a060648301908152845460a484018190529192909160c490910190859080156102c657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116102a8575b5050965050505050505060a06040518083038186803b1580156102e857600080fd5b505af41580156102fc573d6000803e3d6000fd5b505050506040513d60a081101561031257600080fd5b50608001516101c08201819052670de0b6b3a764000011610355576004604051806060016040528060288152602001611e4b6028913995509550505050506109f5565b6006830154604080516370a0823160e01b81526001600160a01b038c81166004830152915191909216916370a08231916024808301926020929190829003018186803b1580156103a457600080fd5b505afa1580156103b8573d6000803e3d6000fd5b505050506040513d60208110156103ce57600080fd5b505180825261041c5760016040518060400160405280601f81526020017f496e76616c696420636f6c6c61746572616c20746f206c69717569646174650081525095509550505050506109f5565b600061042a84600501610a35565b1180156104385750815460ff165b1515610200820181905261046e5760026040518060600160405280602a8152602001611dcd602a913995509550505050506109f5565b6104788985610a4a565b60408301526020820181905215801561049357506040810151155b156104c05760036040518060600160405280602a8152602001611e73602a913995509550505050506109f5565b6104ed6113886104e183604001518460200151610b4d90919063ffffffff16565b9063ffffffff610bb016565b6060820181905288116105005787610506565b80606001515b60808201819052815161052191859187918f918f9190610bea565b6101a0830181905261018083019190915260808201511115610549576101a081015160808201525b60068301546001600160a01b03166101e0820152866105bf576000610585826101e001518d6001600160a01b0316610e7590919063ffffffff16565b90508161018001518110156105bd576005604051806060016040528060338152602001611d9a603391399650965050505050506109f5565b505b6105c884610f1f565b60808101516105e29085908c90600063ffffffff610fd716565b806080015181604001511061066b576008840154608082015160408051632770a7eb60e21b81526001600160a01b038d81166004830152602482019390935290519190921691639dc29fac91604480830192600092919082900301818387803b15801561064e57600080fd5b505af1158015610662573d6000803e3d6000fd5b50505050610772565b60088401546040808301518151632770a7eb60e21b81526001600160a01b038d8116600483015260248201929092529151921691639dc29fac9160448082019260009290919082900301818387803b1580156106c657600080fd5b505af11580156106da573d6000803e3d6000fd5b505050506007840154604082015160808301516001600160a01b0390921691639dc29fac918c9161070a916112c4565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561075957600080fd5b505af115801561076d573d6000803e3d6000fd5b505050505b86156107fa576101e08101516101808201516040805163f866c31960e01b81526001600160a01b038d8116600483015233602483015260448201939093529051919092169163f866c31991606480830192600092919082900301818387803b1580156107dd57600080fd5b505af11580156107f1573d6000803e3d6000fd5b5050505061092a565b61080383610f1f565b61018081015161081f9084908d9060009063ffffffff610fd716565b806101e001516001600160a01b0316633edb7cb88a8361018001516040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561088957600080fd5b505af115801561089d573d6000803e3d6000fd5b5050506101e082015161018083015160408051634efecaa560e01b81523360048201526024810192909252516001600160a01b039092169250634efecaa59160448083019260209291908290030181600087803b1580156108fd57600080fd5b505af1158015610911573d6000803e3d6000fd5b505050506040513d602081101561092757600080fd5b50505b60068401546080820151610958916001600160a01b038d81169233929190911690600163ffffffff61130616565b60808082015161018083015160408051928352602083019190915233828201528915156060830152429282019290925290516001600160a01b03808c16928d821692918f16917f54343dd5791108d018f6fb8def2c14d746f777c51e9924962237813a527528709181900360a00190a46000604051806040016040528060098152602001684e6f206572726f727360b81b81525095509550505050505b9550959350505050565b60398181548110610a0c57fe5b6000918252602090912001546001600160a01b0316905081565b6035546001600160a01b031681565b5460101c650fffffff0001600160f01b031690565b6007810154604080516370a0823160e01b81526001600160a01b0385811660048301529151600093849316916370a08231916024808301926020929190829003018186803b158015610a9b57600080fd5b505afa158015610aaf573d6000803e3d6000fd5b505050506040513d6020811015610ac557600080fd5b50516008840154604080516370a0823160e01b81526001600160a01b038881166004830152915191909216916370a08231916024808301926020929190829003018186803b158015610b1657600080fd5b505afa158015610b2a573d6000803e3d6000fd5b505050506040513d6020811015610b4057600080fd5b5051909590945092505050565b600082820183811015610ba7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000610ba7612710610bde610bcb868663ffffffff6114f916565b60026127105b049063ffffffff610b4d16565b9063ffffffff61155216565b60355460408051631f94a27560e31b81529051600092839283926001600160a01b039092169163fca513a891600480820192602092909190829003018186803b158015610c3657600080fd5b505afa158015610c4a573d6000803e3d6000fd5b505050506040513d6020811015610c6057600080fd5b50519050610c6c611d3b565b816001600160a01b031663b3596f07896040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610cc257600080fd5b505afa158015610cd6573d6000803e3d6000fd5b505050506040513d6020811015610cec57600080fd5b5051604080830191909152805163b3596f0760e01b81526001600160a01b03898116600483015291519184169163b3596f0791602480820192602092909190829003018186803b158015610d3f57600080fd5b505afa158015610d53573d6000803e3d6000fd5b505050506040513d6020811015610d6957600080fd5b50516060820152610d7c60058b01611594565b60c0850152602084015250610d95905060058a016115db565b60a0820181905260208201516040830151610dee926104e191610dc091600a0a63ffffffff6114f916565b610bde8560c00151600a0a610de28c88606001516114f990919063ffffffff16565b9063ffffffff6114f916565b60808201819052851015610e5d57849350610e568160200151610e4a610e288460c00151600a0a85606001516114f990919063ffffffff16565b610bde8560a00151600a0a610de28a88604001516114f990919063ffffffff16565b9063ffffffff6115ec16565b9250610e68565b806080015193508592505b5050965096945050505050565b6000610e808361161a565b15610e9657506001600160a01b03811631610baa565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610eec57600080fd5b505afa158015610f00573d6000803e3d6000fd5b505050506040513d6020811015610f1657600080fd5b50519050610baa565b6000610f2a8261163f565b90508015610fb35760018201546009830154600091610f5691600160a01b900464ffffffffff1661173f565b8354909150610f6c90829063ffffffff6117b416565b835560028301546009840154600091610f9291600160a01b900464ffffffffff166117ed565b9050610fab8460040154826117b490919063ffffffff16565b600485015550505b50600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b15801561101e57600080fd5b505afa158015611032573d6000803e3d6000fd5b505050506040513d602081101561104857600080fd5b50516006860154909150600090611071906001600160a01b03878116911663ffffffff610e7516565b6009870154909150600090819081906001600160a01b03166357e37af0896110af896110a3898d63ffffffff610b4d16565b9063ffffffff6112c416565b8c60070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156110ff57600080fd5b505afa158015611113573d6000803e3d6000fd5b505050506040513d602081101561112957600080fd5b505160088e0154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561117257600080fd5b505afa158015611186573d6000803e3d6000fd5b505050506040513d602081101561119c57600080fd5b5051604080516001600160e01b031960e088901b1681526001600160a01b039095166004860152602485019390935260448401919091526064830152608482018990525160a4808301926060929190829003018186803b1580156111ff57600080fd5b505afa158015611213573d6000803e3d6000fd5b505050506040513d606081101561122957600080fd5b50805160208083015160409384015160018e0184905560038e0182905560028e018190558d5460048f015486518681529485018490528487018c905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a2505050505050505050565b6000610ba783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061183c565b81611310576114f2565b6113198561161a565b156114d7578134101561135d5760405162461bcd60e51b815260040180806020018281038252602a815260200180611df7602a913960400191505060405180910390fd5b6001600160a01b0383163014611410576040516000906001600160a01b0385169061c35090859084818181858888f193505050503d80600081146113bd576040519150601f19603f3d011682016040523d82523d6000602084013e6113c2565b606091505b505090508061140e576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b505b80801561141c57508134115b156114d25760006001600160a01b03851661143d348563ffffffff6112c416565b60405161c35091906000818181858888f193505050503d806000811461147f576040519150601f19603f3d011682016040523d82523d6000602084013e611484565b606091505b50509050806114d0576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b505b6114f2565b6114f26001600160a01b03861685858563ffffffff6118d316565b5050505050565b60008261150857506000610baa565b8282028284828161151557fe5b0414610ba75760405162461bcd60e51b8152600401808060200182810382526021815260200180611d796021913960400191505060405180910390fd5b6000610ba783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611933565b54670fffffffffff000019811691601082901c650fffffff0001600160f01b031691602081901c630fff0001600160e01b03169160309190911c610f01600160d01b031690565b5460301c610f01600160d01b031690565b60006002820461161283610bde611605876127106114f9565b849063ffffffff610b4d16565b949350505050565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b6000610baa8260080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561169457600080fd5b505afa1580156116a8573d6000803e3d6000fd5b505050506040513d60208110156116be57600080fd5b50516007840154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561170757600080fd5b505afa15801561171b573d6000803e3d6000fd5b505050506040513d602081101561173157600080fd5b50519063ffffffff610b4d16565b6000806117594264ffffffffff851663ffffffff6112c416565b9050600061178261176d6301e13380611998565b61177684611998565b9063ffffffff6119ae16565b90506117ab61178f6119d1565b61179f878463ffffffff6117b416565b9063ffffffff610b4d16565b95945050505050565b6000610ba76b033b2e3c9fd0803ce8000000610bde6117d9868663ffffffff6114f916565b60026b033b2e3c9fd0803ce8000000610bd1565b6000806118074264ffffffffff851663ffffffff6112c416565b9050600061181f856301e1338063ffffffff61155216565b90506117ab826118306116056119d1565b9063ffffffff6119e116565b600081848411156118cb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611890578181015183820152602001611878565b50505050905090810190601f1680156118bd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261192d908590611a3b565b50505050565b600081836119825760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611890578181015183820152602001611878565b50600083858161198e57fe5b0495945050505050565b6000610baa82633b9aca0063ffffffff6114f916565b60006002820461161283610bde611605876b033b2e3c9fd0803ce80000006114f9565b6b033b2e3c9fd0803ce800000090565b6000600282066119fd576b033b2e3c9fd0803ce80000006119ff565b825b90506002820491505b8115610baa57611a1883846117b4565b92506002820615611a3057611a2d81846117b4565b90505b600282049150611a08565b6060611a90826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611af19092919063ffffffff16565b805190915015611aec57808060200190516020811015611aaf57600080fd5b5051611aec5760405162461bcd60e51b815260040180806020018281038252602a815260200180611e21602a913960400191505060405180910390fd5b505050565b606061161284846000856060611b0685611c68565b611b57576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611b965780518252601f199092019160209182019101611b77565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611bf8576040519150601f19603f3d011682016040523d82523d6000602084013e611bfd565b606091505b50915091508115611c115791506116129050565b805115611c215780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611890578181015183820152602001611878565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611612575050151592915050565b6040518061022001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006002811115611d0057fe5b81526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681526020016000151581525090565b6040518060e0016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152509056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7754686572652069736e277420656e6f756768206c697175696469747920617661696c61626c6520746f206c697175696461746554686520636f6c6c61746572616c2063686f73656e2063616e6e6f74206265206c69717569646174656457726f6e67207573616765206f66204554482e756e6976657273616c5472616e7366657246726f6d28295361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644865616c746820666163746f72206973206e6f742062656c6f7720746865207468726573686f6c645573657220646964206e6f7420626f72726f7720746865207370656369666965642063757272656e6379a2646970667358221220bd3cd23df3734c4fa6f02b32f5c4abfaace2ff7e24a4ccfa1856f75b68566ff664736f6c63430006080033"; export interface LendingPoolLiquidationManagerLibraryAddresses { - ['__$7347ff53b2b46c21e26a37164ae7f6739f$__']: string; + ["__$7347ff53b2b46c21e26a37164ae7f6739f$__"]: string; } diff --git a/types/LendingPoolParametersProvider.d.ts b/types/LendingPoolParametersProvider.d.ts index b3fde8f1..39f69167 100644 --- a/types/LendingPoolParametersProvider.d.ts +++ b/types/LendingPoolParametersProvider.d.ts @@ -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; - 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; diff --git a/types/LendingPoolParametersProviderFactory.ts b/types/LendingPoolParametersProviderFactory.ts index 8de5540b..5076787a 100644 --- a/types/LendingPoolParametersProviderFactory.ts +++ b/types/LendingPoolParametersProviderFactory.ts @@ -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 { + deploy( + overrides?: TransactionOverrides + ): Promise { return super.deploy(overrides) as Promise; } 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"; diff --git a/types/LendingRateOracle.d.ts b/types/LendingRateOracle.d.ts index d62e58bb..1f21d74e 100644 --- a/types/LendingRateOracle.d.ts +++ b/types/LendingRateOracle.d.ts @@ -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 LendingRateOracleInterface extends Interface { functions: { @@ -16,9 +20,9 @@ interface LendingRateOracleInterface extends Interface { encode([_asset]: [string]): string; }>; - owner: TypedFunctionDescription<{encode([]: []): string}>; + owner: TypedFunctionDescription<{ encode([]: []): string }>; - renounceOwnership: TypedFunctionDescription<{encode([]: []): string}>; + renounceOwnership: TypedFunctionDescription<{ encode([]: []): string }>; setMarketBorrowRate: TypedFunctionDescription<{ encode([_asset, _rate]: [string, BigNumberish]): string; @@ -35,7 +39,10 @@ interface LendingRateOracleInterface extends Interface { events: { OwnershipTransferred: TypedEventDescription<{ - encodeTopics([previousOwner, newOwner]: [string | null, string | null]): string[]; + encodeTopics([previousOwner, newOwner]: [ + string | null, + string | null + ]): string[]; }>; }; } @@ -47,7 +54,10 @@ export class LendingRateOracle extends Contract { on(event: EventFilter | string, listener: Listener): LendingRateOracle; once(event: EventFilter | string, listener: Listener): LendingRateOracle; - addListener(eventName: EventFilter | string, listener: Listener): LendingRateOracle; + addListener( + eventName: EventFilter | string, + listener: Listener + ): LendingRateOracle; removeAllListeners(eventName: EventFilter | string): LendingRateOracle; removeListener(eventName: any, listener: Listener): LendingRateOracle; @@ -60,7 +70,9 @@ export class LendingRateOracle extends Contract { owner(): Promise; - renounceOwnership(overrides?: TransactionOverrides): Promise; + renounceOwnership( + overrides?: TransactionOverrides + ): Promise; setMarketBorrowRate( _asset: string, @@ -86,7 +98,9 @@ export class LendingRateOracle extends Contract { owner(): Promise; - renounceOwnership(overrides?: TransactionOverrides): Promise; + renounceOwnership( + overrides?: TransactionOverrides + ): Promise; setMarketBorrowRate( _asset: string, @@ -106,7 +120,10 @@ export class LendingRateOracle extends Contract { ): Promise; filters: { - OwnershipTransferred(previousOwner: string | null, newOwner: string | null): EventFilter; + OwnershipTransferred( + previousOwner: string | null, + newOwner: string | null + ): EventFilter; }; estimate: { @@ -118,9 +135,15 @@ export class LendingRateOracle extends Contract { renounceOwnership(): Promise; - setMarketBorrowRate(_asset: string, _rate: BigNumberish): Promise; + setMarketBorrowRate( + _asset: string, + _rate: BigNumberish + ): Promise; - setMarketLiquidityRate(_asset: string, _rate: BigNumberish): Promise; + setMarketLiquidityRate( + _asset: string, + _rate: BigNumberish + ): Promise; transferOwnership(newOwner: string): Promise; }; diff --git a/types/LendingRateOracleFactory.ts b/types/LendingRateOracleFactory.ts index 783d6d5a..08798511 100644 --- a/types/LendingRateOracleFactory.ts +++ b/types/LendingRateOracleFactory.ts @@ -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 {LendingRateOracle} from './LendingRateOracle'; +import { TransactionOverrides } from "."; +import { LendingRateOracle } from "./LendingRateOracle"; export class LendingRateOracleFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class LendingRateOracleFactory extends ContractFactory { connect(signer: Signer): LendingRateOracleFactory { return super.connect(signer) as LendingRateOracleFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): LendingRateOracle { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): LendingRateOracle { return new Contract(address, _abi, signerOrProvider) as LendingRateOracle; } } @@ -36,128 +39,128 @@ const _abi = [ 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: [ { - 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" + } ], - name: 'getMarketLiquidityRate', + name: "getMarketLiquidityRate", 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: [], - name: 'renounceOwnership', + name: "renounceOwnership", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + 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" }, { 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: 'setMarketLiquidityRate', + name: "setMarketLiquidityRate", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b5060006100246001600160e01b0361007316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610077565b3390565b6104d3806100866000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80639f86a0ee1161005b5780639f86a0ee146100dc578063bb85c0bb14610108578063f2fde38b14610140578063fbe5ba1e146101665761007d565b8063715018a61461008257806372eb293d1461008c5780638da5cb5b146100b8575b600080fd5b61008a61018c565b005b61008a600480360360408110156100a257600080fd5b506001600160a01b03813516906020013561022e565b6100c06102a2565b604080516001600160a01b039092168252519081900360200190f35b61008a600480360360408110156100f257600080fd5b506001600160a01b0381351690602001356102b1565b61012e6004803603602081101561011e57600080fd5b50356001600160a01b0316610325565b60408051918252519081900360200190f35b61008a6004803603602081101561015657600080fd5b50356001600160a01b0316610340565b61012e6004803603602081101561017c57600080fd5b50356001600160a01b0316610438565b610194610453565b6000546001600160a01b039081169116146101e4576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610236610453565b6000546001600160a01b03908116911614610286576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260016020526040902055565b6000546001600160a01b031690565b6102b9610453565b6000546001600160a01b03908116911614610309576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260026020526040902055565b6001600160a01b031660009081526001602052604090205490565b610348610453565b6000546001600160a01b03908116911614610398576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b0381166103dd5760405162461bcd60e51b81526004018080602001828103825260268152602001806104586026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526002602052604090205490565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220bcc898def2e44300e275ecf77acc2aacccc24f178c05892852eb5e61ff4bf45e64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b5060006100246001600160e01b0361007316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610077565b3390565b6104d3806100866000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80639f86a0ee1161005b5780639f86a0ee146100dc578063bb85c0bb14610108578063f2fde38b14610140578063fbe5ba1e146101665761007d565b8063715018a61461008257806372eb293d1461008c5780638da5cb5b146100b8575b600080fd5b61008a61018c565b005b61008a600480360360408110156100a257600080fd5b506001600160a01b03813516906020013561022e565b6100c06102a2565b604080516001600160a01b039092168252519081900360200190f35b61008a600480360360408110156100f257600080fd5b506001600160a01b0381351690602001356102b1565b61012e6004803603602081101561011e57600080fd5b50356001600160a01b0316610325565b60408051918252519081900360200190f35b61008a6004803603602081101561015657600080fd5b50356001600160a01b0316610340565b61012e6004803603602081101561017c57600080fd5b50356001600160a01b0316610438565b610194610453565b6000546001600160a01b039081169116146101e4576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610236610453565b6000546001600160a01b03908116911614610286576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260016020526040902055565b6000546001600160a01b031690565b6102b9610453565b6000546001600160a01b03908116911614610309576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260026020526040902055565b6001600160a01b031660009081526001602052604090205490565b610348610453565b6000546001600160a01b03908116911614610398576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b0381166103dd5760405162461bcd60e51b81526004018080602001828103825260268152602001806104586026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526002602052604090205490565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220bcc898def2e44300e275ecf77acc2aacccc24f178c05892852eb5e61ff4bf45e64736f6c63430006080033"; diff --git a/types/MintableErc20.d.ts b/types/MintableErc20.d.ts index 02a779f7..f5b72af5 100644 --- a/types/MintableErc20.d.ts +++ b/types/MintableErc20.d.ts @@ -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 MintableErc20Interface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MintableErc20Interface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MintableErc20Interface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -65,7 +81,10 @@ export class MintableErc20 extends Contract { on(event: EventFilter | string, listener: Listener): MintableErc20; once(event: EventFilter | string, listener: Listener): MintableErc20; - addListener(eventName: EventFilter | string, listener: Listener): MintableErc20; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MintableErc20; removeAllListeners(eventName: EventFilter | string): MintableErc20; removeListener(eventName: any, listener: Listener): MintableErc20; @@ -96,7 +115,10 @@ export class MintableErc20 extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +164,10 @@ export class MintableErc20 extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +189,11 @@ export class MintableErc20 extends Contract { ): Promise; 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; }; @@ -178,9 +207,15 @@ export class MintableErc20 extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +227,10 @@ export class MintableErc20 extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MintableErc20Factory.ts b/types/MintableErc20Factory.ts index 01f458fd..68254ee7 100644 --- a/types/MintableErc20Factory.ts +++ b/types/MintableErc20Factory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MintableErc20} from './MintableErc20'; +import { TransactionOverrides } from "."; +import { MintableErc20 } from "./MintableErc20"; export class MintableErc20Factory extends ContractFactory { constructor(signer?: Signer) { @@ -20,7 +20,9 @@ export class MintableErc20Factory extends ContractFactory { decimals: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(name, symbol, decimals, overrides) as Promise; + return super.deploy(name, symbol, decimals, overrides) as Promise< + MintableErc20 + >; } getDeployTransaction( name: string, @@ -36,7 +38,10 @@ export class MintableErc20Factory extends ContractFactory { connect(signer: Signer): MintableErc20Factory { return super.connect(signer) as MintableErc20Factory; } - static connect(address: string, signerOrProvider: Signer | Provider): MintableErc20 { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MintableErc20 { return new Contract(address, _abi, signerOrProvider) as MintableErc20; } } @@ -45,314 +50,314 @@ const _abi = [ { 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" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x60806040523480156200001157600080fd5b5060405162000e1338038062000e13833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260209081015185519093508592508491620001bd9160039185019062000216565b508051620001d390600490602084019062000216565b50506005805460ff1916601217905550620001f7816001600160e01b036200020016565b505050620002bb565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200025957805160ff191683800117855562000289565b8280016001018555821562000289579182015b82811115620002895782518255916020019190600101906200026c565b50620002979291506200029b565b5090565b620002b891905b80821115620002975760008155600101620002a2565b90565b610b4880620002cb6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220972a45814563125f67a4b749194155c32c9833283844c95cce8d8769f036a43164736f6c63430006080033'; + "0x60806040523480156200001157600080fd5b5060405162000e1338038062000e13833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260209081015185519093508592508491620001bd9160039185019062000216565b508051620001d390600490602084019062000216565b50506005805460ff1916601217905550620001f7816001600160e01b036200020016565b505050620002bb565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200025957805160ff191683800117855562000289565b8280016001018555821562000289579182015b82811115620002895782518255916020019190600101906200026c565b50620002979291506200029b565b5090565b620002b891905b80821115620002975760008155600101620002a2565b90565b610b4880620002cb6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220972a45814563125f67a4b749194155c32c9833283844c95cce8d8769f036a43164736f6c63430006080033"; diff --git a/types/MockAggregator.d.ts b/types/MockAggregator.d.ts index 2a9b762c..8b7d147e 100644 --- a/types/MockAggregator.d.ts +++ b/types/MockAggregator.d.ts @@ -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 MockAggregatorInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregator extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregator; once(event: EventFilter | string, listener: Listener): MockAggregator; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregator; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregator; removeAllListeners(eventName: EventFilter | string): MockAggregator; removeListener(eventName: any, listener: Listener): MockAggregator; diff --git a/types/MockAggregatorBase.d.ts b/types/MockAggregatorBase.d.ts index d0462083..0eccdd79 100644 --- a/types/MockAggregatorBase.d.ts +++ b/types/MockAggregatorBase.d.ts @@ -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 MockAggregatorBaseInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorBase extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorBase; once(event: EventFilter | string, listener: Listener): MockAggregatorBase; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorBase; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorBase; removeAllListeners(eventName: EventFilter | string): MockAggregatorBase; removeListener(eventName: any, listener: Listener): MockAggregatorBase; diff --git a/types/MockAggregatorBaseFactory.ts b/types/MockAggregatorBaseFactory.ts index d05ee55e..53de1c08 100644 --- a/types/MockAggregatorBaseFactory.ts +++ b/types/MockAggregatorBaseFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorBase} from './MockAggregatorBase'; +import { TransactionOverrides } from "."; +import { MockAggregatorBase } from "./MockAggregatorBase"; export class MockAggregatorBaseFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorBaseFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorBase + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorBaseFactory extends ContractFactory { connect(signer: Signer): MockAggregatorBaseFactory { return super.connect(signer) as MockAggregatorBaseFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorBase { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorBase { return new Contract(address, _abi, signerOrProvider) as MockAggregatorBase; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101003803806101008339818101604052602081101561003357600080fd5b5051600081815560408051428152905183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f919081900360200190a35060818061007f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220060be671455ecf17204969f30e34b79826d0c5978aa24f70ee045096a697a9a764736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101003803806101008339818101604052602081101561003357600080fd5b5051600081815560408051428152905183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f919081900360200190a35060818061007f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220060be671455ecf17204969f30e34b79826d0c5978aa24f70ee045096a697a9a764736f6c63430006080033"; diff --git a/types/MockAggregatorBat.d.ts b/types/MockAggregatorBat.d.ts index f6bcd80a..1bd4b55f 100644 --- a/types/MockAggregatorBat.d.ts +++ b/types/MockAggregatorBat.d.ts @@ -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 MockAggregatorBatInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorBat extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorBat; once(event: EventFilter | string, listener: Listener): MockAggregatorBat; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorBat; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorBat; removeAllListeners(eventName: EventFilter | string): MockAggregatorBat; removeListener(eventName: any, listener: Listener): MockAggregatorBat; diff --git a/types/MockAggregatorBatFactory.ts b/types/MockAggregatorBatFactory.ts index ec6e6268..019b55ea 100644 --- a/types/MockAggregatorBatFactory.ts +++ b/types/MockAggregatorBatFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorBat} from './MockAggregatorBat'; +import { TransactionOverrides } from "."; +import { MockAggregatorBat } from "./MockAggregatorBat"; export class MockAggregatorBatFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorBatFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorBat + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorBatFactory extends ContractFactory { connect(signer: Signer): MockAggregatorBatFactory { return super.connect(signer) as MockAggregatorBatFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorBat { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorBat { return new Contract(address, _abi, signerOrProvider) as MockAggregatorBat; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122067d1fc92dfb4035995fc56942a8fac11af7dd9f3a19251990effa2c9b6e9e8ab64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122067d1fc92dfb4035995fc56942a8fac11af7dd9f3a19251990effa2c9b6e9e8ab64736f6c63430006080033"; diff --git a/types/MockAggregatorBusd.d.ts b/types/MockAggregatorBusd.d.ts index 86c82834..bb5ce792 100644 --- a/types/MockAggregatorBusd.d.ts +++ b/types/MockAggregatorBusd.d.ts @@ -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 MockAggregatorBusdInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorBusd extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorBusd; once(event: EventFilter | string, listener: Listener): MockAggregatorBusd; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorBusd; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorBusd; removeAllListeners(eventName: EventFilter | string): MockAggregatorBusd; removeListener(eventName: any, listener: Listener): MockAggregatorBusd; diff --git a/types/MockAggregatorBusdFactory.ts b/types/MockAggregatorBusdFactory.ts index df8d3c3c..b03b158a 100644 --- a/types/MockAggregatorBusdFactory.ts +++ b/types/MockAggregatorBusdFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorBusd} from './MockAggregatorBusd'; +import { TransactionOverrides } from "."; +import { MockAggregatorBusd } from "./MockAggregatorBusd"; export class MockAggregatorBusdFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorBusdFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorBusd + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorBusdFactory extends ContractFactory { connect(signer: Signer): MockAggregatorBusdFactory { return super.connect(signer) as MockAggregatorBusdFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorBusd { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorBusd { return new Contract(address, _abi, signerOrProvider) as MockAggregatorBusd; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212201f1bc6664c0ae2c54149c6ff1b532f7c023d4323052eec4d7e5668bb18caf4ad64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212201f1bc6664c0ae2c54149c6ff1b532f7c023d4323052eec4d7e5668bb18caf4ad64736f6c63430006080033"; diff --git a/types/MockAggregatorDai.d.ts b/types/MockAggregatorDai.d.ts index eee0373b..7df0861e 100644 --- a/types/MockAggregatorDai.d.ts +++ b/types/MockAggregatorDai.d.ts @@ -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 MockAggregatorDaiInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorDai extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorDai; once(event: EventFilter | string, listener: Listener): MockAggregatorDai; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorDai; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorDai; removeAllListeners(eventName: EventFilter | string): MockAggregatorDai; removeListener(eventName: any, listener: Listener): MockAggregatorDai; diff --git a/types/MockAggregatorDaiFactory.ts b/types/MockAggregatorDaiFactory.ts index 968a73e0..c35104df 100644 --- a/types/MockAggregatorDaiFactory.ts +++ b/types/MockAggregatorDaiFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorDai} from './MockAggregatorDai'; +import { TransactionOverrides } from "."; +import { MockAggregatorDai } from "./MockAggregatorDai"; export class MockAggregatorDaiFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorDaiFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorDai + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorDaiFactory extends ContractFactory { connect(signer: Signer): MockAggregatorDaiFactory { return super.connect(signer) as MockAggregatorDaiFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorDai { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorDai { return new Contract(address, _abi, signerOrProvider) as MockAggregatorDai; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220bc460a71c6f5f56df369342d0898d38ca6d1be268930ce0e8c567cd7620b901364736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220bc460a71c6f5f56df369342d0898d38ca6d1be268930ce0e8c567cd7620b901364736f6c63430006080033"; diff --git a/types/MockAggregatorFactory.ts b/types/MockAggregatorFactory.ts index 4b8ed6be..2c0b8533 100644 --- a/types/MockAggregatorFactory.ts +++ b/types/MockAggregatorFactory.ts @@ -1,20 +1,23 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregator} from './MockAggregator'; +import { TransactionOverrides } from "."; +import { MockAggregator } from "./MockAggregator"; export class MockAggregatorFactory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } - deploy(_initialAnswer: BigNumberish, overrides?: TransactionOverrides): Promise { + deploy( + _initialAnswer: BigNumberish, + overrides?: TransactionOverrides + ): Promise { return super.deploy(_initialAnswer, overrides) as Promise; } getDeployTransaction( @@ -29,7 +32,10 @@ export class MockAggregatorFactory extends ContractFactory { connect(signer: Signer): MockAggregatorFactory { return super.connect(signer) as MockAggregatorFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregator { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregator { return new Contract(address, _abi, signerOrProvider) as MockAggregator; } } @@ -38,53 +44,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101003803806101008339818101604052602081101561003357600080fd5b5051600081815560408051428152905183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f919081900360200190a35060818061007f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122026081027bccb4981711bfb517e3852a08cfd5f2df9f0909cc3825dbc5a143ee064736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101003803806101008339818101604052602081101561003357600080fd5b5051600081815560408051428152905183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f919081900360200190a35060818061007f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122026081027bccb4981711bfb517e3852a08cfd5f2df9f0909cc3825dbc5a143ee064736f6c63430006080033"; diff --git a/types/MockAggregatorKnc.d.ts b/types/MockAggregatorKnc.d.ts index d057ef46..ae1775cc 100644 --- a/types/MockAggregatorKnc.d.ts +++ b/types/MockAggregatorKnc.d.ts @@ -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 MockAggregatorKncInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorKnc extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorKnc; once(event: EventFilter | string, listener: Listener): MockAggregatorKnc; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorKnc; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorKnc; removeAllListeners(eventName: EventFilter | string): MockAggregatorKnc; removeListener(eventName: any, listener: Listener): MockAggregatorKnc; diff --git a/types/MockAggregatorKncFactory.ts b/types/MockAggregatorKncFactory.ts index 8757bb01..8dd1a865 100644 --- a/types/MockAggregatorKncFactory.ts +++ b/types/MockAggregatorKncFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorKnc} from './MockAggregatorKnc'; +import { TransactionOverrides } from "."; +import { MockAggregatorKnc } from "./MockAggregatorKnc"; export class MockAggregatorKncFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorKncFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorKnc + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorKncFactory extends ContractFactory { connect(signer: Signer): MockAggregatorKncFactory { return super.connect(signer) as MockAggregatorKncFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorKnc { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorKnc { return new Contract(address, _abi, signerOrProvider) as MockAggregatorKnc; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212207e4193c6d3a7b272f2a1e7e5919a1edd6c2af8c0b6c73078ae651be5282994c164736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212207e4193c6d3a7b272f2a1e7e5919a1edd6c2af8c0b6c73078ae651be5282994c164736f6c63430006080033"; diff --git a/types/MockAggregatorLend.d.ts b/types/MockAggregatorLend.d.ts index f43539b3..afa361cc 100644 --- a/types/MockAggregatorLend.d.ts +++ b/types/MockAggregatorLend.d.ts @@ -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 MockAggregatorLendInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorLend extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorLend; once(event: EventFilter | string, listener: Listener): MockAggregatorLend; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorLend; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorLend; removeAllListeners(eventName: EventFilter | string): MockAggregatorLend; removeListener(eventName: any, listener: Listener): MockAggregatorLend; diff --git a/types/MockAggregatorLendFactory.ts b/types/MockAggregatorLendFactory.ts index 0dd96cb1..1a713b00 100644 --- a/types/MockAggregatorLendFactory.ts +++ b/types/MockAggregatorLendFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorLend} from './MockAggregatorLend'; +import { TransactionOverrides } from "."; +import { MockAggregatorLend } from "./MockAggregatorLend"; export class MockAggregatorLendFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorLendFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorLend + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorLendFactory extends ContractFactory { connect(signer: Signer): MockAggregatorLendFactory { return super.connect(signer) as MockAggregatorLendFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorLend { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorLend { return new Contract(address, _abi, signerOrProvider) as MockAggregatorLend; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212201e824ba62d5f29376dee29e5a3a6929bcbd951f7cb75d88c5f4a5f736096ccd164736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212201e824ba62d5f29376dee29e5a3a6929bcbd951f7cb75d88c5f4a5f736096ccd164736f6c63430006080033"; diff --git a/types/MockAggregatorLink.d.ts b/types/MockAggregatorLink.d.ts index 9728ce18..eccc9349 100644 --- a/types/MockAggregatorLink.d.ts +++ b/types/MockAggregatorLink.d.ts @@ -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 MockAggregatorLinkInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorLink extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorLink; once(event: EventFilter | string, listener: Listener): MockAggregatorLink; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorLink; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorLink; removeAllListeners(eventName: EventFilter | string): MockAggregatorLink; removeListener(eventName: any, listener: Listener): MockAggregatorLink; diff --git a/types/MockAggregatorLinkFactory.ts b/types/MockAggregatorLinkFactory.ts index 5905157b..9371faf1 100644 --- a/types/MockAggregatorLinkFactory.ts +++ b/types/MockAggregatorLinkFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorLink} from './MockAggregatorLink'; +import { TransactionOverrides } from "."; +import { MockAggregatorLink } from "./MockAggregatorLink"; export class MockAggregatorLinkFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorLinkFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorLink + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorLinkFactory extends ContractFactory { connect(signer: Signer): MockAggregatorLinkFactory { return super.connect(signer) as MockAggregatorLinkFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorLink { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorLink { return new Contract(address, _abi, signerOrProvider) as MockAggregatorLink; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212200820bb3fa0b8e5bd17658d500240b157ab200a944908b2d378035e34f0430d5864736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212200820bb3fa0b8e5bd17658d500240b157ab200a944908b2d378035e34f0430d5864736f6c63430006080033"; diff --git a/types/MockAggregatorMana.d.ts b/types/MockAggregatorMana.d.ts index d274f1f3..af2844d5 100644 --- a/types/MockAggregatorMana.d.ts +++ b/types/MockAggregatorMana.d.ts @@ -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 MockAggregatorManaInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorMana extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorMana; once(event: EventFilter | string, listener: Listener): MockAggregatorMana; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorMana; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorMana; removeAllListeners(eventName: EventFilter | string): MockAggregatorMana; removeListener(eventName: any, listener: Listener): MockAggregatorMana; diff --git a/types/MockAggregatorManaFactory.ts b/types/MockAggregatorManaFactory.ts index 981bbbe8..54d9c9ac 100644 --- a/types/MockAggregatorManaFactory.ts +++ b/types/MockAggregatorManaFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorMana} from './MockAggregatorMana'; +import { TransactionOverrides } from "."; +import { MockAggregatorMana } from "./MockAggregatorMana"; export class MockAggregatorManaFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorManaFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorMana + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorManaFactory extends ContractFactory { connect(signer: Signer): MockAggregatorManaFactory { return super.connect(signer) as MockAggregatorManaFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorMana { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorMana { return new Contract(address, _abi, signerOrProvider) as MockAggregatorMana; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220e7b3306e2bb66e9e9a3d7344a5e19e7f07bde990d057682c0c76fe83c2727a9964736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220e7b3306e2bb66e9e9a3d7344a5e19e7f07bde990d057682c0c76fe83c2727a9964736f6c63430006080033"; diff --git a/types/MockAggregatorMkr.d.ts b/types/MockAggregatorMkr.d.ts index 39d8807a..d21fad3f 100644 --- a/types/MockAggregatorMkr.d.ts +++ b/types/MockAggregatorMkr.d.ts @@ -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 MockAggregatorMkrInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorMkr extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorMkr; once(event: EventFilter | string, listener: Listener): MockAggregatorMkr; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorMkr; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorMkr; removeAllListeners(eventName: EventFilter | string): MockAggregatorMkr; removeListener(eventName: any, listener: Listener): MockAggregatorMkr; diff --git a/types/MockAggregatorMkrFactory.ts b/types/MockAggregatorMkrFactory.ts index 09c6eb54..b72ef8db 100644 --- a/types/MockAggregatorMkrFactory.ts +++ b/types/MockAggregatorMkrFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorMkr} from './MockAggregatorMkr'; +import { TransactionOverrides } from "."; +import { MockAggregatorMkr } from "./MockAggregatorMkr"; export class MockAggregatorMkrFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorMkrFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorMkr + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorMkrFactory extends ContractFactory { connect(signer: Signer): MockAggregatorMkrFactory { return super.connect(signer) as MockAggregatorMkrFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorMkr { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorMkr { return new Contract(address, _abi, signerOrProvider) as MockAggregatorMkr; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122051a88c2198cb6692898abde3f0f1baf8d6b7c52201611c0a4c04453635130b6b64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122051a88c2198cb6692898abde3f0f1baf8d6b7c52201611c0a4c04453635130b6b64736f6c63430006080033"; diff --git a/types/MockAggregatorRep.d.ts b/types/MockAggregatorRep.d.ts index c878a158..5c833414 100644 --- a/types/MockAggregatorRep.d.ts +++ b/types/MockAggregatorRep.d.ts @@ -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 MockAggregatorRepInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorRep extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorRep; once(event: EventFilter | string, listener: Listener): MockAggregatorRep; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorRep; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorRep; removeAllListeners(eventName: EventFilter | string): MockAggregatorRep; removeListener(eventName: any, listener: Listener): MockAggregatorRep; diff --git a/types/MockAggregatorRepFactory.ts b/types/MockAggregatorRepFactory.ts index ac65beae..89c91e4d 100644 --- a/types/MockAggregatorRepFactory.ts +++ b/types/MockAggregatorRepFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorRep} from './MockAggregatorRep'; +import { TransactionOverrides } from "."; +import { MockAggregatorRep } from "./MockAggregatorRep"; export class MockAggregatorRepFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorRepFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorRep + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorRepFactory extends ContractFactory { connect(signer: Signer): MockAggregatorRepFactory { return super.connect(signer) as MockAggregatorRepFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorRep { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorRep { return new Contract(address, _abi, signerOrProvider) as MockAggregatorRep; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212205451c4b8cfbf9ded926cae2fa4db4a7f379ad06e935193895ac984bd9c8a44f464736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212205451c4b8cfbf9ded926cae2fa4db4a7f379ad06e935193895ac984bd9c8a44f464736f6c63430006080033"; diff --git a/types/MockAggregatorSnx.d.ts b/types/MockAggregatorSnx.d.ts index 0e67a903..11d14f3a 100644 --- a/types/MockAggregatorSnx.d.ts +++ b/types/MockAggregatorSnx.d.ts @@ -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 MockAggregatorSnxInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorSnx extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorSnx; once(event: EventFilter | string, listener: Listener): MockAggregatorSnx; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorSnx; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorSnx; removeAllListeners(eventName: EventFilter | string): MockAggregatorSnx; removeListener(eventName: any, listener: Listener): MockAggregatorSnx; diff --git a/types/MockAggregatorSnxFactory.ts b/types/MockAggregatorSnxFactory.ts index ad88ced0..6c2c9c0c 100644 --- a/types/MockAggregatorSnxFactory.ts +++ b/types/MockAggregatorSnxFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorSnx} from './MockAggregatorSnx'; +import { TransactionOverrides } from "."; +import { MockAggregatorSnx } from "./MockAggregatorSnx"; export class MockAggregatorSnxFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorSnxFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorSnx + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorSnxFactory extends ContractFactory { connect(signer: Signer): MockAggregatorSnxFactory { return super.connect(signer) as MockAggregatorSnxFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorSnx { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorSnx { return new Contract(address, _abi, signerOrProvider) as MockAggregatorSnx; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122007bc29efab04b7548967f8ac1fb485a5f910968a04f5f02e3c409e43be252d9764736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea264697066735822122007bc29efab04b7548967f8ac1fb485a5f910968a04f5f02e3c409e43be252d9764736f6c63430006080033"; diff --git a/types/MockAggregatorSusd.d.ts b/types/MockAggregatorSusd.d.ts index 83a9084e..0ed4a814 100644 --- a/types/MockAggregatorSusd.d.ts +++ b/types/MockAggregatorSusd.d.ts @@ -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 MockAggregatorSusdInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorSusd extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorSusd; once(event: EventFilter | string, listener: Listener): MockAggregatorSusd; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorSusd; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorSusd; removeAllListeners(eventName: EventFilter | string): MockAggregatorSusd; removeListener(eventName: any, listener: Listener): MockAggregatorSusd; diff --git a/types/MockAggregatorSusdFactory.ts b/types/MockAggregatorSusdFactory.ts index 214e79df..2ae106b8 100644 --- a/types/MockAggregatorSusdFactory.ts +++ b/types/MockAggregatorSusdFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorSusd} from './MockAggregatorSusd'; +import { TransactionOverrides } from "."; +import { MockAggregatorSusd } from "./MockAggregatorSusd"; export class MockAggregatorSusdFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorSusdFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorSusd + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorSusdFactory extends ContractFactory { connect(signer: Signer): MockAggregatorSusdFactory { return super.connect(signer) as MockAggregatorSusdFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorSusd { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorSusd { return new Contract(address, _abi, signerOrProvider) as MockAggregatorSusd; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220396214f66cc6dae4ac4df2de75d412cda13649370d678f01f1f162f304264e5c64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220396214f66cc6dae4ac4df2de75d412cda13649370d678f01f1f162f304264e5c64736f6c63430006080033"; diff --git a/types/MockAggregatorTusd.d.ts b/types/MockAggregatorTusd.d.ts index cfc03cb1..688a0567 100644 --- a/types/MockAggregatorTusd.d.ts +++ b/types/MockAggregatorTusd.d.ts @@ -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 MockAggregatorTusdInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorTusd extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorTusd; once(event: EventFilter | string, listener: Listener): MockAggregatorTusd; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorTusd; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorTusd; removeAllListeners(eventName: EventFilter | string): MockAggregatorTusd; removeListener(eventName: any, listener: Listener): MockAggregatorTusd; diff --git a/types/MockAggregatorTusdFactory.ts b/types/MockAggregatorTusdFactory.ts index 91ea3226..d137b843 100644 --- a/types/MockAggregatorTusdFactory.ts +++ b/types/MockAggregatorTusdFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorTusd} from './MockAggregatorTusd'; +import { TransactionOverrides } from "."; +import { MockAggregatorTusd } from "./MockAggregatorTusd"; export class MockAggregatorTusdFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorTusdFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorTusd + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorTusdFactory extends ContractFactory { connect(signer: Signer): MockAggregatorTusdFactory { return super.connect(signer) as MockAggregatorTusdFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorTusd { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorTusd { return new Contract(address, _abi, signerOrProvider) as MockAggregatorTusd; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212207f5bd9b60d1d2fb1c740da91ebaab40eba25d0e8c0dffb88ae5c5706d5a50dff64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212207f5bd9b60d1d2fb1c740da91ebaab40eba25d0e8c0dffb88ae5c5706d5a50dff64736f6c63430006080033"; diff --git a/types/MockAggregatorUniDaiEth.d.ts b/types/MockAggregatorUniDaiEth.d.ts index afff3286..b4d2f34d 100644 --- a/types/MockAggregatorUniDaiEth.d.ts +++ b/types/MockAggregatorUniDaiEth.d.ts @@ -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 MockAggregatorUniDaiEthInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -23,13 +27,21 @@ interface MockAggregatorUniDaiEthInterface extends Interface { } export class MockAggregatorUniDaiEth extends Contract { - connect(signerOrProvider: Signer | Provider | string): MockAggregatorUniDaiEth; + connect( + signerOrProvider: Signer | Provider | string + ): MockAggregatorUniDaiEth; attach(addressOrName: string): MockAggregatorUniDaiEth; deployed(): Promise; on(event: EventFilter | string, listener: Listener): MockAggregatorUniDaiEth; - once(event: EventFilter | string, listener: Listener): MockAggregatorUniDaiEth; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorUniDaiEth; + once( + event: EventFilter | string, + listener: Listener + ): MockAggregatorUniDaiEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorUniDaiEth; removeAllListeners(eventName: EventFilter | string): MockAggregatorUniDaiEth; removeListener(eventName: any, listener: Listener): MockAggregatorUniDaiEth; diff --git a/types/MockAggregatorUniDaiEthFactory.ts b/types/MockAggregatorUniDaiEthFactory.ts index ffa43f7b..6b1cde46 100644 --- a/types/MockAggregatorUniDaiEthFactory.ts +++ b/types/MockAggregatorUniDaiEthFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorUniDaiEth} from './MockAggregatorUniDaiEth'; +import { TransactionOverrides } from "."; +import { MockAggregatorUniDaiEth } from "./MockAggregatorUniDaiEth"; export class MockAggregatorUniDaiEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorUniDaiEthFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorUniDaiEth + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,8 +34,15 @@ export class MockAggregatorUniDaiEthFactory extends ContractFactory { connect(signer: Signer): MockAggregatorUniDaiEthFactory { return super.connect(signer) as MockAggregatorUniDaiEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorUniDaiEth { - return new Contract(address, _abi, signerOrProvider) as MockAggregatorUniDaiEth; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorUniDaiEth { + return new Contract( + address, + _abi, + signerOrProvider + ) as MockAggregatorUniDaiEth; } } @@ -41,53 +50,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220ca9e7e837206f25a56d62db3aae4fc49a3e0ed327373cc7ef1b4a8135e04b94d64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220ca9e7e837206f25a56d62db3aae4fc49a3e0ed327373cc7ef1b4a8135e04b94d64736f6c63430006080033"; diff --git a/types/MockAggregatorUniLendEth.d.ts b/types/MockAggregatorUniLendEth.d.ts index a8ec4b8c..2eaf62ab 100644 --- a/types/MockAggregatorUniLendEth.d.ts +++ b/types/MockAggregatorUniLendEth.d.ts @@ -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 MockAggregatorUniLendEthInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -23,13 +27,21 @@ interface MockAggregatorUniLendEthInterface extends Interface { } export class MockAggregatorUniLendEth extends Contract { - connect(signerOrProvider: Signer | Provider | string): MockAggregatorUniLendEth; + connect( + signerOrProvider: Signer | Provider | string + ): MockAggregatorUniLendEth; attach(addressOrName: string): MockAggregatorUniLendEth; deployed(): Promise; on(event: EventFilter | string, listener: Listener): MockAggregatorUniLendEth; - once(event: EventFilter | string, listener: Listener): MockAggregatorUniLendEth; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorUniLendEth; + once( + event: EventFilter | string, + listener: Listener + ): MockAggregatorUniLendEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorUniLendEth; removeAllListeners(eventName: EventFilter | string): MockAggregatorUniLendEth; removeListener(eventName: any, listener: Listener): MockAggregatorUniLendEth; diff --git a/types/MockAggregatorUniLendEthFactory.ts b/types/MockAggregatorUniLendEthFactory.ts index 30f40305..53af6405 100644 --- a/types/MockAggregatorUniLendEthFactory.ts +++ b/types/MockAggregatorUniLendEthFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorUniLendEth} from './MockAggregatorUniLendEth'; +import { TransactionOverrides } from "."; +import { MockAggregatorUniLendEth } from "./MockAggregatorUniLendEth"; export class MockAggregatorUniLendEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorUniLendEthFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorUniLendEth + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,8 +34,15 @@ export class MockAggregatorUniLendEthFactory extends ContractFactory { connect(signer: Signer): MockAggregatorUniLendEthFactory { return super.connect(signer) as MockAggregatorUniLendEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorUniLendEth { - return new Contract(address, _abi, signerOrProvider) as MockAggregatorUniLendEth; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorUniLendEth { + return new Contract( + address, + _abi, + signerOrProvider + ) as MockAggregatorUniLendEth; } } @@ -41,53 +50,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212202cd94c803b45c9921e61b7e529507ff5a46911bf92147594a184752785dd9b5f64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212202cd94c803b45c9921e61b7e529507ff5a46911bf92147594a184752785dd9b5f64736f6c63430006080033"; diff --git a/types/MockAggregatorUniLinkEth.d.ts b/types/MockAggregatorUniLinkEth.d.ts index 4487a5b2..337cca86 100644 --- a/types/MockAggregatorUniLinkEth.d.ts +++ b/types/MockAggregatorUniLinkEth.d.ts @@ -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 MockAggregatorUniLinkEthInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -23,13 +27,21 @@ interface MockAggregatorUniLinkEthInterface extends Interface { } export class MockAggregatorUniLinkEth extends Contract { - connect(signerOrProvider: Signer | Provider | string): MockAggregatorUniLinkEth; + connect( + signerOrProvider: Signer | Provider | string + ): MockAggregatorUniLinkEth; attach(addressOrName: string): MockAggregatorUniLinkEth; deployed(): Promise; on(event: EventFilter | string, listener: Listener): MockAggregatorUniLinkEth; - once(event: EventFilter | string, listener: Listener): MockAggregatorUniLinkEth; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorUniLinkEth; + once( + event: EventFilter | string, + listener: Listener + ): MockAggregatorUniLinkEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorUniLinkEth; removeAllListeners(eventName: EventFilter | string): MockAggregatorUniLinkEth; removeListener(eventName: any, listener: Listener): MockAggregatorUniLinkEth; diff --git a/types/MockAggregatorUniLinkEthFactory.ts b/types/MockAggregatorUniLinkEthFactory.ts index 297319cc..cc1b44eb 100644 --- a/types/MockAggregatorUniLinkEthFactory.ts +++ b/types/MockAggregatorUniLinkEthFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorUniLinkEth} from './MockAggregatorUniLinkEth'; +import { TransactionOverrides } from "."; +import { MockAggregatorUniLinkEth } from "./MockAggregatorUniLinkEth"; export class MockAggregatorUniLinkEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorUniLinkEthFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorUniLinkEth + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,8 +34,15 @@ export class MockAggregatorUniLinkEthFactory extends ContractFactory { connect(signer: Signer): MockAggregatorUniLinkEthFactory { return super.connect(signer) as MockAggregatorUniLinkEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorUniLinkEth { - return new Contract(address, _abi, signerOrProvider) as MockAggregatorUniLinkEth; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorUniLinkEth { + return new Contract( + address, + _abi, + signerOrProvider + ) as MockAggregatorUniLinkEth; } } @@ -41,53 +50,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220fa715ec3aad02e0fd561be2b226d91f615ba8269690fbf2c624f5610ef7a0a7464736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220fa715ec3aad02e0fd561be2b226d91f615ba8269690fbf2c624f5610ef7a0a7464736f6c63430006080033"; diff --git a/types/MockAggregatorUniMkrEth.d.ts b/types/MockAggregatorUniMkrEth.d.ts index e82e5c00..7e6b13c2 100644 --- a/types/MockAggregatorUniMkrEth.d.ts +++ b/types/MockAggregatorUniMkrEth.d.ts @@ -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 MockAggregatorUniMkrEthInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -23,13 +27,21 @@ interface MockAggregatorUniMkrEthInterface extends Interface { } export class MockAggregatorUniMkrEth extends Contract { - connect(signerOrProvider: Signer | Provider | string): MockAggregatorUniMkrEth; + connect( + signerOrProvider: Signer | Provider | string + ): MockAggregatorUniMkrEth; attach(addressOrName: string): MockAggregatorUniMkrEth; deployed(): Promise; on(event: EventFilter | string, listener: Listener): MockAggregatorUniMkrEth; - once(event: EventFilter | string, listener: Listener): MockAggregatorUniMkrEth; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorUniMkrEth; + once( + event: EventFilter | string, + listener: Listener + ): MockAggregatorUniMkrEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorUniMkrEth; removeAllListeners(eventName: EventFilter | string): MockAggregatorUniMkrEth; removeListener(eventName: any, listener: Listener): MockAggregatorUniMkrEth; diff --git a/types/MockAggregatorUniMkrEthFactory.ts b/types/MockAggregatorUniMkrEthFactory.ts index ecc819b2..b5f2c3e9 100644 --- a/types/MockAggregatorUniMkrEthFactory.ts +++ b/types/MockAggregatorUniMkrEthFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorUniMkrEth} from './MockAggregatorUniMkrEth'; +import { TransactionOverrides } from "."; +import { MockAggregatorUniMkrEth } from "./MockAggregatorUniMkrEth"; export class MockAggregatorUniMkrEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorUniMkrEthFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorUniMkrEth + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,8 +34,15 @@ export class MockAggregatorUniMkrEthFactory extends ContractFactory { connect(signer: Signer): MockAggregatorUniMkrEthFactory { return super.connect(signer) as MockAggregatorUniMkrEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorUniMkrEth { - return new Contract(address, _abi, signerOrProvider) as MockAggregatorUniMkrEth; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorUniMkrEth { + return new Contract( + address, + _abi, + signerOrProvider + ) as MockAggregatorUniMkrEth; } } @@ -41,53 +50,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220abf8bc4ec473889426cc620b5807dad5ca0183f6f27ac1e6b0cb65215ac6a46164736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220abf8bc4ec473889426cc620b5807dad5ca0183f6f27ac1e6b0cb65215ac6a46164736f6c63430006080033"; diff --git a/types/MockAggregatorUniSethEth.d.ts b/types/MockAggregatorUniSethEth.d.ts index 7651e0b5..3e01499c 100644 --- a/types/MockAggregatorUniSethEth.d.ts +++ b/types/MockAggregatorUniSethEth.d.ts @@ -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 MockAggregatorUniSethEthInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -23,13 +27,21 @@ interface MockAggregatorUniSethEthInterface extends Interface { } export class MockAggregatorUniSethEth extends Contract { - connect(signerOrProvider: Signer | Provider | string): MockAggregatorUniSethEth; + connect( + signerOrProvider: Signer | Provider | string + ): MockAggregatorUniSethEth; attach(addressOrName: string): MockAggregatorUniSethEth; deployed(): Promise; on(event: EventFilter | string, listener: Listener): MockAggregatorUniSethEth; - once(event: EventFilter | string, listener: Listener): MockAggregatorUniSethEth; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorUniSethEth; + once( + event: EventFilter | string, + listener: Listener + ): MockAggregatorUniSethEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorUniSethEth; removeAllListeners(eventName: EventFilter | string): MockAggregatorUniSethEth; removeListener(eventName: any, listener: Listener): MockAggregatorUniSethEth; diff --git a/types/MockAggregatorUniSethEthFactory.ts b/types/MockAggregatorUniSethEthFactory.ts index 7a2d08d5..71815fcb 100644 --- a/types/MockAggregatorUniSethEthFactory.ts +++ b/types/MockAggregatorUniSethEthFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorUniSethEth} from './MockAggregatorUniSethEth'; +import { TransactionOverrides } from "."; +import { MockAggregatorUniSethEth } from "./MockAggregatorUniSethEth"; export class MockAggregatorUniSethEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorUniSethEthFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorUniSethEth + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,8 +34,15 @@ export class MockAggregatorUniSethEthFactory extends ContractFactory { connect(signer: Signer): MockAggregatorUniSethEthFactory { return super.connect(signer) as MockAggregatorUniSethEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorUniSethEth { - return new Contract(address, _abi, signerOrProvider) as MockAggregatorUniSethEth; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorUniSethEth { + return new Contract( + address, + _abi, + signerOrProvider + ) as MockAggregatorUniSethEth; } } @@ -41,53 +50,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212208b07eebb75d27ac2e2a7c4abf0ca885abe8ca170052598567ded0cb201fa393c64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212208b07eebb75d27ac2e2a7c4abf0ca885abe8ca170052598567ded0cb201fa393c64736f6c63430006080033"; diff --git a/types/MockAggregatorUniUsdcEth.d.ts b/types/MockAggregatorUniUsdcEth.d.ts index a9c07706..b04b1e68 100644 --- a/types/MockAggregatorUniUsdcEth.d.ts +++ b/types/MockAggregatorUniUsdcEth.d.ts @@ -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 MockAggregatorUniUsdcEthInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -23,13 +27,21 @@ interface MockAggregatorUniUsdcEthInterface extends Interface { } export class MockAggregatorUniUsdcEth extends Contract { - connect(signerOrProvider: Signer | Provider | string): MockAggregatorUniUsdcEth; + connect( + signerOrProvider: Signer | Provider | string + ): MockAggregatorUniUsdcEth; attach(addressOrName: string): MockAggregatorUniUsdcEth; deployed(): Promise; on(event: EventFilter | string, listener: Listener): MockAggregatorUniUsdcEth; - once(event: EventFilter | string, listener: Listener): MockAggregatorUniUsdcEth; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorUniUsdcEth; + once( + event: EventFilter | string, + listener: Listener + ): MockAggregatorUniUsdcEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorUniUsdcEth; removeAllListeners(eventName: EventFilter | string): MockAggregatorUniUsdcEth; removeListener(eventName: any, listener: Listener): MockAggregatorUniUsdcEth; diff --git a/types/MockAggregatorUniUsdcEthFactory.ts b/types/MockAggregatorUniUsdcEthFactory.ts index e395c24f..7b2e1376 100644 --- a/types/MockAggregatorUniUsdcEthFactory.ts +++ b/types/MockAggregatorUniUsdcEthFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorUniUsdcEth} from './MockAggregatorUniUsdcEth'; +import { TransactionOverrides } from "."; +import { MockAggregatorUniUsdcEth } from "./MockAggregatorUniUsdcEth"; export class MockAggregatorUniUsdcEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorUniUsdcEthFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorUniUsdcEth + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,8 +34,15 @@ export class MockAggregatorUniUsdcEthFactory extends ContractFactory { connect(signer: Signer): MockAggregatorUniUsdcEthFactory { return super.connect(signer) as MockAggregatorUniUsdcEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorUniUsdcEth { - return new Contract(address, _abi, signerOrProvider) as MockAggregatorUniUsdcEth; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorUniUsdcEth { + return new Contract( + address, + _abi, + signerOrProvider + ) as MockAggregatorUniUsdcEth; } } @@ -41,53 +50,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212207b5e291e8ee45269d7da3ffbcde11e1e7aa111accc3860a61ba11cf7f5b1537c64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212207b5e291e8ee45269d7da3ffbcde11e1e7aa111accc3860a61ba11cf7f5b1537c64736f6c63430006080033"; diff --git a/types/MockAggregatorUsd.d.ts b/types/MockAggregatorUsd.d.ts index 10866bb2..59fdc243 100644 --- a/types/MockAggregatorUsd.d.ts +++ b/types/MockAggregatorUsd.d.ts @@ -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 MockAggregatorUsdInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorUsd extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorUsd; once(event: EventFilter | string, listener: Listener): MockAggregatorUsd; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorUsd; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorUsd; removeAllListeners(eventName: EventFilter | string): MockAggregatorUsd; removeListener(eventName: any, listener: Listener): MockAggregatorUsd; diff --git a/types/MockAggregatorUsdFactory.ts b/types/MockAggregatorUsdFactory.ts index 56e220db..6292edbc 100644 --- a/types/MockAggregatorUsdFactory.ts +++ b/types/MockAggregatorUsdFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorUsd} from './MockAggregatorUsd'; +import { TransactionOverrides } from "."; +import { MockAggregatorUsd } from "./MockAggregatorUsd"; export class MockAggregatorUsdFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorUsdFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorUsd + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorUsdFactory extends ContractFactory { connect(signer: Signer): MockAggregatorUsdFactory { return super.connect(signer) as MockAggregatorUsdFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorUsd { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorUsd { return new Contract(address, _abi, signerOrProvider) as MockAggregatorUsd; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220cb5c993248f4342cf40f7bbb24442b022562eaff82fda810c453624d5d0219a064736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220cb5c993248f4342cf40f7bbb24442b022562eaff82fda810c453624d5d0219a064736f6c63430006080033"; diff --git a/types/MockAggregatorUsdc.d.ts b/types/MockAggregatorUsdc.d.ts index 8d37a70a..06e94b13 100644 --- a/types/MockAggregatorUsdc.d.ts +++ b/types/MockAggregatorUsdc.d.ts @@ -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 MockAggregatorUsdcInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorUsdc extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorUsdc; once(event: EventFilter | string, listener: Listener): MockAggregatorUsdc; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorUsdc; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorUsdc; removeAllListeners(eventName: EventFilter | string): MockAggregatorUsdc; removeListener(eventName: any, listener: Listener): MockAggregatorUsdc; diff --git a/types/MockAggregatorUsdcFactory.ts b/types/MockAggregatorUsdcFactory.ts index 98b77683..64be4067 100644 --- a/types/MockAggregatorUsdcFactory.ts +++ b/types/MockAggregatorUsdcFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorUsdc} from './MockAggregatorUsdc'; +import { TransactionOverrides } from "."; +import { MockAggregatorUsdc } from "./MockAggregatorUsdc"; export class MockAggregatorUsdcFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorUsdcFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorUsdc + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorUsdcFactory extends ContractFactory { connect(signer: Signer): MockAggregatorUsdcFactory { return super.connect(signer) as MockAggregatorUsdcFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorUsdc { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorUsdc { return new Contract(address, _abi, signerOrProvider) as MockAggregatorUsdc; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212207e0f1f2e3dd25f21390c9d6570efbeef685fd04deb69739a738caf0b76f69e4364736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea26469706673582212207e0f1f2e3dd25f21390c9d6570efbeef685fd04deb69739a738caf0b76f69e4364736f6c63430006080033"; diff --git a/types/MockAggregatorUsdt.d.ts b/types/MockAggregatorUsdt.d.ts index 8375ac94..6915a80b 100644 --- a/types/MockAggregatorUsdt.d.ts +++ b/types/MockAggregatorUsdt.d.ts @@ -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 MockAggregatorUsdtInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorUsdt extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorUsdt; once(event: EventFilter | string, listener: Listener): MockAggregatorUsdt; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorUsdt; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorUsdt; removeAllListeners(eventName: EventFilter | string): MockAggregatorUsdt; removeListener(eventName: any, listener: Listener): MockAggregatorUsdt; diff --git a/types/MockAggregatorUsdtFactory.ts b/types/MockAggregatorUsdtFactory.ts index 0230197b..d45035a2 100644 --- a/types/MockAggregatorUsdtFactory.ts +++ b/types/MockAggregatorUsdtFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorUsdt} from './MockAggregatorUsdt'; +import { TransactionOverrides } from "."; +import { MockAggregatorUsdt } from "./MockAggregatorUsdt"; export class MockAggregatorUsdtFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorUsdtFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorUsdt + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorUsdtFactory extends ContractFactory { connect(signer: Signer): MockAggregatorUsdtFactory { return super.connect(signer) as MockAggregatorUsdtFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorUsdt { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorUsdt { return new Contract(address, _abi, signerOrProvider) as MockAggregatorUsdt; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220ff69adca6a02f40ad3cce7511dae9b05d9ca200542516300e4831201703d838a64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220ff69adca6a02f40ad3cce7511dae9b05d9ca200542516300e4831201703d838a64736f6c63430006080033"; diff --git a/types/MockAggregatorWbtc.d.ts b/types/MockAggregatorWbtc.d.ts index 109a37ad..45420b02 100644 --- a/types/MockAggregatorWbtc.d.ts +++ b/types/MockAggregatorWbtc.d.ts @@ -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 MockAggregatorWbtcInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorWbtc extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorWbtc; once(event: EventFilter | string, listener: Listener): MockAggregatorWbtc; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorWbtc; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorWbtc; removeAllListeners(eventName: EventFilter | string): MockAggregatorWbtc; removeListener(eventName: any, listener: Listener): MockAggregatorWbtc; diff --git a/types/MockAggregatorWbtcFactory.ts b/types/MockAggregatorWbtcFactory.ts index dc29b3bf..5cf07aac 100644 --- a/types/MockAggregatorWbtcFactory.ts +++ b/types/MockAggregatorWbtcFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorWbtc} from './MockAggregatorWbtc'; +import { TransactionOverrides } from "."; +import { MockAggregatorWbtc } from "./MockAggregatorWbtc"; export class MockAggregatorWbtcFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorWbtcFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorWbtc + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorWbtcFactory extends ContractFactory { connect(signer: Signer): MockAggregatorWbtcFactory { return super.connect(signer) as MockAggregatorWbtcFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorWbtc { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorWbtc { return new Contract(address, _abi, signerOrProvider) as MockAggregatorWbtc; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220d04d858e564e9146e058acc517c8cd10ec96da2fd6644019d09878f36c509fd564736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220d04d858e564e9146e058acc517c8cd10ec96da2fd6644019d09878f36c509fd564736f6c63430006080033"; diff --git a/types/MockAggregatorZrx.d.ts b/types/MockAggregatorZrx.d.ts index d2190c43..bf9bd50f 100644 --- a/types/MockAggregatorZrx.d.ts +++ b/types/MockAggregatorZrx.d.ts @@ -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 MockAggregatorZrxInterface extends Interface { functions: { - latestAnswer: TypedFunctionDescription<{encode([]: []): string}>; + latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { @@ -29,7 +33,10 @@ export class MockAggregatorZrx extends Contract { on(event: EventFilter | string, listener: Listener): MockAggregatorZrx; once(event: EventFilter | string, listener: Listener): MockAggregatorZrx; - addListener(eventName: EventFilter | string, listener: Listener): MockAggregatorZrx; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockAggregatorZrx; removeAllListeners(eventName: EventFilter | string): MockAggregatorZrx; removeListener(eventName: any, listener: Listener): MockAggregatorZrx; diff --git a/types/MockAggregatorZrxFactory.ts b/types/MockAggregatorZrxFactory.ts index 1b874952..2d9d7b5f 100644 --- a/types/MockAggregatorZrxFactory.ts +++ b/types/MockAggregatorZrxFactory.ts @@ -1,13 +1,13 @@ /* 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 {BigNumberish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { BigNumberish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {MockAggregatorZrx} from './MockAggregatorZrx'; +import { TransactionOverrides } from "."; +import { MockAggregatorZrx } from "./MockAggregatorZrx"; export class MockAggregatorZrxFactory extends ContractFactory { constructor(signer?: Signer) { @@ -18,7 +18,9 @@ export class MockAggregatorZrxFactory extends ContractFactory { _initialAnswer: BigNumberish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_initialAnswer, overrides) as Promise; + return super.deploy(_initialAnswer, overrides) as Promise< + MockAggregatorZrx + >; } getDeployTransaction( _initialAnswer: BigNumberish, @@ -32,7 +34,10 @@ export class MockAggregatorZrxFactory extends ContractFactory { connect(signer: Signer): MockAggregatorZrxFactory { return super.connect(signer) as MockAggregatorZrxFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockAggregatorZrx { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockAggregatorZrx { return new Contract(address, _abi, signerOrProvider) as MockAggregatorZrx; } } @@ -41,53 +46,53 @@ const _abi = [ { inputs: [ { - internalType: 'int256', - name: '_initialAnswer', - type: 'int256', - }, + internalType: "int256", + name: "_initialAnswer", + type: "int256" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { anonymous: false, 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: 'latestAnswer', + name: "latestAnswer", outputs: [ { - internalType: 'int256', - name: '', - type: 'int256', - }, + internalType: "int256", + name: "", + type: "int256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220b3b36b1466563d2296ad3911021352eba21919c06775a8d54892854f5d944bf664736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516101033803806101038339818101604052602081101561003357600080fd5b5051600081815560408051428152905183929183917f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9181900360200190a350506081806100826000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6000549056fea2646970667358221220b3b36b1466563d2296ad3911021352eba21919c06775a8d54892854f5d944bf664736f6c63430006080033"; diff --git a/types/MockBat.d.ts b/types/MockBat.d.ts index 99416c9c..e4a32da3 100644 --- a/types/MockBat.d.ts +++ b/types/MockBat.d.ts @@ -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 MockBatInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockBatInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockBatInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockBat extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockBat extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockBat extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockBat extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockBat extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockBatFactory.ts b/types/MockBatFactory.ts index 52380cbf..cd6786bf 100644 --- a/types/MockBatFactory.ts +++ b/types/MockBatFactory.ts @@ -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 {MockBat} from './MockBat'; +import { TransactionOverrides } from "."; +import { MockBat } from "./MockBat"; export class MockBatFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockBatFactory extends ContractFactory { connect(signer: Signer): MockBatFactory { return super.connect(signer) as MockBatFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockBat { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockBat { return new Contract(address, _abi, signerOrProvider) as MockBat; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600381526020016210905560ea1b8152506040518060400160405280601581526020017f426173696320417474656e74696f6e20546f6b656e000000000000000000000081525060128282816003908051906020019061007d9291906100d1565b5080516100919060049060208401906100d1565b50506005805460ff19166012179055506100b3816001600160e01b036100bb16565b50505061016c565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011257805160ff191683800117855561013f565b8280016001018555821561013f579182015b8281111561013f578251825591602001919060010190610124565b5061014b92915061014f565b5090565b61016991905b8082111561014b5760008155600101610155565b90565b610b488061017b6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122058088e6b0bfc820b3ea55c0eb21e66293ba88009a4f22dec2fd53857c7b1fd4864736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600381526020016210905560ea1b8152506040518060400160405280601581526020017f426173696320417474656e74696f6e20546f6b656e000000000000000000000081525060128282816003908051906020019061007d9291906100d1565b5080516100919060049060208401906100d1565b50506005805460ff19166012179055506100b3816001600160e01b036100bb16565b50505061016c565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011257805160ff191683800117855561013f565b8280016001018555821561013f579182015b8281111561013f578251825591602001919060010190610124565b5061014b92915061014f565b5090565b61016991905b8082111561014b5760008155600101610155565b90565b610b488061017b6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220158537984c7e94231132d6c274c79f2a16ac8391950f053ef11e385cd59cb81b64736f6c63430006080033"; diff --git a/types/MockBusd.d.ts b/types/MockBusd.d.ts index 4e0a2def..7fd0893d 100644 --- a/types/MockBusd.d.ts +++ b/types/MockBusd.d.ts @@ -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 MockBusdInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockBusdInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockBusdInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockBusd extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockBusd extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockBusd extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockBusd extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockBusd extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockBusdFactory.ts b/types/MockBusdFactory.ts index e4aa6ed7..942f82c7 100644 --- a/types/MockBusdFactory.ts +++ b/types/MockBusdFactory.ts @@ -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 {MockBusd} from './MockBusd'; +import { TransactionOverrides } from "."; +import { MockBusd } from "./MockBusd"; export class MockBusdFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockBusdFactory extends ContractFactory { connect(signer: Signer): MockBusdFactory { return super.connect(signer) as MockBusdFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockBusd { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockBusd { return new Contract(address, _abi, signerOrProvider) as MockBusd; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b5060405180604001604052806004815260200163109554d160e21b8152506040518060400160405280600b81526020016a109a5b985b98d9481554d160aa1b81525060128282816003908051906020019061006c9291906100c0565b5080516100809060049060208401906100c0565b50506005805460ff19166012179055506100a2816001600160e01b036100aa16565b50505061015b565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010157805160ff191683800117855561012e565b8280016001018555821561012e579182015b8281111561012e578251825591602001919060010190610113565b5061013a92915061013e565b5090565b61015891905b8082111561013a5760008155600101610144565b90565b610b488061016a6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122024d80e3caaf1ca2556e34d848da29075805a6272f5971d08288f57a00ca4a3ab64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b5060405180604001604052806004815260200163109554d160e21b8152506040518060400160405280600b81526020016a109a5b985b98d9481554d160aa1b81525060128282816003908051906020019061006c9291906100c0565b5080516100809060049060208401906100c0565b50506005805460ff19166012179055506100a2816001600160e01b036100aa16565b50505061015b565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010157805160ff191683800117855561012e565b8280016001018555821561012e579182015b8281111561012e578251825591602001919060010190610113565b5061013a92915061013e565b5090565b61015891905b8082111561013a5760008155600101610144565b90565b610b488061016a6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209036ef75e7cc780d1302719579b0c0b11a8a3ac5565964bf64994bcc34c9817864736f6c63430006080033"; diff --git a/types/MockDai.d.ts b/types/MockDai.d.ts index 684fd749..859f5f3d 100644 --- a/types/MockDai.d.ts +++ b/types/MockDai.d.ts @@ -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 MockDaiInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockDaiInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockDaiInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockDai extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockDai extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockDai extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockDai extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockDai extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockDaiFactory.ts b/types/MockDaiFactory.ts index d8e01514..e258fb46 100644 --- a/types/MockDaiFactory.ts +++ b/types/MockDaiFactory.ts @@ -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 {MockDai} from './MockDai'; +import { TransactionOverrides } from "."; +import { MockDai } from "./MockDai"; export class MockDaiFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockDaiFactory extends ContractFactory { connect(signer: Signer): MockDaiFactory { return super.connect(signer) as MockDaiFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockDai { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockDai { return new Contract(address, _abi, signerOrProvider) as MockDai; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600381526020016244414960e81b8152506040518060400160405280600381526020016244414960e81b8152506012828281600390805190602001906100639291906100b7565b5080516100779060049060208401906100b7565b50506005805460ff1916601217905550610099816001600160e01b036100a116565b505050610152565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f857805160ff1916838001178555610125565b82800160010185558215610125579182015b8281111561012557825182559160200191906001019061010a565b50610131929150610135565b5090565b61014f91905b80821115610131576000815560010161013b565b90565b610b48806101616000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212208dc8b7355217fa70a49c3dcd2a7ff32cc29730917b14ff706bc7b77624c48d4664736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600381526020016244414960e81b8152506040518060400160405280600381526020016244414960e81b8152506012828281600390805190602001906100639291906100b7565b5080516100779060049060208401906100b7565b50506005805460ff1916601217905550610099816001600160e01b036100a116565b505050610152565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f857805160ff1916838001178555610125565b82800160010185558215610125579182015b8281111561012557825182559160200191906001019061010a565b50610131929150610135565b5090565b61014f91905b80821115610131576000815560010161013b565b90565b610b48806101616000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ab71b861c25cccb8d317f9caef3d0c12674259017d09a729d38515ecd5f7c3ac64736f6c63430006080033"; diff --git a/types/MockFlashLoanReceiver.d.ts b/types/MockFlashLoanReceiver.d.ts index 0526c4cf..87508288 100644 --- a/types/MockFlashLoanReceiver.d.ts +++ b/types/MockFlashLoanReceiver.d.ts @@ -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 MockFlashLoanReceiverInterface extends Interface { functions: { - addressesProvider: TypedFunctionDescription<{encode([]: []): string}>; + addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>; executeOperation: TypedFunctionDescription<{ encode([_reserve, _destination, _amount, _fee, _params]: [ @@ -43,7 +47,10 @@ export class MockFlashLoanReceiver extends Contract { on(event: EventFilter | string, listener: Listener): MockFlashLoanReceiver; once(event: EventFilter | string, listener: Listener): MockFlashLoanReceiver; - addListener(eventName: EventFilter | string, listener: Listener): MockFlashLoanReceiver; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockFlashLoanReceiver; removeAllListeners(eventName: EventFilter | string): MockFlashLoanReceiver; removeListener(eventName: any, listener: Listener): MockFlashLoanReceiver; diff --git a/types/MockFlashLoanReceiverFactory.ts b/types/MockFlashLoanReceiverFactory.ts index fe193312..5c15c380 100644 --- a/types/MockFlashLoanReceiverFactory.ts +++ b/types/MockFlashLoanReceiverFactory.ts @@ -1,22 +1,28 @@ /* 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 {MockFlashLoanReceiver} from './MockFlashLoanReceiver'; +import { TransactionOverrides } from "."; +import { MockFlashLoanReceiver } from "./MockFlashLoanReceiver"; export class MockFlashLoanReceiverFactory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } - deploy(_provider: string, overrides?: TransactionOverrides): Promise { + deploy( + _provider: string, + overrides?: TransactionOverrides + ): Promise { return super.deploy(_provider, overrides) as Promise; } - getDeployTransaction(_provider: string, overrides?: TransactionOverrides): UnsignedTransaction { + getDeployTransaction( + _provider: string, + overrides?: TransactionOverrides + ): UnsignedTransaction { return super.getDeployTransaction(_provider, overrides); } attach(address: string): MockFlashLoanReceiver { @@ -25,8 +31,15 @@ export class MockFlashLoanReceiverFactory extends ContractFactory { connect(signer: Signer): MockFlashLoanReceiverFactory { return super.connect(signer) as MockFlashLoanReceiverFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockFlashLoanReceiver { - return new Contract(address, _abi, signerOrProvider) as MockFlashLoanReceiver; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockFlashLoanReceiver { + return new Contract( + address, + _abi, + signerOrProvider + ) as MockFlashLoanReceiver; } } @@ -34,128 +47,128 @@ 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" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fee', - type: 'uint256', - }, + internalType: "uint256", + name: "_fee", + type: "uint256" + } ], - name: 'ExecutedWithFail', - type: 'event', + name: "ExecutedWithFail", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_fee', - type: 'uint256', - }, + internalType: "uint256", + name: "_fee", + type: "uint256" + } ], - name: 'ExecutedWithSuccess', - type: 'event', + name: "ExecutedWithSuccess", + type: "event" }, { 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" }, { inputs: [ { - internalType: 'bool', - name: '_fail', - type: 'bool', - }, + internalType: "bool", + name: "_fail", + type: "bool" + } ], - name: 'setFailExecutionTransfer', + name: "setFailExecutionTransfer", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { - stateMutability: 'payable', - type: 'receive', - }, + stateMutability: "payable", + type: "receive" + } ]; const _bytecode = - '0x60806040526000805460ff60a01b1916905534801561001d57600080fd5b506040516109663803806109668339818101604052602081101561004057600080fd5b5051600080546001600160a01b039092166001600160a01b03199092169190911790556108f4806100726000396000f3fe6080604052600436106100385760003560e01c8063388f70f114610044578063405b019d14610072578063c72c4d101461014a5761003f565b3661003f57005b600080fd5b34801561005057600080fd5b506100706004803603602081101561006757600080fd5b5035151561017b565b005b34801561007e57600080fd5b50610070600480360360a081101561009557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156100d557600080fd5b8201836020820111156100e757600080fd5b8035906020019184600183028401116401000000008311171561010957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610199945050505050565b34801561015657600080fd5b5061015f61034e565b604080516001600160a01b039092168252519081900360200190f35b60008054911515600160a01b0260ff60a01b19909216919091179055565b846101a4308261035d565b8411156101f8576040805162461bcd60e51b815260206004820181905260248201527f496e76616c69642062616c616e636520666f722074686520636f6e7472616374604482015290519081900360640190fd5b600054600160a01b900460ff161561025957604080516001600160a01b03881681526020810186905280820185905290517f816f6a6bc084e1996be1a831afa1af30763d0501b6b43b9e1922a11f347366d79181900360600190a150610347565b61026b866001600160a01b0316610412565b6102e257806001600160a01b031663a0712d68846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156102b557600080fd5b505af11580156102c9573d6000803e3d6000fd5b505050506040513d60208110156102df57600080fd5b50505b6102fc86866102f7878763ffffffff61043716565b610498565b604080516001600160a01b03881681526020810186905280820185905290517f7d94e9d0c906b8d7b2b52a581b9e9ba728aa6f8cd8532bd87243d193f47401be9181900360600190a1505b5050505050565b6000546001600160a01b031681565b6000610371826001600160a01b0316610412565b1561038757506001600160a01b0382163161040c565b816001600160a01b03166370a08231846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156103dd57600080fd5b505afa1580156103f1573d6000803e3d6000fd5b505050506040513d602081101561040757600080fd5b505190505b92915050565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b600082820183811015610491576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6104a38284836104a8565b505050565b6104a36001600160a01b038316848363ffffffff6104c216565b806104cc576104a3565b6104d583610412565b15610581576040516000906001600160a01b0384169061c35090849084818181858888f193505050503d806000811461052a576040519150601f19603f3d011682016040523d82523d6000602084013e61052f565b606091505b505090508061057b576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b506104a3565b6104a36001600160a01b038416838363ffffffff61059b16565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526104a3908490606061063d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106999092919063ffffffff16565b8051909150156104a35780806020019051602081101561065c57600080fd5b50516104a35760405162461bcd60e51b815260040180806020018281038252602a815260200180610895602a913960400191505060405180910390fd5b60606106a884846000856106b0565b949350505050565b60606106bb8561085b565b61070c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061074b5780518252601f19909201916020918201910161072c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146107ad576040519150601f19603f3d011682016040523d82523d6000602084013e6107b2565b606091505b509150915081156107c65791506106a89050565b8051156107d65780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610820578181015183820152602001610808565b50505050905090810190601f16801561084d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906106a857505015159291505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220516cc8692ecd6324970df77ee93fb747bff000502ddb41784874b25d58bf1f1764736f6c63430006080033'; + "0x60806040526000805460ff60a01b1916905534801561001d57600080fd5b506040516109663803806109668339818101604052602081101561004057600080fd5b5051600080546001600160a01b039092166001600160a01b03199092169190911790556108f4806100726000396000f3fe6080604052600436106100385760003560e01c8063388f70f114610044578063405b019d14610072578063c72c4d101461014a5761003f565b3661003f57005b600080fd5b34801561005057600080fd5b506100706004803603602081101561006757600080fd5b5035151561017b565b005b34801561007e57600080fd5b50610070600480360360a081101561009557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156100d557600080fd5b8201836020820111156100e757600080fd5b8035906020019184600183028401116401000000008311171561010957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610199945050505050565b34801561015657600080fd5b5061015f61034e565b604080516001600160a01b039092168252519081900360200190f35b60008054911515600160a01b0260ff60a01b19909216919091179055565b846101a4308261035d565b8411156101f8576040805162461bcd60e51b815260206004820181905260248201527f496e76616c69642062616c616e636520666f722074686520636f6e7472616374604482015290519081900360640190fd5b600054600160a01b900460ff161561025957604080516001600160a01b03881681526020810186905280820185905290517f816f6a6bc084e1996be1a831afa1af30763d0501b6b43b9e1922a11f347366d79181900360600190a150610347565b61026b866001600160a01b0316610412565b6102e257806001600160a01b031663a0712d68846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156102b557600080fd5b505af11580156102c9573d6000803e3d6000fd5b505050506040513d60208110156102df57600080fd5b50505b6102fc86866102f7878763ffffffff61043716565b610498565b604080516001600160a01b03881681526020810186905280820185905290517f7d94e9d0c906b8d7b2b52a581b9e9ba728aa6f8cd8532bd87243d193f47401be9181900360600190a1505b5050505050565b6000546001600160a01b031681565b6000610371826001600160a01b0316610412565b1561038757506001600160a01b0382163161040c565b816001600160a01b03166370a08231846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156103dd57600080fd5b505afa1580156103f1573d6000803e3d6000fd5b505050506040513d602081101561040757600080fd5b505190505b92915050565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b600082820183811015610491576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6104a38284836104a8565b505050565b6104a36001600160a01b038316848363ffffffff6104c216565b806104cc576104a3565b6104d583610412565b15610581576040516000906001600160a01b0384169061c35090849084818181858888f193505050503d806000811461052a576040519150601f19603f3d011682016040523d82523d6000602084013e61052f565b606091505b505090508061057b576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b506104a3565b6104a36001600160a01b038416838363ffffffff61059b16565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526104a3908490606061063d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106999092919063ffffffff16565b8051909150156104a35780806020019051602081101561065c57600080fd5b50516104a35760405162461bcd60e51b815260040180806020018281038252602a815260200180610895602a913960400191505060405180910390fd5b60606106a884846000856106b0565b949350505050565b60606106bb8561085b565b61070c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061074b5780518252601f19909201916020918201910161072c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146107ad576040519150601f19603f3d011682016040523d82523d6000602084013e6107b2565b606091505b509150915081156107c65791506106a89050565b8051156107d65780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610820578181015183820152602001610808565b50505050905090810190601f16801561084d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906106a857505015159291505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220516cc8692ecd6324970df77ee93fb747bff000502ddb41784874b25d58bf1f1764736f6c63430006080033"; diff --git a/types/MockKnc.d.ts b/types/MockKnc.d.ts index 89ce789e..0c9fd4da 100644 --- a/types/MockKnc.d.ts +++ b/types/MockKnc.d.ts @@ -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 MockKncInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockKncInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockKncInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockKnc extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockKnc extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockKnc extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockKnc extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockKnc extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockKncFactory.ts b/types/MockKncFactory.ts index 826f65f1..6207ca63 100644 --- a/types/MockKncFactory.ts +++ b/types/MockKncFactory.ts @@ -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 {MockKnc} from './MockKnc'; +import { TransactionOverrides } from "."; +import { MockKnc } from "./MockKnc"; export class MockKncFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockKncFactory extends ContractFactory { connect(signer: Signer): MockKncFactory { return super.connect(signer) as MockKncFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockKnc { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockKnc { return new Contract(address, _abi, signerOrProvider) as MockKnc; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051806040016040528060038152602001624b4e4360e81b8152506040518060400160405280600d81526020016c4b79626572204e6574776f726b60981b81525060128282816003908051906020019061006d9291906100c1565b5080516100819060049060208401906100c1565b50506005805460ff19166012179055506100a3816001600160e01b036100ab16565b50505061015c565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010257805160ff191683800117855561012f565b8280016001018555821561012f579182015b8281111561012f578251825591602001919060010190610114565b5061013b92915061013f565b5090565b61015991905b8082111561013b5760008155600101610145565b90565b610b488061016b6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122074bb0be046fe5e7631223f0a741b2c125024cf422d454fea02c598f654c755e664736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50604051806040016040528060038152602001624b4e4360e81b8152506040518060400160405280600d81526020016c4b79626572204e6574776f726b60981b81525060128282816003908051906020019061006d9291906100c1565b5080516100819060049060208401906100c1565b50506005805460ff19166012179055506100a3816001600160e01b036100ab16565b50505061015c565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010257805160ff191683800117855561012f565b8280016001018555821561012f579182015b8281111561012f578251825591602001919060010190610114565b5061013b92915061013f565b5090565b61015991905b8082111561013b5760008155600101610145565b90565b610b488061016b6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122056c234f6185c33236de7592f34f133844b5a3802b94610c5974bbf2c2553447464736f6c63430006080033"; diff --git a/types/MockKyberProxy.d.ts b/types/MockKyberProxy.d.ts index adcb08c1..2b8d762f 100644 --- a/types/MockKyberProxy.d.ts +++ b/types/MockKyberProxy.d.ts @@ -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 MockKyberProxyInterface extends Interface { functions: { - tokenToBurn: TypedFunctionDescription<{encode([]: []): string}>; + tokenToBurn: TypedFunctionDescription<{ encode([]: []): string }>; tradeWithHint: TypedFunctionDescription<{ encode([ @@ -19,7 +23,7 @@ interface MockKyberProxyInterface extends Interface { _maxAmount, minConversionRate, _referral, - _filtering, + _filtering ]: [ string, BigNumberish, @@ -43,7 +47,10 @@ export class MockKyberProxy extends Contract { on(event: EventFilter | string, listener: Listener): MockKyberProxy; once(event: EventFilter | string, listener: Listener): MockKyberProxy; - addListener(eventName: EventFilter | string, listener: Listener): MockKyberProxy; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockKyberProxy; removeAllListeners(eventName: EventFilter | string): MockKyberProxy; removeListener(eventName: any, listener: Listener): MockKyberProxy; diff --git a/types/MockKyberProxyFactory.ts b/types/MockKyberProxyFactory.ts index 16dcc5aa..7113dd7c 100644 --- a/types/MockKyberProxyFactory.ts +++ b/types/MockKyberProxyFactory.ts @@ -1,19 +1,22 @@ /* 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 {MockKyberProxy} from './MockKyberProxy'; +import { TransactionOverrides } from "."; +import { MockKyberProxy } from "./MockKyberProxy"; export class MockKyberProxyFactory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } - deploy(_tokenToBurn: string, overrides?: TransactionOverrides): Promise { + deploy( + _tokenToBurn: string, + overrides?: TransactionOverrides + ): Promise { return super.deploy(_tokenToBurn, overrides) as Promise; } getDeployTransaction( @@ -28,7 +31,10 @@ export class MockKyberProxyFactory extends ContractFactory { connect(signer: Signer): MockKyberProxyFactory { return super.connect(signer) as MockKyberProxyFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockKyberProxy { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockKyberProxy { return new Contract(address, _abi, signerOrProvider) as MockKyberProxy; } } @@ -37,82 +43,82 @@ const _abi = [ { inputs: [ { - internalType: 'contract MintableERC20', - name: '_tokenToBurn', - type: 'address', - }, + internalType: "contract MintableERC20", + name: "_tokenToBurn", + type: "address" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { inputs: [], - name: 'tokenToBurn', + name: "tokenToBurn", outputs: [ { - internalType: 'contract MintableERC20', - name: '', - type: 'address', - }, + internalType: "contract MintableERC20", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'contract IERC20', - name: '_fromToken', - type: 'address', + internalType: "contract IERC20", + name: "_fromToken", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { - internalType: 'contract IERC20', - name: '_toToken', - type: 'address', + internalType: "contract IERC20", + name: "_toToken", + type: "address" }, { - internalType: 'address', - name: '_receiver', - type: 'address', + internalType: "address", + name: "_receiver", + type: "address" }, { - internalType: 'uint256', - name: '_maxAmount', - type: 'uint256', + internalType: "uint256", + name: "_maxAmount", + type: "uint256" }, { - internalType: 'uint256', - name: 'minConversionRate', - type: 'uint256', + internalType: "uint256", + name: "minConversionRate", + type: "uint256" }, { - internalType: 'address', - name: '_referral', - type: 'address', + internalType: "address", + name: "_referral", + type: "address" }, { - internalType: 'bytes', - name: '_filtering', - type: 'bytes', - }, + internalType: "bytes", + name: "_filtering", + 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516106b53803806106b58339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055610650806100656000396000f3fe6080604052600436106100295760003560e01c806329589f611461002e5780634f1b86eb146100ec575b600080fd5b6100da600480360361010081101561004557600080fd5b6001600160a01b0382358116926020810135926040820135831692606083013581169260808101359260a08201359260c0830135169190810190610100810160e082013564010000000081111561009b57600080fd5b8201836020820111156100ad57600080fd5b803590602001918460018302840111640100000000831117156100cf57600080fd5b50909250905061011d565b60408051918252519081900360200190f35b3480156100f857600080fd5b50610101610266565b604080516001600160a01b039092168252519081900360200190f35b600080546040805163140e25ad60e31b8152670de0b6b3a7640000600482015290516001600160a01b039092169163a0712d689160248082019260209290919082900301818787803b15801561017257600080fd5b505af1158015610186573d6000803e3d6000fd5b505050506040513d602081101561019c57600080fd5b50516101ef576040805162461bcd60e51b815260206004820181905260248201527f54524144455f574954485f48494e542e205265766572746564206d696e742829604482015290519081900360640190fd5b6101f7610275565b6001600160a01b03168a6001600160a01b03161461022a5761022a6001600160a01b038b1633308c63ffffffff61028d16565b60005461024f906001600160a01b031633670de0b6b3a764000063ffffffff6102ed16565b50670de0b6b3a76400009998505050505050505050565b6000546001600160a01b031681565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526102e7908590610344565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261033f908490610344565b505050565b6060610399826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166103f59092919063ffffffff16565b80519091501561033f578080602001905160208110156103b857600080fd5b505161033f5760405162461bcd60e51b815260040180806020018281038252602a8152602001806105f1602a913960400191505060405180910390fd5b6060610404848460008561040c565b949350505050565b6060610417856105b7565b610468576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106104a75780518252601f199092019160209182019101610488565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610509576040519150601f19603f3d011682016040523d82523d6000602084013e61050e565b606091505b509150915081156105225791506104049050565b8051156105325780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561057c578181015183820152602001610564565b50505050905090810190601f1680156105a95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061040457505015159291505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122099f447de7dc340bb9fad6029140c928c6fde2d7c3b3f7bb83714a93e38cb1f2f64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516105fd3803806105fd8339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055610598806100656000396000f3fe6080604052600436106100295760003560e01c806329589f611461002e5780634f1b86eb146100ec575b600080fd5b6100da600480360361010081101561004557600080fd5b6001600160a01b0382358116926020810135926040820135831692606083013581169260808101359260a08201359260c0830135169190810190610100810160e082013564010000000081111561009b57600080fd5b8201836020820111156100ad57600080fd5b803590602001918460018302840111640100000000831117156100cf57600080fd5b50909250905061011d565b60408051918252519081900360200190f35b3480156100f857600080fd5b50610101610266565b604080516001600160a01b039092168252519081900360200190f35b600080546040805163140e25ad60e31b8152670de0b6b3a7640000600482015290516001600160a01b039092169163a0712d689160248082019260209290919082900301818787803b15801561017257600080fd5b505af1158015610186573d6000803e3d6000fd5b505050506040513d602081101561019c57600080fd5b50516101ef576040805162461bcd60e51b815260206004820181905260248201527f54524144455f574954485f48494e542e205265766572746564206d696e742829604482015290519081900360640190fd5b6101f7610275565b6001600160a01b03168a6001600160a01b03161461022a5761022a6001600160a01b038b1633308c63ffffffff61028d16565b60005461024f906001600160a01b031633670de0b6b3a764000063ffffffff6102ed16565b50670de0b6b3a76400009998505050505050505050565b6000546001600160a01b031681565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526102e7908590610344565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261033f908490610344565b505050565b610356826001600160a01b03166104fc565b6103a7576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106103e55780518252601f1990920191602091820191016103c6565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610447576040519150601f19603f3d011682016040523d82523d6000602084013e61044c565b606091505b5091509150816104a3576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156102e7578080602001905160208110156104bf57600080fd5b50516102e75760405162461bcd60e51b815260040180806020018281038252602a815260200180610539602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061053057508115155b94935050505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204217cd7d546f66051c30fdaa4e283314470f9c5edda974b8ca382dab7b05781364736f6c63430006080033"; diff --git a/types/MockLend.d.ts b/types/MockLend.d.ts index 305314eb..1c0f6008 100644 --- a/types/MockLend.d.ts +++ b/types/MockLend.d.ts @@ -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 MockLendInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockLendInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockLendInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockLend extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockLend extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockLend extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockLend extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockLend extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockLendFactory.ts b/types/MockLendFactory.ts index 753bf16b..da79ad95 100644 --- a/types/MockLendFactory.ts +++ b/types/MockLendFactory.ts @@ -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 {MockLend} from './MockLend'; +import { TransactionOverrides } from "."; +import { MockLend } from "./MockLend"; export class MockLendFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockLendFactory extends ContractFactory { connect(signer: Signer): MockLendFactory { return super.connect(signer) as MockLendFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockLend { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockLend { return new Contract(address, _abi, signerOrProvider) as MockLend; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051806040016040528060048152602001631311539160e21b815250604051806040016040528060048152602001631311539160e21b8152506012828281600390805190602001906100659291906100b9565b5080516100799060049060208401906100b9565b50506005805460ff191660121790555061009b816001600160e01b036100a316565b505050610154565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fa57805160ff1916838001178555610127565b82800160010185558215610127579182015b8281111561012757825182559160200191906001019061010c565b50610133929150610137565b5090565b61015191905b80821115610133576000815560010161013d565b90565b610b48806101636000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220545b74b04d903fa7e5eb0ab303757e8abe9b5d8818e080de5fa7183b5b8ad71c64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50604051806040016040528060048152602001631311539160e21b815250604051806040016040528060048152602001631311539160e21b8152506012828281600390805190602001906100659291906100b9565b5080516100799060049060208401906100b9565b50506005805460ff191660121790555061009b816001600160e01b036100a316565b505050610154565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fa57805160ff1916838001178555610127565b82800160010185558215610127579182015b8281111561012757825182559160200191906001019061010c565b50610133929150610137565b5090565b61015191905b80821115610133576000815560010161013d565b90565b610b48806101636000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122028771d83d4aaeef1112c3b75c773de202989df72352df12eb488f236925d54f364736f6c63430006080033"; diff --git a/types/MockLendingPoolCore.d.ts b/types/MockLendingPoolCore.d.ts index c798fbd5..5907f44a 100644 --- a/types/MockLendingPoolCore.d.ts +++ b/types/MockLendingPoolCore.d.ts @@ -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 MockLendingPoolCoreInterface extends Interface { functions: { @@ -12,7 +16,7 @@ interface MockLendingPoolCoreInterface 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 MockLendingPoolCoreInterface 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 MockLendingPoolCoreInterface 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 MockLendingPoolCoreInterface 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 MockLendingPoolCoreInterface 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 MockLendingPoolCoreInterface 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 MockLendingPoolCoreInterface 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 MockLendingPoolCoreInterface extends Interface { _feeLiquidated, _liquidatedCollateralForFee, _balanceIncrease, - _liquidatorReceivesAToken, + _liquidatorReceivesAToken ]: [ string, string, @@ -320,7 +344,11 @@ interface MockLendingPoolCoreInterface 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 MockLendingPoolCoreInterface 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 MockLendingPoolCoreInterface 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 MockLendingPoolCoreInterface extends Interface { averageStableBorrowRate, variableBorrowRate, liquidityIndex, - variableBorrowIndex, + variableBorrowIndex ]: [string | null, null, null, null, null, null, null]): string[]; }>; @@ -375,7 +417,7 @@ interface MockLendingPoolCoreInterface extends Interface { stableBorrowRate, variableBorrowRate, liquidityIndex, - variableBorrowIndex, + variableBorrowIndex ]: [string | null, null, null, null, null, null]): string[]; }>; @@ -392,7 +434,10 @@ export class MockLendingPoolCore extends Contract { on(event: EventFilter | string, listener: Listener): MockLendingPoolCore; once(event: EventFilter | string, listener: Listener): MockLendingPoolCore; - addListener(eventName: EventFilter | string, listener: Listener): MockLendingPoolCore; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockLendingPoolCore; removeAllListeners(eventName: EventFilter | string): MockLendingPoolCore; removeListener(eventName: any, listener: Listener): MockLendingPoolCore; @@ -445,7 +490,10 @@ export class MockLendingPoolCore extends Contract { overrides?: TransactionOverrides ): Promise; - freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + freezeReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; getReserveATokenAddress(_reserve: string): Promise; @@ -460,7 +508,9 @@ export class MockLendingPoolCore extends Contract { 3: boolean; }>; - getReserveCurrentAverageStableBorrowRate(_reserve: string): Promise; + getReserveCurrentAverageStableBorrowRate( + _reserve: string + ): Promise; getReserveCurrentLiquidityRate(_reserve: string): Promise; @@ -498,7 +548,9 @@ export class MockLendingPoolCore extends Contract { getReserveUtilizationRate(_reserve: string): Promise; - getReserveVariableBorrowsCumulativeIndex(_reserve: string): Promise; + getReserveVariableBorrowsCumulativeIndex( + _reserve: string + ): Promise; getReserves(): Promise; @@ -521,17 +573,29 @@ export class MockLendingPoolCore extends Contract { 2: BigNumber; }>; - getUserCurrentBorrowRateMode(_reserve: string, _user: string): Promise; + getUserCurrentBorrowRateMode( + _reserve: string, + _user: string + ): Promise; - getUserCurrentStableBorrowRate(_reserve: string, _user: string): Promise; + getUserCurrentStableBorrowRate( + _reserve: string, + _user: string + ): Promise; getUserLastUpdate(_reserve: string, _user: string): Promise; getUserOriginationFee(_reserve: string, _user: string): Promise; - getUserUnderlyingAssetBalance(_reserve: string, _user: string): Promise; + getUserUnderlyingAssetBalance( + _reserve: string, + _user: string + ): Promise; - getUserVariableBorrowCumulativeIndex(_reserve: string, _user: string): Promise; + getUserVariableBorrowCumulativeIndex( + _reserve: string, + _user: string + ): Promise; initReserve( _reserve: string, @@ -556,7 +620,10 @@ export class MockLendingPoolCore extends Contract { _amount: BigNumberish ): Promise; - isUserUseReserveAsCollateralEnabled(_reserve: string, _user: string): Promise; + isUserUseReserveAsCollateralEnabled( + _reserve: string, + _user: string + ): Promise; lendingPoolAddress(): Promise; @@ -567,7 +634,9 @@ export class MockLendingPoolCore extends Contract { overrides?: TransactionOverrides ): Promise; - refreshConfiguration(overrides?: TransactionOverrides): Promise; + refreshConfiguration( + overrides?: TransactionOverrides + ): Promise; removeLastAddedReserve( _reserveToRemove: string, @@ -714,7 +783,10 @@ export class MockLendingPoolCore extends Contract { ): Promise; }; - activateReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + activateReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; addressesProvider(): Promise; @@ -757,7 +829,10 @@ export class MockLendingPoolCore extends Contract { overrides?: TransactionOverrides ): Promise; - freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + freezeReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; getReserveATokenAddress(_reserve: string): Promise; @@ -772,7 +847,9 @@ export class MockLendingPoolCore extends Contract { 3: boolean; }>; - getReserveCurrentAverageStableBorrowRate(_reserve: string): Promise; + getReserveCurrentAverageStableBorrowRate( + _reserve: string + ): Promise; getReserveCurrentLiquidityRate(_reserve: string): Promise; @@ -810,7 +887,9 @@ export class MockLendingPoolCore extends Contract { getReserveUtilizationRate(_reserve: string): Promise; - getReserveVariableBorrowsCumulativeIndex(_reserve: string): Promise; + getReserveVariableBorrowsCumulativeIndex( + _reserve: string + ): Promise; getReserves(): Promise; @@ -833,17 +912,29 @@ export class MockLendingPoolCore extends Contract { 2: BigNumber; }>; - getUserCurrentBorrowRateMode(_reserve: string, _user: string): Promise; + getUserCurrentBorrowRateMode( + _reserve: string, + _user: string + ): Promise; - getUserCurrentStableBorrowRate(_reserve: string, _user: string): Promise; + getUserCurrentStableBorrowRate( + _reserve: string, + _user: string + ): Promise; getUserLastUpdate(_reserve: string, _user: string): Promise; getUserOriginationFee(_reserve: string, _user: string): Promise; - getUserUnderlyingAssetBalance(_reserve: string, _user: string): Promise; + getUserUnderlyingAssetBalance( + _reserve: string, + _user: string + ): Promise; - getUserVariableBorrowCumulativeIndex(_reserve: string, _user: string): Promise; + getUserVariableBorrowCumulativeIndex( + _reserve: string, + _user: string + ): Promise; initReserve( _reserve: string, @@ -868,7 +959,10 @@ export class MockLendingPoolCore extends Contract { _amount: BigNumberish ): Promise; - isUserUseReserveAsCollateralEnabled(_reserve: string, _user: string): Promise; + isUserUseReserveAsCollateralEnabled( + _reserve: string, + _user: string + ): Promise; lendingPoolAddress(): Promise; @@ -879,7 +973,9 @@ export class MockLendingPoolCore extends Contract { overrides?: TransactionOverrides ): Promise; - refreshConfiguration(overrides?: TransactionOverrides): Promise; + refreshConfiguration( + overrides?: TransactionOverrides + ): Promise; removeLastAddedReserve( _reserveToRemove: string, @@ -947,7 +1043,10 @@ export class MockLendingPoolCore extends Contract { overrides?: TransactionOverrides ): Promise; - unfreezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise; + unfreezeReserve( + _reserve: string, + overrides?: TransactionOverrides + ): Promise; updateStateOnBorrow( _reserve: string, @@ -1080,7 +1179,9 @@ export class MockLendingPoolCore extends Contract { getReserveConfiguration(_reserve: string): Promise; - getReserveCurrentAverageStableBorrowRate(_reserve: string): Promise; + getReserveCurrentAverageStableBorrowRate( + _reserve: string + ): Promise; getReserveCurrentLiquidityRate(_reserve: string): Promise; @@ -1118,25 +1219,42 @@ export class MockLendingPoolCore extends Contract { getReserveUtilizationRate(_reserve: string): Promise; - getReserveVariableBorrowsCumulativeIndex(_reserve: string): Promise; + getReserveVariableBorrowsCumulativeIndex( + _reserve: string + ): Promise; getReserves(): Promise; - getUserBasicReserveData(_reserve: string, _user: string): Promise; + getUserBasicReserveData( + _reserve: string, + _user: string + ): Promise; getUserBorrowBalances(_reserve: string, _user: string): Promise; - getUserCurrentBorrowRateMode(_reserve: string, _user: string): Promise; + getUserCurrentBorrowRateMode( + _reserve: string, + _user: string + ): Promise; - getUserCurrentStableBorrowRate(_reserve: string, _user: string): Promise; + getUserCurrentStableBorrowRate( + _reserve: string, + _user: string + ): Promise; getUserLastUpdate(_reserve: string, _user: string): Promise; getUserOriginationFee(_reserve: string, _user: string): Promise; - getUserUnderlyingAssetBalance(_reserve: string, _user: string): Promise; + getUserUnderlyingAssetBalance( + _reserve: string, + _user: string + ): Promise; - getUserVariableBorrowCumulativeIndex(_reserve: string, _user: string): Promise; + getUserVariableBorrowCumulativeIndex( + _reserve: string, + _user: string + ): Promise; initReserve( _reserve: string, @@ -1157,11 +1275,18 @@ export class MockLendingPoolCore extends Contract { _amount: BigNumberish ): Promise; - isUserUseReserveAsCollateralEnabled(_reserve: string, _user: string): Promise; + isUserUseReserveAsCollateralEnabled( + _reserve: string, + _user: string + ): Promise; lendingPoolAddress(): Promise; - liquidateFee(_token: string, _amount: BigNumberish, _destination: string): Promise; + liquidateFee( + _token: string, + _amount: BigNumberish, + _destination: string + ): Promise; refreshConfiguration(): Promise; @@ -1169,18 +1294,30 @@ export class MockLendingPoolCore extends Contract { reservesList(arg0: BigNumberish): Promise; - setReserveBaseLTVasCollateral(_reserve: string, _ltv: BigNumberish): Promise; + setReserveBaseLTVasCollateral( + _reserve: string, + _ltv: BigNumberish + ): Promise; - setReserveDecimals(_reserve: string, _decimals: BigNumberish): Promise; + setReserveDecimals( + _reserve: string, + _decimals: BigNumberish + ): Promise; setReserveInterestRateStrategyAddress( _reserve: string, _rateStrategyAddress: string ): Promise; - setReserveLiquidationBonus(_reserve: string, _bonus: BigNumberish): Promise; + setReserveLiquidationBonus( + _reserve: string, + _bonus: BigNumberish + ): Promise; - setReserveLiquidationThreshold(_reserve: string, _threshold: BigNumberish): Promise; + setReserveLiquidationThreshold( + _reserve: string, + _threshold: BigNumberish + ): Promise; setUserUseReserveAsCollateral( _reserve: string, @@ -1195,9 +1332,17 @@ export class MockLendingPoolCore extends Contract { _destination: string ): Promise; - transferToReserve(_reserve: string, _user: string, _amount: BigNumberish): Promise; + transferToReserve( + _reserve: string, + _user: string, + _amount: BigNumberish + ): Promise; - transferToUser(_reserve: string, _user: string, _amount: BigNumberish): Promise; + transferToUser( + _reserve: string, + _user: string, + _amount: BigNumberish + ): Promise; unfreezeReserve(_reserve: string): Promise; diff --git a/types/MockLendingPoolCoreFactory.ts b/types/MockLendingPoolCoreFactory.ts index 07e06760..21f83388 100644 --- a/types/MockLendingPoolCoreFactory.ts +++ b/types/MockLendingPoolCoreFactory.ts @@ -1,25 +1,34 @@ /* 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 {MockLendingPoolCore} from './MockLendingPoolCore'; +import { TransactionOverrides } from "."; +import { MockLendingPoolCore } from "./MockLendingPoolCore"; export class MockLendingPoolCoreFactory extends ContractFactory { - constructor(linkLibraryAddresses: MockLendingPoolCoreLibraryAddresses, signer?: Signer) { - super(_abi, MockLendingPoolCoreFactory.linkBytecode(linkLibraryAddresses), signer); + constructor( + linkLibraryAddresses: MockLendingPoolCoreLibraryAddresses, + signer?: Signer + ) { + super( + _abi, + MockLendingPoolCoreFactory.linkBytecode(linkLibraryAddresses), + signer + ); } - static linkBytecode(linkLibraryAddresses: MockLendingPoolCoreLibraryAddresses): string { + static linkBytecode( + linkLibraryAddresses: MockLendingPoolCoreLibraryAddresses + ): string { let linkedBytecode = _bytecode; linkedBytecode = linkedBytecode.replace( - new RegExp('__\\$2ec35834968386f54fa313129cf94664e4\\$__', 'g'), - linkLibraryAddresses['__$2ec35834968386f54fa313129cf94664e4$__'] - .replace(/^0x/, '') + new RegExp("__\\$2ec35834968386f54fa313129cf94664e4\\$__", "g"), + linkLibraryAddresses["__$2ec35834968386f54fa313129cf94664e4$__"] + .replace(/^0x/, "") .toLowerCase() ); @@ -38,7 +47,10 @@ export class MockLendingPoolCoreFactory extends ContractFactory { connect(signer: Signer): MockLendingPoolCoreFactory { return super.connect(signer) as MockLendingPoolCoreFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockLendingPoolCore { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockLendingPoolCore { return new Contract(address, _abi, signerOrProvider) as MockLendingPoolCore; } } @@ -49,1651 +61,1651 @@ const _abi = [ inputs: [ { indexed: true, - internalType: 'address', - name: 'reserve', - type: 'address', + internalType: "address", + name: "reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: 'liquidityRate', - type: 'uint256', + internalType: "uint256", + name: "liquidityRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'stableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "stableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'averageStableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "averageStableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'variableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'liquidityIndex', - type: 'uint256', + internalType: "uint256", + name: "liquidityIndex", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'variableBorrowIndex', - type: 'uint256', - }, + internalType: "uint256", + name: "variableBorrowIndex", + type: "uint256" + } ], - name: 'ReserveDataUpdated', - type: 'event', + name: "ReserveDataUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'address', - name: 'reserve', - type: 'address', + internalType: "address", + name: "reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: 'liquidityRate', - type: 'uint256', + internalType: "uint256", + name: "liquidityRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'stableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "stableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'variableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'liquidityIndex', - type: 'uint256', + internalType: "uint256", + name: "liquidityIndex", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'variableBorrowIndex', - type: 'uint256', - }, + internalType: "uint256", + name: "variableBorrowIndex", + type: "uint256" + } ], - name: 'ReserveUpdated', - type: 'event', + name: "ReserveUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: true, - internalType: 'uint256', - name: 'revision', - type: 'uint256', - }, + internalType: "uint256", + name: "revision", + type: "uint256" + } ], - name: 'ReserveUpdatedFromMock', - type: 'event', + name: "ReserveUpdatedFromMock", + type: "event" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'activateReserve', + name: "activateReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [], - name: 'addressesProvider', + name: "addressesProvider", outputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'deactivateReserve', + name: "deactivateReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'disableBorrowingOnReserve', + name: "disableBorrowingOnReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'disableReserveAsCollateral', + name: "disableReserveAsCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'disableReserveStableBorrowRate', + name: "disableReserveStableBorrowRate", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'bool', - name: '_stableBorrowRateEnabled', - type: 'bool', - }, + internalType: "bool", + name: "_stableBorrowRateEnabled", + type: "bool" + } ], - name: 'enableBorrowingOnReserve', + name: "enableBorrowingOnReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_baseLTVasCollateral', - type: 'uint256', + internalType: "uint256", + name: "_baseLTVasCollateral", + type: "uint256" }, { - internalType: 'uint256', - name: '_liquidationThreshold', - type: 'uint256', + internalType: "uint256", + name: "_liquidationThreshold", + type: "uint256" }, { - internalType: 'uint256', - name: '_liquidationBonus', - type: 'uint256', - }, + internalType: "uint256", + name: "_liquidationBonus", + type: "uint256" + } ], - name: 'enableReserveAsCollateral', + name: "enableReserveAsCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'enableReserveStableBorrowRate', + name: "enableReserveStableBorrowRate", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'freezeReserve', + name: "freezeReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveATokenAddress', + name: "getReserveATokenAddress", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveAvailableLiquidity', + name: "getReserveAvailableLiquidity", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveConfiguration', + name: "getReserveConfiguration", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveCurrentAverageStableBorrowRate', + name: "getReserveCurrentAverageStableBorrowRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveCurrentLiquidityRate', + name: "getReserveCurrentLiquidityRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveCurrentStableBorrowRate', + name: "getReserveCurrentStableBorrowRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveCurrentVariableBorrowRate', + name: "getReserveCurrentVariableBorrowRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveDecimals', + name: "getReserveDecimals", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveInterestRateStrategyAddress', + name: "getReserveInterestRateStrategyAddress", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveIsActive', + name: "getReserveIsActive", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveIsFreezed', + name: "getReserveIsFreezed", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveIsStableBorrowRateEnabled', + name: "getReserveIsStableBorrowRateEnabled", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveLastUpdate', + name: "getReserveLastUpdate", outputs: [ { - internalType: 'uint40', - name: 'timestamp', - type: 'uint40', - }, + internalType: "uint40", + name: "timestamp", + type: "uint40" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveLiquidationBonus', + name: "getReserveLiquidationBonus", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveLiquidationThreshold', + name: "getReserveLiquidationThreshold", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveLiquidityCumulativeIndex', + name: "getReserveLiquidityCumulativeIndex", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveNormalizedIncome', + name: "getReserveNormalizedIncome", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveTotalBorrows', + name: "getReserveTotalBorrows", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveTotalBorrowsStable', + name: "getReserveTotalBorrowsStable", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveTotalBorrowsVariable', + name: "getReserveTotalBorrowsVariable", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveTotalLiquidity', + name: "getReserveTotalLiquidity", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveUtilizationRate', + name: "getReserveUtilizationRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'getReserveVariableBorrowsCumulativeIndex', + name: "getReserveVariableBorrowsCumulativeIndex", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getReserves', + name: "getReserves", outputs: [ { - internalType: 'address[]', - name: '', - type: 'address[]', - }, + internalType: "address[]", + 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: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserBasicReserveData', + name: "getUserBasicReserveData", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserBorrowBalances', + name: "getUserBorrowBalances", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserCurrentBorrowRateMode', + name: "getUserCurrentBorrowRateMode", outputs: [ { - internalType: 'enum CoreLibrary.InterestRateMode', - name: '', - type: 'uint8', - }, + internalType: "enum CoreLibrary.InterestRateMode", + name: "", + type: "uint8" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserCurrentStableBorrowRate', + name: "getUserCurrentStableBorrowRate", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserLastUpdate', + name: "getUserLastUpdate", outputs: [ { - internalType: 'uint256', - name: 'timestamp', - type: 'uint256', - }, + internalType: "uint256", + name: "timestamp", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserOriginationFee', + name: "getUserOriginationFee", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserUnderlyingAssetBalance', + name: "getUserUnderlyingAssetBalance", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'getUserVariableBorrowCumulativeIndex', + name: "getUserVariableBorrowCumulativeIndex", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_aTokenAddress', - type: 'address', + internalType: "address", + name: "_aTokenAddress", + type: "address" }, { - internalType: 'uint256', - name: '_decimals', - type: 'uint256', + internalType: "uint256", + name: "_decimals", + type: "uint256" }, { - internalType: 'address', - name: '_interestRateStrategyAddress', - type: 'address', - }, + internalType: "address", + name: "_interestRateStrategyAddress", + type: "address" + } ], - name: 'initReserve', + name: "initReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '_addressesProvider', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + name: "_addressesProvider", + type: "address" + } ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'isReserveBorrowingEnabled', + name: "isReserveBorrowingEnabled", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'isReserveUsageAsCollateralEnabled', + name: "isReserveUsageAsCollateralEnabled", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - 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: 'isUserAllowedToBorrowAtStable', + name: "isUserAllowedToBorrowAtStable", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', - }, + internalType: "address", + name: "_user", + type: "address" + } ], - name: 'isUserUseReserveAsCollateralEnabled', + name: "isUserUseReserveAsCollateralEnabled", outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - }, + internalType: "bool", + name: "", + type: "bool" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'lendingPoolAddress', + name: "lendingPoolAddress", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_token', - type: 'address', + internalType: "address", + name: "_token", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { - internalType: 'address', - name: '_destination', - type: 'address', - }, + internalType: "address", + name: "_destination", + type: "address" + } ], - name: 'liquidateFee', + name: "liquidateFee", outputs: [], - stateMutability: 'payable', - type: 'function', + stateMutability: "payable", + type: "function" }, { inputs: [], - name: 'refreshConfiguration', + name: "refreshConfiguration", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserveToRemove', - type: 'address', - }, + internalType: "address", + name: "_reserveToRemove", + type: "address" + } ], - name: 'removeLastAddedReserve', + name: "removeLastAddedReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - name: 'reservesList', + name: "reservesList", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + 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: 'uint256', - name: '_ltv', - type: 'uint256', - }, + internalType: "uint256", + name: "_ltv", + type: "uint256" + } ], - name: 'setReserveBaseLTVasCollateral', + name: "setReserveBaseLTVasCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_decimals', - type: 'uint256', - }, + internalType: "uint256", + name: "_decimals", + type: "uint256" + } ], - name: 'setReserveDecimals', + name: "setReserveDecimals", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_rateStrategyAddress', - type: 'address', - }, + internalType: "address", + name: "_rateStrategyAddress", + type: "address" + } ], - name: 'setReserveInterestRateStrategyAddress', + name: "setReserveInterestRateStrategyAddress", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_bonus', - type: 'uint256', - }, + internalType: "uint256", + name: "_bonus", + type: "uint256" + } ], - name: 'setReserveLiquidationBonus', + name: "setReserveLiquidationBonus", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, + internalType: "uint256", + name: "_threshold", + type: "uint256" + } ], - name: 'setReserveLiquidationThreshold', + name: "setReserveLiquidationThreshold", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'bool', - name: '_useAsCollateral', - type: 'bool', - }, + internalType: "bool", + name: "_useAsCollateral", + type: "bool" + } ], - name: 'setUserUseReserveAsCollateral', + name: "setUserUseReserveAsCollateral", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_token', - type: 'address', + internalType: "address", + name: "_token", + type: "address" }, { - 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: 'address', - name: '_destination', - type: 'address', - }, + internalType: "address", + name: "_destination", + type: "address" + } ], - name: 'transferToFeeCollectionAddress', + name: "transferToFeeCollectionAddress", outputs: [], - stateMutability: 'payable', - type: 'function', + stateMutability: "payable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address payable', - name: '_user', - type: 'address', + internalType: "address payable", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + internalType: "uint256", + name: "_amount", + type: "uint256" + } ], - name: 'transferToReserve', + name: "transferToReserve", outputs: [], - stateMutability: 'payable', - type: 'function', + stateMutability: "payable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address payable', - name: '_user', - type: 'address', + internalType: "address payable", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + internalType: "uint256", + name: "_amount", + type: "uint256" + } ], - name: 'transferToUser', + name: "transferToUser", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', - }, + internalType: "address", + name: "_reserve", + type: "address" + } ], - name: 'unfreezeReserve', + name: "unfreezeReserve", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amountBorrowed', - type: 'uint256', + internalType: "uint256", + name: "_amountBorrowed", + type: "uint256" }, { - internalType: 'uint256', - name: '_borrowFee', - type: 'uint256', + internalType: "uint256", + name: "_borrowFee", + type: "uint256" }, { - internalType: 'enum CoreLibrary.InterestRateMode', - name: '_rateMode', - type: 'uint8', - }, + internalType: "enum CoreLibrary.InterestRateMode", + name: "_rateMode", + type: "uint8" + } ], - name: 'updateStateOnBorrow', + name: "updateStateOnBorrow", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', + internalType: "uint256", + name: "", + type: "uint256" }, { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - 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: 'bool', - name: '_isFirstDeposit', - type: 'bool', - }, + internalType: "bool", + name: "_isFirstDeposit", + type: "bool" + } ], - name: 'updateStateOnDeposit', + name: "updateStateOnDeposit", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'uint256', - name: '_availableLiquidityBefore', - type: 'uint256', + internalType: "uint256", + name: "_availableLiquidityBefore", + type: "uint256" }, { - internalType: 'uint256', - name: '_income', - type: 'uint256', + internalType: "uint256", + name: "_income", + type: "uint256" }, { - internalType: 'uint256', - name: '_protocolFee', - type: 'uint256', - }, + internalType: "uint256", + name: "_protocolFee", + type: "uint256" + } ], - name: 'updateStateOnFlashLoan', + name: "updateStateOnFlashLoan", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_principalReserve', - type: 'address', + internalType: "address", + name: "_principalReserve", + type: "address" }, { - internalType: 'address', - name: '_collateralReserve', - type: 'address', + internalType: "address", + name: "_collateralReserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amountToLiquidate', - type: 'uint256', + internalType: "uint256", + name: "_amountToLiquidate", + type: "uint256" }, { - internalType: 'uint256', - name: '_collateralToLiquidate', - type: 'uint256', + internalType: "uint256", + name: "_collateralToLiquidate", + type: "uint256" }, { - internalType: 'uint256', - name: '_feeLiquidated', - type: 'uint256', + internalType: "uint256", + name: "_feeLiquidated", + type: "uint256" }, { - internalType: 'uint256', - name: '_liquidatedCollateralForFee', - type: 'uint256', + internalType: "uint256", + name: "_liquidatedCollateralForFee", + type: "uint256" }, { - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" }, { - internalType: 'bool', - name: '_liquidatorReceivesAToken', - type: 'bool', - }, + internalType: "bool", + name: "_liquidatorReceivesAToken", + type: "bool" + } ], - name: 'updateStateOnLiquidation', + name: "updateStateOnLiquidation", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', - }, + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" + } ], - name: 'updateStateOnRebalance', + name: "updateStateOnRebalance", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_amountRedeemed', - type: 'uint256', + internalType: "uint256", + name: "_amountRedeemed", + type: "uint256" }, { - internalType: 'bool', - name: '_userRedeemedEverything', - type: 'bool', - }, + internalType: "bool", + name: "_userRedeemedEverything", + type: "bool" + } ], - name: 'updateStateOnRedeem', + name: "updateStateOnRedeem", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_paybackAmountMinusFees', - type: 'uint256', + internalType: "uint256", + name: "_paybackAmountMinusFees", + type: "uint256" }, { - internalType: 'uint256', - name: '_originationFeeRepaid', - type: 'uint256', + internalType: "uint256", + name: "_originationFeeRepaid", + type: "uint256" }, { - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" }, { - internalType: 'bool', - name: '_repaidWholeLoan', - type: 'bool', - }, + internalType: "bool", + name: "_repaidWholeLoan", + type: "bool" + } ], - name: 'updateStateOnRepay', + name: "updateStateOnRepay", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_reserve', - type: 'address', + internalType: "address", + name: "_reserve", + type: "address" }, { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'uint256', - name: '_principalBorrowBalance', - type: 'uint256', + internalType: "uint256", + name: "_principalBorrowBalance", + type: "uint256" }, { - internalType: 'uint256', - name: '_compoundedBorrowBalance', - type: 'uint256', + internalType: "uint256", + name: "_compoundedBorrowBalance", + type: "uint256" }, { - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" }, { - internalType: 'enum CoreLibrary.InterestRateMode', - name: '_currentRateMode', - type: 'uint8', - }, + internalType: "enum CoreLibrary.InterestRateMode", + name: "_currentRateMode", + type: "uint8" + } ], - name: 'updateStateOnSwapRate', + name: "updateStateOnSwapRate", outputs: [ { - internalType: 'enum CoreLibrary.InterestRateMode', - name: '', - type: 'uint8', + internalType: "enum CoreLibrary.InterestRateMode", + name: "", + type: "uint8" }, { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { - stateMutability: 'payable', - type: 'receive', - }, + stateMutability: "payable", + type: "receive" + } ]; const _bytecode = - '0x60806040526000805534801561001457600080fd5b5061590280620000256000396000f3fe6080604052600436106104145760003560e01c8063a2353fdc1161021e578063d15e005311610123578063e8ae2f5b116100ab578063f61483111161007a578063f6148311146113ad578063f6ea8d7614611431578063fa51854c1461146c578063fa93b2a5146114b1578063feab31ac146114f45761045f565b8063e8ae2f5b146112d9578063eede87c11461130c578063ef1f937314611347578063f054ab461461137a5761045f565b8063dae4c4e7116100f2578063dae4c4e7146111c2578063e10076ad146111f5578063e2174d8614611230578063e240301914611273578063e6d18190146112a65761045f565b8063d15e0053146110ea578063d3ae26b31461111d578063d466016f14611132578063da12d96f1461116b5761045f565b8063bd7fd79a116101a6578063c540148e11610175578063c540148e14611000578063c72c4d1014611033578063c76a6c9c14611048578063c7d142371461107b578063d06e2ec1146110b75761045f565b8063bd7fd79a14610f34578063bfacad8414610f67578063c33cfd9014610f9a578063c4d66de814610fcd5761045f565b8063afcdbea3116101ed578063afcdbea314610e05578063b701d09314610e50578063b75d6f3414610e83578063b8c0f74514610eb6578063bcd6ffa414610ee95761045f565b8063a2353fdc14610d17578063a5bc826c14610d4a578063a8dc0f4514610d8f578063af825b0714610dc25761045f565b80635cf2e656116103245780637aca76eb116102ac578063906c0a411161027b578063906c0a4114610bea57806398bd473714610c1d5780639e3c4f3b14610c505780639e67484814610c8b5780639fb8afcd14610cbe5761045f565b80637aca76eb14610b1b5780637f90fec514610b4e57806388079d8814610b815780638f385c2214610bb45761045f565b806366d103f3116102f357806366d103f3146109ce57806368beb4d614610a095780636ae1441614610a745780636fffab0c14610aa757806370fb84f414610ae25761045f565b80635cf2e656146108f25780635fc526ff14610925578063646810831461098057806366bbd928146109955761045f565b80633443a14b116103a757806345330a401161037657806345330a40146107cc57806346bc0f28146108155780634a08accb146108485780634f1446091461087b5780634fe7a6e5146108c85761045f565b80633443a14b146106a557806334b3beee146106de57806337ac6fe41461072d5780633e72a454146107995761045f565b806318f9bbae116103e357806318f9bbae146105a25780631ca19f19146105d55780631d2118f91461063457806328fcf4d31461066f5761045f565b806305075d6e146104645780630902f1ac146104ab57806309ac29531461051057806318a4dbca146105555761045f565b3661045f576104223361152f565b61045d5760405162461bcd60e51b81526004018080602001828103825260368152602001806156316036913960400191505060405180910390fd5b005b600080fd5b34801561047057600080fd5b506104976004803603602081101561048757600080fd5b50356001600160a01b031661156d565b604080519115158252519081900360200190f35b3480156104b757600080fd5b506104c0611595565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104fc5781810151838201526020016104e4565b505050509050019250505060405180910390f35b34801561051c57600080fd5b5061045d6004803603608081101561053357600080fd5b506001600160a01b0381351690602081013590604081013590606001356115f7565b34801561056157600080fd5b506105906004803603604081101561057857600080fd5b506001600160a01b03813581169160200135166116c5565b60408051918252519081900360200190f35b3480156105ae57600080fd5b50610497600480360360208110156105c557600080fd5b50356001600160a01b0316611758565b3480156105e157600080fd5b50610610600480360360408110156105f857600080fd5b506001600160a01b0381358116916020013516611780565b6040518082600281111561062057fe5b60ff16815260200191505060405180910390f35b34801561064057600080fd5b5061045d6004803603604081101561065757600080fd5b506001600160a01b03813581169160200135166117d5565b61045d6004803603606081101561068557600080fd5b506001600160a01b038135811691602081013590911690604001356118bb565b3480156106b157600080fd5b5061045d600480360360408110156106c857600080fd5b506001600160a01b038135169060200135611a86565b3480156106ea57600080fd5b506107116004803603602081101561070157600080fd5b50356001600160a01b0316611b5a565b604080516001600160a01b039092168252519081900360200190f35b34801561073957600080fd5b50610780600480360360a081101561075057600080fd5b5080356001600160a01b03908116916020810135909116906040810135906060810135906080013560ff16611b7b565b6040805192835260208301919091528051918290030190f35b3480156107a557600080fd5b5061045d600480360360208110156107bc57600080fd5b50356001600160a01b0316611c1b565b3480156107d857600080fd5b5061045d600480360360808110156107ef57600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516611cf7565b34801561082157600080fd5b506105906004803603602081101561083857600080fd5b50356001600160a01b0316611e51565b34801561085457600080fd5b506104976004803603602081101561086b57600080fd5b50356001600160a01b0316611e6f565b34801561088757600080fd5b506108ae6004803603602081101561089e57600080fd5b50356001600160a01b0316611e97565b6040805164ffffffffff9092168252519081900360200190f35b3480156108d457600080fd5b50610711600480360360208110156108eb57600080fd5b5035611ec3565b3480156108fe57600080fd5b506104976004803603602081101561091557600080fd5b50356001600160a01b0316611eea565b34801561093157600080fd5b506109586004803603602081101561094857600080fd5b50356001600160a01b0316611f12565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b34801561098c57600080fd5b5061045d611f50565b3480156109a157600080fd5b5061045d600480360360408110156109b857600080fd5b506001600160a01b03813516906020013561200f565b3480156109da57600080fd5b50610590600480360360408110156109f157600080fd5b506001600160a01b03813581169160200135166120e3565b348015610a1557600080fd5b5061045d6004803603610120811015610a2d57600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a08101359060c08101359060e08101359061010001351515612119565b348015610a8057600080fd5b5061071160048036036020811015610a9757600080fd5b50356001600160a01b03166121bb565b348015610ab357600080fd5b5061059060048036036040811015610aca57600080fd5b506001600160a01b03813581169160200135166121dc565b348015610aee57600080fd5b5061045d60048036036040811015610b0557600080fd5b506001600160a01b03813516906020013561220b565b348015610b2757600080fd5b5061045d60048036036020811015610b3e57600080fd5b50356001600160a01b03166122df565b348015610b5a57600080fd5b5061059060048036036020811015610b7157600080fd5b50356001600160a01b03166123c1565b348015610b8d57600080fd5b5061059060048036036020811015610ba457600080fd5b50356001600160a01b03166123df565b61045d60048036036060811015610bca57600080fd5b506001600160a01b03813581169160208101359160409091013516612507565b348015610bf657600080fd5b5061059060048036036020811015610c0d57600080fd5b50356001600160a01b031661261d565b348015610c2957600080fd5b5061059060048036036020811015610c4057600080fd5b50356001600160a01b03166126cd565b348015610c5c57600080fd5b5061049760048036036040811015610c7357600080fd5b506001600160a01b03813581169160200135166126eb565b348015610c9757600080fd5b5061049760048036036020811015610cae57600080fd5b50356001600160a01b0316612724565b348015610cca57600080fd5b50610cf960048036036040811015610ce157600080fd5b506001600160a01b038135811691602001351661274c565b60408051938452602084019290925282820152519081900360600190f35b348015610d2357600080fd5b5061059060048036036020811015610d3a57600080fd5b50356001600160a01b03166127d7565b348015610d5657600080fd5b5061045d60048036036080811015610d6d57600080fd5b506001600160a01b0381351690602081013590604081013590606001356127f5565b348015610d9b57600080fd5b5061045d60048036036020811015610db257600080fd5b50356001600160a01b0316612943565b348015610dce57600080fd5b5061059060048036036060811015610de557600080fd5b506001600160a01b03813581169160208101359091169060400135612a72565b348015610e1157600080fd5b5061045d60048036036080811015610e2857600080fd5b506001600160a01b038135811691602081013590911690604081013590606001351515612b12565b348015610e5c57600080fd5b5061059060048036036020811015610e7357600080fd5b50356001600160a01b0316612b9a565b348015610e8f57600080fd5b5061045d60048036036020811015610ea657600080fd5b50356001600160a01b0316612bb8565b348015610ec257600080fd5b5061045d60048036036020811015610ed957600080fd5b50356001600160a01b0316612ceb565b348015610ef557600080fd5b5061045d60048036036080811015610f0c57600080fd5b506001600160a01b038135811691602081013590911690604081013590606001351515612dc7565b348015610f4057600080fd5b5061059060048036036020811015610f5757600080fd5b50356001600160a01b0316612e4f565b348015610f7357600080fd5b5061059060048036036020811015610f8a57600080fd5b50356001600160a01b0316612e6a565b348015610fa657600080fd5b5061059060048036036020811015610fbd57600080fd5b50356001600160a01b0316612ed4565b348015610fd957600080fd5b5061045d60048036036020811015610ff057600080fd5b50356001600160a01b0316612f0d565b34801561100c57600080fd5b506105906004803603602081101561102357600080fd5b50356001600160a01b0316612fcc565b34801561103f57600080fd5b50610711612fea565b34801561105457600080fd5b506105906004803603602081101561106b57600080fd5b50356001600160a01b0316612ff9565b61045d6004803603608081101561109157600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516613017565b3480156110c357600080fd5b5061045d600480360360208110156110da57600080fd5b50356001600160a01b03166131c9565b3480156110f657600080fd5b506105906004803603602081101561110d57600080fd5b50356001600160a01b03166133ce565b34801561112957600080fd5b506107116133ef565b34801561113e57600080fd5b5061045d6004803603604081101561115557600080fd5b506001600160a01b0381351690602001356133fe565b34801561117757600080fd5b5061045d600480360360c081101561118e57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a0013515156134d2565b3480156111ce57600080fd5b5061045d600480360360208110156111e557600080fd5b50356001600160a01b0316613541565b34801561120157600080fd5b506109586004803603604081101561121857600080fd5b506001600160a01b0381358116916020013516613623565b34801561123c57600080fd5b506104976004803603606081101561125357600080fd5b506001600160a01b038135811691602081013590911690604001356136d0565b34801561127f57600080fd5b506105906004803603602081101561129657600080fd5b50356001600160a01b0316613766565b3480156112b257600080fd5b50610590600480360360208110156112c957600080fd5b50356001600160a01b031661380a565b3480156112e557600080fd5b5061045d600480360360208110156112fc57600080fd5b50356001600160a01b031661382b565b34801561131857600080fd5b5061045d6004803603604081101561132f57600080fd5b506001600160a01b0381351690602001351515613946565b34801561135357600080fd5b5061045d6004803603602081101561136a57600080fd5b50356001600160a01b0316613a7d565b34801561138657600080fd5b506105906004803603602081101561139d57600080fd5b50356001600160a01b0316613b59565b3480156113b957600080fd5b50611406600480360360c08110156113d057600080fd5b5080356001600160a01b039081169160208101359091169060408101359060608101359060808101359060a0013560ff16613b77565b6040518083600281111561141657fe5b60ff1681526020018281526020019250505060405180910390f35b34801561143d57600080fd5b506105906004803603604081101561145457600080fd5b506001600160a01b0381358116916020013516613c09565b34801561147857600080fd5b5061045d6004803603606081101561148f57600080fd5b506001600160a01b038135811691602081013590911690604001351515613c38565b3480156114bd57600080fd5b5061045d600480360360608110156114d457600080fd5b506001600160a01b03813581169160208101359091169060400135613cca565b34801561150057600080fd5b506105906004803603604081101561151757600080fd5b506001600160a01b0381358116916020013516613df1565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061156357508115155b925050505b919050565b6001600160a01b03166000908152603660205260409020600d0154600160e01b900460ff1690565b606060388054806020026020016040519081016040528092919081815260200182805480156115ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116115cf575b5050505050905090565b6034546001600160a01b031633146116405760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b61164a8482613e20565b6001600160a01b038416600090815260366020526040902061166b90613f5d565b60006116866116798661380a565b859063ffffffff613ff516565b6001600160a01b03861660009081526036602052604090209091506116b290828563ffffffff61404f16565b6116be858460006140ad565b5050505050565b6001600160a01b038083166000908152603660209081526040808320600c015481516370a0823160e01b8152868616600482015291519394169283926370a082319260248082019391829003018186803b15801561172257600080fd5b505afa158015611736573d6000803e3d6000fd5b505050506040513d602081101561174c57600080fd5b50519150505b92915050565b6001600160a01b03166000908152603660205260409020600d0154600160d01b900460ff1690565b6001600160a01b038082166000908152603760209081526040808320938616835292905290812080546117b7576000915050611752565b60008160030154116117ca5760026117cd565b60015b949350505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561181957600080fd5b505afa15801561182d573d6000803e3d6000fd5b505050506040513d602081101561184357600080fd5b50516001600160a01b03161461188a5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b039182166000908152603660205260409020600d0180546001600160a01b03191691909216179055565b6034546001600160a01b031633146119045760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b61190c6140ee565b6001600160a01b0316836001600160a01b0316146119815734156119615760405162461bcd60e51b81526004018080602001828103825260328152602001806156c76032913960400191505060405180910390fd5b61197c6001600160a01b03841683308463ffffffff61410616565b611a81565b803410156119c05760405162461bcd60e51b81526004018080602001828103825260358152602001806155fc6035913960400191505060405180910390fd5b80341115611a815760006119da348363ffffffff61416016565b6040519091506000906001600160a01b0385169061c35090859084818181858888f193505050503d8060008114611a2d576040519150601f19603f3d011682016040523d82523d6000602084013e611a32565b606091505b50509050806116be576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611aca57600080fd5b505afa158015611ade573d6000803e3d6000fd5b505050506040513d6020811015611af457600080fd5b50516001600160a01b031614611b3b5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03909116600090815260366020526040902060090155565b6001600160a01b039081166000908152603660205260409020600c01541690565b60345460009081906001600160a01b03163314611bc95760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b600080611bd6898961274c565b9250509150611be9898984848b8a6141a2565b611bf7898989848a8a6141d1565b611c03896000896140ad565b611c0d89896142f6565b999098509650505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611c5f57600080fd5b505afa158015611c73573d6000803e3d6000fd5b505050506040513d6020811015611c8957600080fd5b50516001600160a01b031614611cd05760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e01b19169055565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611d3b57600080fd5b505afa158015611d4f573d6000803e3d6000fd5b505050506040513d6020811015611d6557600080fd5b50516001600160a01b031614611dac5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b0380851660009081526036602052604080822081516304dda73560e21b8152600481019190915286841660248201526044810186905292841660648401525173__$2ec35834968386f54fa313129cf94664e4$__926313769cd4926084808301939192829003018186803b158015611e2a57600080fd5b505af4158015611e3e573d6000803e3d6000fd5b50505050611e4b84614388565b50505050565b6001600160a01b031660009081526036602052604090206006015490565b6001600160a01b03166000908152603660205260409020600d0154600160e81b900460ff1690565b6001600160a01b03166000908152603660205260409020600d0154600160a01b900464ffffffffff1690565b60388181548110611ed057fe5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03166000908152603660205260409020600d0154600160c81b900460ff1690565b6001600160a01b03166000908152603660205260409020600b81015460088201546009830154600d909301549193909291600160d01b900460ff1690565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611f9457600080fd5b505afa158015611fa8573d6000803e3d6000fd5b505050506040513d6020811015611fbe57600080fd5b50516001600160a01b0316146120055760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b61200d61442c565b565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561205357600080fd5b505afa158015612067573d6000803e3d6000fd5b505050506040513d602081101561207d57600080fd5b50516001600160a01b0316146120c45760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b039091166000908152603660205260409020600b0155565b6001600160a01b0390811660009081526037602090815260408083209490931682529290925290206004015464ffffffffff1690565b6034546001600160a01b031633146121625760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b61216e898888856144c7565b61217788614580565b61218489888887866145a4565b612190898760006140ad565b806121b0576121b08860006121ab888763ffffffff613ff516565b6140ad565b505050505050505050565b6001600160a01b039081166000908152603660205260409020600d01541690565b6001600160a01b0380821660009081526037602090815260408083209386168352929052206003015492915050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561224f57600080fd5b505afa158015612263573d6000803e3d6000fd5b505050506040513d602081101561227957600080fd5b50516001600160a01b0316146122c05760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b039091166000908152603660205260409020600a0155565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561232357600080fd5b505afa158015612337573d6000803e3d6000fd5b505050506040513d602081101561234d57600080fd5b50516001600160a01b0316146123945760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e81b1916600160e81b179055565b6001600160a01b031660009081526036602052604090206002015490565b6001600160a01b0380821660009081526036602090815260408083206035548251631b0c55dd60e11b815292519495919486949190921692633618abba9260048083019392829003018186803b15801561243857600080fd5b505afa15801561244c573d6000803e3d6000fd5b505050506040513d602081101561246257600080fd5b505160058301549091506124fc57806001600160a01b031663bb85c0bb856040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156124c657600080fd5b505afa1580156124da573d6000803e3d6000fd5b505050506040513d60208110156124f057600080fd5b50519250611568915050565b506005015492915050565b6034546001600160a01b031633146125505760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b80341561258e5760405162461bcd60e51b81526004018080602001828103825260368152602001806155766036913960400191505060405180910390fd5b6125966140ee565b6001600160a01b0316846001600160a01b0316146125cd576125c86001600160a01b038516828563ffffffff61466216565b611e4b565b6040516000906001600160a01b0383169061c35090869084818181858888f193505050503d8060008114611a2d576040519150601f19603f3d011682016040523d82523d6000602084013e611a32565b6001600160a01b038116600090815260366020526040812060048101546126c35780600d0160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b15801561268e57600080fd5b505afa1580156126a2573d6000803e3d6000fd5b505050506040513d60208110156126b857600080fd5b505191506115689050565b6004015492915050565b6001600160a01b031660009081526036602052604090206003015490565b6001600160a01b03908116600090815260376020908152604080832094909316825292909252902060040154600160281b900460ff1690565b6001600160a01b03166000908152603660205260409020600d0154600160d81b900460ff1690565b6001600160a01b038082166000908152603760209081526040808320938616835292905290812080548291829161278d5750600092508291508190506127d0565b80546001600160a01b03871660009081526036602052604081206127b29084906146b4565b905081816127c6818363ffffffff61416016565b9550955095505050505b9250925092565b6001600160a01b03166000908152603660205260409020600b015490565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561283957600080fd5b505afa15801561284d573d6000803e3d6000fd5b505050506040513d602081101561286357600080fd5b50516001600160a01b0316146128aa5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b038416600090815260366020526040808220815163126ee27360e11b81526004810191909152602481018690526044810185905260648101849052905173__$2ec35834968386f54fa313129cf94664e4$__926324ddc4e69260848082019391829003018186803b15801561292557600080fd5b505af4158015612939573d6000803e3d6000fd5b5050505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561298757600080fd5b505afa15801561299b573d6000803e3d6000fd5b505050506040513d60208110156129b157600080fd5b50516001600160a01b0316146129f85760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03811660009081526036602052604080822081516372efab5360e11b81526004810191909152905173__$2ec35834968386f54fa313129cf94664e4$__9263e5df56a69260248082019391829003018186803b158015612a5e57600080fd5b505af41580156116be573d6000803e3d6000fd5b6034546000906001600160a01b03163314612abe5760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b612ac98484846147a6565b612ad48484846147f6565b612ae0846000806140ad565b506001600160a01b038083166000908152603760209081526040808320938716835292905220600301545b9392505050565b6034546001600160a01b03163314612b5b5760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b6001600160a01b0384166000908152603660205260409020612b7c90613f5d565b612b88846000846140ad565b8015611e4b57611e4b84846000613c38565b6001600160a01b031660009081526036602052604090206007015490565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015612bfc57600080fd5b505afa158015612c10573d6000803e3d6000fd5b505050506040513d6020811015612c2657600080fd5b50516001600160a01b031614612c6d5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b0381166000908152603660205260409020805415801590612c99575060008160070154115b612cd45760405162461bcd60e51b81526004018080602001828103825260248152602001806157bf6024913960400191505060405180910390fd5b600d01805460ff60e01b1916600160e01b17905550565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015612d2f57600080fd5b505afa158015612d43573d6000803e3d6000fd5b505050506040513d6020811015612d5957600080fd5b50516001600160a01b031614612da05760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60d81b19169055565b6034546001600160a01b03163314612e105760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b6001600160a01b0384166000908152603660205260409020612e3190613f5d565b612e3d848360006140ad565b8015611e4b57611e4b84846001613c38565b6001600160a01b031660009081526036602052604090205490565b6001600160a01b038116600090815260366020526040812081612e8c8261485f565b905080612e9e57600092505050611568565b6000612ea985613766565b9050612ecb612ebe828463ffffffff613ff516565b839063ffffffff61487c16565b95945050505050565b6001600160a01b0381166000908152603660205260408120612b0b612ef88261485f565b612f0185613766565b9063ffffffff613ff516565b6000612f176148b8565b60015490915060ff1680612f2e5750612f2e6148bd565b80612f3a575060005481115b612f755760405162461bcd60e51b815260040180806020018281038252602e815260200180615828602e913960400191505060405180910390fd5b60015460ff16158015612f94576001805460ff19168117905560008290555b603580546001600160a01b0319166001600160a01b038516179055612fb761442c565b8015611a81576001805460ff19169055505050565b6001600160a01b031660009081526036602052604090206001015490565b6035546001600160a01b031681565b6001600160a01b03166000908152603660205260409020600a015490565b6034546001600160a01b031633146130605760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b806130696140ee565b6001600160a01b0316856001600160a01b0316146130de5734156130be5760405162461bcd60e51b815260040180806020018281038252605f8152602001806156f9605f913960600191505060405180910390fd5b6130d96001600160a01b03861685838663ffffffff61410616565b6116be565b8234101561311d5760405162461bcd60e51b81526004018080602001828103825260358152602001806155fc6035913960400191505060405180910390fd5b6040516000906001600160a01b0383169061c35090869084818181858888f193505050503d806000811461316d576040519150601f19603f3d011682016040523d82523d6000602084013e613172565b606091505b50509050806131c1576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561320d57600080fd5b505afa158015613221573d6000803e3d6000fd5b505050506040513d602081101561323757600080fd5b50516001600160a01b03161461327e5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6038805460009190600019810190811061329457fe5b6000918252602090912001546001600160a01b039081169150821681146132ec5760405162461bcd60e51b815260040180806020018281038252603d81526020018061568a603d913960400191505060405180910390fd5b6132f58161380a565b156133315760405162461bcd60e51b81526004018080602001828103825260308152602001806157586030913960400191505060405180910390fd5b6001600160a01b0381166000908152603660205260408120600d81018054600c830180546001600160a01b0319169055600b8301849055838355600783018490556008830184905560098301849055600a90920192909255600168ff00ffff000000000160a01b031916905560388054806133a857fe5b600082815260209020810160001990810180546001600160a01b03191690550190555050565b6001600160a01b0381166000908152603660205260408120612b0b816148c3565b6034546001600160a01b031681565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561344257600080fd5b505afa158015613456573d6000803e3d6000fd5b505050506040513d602081101561346c57600080fd5b50516001600160a01b0316146134b35760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03909116600090815260366020526040902060080155565b6034546001600160a01b0316331461351b5760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b613527868686856148f1565b613535868686868686614958565b6131c1868560006140ad565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561358557600080fd5b505afa158015613599573d6000803e3d6000fd5b505050506040513d60208110156135af57600080fd5b50516001600160a01b0316146135f65760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60d81b1916600160d81b179055565b6001600160a01b03808316600081815260366020908152604080832094861683526037825280832093835292905290812090918291829182918261366789896116c5565b8254909150613694576004909101549095506000945084935060ff600160281b9091041691506136c79050565b806136a5838563ffffffff6146b416565b6002840154600490940154919850965091945050600160281b900460ff169150505b92959194509250565b6001600160a01b038381166000818152603660209081526040808320948716835260378252808320938352929052908120600d830154919291600160d81b900460ff1661372257600092505050612b0b565b6004810154600160281b900460ff1615806137495750600d820154600160d01b900460ff16155b8061375c575061375986866116c5565b84115b9695505050505050565b6000806137716140ee565b6001600160a01b0316836001600160a01b03161415613791575047611752565b604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156137d757600080fd5b505afa1580156137eb573d6000803e3d6000fd5b505050506040513d602081101561380157600080fd5b50519392505050565b6001600160a01b03811660009081526036602052604081206117529061485f565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561386f57600080fd5b505afa158015613883573d6000803e3d6000fd5b505050506040513d602081101561389957600080fd5b50516001600160a01b0316146138e05760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b038116600090815260366020526040808220815163041e0b2d60e51b81526004810191909152905173__$2ec35834968386f54fa313129cf94664e4$__926383c165a09260248082019391829003018186803b158015612a5e57600080fd5b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561398a57600080fd5b505afa15801561399e573d6000803e3d6000fd5b505050506040513d60208110156139b457600080fd5b50516001600160a01b0316146139fb5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b0382166000908152603660205260408082208151637b1dd5df60e11b815260048101919091528315156024820152905173__$2ec35834968386f54fa313129cf94664e4$__9263f63babbe9260448082019391829003018186803b158015613a6957600080fd5b505af41580156131c1573d6000803e3d6000fd5b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015613ac157600080fd5b505afa158015613ad5573d6000803e3d6000fd5b505050506040513d6020811015613aeb57600080fd5b50516001600160a01b031614613b325760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e81b19169055565b6001600160a01b031660009081526036602052604090206009015490565b60345460009081906001600160a01b03163314613bc55760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b613bd288888888876149d5565b6000613be089898787614ad4565b9050613bee896000806140ad565b80613bf98a8a6142f6565b9250925050965096945050505050565b6001600160a01b0380821660009081526037602090815260408083209386168352929052206001015492915050565b6034546001600160a01b03163314613c815760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b6001600160a01b0391821660009081526037602090815260408083209590941682529390935291206004018054911515600160281b0265ff000000000019909216919091179055565b6034546001600160a01b03163314613d135760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b613d1b6140ee565b6001600160a01b0316836001600160a01b031614613d4d5761197c6001600160a01b038416838363ffffffff61466216565b6040516000906001600160a01b0384169061c35090849084818181858888f193505050503d8060008114613d9d576040519150601f19603f3d011682016040523d82523d6000602084013e613da2565b606091505b5050905080611e4b576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b6001600160a01b0380821660009081526037602090815260408083209386168352929052206002015492915050565b60355460408051637744894b60e11b815290516000926001600160a01b03169163ee891296916004808301926020929190829003018186803b158015613e6557600080fd5b505afa158015613e79573d6000803e3d6000fd5b505050506040513d6020811015613e8f57600080fd5b50519050613e9b6140ee565b6001600160a01b0316836001600160a01b031614613ecd5761197c6001600160a01b038416828463ffffffff61466216565b6040516000906001600160a01b0383169084908381818185875af1925050503d8060008114613f18576040519150601f19603f3d011682016040523d82523d6000602084013e613f1d565b606091505b5050905080611e4b5760405162461bcd60e51b81526004018080602001828103825260248152602001806158046024913960400191505060405180910390fd5b6000613f688261485f565b90508015613ff1576001820154600d830154600091613f9491600160a01b900464ffffffffff16614bd2565b8354909150613faa90829063ffffffff614c1d16565b83556004830154600d840154600091613fd091600160a01b900464ffffffffff16614c55565b9050613fe9846007015482614c1d90919063ffffffff16565b600785015550505b5050565b600082820183811015612b0b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061407261405d84614ca4565b61406684614ca4565b9063ffffffff61487c16565b9050600061408e614081614cba565b839063ffffffff613ff516565b85549091506140a490829063ffffffff614c1d16565b90945550505050565b6140b8838383614cca565b6140c06148b8565b6040517fb362f715591e6551ba78917a287fa286eed1ded21d619b267911b67f595af1c990600090a2505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611e4b908590614e63565b6000612b0b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061501b565b6001600160a01b03861660009081526036602052604090206141c390613f5d565b6131c18686868686866150b2565b6001600160a01b038087166000818152603660209081526040808320948a1683526037825280832093835292905220600183600281111561420e57fe5b141561422a5760058201546003820155600060018201556142a1565b600283600281111561423857fe5b14156142545760006003820155600782015460018201556142a1565b6040805162461bcd60e51b815260206004820152601860248201527f496e76616c696420626f72726f772072617465206d6f64650000000000000000604482015290519081900360640190fd5b80546142b9908690612f01908963ffffffff613ff516565b815560028101546142d0908563ffffffff613ff516565b6002820155600401805464ffffffffff19164264ffffffffff1617905550505050505050565b6000806143038484611780565b9050600081600281111561431357fe5b1415614323576000915050611752565b600181600281111561433157fe5b14614357576001600160a01b0384166000908152603660205260409020600401546117cd565b50506001600160a01b0390811660009081526037602090815260408083209490931682529290925290206003015490565b6000805b6038548110156143d557826001600160a01b0316603882815481106143ad57fe5b6000918252602090912001546001600160a01b031614156143cd57600191505b60010161438c565b5080613ff157603880546001810182556000919091527f38395c5dceade9603479b177b68959049485df8aa97b39f3533039af5f4561990180546001600160a01b0384166001600160a01b03199091161790555050565b603560009054906101000a90046001600160a01b03166001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561447a57600080fd5b505afa15801561448e573d6000803e3d6000fd5b505050506040513d60208110156144a457600080fd5b5051603480546001600160a01b0319166001600160a01b03909216919091179055565b6001600160a01b038085166000818152603660209081526040808320948816835260378252808320938352929052206144ff82613f5d565b600061450b8787611780565b905060015b81600281111561451c57fe5b141561455757600382015461453a908490869063ffffffff61520e16565b6003820154614552908490879063ffffffff61527e16565b614577565b614567838563ffffffff61538916565b614577838663ffffffff6153aa16565b50505050505050565b6001600160a01b03811660009081526036602052604090206145a190613f5d565b50565b6001600160a01b0380851660009081526037602090815260408083209389168352928152828220603690915291902081546145f79086906145eb908663ffffffff613ff516565b9063ffffffff61416016565b825560026146058888611780565b600281111561461057fe5b141561462157600781015460018301555b831561464257600282015461463c908563ffffffff61416016565b60028301555b50600401805464ffffffffff19164264ffffffffff161790555050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a81908490614e63565b81546000906146c557506000611752565b60006146d48460000154614ca4565b60038501549091506000908190156147085760038601546004870154614701919064ffffffffff16614c55565b905061474a565b6147478660010154614066876007015461473b89600401548a600d0160149054906101000a900464ffffffffff16614c55565b9063ffffffff614c1d16565b90505b61476261475d848363ffffffff614c1d16565b615402565b865490925082141561479d57600486015464ffffffffff16421461479d57855461479390600163ffffffff613ff516565b9350505050611752565b50949350505050565b6001600160a01b038084166000818152603660209081526040808320948716835260378252808320938352929052206147de82613f5d565b60038101546116be908390859063ffffffff61520e16565b6001600160a01b038083166000908152603760209081526040808320938716835292815282822060369091529190208154614837908463ffffffff613ff516565b8255600501546003820155600401805464ffffffffff19164264ffffffffff16179055505050565b600061175282600301548360020154613ff590919063ffffffff16565b6000600282046117cd836148ac61489f876b033b2e3c9fd0803ce800000061541b565b849063ffffffff613ff516565b9063ffffffff61547416565b600890565b303b1590565b600080612b0b836000015461473b856001015486600d0160149054906101000a900464ffffffffff16614bd2565b6001600160a01b0380851660008181526036602090815260408083209488168352603782528083209383529290529081209061492d8787611780565b6001600160a01b038816600090815260366020526040902090915061495190613f5d565b6001614510565b6001600160a01b038087166000818152603660209081526040808320948a1683526037825280832093835292905220805461499f9087906145eb908763ffffffff613ff516565b81556007820154600182015582156149c05760006003820181905560018201555b60028101546142d0908663ffffffff61416016565b6001600160a01b03808616600081815260366020908152604080832094891683526037825280832093835292905220614a0d82613f5d565b6001836002811115614a1b57fe5b1415614a4d576003810154614a3783878363ffffffff61527e16565b614a47838663ffffffff61538916565b50614577565b6002836002811115614a5b57fe5b1415614a87576005820154614a76838763ffffffff6153aa16565b614a4783868363ffffffff61520e16565b6040805162461bcd60e51b815260206004820152601a60248201527f496e76616c69642072617465206d6f6465207265636569766564000000000000604482015290519081900360640190fd5b6001600160a01b03808416600090815260376020908152604080832093881683529281528282206036909152918120909190826002856002811115614b1557fe5b1415614b365750600581015460038301556000600183810191909155614b9a565b6001856002811115614b4457fe5b1415614b63575060006003830155600781015460018301556002614b9a565b60405162461bcd60e51b81526004018080602001828103825260238152602001806158806023913960400191505060405180910390fd5b8254614bac908763ffffffff613ff516565b83556004909201805464ffffffffff19164264ffffffffff161790555095945050505050565b600080614bec4264ffffffffff851663ffffffff61416016565b90506000614c0061405d6301e13380614ca4565b9050612ecb614c0d614cba565b612f01878463ffffffff614c1d16565b6000612b0b6b033b2e3c9fd0803ce80000006148ac614c42868663ffffffff61541b16565b6b019d971e4fe8401e7400000090613ff5565b600080614c6f4264ffffffffff851663ffffffff61416016565b90506000614c87856301e1338063ffffffff61547416565b9050612ecb82614c9861489f614cba565b9063ffffffff6154b616565b600061175282633b9aca0063ffffffff61541b16565b6b033b2e3c9fd0803ce800000090565b6001600160a01b0380841660009081526036602052604081206006810154600d820154919390929182918291166357e37af089614d0e896145eb8c612f0185613766565b88600201548960030154896040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b031681526020018581526020018481526020018381526020018281526020019550505050505060606040518083038186803b158015614d7b57600080fd5b505afa158015614d8f573d6000803e3d6000fd5b505050506040513d6060811015614da557600080fd5b50805160208083015160409384015160018a0184905560058a0182905560048a01819055600d8a01805464ffffffffff4216600160a01b0264ffffffffff60a01b19909116179055895460078b015486518681529485018490528487018b905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a25050505050505050565b614e75826001600160a01b031661152f565b614ec6576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310614f045780518252601f199092019160209182019101614ee5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614f66576040519150601f19603f3d011682016040523d82523d6000602084013e614f6b565b606091505b509150915081614fc2576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611e4b57808060200190516020811015614fde57600080fd5b5051611e4b5760405162461bcd60e51b815260040180806020018281038252602a8152602001806158a3602a913960400191505060405180910390fd5b600081848411156150aa5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561506f578181015183820152602001615057565b50505050905090810190601f16801561509c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60006150be8787611780565b6001600160a01b038816600090815260366020526040902090915060018260028111156150e757fe5b1415615130576001600160a01b038088166000908152603760209081526040808320938c16835292905220600381015461512a908390899063ffffffff61527e16565b50615154565b600282600281111561513e57fe5b141561515457615154818763ffffffff6153aa16565b600061516a85612f01898963ffffffff613ff516565b9050600184600281111561517a57fe5b141561519d576005820154615198908390839063ffffffff61520e16565b6121b0565b60028460028111156151ab57fe5b14156151c157615198828263ffffffff61538916565b6040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206e657720626f72726f772072617465206d6f646500000000604482015290519081900360640190fd5b6002830154615223818463ffffffff613ff516565b600285015560006152378361473b86614ca4565b9050600061524c866006015461473b85614ca4565b905061526e61525e8760020154614ca4565b614066848463ffffffff613ff516565b8660060181905550505050505050565b81836002015410156152d7576040805162461bcd60e51b815260206004820152601a60248201527f496e76616c696420616d6f756e7420746f206465637265617365000000000000604482015290519081900360640190fd5b60028301546152ec818463ffffffff61416016565b60028501819055615304575060006006840155611a81565b60006153138361473b86614ca4565b90506000615328866006015461473b85614ca4565b9050818110156153695760405162461bcd60e51b81526004018080602001828103825260238152602001806156676023913960400191505060405180910390fd5b61526e6153798760020154614ca4565b614066838563ffffffff61416016565b600382015461539e908263ffffffff613ff516565b82600301819055505050565b80826003015410156153ed5760405162461bcd60e51b81526004018080602001828103825260508152602001806155ac6050913960600191505060405180910390fd5b600382015461539e908263ffffffff61416016565b6000631dcd6500612b0b633b9aca006148ac8386613ff5565b60008261542a57506000611752565b8282028284828161543757fe5b0414612b0b5760405162461bcd60e51b81526004018080602001828103825260218152602001806157e36021913960400191505060405180910390fd5b6000612b0b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250615510565b6000600282066154d2576b033b2e3c9fd0803ce80000006154d4565b825b90506002820491505b8115611752576154ed8384614c1d565b92506002820615615505576155028184614c1d565b90505b6002820491506154dd565b6000818361555f5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561506f578181015183820152602001615057565b50600083858161556b57fe5b049594505050505056fe466565206c69717569646174696f6e20646f6573206e6f74207265717569726520616e79207472616e73666572206f662076616c756554686520616d6f756e742074686174206973206265696e6720737562747261637465642066726f6d20746865207661726961626c6520746f74616c20626f72726f777320697320696e636f727265637454686520616d6f756e7420616e64207468652076616c75652073656e7420746f206465706f73697420646f206e6f74206d617463684f6e6c7920636f6e7472616374732063616e2073656e6420657468657220746f20746865204c656e64696e6720706f6f6c20636f726554686520616d6f756e747320746f20737562747261637420646f6e2774206d6174636852657365727665206265696e672072656d6f76656420697320646966666572656e74207468616e20746865207265736572766520726571756573746564557365722069732073656e64696e672045544820616c6f6e67207769746820746865204552433230207472616e736665722e557365722069732073656e64696e672045544820616c6f6e67207769746820746865204552433230207472616e736665722e20436865636b207468652076616c756520617474726962757465206f6620746865207472616e73616374696f6e43616e6e6f742072656d6f7665206120726573657276652077697468206c6971756964697479206465706f73697465645468652063616c6c6572206d7573742062652061206c656e64696e6720706f6f6c20636f6e666967757261746f7220636f6e74726163745265736572766520686173206e6f74206265656e20696e697469616c697a656420796574536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775472616e7366657220746f20746f6b656e206469737472696275746f72206661696c6564436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65645468652063616c6c6572206d7573742062652061206c656e64696e6720706f6f6c20636f6e7472616374496e76616c696420696e7465726573742072617465206d6f64652072656365697665645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122061087e8417c9de55b31ff397b5e6c643ead8ef7d55813c166da8501d4f1d57b464736f6c63430006080033'; + "0x60806040526000805534801561001457600080fd5b5061590280620000256000396000f3fe6080604052600436106104145760003560e01c8063a2353fdc1161021e578063d15e005311610123578063e8ae2f5b116100ab578063f61483111161007a578063f6148311146113ad578063f6ea8d7614611431578063fa51854c1461146c578063fa93b2a5146114b1578063feab31ac146114f45761045f565b8063e8ae2f5b146112d9578063eede87c11461130c578063ef1f937314611347578063f054ab461461137a5761045f565b8063dae4c4e7116100f2578063dae4c4e7146111c2578063e10076ad146111f5578063e2174d8614611230578063e240301914611273578063e6d18190146112a65761045f565b8063d15e0053146110ea578063d3ae26b31461111d578063d466016f14611132578063da12d96f1461116b5761045f565b8063bd7fd79a116101a6578063c540148e11610175578063c540148e14611000578063c72c4d1014611033578063c76a6c9c14611048578063c7d142371461107b578063d06e2ec1146110b75761045f565b8063bd7fd79a14610f34578063bfacad8414610f67578063c33cfd9014610f9a578063c4d66de814610fcd5761045f565b8063afcdbea3116101ed578063afcdbea314610e05578063b701d09314610e50578063b75d6f3414610e83578063b8c0f74514610eb6578063bcd6ffa414610ee95761045f565b8063a2353fdc14610d17578063a5bc826c14610d4a578063a8dc0f4514610d8f578063af825b0714610dc25761045f565b80635cf2e656116103245780637aca76eb116102ac578063906c0a411161027b578063906c0a4114610bea57806398bd473714610c1d5780639e3c4f3b14610c505780639e67484814610c8b5780639fb8afcd14610cbe5761045f565b80637aca76eb14610b1b5780637f90fec514610b4e57806388079d8814610b815780638f385c2214610bb45761045f565b806366d103f3116102f357806366d103f3146109ce57806368beb4d614610a095780636ae1441614610a745780636fffab0c14610aa757806370fb84f414610ae25761045f565b80635cf2e656146108f25780635fc526ff14610925578063646810831461098057806366bbd928146109955761045f565b80633443a14b116103a757806345330a401161037657806345330a40146107cc57806346bc0f28146108155780634a08accb146108485780634f1446091461087b5780634fe7a6e5146108c85761045f565b80633443a14b146106a557806334b3beee146106de57806337ac6fe41461072d5780633e72a454146107995761045f565b806318f9bbae116103e357806318f9bbae146105a25780631ca19f19146105d55780631d2118f91461063457806328fcf4d31461066f5761045f565b806305075d6e146104645780630902f1ac146104ab57806309ac29531461051057806318a4dbca146105555761045f565b3661045f576104223361152f565b61045d5760405162461bcd60e51b81526004018080602001828103825260368152602001806156316036913960400191505060405180910390fd5b005b600080fd5b34801561047057600080fd5b506104976004803603602081101561048757600080fd5b50356001600160a01b031661156d565b604080519115158252519081900360200190f35b3480156104b757600080fd5b506104c0611595565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104fc5781810151838201526020016104e4565b505050509050019250505060405180910390f35b34801561051c57600080fd5b5061045d6004803603608081101561053357600080fd5b506001600160a01b0381351690602081013590604081013590606001356115f7565b34801561056157600080fd5b506105906004803603604081101561057857600080fd5b506001600160a01b03813581169160200135166116c5565b60408051918252519081900360200190f35b3480156105ae57600080fd5b50610497600480360360208110156105c557600080fd5b50356001600160a01b0316611758565b3480156105e157600080fd5b50610610600480360360408110156105f857600080fd5b506001600160a01b0381358116916020013516611780565b6040518082600281111561062057fe5b60ff16815260200191505060405180910390f35b34801561064057600080fd5b5061045d6004803603604081101561065757600080fd5b506001600160a01b03813581169160200135166117d5565b61045d6004803603606081101561068557600080fd5b506001600160a01b038135811691602081013590911690604001356118bb565b3480156106b157600080fd5b5061045d600480360360408110156106c857600080fd5b506001600160a01b038135169060200135611a86565b3480156106ea57600080fd5b506107116004803603602081101561070157600080fd5b50356001600160a01b0316611b5a565b604080516001600160a01b039092168252519081900360200190f35b34801561073957600080fd5b50610780600480360360a081101561075057600080fd5b5080356001600160a01b03908116916020810135909116906040810135906060810135906080013560ff16611b7b565b6040805192835260208301919091528051918290030190f35b3480156107a557600080fd5b5061045d600480360360208110156107bc57600080fd5b50356001600160a01b0316611c1b565b3480156107d857600080fd5b5061045d600480360360808110156107ef57600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516611cf7565b34801561082157600080fd5b506105906004803603602081101561083857600080fd5b50356001600160a01b0316611e51565b34801561085457600080fd5b506104976004803603602081101561086b57600080fd5b50356001600160a01b0316611e6f565b34801561088757600080fd5b506108ae6004803603602081101561089e57600080fd5b50356001600160a01b0316611e97565b6040805164ffffffffff9092168252519081900360200190f35b3480156108d457600080fd5b50610711600480360360208110156108eb57600080fd5b5035611ec3565b3480156108fe57600080fd5b506104976004803603602081101561091557600080fd5b50356001600160a01b0316611eea565b34801561093157600080fd5b506109586004803603602081101561094857600080fd5b50356001600160a01b0316611f12565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b34801561098c57600080fd5b5061045d611f50565b3480156109a157600080fd5b5061045d600480360360408110156109b857600080fd5b506001600160a01b03813516906020013561200f565b3480156109da57600080fd5b50610590600480360360408110156109f157600080fd5b506001600160a01b03813581169160200135166120e3565b348015610a1557600080fd5b5061045d6004803603610120811015610a2d57600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a08101359060c08101359060e08101359061010001351515612119565b348015610a8057600080fd5b5061071160048036036020811015610a9757600080fd5b50356001600160a01b03166121bb565b348015610ab357600080fd5b5061059060048036036040811015610aca57600080fd5b506001600160a01b03813581169160200135166121dc565b348015610aee57600080fd5b5061045d60048036036040811015610b0557600080fd5b506001600160a01b03813516906020013561220b565b348015610b2757600080fd5b5061045d60048036036020811015610b3e57600080fd5b50356001600160a01b03166122df565b348015610b5a57600080fd5b5061059060048036036020811015610b7157600080fd5b50356001600160a01b03166123c1565b348015610b8d57600080fd5b5061059060048036036020811015610ba457600080fd5b50356001600160a01b03166123df565b61045d60048036036060811015610bca57600080fd5b506001600160a01b03813581169160208101359160409091013516612507565b348015610bf657600080fd5b5061059060048036036020811015610c0d57600080fd5b50356001600160a01b031661261d565b348015610c2957600080fd5b5061059060048036036020811015610c4057600080fd5b50356001600160a01b03166126cd565b348015610c5c57600080fd5b5061049760048036036040811015610c7357600080fd5b506001600160a01b03813581169160200135166126eb565b348015610c9757600080fd5b5061049760048036036020811015610cae57600080fd5b50356001600160a01b0316612724565b348015610cca57600080fd5b50610cf960048036036040811015610ce157600080fd5b506001600160a01b038135811691602001351661274c565b60408051938452602084019290925282820152519081900360600190f35b348015610d2357600080fd5b5061059060048036036020811015610d3a57600080fd5b50356001600160a01b03166127d7565b348015610d5657600080fd5b5061045d60048036036080811015610d6d57600080fd5b506001600160a01b0381351690602081013590604081013590606001356127f5565b348015610d9b57600080fd5b5061045d60048036036020811015610db257600080fd5b50356001600160a01b0316612943565b348015610dce57600080fd5b5061059060048036036060811015610de557600080fd5b506001600160a01b03813581169160208101359091169060400135612a72565b348015610e1157600080fd5b5061045d60048036036080811015610e2857600080fd5b506001600160a01b038135811691602081013590911690604081013590606001351515612b12565b348015610e5c57600080fd5b5061059060048036036020811015610e7357600080fd5b50356001600160a01b0316612b9a565b348015610e8f57600080fd5b5061045d60048036036020811015610ea657600080fd5b50356001600160a01b0316612bb8565b348015610ec257600080fd5b5061045d60048036036020811015610ed957600080fd5b50356001600160a01b0316612ceb565b348015610ef557600080fd5b5061045d60048036036080811015610f0c57600080fd5b506001600160a01b038135811691602081013590911690604081013590606001351515612dc7565b348015610f4057600080fd5b5061059060048036036020811015610f5757600080fd5b50356001600160a01b0316612e4f565b348015610f7357600080fd5b5061059060048036036020811015610f8a57600080fd5b50356001600160a01b0316612e6a565b348015610fa657600080fd5b5061059060048036036020811015610fbd57600080fd5b50356001600160a01b0316612ed4565b348015610fd957600080fd5b5061045d60048036036020811015610ff057600080fd5b50356001600160a01b0316612f0d565b34801561100c57600080fd5b506105906004803603602081101561102357600080fd5b50356001600160a01b0316612fcc565b34801561103f57600080fd5b50610711612fea565b34801561105457600080fd5b506105906004803603602081101561106b57600080fd5b50356001600160a01b0316612ff9565b61045d6004803603608081101561109157600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516613017565b3480156110c357600080fd5b5061045d600480360360208110156110da57600080fd5b50356001600160a01b03166131c9565b3480156110f657600080fd5b506105906004803603602081101561110d57600080fd5b50356001600160a01b03166133ce565b34801561112957600080fd5b506107116133ef565b34801561113e57600080fd5b5061045d6004803603604081101561115557600080fd5b506001600160a01b0381351690602001356133fe565b34801561117757600080fd5b5061045d600480360360c081101561118e57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a0013515156134d2565b3480156111ce57600080fd5b5061045d600480360360208110156111e557600080fd5b50356001600160a01b0316613541565b34801561120157600080fd5b506109586004803603604081101561121857600080fd5b506001600160a01b0381358116916020013516613623565b34801561123c57600080fd5b506104976004803603606081101561125357600080fd5b506001600160a01b038135811691602081013590911690604001356136d0565b34801561127f57600080fd5b506105906004803603602081101561129657600080fd5b50356001600160a01b0316613766565b3480156112b257600080fd5b50610590600480360360208110156112c957600080fd5b50356001600160a01b031661380a565b3480156112e557600080fd5b5061045d600480360360208110156112fc57600080fd5b50356001600160a01b031661382b565b34801561131857600080fd5b5061045d6004803603604081101561132f57600080fd5b506001600160a01b0381351690602001351515613946565b34801561135357600080fd5b5061045d6004803603602081101561136a57600080fd5b50356001600160a01b0316613a7d565b34801561138657600080fd5b506105906004803603602081101561139d57600080fd5b50356001600160a01b0316613b59565b3480156113b957600080fd5b50611406600480360360c08110156113d057600080fd5b5080356001600160a01b039081169160208101359091169060408101359060608101359060808101359060a0013560ff16613b77565b6040518083600281111561141657fe5b60ff1681526020018281526020019250505060405180910390f35b34801561143d57600080fd5b506105906004803603604081101561145457600080fd5b506001600160a01b0381358116916020013516613c09565b34801561147857600080fd5b5061045d6004803603606081101561148f57600080fd5b506001600160a01b038135811691602081013590911690604001351515613c38565b3480156114bd57600080fd5b5061045d600480360360608110156114d457600080fd5b506001600160a01b03813581169160208101359091169060400135613cca565b34801561150057600080fd5b506105906004803603604081101561151757600080fd5b506001600160a01b0381358116916020013516613df1565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061156357508115155b925050505b919050565b6001600160a01b03166000908152603660205260409020600d0154600160e01b900460ff1690565b606060388054806020026020016040519081016040528092919081815260200182805480156115ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116115cf575b5050505050905090565b6034546001600160a01b031633146116405760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b61164a8482613e20565b6001600160a01b038416600090815260366020526040902061166b90613f5d565b60006116866116798661380a565b859063ffffffff613ff516565b6001600160a01b03861660009081526036602052604090209091506116b290828563ffffffff61404f16565b6116be858460006140ad565b5050505050565b6001600160a01b038083166000908152603660209081526040808320600c015481516370a0823160e01b8152868616600482015291519394169283926370a082319260248082019391829003018186803b15801561172257600080fd5b505afa158015611736573d6000803e3d6000fd5b505050506040513d602081101561174c57600080fd5b50519150505b92915050565b6001600160a01b03166000908152603660205260409020600d0154600160d01b900460ff1690565b6001600160a01b038082166000908152603760209081526040808320938616835292905290812080546117b7576000915050611752565b60008160030154116117ca5760026117cd565b60015b949350505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561181957600080fd5b505afa15801561182d573d6000803e3d6000fd5b505050506040513d602081101561184357600080fd5b50516001600160a01b03161461188a5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b039182166000908152603660205260409020600d0180546001600160a01b03191691909216179055565b6034546001600160a01b031633146119045760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b61190c6140ee565b6001600160a01b0316836001600160a01b0316146119815734156119615760405162461bcd60e51b81526004018080602001828103825260328152602001806156c76032913960400191505060405180910390fd5b61197c6001600160a01b03841683308463ffffffff61410616565b611a81565b803410156119c05760405162461bcd60e51b81526004018080602001828103825260358152602001806155fc6035913960400191505060405180910390fd5b80341115611a815760006119da348363ffffffff61416016565b6040519091506000906001600160a01b0385169061c35090859084818181858888f193505050503d8060008114611a2d576040519150601f19603f3d011682016040523d82523d6000602084013e611a32565b606091505b50509050806116be576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611aca57600080fd5b505afa158015611ade573d6000803e3d6000fd5b505050506040513d6020811015611af457600080fd5b50516001600160a01b031614611b3b5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03909116600090815260366020526040902060090155565b6001600160a01b039081166000908152603660205260409020600c01541690565b60345460009081906001600160a01b03163314611bc95760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b600080611bd6898961274c565b9250509150611be9898984848b8a6141a2565b611bf7898989848a8a6141d1565b611c03896000896140ad565b611c0d89896142f6565b999098509650505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611c5f57600080fd5b505afa158015611c73573d6000803e3d6000fd5b505050506040513d6020811015611c8957600080fd5b50516001600160a01b031614611cd05760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e01b19169055565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611d3b57600080fd5b505afa158015611d4f573d6000803e3d6000fd5b505050506040513d6020811015611d6557600080fd5b50516001600160a01b031614611dac5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b0380851660009081526036602052604080822081516304dda73560e21b8152600481019190915286841660248201526044810186905292841660648401525173__$2ec35834968386f54fa313129cf94664e4$__926313769cd4926084808301939192829003018186803b158015611e2a57600080fd5b505af4158015611e3e573d6000803e3d6000fd5b50505050611e4b84614388565b50505050565b6001600160a01b031660009081526036602052604090206006015490565b6001600160a01b03166000908152603660205260409020600d0154600160e81b900460ff1690565b6001600160a01b03166000908152603660205260409020600d0154600160a01b900464ffffffffff1690565b60388181548110611ed057fe5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03166000908152603660205260409020600d0154600160c81b900460ff1690565b6001600160a01b03166000908152603660205260409020600b81015460088201546009830154600d909301549193909291600160d01b900460ff1690565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015611f9457600080fd5b505afa158015611fa8573d6000803e3d6000fd5b505050506040513d6020811015611fbe57600080fd5b50516001600160a01b0316146120055760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b61200d61442c565b565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561205357600080fd5b505afa158015612067573d6000803e3d6000fd5b505050506040513d602081101561207d57600080fd5b50516001600160a01b0316146120c45760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b039091166000908152603660205260409020600b0155565b6001600160a01b0390811660009081526037602090815260408083209490931682529290925290206004015464ffffffffff1690565b6034546001600160a01b031633146121625760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b61216e898888856144c7565b61217788614580565b61218489888887866145a4565b612190898760006140ad565b806121b0576121b08860006121ab888763ffffffff613ff516565b6140ad565b505050505050505050565b6001600160a01b039081166000908152603660205260409020600d01541690565b6001600160a01b0380821660009081526037602090815260408083209386168352929052206003015492915050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561224f57600080fd5b505afa158015612263573d6000803e3d6000fd5b505050506040513d602081101561227957600080fd5b50516001600160a01b0316146122c05760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b039091166000908152603660205260409020600a0155565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561232357600080fd5b505afa158015612337573d6000803e3d6000fd5b505050506040513d602081101561234d57600080fd5b50516001600160a01b0316146123945760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e81b1916600160e81b179055565b6001600160a01b031660009081526036602052604090206002015490565b6001600160a01b0380821660009081526036602090815260408083206035548251631b0c55dd60e11b815292519495919486949190921692633618abba9260048083019392829003018186803b15801561243857600080fd5b505afa15801561244c573d6000803e3d6000fd5b505050506040513d602081101561246257600080fd5b505160058301549091506124fc57806001600160a01b031663bb85c0bb856040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156124c657600080fd5b505afa1580156124da573d6000803e3d6000fd5b505050506040513d60208110156124f057600080fd5b50519250611568915050565b506005015492915050565b6034546001600160a01b031633146125505760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b80341561258e5760405162461bcd60e51b81526004018080602001828103825260368152602001806155766036913960400191505060405180910390fd5b6125966140ee565b6001600160a01b0316846001600160a01b0316146125cd576125c86001600160a01b038516828563ffffffff61466216565b611e4b565b6040516000906001600160a01b0383169061c35090869084818181858888f193505050503d8060008114611a2d576040519150601f19603f3d011682016040523d82523d6000602084013e611a32565b6001600160a01b038116600090815260366020526040812060048101546126c35780600d0160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b15801561268e57600080fd5b505afa1580156126a2573d6000803e3d6000fd5b505050506040513d60208110156126b857600080fd5b505191506115689050565b6004015492915050565b6001600160a01b031660009081526036602052604090206003015490565b6001600160a01b03908116600090815260376020908152604080832094909316825292909252902060040154600160281b900460ff1690565b6001600160a01b03166000908152603660205260409020600d0154600160d81b900460ff1690565b6001600160a01b038082166000908152603760209081526040808320938616835292905290812080548291829161278d5750600092508291508190506127d0565b80546001600160a01b03871660009081526036602052604081206127b29084906146b4565b905081816127c6818363ffffffff61416016565b9550955095505050505b9250925092565b6001600160a01b03166000908152603660205260409020600b015490565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561283957600080fd5b505afa15801561284d573d6000803e3d6000fd5b505050506040513d602081101561286357600080fd5b50516001600160a01b0316146128aa5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b038416600090815260366020526040808220815163126ee27360e11b81526004810191909152602481018690526044810185905260648101849052905173__$2ec35834968386f54fa313129cf94664e4$__926324ddc4e69260848082019391829003018186803b15801561292557600080fd5b505af4158015612939573d6000803e3d6000fd5b5050505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561298757600080fd5b505afa15801561299b573d6000803e3d6000fd5b505050506040513d60208110156129b157600080fd5b50516001600160a01b0316146129f85760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03811660009081526036602052604080822081516372efab5360e11b81526004810191909152905173__$2ec35834968386f54fa313129cf94664e4$__9263e5df56a69260248082019391829003018186803b158015612a5e57600080fd5b505af41580156116be573d6000803e3d6000fd5b6034546000906001600160a01b03163314612abe5760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b612ac98484846147a6565b612ad48484846147f6565b612ae0846000806140ad565b506001600160a01b038083166000908152603760209081526040808320938716835292905220600301545b9392505050565b6034546001600160a01b03163314612b5b5760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b6001600160a01b0384166000908152603660205260409020612b7c90613f5d565b612b88846000846140ad565b8015611e4b57611e4b84846000613c38565b6001600160a01b031660009081526036602052604090206007015490565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015612bfc57600080fd5b505afa158015612c10573d6000803e3d6000fd5b505050506040513d6020811015612c2657600080fd5b50516001600160a01b031614612c6d5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b0381166000908152603660205260409020805415801590612c99575060008160070154115b612cd45760405162461bcd60e51b81526004018080602001828103825260248152602001806157bf6024913960400191505060405180910390fd5b600d01805460ff60e01b1916600160e01b17905550565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015612d2f57600080fd5b505afa158015612d43573d6000803e3d6000fd5b505050506040513d6020811015612d5957600080fd5b50516001600160a01b031614612da05760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60d81b19169055565b6034546001600160a01b03163314612e105760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b6001600160a01b0384166000908152603660205260409020612e3190613f5d565b612e3d848360006140ad565b8015611e4b57611e4b84846001613c38565b6001600160a01b031660009081526036602052604090205490565b6001600160a01b038116600090815260366020526040812081612e8c8261485f565b905080612e9e57600092505050611568565b6000612ea985613766565b9050612ecb612ebe828463ffffffff613ff516565b839063ffffffff61487c16565b95945050505050565b6001600160a01b0381166000908152603660205260408120612b0b612ef88261485f565b612f0185613766565b9063ffffffff613ff516565b6000612f176148b8565b60015490915060ff1680612f2e5750612f2e6148bd565b80612f3a575060005481115b612f755760405162461bcd60e51b815260040180806020018281038252602e815260200180615828602e913960400191505060405180910390fd5b60015460ff16158015612f94576001805460ff19168117905560008290555b603580546001600160a01b0319166001600160a01b038516179055612fb761442c565b8015611a81576001805460ff19169055505050565b6001600160a01b031660009081526036602052604090206001015490565b6035546001600160a01b031681565b6001600160a01b03166000908152603660205260409020600a015490565b6034546001600160a01b031633146130605760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b806130696140ee565b6001600160a01b0316856001600160a01b0316146130de5734156130be5760405162461bcd60e51b815260040180806020018281038252605f8152602001806156f9605f913960600191505060405180910390fd5b6130d96001600160a01b03861685838663ffffffff61410616565b6116be565b8234101561311d5760405162461bcd60e51b81526004018080602001828103825260358152602001806155fc6035913960400191505060405180910390fd5b6040516000906001600160a01b0383169061c35090869084818181858888f193505050503d806000811461316d576040519150601f19603f3d011682016040523d82523d6000602084013e613172565b606091505b50509050806131c1576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b505050505050565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561320d57600080fd5b505afa158015613221573d6000803e3d6000fd5b505050506040513d602081101561323757600080fd5b50516001600160a01b03161461327e5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6038805460009190600019810190811061329457fe5b6000918252602090912001546001600160a01b039081169150821681146132ec5760405162461bcd60e51b815260040180806020018281038252603d81526020018061568a603d913960400191505060405180910390fd5b6132f58161380a565b156133315760405162461bcd60e51b81526004018080602001828103825260308152602001806157586030913960400191505060405180910390fd5b6001600160a01b0381166000908152603660205260408120600d81018054600c830180546001600160a01b0319169055600b8301849055838355600783018490556008830184905560098301849055600a90920192909255600168ff00ffff000000000160a01b031916905560388054806133a857fe5b600082815260209020810160001990810180546001600160a01b03191690550190555050565b6001600160a01b0381166000908152603660205260408120612b0b816148c3565b6034546001600160a01b031681565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561344257600080fd5b505afa158015613456573d6000803e3d6000fd5b505050506040513d602081101561346c57600080fd5b50516001600160a01b0316146134b35760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03909116600090815260366020526040902060080155565b6034546001600160a01b0316331461351b5760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b613527868686856148f1565b613535868686868686614958565b6131c1868560006140ad565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561358557600080fd5b505afa158015613599573d6000803e3d6000fd5b505050506040513d60208110156135af57600080fd5b50516001600160a01b0316146135f65760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60d81b1916600160d81b179055565b6001600160a01b03808316600081815260366020908152604080832094861683526037825280832093835292905290812090918291829182918261366789896116c5565b8254909150613694576004909101549095506000945084935060ff600160281b9091041691506136c79050565b806136a5838563ffffffff6146b416565b6002840154600490940154919850965091945050600160281b900460ff169150505b92959194509250565b6001600160a01b038381166000818152603660209081526040808320948716835260378252808320938352929052908120600d830154919291600160d81b900460ff1661372257600092505050612b0b565b6004810154600160281b900460ff1615806137495750600d820154600160d01b900460ff16155b8061375c575061375986866116c5565b84115b9695505050505050565b6000806137716140ee565b6001600160a01b0316836001600160a01b03161415613791575047611752565b604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156137d757600080fd5b505afa1580156137eb573d6000803e3d6000fd5b505050506040513d602081101561380157600080fd5b50519392505050565b6001600160a01b03811660009081526036602052604081206117529061485f565b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561386f57600080fd5b505afa158015613883573d6000803e3d6000fd5b505050506040513d602081101561389957600080fd5b50516001600160a01b0316146138e05760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b038116600090815260366020526040808220815163041e0b2d60e51b81526004810191909152905173__$2ec35834968386f54fa313129cf94664e4$__926383c165a09260248082019391829003018186803b158015612a5e57600080fd5b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b15801561398a57600080fd5b505afa15801561399e573d6000803e3d6000fd5b505050506040513d60208110156139b457600080fd5b50516001600160a01b0316146139fb5760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b0382166000908152603660205260408082208151637b1dd5df60e11b815260048101919091528315156024820152905173__$2ec35834968386f54fa313129cf94664e4$__9263f63babbe9260448082019391829003018186803b158015613a6957600080fd5b505af41580156131c1573d6000803e3d6000fd5b603554604080516385c858b160e01b8152905133926001600160a01b0316916385c858b1916004808301926020929190829003018186803b158015613ac157600080fd5b505afa158015613ad5573d6000803e3d6000fd5b505050506040513d6020811015613aeb57600080fd5b50516001600160a01b031614613b325760405162461bcd60e51b81526004018080602001828103825260378152602001806157886037913960400191505060405180910390fd5b6001600160a01b03166000908152603660205260409020600d01805460ff60e81b19169055565b6001600160a01b031660009081526036602052604090206009015490565b60345460009081906001600160a01b03163314613bc55760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b613bd288888888876149d5565b6000613be089898787614ad4565b9050613bee896000806140ad565b80613bf98a8a6142f6565b9250925050965096945050505050565b6001600160a01b0380821660009081526037602090815260408083209386168352929052206001015492915050565b6034546001600160a01b03163314613c815760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b6001600160a01b0391821660009081526037602090815260408083209590941682529390935291206004018054911515600160281b0265ff000000000019909216919091179055565b6034546001600160a01b03163314613d135760405162461bcd60e51b815260040180806020018281038252602a815260200180615856602a913960400191505060405180910390fd5b613d1b6140ee565b6001600160a01b0316836001600160a01b031614613d4d5761197c6001600160a01b038416838363ffffffff61466216565b6040516000906001600160a01b0384169061c35090849084818181858888f193505050503d8060008114613d9d576040519150601f19603f3d011682016040523d82523d6000602084013e613da2565b606091505b5050905080611e4b576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd9881155120819985a5b195960521b604482015290519081900360640190fd5b6001600160a01b0380821660009081526037602090815260408083209386168352929052206002015492915050565b60355460408051637744894b60e11b815290516000926001600160a01b03169163ee891296916004808301926020929190829003018186803b158015613e6557600080fd5b505afa158015613e79573d6000803e3d6000fd5b505050506040513d6020811015613e8f57600080fd5b50519050613e9b6140ee565b6001600160a01b0316836001600160a01b031614613ecd5761197c6001600160a01b038416828463ffffffff61466216565b6040516000906001600160a01b0383169084908381818185875af1925050503d8060008114613f18576040519150601f19603f3d011682016040523d82523d6000602084013e613f1d565b606091505b5050905080611e4b5760405162461bcd60e51b81526004018080602001828103825260248152602001806158046024913960400191505060405180910390fd5b6000613f688261485f565b90508015613ff1576001820154600d830154600091613f9491600160a01b900464ffffffffff16614bd2565b8354909150613faa90829063ffffffff614c1d16565b83556004830154600d840154600091613fd091600160a01b900464ffffffffff16614c55565b9050613fe9846007015482614c1d90919063ffffffff16565b600785015550505b5050565b600082820183811015612b0b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061407261405d84614ca4565b61406684614ca4565b9063ffffffff61487c16565b9050600061408e614081614cba565b839063ffffffff613ff516565b85549091506140a490829063ffffffff614c1d16565b90945550505050565b6140b8838383614cca565b6140c06148b8565b6040517fb362f715591e6551ba78917a287fa286eed1ded21d619b267911b67f595af1c990600090a2505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611e4b908590614e63565b6000612b0b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061501b565b6001600160a01b03861660009081526036602052604090206141c390613f5d565b6131c18686868686866150b2565b6001600160a01b038087166000818152603660209081526040808320948a1683526037825280832093835292905220600183600281111561420e57fe5b141561422a5760058201546003820155600060018201556142a1565b600283600281111561423857fe5b14156142545760006003820155600782015460018201556142a1565b6040805162461bcd60e51b815260206004820152601860248201527f496e76616c696420626f72726f772072617465206d6f64650000000000000000604482015290519081900360640190fd5b80546142b9908690612f01908963ffffffff613ff516565b815560028101546142d0908563ffffffff613ff516565b6002820155600401805464ffffffffff19164264ffffffffff1617905550505050505050565b6000806143038484611780565b9050600081600281111561431357fe5b1415614323576000915050611752565b600181600281111561433157fe5b14614357576001600160a01b0384166000908152603660205260409020600401546117cd565b50506001600160a01b0390811660009081526037602090815260408083209490931682529290925290206003015490565b6000805b6038548110156143d557826001600160a01b0316603882815481106143ad57fe5b6000918252602090912001546001600160a01b031614156143cd57600191505b60010161438c565b5080613ff157603880546001810182556000919091527f38395c5dceade9603479b177b68959049485df8aa97b39f3533039af5f4561990180546001600160a01b0384166001600160a01b03199091161790555050565b603560009054906101000a90046001600160a01b03166001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561447a57600080fd5b505afa15801561448e573d6000803e3d6000fd5b505050506040513d60208110156144a457600080fd5b5051603480546001600160a01b0319166001600160a01b03909216919091179055565b6001600160a01b038085166000818152603660209081526040808320948816835260378252808320938352929052206144ff82613f5d565b600061450b8787611780565b905060015b81600281111561451c57fe5b141561455757600382015461453a908490869063ffffffff61520e16565b6003820154614552908490879063ffffffff61527e16565b614577565b614567838563ffffffff61538916565b614577838663ffffffff6153aa16565b50505050505050565b6001600160a01b03811660009081526036602052604090206145a190613f5d565b50565b6001600160a01b0380851660009081526037602090815260408083209389168352928152828220603690915291902081546145f79086906145eb908663ffffffff613ff516565b9063ffffffff61416016565b825560026146058888611780565b600281111561461057fe5b141561462157600781015460018301555b831561464257600282015461463c908563ffffffff61416016565b60028301555b50600401805464ffffffffff19164264ffffffffff161790555050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a81908490614e63565b81546000906146c557506000611752565b60006146d48460000154614ca4565b60038501549091506000908190156147085760038601546004870154614701919064ffffffffff16614c55565b905061474a565b6147478660010154614066876007015461473b89600401548a600d0160149054906101000a900464ffffffffff16614c55565b9063ffffffff614c1d16565b90505b61476261475d848363ffffffff614c1d16565b615402565b865490925082141561479d57600486015464ffffffffff16421461479d57855461479390600163ffffffff613ff516565b9350505050611752565b50949350505050565b6001600160a01b038084166000818152603660209081526040808320948716835260378252808320938352929052206147de82613f5d565b60038101546116be908390859063ffffffff61520e16565b6001600160a01b038083166000908152603760209081526040808320938716835292815282822060369091529190208154614837908463ffffffff613ff516565b8255600501546003820155600401805464ffffffffff19164264ffffffffff16179055505050565b600061175282600301548360020154613ff590919063ffffffff16565b6000600282046117cd836148ac61489f876b033b2e3c9fd0803ce800000061541b565b849063ffffffff613ff516565b9063ffffffff61547416565b600890565b303b1590565b600080612b0b836000015461473b856001015486600d0160149054906101000a900464ffffffffff16614bd2565b6001600160a01b0380851660008181526036602090815260408083209488168352603782528083209383529290529081209061492d8787611780565b6001600160a01b038816600090815260366020526040902090915061495190613f5d565b6001614510565b6001600160a01b038087166000818152603660209081526040808320948a1683526037825280832093835292905220805461499f9087906145eb908763ffffffff613ff516565b81556007820154600182015582156149c05760006003820181905560018201555b60028101546142d0908663ffffffff61416016565b6001600160a01b03808616600081815260366020908152604080832094891683526037825280832093835292905220614a0d82613f5d565b6001836002811115614a1b57fe5b1415614a4d576003810154614a3783878363ffffffff61527e16565b614a47838663ffffffff61538916565b50614577565b6002836002811115614a5b57fe5b1415614a87576005820154614a76838763ffffffff6153aa16565b614a4783868363ffffffff61520e16565b6040805162461bcd60e51b815260206004820152601a60248201527f496e76616c69642072617465206d6f6465207265636569766564000000000000604482015290519081900360640190fd5b6001600160a01b03808416600090815260376020908152604080832093881683529281528282206036909152918120909190826002856002811115614b1557fe5b1415614b365750600581015460038301556000600183810191909155614b9a565b6001856002811115614b4457fe5b1415614b63575060006003830155600781015460018301556002614b9a565b60405162461bcd60e51b81526004018080602001828103825260238152602001806158806023913960400191505060405180910390fd5b8254614bac908763ffffffff613ff516565b83556004909201805464ffffffffff19164264ffffffffff161790555095945050505050565b600080614bec4264ffffffffff851663ffffffff61416016565b90506000614c0061405d6301e13380614ca4565b9050612ecb614c0d614cba565b612f01878463ffffffff614c1d16565b6000612b0b6b033b2e3c9fd0803ce80000006148ac614c42868663ffffffff61541b16565b6b019d971e4fe8401e7400000090613ff5565b600080614c6f4264ffffffffff851663ffffffff61416016565b90506000614c87856301e1338063ffffffff61547416565b9050612ecb82614c9861489f614cba565b9063ffffffff6154b616565b600061175282633b9aca0063ffffffff61541b16565b6b033b2e3c9fd0803ce800000090565b6001600160a01b0380841660009081526036602052604081206006810154600d820154919390929182918291166357e37af089614d0e896145eb8c612f0185613766565b88600201548960030154896040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b031681526020018581526020018481526020018381526020018281526020019550505050505060606040518083038186803b158015614d7b57600080fd5b505afa158015614d8f573d6000803e3d6000fd5b505050506040513d6060811015614da557600080fd5b50805160208083015160409384015160018a0184905560058a0182905560048a01819055600d8a01805464ffffffffff4216600160a01b0264ffffffffff60a01b19909116179055895460078b015486518681529485018490528487018b905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a25050505050505050565b614e75826001600160a01b031661152f565b614ec6576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310614f045780518252601f199092019160209182019101614ee5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614f66576040519150601f19603f3d011682016040523d82523d6000602084013e614f6b565b606091505b509150915081614fc2576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611e4b57808060200190516020811015614fde57600080fd5b5051611e4b5760405162461bcd60e51b815260040180806020018281038252602a8152602001806158a3602a913960400191505060405180910390fd5b600081848411156150aa5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561506f578181015183820152602001615057565b50505050905090810190601f16801561509c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60006150be8787611780565b6001600160a01b038816600090815260366020526040902090915060018260028111156150e757fe5b1415615130576001600160a01b038088166000908152603760209081526040808320938c16835292905220600381015461512a908390899063ffffffff61527e16565b50615154565b600282600281111561513e57fe5b141561515457615154818763ffffffff6153aa16565b600061516a85612f01898963ffffffff613ff516565b9050600184600281111561517a57fe5b141561519d576005820154615198908390839063ffffffff61520e16565b6121b0565b60028460028111156151ab57fe5b14156151c157615198828263ffffffff61538916565b6040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206e657720626f72726f772072617465206d6f646500000000604482015290519081900360640190fd5b6002830154615223818463ffffffff613ff516565b600285015560006152378361473b86614ca4565b9050600061524c866006015461473b85614ca4565b905061526e61525e8760020154614ca4565b614066848463ffffffff613ff516565b8660060181905550505050505050565b81836002015410156152d7576040805162461bcd60e51b815260206004820152601a60248201527f496e76616c696420616d6f756e7420746f206465637265617365000000000000604482015290519081900360640190fd5b60028301546152ec818463ffffffff61416016565b60028501819055615304575060006006840155611a81565b60006153138361473b86614ca4565b90506000615328866006015461473b85614ca4565b9050818110156153695760405162461bcd60e51b81526004018080602001828103825260238152602001806156676023913960400191505060405180910390fd5b61526e6153798760020154614ca4565b614066838563ffffffff61416016565b600382015461539e908263ffffffff613ff516565b82600301819055505050565b80826003015410156153ed5760405162461bcd60e51b81526004018080602001828103825260508152602001806155ac6050913960600191505060405180910390fd5b600382015461539e908263ffffffff61416016565b6000631dcd6500612b0b633b9aca006148ac8386613ff5565b60008261542a57506000611752565b8282028284828161543757fe5b0414612b0b5760405162461bcd60e51b81526004018080602001828103825260218152602001806157e36021913960400191505060405180910390fd5b6000612b0b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250615510565b6000600282066154d2576b033b2e3c9fd0803ce80000006154d4565b825b90506002820491505b8115611752576154ed8384614c1d565b92506002820615615505576155028184614c1d565b90505b6002820491506154dd565b6000818361555f5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561506f578181015183820152602001615057565b50600083858161556b57fe5b049594505050505056fe466565206c69717569646174696f6e20646f6573206e6f74207265717569726520616e79207472616e73666572206f662076616c756554686520616d6f756e742074686174206973206265696e6720737562747261637465642066726f6d20746865207661726961626c6520746f74616c20626f72726f777320697320696e636f727265637454686520616d6f756e7420616e64207468652076616c75652073656e7420746f206465706f73697420646f206e6f74206d617463684f6e6c7920636f6e7472616374732063616e2073656e6420657468657220746f20746865204c656e64696e6720706f6f6c20636f726554686520616d6f756e747320746f20737562747261637420646f6e2774206d6174636852657365727665206265696e672072656d6f76656420697320646966666572656e74207468616e20746865207265736572766520726571756573746564557365722069732073656e64696e672045544820616c6f6e67207769746820746865204552433230207472616e736665722e557365722069732073656e64696e672045544820616c6f6e67207769746820746865204552433230207472616e736665722e20436865636b207468652076616c756520617474726962757465206f6620746865207472616e73616374696f6e43616e6e6f742072656d6f7665206120726573657276652077697468206c6971756964697479206465706f73697465645468652063616c6c6572206d7573742062652061206c656e64696e6720706f6f6c20636f6e666967757261746f7220636f6e74726163745265736572766520686173206e6f74206265656e20696e697469616c697a656420796574536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775472616e7366657220746f20746f6b656e206469737472696275746f72206661696c6564436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65645468652063616c6c6572206d7573742062652061206c656e64696e6720706f6f6c20636f6e7472616374496e76616c696420696e7465726573742072617465206d6f64652072656365697665645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122061087e8417c9de55b31ff397b5e6c643ead8ef7d55813c166da8501d4f1d57b464736f6c63430006080033"; export interface MockLendingPoolCoreLibraryAddresses { - ['__$2ec35834968386f54fa313129cf94664e4$__']: string; + ["__$2ec35834968386f54fa313129cf94664e4$__"]: string; } diff --git a/types/MockLink.d.ts b/types/MockLink.d.ts index 94011483..0319fc42 100644 --- a/types/MockLink.d.ts +++ b/types/MockLink.d.ts @@ -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 MockLinkInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockLinkInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockLinkInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockLink extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockLink extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockLink extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockLink extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockLink extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockLinkFactory.ts b/types/MockLinkFactory.ts index 5eed3b39..5713df76 100644 --- a/types/MockLinkFactory.ts +++ b/types/MockLinkFactory.ts @@ -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 {MockLink} from './MockLink'; +import { TransactionOverrides } from "."; +import { MockLink } from "./MockLink"; export class MockLinkFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockLinkFactory extends ContractFactory { connect(signer: Signer): MockLinkFactory { return super.connect(signer) as MockLinkFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockLink { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockLink { return new Contract(address, _abi, signerOrProvider) as MockLink; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051806040016040528060048152602001634c494e4b60e01b81525060405180604001604052806009815260200168436861696e4c696e6b60b81b81525060128282816003908051906020019061006a9291906100be565b50805161007e9060049060208401906100be565b50506005805460ff19166012179055506100a0816001600160e01b036100a816565b505050610159565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100ff57805160ff191683800117855561012c565b8280016001018555821561012c579182015b8281111561012c578251825591602001919060010190610111565b5061013892915061013c565b5090565b61015691905b808211156101385760008155600101610142565b90565b610b48806101686000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206dd7a8b3f09fbae395ba1de91774c69ce83a21bc9865cf5daa39d13e586172ba64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50604051806040016040528060048152602001634c494e4b60e01b81525060405180604001604052806009815260200168436861696e4c696e6b60b81b81525060128282816003908051906020019061006a9291906100be565b50805161007e9060049060208401906100be565b50506005805460ff19166012179055506100a0816001600160e01b036100a816565b505050610159565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100ff57805160ff191683800117855561012c565b8280016001018555821561012c579182015b8281111561012c578251825591602001919060010190610111565b5061013892915061013c565b5090565b61015691905b808211156101385760008155600101610142565b90565b610b48806101686000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122054f023e5196e08b0b46bc2c37f28d1725f407ebe3e5ca8c7444910a15d0dc19164736f6c63430006080033"; diff --git a/types/MockMana.d.ts b/types/MockMana.d.ts index 242462f5..7d35d9fc 100644 --- a/types/MockMana.d.ts +++ b/types/MockMana.d.ts @@ -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 MockManaInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockManaInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockManaInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockMana extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockMana extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockMana extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockMana extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockMana extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockManaFactory.ts b/types/MockManaFactory.ts index b674e3d4..36f30c52 100644 --- a/types/MockManaFactory.ts +++ b/types/MockManaFactory.ts @@ -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 {MockMana} from './MockMana'; +import { TransactionOverrides } from "."; +import { MockMana } from "./MockMana"; export class MockManaFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockManaFactory extends ContractFactory { connect(signer: Signer): MockManaFactory { return super.connect(signer) as MockManaFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockMana { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockMana { return new Contract(address, _abi, signerOrProvider) as MockMana; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051806040016040528060048152602001634d414e4160e01b8152506040518060400160405280600c81526020016b111958d95b9d1c985b185b9960a21b81525060128282816003908051906020019061006d9291906100c1565b5080516100819060049060208401906100c1565b50506005805460ff19166012179055506100a3816001600160e01b036100ab16565b50505061015c565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010257805160ff191683800117855561012f565b8280016001018555821561012f579182015b8281111561012f578251825591602001919060010190610114565b5061013b92915061013f565b5090565b61015991905b8082111561013b5760008155600101610145565b90565b610b488061016b6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220e1bbcc111aa7bc9123721a96c69d245adb1a77fef6de6403a270e48e6bb375ec64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50604051806040016040528060048152602001634d414e4160e01b8152506040518060400160405280600c81526020016b111958d95b9d1c985b185b9960a21b81525060128282816003908051906020019061006d9291906100c1565b5080516100819060049060208401906100c1565b50506005805460ff19166012179055506100a3816001600160e01b036100ab16565b50505061015c565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010257805160ff191683800117855561012f565b8280016001018555821561012f579182015b8281111561012f578251825591602001919060010190610114565b5061013b92915061013f565b5090565b61015991905b8082111561013b5760008155600101610145565b90565b610b488061016b6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122068cfb87aadaa7c5f2c702c6a09288b93ee101ac27a8d8d39d8f24d365b43317464736f6c63430006080033"; diff --git a/types/MockMkr.d.ts b/types/MockMkr.d.ts index f153b0f0..af0af084 100644 --- a/types/MockMkr.d.ts +++ b/types/MockMkr.d.ts @@ -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 MockMkrInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockMkrInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockMkrInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockMkr extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockMkr extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockMkr extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockMkr extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockMkr extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockMkrFactory.ts b/types/MockMkrFactory.ts index e08126fa..5a45ddda 100644 --- a/types/MockMkrFactory.ts +++ b/types/MockMkrFactory.ts @@ -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 {MockMkr} from './MockMkr'; +import { TransactionOverrides } from "."; +import { MockMkr } from "./MockMkr"; export class MockMkrFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockMkrFactory extends ContractFactory { connect(signer: Signer): MockMkrFactory { return super.connect(signer) as MockMkrFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockMkr { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockMkr { return new Contract(address, _abi, signerOrProvider) as MockMkr; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600381526020016226a5a960e91b8152506040518060400160405280600581526020016426b0b5b2b960d91b8152506012828281600390805190602001906100659291906100b9565b5080516100799060049060208401906100b9565b50506005805460ff191660121790555061009b816001600160e01b036100a316565b505050610154565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fa57805160ff1916838001178555610127565b82800160010185558215610127579182015b8281111561012757825182559160200191906001019061010c565b50610133929150610137565b5090565b61015191905b80821115610133576000815560010161013d565b90565b610b48806101636000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220811ddf04b005f383509182446dee15d73ea182bbef7758060fd4f77ae781170764736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600381526020016226a5a960e91b8152506040518060400160405280600581526020016426b0b5b2b960d91b8152506012828281600390805190602001906100659291906100b9565b5080516100799060049060208401906100b9565b50506005805460ff191660121790555061009b816001600160e01b036100a316565b505050610154565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fa57805160ff1916838001178555610127565b82800160010185558215610127579182015b8281111561012757825182559160200191906001019061010c565b50610133929150610137565b5090565b61015191905b80821115610133576000815560010161013d565b90565b610b48806101636000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206c50da5542fe7a9edb4640fb3d372b9ca214d8a734101146ff641a9684ef498464736f6c63430006080033"; diff --git a/types/MockOneSplit.d.ts b/types/MockOneSplit.d.ts index 5b1b423e..bc77a2bd 100644 --- a/types/MockOneSplit.d.ts +++ b/types/MockOneSplit.d.ts @@ -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 MockOneSplitInterface 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 MockOneSplitInterface 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 MockOneSplitInterface extends Interface { }>; swap: TypedFunctionDescription<{ - encode([fromToken, toToken, amount, minReturn, distribution, disableFlags]: [ + encode([ + fromToken, + toToken, + amount, + minReturn, + distribution, + disableFlags + ]: [ string, string, BigNumberish, @@ -76,7 +87,7 @@ interface MockOneSplitInterface extends Interface { ]): string; }>; - tokenToBurn: TypedFunctionDescription<{encode([]: []): string}>; + tokenToBurn: TypedFunctionDescription<{ encode([]: []): string }>; }; events: {}; @@ -89,7 +100,10 @@ export class MockOneSplit extends Contract { on(event: EventFilter | string, listener: Listener): MockOneSplit; once(event: EventFilter | string, listener: Listener): MockOneSplit; - addListener(eventName: EventFilter | string, listener: Listener): MockOneSplit; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockOneSplit; removeAllListeners(eventName: EventFilter | string): MockOneSplit; removeListener(eventName: any, listener: Listener): MockOneSplit; diff --git a/types/MockOneSplitFactory.ts b/types/MockOneSplitFactory.ts index 6536c0f0..b93ace9b 100644 --- a/types/MockOneSplitFactory.ts +++ b/types/MockOneSplitFactory.ts @@ -1,19 +1,22 @@ /* 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 {MockOneSplit} from './MockOneSplit'; +import { TransactionOverrides } from "."; +import { MockOneSplit } from "./MockOneSplit"; export class MockOneSplitFactory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } - deploy(_tokenToBurn: string, overrides?: TransactionOverrides): Promise { + deploy( + _tokenToBurn: string, + overrides?: TransactionOverrides + ): Promise { return super.deploy(_tokenToBurn, overrides) as Promise; } getDeployTransaction( @@ -28,7 +31,10 @@ export class MockOneSplitFactory extends ContractFactory { connect(signer: Signer): MockOneSplitFactory { return super.connect(signer) as MockOneSplitFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockOneSplit { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockOneSplit { return new Contract(address, _abi, signerOrProvider) as MockOneSplit; } } @@ -37,343 +43,343 @@ const _abi = [ { inputs: [ { - internalType: 'contract MintableERC20', - name: '_tokenToBurn', - type: 'address', - }, + internalType: "contract MintableERC20", + name: "_tokenToBurn", + type: "address" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { 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" }, { inputs: [], - name: 'tokenToBurn', + name: "tokenToBurn", outputs: [ { - internalType: 'contract MintableERC20', - name: '', - type: 'address', - }, + internalType: "contract MintableERC20", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051610a5a380380610a5a8339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b03199092169190911790556109f5806100656000396000f3fe6080604052600436106101145760003560e01c806373eb69d4116100a0578063ceb5411511610064578063ceb5411514610337578063df9116631461034c578063e2a7515e14610361578063eb16df2a1461042b578063f64a9a491461044057610114565b806373eb69d4146102ce57806383366577146102e357806383a0118f146102f85780638c6c11f21461030d578063a9d3589f1461032257610114565b80634f1b86eb116100e75780634f1b86eb1461021457806358886253146102455780635cfcee281461025a5780636b9589aa1461026f578063702bf8fa146102b957610114565b8063085e2c5b1461011957806311c0c0f7146101c35780633c1a62dc146101ea5780634c914a4e146101ff575b600080fd5b34801561012557600080fd5b50610168600480360360a081101561013c57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060800135610455565b6040518083815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156101ae578181015183820152602001610196565b50505050905001935050505060405180910390f35b3480156101cf57600080fd5b506101d8610471565b60408051918252519081900360200190f35b3480156101f657600080fd5b506101d8610477565b34801561020b57600080fd5b506101d861047c565b34801561022057600080fd5b50610229610481565b604080516001600160a01b039092168252519081900360200190f35b34801561025157600080fd5b506101d8610490565b34801561026657600080fd5b506101d8610496565b6102b7600480360360c081101561028557600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a0013561049b565b005b3480156102c557600080fd5b506101d86105da565b3480156102da57600080fd5b506101d86105e3565b3480156102ef57600080fd5b506101d86105e9565b34801561030457600080fd5b506101d86105ee565b34801561031957600080fd5b506101d86105f4565b34801561032e57600080fd5b506101d86105f9565b34801561034357600080fd5b506101d8610602565b34801561035857600080fd5b506101d8610607565b6102b7600480360360c081101561037757600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156103b757600080fd5b8201836020820111156103c957600080fd5b803590602001918460208302840111640100000000831117156103eb57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050913592506105d2915050565b34801561043757600080fd5b506101d8610610565b34801561044c57600080fd5b506101d8610615565b5050604080516000808252602082019092529094909350915050565b61010081565b602081565b604081565b6000546001600160a01b031681565b61020081565b601081565b600080546040805163140e25ad60e31b815269021e19e0c9bab2400000600482015290516001600160a01b039092169263a0712d68926024808401936020939083900390910190829087803b1580156104f357600080fd5b505af1158015610507573d6000803e3d6000fd5b505050506040513d602081101561051d57600080fd5b5051610570576040805162461bcd60e51b815260206004820181905260248201527f54524144455f574954485f48494e542e205265766572746564206d696e742829604482015290519081900360640190fd5b61057861061a565b6001600160a01b0316866001600160a01b0316146105ab576105ab6001600160a01b03871633308763ffffffff61063216565b6000546105d2906001600160a01b03163369021e19e0c9bab240000063ffffffff61069216565b505050505050565b64010000000081565b61080081565b608081565b61040081565b600881565b64040000000081565b600281565b64020000000081565b600181565b600481565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261068c9085906106e9565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106e49084906106e9565b505050565b606061073e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661079a9092919063ffffffff16565b8051909150156106e45780806020019051602081101561075d57600080fd5b50516106e45760405162461bcd60e51b815260040180806020018281038252602a815260200180610996602a913960400191505060405180910390fd5b60606107a984846000856107b1565b949350505050565b60606107bc8561095c565b61080d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061084c5780518252601f19909201916020918201910161082d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146108ae576040519150601f19603f3d011682016040523d82523d6000602084013e6108b3565b606091505b509150915081156108c75791506107a99050565b8051156108d75780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610921578181015183820152602001610909565b50505050905090810190601f16801561094e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906107a957505015159291505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122062ea6b3c5f1672aa383ca4ed52aaf9a3f7d0c8b99d1b5928b39bdf248c5474e964736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516109a23803806109a28339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b031990921691909117905561093d806100656000396000f3fe6080604052600436106101145760003560e01c806373eb69d4116100a0578063ceb5411511610064578063ceb5411514610337578063df9116631461034c578063e2a7515e14610361578063eb16df2a1461042b578063f64a9a491461044057610114565b806373eb69d4146102ce57806383366577146102e357806383a0118f146102f85780638c6c11f21461030d578063a9d3589f1461032257610114565b80634f1b86eb116100e75780634f1b86eb1461021457806358886253146102455780635cfcee281461025a5780636b9589aa1461026f578063702bf8fa146102b957610114565b8063085e2c5b1461011957806311c0c0f7146101c35780633c1a62dc146101ea5780634c914a4e146101ff575b600080fd5b34801561012557600080fd5b50610168600480360360a081101561013c57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060800135610455565b6040518083815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156101ae578181015183820152602001610196565b50505050905001935050505060405180910390f35b3480156101cf57600080fd5b506101d8610471565b60408051918252519081900360200190f35b3480156101f657600080fd5b506101d8610477565b34801561020b57600080fd5b506101d861047c565b34801561022057600080fd5b50610229610481565b604080516001600160a01b039092168252519081900360200190f35b34801561025157600080fd5b506101d8610490565b34801561026657600080fd5b506101d8610496565b6102b7600480360360c081101561028557600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a0013561049b565b005b3480156102c557600080fd5b506101d86105da565b3480156102da57600080fd5b506101d86105e3565b3480156102ef57600080fd5b506101d86105e9565b34801561030457600080fd5b506101d86105ee565b34801561031957600080fd5b506101d86105f4565b34801561032e57600080fd5b506101d86105f9565b34801561034357600080fd5b506101d8610602565b34801561035857600080fd5b506101d8610607565b6102b7600480360360c081101561037757600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156103b757600080fd5b8201836020820111156103c957600080fd5b803590602001918460208302840111640100000000831117156103eb57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050913592506105d2915050565b34801561043757600080fd5b506101d8610610565b34801561044c57600080fd5b506101d8610615565b5050604080516000808252602082019092529094909350915050565b61010081565b602081565b604081565b6000546001600160a01b031681565b61020081565b601081565b600080546040805163140e25ad60e31b815269021e19e0c9bab2400000600482015290516001600160a01b039092169263a0712d68926024808401936020939083900390910190829087803b1580156104f357600080fd5b505af1158015610507573d6000803e3d6000fd5b505050506040513d602081101561051d57600080fd5b5051610570576040805162461bcd60e51b815260206004820181905260248201527f54524144455f574954485f48494e542e205265766572746564206d696e742829604482015290519081900360640190fd5b61057861061a565b6001600160a01b0316866001600160a01b0316146105ab576105ab6001600160a01b03871633308763ffffffff61063216565b6000546105d2906001600160a01b03163369021e19e0c9bab240000063ffffffff61069216565b505050505050565b64010000000081565b61080081565b608081565b61040081565b600881565b64040000000081565b600281565b64020000000081565b600181565b600481565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261068c9085906106e9565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106e49084906106e9565b505050565b6106fb826001600160a01b03166108a1565b61074c576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061078a5780518252601f19909201916020918201910161076b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146107ec576040519150601f19603f3d011682016040523d82523d6000602084013e6107f1565b606091505b509150915081610848576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561068c5780806020019051602081101561086457600080fd5b505161068c5760405162461bcd60e51b815260040180806020018281038252602a8152602001806108de602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906108d557508115155b94935050505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212208f6f9be9efe89f081a883d87839c5c72e6e2a24624979cb5bef2737fef3eaf2f64736f6c63430006080033"; diff --git a/types/MockRep.d.ts b/types/MockRep.d.ts index b26d0814..09e5beba 100644 --- a/types/MockRep.d.ts +++ b/types/MockRep.d.ts @@ -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 MockRepInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockRepInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockRepInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockRep extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockRep extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockRep extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockRep extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockRep extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockRepFactory.ts b/types/MockRepFactory.ts index e68eabe6..7e7ce400 100644 --- a/types/MockRepFactory.ts +++ b/types/MockRepFactory.ts @@ -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 {MockRep} from './MockRep'; +import { TransactionOverrides } from "."; +import { MockRep } from "./MockRep"; export class MockRepFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockRepFactory extends ContractFactory { connect(signer: Signer): MockRepFactory { return super.connect(signer) as MockRepFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockRep { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockRep { return new Contract(address, _abi, signerOrProvider) as MockRep; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600381526020016205245560ec1b8152506040518060400160405280600581526020016420bab3bab960d91b8152506012828281600390805190602001906100659291906100b9565b5080516100799060049060208401906100b9565b50506005805460ff191660121790555061009b816001600160e01b036100a316565b505050610154565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fa57805160ff1916838001178555610127565b82800160010185558215610127579182015b8281111561012757825182559160200191906001019061010c565b50610133929150610137565b5090565b61015191905b80821115610133576000815560010161013d565b90565b610b48806101636000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212200afa55a2b247b77ca913048713e6ef107ad13fb45ca5c406442a99ddbf8409fc64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600381526020016205245560ec1b8152506040518060400160405280600581526020016420bab3bab960d91b8152506012828281600390805190602001906100659291906100b9565b5080516100799060049060208401906100b9565b50506005805460ff191660121790555061009b816001600160e01b036100a316565b505050610154565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fa57805160ff1916838001178555610127565b82800160010185558215610127579182015b8281111561012757825182559160200191906001019061010c565b50610133929150610137565b5090565b61015191905b80821115610133576000815560010161013d565b90565b610b48806101636000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201b98b546c0531412dc951bb06befc11767cb2e0664e19e5efa3a9713db5eff8964736f6c63430006080033"; diff --git a/types/MockSnx.d.ts b/types/MockSnx.d.ts index 02fe384c..4aaedacf 100644 --- a/types/MockSnx.d.ts +++ b/types/MockSnx.d.ts @@ -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 MockSnxInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockSnxInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockSnxInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockSnx extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockSnx extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockSnx extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockSnx extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockSnx extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockSnxFactory.ts b/types/MockSnxFactory.ts index 382d3a0c..655eb239 100644 --- a/types/MockSnxFactory.ts +++ b/types/MockSnxFactory.ts @@ -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 {MockSnx} from './MockSnx'; +import { TransactionOverrides } from "."; +import { MockSnx } from "./MockSnx"; export class MockSnxFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockSnxFactory extends ContractFactory { connect(signer: Signer): MockSnxFactory { return super.connect(signer) as MockSnxFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockSnx { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockSnx { return new Contract(address, _abi, signerOrProvider) as MockSnx; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051806040016040528060038152602001620a69cb60eb1b815250604051806040016040528060038152602001620a69cb60eb1b8152506012828281600390805190602001906100639291906100b7565b5080516100779060049060208401906100b7565b50506005805460ff1916601217905550610099816001600160e01b036100a116565b505050610152565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f857805160ff1916838001178555610125565b82800160010185558215610125579182015b8281111561012557825182559160200191906001019061010a565b50610131929150610135565b5090565b61014f91905b80821115610131576000815560010161013b565b90565b610b48806101616000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206b5a772b92d404a5eee02b1a7a5a349368e2286123429493173382009b86ad4964736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50604051806040016040528060038152602001620a69cb60eb1b815250604051806040016040528060038152602001620a69cb60eb1b8152506012828281600390805190602001906100639291906100b7565b5080516100779060049060208401906100b7565b50506005805460ff1916601217905550610099816001600160e01b036100a116565b505050610152565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f857805160ff1916838001178555610125565b82800160010185558215610125579182015b8281111561012557825182559160200191906001019061010a565b50610131929150610135565b5090565b61014f91905b80821115610131576000815560010161013b565b90565b610b48806101616000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206127c58fb3d4a06c59190f01a603eabca174a788fe81363790e190a32f7c8be564736f6c63430006080033"; diff --git a/types/MockSusd.d.ts b/types/MockSusd.d.ts index 8dc974ea..59bcc42e 100644 --- a/types/MockSusd.d.ts +++ b/types/MockSusd.d.ts @@ -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 MockSusdInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockSusdInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockSusdInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockSusd extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockSusd extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockSusd extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockSusd extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockSusd extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockSusdFactory.ts b/types/MockSusdFactory.ts index 383b02d9..5a883c9e 100644 --- a/types/MockSusdFactory.ts +++ b/types/MockSusdFactory.ts @@ -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 {MockSusd} from './MockSusd'; +import { TransactionOverrides } from "."; +import { MockSusd } from "./MockSusd"; export class MockSusdFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockSusdFactory extends ContractFactory { connect(signer: Signer): MockSusdFactory { return super.connect(signer) as MockSusdFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockSusd { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockSusd { return new Contract(address, _abi, signerOrProvider) as MockSusd; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600481526020016314d554d160e21b8152506040518060400160405280600d81526020016c14de5b9d1a195d1a5e081554d1609a1b81525060068282816003908051906020019061006e9291906100c2565b5080516100829060049060208401906100c2565b50506005805460ff19166012179055506100a4816001600160e01b036100ac16565b50505061015d565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010357805160ff1916838001178555610130565b82800160010185558215610130579182015b82811115610130578251825591602001919060010190610115565b5061013c929150610140565b5090565b61015a91905b8082111561013c5760008155600101610146565b90565b610b488061016c6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201294b6b8230849df7afff618470548765ae7c8b27bdc6346099024a643a63ae264736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600481526020016314d554d160e21b8152506040518060400160405280600d81526020016c14de5b9d1a195d1a5e081554d1609a1b81525060068282816003908051906020019061006e9291906100c2565b5080516100829060049060208401906100c2565b50506005805460ff19166012179055506100a4816001600160e01b036100ac16565b50505061015d565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010357805160ff1916838001178555610130565b82800160010185558215610130579182015b82811115610130578251825591602001919060010190610115565b5061013c929150610140565b5090565b61015a91905b8082111561013c5760008155600101610146565b90565b610b488061016c6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122084379334e30a3ae5f6dc317505b184922062e53127ea3f8afd27cc57272d04f564736f6c63430006080033"; diff --git a/types/MockTusd.d.ts b/types/MockTusd.d.ts index 49db8128..1fd3c8ba 100644 --- a/types/MockTusd.d.ts +++ b/types/MockTusd.d.ts @@ -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 MockTusdInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockTusdInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockTusdInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockTusd extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockTusd extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockTusd extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockTusd extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockTusd extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockTusdFactory.ts b/types/MockTusdFactory.ts index d62ed573..4efd27d2 100644 --- a/types/MockTusdFactory.ts +++ b/types/MockTusdFactory.ts @@ -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 {MockTusd} from './MockTusd'; +import { TransactionOverrides } from "."; +import { MockTusd } from "./MockTusd"; export class MockTusdFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockTusdFactory extends ContractFactory { connect(signer: Signer): MockTusdFactory { return super.connect(signer) as MockTusdFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockTusd { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockTusd { return new Contract(address, _abi, signerOrProvider) as MockTusd; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b5060405180604001604052806004815260200163151554d160e21b81525060405180604001604052806007815260200166151c9d595554d160ca1b8152506012828281600390805190602001906100689291906100bc565b50805161007c9060049060208401906100bc565b50506005805460ff191660121790555061009e816001600160e01b036100a616565b505050610157565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fd57805160ff191683800117855561012a565b8280016001018555821561012a579182015b8281111561012a57825182559160200191906001019061010f565b5061013692915061013a565b5090565b61015491905b808211156101365760008155600101610140565b90565b610b48806101666000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122023be4a26ffef0669c2efce89dceacd370989ca1747f1e302aadb7a0607534cc564736f6c63430006080033'; + "0x608060405234801561001057600080fd5b5060405180604001604052806004815260200163151554d160e21b81525060405180604001604052806007815260200166151c9d595554d160ca1b8152506012828281600390805190602001906100689291906100bc565b50805161007c9060049060208401906100bc565b50506005805460ff191660121790555061009e816001600160e01b036100a616565b505050610157565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fd57805160ff191683800117855561012a565b8280016001018555821561012a579182015b8281111561012a57825182559160200191906001019061010f565b5061013692915061013a565b5090565b61015491905b808211156101365760008155600101610140565b90565b610b48806101666000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212208b08f1a8b3adcc87db96604c07ebf2c61b2ab257cfedbb5665ddc6413985639664736f6c63430006080033"; diff --git a/types/MockUniDaiEth.d.ts b/types/MockUniDaiEth.d.ts index a563cec2..3a4afcac 100644 --- a/types/MockUniDaiEth.d.ts +++ b/types/MockUniDaiEth.d.ts @@ -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 MockUniDaiEthInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockUniDaiEthInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockUniDaiEthInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -65,7 +81,10 @@ export class MockUniDaiEth extends Contract { on(event: EventFilter | string, listener: Listener): MockUniDaiEth; once(event: EventFilter | string, listener: Listener): MockUniDaiEth; - addListener(eventName: EventFilter | string, listener: Listener): MockUniDaiEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockUniDaiEth; removeAllListeners(eventName: EventFilter | string): MockUniDaiEth; removeListener(eventName: any, listener: Listener): MockUniDaiEth; @@ -96,7 +115,10 @@ export class MockUniDaiEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +164,10 @@ export class MockUniDaiEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +189,11 @@ export class MockUniDaiEth extends Contract { ): Promise; 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; }; @@ -178,9 +207,15 @@ export class MockUniDaiEth extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +227,10 @@ export class MockUniDaiEth extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockUniDaiEthFactory.ts b/types/MockUniDaiEthFactory.ts index 5171a202..4fc21565 100644 --- a/types/MockUniDaiEthFactory.ts +++ b/types/MockUniDaiEthFactory.ts @@ -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 {MockUniDaiEth} from './MockUniDaiEth'; +import { TransactionOverrides } from "."; +import { MockUniDaiEth } from "./MockUniDaiEth"; export class MockUniDaiEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockUniDaiEthFactory extends ContractFactory { connect(signer: Signer): MockUniDaiEthFactory { return super.connect(signer) as MockUniDaiEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockUniDaiEth { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockUniDaiEth { return new Contract(address, _abi, signerOrProvider) as MockUniDaiEth; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600b81526020016a0aa9c92be888292be8aa8960ab1b8152506040518060400160405280600b81526020016a0aa9c92be888292be8aa8960ab1b8152506012828281600390805190602001906100739291906100c7565b5080516100879060049060208401906100c7565b50506005805460ff19166012179055506100a9816001600160e01b036100b116565b505050610162565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010857805160ff1916838001178555610135565b82800160010185558215610135579182015b8281111561013557825182559160200191906001019061011a565b50610141929150610145565b5090565b61015f91905b80821115610141576000815560010161014b565b90565b610b48806101716000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202143d7a4ad1625fc4e7e31685bc912fd1ddde6d009d79f8b6f3d29e72636ffe564736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600b81526020016a0aa9c92be888292be8aa8960ab1b8152506040518060400160405280600b81526020016a0aa9c92be888292be8aa8960ab1b8152506012828281600390805190602001906100739291906100c7565b5080516100879060049060208401906100c7565b50506005805460ff19166012179055506100a9816001600160e01b036100b116565b505050610162565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010857805160ff1916838001178555610135565b82800160010185558215610135579182015b8281111561013557825182559160200191906001019061011a565b50610141929150610145565b5090565b61015f91905b80821115610141576000815560010161014b565b90565b610b48806101716000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204bb4e7d077a3b06fec4c8c0f0e274e1d917953676750421b3b2af73398706fa564736f6c63430006080033"; diff --git a/types/MockUniLendEth.d.ts b/types/MockUniLendEth.d.ts index 63560368..6a534425 100644 --- a/types/MockUniLendEth.d.ts +++ b/types/MockUniLendEth.d.ts @@ -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 MockUniLendEthInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockUniLendEthInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockUniLendEthInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -65,7 +81,10 @@ export class MockUniLendEth extends Contract { on(event: EventFilter | string, listener: Listener): MockUniLendEth; once(event: EventFilter | string, listener: Listener): MockUniLendEth; - addListener(eventName: EventFilter | string, listener: Listener): MockUniLendEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockUniLendEth; removeAllListeners(eventName: EventFilter | string): MockUniLendEth; removeListener(eventName: any, listener: Listener): MockUniLendEth; @@ -96,7 +115,10 @@ export class MockUniLendEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +164,10 @@ export class MockUniLendEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +189,11 @@ export class MockUniLendEth extends Contract { ): Promise; 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; }; @@ -178,9 +207,15 @@ export class MockUniLendEth extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +227,10 @@ export class MockUniLendEth extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockUniLendEthFactory.ts b/types/MockUniLendEthFactory.ts index ce479a14..1c3aa892 100644 --- a/types/MockUniLendEthFactory.ts +++ b/types/MockUniLendEthFactory.ts @@ -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 {MockUniLendEth} from './MockUniLendEth'; +import { TransactionOverrides } from "."; +import { MockUniLendEth } from "./MockUniLendEth"; export class MockUniLendEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockUniLendEthFactory extends ContractFactory { connect(signer: Signer): MockUniLendEthFactory { return super.connect(signer) as MockUniLendEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockUniLendEth { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockUniLendEth { return new Contract(address, _abi, signerOrProvider) as MockUniLendEth; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600c81526020016b0aa9c92be988a9c88be8aa8960a31b8152506040518060400160405280600c81526020016b0aa9c92be988a9c88be8aa8960a31b8152506012828281600390805190602001906100759291906100c9565b5080516100899060049060208401906100c9565b50506005805460ff19166012179055506100ab816001600160e01b036100b316565b505050610164565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010a57805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013757825182559160200191906001019061011c565b50610143929150610147565b5090565b61016191905b80821115610143576000815560010161014d565b90565b610b48806101736000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204ecc3534f4b4d96c6c5c8d9f174fc8ed1c3ca8640cf1772349665707d06f013464736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600c81526020016b0aa9c92be988a9c88be8aa8960a31b8152506040518060400160405280600c81526020016b0aa9c92be988a9c88be8aa8960a31b8152506012828281600390805190602001906100759291906100c9565b5080516100899060049060208401906100c9565b50506005805460ff19166012179055506100ab816001600160e01b036100b316565b505050610164565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010a57805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013757825182559160200191906001019061011c565b50610143929150610147565b5090565b61016191905b80821115610143576000815560010161014d565b90565b610b48806101736000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207327e48805f462c1dcbe63447203544973f6eb24a0183d4586843d2b12ad91ae64736f6c63430006080033"; diff --git a/types/MockUniLinkEth.d.ts b/types/MockUniLinkEth.d.ts index 6f4d7e28..db40fc24 100644 --- a/types/MockUniLinkEth.d.ts +++ b/types/MockUniLinkEth.d.ts @@ -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 MockUniLinkEthInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockUniLinkEthInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockUniLinkEthInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -65,7 +81,10 @@ export class MockUniLinkEth extends Contract { on(event: EventFilter | string, listener: Listener): MockUniLinkEth; once(event: EventFilter | string, listener: Listener): MockUniLinkEth; - addListener(eventName: EventFilter | string, listener: Listener): MockUniLinkEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockUniLinkEth; removeAllListeners(eventName: EventFilter | string): MockUniLinkEth; removeListener(eventName: any, listener: Listener): MockUniLinkEth; @@ -96,7 +115,10 @@ export class MockUniLinkEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +164,10 @@ export class MockUniLinkEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +189,11 @@ export class MockUniLinkEth extends Contract { ): Promise; 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; }; @@ -178,9 +207,15 @@ export class MockUniLinkEth extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +227,10 @@ export class MockUniLinkEth extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockUniLinkEthFactory.ts b/types/MockUniLinkEthFactory.ts index fc73d9a1..1924d87a 100644 --- a/types/MockUniLinkEthFactory.ts +++ b/types/MockUniLinkEthFactory.ts @@ -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 {MockUniLinkEth} from './MockUniLinkEth'; +import { TransactionOverrides } from "."; +import { MockUniLinkEth } from "./MockUniLinkEth"; export class MockUniLinkEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockUniLinkEthFactory extends ContractFactory { connect(signer: Signer): MockUniLinkEthFactory { return super.connect(signer) as MockUniLinkEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockUniLinkEth { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockUniLinkEth { return new Contract(address, _abi, signerOrProvider) as MockUniLinkEth; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600c81526020016b0aa9c92be98929c96be8aa8960a31b8152506040518060400160405280600c81526020016b0aa9c92be98929c96be8aa8960a31b8152506012828281600390805190602001906100759291906100c9565b5080516100899060049060208401906100c9565b50506005805460ff19166012179055506100ab816001600160e01b036100b316565b505050610164565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010a57805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013757825182559160200191906001019061011c565b50610143929150610147565b5090565b61016191905b80821115610143576000815560010161014d565b90565b610b48806101736000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122076834433044fd4e58c92e6724404c01251bf4aa79725b108619fb98f8ed8273e64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600c81526020016b0aa9c92be98929c96be8aa8960a31b8152506040518060400160405280600c81526020016b0aa9c92be98929c96be8aa8960a31b8152506012828281600390805190602001906100759291906100c9565b5080516100899060049060208401906100c9565b50506005805460ff19166012179055506100ab816001600160e01b036100b316565b505050610164565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010a57805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013757825182559160200191906001019061011c565b50610143929150610147565b5090565b61016191905b80821115610143576000815560010161014d565b90565b610b48806101736000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f2d91d99b1f75bd02dd9b9e486a12005441d44fe801ac8e4090f49c07741987264736f6c63430006080033"; diff --git a/types/MockUniMkrEth.d.ts b/types/MockUniMkrEth.d.ts index 980d2757..e2ed440e 100644 --- a/types/MockUniMkrEth.d.ts +++ b/types/MockUniMkrEth.d.ts @@ -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 MockUniMkrEthInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockUniMkrEthInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockUniMkrEthInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -65,7 +81,10 @@ export class MockUniMkrEth extends Contract { on(event: EventFilter | string, listener: Listener): MockUniMkrEth; once(event: EventFilter | string, listener: Listener): MockUniMkrEth; - addListener(eventName: EventFilter | string, listener: Listener): MockUniMkrEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockUniMkrEth; removeAllListeners(eventName: EventFilter | string): MockUniMkrEth; removeListener(eventName: any, listener: Listener): MockUniMkrEth; @@ -96,7 +115,10 @@ export class MockUniMkrEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +164,10 @@ export class MockUniMkrEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +189,11 @@ export class MockUniMkrEth extends Contract { ): Promise; 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; }; @@ -178,9 +207,15 @@ export class MockUniMkrEth extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +227,10 @@ export class MockUniMkrEth extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockUniMkrEthFactory.ts b/types/MockUniMkrEthFactory.ts index b28ec5fe..1133a8b5 100644 --- a/types/MockUniMkrEthFactory.ts +++ b/types/MockUniMkrEthFactory.ts @@ -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 {MockUniMkrEth} from './MockUniMkrEth'; +import { TransactionOverrides } from "."; +import { MockUniMkrEth } from "./MockUniMkrEth"; export class MockUniMkrEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockUniMkrEthFactory extends ContractFactory { connect(signer: Signer): MockUniMkrEthFactory { return super.connect(signer) as MockUniMkrEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockUniMkrEth { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockUniMkrEth { return new Contract(address, _abi, signerOrProvider) as MockUniMkrEth; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600b81526020016a0aa9c92be9a96a4be8aa8960ab1b8152506040518060400160405280600b81526020016a0aa9c92be9a96a4be8aa8960ab1b8152506012828281600390805190602001906100739291906100c7565b5080516100879060049060208401906100c7565b50506005805460ff19166012179055506100a9816001600160e01b036100b116565b505050610162565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010857805160ff1916838001178555610135565b82800160010185558215610135579182015b8281111561013557825182559160200191906001019061011a565b50610141929150610145565b5090565b61015f91905b80821115610141576000815560010161014b565b90565b610b48806101716000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220d74e9be787aa8f46ee15734f687a8167856521ca7a9e46a20bc17bd9a88d4a2c64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600b81526020016a0aa9c92be9a96a4be8aa8960ab1b8152506040518060400160405280600b81526020016a0aa9c92be9a96a4be8aa8960ab1b8152506012828281600390805190602001906100739291906100c7565b5080516100879060049060208401906100c7565b50506005805460ff19166012179055506100a9816001600160e01b036100b116565b505050610162565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010857805160ff1916838001178555610135565b82800160010185558215610135579182015b8281111561013557825182559160200191906001019061011a565b50610141929150610145565b5090565b61015f91905b80821115610141576000815560010161014b565b90565b610b48806101716000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201d1df3378e4896d0244f44cbdac50b37fe2c4cbe9d4f69b809479d3008aacdb964736f6c63430006080033"; diff --git a/types/MockUniSethEth.d.ts b/types/MockUniSethEth.d.ts index d6f0f8ba..11004e1c 100644 --- a/types/MockUniSethEth.d.ts +++ b/types/MockUniSethEth.d.ts @@ -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 MockUniSethEthInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockUniSethEthInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockUniSethEthInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -65,7 +81,10 @@ export class MockUniSethEth extends Contract { on(event: EventFilter | string, listener: Listener): MockUniSethEth; once(event: EventFilter | string, listener: Listener): MockUniSethEth; - addListener(eventName: EventFilter | string, listener: Listener): MockUniSethEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockUniSethEth; removeAllListeners(eventName: EventFilter | string): MockUniSethEth; removeListener(eventName: any, listener: Listener): MockUniSethEth; @@ -96,7 +115,10 @@ export class MockUniSethEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +164,10 @@ export class MockUniSethEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +189,11 @@ export class MockUniSethEth extends Contract { ): Promise; 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; }; @@ -178,9 +207,15 @@ export class MockUniSethEth extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +227,10 @@ export class MockUniSethEth extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockUniSethEthFactory.ts b/types/MockUniSethEthFactory.ts index ca7c8fc4..60fcfe3d 100644 --- a/types/MockUniSethEthFactory.ts +++ b/types/MockUniSethEthFactory.ts @@ -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 {MockUniSethEth} from './MockUniSethEth'; +import { TransactionOverrides } from "."; +import { MockUniSethEth } from "./MockUniSethEth"; export class MockUniSethEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockUniSethEthFactory extends ContractFactory { connect(signer: Signer): MockUniSethEthFactory { return super.connect(signer) as MockUniSethEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockUniSethEth { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockUniSethEth { return new Contract(address, _abi, signerOrProvider) as MockUniSethEth; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600c81526020016b0aa9c92bea68aa890be8aa8960a31b8152506040518060400160405280600c81526020016b0aa9c92bea68aa890be8aa8960a31b8152506012828281600390805190602001906100759291906100c9565b5080516100899060049060208401906100c9565b50506005805460ff19166012179055506100ab816001600160e01b036100b316565b505050610164565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010a57805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013757825182559160200191906001019061011c565b50610143929150610147565b5090565b61016191905b80821115610143576000815560010161014d565b90565b610b48806101736000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205c9efe695aa90a3f94a7df7e0136e61b13e849092972adb58623b79ff9efde0464736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600c81526020016b0aa9c92bea68aa890be8aa8960a31b8152506040518060400160405280600c81526020016b0aa9c92bea68aa890be8aa8960a31b8152506012828281600390805190602001906100759291906100c9565b5080516100899060049060208401906100c9565b50506005805460ff19166012179055506100ab816001600160e01b036100b316565b505050610164565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010a57805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013757825182559160200191906001019061011c565b50610143929150610147565b5090565b61016191905b80821115610143576000815560010161014d565b90565b610b48806101736000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f881f74afadd0965a22f885e46fd853cab255bb7cf89562218dc025f64067e9964736f6c63430006080033"; diff --git a/types/MockUniUsdcEth.d.ts b/types/MockUniUsdcEth.d.ts index 1bfd0a0b..a1e57914 100644 --- a/types/MockUniUsdcEth.d.ts +++ b/types/MockUniUsdcEth.d.ts @@ -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 MockUniUsdcEthInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockUniUsdcEthInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockUniUsdcEthInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -65,7 +81,10 @@ export class MockUniUsdcEth extends Contract { on(event: EventFilter | string, listener: Listener): MockUniUsdcEth; once(event: EventFilter | string, listener: Listener): MockUniUsdcEth; - addListener(eventName: EventFilter | string, listener: Listener): MockUniUsdcEth; + addListener( + eventName: EventFilter | string, + listener: Listener + ): MockUniUsdcEth; removeAllListeners(eventName: EventFilter | string): MockUniUsdcEth; removeListener(eventName: any, listener: Listener): MockUniUsdcEth; @@ -96,7 +115,10 @@ export class MockUniUsdcEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +164,10 @@ export class MockUniUsdcEth extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +189,11 @@ export class MockUniUsdcEth extends Contract { ): Promise; 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; }; @@ -178,9 +207,15 @@ export class MockUniUsdcEth extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +227,10 @@ export class MockUniUsdcEth extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockUniUsdcEthFactory.ts b/types/MockUniUsdcEthFactory.ts index 549376f8..a3c7af94 100644 --- a/types/MockUniUsdcEthFactory.ts +++ b/types/MockUniUsdcEthFactory.ts @@ -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 {MockUniUsdcEth} from './MockUniUsdcEth'; +import { TransactionOverrides } from "."; +import { MockUniUsdcEth } from "./MockUniUsdcEth"; export class MockUniUsdcEthFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockUniUsdcEthFactory extends ContractFactory { connect(signer: Signer): MockUniUsdcEthFactory { return super.connect(signer) as MockUniUsdcEthFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockUniUsdcEth { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockUniUsdcEth { return new Contract(address, _abi, signerOrProvider) as MockUniUsdcEth; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040518060400160405280600c81526020016b0aa9c92beaaa68886be8aa8960a31b8152506040518060400160405280600c81526020016b0aa9c92beaaa68886be8aa8960a31b8152506012828281600390805190602001906100759291906100c9565b5080516100899060049060208401906100c9565b50506005805460ff19166012179055506100ab816001600160e01b036100b316565b505050610164565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010a57805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013757825182559160200191906001019061011c565b50610143929150610147565b5090565b61016191905b80821115610143576000815560010161014d565b90565b610b48806101736000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122029e386a1293ee397ed9a47aebc6db6249e67292fe00203654c627e65c5ff9cf264736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040518060400160405280600c81526020016b0aa9c92beaaa68886be8aa8960a31b8152506040518060400160405280600c81526020016b0aa9c92beaaa68886be8aa8960a31b8152506012828281600390805190602001906100759291906100c9565b5080516100899060049060208401906100c9565b50506005805460ff19166012179055506100ab816001600160e01b036100b316565b505050610164565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010a57805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013757825182559160200191906001019061011c565b50610143929150610147565b5090565b61016191905b80821115610143576000815560010161014d565b90565b610b48806101736000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b00d0ba85dd2ceae931208749da4b07e488127fb0de926a7181909706525077764736f6c63430006080033"; diff --git a/types/MockUsd.d.ts b/types/MockUsd.d.ts index b9ee24ee..e5852074 100644 --- a/types/MockUsd.d.ts +++ b/types/MockUsd.d.ts @@ -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 MockUsdInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockUsdInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockUsdInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockUsd extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockUsd extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockUsd extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockUsd extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockUsd extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockUsdFactory.ts b/types/MockUsdFactory.ts index a3130602..74f4de46 100644 --- a/types/MockUsdFactory.ts +++ b/types/MockUsdFactory.ts @@ -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 {MockUsd} from './MockUsd'; +import { TransactionOverrides } from "."; +import { MockUsd } from "./MockUsd"; export class MockUsdFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockUsdFactory extends ContractFactory { connect(signer: Signer): MockUsdFactory { return super.connect(signer) as MockUsdFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockUsd { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockUsd { return new Contract(address, _abi, signerOrProvider) as MockUsd; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051806040016040528060038152602001621554d160ea1b815250604051806040016040528060038152602001621554d160ea1b8152506012828281600390805190602001906100639291906100b7565b5080516100779060049060208401906100b7565b50506005805460ff1916601217905550610099816001600160e01b036100a116565b505050610152565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f857805160ff1916838001178555610125565b82800160010185558215610125579182015b8281111561012557825182559160200191906001019061010a565b50610131929150610135565b5090565b61014f91905b80821115610131576000815560010161013b565b90565b610b48806101616000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220a0de2869d88f9e5c9f44a1d51059643e3ccd0a59d4d46ce4d2f5554ddfbd5bfc64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50604051806040016040528060038152602001621554d160ea1b815250604051806040016040528060038152602001621554d160ea1b8152506012828281600390805190602001906100639291906100b7565b5080516100779060049060208401906100b7565b50506005805460ff1916601217905550610099816001600160e01b036100a116565b505050610152565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f857805160ff1916838001178555610125565b82800160010185558215610125579182015b8281111561012557825182559160200191906001019061010a565b50610131929150610135565b5090565b61014f91905b80821115610131576000815560010161013b565b90565b610b48806101616000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122085b4ba9d9d8c704c30e6ca61d7b9bc38d772fdc0b2df5f60b595a38cd5b7b3cc64736f6c63430006080033"; diff --git a/types/MockUsdc.d.ts b/types/MockUsdc.d.ts index df08b23f..d3696d8e 100644 --- a/types/MockUsdc.d.ts +++ b/types/MockUsdc.d.ts @@ -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 MockUsdcInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockUsdcInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockUsdcInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockUsdc extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockUsdc extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockUsdc extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockUsdc extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockUsdc extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockUsdcFactory.ts b/types/MockUsdcFactory.ts index a4066ae9..e31b14e8 100644 --- a/types/MockUsdcFactory.ts +++ b/types/MockUsdcFactory.ts @@ -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 {MockUsdc} from './MockUsdc'; +import { TransactionOverrides } from "."; +import { MockUsdc } from "./MockUsdc"; export class MockUsdcFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockUsdcFactory extends ContractFactory { connect(signer: Signer): MockUsdcFactory { return super.connect(signer) as MockUsdcFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockUsdc { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockUsdc { return new Contract(address, _abi, signerOrProvider) as MockUsdc; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051806040016040528060048152602001635553444360e01b815250604051806040016040528060088152602001672aa9a21021b7b4b760c11b8152506006828281600390805190602001906100699291906100bd565b50805161007d9060049060208401906100bd565b50506005805460ff191660121790555061009f816001600160e01b036100a716565b505050610158565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fe57805160ff191683800117855561012b565b8280016001018555821561012b579182015b8281111561012b578251825591602001919060010190610110565b5061013792915061013b565b5090565b61015591905b808211156101375760008155600101610141565b90565b610b48806101676000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220978aad16b0662b2de8146d390c47b15e11b2905ed2d2e8b3d93e5288583f734f64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50604051806040016040528060048152602001635553444360e01b815250604051806040016040528060088152602001672aa9a21021b7b4b760c11b8152506006828281600390805190602001906100699291906100bd565b50805161007d9060049060208401906100bd565b50506005805460ff191660121790555061009f816001600160e01b036100a716565b505050610158565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fe57805160ff191683800117855561012b565b8280016001018555821561012b579182015b8281111561012b578251825591602001919060010190610110565b5061013792915061013b565b5090565b61015591905b808211156101375760008155600101610141565b90565b610b48806101676000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212208940eec75986da8ca52beca0ff61bed55ceaf12fd2b554e3a52b7d753f0920fe64736f6c63430006080033"; diff --git a/types/MockUsdt.d.ts b/types/MockUsdt.d.ts index ae811374..48620e86 100644 --- a/types/MockUsdt.d.ts +++ b/types/MockUsdt.d.ts @@ -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 MockUsdtInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockUsdtInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockUsdtInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockUsdt extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockUsdt extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockUsdt extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockUsdt extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockUsdt extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockUsdtFactory.ts b/types/MockUsdtFactory.ts index d08bec76..0bf0c9d7 100644 --- a/types/MockUsdtFactory.ts +++ b/types/MockUsdtFactory.ts @@ -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 {MockUsdt} from './MockUsdt'; +import { TransactionOverrides } from "."; +import { MockUsdt } from "./MockUsdt"; export class MockUsdtFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockUsdtFactory extends ContractFactory { connect(signer: Signer): MockUsdtFactory { return super.connect(signer) as MockUsdtFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockUsdt { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockUsdt { return new Contract(address, _abi, signerOrProvider) as MockUsdt; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051806040016040528060048152602001631554d11560e21b815250604051806040016040528060098152602001682aa9a22a1021b7b4b760b91b81525060068282816003908051906020019061006a9291906100be565b50805161007e9060049060208401906100be565b50506005805460ff19166012179055506100a0816001600160e01b036100a816565b505050610159565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100ff57805160ff191683800117855561012c565b8280016001018555821561012c579182015b8281111561012c578251825591602001919060010190610111565b5061013892915061013c565b5090565b61015691905b808211156101385760008155600101610142565b90565b610b48806101686000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f44842a74d61e3d8af36d0db2adb44c66786d2bc414d056b043ec574447b012a64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50604051806040016040528060048152602001631554d11560e21b815250604051806040016040528060098152602001682aa9a22a1021b7b4b760b91b81525060068282816003908051906020019061006a9291906100be565b50805161007e9060049060208401906100be565b50506005805460ff19166012179055506100a0816001600160e01b036100a816565b505050610159565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100ff57805160ff191683800117855561012c565b8280016001018555821561012c579182015b8281111561012c578251825591602001919060010190610111565b5061013892915061013c565b5090565b61015691905b808211156101385760008155600101610142565b90565b610b48806101686000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206d9939a903d071b71d936e4e686a22a0af955b3ada0ba79e7875cbb27657991964736f6c63430006080033"; diff --git a/types/MockWbtc.d.ts b/types/MockWbtc.d.ts index bd55688e..d755bdf0 100644 --- a/types/MockWbtc.d.ts +++ b/types/MockWbtc.d.ts @@ -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 MockWbtcInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockWbtcInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockWbtcInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockWbtc extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockWbtc extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockWbtc extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockWbtc extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockWbtc extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockWbtcFactory.ts b/types/MockWbtcFactory.ts index 1ff63f4b..f83343b8 100644 --- a/types/MockWbtcFactory.ts +++ b/types/MockWbtcFactory.ts @@ -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 {MockWbtc} from './MockWbtc'; +import { TransactionOverrides } from "."; +import { MockWbtc } from "./MockWbtc"; export class MockWbtcFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockWbtcFactory extends ContractFactory { connect(signer: Signer): MockWbtcFactory { return super.connect(signer) as MockWbtcFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockWbtc { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockWbtc { return new Contract(address, _abi, signerOrProvider) as MockWbtc; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051806040016040528060048152602001635742544360e01b815250604051806040016040528060098152602001682ba12a219021b7b4b760b91b81525060128282816003908051906020019061006a9291906100be565b50805161007e9060049060208401906100be565b50506005805460ff19166012179055506100a0816001600160e01b036100a816565b505050610159565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100ff57805160ff191683800117855561012c565b8280016001018555821561012c579182015b8281111561012c578251825591602001919060010190610111565b5061013892915061013c565b5090565b61015691905b808211156101385760008155600101610142565b90565b610b48806101686000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220a21cbda9a530789a8dff8e4d2d1d56a2bfdfe1a07adb80d2141a588c1f9db51d64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50604051806040016040528060048152602001635742544360e01b815250604051806040016040528060098152602001682ba12a219021b7b4b760b91b81525060128282816003908051906020019061006a9291906100be565b50805161007e9060049060208401906100be565b50506005805460ff19166012179055506100a0816001600160e01b036100a816565b505050610159565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100ff57805160ff191683800117855561012c565b8280016001018555821561012c579182015b8281111561012c578251825591602001919060010190610111565b5061013892915061013c565b5090565b61015691905b808211156101385760008155600101610142565b90565b610b48806101686000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122072bc373208b69f3ae78351d95f1cd39eb96616f328192923a9bc9014dffc7c6064736f6c63430006080033"; diff --git a/types/MockZrx.d.ts b/types/MockZrx.d.ts index 62f349ad..2d82a687 100644 --- a/types/MockZrx.d.ts +++ b/types/MockZrx.d.ts @@ -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 MockZrxInterface extends Interface { functions: { @@ -20,7 +24,7 @@ interface MockZrxInterface extends Interface { encode([account]: [string]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -30,30 +34,42 @@ interface MockZrxInterface extends Interface { encode([spender, addedValue]: [string, BigNumberish]): string; }>; - mint: TypedFunctionDescription<{encode([value]: [BigNumberish]): string}>; + mint: TypedFunctionDescription<{ encode([value]: [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[]; }>; }; } @@ -96,7 +112,10 @@ export class MockZrx extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -142,7 +161,10 @@ export class MockZrx extends Contract { overrides?: TransactionOverrides ): Promise; - mint(value: BigNumberish, overrides?: TransactionOverrides): Promise; + mint( + value: BigNumberish, + overrides?: TransactionOverrides + ): Promise; name(): Promise; @@ -164,7 +186,11 @@ export class MockZrx extends Contract { ): Promise; 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; }; @@ -178,9 +204,15 @@ export class MockZrx extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; mint(value: BigNumberish): Promise; @@ -192,6 +224,10 @@ export class MockZrx extends Contract { transfer(recipient: string, amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish + ): Promise; }; } diff --git a/types/MockZrxFactory.ts b/types/MockZrxFactory.ts index 2c6d7ab1..925e023f 100644 --- a/types/MockZrxFactory.ts +++ b/types/MockZrxFactory.ts @@ -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 {MockZrx} from './MockZrx'; +import { TransactionOverrides } from "."; +import { MockZrx } from "./MockZrx"; export class MockZrxFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class MockZrxFactory extends ContractFactory { connect(signer: Signer): MockZrxFactory { return super.connect(signer) as MockZrxFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): MockZrx { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockZrx { return new Contract(address, _abi, signerOrProvider) as MockZrx; } } @@ -36,291 +39,291 @@ 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: [ { - 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: 'uint256', - name: 'value', - type: 'uint256', - }, + internalType: "uint256", + name: "value", + type: "uint256" + } ], - name: 'mint', + name: "mint", 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50604051806040016040528060038152602001620b4a4b60eb1b81525060405180604001604052806007815260200166183c1021b7b4b760c91b8152506012828281600390805190602001906100679291906100bb565b50805161007b9060049060208401906100bb565b50506005805460ff191660121790555061009d816001600160e01b036100a516565b505050610156565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fc57805160ff1916838001178555610129565b82800160010185558215610129579182015b8281111561012957825182559160200191906001019061010e565b50610135929150610139565b5090565b61015391905b80821115610135576000815560010161013f565b90565b610b48806101656000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122078756f81a2e1b2f18a8597bfa5a8df537a906a0b1c3e2d3037e43154e4a05a0a64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50604051806040016040528060038152602001620b4a4b60eb1b81525060405180604001604052806007815260200166183c1021b7b4b760c91b8152506012828281600390805190602001906100679291906100bb565b50805161007b9060049060208401906100bb565b50506005805460ff191660121790555061009d816001600160e01b036100a516565b505050610156565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fc57805160ff1916838001178555610129565b82800160010185558215610129579182015b8281111561012957825182559160200191906001019061010e565b50610135929150610139565b5090565b61015391905b80821115610135576000815560010161013f565b90565b610b48806101656000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106f65760405162461bcd60e51b8152600401808060200182810382526025815260200180610aa56025913960400191505060405180910390fd5b6001600160a01b03821661073b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a126023913960400191505060405180910390fd5b610746838383610a0c565b61078981604051806060016040528060268152602001610a57602691396001600160a01b038616600090815260208190526040902054919063ffffffff61081816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107be908263ffffffff6108af16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561086c578181015183820152602001610854565b50505050905090810190601f1680156108995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610909576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821661096b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61097760008383610a0c565b60025461098a908263ffffffff6108af16565b6002556001600160a01b0382166000908152602081905260409020546109b6908263ffffffff6108af16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122061ccc5c8eefe093b8aa11b4c0bc124d48c3a619bc8115c5a5fef887019af7e3564736f6c63430006080033"; diff --git a/types/OneSplitAdapter.d.ts b/types/OneSplitAdapter.d.ts index b939f8eb..444d6e0f 100644 --- a/types/OneSplitAdapter.d.ts +++ b/types/OneSplitAdapter.d.ts @@ -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 OneSplitAdapterInterface extends Interface { functions: { @@ -34,7 +38,11 @@ interface OneSplitAdapterInterface extends Interface { }>; OneSplitAdapterSetup: TypedEventDescription<{ - encodeTopics([oneSplit, priceOracle, splitParts]: [null, null, null]): string[]; + encodeTopics([oneSplit, priceOracle, splitParts]: [ + null, + null, + null + ]): string[]; }>; }; } @@ -46,7 +54,10 @@ export class OneSplitAdapter extends Contract { on(event: EventFilter | string, listener: Listener): OneSplitAdapter; once(event: EventFilter | string, listener: Listener): OneSplitAdapter; - addListener(eventName: EventFilter | string, listener: Listener): OneSplitAdapter; + addListener( + eventName: EventFilter | string, + listener: Listener + ): OneSplitAdapter; removeAllListeners(eventName: EventFilter | string): OneSplitAdapter; removeListener(eventName: any, listener: Listener): OneSplitAdapter; @@ -89,7 +100,11 @@ export class OneSplitAdapter extends Contract { toAmount: null ): EventFilter; - OneSplitAdapterSetup(oneSplit: null, priceOracle: null, splitParts: null): EventFilter; + OneSplitAdapterSetup( + oneSplit: null, + priceOracle: null, + splitParts: null + ): EventFilter; }; estimate: { diff --git a/types/OneSplitAdapterFactory.ts b/types/OneSplitAdapterFactory.ts index 29338b93..56cd4daf 100644 --- a/types/OneSplitAdapterFactory.ts +++ b/types/OneSplitAdapterFactory.ts @@ -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 {OneSplitAdapter} from './OneSplitAdapter'; +import { TransactionOverrides } from "."; +import { OneSplitAdapter } from "./OneSplitAdapter"; export class OneSplitAdapterFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class OneSplitAdapterFactory extends ContractFactory { connect(signer: Signer): OneSplitAdapterFactory { return super.connect(signer) as OneSplitAdapterFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): OneSplitAdapter { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): OneSplitAdapter { return new Contract(address, _abi, signerOrProvider) as OneSplitAdapter; } } @@ -33,119 +36,119 @@ export class OneSplitAdapterFactory extends ContractFactory { const _abi = [ { inputs: [], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { 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: 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" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: 'oneSplit', - type: 'address', + internalType: "address", + name: "oneSplit", + type: "address" }, { indexed: false, - internalType: 'address', - name: 'priceOracle', - type: 'address', + internalType: "address", + name: "priceOracle", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: 'splitParts', - type: 'uint256', - }, + internalType: "uint256", + name: "splitParts", + type: "uint256" + } ], - name: 'OneSplitAdapterSetup', - type: 'event', + name: "OneSplitAdapterSetup", + 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b5060408051731814222fa8c8c1c1bf380e3bbfbd9de8657da47681527376b47460d7f7c5222cfb6b6a75615ab10895dde46020820152600a8183015290517f8d2e03fe8af77d72ac9d334b8bc58153f47fc0c0ec0c926c1686754201cfdc5d9181900360600190a1610bc6806100876000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80630ed2fc951461003b57806393ed430914610089575b600080fd5b6100776004803603608081101561005157600080fd5b506001600160a01b038135811691602081013590911690604081013590606001356100fb565b60408051918252519081900360200190f35b6100f96004803603602081101561009f57600080fd5b8101906020810181356401000000008111156100ba57600080fd5b8201836020820111156100cc57600080fd5b803590602001918460208302840111640100000000831117156100ee57600080fd5b5090925090506104f4565b005b60008061010661059b565b6001600160a01b0316866001600160a01b031614610125576000610127565b835b6040805163b3596f0760e01b81526001600160a01b038916600482015290519192506000917376b47460d7f7c5222cfb6b6a75615ab10895dde49163b3596f07916024808301926020929190829003018186803b15801561018757600080fd5b505afa15801561019b573d6000803e3d6000fd5b505050506040513d60208110156101b157600080fd5b50516040805163b3596f0760e01b81526001600160a01b038916600482015290519192506000917376b47460d7f7c5222cfb6b6a75615ab10895dde49163b3596f07916024808301926020929190829003018186803b15801561021357600080fd5b505afa158015610227573d6000803e3d6000fd5b505050506040513d602081101561023d57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038a16916370a08231916024808301926020929190829003018186803b15801561028b57600080fd5b505afa15801561029f573d6000803e3d6000fd5b505050506040513d60208110156102b557600080fd5b5051604080516335cac4d560e11b81526001600160a01b038c811660048301528b166024820152604481018a9052600060648201819052600a608483015261020060a48301529151929350731814222fa8c8c1c1bf380e3bbfbd9de8657da47692636b9589aa92889260c4808201939182900301818588803b15801561033a57600080fd5b505af115801561034e573d6000803e3d6000fd5b505050505060006103e7828a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156103af57600080fd5b505afa1580156103c3573d6000803e3d6000fd5b505050506040513d60208110156103d957600080fd5b50519063ffffffff6105b316565b9050606487900361042e610401868b63ffffffff6105fe16565b6104226064610416888763ffffffff6105fe16565b9063ffffffff6105fe16565b9063ffffffff61065716565b1015610474576040805162461bcd60e51b815260206004820152601060248201526f494e56414c49445f534c49505041474560801b604482015290519081900360640190fd5b731814222fa8c8c1c1bf380e3bbfbd9de8657da4766001600160a01b0316896001600160a01b03168b6001600160a01b03167fa6fee24309b1d83d9ec7b9e4dbb73c6f882746efbfb26db7b7d9e9f2fb6dc95a8b85604051808381526020018281526020019250505060405180910390a49450505050505b949350505050565b60005b818110156105965761050761059b565b6001600160a01b031683838381811061051c57fe5b905060200201356001600160a01b03166001600160a01b03161461058e5761058e731814222fa8c8c1c1bf380e3bbfbd9de8657da47661055a610699565b85858581811061056657fe5b905060200201356001600160a01b03166001600160a01b031661069f9092919063ffffffff16565b6001016104f7565b505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b60006105f583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506107b2565b90505b92915050565b60008261060d575060006105f8565b8282028284828161061a57fe5b04146105f55760405162461bcd60e51b8152600401808060200182810382526021815260200180610b106021913960400191505060405180910390fd5b60006105f583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610849565b60011990565b801580610725575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156106f757600080fd5b505afa15801561070b573d6000803e3d6000fd5b505050506040513d602081101561072157600080fd5b5051155b6107605760405162461bcd60e51b8152600401808060200182810382526036815260200180610b5b6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526105969084906108ae565b600081848411156108415760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108065781810151838201526020016107ee565b50505050905090810190601f1680156108335780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836108985760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156108065781810151838201526020016107ee565b5060008385816108a457fe5b0495945050505050565b6060610903826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661095f9092919063ffffffff16565b8051909150156105965780806020019051602081101561092257600080fd5b50516105965760405162461bcd60e51b815260040180806020018281038252602a815260200180610b31602a913960400191505060405180910390fd5b60606104ec8484600085606061097485610ad6565b6109c5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610a045780518252601f1990920191602091820191016109e5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610a66576040519150601f19603f3d011682016040523d82523d6000602084013e610a6b565b606091505b50915091508115610a7f5791506104ec9050565b805115610a8f5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156108065781810151838201526020016107ee565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906104ec57505015159291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212208feab8b8969fcadba8a22d5b8ed1cc59039f86ba2611f214a3dec442aac4f39b64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b5060408051731814222fa8c8c1c1bf380e3bbfbd9de8657da47681527376b47460d7f7c5222cfb6b6a75615ab10895dde46020820152600a8183015290517f8d2e03fe8af77d72ac9d334b8bc58153f47fc0c0ec0c926c1686754201cfdc5d9181900360600190a1610b5d806100876000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80630ed2fc951461003b57806393ed430914610089575b600080fd5b6100776004803603608081101561005157600080fd5b506001600160a01b038135811691602081013590911690604081013590606001356100fb565b60408051918252519081900360200190f35b6100f96004803603602081101561009f57600080fd5b8101906020810181356401000000008111156100ba57600080fd5b8201836020820111156100cc57600080fd5b803590602001918460208302840111640100000000831117156100ee57600080fd5b5090925090506104f2565b005b600080610106610599565b6001600160a01b0316866001600160a01b031614610125576000610127565b835b6040805163b3596f0760e01b81526001600160a01b038916600482015290519192506000917376b47460d7f7c5222cfb6b6a75615ab10895dde49163b3596f07916024808301926020929190829003018186803b15801561018757600080fd5b505afa15801561019b573d6000803e3d6000fd5b505050506040513d60208110156101b157600080fd5b50516040805163b3596f0760e01b81526001600160a01b038916600482015290519192506000917376b47460d7f7c5222cfb6b6a75615ab10895dde49163b3596f07916024808301926020929190829003018186803b15801561021357600080fd5b505afa158015610227573d6000803e3d6000fd5b505050506040513d602081101561023d57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038a16916370a08231916024808301926020929190829003018186803b15801561028b57600080fd5b505afa15801561029f573d6000803e3d6000fd5b505050506040513d60208110156102b557600080fd5b5051604080516335cac4d560e11b81526001600160a01b038c811660048301528b166024820152604481018a9052600060648201819052600a608483015261020060a48301529151929350731814222fa8c8c1c1bf380e3bbfbd9de8657da47692636b9589aa92889260c4808201939182900301818588803b15801561033a57600080fd5b505af115801561034e573d6000803e3d6000fd5b505050505060006103e7828a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156103af57600080fd5b505afa1580156103c3573d6000803e3d6000fd5b505050506040513d60208110156103d957600080fd5b50519063ffffffff6105b116565b9050606487900361042e610401868b63ffffffff6105fc16565b6104226064610416888763ffffffff6105fc16565b9063ffffffff6105fc16565b9063ffffffff61065516565b1015610474576040805162461bcd60e51b815260206004820152601060248201526f494e56414c49445f534c49505041474560801b604482015290519081900360640190fd5b731814222fa8c8c1c1bf380e3bbfbd9de8657da4766001600160a01b0316896001600160a01b03168b6001600160a01b03167fa6fee24309b1d83d9ec7b9e4dbb73c6f882746efbfb26db7b7d9e9f2fb6dc95a8b85604051808381526020018281526020019250505060405180910390a49998505050505050505050565b60005b8181101561059457610505610599565b6001600160a01b031683838381811061051a57fe5b905060200201356001600160a01b03166001600160a01b03161461058c5761058c731814222fa8c8c1c1bf380e3bbfbd9de8657da476610558610697565b85858581811061056457fe5b905060200201356001600160a01b03166001600160a01b031661069d9092919063ffffffff16565b6001016104f5565b505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b60006105f383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506107b0565b90505b92915050565b60008261060b575060006105f6565b8282028284828161061857fe5b04146105f35760405162461bcd60e51b8152600401808060200182810382526021815260200180610aa76021913960400191505060405180910390fd5b60006105f383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610847565b60011990565b801580610723575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156106f557600080fd5b505afa158015610709573d6000803e3d6000fd5b505050506040513d602081101561071f57600080fd5b5051155b61075e5760405162461bcd60e51b8152600401808060200182810382526036815260200180610af26036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526105949084906108ac565b6000818484111561083f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108045781810151838201526020016107ec565b50505050905090810190601f1680156108315780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836108965760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156108045781810151838201526020016107ec565b5060008385816108a257fe5b0495945050505050565b6108be826001600160a01b0316610a6a565b61090f576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061094d5780518252601f19909201916020918201910161092e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146109af576040519150601f19603f3d011682016040523d82523d6000602084013e6109b4565b606091505b509150915081610a0b576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610a6457808060200190516020811015610a2757600080fd5b5051610a645760405162461bcd60e51b815260040180806020018281038252602a815260200180610ac8602a913960400191505060405180910390fd5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610a9e57508115155b94935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220fc45accf95836cf324cd68150730543f84ce17523a2367fa0f1221eb5eca3c0264736f6c63430006080033"; diff --git a/types/Ownable.d.ts b/types/Ownable.d.ts index 78caa3cc..4837b487 100644 --- a/types/Ownable.d.ts +++ b/types/Ownable.d.ts @@ -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 OwnableInterface extends Interface { functions: { - owner: TypedFunctionDescription<{encode([]: []): string}>; + owner: TypedFunctionDescription<{ encode([]: []): string }>; - renounceOwnership: TypedFunctionDescription<{encode([]: []): string}>; + renounceOwnership: TypedFunctionDescription<{ encode([]: []): string }>; transferOwnership: TypedFunctionDescription<{ encode([newOwner]: [string]): string; @@ -19,7 +23,10 @@ interface OwnableInterface extends Interface { events: { OwnershipTransferred: TypedEventDescription<{ - encodeTopics([previousOwner, newOwner]: [string | null, string | null]): string[]; + encodeTopics([previousOwner, newOwner]: [ + string | null, + string | null + ]): string[]; }>; }; } @@ -40,7 +47,9 @@ export class Ownable extends Contract { functions: { owner(): Promise; - renounceOwnership(overrides?: TransactionOverrides): Promise; + renounceOwnership( + overrides?: TransactionOverrides + ): Promise; transferOwnership( newOwner: string, @@ -50,7 +59,9 @@ export class Ownable extends Contract { owner(): Promise; - renounceOwnership(overrides?: TransactionOverrides): Promise; + renounceOwnership( + overrides?: TransactionOverrides + ): Promise; transferOwnership( newOwner: string, @@ -58,7 +69,10 @@ export class Ownable extends Contract { ): Promise; filters: { - OwnershipTransferred(previousOwner: string | null, newOwner: string | null): EventFilter; + OwnershipTransferred( + previousOwner: string | null, + newOwner: string | null + ): EventFilter; }; estimate: { diff --git a/types/OwnableFactory.ts b/types/OwnableFactory.ts index eabe6a6a..678614f5 100644 --- a/types/OwnableFactory.ts +++ b/types/OwnableFactory.ts @@ -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 {Ownable} from './Ownable'; +import { Ownable } from "./Ownable"; export class OwnableFactory { - static connect(address: string, signerOrProvider: Signer | Provider): Ownable { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): Ownable { return new Contract(address, _abi, signerOrProvider) as Ownable; } } @@ -18,51 +21,51 @@ const _abi = [ 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: 'owner', + name: "owner", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + 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" + } ]; diff --git a/types/PriceOracle.d.ts b/types/PriceOracle.d.ts index 940a09b6..ecc547e1 100644 --- a/types/PriceOracle.d.ts +++ b/types/PriceOracle.d.ts @@ -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 PriceOracleInterface extends Interface { functions: { @@ -12,7 +16,7 @@ interface PriceOracleInterface extends Interface { encode([_asset]: [string]): string; }>; - getEthUsdPrice: TypedFunctionDescription<{encode([]: []): string}>; + getEthUsdPrice: TypedFunctionDescription<{ encode([]: []): string }>; setAssetPrice: TypedFunctionDescription<{ encode([_asset, _price]: [string, BigNumberish]): string; diff --git a/types/PriceOracleFactory.ts b/types/PriceOracleFactory.ts index e819323c..a319fe64 100644 --- a/types/PriceOracleFactory.ts +++ b/types/PriceOracleFactory.ts @@ -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 {PriceOracle} from './PriceOracle'; +import { TransactionOverrides } from "."; +import { PriceOracle } from "./PriceOracle"; export class PriceOracleFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class PriceOracleFactory extends ContractFactory { connect(signer: Signer): PriceOracleFactory { return super.connect(signer) as PriceOracleFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): PriceOracle { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): PriceOracle { return new Contract(address, _abi, signerOrProvider) as PriceOracle; } } @@ -36,109 +39,109 @@ 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" }, { 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" }, { 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" }, { inputs: [ { - internalType: 'uint256', - name: '_price', - type: 'uint256', - }, + internalType: "uint256", + name: "_price", + type: "uint256" + } ], - name: 'setEthUsdPrice', + name: "setEthUsdPrice", outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, + stateMutability: "nonpayable", + type: "function" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506101d0806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806351323f7214610051578063a0a8045e1461007f578063b3596f0714610099578063b951883a146100bf575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b0381351690602001356100dc565b005b610087610137565b60408051918252519081900360200190f35b610087600480360360208110156100af57600080fd5b50356001600160a01b031661013d565b61007d600480360360208110156100d557600080fd5b5035610158565b6001600160a01b03821660008181526020818152604091829020849055815192835282018390524282820152517fce6e0b57367bae95ca7198e1172f653ea64a645c16ab586b4cefa9237bfc2d929181900360600190a15050565b60015490565b6001600160a01b031660009081526020819052604090205490565b60018190556040805182815242602082015281517fb4f35977939fa8b5ffe552d517a8ff5223046b1fdd3ee0068ae38d1e2b8d0016929181900390910190a15056fea2646970667358221220b739db650a684a3f2637f5b002e50df6b4f59d99a53433c6b98e6987cc6c068a64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506101d0806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806351323f7214610051578063a0a8045e1461007f578063b3596f0714610099578063b951883a146100bf575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b0381351690602001356100dc565b005b610087610137565b60408051918252519081900360200190f35b610087600480360360208110156100af57600080fd5b50356001600160a01b031661013d565b61007d600480360360208110156100d557600080fd5b5035610158565b6001600160a01b03821660008181526020818152604091829020849055815192835282018390524282820152517fce6e0b57367bae95ca7198e1172f653ea64a645c16ab586b4cefa9237bfc2d929181900360600190a15050565b60015490565b6001600160a01b031660009081526020819052604090205490565b60018190556040805182815242602082015281517fb4f35977939fa8b5ffe552d517a8ff5223046b1fdd3ee0068ae38d1e2b8d0016929181900390910190a15056fea2646970667358221220b739db650a684a3f2637f5b002e50df6b4f59d99a53433c6b98e6987cc6c068a64736f6c63430006080033"; diff --git a/types/Proxy.d.ts b/types/Proxy.d.ts index 051308e7..83461276 100644 --- a/types/Proxy.d.ts +++ b/types/Proxy.d.ts @@ -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 ProxyInterface extends Interface { functions: {}; diff --git a/types/ProxyFactory.ts b/types/ProxyFactory.ts index 7825f369..bf2277a2 100644 --- a/types/ProxyFactory.ts +++ b/types/ProxyFactory.ts @@ -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 {Proxy} from './Proxy'; +import { Proxy } from "./Proxy"; export class ProxyFactory { static connect(address: string, signerOrProvider: Signer | Provider): Proxy { @@ -14,7 +14,7 @@ export class ProxyFactory { const _abi = [ { - stateMutability: 'payable', - type: 'fallback', - }, + stateMutability: "payable", + type: "fallback" + } ]; diff --git a/types/ReserveLogic.d.ts b/types/ReserveLogic.d.ts index f3f8bce0..ba22e0aa 100644 --- a/types/ReserveLogic.d.ts +++ b/types/ReserveLogic.d.ts @@ -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 ReserveLogicInterface extends Interface { functions: {}; @@ -18,7 +22,7 @@ interface ReserveLogicInterface extends Interface { averageStableBorrowRate, variableBorrowRate, liquidityIndex, - variableBorrowIndex, + variableBorrowIndex ]: [string | null, null, null, null, null, null, null]): string[]; }>; }; @@ -31,7 +35,10 @@ export class ReserveLogic extends Contract { on(event: EventFilter | string, listener: Listener): ReserveLogic; once(event: EventFilter | string, listener: Listener): ReserveLogic; - addListener(eventName: EventFilter | string, listener: Listener): ReserveLogic; + addListener( + eventName: EventFilter | string, + listener: Listener + ): ReserveLogic; removeAllListeners(eventName: EventFilter | string): ReserveLogic; removeListener(eventName: any, listener: Listener): ReserveLogic; diff --git a/types/ReserveLogicFactory.ts b/types/ReserveLogicFactory.ts index 18ced3b2..43f746e7 100644 --- a/types/ReserveLogicFactory.ts +++ b/types/ReserveLogicFactory.ts @@ -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 {ReserveLogic} from './ReserveLogic'; +import { TransactionOverrides } from "."; +import { ReserveLogic } from "./ReserveLogic"; export class ReserveLogicFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class ReserveLogicFactory extends ContractFactory { connect(signer: Signer): ReserveLogicFactory { return super.connect(signer) as ReserveLogicFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): ReserveLogic { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): ReserveLogic { return new Contract(address, _abi, signerOrProvider) as ReserveLogic; } } @@ -36,51 +39,51 @@ const _abi = [ inputs: [ { indexed: true, - internalType: 'address', - name: 'reserve', - type: 'address', + internalType: "address", + name: "reserve", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: 'liquidityRate', - type: 'uint256', + internalType: "uint256", + name: "liquidityRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'stableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "stableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'averageStableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "averageStableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'variableBorrowRate', - type: 'uint256', + internalType: "uint256", + name: "variableBorrowRate", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'liquidityIndex', - type: 'uint256', + internalType: "uint256", + name: "liquidityIndex", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'variableBorrowIndex', - type: 'uint256', - }, + internalType: "uint256", + name: "variableBorrowIndex", + type: "uint256" + } ], - name: 'ReserveDataUpdated', - type: 'event', - }, + name: "ReserveDataUpdated", + type: "event" + } ]; const _bytecode = - '0x610fb1610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630c1282ce1461007157806358ba22fa146100af5780637d368d2e146100d25780638acb830b146100ef578063b5887a641461013c578063fade6ba01461018d575b600080fd5b61009d6004803603604081101561008757600080fd5b50803590602001356001600160a01b03166101b9565b60408051918252519081900360200190f35b61009d600480360360408110156100c557600080fd5b508035906020013561021e565b61009d600480360360208110156100e857600080fd5b503561023f565b8180156100fb57600080fd5b5061013a600480360360a081101561011257600080fd5b508035906001600160a01b0360208201351690604081013590606081013590608001356102dd565b005b81801561014857600080fd5b5061013a600480360360a081101561015f57600080fd5b508035906001600160a01b036020820135811691604081013582169160608201358116916080013516610329565b61009d600480360360408110156101a357600080fd5b50803590602001356001600160a01b0316610426565b6000806101c584610459565b9050806101d6576000915050610218565b60006101f16001600160a01b0385163063ffffffff61055916565b9050610213610206828463ffffffff61060316565b839063ffffffff61065d16565b925050505b92915050565b60008260030154600014610236578260030154610238565b815b9392505050565b60008160020154600014156102d1578160090160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b15801561029e57600080fd5b505afa1580156102b2573d6000803e3d6000fd5b505050506040513d60208110156102c857600080fd5b505190506102d8565b5060028101545b919050565b6102e6856106a1565b60006103016102f487610459565b859063ffffffff61060316565b905061031486828563ffffffff61075916565b61032186868560006107b7565b505050505050565b60068501546001600160a01b0316156103735760405162461bcd60e51b8152600401808060200182810382526024815260200180610f376024913960400191505060405180910390fd5b6103a36040518060400160405280600f81526020016e31b0b63634b7339034b734ba17171760891b815250610aa4565b84546103b4576103b1610be6565b85555b60048501546103cb576103c5610be6565b60048601555b6006850180546001600160a01b03199081166001600160a01b03968716179091556007860180548216948616949094179093556008850180548416928516929092179091556009909301805490911692909116919091179055565b600061023861043484610459565b61044d6001600160a01b0385163063ffffffff61055916565b9063ffffffff61060316565b60006102188260080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156104ae57600080fd5b505afa1580156104c2573d6000803e3d6000fd5b505050506040513d60208110156104d857600080fd5b50516007840154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561052157600080fd5b505afa158015610535573d6000803e3d6000fd5b505050506040513d602081101561054b57600080fd5b50519063ffffffff61060316565b600061056483610bf6565b1561057a57506001600160a01b03811631610218565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156105d057600080fd5b505afa1580156105e4573d6000803e3d6000fd5b505050506040513d60208110156105fa57600080fd5b50519050610218565b600082820183811015610238576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000600282046106998361068d610680876b033b2e3c9fd0803ce8000000610c1b565b849063ffffffff61060316565b9063ffffffff610c7416565b949350505050565b60006106ac82610459565b9050801561073557600182015460098301546000916106d891600160a01b900464ffffffffff16610cb6565b83549091506106ee90829063ffffffff610d0116565b83556002830154600984015460009161071491600160a01b900464ffffffffff16610d39565b905061072d846004015482610d0190919063ffffffff16565b600485015550505b50600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b600061077c61076784610d88565b61077084610d88565b9063ffffffff61065d16565b9050600061079861078b610be6565b839063ffffffff61060316565b85549091506107ae90829063ffffffff610d0116565b90945550505050565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b1580156107fe57600080fd5b505afa158015610812573d6000803e3d6000fd5b505050506040513d602081101561082857600080fd5b50516006860154909150600090610851906001600160a01b03878116911663ffffffff61055916565b6009870154909150600090819081906001600160a01b03166357e37af08961088f89610883898d63ffffffff61060316565b9063ffffffff610d9e16565b8c60070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156108df57600080fd5b505afa1580156108f3573d6000803e3d6000fd5b505050506040513d602081101561090957600080fd5b505160088e0154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561095257600080fd5b505afa158015610966573d6000803e3d6000fd5b505050506040513d602081101561097c57600080fd5b5051604080516001600160e01b031960e088901b1681526001600160a01b039095166004860152602485019390935260448401919091526064830152608482018990525160a4808301926060929190829003018186803b1580156109df57600080fd5b505afa1580156109f3573d6000803e3d6000fd5b505050506040513d6060811015610a0957600080fd5b50805160208083015160409384015160018e0184905560038e0182905560028e018190558d5460048f015486518681529485018490528487018c905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a2505050505050505050565b6040516020602482018181528351604484015283516000936a636f6e736f6c652e6c6f67938693928392606401918501908083838a5b83811015610af2578181015183820152602001610ada565b50505050905090810190601f168015610b1f5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b031663104c13eb60e21b178152905182519295509350839250908083835b60208310610b7a5780518252601f199092019160209182019101610b5b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610bda576040519150601f19603f3d011682016040523d82523d6000602084013e610bdf565b606091505b5050505050565b6b033b2e3c9fd0803ce800000090565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b600082610c2a57506000610218565b82820282848281610c3757fe5b04146102385760405162461bcd60e51b8152600401808060200182810382526021815260200180610f5b6021913960400191505060405180910390fd5b600061023883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610de0565b600080610cd04264ffffffffff851663ffffffff610d9e16565b90506000610ce46107676301e13380610d88565b9050610213610cf1610be6565b61044d878463ffffffff610d0116565b60006102386b033b2e3c9fd0803ce800000061068d610d26868663ffffffff610c1b16565b6b019d971e4fe8401e7400000090610603565b600080610d534264ffffffffff851663ffffffff610d9e16565b90506000610d6b856301e1338063ffffffff610c7416565b905061021382610d7c610680610be6565b9063ffffffff610e8216565b600061021882633b9aca0063ffffffff610c1b16565b600061023883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610edc565b60008183610e6c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e31578181015183820152602001610e19565b50505050905090810190601f168015610e5e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610e7857fe5b0495945050505050565b600060028206610e9e576b033b2e3c9fd0803ce8000000610ea0565b825b90506002820491505b811561021857610eb98384610d01565b92506002820615610ed157610ece8184610d01565b90505b600282049150610ea9565b60008184841115610f2e5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610e31578181015183820152602001610e19565b50505090039056fe526573657276652068617320616c7265616479206265656e20696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122006598862a63579dea40d0772bcaeb47e731d9368ce0b7e2063c38fb9ffb0fa0164736f6c63430006080033'; + "0x610e3f610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630c1282ce1461007157806358ba22fa146100af5780637d368d2e146100d25780638acb830b146100ef578063b5887a641461013c578063fade6ba01461018d575b600080fd5b61009d6004803603604081101561008757600080fd5b50803590602001356001600160a01b03166101b9565b60408051918252519081900360200190f35b61009d600480360360408110156100c557600080fd5b508035906020013561021e565b61009d600480360360208110156100e857600080fd5b503561023f565b8180156100fb57600080fd5b5061013a600480360360a081101561011257600080fd5b508035906001600160a01b0360208201351690604081013590606081013590608001356102dd565b005b81801561014857600080fd5b5061013a600480360360a081101561015f57600080fd5b508035906001600160a01b036020820135811691604081013582169160608201358116916080013516610329565b61009d600480360360408110156101a357600080fd5b50803590602001356001600160a01b03166103f6565b6000806101c584610429565b9050806101d6576000915050610218565b60006101f16001600160a01b0385163063ffffffff61052916565b9050610213610206828463ffffffff6105d316565b839063ffffffff61062d16565b925050505b92915050565b60008260030154600014610236578260030154610238565b815b9392505050565b60008160020154600014156102d1578160090160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b15801561029e57600080fd5b505afa1580156102b2573d6000803e3d6000fd5b505050506040513d60208110156102c857600080fd5b505190506102d8565b5060028101545b919050565b6102e685610671565b60006103016102f487610429565b859063ffffffff6105d316565b905061031486828563ffffffff61072916565b6103218686856000610787565b505050505050565b60068501546001600160a01b0316156103735760405162461bcd60e51b8152600401808060200182810382526024815260200180610dc56024913960400191505060405180910390fd5b845461038457610381610a74565b85555b600485015461039b57610395610a74565b60048601555b6006850180546001600160a01b03199081166001600160a01b03968716179091556007860180548216948616949094179093556008850180548416928516929092179091556009909301805490911692909116919091179055565b600061023861040484610429565b61041d6001600160a01b0385163063ffffffff61052916565b9063ffffffff6105d316565b60006102188260080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561047e57600080fd5b505afa158015610492573d6000803e3d6000fd5b505050506040513d60208110156104a857600080fd5b50516007840154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b1580156104f157600080fd5b505afa158015610505573d6000803e3d6000fd5b505050506040513d602081101561051b57600080fd5b50519063ffffffff6105d316565b600061053483610a84565b1561054a57506001600160a01b03811631610218565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156105a057600080fd5b505afa1580156105b4573d6000803e3d6000fd5b505050506040513d60208110156105ca57600080fd5b50519050610218565b600082820183811015610238576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000600282046106698361065d610650876b033b2e3c9fd0803ce8000000610aa9565b849063ffffffff6105d316565b9063ffffffff610b0216565b949350505050565b600061067c82610429565b9050801561070557600182015460098301546000916106a891600160a01b900464ffffffffff16610b44565b83549091506106be90829063ffffffff610b8f16565b8355600283015460098401546000916106e491600160a01b900464ffffffffff16610bc7565b90506106fd846004015482610b8f90919063ffffffff16565b600485015550505b50600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b600061074c61073784610c16565b61074084610c16565b9063ffffffff61062d16565b9050600061076861075b610a74565b839063ffffffff6105d316565b855490915061077e90829063ffffffff610b8f16565b90945550505050565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b1580156107ce57600080fd5b505afa1580156107e2573d6000803e3d6000fd5b505050506040513d60208110156107f857600080fd5b50516006860154909150600090610821906001600160a01b03878116911663ffffffff61052916565b6009870154909150600090819081906001600160a01b03166357e37af08961085f89610853898d63ffffffff6105d316565b9063ffffffff610c2c16565b8c60070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156108af57600080fd5b505afa1580156108c3573d6000803e3d6000fd5b505050506040513d60208110156108d957600080fd5b505160088e0154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561092257600080fd5b505afa158015610936573d6000803e3d6000fd5b505050506040513d602081101561094c57600080fd5b5051604080516001600160e01b031960e088901b1681526001600160a01b039095166004860152602485019390935260448401919091526064830152608482018990525160a4808301926060929190829003018186803b1580156109af57600080fd5b505afa1580156109c3573d6000803e3d6000fd5b505050506040513d60608110156109d957600080fd5b50805160208083015160409384015160018e0184905560038e0182905560028e018190558d5460048f015486518681529485018490528487018c905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a2505050505050505050565b6b033b2e3c9fd0803ce800000090565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b600082610ab857506000610218565b82820282848281610ac557fe5b04146102385760405162461bcd60e51b8152600401808060200182810382526021815260200180610de96021913960400191505060405180910390fd5b600061023883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610c6e565b600080610b5e4264ffffffffff851663ffffffff610c2c16565b90506000610b726107376301e13380610c16565b9050610213610b7f610a74565b61041d878463ffffffff610b8f16565b60006102386b033b2e3c9fd0803ce800000061065d610bb4868663ffffffff610aa916565b6b019d971e4fe8401e74000000906105d3565b600080610be14264ffffffffff851663ffffffff610c2c16565b90506000610bf9856301e1338063ffffffff610b0216565b905061021382610c0a610650610a74565b9063ffffffff610d1016565b600061021882633b9aca0063ffffffff610aa916565b600061023883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610d6a565b60008183610cfa5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610cbf578181015183820152602001610ca7565b50505050905090810190601f168015610cec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610d0657fe5b0495945050505050565b600060028206610d2c576b033b2e3c9fd0803ce8000000610d2e565b825b90506002820491505b811561021857610d478384610b8f565b92506002820615610d5f57610d5c8184610b8f565b90505b600282049150610d37565b60008184841115610dbc5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610cbf578181015183820152602001610ca7565b50505090039056fe526573657276652068617320616c7265616479206265656e20696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220ba659686d387f216200a51ae2d8b7e47745176b09c2873b81cb5134e2feda5a564736f6c63430006080033"; diff --git a/types/StableDebtToken.d.ts b/types/StableDebtToken.d.ts index 044b280a..8d478a6a 100644 --- a/types/StableDebtToken.d.ts +++ b/types/StableDebtToken.d.ts @@ -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 StableDebtTokenInterface extends Interface { functions: { @@ -24,13 +28,13 @@ interface StableDebtTokenInterface extends Interface { encode([_user, _amount]: [string, BigNumberish]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; }>; - getAverageStableRate: TypedFunctionDescription<{encode([]: []): string}>; + getAverageStableRate: TypedFunctionDescription<{ encode([]: []): string }>; getUserLastUpdated: TypedFunctionDescription<{ encode([_user]: [string]): string; @@ -55,25 +59,33 @@ interface StableDebtTokenInterface extends Interface { }>; mint: TypedFunctionDescription<{ - encode([_user, _amount, _rate]: [string, BigNumberish, BigNumberish]): string; + encode([_user, _amount, _rate]: [ + string, + BigNumberish, + BigNumberish + ]): 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<{ @@ -83,21 +95,29 @@ interface StableDebtTokenInterface 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[]; }>; burnDebt: TypedEventDescription<{ - encodeTopics([_user, _amount, _previousBalance, _currentBalance, _balanceIncrease]: [ - null, - null, - null, - null, - null - ]): string[]; + encodeTopics([ + _user, + _amount, + _previousBalance, + _currentBalance, + _balanceIncrease + ]: [null, null, null, null, null]): string[]; }>; mintDebt: TypedEventDescription<{ @@ -107,7 +127,7 @@ interface StableDebtTokenInterface extends Interface { _previousBalance, _currentBalance, _balanceIncrease, - _newRate, + _newRate ]: [null, null, null, null, null, null]): string[]; }>; }; @@ -120,7 +140,10 @@ export class StableDebtToken extends Contract { on(event: EventFilter | string, listener: Listener): StableDebtToken; once(event: EventFilter | string, listener: Listener): StableDebtToken; - addListener(eventName: EventFilter | string, listener: Listener): StableDebtToken; + addListener( + eventName: EventFilter | string, + listener: Listener + ): StableDebtToken; removeAllListeners(eventName: EventFilter | string): StableDebtToken; removeListener(eventName: any, listener: Listener): StableDebtToken; @@ -279,7 +302,11 @@ export class StableDebtToken extends Contract { underlyingAssetAddress(): Promise; 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; @@ -312,7 +339,10 @@ export class StableDebtToken extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; getAverageStableRate(): Promise; @@ -320,7 +350,10 @@ export class StableDebtToken extends Contract { getUserStableRate(_user: string): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; init( _name: string, @@ -330,7 +363,11 @@ export class StableDebtToken extends Contract { _addressesProvider: string ): Promise; - mint(_user: string, _amount: BigNumberish, _rate: BigNumberish): Promise; + mint( + _user: string, + _amount: BigNumberish, + _rate: BigNumberish + ): Promise; name(): Promise; @@ -342,7 +379,11 @@ export class StableDebtToken extends Contract { transfer(recipient: string, _amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, _amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + _amount: BigNumberish + ): Promise; underlyingAssetAddress(): Promise; }; diff --git a/types/StableDebtTokenFactory.ts b/types/StableDebtTokenFactory.ts index d3aceedf..f0b9721c 100644 --- a/types/StableDebtTokenFactory.ts +++ b/types/StableDebtTokenFactory.ts @@ -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 {StableDebtToken} from './StableDebtToken'; +import { TransactionOverrides } from "."; +import { StableDebtToken } from "./StableDebtToken"; export class StableDebtTokenFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class StableDebtTokenFactory extends ContractFactory { connect(signer: Signer): StableDebtTokenFactory { return super.connect(signer) as StableDebtTokenFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): StableDebtToken { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): StableDebtToken { return new Contract(address, _abi, signerOrProvider) as StableDebtToken; } } @@ -36,509 +39,509 @@ 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" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_previousBalance', - type: 'uint256', + internalType: "uint256", + name: "_previousBalance", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_currentBalance', - type: 'uint256', + internalType: "uint256", + name: "_currentBalance", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', - }, + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" + } ], - name: 'burnDebt', - type: 'event', + name: "burnDebt", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_previousBalance', - type: 'uint256', + internalType: "uint256", + name: "_previousBalance", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_currentBalance', - type: 'uint256', + internalType: "uint256", + name: "_currentBalance", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_newRate', - type: 'uint256', - }, + internalType: "uint256", + name: "_newRate", + type: "uint256" + } ], - name: 'mintDebt', - type: 'event', + name: "mintDebt", + 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: '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: '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: [], - 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: '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: [ { - 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" }, { 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506112bc806100206000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806381e75277116100ad578063a457c2d711610071578063a457c2d714610285578063a9059cbb146104be578063c634dfaa146104ea578063dd62ed3e14610510578063e78c9b3b1461053e57610121565b806381e752771461031757806389d1a0fc1461045e57806390f6fcf21461048257806395d89b411461048a5780639dc29fac1461049257610121565b806323b872dd116100f457806323b872dd14610231578063313ce56714610267578063395093511461028557806370a08231146102b157806379ce6b8c146102d757610121565b806306fdde0314610126578063095ea7b3146101a3578063156e29f6146101e357806318160ddd14610217575b600080fd5b61012e610564565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610168578181015183820152602001610150565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101cf600480360360408110156101b957600080fd5b506001600160a01b0381351690602001356105f1565b604080519115158252519081900360200190f35b610215600480360360608110156101f957600080fd5b506001600160a01b038135169060208101359060400135610639565b005b61021f610837565b60408051918252519081900360200190f35b6101cf6004803603606081101561024757600080fd5b506001600160a01b0381358116916020810135909116906040013561083d565b61026f610885565b6040805160ff9092168252519081900360200190f35b6101cf6004803603604081101561029b57600080fd5b506001600160a01b03813516906020013561088e565b61021f600480360360208110156102c757600080fd5b50356001600160a01b03166108dd565b6102fd600480360360208110156102ed57600080fd5b50356001600160a01b0316610987565b6040805164ffffffffff9092168252519081900360200190f35b610215600480360360a081101561032d57600080fd5b81019060208101813564010000000081111561034857600080fd5b82018360208201111561035a57600080fd5b8035906020019184600183028401116401000000008311171561037c57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156103cf57600080fd5b8201836020820111156103e157600080fd5b8035906020019184600183028401116401000000008311171561040357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505060ff8335169350506001600160a01b036020830135811692604001351690506109ac565b610466610a91565b604080516001600160a01b039092168252519081900360200190f35b61021f610aa5565b61012e610aac565b610215600480360360408110156104a857600080fd5b506001600160a01b038135169060200135610b04565b6101cf600480360360408110156104d457600080fd5b506001600160a01b03813516906020013561083d565b61021f6004803603602081101561050057600080fd5b50356001600160a01b0316610c8a565b61021f6004803603604081101561052657600080fd5b506001600160a01b038135811691602001351661088e565b61021f6004803603602081101561055457600080fd5b50356001600160a01b0316610ca5565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105e95780601f106105be576101008083540402835291602001916105e9565b820191906000526020600020905b8154815290600101906020018083116105cc57829003601f168201915b505050505081565b6040805162461bcd60e51b81526020600482015260166024820152751054141493d5905317d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b6004546001600160a01b031633146106825760405162461bcd60e51b81526004018080602001828103825260328152602001806112556032913960400191505060405180910390fd5b61068a61117a565b600080600061069887610cc0565b9250925092506106b386600054610d2e90919063ffffffff16565b84526106be86610d91565b60208501526107406106de6106d9848963ffffffff610d2e16565b610d91565b6020860151610734906106f7908963ffffffff610da716565b61072861070387610d91565b6001600160a01b038d166000908152600760205260409020549063ffffffff610da716565b9063ffffffff610d2e16565b9063ffffffff610deb16565b60408581018290526001600160a01b0389166000908152600760205220908155600101805464ffffffffff19164264ffffffffff1617905583516107be9061078790610d91565b6107346107a1876020015189610da790919063ffffffff16565b6107286107af600054610d91565b6006549063ffffffff610da716565b6006556107cb8787610e23565b60408085015181516001600160a01b038a16815260208101899052808301869052606081018590526080810184905260a081019190915290517f94ba3ac5ed6fee7b49ed817c5ee964eed9bd5da6860344f95fc56997e920381d9181900360c00190a150505050505050565b60005481565b6040805162461bcd60e51b81526020600482015260166024820152751514905394d1915497d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b60035460ff1681565b6040805162461bcd60e51b815260206004820152601760248201527f414c4c4f57414e43455f4e4f545f535550504f525445440000000000000000006044820152905160009181900360640190fd5b6001600160a01b03811660009081526005602052604081205461090257506000610982565b6001600160a01b038216600090815260076020526040812080546001820154919291610935919064ffffffffff16610e81565b905061097d6109788261096c60056000896001600160a01b03166001600160a01b0316815260200190815260200160002054610d91565b9063ffffffff610da716565b610ed9565b925050505b919050565b6001600160a01b031660009081526007602052604090206001015464ffffffffff1690565b84516109bf90600190602088019061119b565b5083516109d390600290602087019061119b565b506003805460ff191660ff851617610100600160a81b0319166101006001600160a01b03858116919091029190911790915560408051630261bf8b60e01b8152905191831691630261bf8b91600480820192602092909190829003018186803b158015610a3f57600080fd5b505afa158015610a53573d6000803e3d6000fd5b505050506040513d6020811015610a6957600080fd5b5051600480546001600160a01b0319166001600160a01b039092169190911790555050505050565b60035461010090046001600160a01b031681565b6006545b90565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156105e95780601f106105be576101008083540402835291602001916105e9565b6004546001600160a01b03163314610b4d5760405162461bcd60e51b81526004018080602001828103825260328152602001806112556032913960400191505060405180910390fd5b6000806000610b5b85610cc0565b9250925092506000610b7885600054610ef990919063ffffffff16565b90506000610b8586610d91565b905081610b96576000600655610bed565b610be9610ba283610d91565b6001600160a01b03891660009081526007602052604090205461073490610bcf908563ffffffff610da716565b610bdd6107af600054610d91565b9063ffffffff610ef916565b6006555b83861415610c20576001600160a01b0387166000908152600760205260408120908155600101805464ffffffffff191690555b610c2a8787610f3b565b604080516001600160a01b038916815260208101889052808201879052606081018690526080810185905290517fecde08620c30706a4d7ba53e9163327f2e12a6cea2709dd6a9226fed28c2bb729181900360a00190a150505050505050565b6001600160a01b031660009081526005602052604090205490565b6001600160a01b031660009081526007602052604090205490565b6001600160a01b0381166000908152600560205260408120548190819080610cf2575060009250829150819050610d27565b6000610d0182610bdd886108dd565b9050610d0d8682610e23565b81610d1e818363ffffffff610d2e16565b90955093509150505b9193909250565b600082820183811015610d88576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000610d8b82633b9aca0063ffffffff610f7916565b6000610d886b033b2e3c9fd0803ce8000000610ddf610dcc868663ffffffff610f7916565b6b019d971e4fe8401e7400000090610d2e565b9063ffffffff610fd216565b600060028204610e1b83610ddf610e0e876b033b2e3c9fd0803ce8000000610f79565b849063ffffffff610d2e16565b949350505050565b600054610e36908263ffffffff610d2e16565b60009081556001600160a01b038316815260056020526040902054610e61908263ffffffff610d2e16565b6001600160a01b0390921660009081526005602052604090209190915550565b600080610e9b4264ffffffffff851663ffffffff610ef916565b90506000610eb3856301e1338063ffffffff610fd216565b9050610ed082610ec4610e0e611014565b9063ffffffff61102416565b95945050505050565b6000631dcd6500610ef2633b9aca00610ddf8386610d2e565b9392505050565b6000610d8883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061107e565b600054610f4e908263ffffffff610ef916565b60009081556001600160a01b038316815260056020526040902054610e61908263ffffffff610ef916565b600082610f8857506000610d8b565b82820282848281610f9557fe5b0414610d885760405162461bcd60e51b81526004018080602001828103825260218152602001806112346021913960400191505060405180910390fd5b6000610d8883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611115565b6b033b2e3c9fd0803ce800000090565b600060028206611040576b033b2e3c9fd0803ce8000000611042565b825b90506002820491505b8115610d8b5761105b8384610da7565b92506002820615611073576110708184610da7565b90505b60028204915061104b565b6000818484111561110d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156110d25781810151838201526020016110ba565b50505050905090810190601f1680156110ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836111645760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156110d25781810151838201526020016110ba565b50600083858161117057fe5b0495945050505050565b60405180606001604052806000815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111dc57805160ff1916838001178555611209565b82800160010185558215611209579182015b828111156112095782518255916020019190600101906111ee565b50611215929150611219565b5090565b610aa991905b80821115611215576000815560010161121f56fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468652063616c6c6572206f6620746869732066756e6374696f6e206d7573742062652061206c656e64696e6720706f6f6ca2646970667358221220970689f3bb696083754805ce3d8f92b7a8571b3df7e77f59d7aaf05d63891ae764736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506112bc806100206000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806381e75277116100ad578063a457c2d711610071578063a457c2d714610285578063a9059cbb146104be578063c634dfaa146104ea578063dd62ed3e14610510578063e78c9b3b1461053e57610121565b806381e752771461031757806389d1a0fc1461045e57806390f6fcf21461048257806395d89b411461048a5780639dc29fac1461049257610121565b806323b872dd116100f457806323b872dd14610231578063313ce56714610267578063395093511461028557806370a08231146102b157806379ce6b8c146102d757610121565b806306fdde0314610126578063095ea7b3146101a3578063156e29f6146101e357806318160ddd14610217575b600080fd5b61012e610564565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610168578181015183820152602001610150565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101cf600480360360408110156101b957600080fd5b506001600160a01b0381351690602001356105f1565b604080519115158252519081900360200190f35b610215600480360360608110156101f957600080fd5b506001600160a01b038135169060208101359060400135610639565b005b61021f610837565b60408051918252519081900360200190f35b6101cf6004803603606081101561024757600080fd5b506001600160a01b0381358116916020810135909116906040013561083d565b61026f610885565b6040805160ff9092168252519081900360200190f35b6101cf6004803603604081101561029b57600080fd5b506001600160a01b03813516906020013561088e565b61021f600480360360208110156102c757600080fd5b50356001600160a01b03166108dd565b6102fd600480360360208110156102ed57600080fd5b50356001600160a01b0316610987565b6040805164ffffffffff9092168252519081900360200190f35b610215600480360360a081101561032d57600080fd5b81019060208101813564010000000081111561034857600080fd5b82018360208201111561035a57600080fd5b8035906020019184600183028401116401000000008311171561037c57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156103cf57600080fd5b8201836020820111156103e157600080fd5b8035906020019184600183028401116401000000008311171561040357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505060ff8335169350506001600160a01b036020830135811692604001351690506109ac565b610466610a91565b604080516001600160a01b039092168252519081900360200190f35b61021f610aa5565b61012e610aac565b610215600480360360408110156104a857600080fd5b506001600160a01b038135169060200135610b04565b6101cf600480360360408110156104d457600080fd5b506001600160a01b03813516906020013561083d565b61021f6004803603602081101561050057600080fd5b50356001600160a01b0316610c8a565b61021f6004803603604081101561052657600080fd5b506001600160a01b038135811691602001351661088e565b61021f6004803603602081101561055457600080fd5b50356001600160a01b0316610ca5565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105e95780601f106105be576101008083540402835291602001916105e9565b820191906000526020600020905b8154815290600101906020018083116105cc57829003601f168201915b505050505081565b6040805162461bcd60e51b81526020600482015260166024820152751054141493d5905317d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b6004546001600160a01b031633146106825760405162461bcd60e51b81526004018080602001828103825260328152602001806112556032913960400191505060405180910390fd5b61068a61117a565b600080600061069887610cc0565b9250925092506106b386600054610d2e90919063ffffffff16565b84526106be86610d91565b60208501526107406106de6106d9848963ffffffff610d2e16565b610d91565b6020860151610734906106f7908963ffffffff610da716565b61072861070387610d91565b6001600160a01b038d166000908152600760205260409020549063ffffffff610da716565b9063ffffffff610d2e16565b9063ffffffff610deb16565b60408581018290526001600160a01b0389166000908152600760205220908155600101805464ffffffffff19164264ffffffffff1617905583516107be9061078790610d91565b6107346107a1876020015189610da790919063ffffffff16565b6107286107af600054610d91565b6006549063ffffffff610da716565b6006556107cb8787610e23565b60408085015181516001600160a01b038a16815260208101899052808301869052606081018590526080810184905260a081019190915290517f94ba3ac5ed6fee7b49ed817c5ee964eed9bd5da6860344f95fc56997e920381d9181900360c00190a150505050505050565b60005481565b6040805162461bcd60e51b81526020600482015260166024820152751514905394d1915497d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b60035460ff1681565b6040805162461bcd60e51b815260206004820152601760248201527f414c4c4f57414e43455f4e4f545f535550504f525445440000000000000000006044820152905160009181900360640190fd5b6001600160a01b03811660009081526005602052604081205461090257506000610982565b6001600160a01b038216600090815260076020526040812080546001820154919291610935919064ffffffffff16610e81565b905061097d6109788261096c60056000896001600160a01b03166001600160a01b0316815260200190815260200160002054610d91565b9063ffffffff610da716565b610ed9565b925050505b919050565b6001600160a01b031660009081526007602052604090206001015464ffffffffff1690565b84516109bf90600190602088019061119b565b5083516109d390600290602087019061119b565b506003805460ff191660ff851617610100600160a81b0319166101006001600160a01b03858116919091029190911790915560408051630261bf8b60e01b8152905191831691630261bf8b91600480820192602092909190829003018186803b158015610a3f57600080fd5b505afa158015610a53573d6000803e3d6000fd5b505050506040513d6020811015610a6957600080fd5b5051600480546001600160a01b0319166001600160a01b039092169190911790555050505050565b60035461010090046001600160a01b031681565b6006545b90565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156105e95780601f106105be576101008083540402835291602001916105e9565b6004546001600160a01b03163314610b4d5760405162461bcd60e51b81526004018080602001828103825260328152602001806112556032913960400191505060405180910390fd5b6000806000610b5b85610cc0565b9250925092506000610b7885600054610ef990919063ffffffff16565b90506000610b8586610d91565b905081610b96576000600655610bed565b610be9610ba283610d91565b6001600160a01b03891660009081526007602052604090205461073490610bcf908563ffffffff610da716565b610bdd6107af600054610d91565b9063ffffffff610ef916565b6006555b83861415610c20576001600160a01b0387166000908152600760205260408120908155600101805464ffffffffff191690555b610c2a8787610f3b565b604080516001600160a01b038916815260208101889052808201879052606081018690526080810185905290517fecde08620c30706a4d7ba53e9163327f2e12a6cea2709dd6a9226fed28c2bb729181900360a00190a150505050505050565b6001600160a01b031660009081526005602052604090205490565b6001600160a01b031660009081526007602052604090205490565b6001600160a01b0381166000908152600560205260408120548190819080610cf2575060009250829150819050610d27565b6000610d0182610bdd886108dd565b9050610d0d8682610e23565b81610d1e818363ffffffff610d2e16565b90955093509150505b9193909250565b600082820183811015610d88576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000610d8b82633b9aca0063ffffffff610f7916565b6000610d886b033b2e3c9fd0803ce8000000610ddf610dcc868663ffffffff610f7916565b6b019d971e4fe8401e7400000090610d2e565b9063ffffffff610fd216565b600060028204610e1b83610ddf610e0e876b033b2e3c9fd0803ce8000000610f79565b849063ffffffff610d2e16565b949350505050565b600054610e36908263ffffffff610d2e16565b60009081556001600160a01b038316815260056020526040902054610e61908263ffffffff610d2e16565b6001600160a01b0390921660009081526005602052604090209190915550565b600080610e9b4264ffffffffff851663ffffffff610ef916565b90506000610eb3856301e1338063ffffffff610fd216565b9050610ed082610ec4610e0e611014565b9063ffffffff61102416565b95945050505050565b6000631dcd6500610ef2633b9aca00610ddf8386610d2e565b9392505050565b6000610d8883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061107e565b600054610f4e908263ffffffff610ef916565b60009081556001600160a01b038316815260056020526040902054610e61908263ffffffff610ef916565b600082610f8857506000610d8b565b82820282848281610f9557fe5b0414610d885760405162461bcd60e51b81526004018080602001828103825260218152602001806112346021913960400191505060405180910390fd5b6000610d8883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611115565b6b033b2e3c9fd0803ce800000090565b600060028206611040576b033b2e3c9fd0803ce8000000611042565b825b90506002820491505b8115610d8b5761105b8384610da7565b92506002820615611073576110708184610da7565b90505b60028204915061104b565b6000818484111561110d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156110d25781810151838201526020016110ba565b50505050905090810190601f1680156110ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836111645760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156110d25781810151838201526020016110ba565b50600083858161117057fe5b0495945050505050565b60405180606001604052806000815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111dc57805160ff1916838001178555611209565b82800160010185558215611209579182015b828111156112095782518255916020019190600101906111ee565b50611215929150611219565b5090565b610aa991905b80821115611215576000815560010161121f56fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468652063616c6c6572206f6620746869732066756e6374696f6e206d7573742062652061206c656e64696e6720706f6f6ca2646970667358221220150e56becc87e979b179a307b7e0575eddaabc1009b91b3137995943cd486d9564736f6c63430006080033"; diff --git a/types/TokenDistributor.d.ts b/types/TokenDistributor.d.ts index e44181a3..54871b1b 100644 --- a/types/TokenDistributor.d.ts +++ b/types/TokenDistributor.d.ts @@ -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 TokenDistributorInterface extends Interface { functions: { - DISTRIBUTION_BASE: TypedFunctionDescription<{encode([]: []): string}>; + DISTRIBUTION_BASE: TypedFunctionDescription<{ encode([]: []): string }>; IMPLEMENTATION_REVISION: TypedFunctionDescription<{ encode([]: []): string; @@ -18,11 +22,11 @@ interface TokenDistributorInterface extends Interface { encode([]: []): string; }>; - MAX_UINT: TypedFunctionDescription<{encode([]: []): string}>; + MAX_UINT: TypedFunctionDescription<{ encode([]: []): string }>; - MAX_UINT_MINUS_ONE: TypedFunctionDescription<{encode([]: []): string}>; + MAX_UINT_MINUS_ONE: TypedFunctionDescription<{ encode([]: []): string }>; - MIN_CONVERSION_RATE: TypedFunctionDescription<{encode([]: []): string}>; + MIN_CONVERSION_RATE: TypedFunctionDescription<{ encode([]: []): string }>; approveExchange: TypedFunctionDescription<{ encode([_tokens]: [string[]]): string; @@ -40,31 +44,35 @@ interface TokenDistributorInterface extends Interface { encode([_tokens, _percentages]: [string[], BigNumberish[]]): string; }>; - exchangeAdapter: TypedFunctionDescription<{encode([]: []): string}>; + exchangeAdapter: TypedFunctionDescription<{ encode([]: []): string }>; - getDistribution: TypedFunctionDescription<{encode([]: []): string}>; + getDistribution: TypedFunctionDescription<{ encode([]: []): string }>; initialize: TypedFunctionDescription<{ - encode([_recipientBurn, _tokenToBurn, _exchangeAdapter, _receivers, _percentages, _tokens]: [ - string, - string, - string, - string[], - BigNumberish[], - string[] - ]): string; + encode([ + _recipientBurn, + _tokenToBurn, + _exchangeAdapter, + _receivers, + _percentages, + _tokens + ]: [string, string, string, string[], BigNumberish[], string[]]): string; }>; - recipientBurn: TypedFunctionDescription<{encode([]: []): string}>; + recipientBurn: TypedFunctionDescription<{ encode([]: []): string }>; - tokenToBurn: TypedFunctionDescription<{encode([]: []): string}>; + tokenToBurn: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { - Burn: TypedEventDescription<{encodeTopics([amount]: [null]): string[]}>; + Burn: TypedEventDescription<{ encodeTopics([amount]: [null]): string[] }>; Distributed: TypedEventDescription<{ - encodeTopics([receiver, percentage, amount]: [null, null, null]): string[]; + encodeTopics([receiver, percentage, amount]: [ + null, + null, + null + ]): string[]; }>; DistributionUpdated: TypedEventDescription<{ @@ -72,7 +80,11 @@ interface TokenDistributorInterface extends Interface { }>; Setup: TypedEventDescription<{ - encodeTopics([tokenToBurn, exchangeAdapter, _recipientBurn]: [null, null, null]): string[]; + encodeTopics([tokenToBurn, exchangeAdapter, _recipientBurn]: [ + null, + null, + null + ]): string[]; }>; }; } @@ -84,7 +96,10 @@ export class TokenDistributor extends Contract { on(event: EventFilter | string, listener: Listener): TokenDistributor; once(event: EventFilter | string, listener: Listener): TokenDistributor; - addListener(eventName: EventFilter | string, listener: Listener): TokenDistributor; + addListener( + eventName: EventFilter | string, + listener: Listener + ): TokenDistributor; removeAllListeners(eventName: EventFilter | string): TokenDistributor; removeListener(eventName: any, listener: Listener): TokenDistributor; @@ -108,7 +123,10 @@ export class TokenDistributor extends Contract { overrides?: TransactionOverrides ): Promise; - distribute(_tokens: string[], overrides?: TransactionOverrides): Promise; + distribute( + _tokens: string[], + overrides?: TransactionOverrides + ): Promise; distributeWithAmounts( _tokens: string[], @@ -163,7 +181,10 @@ export class TokenDistributor extends Contract { overrides?: TransactionOverrides ): Promise; - distribute(_tokens: string[], overrides?: TransactionOverrides): Promise; + distribute( + _tokens: string[], + overrides?: TransactionOverrides + ): Promise; distributeWithAmounts( _tokens: string[], @@ -207,7 +228,11 @@ export class TokenDistributor extends Contract { DistributionUpdated(receivers: null, percentages: null): EventFilter; - Setup(tokenToBurn: null, exchangeAdapter: null, _recipientBurn: null): EventFilter; + Setup( + tokenToBurn: null, + exchangeAdapter: null, + _recipientBurn: null + ): EventFilter; }; estimate: { @@ -227,9 +252,15 @@ export class TokenDistributor extends Contract { distribute(_tokens: string[]): Promise; - distributeWithAmounts(_tokens: string[], _amounts: BigNumberish[]): Promise; + distributeWithAmounts( + _tokens: string[], + _amounts: BigNumberish[] + ): Promise; - distributeWithPercentages(_tokens: string[], _percentages: BigNumberish[]): Promise; + distributeWithPercentages( + _tokens: string[], + _percentages: BigNumberish[] + ): Promise; exchangeAdapter(): Promise; diff --git a/types/TokenDistributorFactory.ts b/types/TokenDistributorFactory.ts index 73b54467..b6fe2d71 100644 --- a/types/TokenDistributorFactory.ts +++ b/types/TokenDistributorFactory.ts @@ -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 {TokenDistributor} from './TokenDistributor'; +import { TransactionOverrides } from "."; +import { TokenDistributor } from "./TokenDistributor"; export class TokenDistributorFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class TokenDistributorFactory extends ContractFactory { connect(signer: Signer): TokenDistributorFactory { return super.connect(signer) as TokenDistributorFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): TokenDistributor { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): TokenDistributor { return new Contract(address, _abi, signerOrProvider) as TokenDistributor; } } @@ -36,323 +39,323 @@ const _abi = [ inputs: [ { indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, + internalType: "uint256", + name: "amount", + type: "uint256" + } ], - name: 'Burn', - type: 'event', + name: "Burn", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: 'receiver', - type: 'address', + internalType: "address", + name: "receiver", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: 'percentage', - type: 'uint256', + internalType: "uint256", + name: "percentage", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, + internalType: "uint256", + name: "amount", + type: "uint256" + } ], - name: 'Distributed', - type: 'event', + name: "Distributed", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address[]', - name: 'receivers', - type: 'address[]', + internalType: "address[]", + name: "receivers", + type: "address[]" }, { indexed: false, - internalType: 'uint256[]', - name: 'percentages', - type: 'uint256[]', - }, + internalType: "uint256[]", + name: "percentages", + type: "uint256[]" + } ], - name: 'DistributionUpdated', - type: 'event', + name: "DistributionUpdated", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: 'tokenToBurn', - type: 'address', + internalType: "address", + name: "tokenToBurn", + type: "address" }, { indexed: false, - internalType: 'contract IExchangeAdapter', - name: 'exchangeAdapter', - type: 'address', + internalType: "contract IExchangeAdapter", + name: "exchangeAdapter", + type: "address" }, { indexed: false, - internalType: 'address', - name: '_recipientBurn', - type: 'address', - }, + internalType: "address", + name: "_recipientBurn", + type: "address" + } ], - name: 'Setup', - type: 'event', + name: "Setup", + type: "event" }, { inputs: [], - name: 'DISTRIBUTION_BASE', + name: "DISTRIBUTION_BASE", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'IMPLEMENTATION_REVISION', + name: "IMPLEMENTATION_REVISION", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'KYBER_ETH_MOCK_ADDRESS', + name: "KYBER_ETH_MOCK_ADDRESS", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'MAX_UINT', + name: "MAX_UINT", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'MAX_UINT_MINUS_ONE', + name: "MAX_UINT_MINUS_ONE", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'MIN_CONVERSION_RATE', + name: "MIN_CONVERSION_RATE", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { 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: 'contract IERC20[]', - name: '_tokens', - type: 'address[]', - }, + internalType: "contract IERC20[]", + name: "_tokens", + type: "address[]" + } ], - name: 'distribute', + name: "distribute", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'contract IERC20[]', - name: '_tokens', - type: 'address[]', + internalType: "contract IERC20[]", + name: "_tokens", + type: "address[]" }, { - internalType: 'uint256[]', - name: '_amounts', - type: 'uint256[]', - }, + internalType: "uint256[]", + name: "_amounts", + type: "uint256[]" + } ], - name: 'distributeWithAmounts', + name: "distributeWithAmounts", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [ { - internalType: 'contract IERC20[]', - name: '_tokens', - type: 'address[]', + internalType: "contract IERC20[]", + name: "_tokens", + type: "address[]" }, { - internalType: 'uint256[]', - name: '_percentages', - type: 'uint256[]', - }, + internalType: "uint256[]", + name: "_percentages", + type: "uint256[]" + } ], - name: 'distributeWithPercentages', + name: "distributeWithPercentages", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [], - name: 'exchangeAdapter', + name: "exchangeAdapter", outputs: [ { - internalType: 'contract IExchangeAdapter', - name: '', - type: 'address', - }, + internalType: "contract IExchangeAdapter", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'getDistribution', + name: "getDistribution", outputs: [ { - internalType: 'address[]', - name: 'receivers', - type: 'address[]', + internalType: "address[]", + name: "receivers", + type: "address[]" }, { - internalType: 'uint256[]', - name: 'percentages', - type: 'uint256[]', - }, + internalType: "uint256[]", + name: "percentages", + type: "uint256[]" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [ { - internalType: 'address', - name: '_recipientBurn', - type: 'address', + internalType: "address", + name: "_recipientBurn", + type: "address" }, { - internalType: 'address', - name: '_tokenToBurn', - type: 'address', + internalType: "address", + name: "_tokenToBurn", + type: "address" }, { - internalType: 'contract IExchangeAdapter', - name: '_exchangeAdapter', - type: 'address', + internalType: "contract IExchangeAdapter", + name: "_exchangeAdapter", + type: "address" }, { - internalType: 'address[]', - name: '_receivers', - type: 'address[]', + internalType: "address[]", + name: "_receivers", + type: "address[]" }, { - internalType: 'uint256[]', - name: '_percentages', - type: 'uint256[]', + internalType: "uint256[]", + name: "_percentages", + type: "uint256[]" }, { - internalType: 'contract IERC20[]', - name: '_tokens', - type: 'address[]', - }, + internalType: "contract IERC20[]", + name: "_tokens", + type: "address[]" + } ], - name: 'initialize', + name: "initialize", outputs: [], - stateMutability: 'nonpayable', - type: 'function', + stateMutability: "nonpayable", + type: "function" }, { inputs: [], - name: 'recipientBurn', + name: "recipientBurn", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { inputs: [], - name: 'tokenToBurn', + name: "tokenToBurn", outputs: [ { - internalType: 'address', - name: '', - type: 'address', - }, + internalType: "address", + name: "", + type: "address" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { - stateMutability: 'payable', - type: 'receive', - }, + stateMutability: "payable", + type: "receive" + } ]; const _bytecode = - '0x6080604052600060015534801561001557600080fd5b506001600055611a5a8061002a6000396000f3fe6080604052600436106100ec5760003560e01c80634f1b86eb1161008a57806393ed43091161005957806393ed4309146104ff578063cc8cc9d8146105ad578063e5b5019a146106dd578063eed64c30146106f2576100f3565b80634f1b86eb146102525780636138889b146102675780637623bac5146103175780638c0c9a25146104ea576100f3565b8063217ab806116100c6578063217ab806146101e257806323879bb1146102135780632cbcda251461022857806340d58a4a1461023d576100f3565b8063043c41d4146100f8578063135206581461011f5780631cced51b14610134576100f3565b366100f357005b600080fd5b34801561010457600080fd5b5061010d610822565b60408051918252519081900360200190f35b34801561012b57600080fd5b5061010d610828565b34801561014057600080fd5b5061014961082e565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561018d578181015183820152602001610175565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156101cc5781810151838201526020016101b4565b5050505090500194505050505060405180910390f35b3480156101ee57600080fd5b506101f76108eb565b604080516001600160a01b039092168252519081900360200190f35b34801561021f57600080fd5b5061010d6108fa565b34801561023457600080fd5b506101f76108ff565b34801561024957600080fd5b5061010d61090e565b34801561025e57600080fd5b506101f7610913565b34801561027357600080fd5b506103156004803603602081101561028a57600080fd5b810190602081018135600160201b8111156102a457600080fd5b8201836020820111156102b657600080fd5b803590602001918460208302840111600160201b831117156102d757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610922945050505050565b005b34801561032357600080fd5b50610315600480360360c081101561033a57600080fd5b6001600160a01b0382358116926020810135821692604082013590921691810190608081016060820135600160201b81111561037557600080fd5b82018360208201111561038757600080fd5b803590602001918460208302840111600160201b831117156103a857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f757600080fd5b82018360208201111561040957600080fd5b803590602001918460208302840111600160201b8311171561042a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561047957600080fd5b82018360208201111561048b57600080fd5b803590602001918460208302840111600160201b831117156104ac57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061099a945050505050565b3480156104f657600080fd5b506101f7610ad9565b34801561050b57600080fd5b506103156004803603602081101561052257600080fd5b810190602081018135600160201b81111561053c57600080fd5b82018360208201111561054e57600080fd5b803590602001918460208302840111600160201b8311171561056f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610af1945050505050565b3480156105b957600080fd5b50610315600480360360408110156105d057600080fd5b810190602081018135600160201b8111156105ea57600080fd5b8201836020820111156105fc57600080fd5b803590602001918460208302840111600160201b8311171561061d57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561066c57600080fd5b82018360208201111561067e57600080fd5b803590602001918460208302840111600160201b8311171561069f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c23945050505050565b3480156106e957600080fd5b5061010d610c6c565b3480156106fe57600080fd5b506103156004803603604081101561071557600080fd5b810190602081018135600160201b81111561072f57600080fd5b82018360208201111561074157600080fd5b803590602001918460208302840111600160201b8311171561076257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156107b157600080fd5b8201836020820111156107c357600080fd5b803590602001918460208302840111600160201b831117156107e457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c72945050505050565b60011981565b61271081565b606080603560000180548060200260200160405190810160405280929190818152602001828054801561088a57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161086c575b5050505050915060356001018054806020026020016040519081016040528092919081815260200182805480156108e057602002820191906000526020600020905b8154815260200190600101908083116108cc575b505050505090509091565b6038546001600160a01b031681565b600381565b6039546001600160a01b031681565b600181565b6037546001600160a01b031681565b60005b815181101561099657600061095f3084848151811061094057fe5b60200260200101516001600160a01b0316610ced90919063ffffffff16565b90506000811161096f575061098e565b61098c83838151811061097e57fe5b602002602001015182610d99565b505b600101610925565b5050565b60006109a4611115565b60025490915060ff16806109bb57506109bb61111b565b806109c7575060015481115b610a025760405162461bcd60e51b815260040180806020018281038252602e815260200180611994602e913960400191505060405180910390fd5b60025460ff16158015610a23576002805460ff191660019081179091558290555b603880546001600160a01b03808b166001600160a01b031992831617909255603780548a84169083161790556039805492891692909116919091179055610a6a8585611121565b610a7383610af1565b604080516001600160a01b03808a16825280891660208301528a168183015290517f99566d155bc7902033d8db6b0f091f12209d9651abdae3aad004632bd3e657b59181900360600190a18015610acf576002805460ff191690555b5050505050505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b6039546040516020602482018181528451604484015284516000946001600160a01b0316936393ed430960e01b9387939283926064019180860191028083838b5b83811015610b4a578181015183820152602001610b32565b5050505090500192505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b60208310610bb75780518252601f199092019160209182019101610b98565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610c17576040519150601f19603f3d011682016040523d82523d6000602084013e610c1c565b606091505b5050505050565b60005b8251811015610c6757610c5f838281518110610c3e57fe5b6020026020010151838381518110610c5257fe5b6020026020010151610d99565b600101610c26565b505050565b60001981565b60005b8251811015610c67576000610cc46064610cb8858581518110610c9457fe5b6020026020010151610cac3089888151811061094057fe5b9063ffffffff61127b16565b9063ffffffff6112db16565b905060008111610cd45750610ce5565b610ce384838151811061097e57fe5b505b600101610c75565b6000610cf88361131d565b15610d0e57506001600160a01b03811631610d93565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610d6457600080fd5b505afa158015610d78573d6000803e3d6000fd5b505050506040513d6020811015610d8e57600080fd5b505190505b92915050565b81610da261186e565b604080516035805460606020820284018101855293830181815292939192849290918491840182828015610dff57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610de1575b5050505050815260200160018201805480602002602001604051908101604052809291908181526020018280548015610e5757602002820191906000526020600020905b815481526020019060010190808311610e43575b505050505081525050905060008090505b815151811015610c1c576000610ea4612710610cb885602001518581518110610e8d57fe5b60200260200101518861127b90919063ffffffff16565b905080610eb1575061110d565b825180516000919084908110610ec357fe5b60200260200101516001600160a01b031614610f8d57610f0e83600001518381518110610eec57fe5b602002602001015182886001600160a01b03166113429092919063ffffffff16565b7f60ce3cc2d133631eac66a476f14997a9fa682bd05a60dd993cf02285822d78d883600001518381518110610f3f57fe5b602002602001015184602001518481518110610f5757fe5b602090810291909101810151604080516001600160a01b03909416845291830152818101849052519081900360600190a161110b565b60375481906001600160a01b0386811691161461110057603954603754604080516001600160a01b038981166024830152928316604482015260648101869052600a6084808301919091528251808303909101815260a490910182526020810180516001600160e01b0316630ed2fc9560e01b17815291518151600095606095169382918083835b602083106110345780518252601f199092019160209182019101611015565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114611094576040519150601f19603f3d011682016040523d82523d6000602084013e611099565b606091505b5091509150816110e4576040805162461bcd60e51b81526020600482015260116024820152704552524f525f4f4e5f45584348414e474560781b604482015290519081900360640190fd5b8080602001905160208110156110f957600080fd5b5051925050505b6111098161141b565b505b505b600101610e68565b60035b90565b303b1590565b8051825114611177576040805162461bcd60e51b815260206004820152601d60248201527f4172726179206c656e677468732073686f756c6420626520657175616c000000604482015290519081900360640190fd5b604080518082019091528281526020808201839052835160359161119f918391870190611888565b5060208281015180516111b892600185019201906118ed565b509050507fdc9f439f707945ade720b0154668dd64af0689fb88b40abdb0f0289156d23e9d8282604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561122357818101518382015260200161120b565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561126257818101518382015260200161124a565b5050505090500194505050505060405180910390a15050565b60008261128a57506000610d93565b8282028284828161129757fe5b04146112d45760405162461bcd60e51b81526004018080602001828103825260218152602001806119736021913960400191505060405180910390fd5b9392505050565b60006112d483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611511565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b8061134c57610c67565b6113558361131d565b15611401576040516000906001600160a01b0384169061c35090849084818181858888f193505050503d80600081146113aa576040519150601f19603f3d011682016040523d82523d6000602084013e6113af565b606091505b50509050806113fb576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b50610c67565b610c676001600160a01b038416838363ffffffff6115b316565b6037546038546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051919092169163a9059cbb9160448083019260209291908290030181600087803b15801561147457600080fd5b505af1158015611488573d6000803e3d6000fd5b505050506040513d602081101561149e57600080fd5b50516114db5760405162461bcd60e51b81526004018080602001828103825260398152602001806119c26039913960400191505060405180910390fd5b6040805182815290517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9181900360200190a150565b6000818361159d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561156257818101518382015260200161154a565b50505050905090810190601f16801561158f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816115a957fe5b0495945050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c679084906060611655826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116b19092919063ffffffff16565b805190915015610c675780806020019051602081101561167457600080fd5b5051610c675760405162461bcd60e51b815260040180806020018281038252602a8152602001806119fb602a913960400191505060405180910390fd5b60606116c084846000856116c8565b949350505050565b60606116d385611835565b611724576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117635780518252601f199092019160209182019101611744565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117c5576040519150601f19603f3d011682016040523d82523d6000602084013e6117ca565b606091505b509150915081156117de5791506116c09050565b8051156117ee5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561156257818101518382015260200161154a565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906116c0575050151592915050565b604051806040016040528060608152602001606081525090565b8280548282559060005260206000209081019282156118dd579160200282015b828111156118dd57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906118a8565b506118e9929150611934565b5090565b828054828255906000526020600020908101928215611928579160200282015b8281111561192857825182559160200191906001019061190d565b506118e9929150611958565b61111891905b808211156118e95780546001600160a01b031916815560010161193a565b61111891905b808211156118e9576000815560010161195e56fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564494e5445524e414c5f4255524e2e205265766572746564207472616e7366657220746f20726563697069656e744275726e20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c2481c0207487fa2db3c8ece246fc3c7034351874bf478a2227705ed0aa77de264736f6c63430006080033'; + "0x6080604052600060015534801561001557600080fd5b506001600055611ad38061002a6000396000f3fe6080604052600436106100ec5760003560e01c80634f1b86eb1161008a57806393ed43091161005957806393ed4309146104ff578063cc8cc9d8146105ad578063e5b5019a146106dd578063eed64c30146106f2576100f3565b80634f1b86eb146102525780636138889b146102675780637623bac5146103175780638c0c9a25146104ea576100f3565b8063217ab806116100c6578063217ab806146101e257806323879bb1146102135780632cbcda251461022857806340d58a4a1461023d576100f3565b8063043c41d4146100f8578063135206581461011f5780631cced51b14610134576100f3565b366100f357005b600080fd5b34801561010457600080fd5b5061010d610822565b60408051918252519081900360200190f35b34801561012b57600080fd5b5061010d610828565b34801561014057600080fd5b5061014961082e565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561018d578181015183820152602001610175565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156101cc5781810151838201526020016101b4565b5050505090500194505050505060405180910390f35b3480156101ee57600080fd5b506101f76108eb565b604080516001600160a01b039092168252519081900360200190f35b34801561021f57600080fd5b5061010d6108fa565b34801561023457600080fd5b506101f76108ff565b34801561024957600080fd5b5061010d61090e565b34801561025e57600080fd5b506101f7610913565b34801561027357600080fd5b506103156004803603602081101561028a57600080fd5b810190602081018135600160201b8111156102a457600080fd5b8201836020820111156102b657600080fd5b803590602001918460208302840111600160201b831117156102d757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610922945050505050565b005b34801561032357600080fd5b50610315600480360360c081101561033a57600080fd5b6001600160a01b0382358116926020810135821692604082013590921691810190608081016060820135600160201b81111561037557600080fd5b82018360208201111561038757600080fd5b803590602001918460208302840111600160201b831117156103a857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f757600080fd5b82018360208201111561040957600080fd5b803590602001918460208302840111600160201b8311171561042a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561047957600080fd5b82018360208201111561048b57600080fd5b803590602001918460208302840111600160201b831117156104ac57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061099a945050505050565b3480156104f657600080fd5b506101f7610ad9565b34801561050b57600080fd5b506103156004803603602081101561052257600080fd5b810190602081018135600160201b81111561053c57600080fd5b82018360208201111561054e57600080fd5b803590602001918460208302840111600160201b8311171561056f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610af1945050505050565b3480156105b957600080fd5b50610315600480360360408110156105d057600080fd5b810190602081018135600160201b8111156105ea57600080fd5b8201836020820111156105fc57600080fd5b803590602001918460208302840111600160201b8311171561061d57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561066c57600080fd5b82018360208201111561067e57600080fd5b803590602001918460208302840111600160201b8311171561069f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c23945050505050565b3480156106e957600080fd5b5061010d610c6c565b3480156106fe57600080fd5b506103156004803603604081101561071557600080fd5b810190602081018135600160201b81111561072f57600080fd5b82018360208201111561074157600080fd5b803590602001918460208302840111600160201b8311171561076257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156107b157600080fd5b8201836020820111156107c357600080fd5b803590602001918460208302840111600160201b831117156107e457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c72945050505050565b60011981565b61271081565b606080603560000180548060200260200160405190810160405280929190818152602001828054801561088a57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161086c575b5050505050915060356001018054806020026020016040519081016040528092919081815260200182805480156108e057602002820191906000526020600020905b8154815260200190600101908083116108cc575b505050505090509091565b6038546001600160a01b031681565b600381565b6039546001600160a01b031681565b600181565b6037546001600160a01b031681565b60005b815181101561099657600061095f3084848151811061094057fe5b60200260200101516001600160a01b0316610cdc90919063ffffffff16565b90506000811161096f575061098e565b61098c83838151811061097e57fe5b602002602001015182610d88565b505b600101610925565b5050565b60006109a4611110565b60025490915060ff16806109bb57506109bb611116565b806109c7575060015481115b610a025760405162461bcd60e51b815260040180806020018281038252602e815260200180611a0d602e913960400191505060405180910390fd5b60025460ff16158015610a23576002805460ff191660019081179091558290555b603880546001600160a01b03808b166001600160a01b031992831617909255603780548a84169083161790556039805492891692909116919091179055610a6a858561111c565b610a7383610af1565b604080516001600160a01b03808a16825280891660208301528a168183015290517f99566d155bc7902033d8db6b0f091f12209d9651abdae3aad004632bd3e657b59181900360600190a18015610acf576002805460ff191690555b5050505050505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b6039546040516020602482018181528451604484015284516000946001600160a01b0316936393ed430960e01b9387939283926064019180860191028083838b5b83811015610b4a578181015183820152602001610b32565b5050505090500192505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b60208310610bb75780518252601f199092019160209182019101610b98565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610c17576040519150601f19603f3d011682016040523d82523d6000602084013e610c1c565b606091505b5050505050565b60005b8251811015610c6757610c5f838281518110610c3e57fe5b6020026020010151838381518110610c5257fe5b6020026020010151610d88565b600101610c26565b505050565b60001981565b60005b8251811015610c67576000610cb3838381518110610c8f57fe5b6020026020010151610ca73087868151811061094057fe5b9063ffffffff61127616565b905060008111610cc35750610cd4565b610cd284838151811061097e57fe5b505b600101610c75565b6000610ce7836112a1565b15610cfd57506001600160a01b03811631610d82565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610d5357600080fd5b505afa158015610d67573d6000803e3d6000fd5b505050506040513d6020811015610d7d57600080fd5b505190505b92915050565b81610d916118e7565b604080516035805460606020820284018101855293830181815292939192849290918491840182828015610dee57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610dd0575b5050505050815260200160018201805480602002602001604051908101604052809291908181526020018280548015610e4657602002820191906000526020600020905b815481526020019060010190808311610e32575b505050505081525050905060008090505b815151811015610c1c576000610e9f612710610e9385602001518581518110610e7c57fe5b6020026020010151886112c690919063ffffffff16565b9063ffffffff61131f16565b905080610eac5750611108565b825180516000919084908110610ebe57fe5b60200260200101516001600160a01b031614610f8857610f0983600001518381518110610ee757fe5b602002602001015182886001600160a01b03166113619092919063ffffffff16565b7f60ce3cc2d133631eac66a476f14997a9fa682bd05a60dd993cf02285822d78d883600001518381518110610f3a57fe5b602002602001015184602001518481518110610f5257fe5b602090810291909101810151604080516001600160a01b03909416845291830152818101849052519081900360600190a1611106565b60375481906001600160a01b038681169116146110fb57603954603754604080516001600160a01b038981166024830152928316604482015260648101869052600a6084808301919091528251808303909101815260a490910182526020810180516001600160e01b0316630ed2fc9560e01b17815291518151600095606095169382918083835b6020831061102f5780518252601f199092019160209182019101611010565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461108f576040519150601f19603f3d011682016040523d82523d6000602084013e611094565b606091505b5091509150816110df576040805162461bcd60e51b81526020600482015260116024820152704552524f525f4f4e5f45584348414e474560781b604482015290519081900360640190fd5b8080602001905160208110156110f457600080fd5b5051925050505b6111048161143a565b505b505b600101610e57565b60035b90565b303b1590565b8051825114611172576040805162461bcd60e51b815260206004820152601d60248201527f4172726179206c656e677468732073686f756c6420626520657175616c000000604482015290519081900360640190fd5b604080518082019091528281526020808201839052835160359161119a918391870190611901565b5060208281015180516111b39260018501920190611966565b509050507fdc9f439f707945ade720b0154668dd64af0689fb88b40abdb0f0289156d23e9d8282604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561121e578181015183820152602001611206565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561125d578181015183820152602001611245565b5050505090500194505050505060405180910390a15050565b600061129a612710610e93611291868663ffffffff6112c616565b61138890611530565b9392505050565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b6000826112d557506000610d82565b828202828482816112e257fe5b041461129a5760405162461bcd60e51b81526004018080602001828103825260218152602001806119ec6021913960400191505060405180910390fd5b600061129a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061158a565b8061136b57610c67565b611374836112a1565b15611420576040516000906001600160a01b0384169061c35090849084818181858888f193505050503d80600081146113c9576040519150601f19603f3d011682016040523d82523d6000602084013e6113ce565b606091505b505090508061141a576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b50610c67565b610c676001600160a01b038416838363ffffffff61162c16565b6037546038546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051919092169163a9059cbb9160448083019260209291908290030181600087803b15801561149357600080fd5b505af11580156114a7573d6000803e3d6000fd5b505050506040513d60208110156114bd57600080fd5b50516114fa5760405162461bcd60e51b8152600401808060200182810382526039815260200180611a3b6039913960400191505060405180910390fd5b6040805182815290517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9181900360200190a150565b60008282018381101561129a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081836116165760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115db5781810151838201526020016115c3565b50505050905090810190601f1680156116085780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161162257fe5b0495945050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c6790849060606116ce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661172a9092919063ffffffff16565b805190915015610c67578080602001905160208110156116ed57600080fd5b5051610c675760405162461bcd60e51b815260040180806020018281038252602a815260200180611a74602a913960400191505060405180910390fd5b60606117398484600085611741565b949350505050565b606061174c856118ae565b61179d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117dc5780518252601f1990920191602091820191016117bd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461183e576040519150601f19603f3d011682016040523d82523d6000602084013e611843565b606091505b509150915081156118575791506117399050565b8051156118675780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156115db5781810151838201526020016115c3565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611739575050151592915050565b604051806040016040528060608152602001606081525090565b828054828255906000526020600020908101928215611956579160200282015b8281111561195657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611921565b506119629291506119ad565b5090565b8280548282559060005260206000209081019282156119a1579160200282015b828111156119a1578251825591602001919060010190611986565b506119629291506119d1565b61111391905b808211156119625780546001600160a01b03191681556001016119b3565b61111391905b8082111561196257600081556001016119d756fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564494e5445524e414c5f4255524e2e205265766572746564207472616e7366657220746f20726563697069656e744275726e20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c3efbf06a0f7f223f0a58a07227ed4df1348aaf73207c36c858e27b66876263c64736f6c63430006080033"; diff --git a/types/UintStorage.d.ts b/types/UintStorage.d.ts index 3a3b950a..093fde9a 100644 --- a/types/UintStorage.d.ts +++ b/types/UintStorage.d.ts @@ -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 UintStorageInterface extends Interface { functions: { - getUint: TypedFunctionDescription<{encode([_key]: [Arrayish]): string}>; + getUint: TypedFunctionDescription<{ encode([_key]: [Arrayish]): string }>; }; events: {}; diff --git a/types/UintStorageFactory.ts b/types/UintStorageFactory.ts index 491e94cb..9b0b02fe 100644 --- a/types/UintStorageFactory.ts +++ b/types/UintStorageFactory.ts @@ -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 {UintStorage} from './UintStorage'; +import { TransactionOverrides } from "."; +import { UintStorage } from "./UintStorage"; export class UintStorageFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class UintStorageFactory extends ContractFactory { connect(signer: Signer): UintStorageFactory { return super.connect(signer) as UintStorageFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): UintStorage { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): UintStorage { return new Contract(address, _abi, signerOrProvider) as UintStorage; } } @@ -34,23 +37,23 @@ const _abi = [ { inputs: [ { - internalType: 'bytes32', - name: '_key', - type: 'bytes32', - }, + internalType: "bytes32", + name: "_key", + type: "bytes32" + } ], - name: 'getUint', + name: "getUint", outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - }, + internalType: "uint256", + name: "", + type: "uint256" + } ], - stateMutability: 'view', - type: 'function', - }, + stateMutability: "view", + type: "function" + } ]; const _bytecode = - '0x6080604052348015600f57600080fd5b5060a18061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063bd02d0f514602d575b600080fd5b604760048036036020811015604157600080fd5b50356059565b60408051918252519081900360200190f35b6000908152602081905260409020549056fea264697066735822122060e13c8f991d1c7dbc9f9978241019018fefda3e1d69fcfe8ff8d23b365286e964736f6c63430006080033'; + "0x6080604052348015600f57600080fd5b5060a18061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063bd02d0f514602d575b600080fd5b604760048036036020811015604157600080fd5b50356059565b60408051918252519081900360200190f35b6000908152602081905260409020549056fea264697066735822122060e13c8f991d1c7dbc9f9978241019018fefda3e1d69fcfe8ff8d23b365286e964736f6c63430006080033"; diff --git a/types/UpgradeabilityProxy.d.ts b/types/UpgradeabilityProxy.d.ts index 408ec139..8fe382fa 100644 --- a/types/UpgradeabilityProxy.d.ts +++ b/types/UpgradeabilityProxy.d.ts @@ -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 UpgradeabilityProxyInterface extends Interface { functions: {}; @@ -23,7 +27,10 @@ export class UpgradeabilityProxy extends Contract { on(event: EventFilter | string, listener: Listener): UpgradeabilityProxy; once(event: EventFilter | string, listener: Listener): UpgradeabilityProxy; - addListener(eventName: EventFilter | string, listener: Listener): UpgradeabilityProxy; + addListener( + eventName: EventFilter | string, + listener: Listener + ): UpgradeabilityProxy; removeAllListeners(eventName: EventFilter | string): UpgradeabilityProxy; removeListener(eventName: any, listener: Listener): UpgradeabilityProxy; diff --git a/types/UpgradeabilityProxyFactory.ts b/types/UpgradeabilityProxyFactory.ts index 3219ee74..6a17b5e7 100644 --- a/types/UpgradeabilityProxyFactory.ts +++ b/types/UpgradeabilityProxyFactory.ts @@ -1,13 +1,13 @@ /* 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 {Arrayish} from 'ethers/utils'; +import { Contract, ContractFactory, Signer } from "ethers"; +import { Provider } from "ethers/providers"; +import { UnsignedTransaction } from "ethers/utils/transaction"; +import { Arrayish } from "ethers/utils"; -import {TransactionOverrides} from '.'; -import {UpgradeabilityProxy} from './UpgradeabilityProxy'; +import { TransactionOverrides } from "."; +import { UpgradeabilityProxy } from "./UpgradeabilityProxy"; export class UpgradeabilityProxyFactory extends ContractFactory { constructor(signer?: Signer) { @@ -19,7 +19,9 @@ export class UpgradeabilityProxyFactory extends ContractFactory { _data: Arrayish, overrides?: TransactionOverrides ): Promise { - return super.deploy(_logic, _data, overrides) as Promise; + return super.deploy(_logic, _data, overrides) as Promise< + UpgradeabilityProxy + >; } getDeployTransaction( _logic: string, @@ -34,7 +36,10 @@ export class UpgradeabilityProxyFactory extends ContractFactory { connect(signer: Signer): UpgradeabilityProxyFactory { return super.connect(signer) as UpgradeabilityProxyFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): UpgradeabilityProxy { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): UpgradeabilityProxy { return new Contract(address, _abi, signerOrProvider) as UpgradeabilityProxy; } } @@ -43,37 +48,37 @@ const _abi = [ { 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" + } ], - stateMutability: 'payable', - type: 'constructor', + stateMutability: "payable", + type: "constructor" }, { 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" + } ]; const _bytecode = - '0x60806040526040516103d93803806103d98339818101604052604081101561002657600080fd5b81516020830180516040519294929383019291908464010000000082111561004d57600080fd5b90830190602082018581111561006257600080fd5b825164010000000081118282018810171561007c57600080fd5b82525081516020918201929091019080838360005b838110156100a9578181015183820152602001610091565b50505050905090810190601f1680156100d65780820380516001836020036101000a031916815260200191505b5060408181527f656970313936372e70726f78792e696d706c656d656e746174696f6e0000000082525190819003601c01902060008051602061037e83398151915260001990910114925061012a91505057fe5b61013c826001600160e01b036101fb16565b8051156101f4576000826001600160a01b0316826040518082805190602001908083835b6020831061017f5780518252601f199092019160209182019101610160565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101df576040519150601f19603f3d011682016040523d82523d6000602084013e6101e4565b606091505b50509050806101f257600080fd5b505b5050610297565b61020e8161025b60201b6100201760201c565b6102495760405162461bcd60e51b815260040180806020018281038252603b81526020018061039e603b913960400191505060405180910390fd5b60008051602061037e83398151915255565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061028f57508115155b949350505050565b60d9806102a56000396000f3fe6080604052600a600c565b005b6012601e565b601e601a605b565b6080565b565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590605357508115155b949350505050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015609e573d6000f35b3d6000fdfea2646970667358221220891f7d2cdf9bc2a5b96323f4d5af76668af4ae95783fb0cd3c25a0d695eed46264736f6c63430006080033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373'; + "0x60806040526040516103d93803806103d98339818101604052604081101561002657600080fd5b81516020830180516040519294929383019291908464010000000082111561004d57600080fd5b90830190602082018581111561006257600080fd5b825164010000000081118282018810171561007c57600080fd5b82525081516020918201929091019080838360005b838110156100a9578181015183820152602001610091565b50505050905090810190601f1680156100d65780820380516001836020036101000a031916815260200191505b5060408181527f656970313936372e70726f78792e696d706c656d656e746174696f6e0000000082525190819003601c01902060008051602061037e83398151915260001990910114925061012a91505057fe5b61013c826001600160e01b036101fb16565b8051156101f4576000826001600160a01b0316826040518082805190602001908083835b6020831061017f5780518252601f199092019160209182019101610160565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101df576040519150601f19603f3d011682016040523d82523d6000602084013e6101e4565b606091505b50509050806101f257600080fd5b505b5050610297565b61020e8161025b60201b6100201760201c565b6102495760405162461bcd60e51b815260040180806020018281038252603b81526020018061039e603b913960400191505060405180910390fd5b60008051602061037e83398151915255565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061028f57508115155b949350505050565b60d9806102a56000396000f3fe6080604052600a600c565b005b6012601e565b601e601a605b565b6080565b565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590605357508115155b949350505050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015609e573d6000f35b3d6000fdfea2646970667358221220891f7d2cdf9bc2a5b96323f4d5af76668af4ae95783fb0cd3c25a0d695eed46264736f6c63430006080033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373"; diff --git a/types/VariableDebtToken.d.ts b/types/VariableDebtToken.d.ts index 74f1b819..586d5c11 100644 --- a/types/VariableDebtToken.d.ts +++ b/types/VariableDebtToken.d.ts @@ -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 VariableDebtTokenInterface extends Interface { functions: { @@ -16,13 +20,13 @@ interface VariableDebtTokenInterface extends Interface { encode([spender, _amount]: [string, BigNumberish]): string; }>; - balanceOf: TypedFunctionDescription<{encode([_user]: [string]): string}>; + balanceOf: TypedFunctionDescription<{ encode([_user]: [string]): string }>; burn: TypedFunctionDescription<{ encode([_user, _amount]: [string, BigNumberish]): string; }>; - decimals: TypedFunctionDescription<{encode([]: []): string}>; + decimals: TypedFunctionDescription<{ encode([]: []): string }>; decreaseAllowance: TypedFunctionDescription<{ encode([spender, subtractedValue]: [string, BigNumberish]): string; @@ -50,22 +54,26 @@ interface VariableDebtTokenInterface extends Interface { encode([_user, _amount]: [string, BigNumberish]): 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<{ @@ -75,33 +83,41 @@ interface VariableDebtTokenInterface 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[]; }>; burnDebt: TypedEventDescription<{ - encodeTopics([_user, _amount, _previousBalance, _currentBalance, _balanceIncrease, _index]: [ - null, - null, - null, - null, - null, - null - ]): string[]; + encodeTopics([ + _user, + _amount, + _previousBalance, + _currentBalance, + _balanceIncrease, + _index + ]: [null, null, null, null, null, null]): string[]; }>; mintDebt: TypedEventDescription<{ - encodeTopics([_user, _amount, _previousBalance, _currentBalance, _balanceIncrease, _index]: [ - null, - null, - null, - null, - null, - null - ]): string[]; + encodeTopics([ + _user, + _amount, + _previousBalance, + _currentBalance, + _balanceIncrease, + _index + ]: [null, null, null, null, null, null]): string[]; }>; }; } @@ -113,7 +129,10 @@ export class VariableDebtToken extends Contract { on(event: EventFilter | string, listener: Listener): VariableDebtToken; once(event: EventFilter | string, listener: Listener): VariableDebtToken; - addListener(eventName: EventFilter | string, listener: Listener): VariableDebtToken; + addListener( + eventName: EventFilter | string, + listener: Listener + ): VariableDebtToken; removeAllListeners(eventName: EventFilter | string): VariableDebtToken; removeListener(eventName: any, listener: Listener): VariableDebtToken; @@ -262,7 +281,11 @@ export class VariableDebtToken extends Contract { underlyingAssetAddress(): Promise; 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; @@ -296,11 +319,17 @@ export class VariableDebtToken extends Contract { decimals(): Promise; - decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise; + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish + ): Promise; getUserIndex(_user: string): Promise; - increaseAllowance(spender: string, addedValue: BigNumberish): Promise; + increaseAllowance( + spender: string, + addedValue: BigNumberish + ): Promise; init( _name: string, @@ -322,7 +351,11 @@ export class VariableDebtToken extends Contract { transfer(recipient: string, _amount: BigNumberish): Promise; - transferFrom(sender: string, recipient: string, _amount: BigNumberish): Promise; + transferFrom( + sender: string, + recipient: string, + _amount: BigNumberish + ): Promise; underlyingAssetAddress(): Promise; }; diff --git a/types/VariableDebtTokenFactory.ts b/types/VariableDebtTokenFactory.ts index dd1fcb29..e474f146 100644 --- a/types/VariableDebtTokenFactory.ts +++ b/types/VariableDebtTokenFactory.ts @@ -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 {VariableDebtToken} from './VariableDebtToken'; +import { TransactionOverrides } from "."; +import { VariableDebtToken } from "./VariableDebtToken"; export class VariableDebtTokenFactory extends ContractFactory { constructor(signer?: Signer) { @@ -25,7 +25,10 @@ export class VariableDebtTokenFactory extends ContractFactory { connect(signer: Signer): VariableDebtTokenFactory { return super.connect(signer) as VariableDebtTokenFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): VariableDebtToken { + static connect( + address: string, + signerOrProvider: Signer | Provider + ): VariableDebtToken { return new Contract(address, _abi, signerOrProvider) as VariableDebtToken; } } @@ -36,478 +39,478 @@ 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" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_previousBalance', - type: 'uint256', + internalType: "uint256", + name: "_previousBalance", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_currentBalance', - type: 'uint256', + internalType: "uint256", + name: "_currentBalance", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_index', - type: 'uint256', - }, + internalType: "uint256", + name: "_index", + type: "uint256" + } ], - name: 'burnDebt', - type: 'event', + name: "burnDebt", + type: "event" }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', + internalType: "uint256", + name: "_amount", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_previousBalance', - type: 'uint256', + internalType: "uint256", + name: "_previousBalance", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_currentBalance', - type: 'uint256', + internalType: "uint256", + name: "_currentBalance", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_balanceIncrease', - type: 'uint256', + internalType: "uint256", + name: "_balanceIncrease", + type: "uint256" }, { indexed: false, - internalType: 'uint256', - name: '_index', - type: 'uint256', - }, + internalType: "uint256", + name: "_index", + type: "uint256" + } ], - name: 'mintDebt', - type: 'event', + name: "mintDebt", + 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: [ { - 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: '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: '_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: '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: [ { - 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" }, { 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" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b50611132806100206000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806381e75277116100a2578063a457c2d711610071578063a457c2d71461023b578063a9059cbb1461045a578063c634dfaa14610486578063dd62ed3e146104ac578063ee9907a4146104da5761010b565b806381e75277146102bb57806389d1a0fc1461040257806395d89b41146104265780639dc29fac1461042e5761010b565b8063313ce567116100de578063313ce5671461021d578063395093511461023b57806340c10f191461026757806370a08231146102955761010b565b806306fdde0314610110578063095ea7b31461018d57806318160ddd146101cd57806323b872dd146101e7575b600080fd5b610118610500565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015257818101518382015260200161013a565b50505050905090810190601f16801561017f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101b9600480360360408110156101a357600080fd5b506001600160a01b03813516906020013561058d565b604080519115158252519081900360200190f35b6101d56105d5565b60408051918252519081900360200190f35b6101b9600480360360608110156101fd57600080fd5b506001600160a01b038135811691602081013590911690604001356105db565b610225610623565b6040805160ff9092168252519081900360200190f35b6101b96004803603604081101561025157600080fd5b506001600160a01b03813516906020013561062c565b6102936004803603604081101561027d57600080fd5b506001600160a01b03813516906020013561067b565b005b6101d5600480360360208110156102ab57600080fd5b50356001600160a01b03166107db565b610293600480360360a08110156102d157600080fd5b8101906020810181356401000000008111156102ec57600080fd5b8201836020820111156102fe57600080fd5b8035906020019184600183028401116401000000008311171561032057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561037357600080fd5b82018360208201111561038557600080fd5b803590602001918460018302840111640100000000831117156103a757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505060ff8335169350506001600160a01b036020830135811692604001351690506108e8565b61040a6109cd565b604080516001600160a01b039092168252519081900360200190f35b6101186109e1565b6102936004803603604081101561044457600080fd5b506001600160a01b038135169060200135610a39565b6101b96004803603604081101561047057600080fd5b506001600160a01b0381351690602001356105db565b6101d56004803603602081101561049c57600080fd5b50356001600160a01b0316610bd4565b6101d5600480360360408110156104c257600080fd5b506001600160a01b038135811691602001351661062c565b6101d5600480360360208110156104f057600080fd5b50356001600160a01b0316610bef565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105855780601f1061055a57610100808354040283529160200191610585565b820191906000526020600020905b81548152906001019060200180831161056857829003601f168201915b505050505081565b6040805162461bcd60e51b81526020600482015260166024820152751054141493d5905317d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b60005481565b6040805162461bcd60e51b81526020600482015260166024820152751514905394d1915497d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b60035460ff1681565b6040805162461bcd60e51b815260206004820152601760248201527f414c4c4f57414e43455f4e4f545f535550504f525445440000000000000000006044820152905160009181900360640190fd5b6004546001600160a01b031633146106c45760405162461bcd60e51b81526004018080602001828103825260328152602001806110cb6032913960400191505060405180910390fd5b60008060006106d285610c0a565b9250925092506106e28585610c84565b600480546003546040805163386497fd60e01b81526001600160a01b036101009093048316948101949094525191169163386497fd916024808301926020929190829003018186803b15801561073757600080fd5b505afa15801561074b573d6000803e3d6000fd5b505050506040513d602081101561076157600080fd5b50516001600160a01b03861660008181526006602090815260409182902084905581519283528201879052818101869052606082018590526080820184905260a082019290925290517f94ba3ac5ed6fee7b49ed817c5ee964eed9bd5da6860344f95fc56997e920381d9181900360c00190a15050505050565b6001600160a01b038116600090815260056020526040812054610800575060006108e3565b6001600160a01b038083166000908152600660209081526040918290205460048054600354855163386497fd60e01b815261010090910487169281019290925293516108e0956108db9593946108cf949091169263386497fd9260248083019392829003018186803b15801561087557600080fd5b505afa158015610889573d6000803e3d6000fd5b505050506040513d602081101561089f57600080fd5b50516001600160a01b0387166000908152600560205260409020546108c390610ce2565b9063ffffffff610cf816565b9063ffffffff610d4516565b610d7d565b90505b919050565b84516108fb90600190602088019061100e565b50835161090f90600290602087019061100e565b506003805460ff191660ff851617610100600160a81b0319166101006001600160a01b03858116919091029190911790915560408051630261bf8b60e01b8152905191831691630261bf8b91600480820192602092909190829003018186803b15801561097b57600080fd5b505afa15801561098f573d6000803e3d6000fd5b505050506040513d60208110156109a557600080fd5b5051600480546001600160a01b0319166001600160a01b039092169190911790555050505050565b60035461010090046001600160a01b031681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156105855780601f1061055a57610100808354040283529160200191610585565b6004546001600160a01b03163314610a825760405162461bcd60e51b81526004018080602001828103825260328152602001806110cb6032913960400191505060405180910390fd5b6000806000610a9085610c0a565b925092509250610aa08585610d9d565b83821415610ac6576001600160a01b038516600090815260066020526040812055610b61565b600480546003546040805163386497fd60e01b81526001600160a01b036101009093048316948101949094525191169163386497fd916024808301926020929190829003018186803b158015610b1b57600080fd5b505afa158015610b2f573d6000803e3d6000fd5b505050506040513d6020811015610b4557600080fd5b50516001600160a01b0386166000908152600660205260409020555b6001600160a01b038516600081815260066020908152604091829020548251938452908301879052828201869052606083018590526080830184905260a0830152517fc57f977ee00c44453a91f798753002bf12fca5f5ca2ee8db560720f51d4b0f629181900360c00190a15050505050565b6001600160a01b031660009081526005602052604090205490565b6001600160a01b031660009081526006602052604090205490565b6001600160a01b0381166000908152600560205260408120548190819080610c3c575060009250829150819050610c7d565b6000610c5782610c4b886107db565b9063ffffffff610ddb16565b9050610c638682610c84565b81610c74818363ffffffff610e1d16565b90955093509150505b9193909250565b600054610c97908263ffffffff610e1d16565b60009081556001600160a01b038316815260056020526040902054610cc2908263ffffffff610e1d16565b6001600160a01b0390921660009081526005602052604090209190915550565b60006108e082633b9aca0063ffffffff610e7716565b6000610d3c6b033b2e3c9fd0803ce8000000610d30610d1d868663ffffffff610e7716565b6b019d971e4fe8401e7400000090610e1d565b9063ffffffff610ed016565b90505b92915050565b600060028204610d7583610d30610d68876b033b2e3c9fd0803ce8000000610e77565b849063ffffffff610e1d16565b949350505050565b6000631dcd6500610d96633b9aca00610d308386610e1d565b9392505050565b600054610db0908263ffffffff610ddb16565b60009081556001600160a01b038316815260056020526040902054610cc2908263ffffffff610ddb16565b6000610d3c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610f12565b600082820183811015610d3c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082610e8657506000610d3f565b82820282848281610e9357fe5b0414610d3c5760405162461bcd60e51b81526004018080602001828103825260218152602001806110aa6021913960400191505060405180910390fd5b6000610d3c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610fa9565b60008184841115610fa15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610f66578181015183820152602001610f4e565b50505050905090810190601f168015610f935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610ff85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610f66578181015183820152602001610f4e565b50600083858161100457fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061104f57805160ff191683800117855561107c565b8280016001018555821561107c579182015b8281111561107c578251825591602001919060010190611061565b5061108892915061108c565b5090565b6110a691905b808211156110885760008155600101611092565b9056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468652063616c6c6572206f6620746869732066756e6374696f6e206d7573742062652061206c656e64696e6720706f6f6ca2646970667358221220e78f9d8018c81e82b47bd8018c68bab3dedc316196c363eb5de36ffc1aa6e69664736f6c63430006080033'; + "0x608060405234801561001057600080fd5b50611132806100206000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806381e75277116100a2578063a457c2d711610071578063a457c2d71461023b578063a9059cbb1461045a578063c634dfaa14610486578063dd62ed3e146104ac578063ee9907a4146104da5761010b565b806381e75277146102bb57806389d1a0fc1461040257806395d89b41146104265780639dc29fac1461042e5761010b565b8063313ce567116100de578063313ce5671461021d578063395093511461023b57806340c10f191461026757806370a08231146102955761010b565b806306fdde0314610110578063095ea7b31461018d57806318160ddd146101cd57806323b872dd146101e7575b600080fd5b610118610500565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015257818101518382015260200161013a565b50505050905090810190601f16801561017f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101b9600480360360408110156101a357600080fd5b506001600160a01b03813516906020013561058d565b604080519115158252519081900360200190f35b6101d56105d5565b60408051918252519081900360200190f35b6101b9600480360360608110156101fd57600080fd5b506001600160a01b038135811691602081013590911690604001356105db565b610225610623565b6040805160ff9092168252519081900360200190f35b6101b96004803603604081101561025157600080fd5b506001600160a01b03813516906020013561062c565b6102936004803603604081101561027d57600080fd5b506001600160a01b03813516906020013561067b565b005b6101d5600480360360208110156102ab57600080fd5b50356001600160a01b03166107db565b610293600480360360a08110156102d157600080fd5b8101906020810181356401000000008111156102ec57600080fd5b8201836020820111156102fe57600080fd5b8035906020019184600183028401116401000000008311171561032057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561037357600080fd5b82018360208201111561038557600080fd5b803590602001918460018302840111640100000000831117156103a757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505060ff8335169350506001600160a01b036020830135811692604001351690506108e8565b61040a6109cd565b604080516001600160a01b039092168252519081900360200190f35b6101186109e1565b6102936004803603604081101561044457600080fd5b506001600160a01b038135169060200135610a39565b6101b96004803603604081101561047057600080fd5b506001600160a01b0381351690602001356105db565b6101d56004803603602081101561049c57600080fd5b50356001600160a01b0316610bd4565b6101d5600480360360408110156104c257600080fd5b506001600160a01b038135811691602001351661062c565b6101d5600480360360208110156104f057600080fd5b50356001600160a01b0316610bef565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105855780601f1061055a57610100808354040283529160200191610585565b820191906000526020600020905b81548152906001019060200180831161056857829003601f168201915b505050505081565b6040805162461bcd60e51b81526020600482015260166024820152751054141493d5905317d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b60005481565b6040805162461bcd60e51b81526020600482015260166024820152751514905394d1915497d393d517d4d5541413d495115160521b6044820152905160009181900360640190fd5b60035460ff1681565b6040805162461bcd60e51b815260206004820152601760248201527f414c4c4f57414e43455f4e4f545f535550504f525445440000000000000000006044820152905160009181900360640190fd5b6004546001600160a01b031633146106c45760405162461bcd60e51b81526004018080602001828103825260328152602001806110cb6032913960400191505060405180910390fd5b60008060006106d285610c0a565b9250925092506106e28585610c84565b600480546003546040805163386497fd60e01b81526001600160a01b036101009093048316948101949094525191169163386497fd916024808301926020929190829003018186803b15801561073757600080fd5b505afa15801561074b573d6000803e3d6000fd5b505050506040513d602081101561076157600080fd5b50516001600160a01b03861660008181526006602090815260409182902084905581519283528201879052818101869052606082018590526080820184905260a082019290925290517f94ba3ac5ed6fee7b49ed817c5ee964eed9bd5da6860344f95fc56997e920381d9181900360c00190a15050505050565b6001600160a01b038116600090815260056020526040812054610800575060006108e3565b6001600160a01b038083166000908152600660209081526040918290205460048054600354855163386497fd60e01b815261010090910487169281019290925293516108e0956108db9593946108cf949091169263386497fd9260248083019392829003018186803b15801561087557600080fd5b505afa158015610889573d6000803e3d6000fd5b505050506040513d602081101561089f57600080fd5b50516001600160a01b0387166000908152600560205260409020546108c390610ce2565b9063ffffffff610cf816565b9063ffffffff610d4516565b610d7d565b90505b919050565b84516108fb90600190602088019061100e565b50835161090f90600290602087019061100e565b506003805460ff191660ff851617610100600160a81b0319166101006001600160a01b03858116919091029190911790915560408051630261bf8b60e01b8152905191831691630261bf8b91600480820192602092909190829003018186803b15801561097b57600080fd5b505afa15801561098f573d6000803e3d6000fd5b505050506040513d60208110156109a557600080fd5b5051600480546001600160a01b0319166001600160a01b039092169190911790555050505050565b60035461010090046001600160a01b031681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156105855780601f1061055a57610100808354040283529160200191610585565b6004546001600160a01b03163314610a825760405162461bcd60e51b81526004018080602001828103825260328152602001806110cb6032913960400191505060405180910390fd5b6000806000610a9085610c0a565b925092509250610aa08585610d9d565b83821415610ac6576001600160a01b038516600090815260066020526040812055610b61565b600480546003546040805163386497fd60e01b81526001600160a01b036101009093048316948101949094525191169163386497fd916024808301926020929190829003018186803b158015610b1b57600080fd5b505afa158015610b2f573d6000803e3d6000fd5b505050506040513d6020811015610b4557600080fd5b50516001600160a01b0386166000908152600660205260409020555b6001600160a01b038516600081815260066020908152604091829020548251938452908301879052828201869052606083018590526080830184905260a0830152517fc57f977ee00c44453a91f798753002bf12fca5f5ca2ee8db560720f51d4b0f629181900360c00190a15050505050565b6001600160a01b031660009081526005602052604090205490565b6001600160a01b031660009081526006602052604090205490565b6001600160a01b0381166000908152600560205260408120548190819080610c3c575060009250829150819050610c7d565b6000610c5782610c4b886107db565b9063ffffffff610ddb16565b9050610c638682610c84565b81610c74818363ffffffff610e1d16565b90955093509150505b9193909250565b600054610c97908263ffffffff610e1d16565b60009081556001600160a01b038316815260056020526040902054610cc2908263ffffffff610e1d16565b6001600160a01b0390921660009081526005602052604090209190915550565b60006108e082633b9aca0063ffffffff610e7716565b6000610d3c6b033b2e3c9fd0803ce8000000610d30610d1d868663ffffffff610e7716565b6b019d971e4fe8401e7400000090610e1d565b9063ffffffff610ed016565b90505b92915050565b600060028204610d7583610d30610d68876b033b2e3c9fd0803ce8000000610e77565b849063ffffffff610e1d16565b949350505050565b6000631dcd6500610d96633b9aca00610d308386610e1d565b9392505050565b600054610db0908263ffffffff610ddb16565b60009081556001600160a01b038316815260056020526040902054610cc2908263ffffffff610ddb16565b6000610d3c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610f12565b600082820183811015610d3c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082610e8657506000610d3f565b82820282848281610e9357fe5b0414610d3c5760405162461bcd60e51b81526004018080602001828103825260218152602001806110aa6021913960400191505060405180910390fd5b6000610d3c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610fa9565b60008184841115610fa15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610f66578181015183820152602001610f4e565b50505050905090810190601f168015610f935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610ff85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610f66578181015183820152602001610f4e565b50600083858161100457fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061104f57805160ff191683800117855561107c565b8280016001018555821561107c579182015b8281111561107c578251825591602001919060010190611061565b5061108892915061108c565b5090565b6110a691905b808211156110885760008155600101611092565b9056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468652063616c6c6572206f6620746869732066756e6374696f6e206d7573742062652061206c656e64696e6720706f6f6ca2646970667358221220c9e94af60948c448f12866aaff1498be29c54e0ec5d00b3e187251274acc9c6164736f6c63430006080033"; diff --git a/types/WalletBalanceProvider.d.ts b/types/WalletBalanceProvider.d.ts index a7a84cf4..b6aae5bd 100644 --- a/types/WalletBalanceProvider.d.ts +++ b/types/WalletBalanceProvider.d.ts @@ -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 WalletBalanceProviderInterface extends Interface { functions: { @@ -31,7 +35,10 @@ export class WalletBalanceProvider extends Contract { on(event: EventFilter | string, listener: Listener): WalletBalanceProvider; once(event: EventFilter | string, listener: Listener): WalletBalanceProvider; - addListener(eventName: EventFilter | string, listener: Listener): WalletBalanceProvider; + addListener( + eventName: EventFilter | string, + listener: Listener + ): WalletBalanceProvider; removeAllListeners(eventName: EventFilter | string): WalletBalanceProvider; removeListener(eventName: any, listener: Listener): WalletBalanceProvider; diff --git a/types/WalletBalanceProviderFactory.ts b/types/WalletBalanceProviderFactory.ts index 6053dc4e..6976c066 100644 --- a/types/WalletBalanceProviderFactory.ts +++ b/types/WalletBalanceProviderFactory.ts @@ -1,22 +1,28 @@ /* 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 {WalletBalanceProvider} from './WalletBalanceProvider'; +import { TransactionOverrides } from "."; +import { WalletBalanceProvider } from "./WalletBalanceProvider"; export class WalletBalanceProviderFactory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } - deploy(_provider: string, overrides?: TransactionOverrides): Promise { + deploy( + _provider: string, + overrides?: TransactionOverrides + ): Promise { return super.deploy(_provider, overrides) as Promise; } - getDeployTransaction(_provider: string, overrides?: TransactionOverrides): UnsignedTransaction { + getDeployTransaction( + _provider: string, + overrides?: TransactionOverrides + ): UnsignedTransaction { return super.getDeployTransaction(_provider, overrides); } attach(address: string): WalletBalanceProvider { @@ -25,8 +31,15 @@ export class WalletBalanceProviderFactory extends ContractFactory { connect(signer: Signer): WalletBalanceProviderFactory { return super.connect(signer) as WalletBalanceProviderFactory; } - static connect(address: string, signerOrProvider: Signer | Provider): WalletBalanceProvider { - return new Contract(address, _abi, signerOrProvider) as WalletBalanceProvider; + static connect( + address: string, + signerOrProvider: Signer | Provider + ): WalletBalanceProvider { + return new Contract( + address, + _abi, + signerOrProvider + ) as WalletBalanceProvider; } } @@ -34,91 +47,91 @@ const _abi = [ { inputs: [ { - internalType: 'contract LendingPoolAddressesProvider', - name: '_provider', - type: 'address', - }, + internalType: "contract LendingPoolAddressesProvider", + name: "_provider", + type: "address" + } ], - stateMutability: 'nonpayable', - type: 'constructor', + stateMutability: "nonpayable", + type: "constructor" }, { inputs: [ { - internalType: 'address', - name: '_user', - type: 'address', + internalType: "address", + name: "_user", + type: "address" }, { - internalType: 'address', - name: '_token', - type: 'address', - }, + internalType: "address", + name: "_token", + 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: 'address[]', - name: '_users', - type: 'address[]', + internalType: "address[]", + name: "_users", + type: "address[]" }, { - internalType: 'address[]', - name: '_tokens', - type: 'address[]', - }, + internalType: "address[]", + name: "_tokens", + type: "address[]" + } ], - name: 'batchBalanceOf', + name: "batchBalanceOf", 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: 'getUserWalletBalances', + name: "getUserWalletBalances", outputs: [ { - internalType: 'address[]', - name: '', - type: 'address[]', + internalType: "address[]", + name: "", + type: "address[]" }, { - internalType: 'uint256[]', - name: '', - type: 'uint256[]', - }, + internalType: "uint256[]", + name: "", + type: "uint256[]" + } ], - stateMutability: 'view', - type: 'function', + stateMutability: "view", + type: "function" }, { - stateMutability: 'payable', - type: 'receive', - }, + stateMutability: "payable", + type: "receive" + } ]; const _bytecode = - '0x608060405234801561001057600080fd5b506040516109863803806109868339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055610921806100656000396000f3fe6080604052600436106100385760003560e01c80639e3c930914610083578063b59b28ef1461014f578063f7888aec146102d35761007e565b3661007e5761004633610320565b61007c576040805162461bcd60e51b8152602060048201526002602482015261191960f11b604482015290519081900360640190fd5b005b600080fd5b34801561008f57600080fd5b506100b6600480360360208110156100a657600080fd5b50356001600160a01b031661035c565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156100fa5781810151838201526020016100e2565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610139578181015183820152602001610121565b5050505090500194505050505060405180910390f35b34801561015b57600080fd5b506102836004803603604081101561017257600080fd5b81019060208101813564010000000081111561018d57600080fd5b82018360208201111561019f57600080fd5b803590602001918460208302840111640100000000831117156101c157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561021157600080fd5b82018360208201111561022357600080fd5b8035906020019184602083028401116401000000008311171561024557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506106a0945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102bf5781810151838201526020016102a7565b505050509050019250505060405180910390f35b3480156102df57600080fd5b5061030e600480360360408110156102f657600080fd5b506001600160a01b038135811691602001351661081c565b60408051918252519081900360200190f35b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061035457508115155b949350505050565b60608060008060009054906101000a90046001600160a01b03166001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103ae57600080fd5b505afa1580156103c2573d6000803e3d6000fd5b505050506040513d60208110156103d857600080fd5b505160408051630240bc6b60e21b815290519192506060916001600160a01b03841691630902f1ac916004808301926000929190829003018186803b15801561042057600080fd5b505afa158015610434573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561045d57600080fd5b810190808051604051939291908464010000000082111561047d57600080fd5b90830190602082018581111561049257600080fd5b82518660208202830111640100000000821117156104af57600080fd5b82525081516020918201928201910280838360005b838110156104dc5781810151838201526020016104c4565b5050505090500160405250505090506060815167ffffffffffffffff8111801561050557600080fd5b5060405190808252806020026020018201604052801561052f578160200160208202803683370190505b50905060005b8251811015610694576000846001600160a01b0316633e15014185848151811061055b57fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b031681526020019150506101406040518083038186803b1580156105aa57600080fd5b505afa1580156105be573d6000803e3d6000fd5b505050506040513d6101408110156105d557600080fd5b5061010001519050806106025760008383815181106105f057fe5b6020026020010181815250505061068c565b61062784838151811061061157fe5b60200260200101516001600160a01b03166108c6565b15610666576106498885848151811061063c57fe5b602002602001015161081c565b83838151811061065557fe5b60200260200101818152505061068a565b876001600160a01b03163183838151811061067d57fe5b6020026020010181815250505b505b600101610535565b50909350915050915091565b606080825184510267ffffffffffffffff811180156106be57600080fd5b506040519080825280602002602001820160405280156106e8578160200160208202803683370190505b50905060005b84518110156108125760005b845181101561080957600085518302905061071a86838151811061061157fe5b1561075c5786838151811061072b57fe5b60200260200101516001600160a01b031631848383018151811061074b57fe5b602002602001018181525050610800565b61078186838151811061076b57fe5b60200260200101516001600160a01b0316610320565b6107c2576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b604482015290519081900360640190fd5b6107e58784815181106107d157fe5b602002602001015187848151811061063c57fe5b84838301815181106107f357fe5b6020026020010181815250505b506001016106fa565b506001016106ee565b5090505b92915050565b6000610830826001600160a01b0316610320565b156108be57816001600160a01b03166370a08231846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561088b57600080fd5b505afa15801561089f573d6000803e3d6000fd5b505050506040513d60208110156108b557600080fd5b50519050610816565b506000610816565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1491905056fea2646970667358221220c12cfbdd480ca99bcf6c566c25db8abeeec08854a31462c3db0b4e3c5b074d8d64736f6c63430006080033'; + "0x608060405234801561001057600080fd5b506040516109863803806109868339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055610921806100656000396000f3fe6080604052600436106100385760003560e01c80639e3c930914610083578063b59b28ef1461014f578063f7888aec146102d35761007e565b3661007e5761004633610320565b61007c576040805162461bcd60e51b8152602060048201526002602482015261191960f11b604482015290519081900360640190fd5b005b600080fd5b34801561008f57600080fd5b506100b6600480360360208110156100a657600080fd5b50356001600160a01b031661035c565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156100fa5781810151838201526020016100e2565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610139578181015183820152602001610121565b5050505090500194505050505060405180910390f35b34801561015b57600080fd5b506102836004803603604081101561017257600080fd5b81019060208101813564010000000081111561018d57600080fd5b82018360208201111561019f57600080fd5b803590602001918460208302840111640100000000831117156101c157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561021157600080fd5b82018360208201111561022357600080fd5b8035906020019184602083028401116401000000008311171561024557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506106a0945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102bf5781810151838201526020016102a7565b505050509050019250505060405180910390f35b3480156102df57600080fd5b5061030e600480360360408110156102f657600080fd5b506001600160a01b038135811691602001351661081c565b60408051918252519081900360200190f35b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061035457508115155b949350505050565b60608060008060009054906101000a90046001600160a01b03166001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103ae57600080fd5b505afa1580156103c2573d6000803e3d6000fd5b505050506040513d60208110156103d857600080fd5b505160408051630240bc6b60e21b815290519192506060916001600160a01b03841691630902f1ac916004808301926000929190829003018186803b15801561042057600080fd5b505afa158015610434573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561045d57600080fd5b810190808051604051939291908464010000000082111561047d57600080fd5b90830190602082018581111561049257600080fd5b82518660208202830111640100000000821117156104af57600080fd5b82525081516020918201928201910280838360005b838110156104dc5781810151838201526020016104c4565b5050505090500160405250505090506060815167ffffffffffffffff8111801561050557600080fd5b5060405190808252806020026020018201604052801561052f578160200160208202803683370190505b50905060005b8251811015610694576000846001600160a01b0316633e15014185848151811061055b57fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b031681526020019150506101406040518083038186803b1580156105aa57600080fd5b505afa1580156105be573d6000803e3d6000fd5b505050506040513d6101408110156105d557600080fd5b5061010001519050806106025760008383815181106105f057fe5b6020026020010181815250505061068c565b61062784838151811061061157fe5b60200260200101516001600160a01b03166108c6565b15610666576106498885848151811061063c57fe5b602002602001015161081c565b83838151811061065557fe5b60200260200101818152505061068a565b876001600160a01b03163183838151811061067d57fe5b6020026020010181815250505b505b600101610535565b50909350915050915091565b606080825184510267ffffffffffffffff811180156106be57600080fd5b506040519080825280602002602001820160405280156106e8578160200160208202803683370190505b50905060005b84518110156108125760005b845181101561080957600085518302905061071a86838151811061061157fe5b1561075c5786838151811061072b57fe5b60200260200101516001600160a01b031631848383018151811061074b57fe5b602002602001018181525050610800565b61078186838151811061076b57fe5b60200260200101516001600160a01b0316610320565b6107c2576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b604482015290519081900360640190fd5b6107e58784815181106107d157fe5b602002602001015187848151811061063c57fe5b84838301815181106107f357fe5b6020026020010181815250505b506001016106fa565b506001016106ee565b5090505b92915050565b6000610830826001600160a01b0316610320565b156108be57816001600160a01b03166370a08231846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561088b57600080fd5b505afa15801561089f573d6000803e3d6000fd5b505050506040513d60208110156108b557600080fd5b50519050610816565b506000610816565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1491905056fea2646970667358221220d229125c06b4ff7a1d89687eb3ef25a0713d63f804aa352026fdaa83b6d4b49864736f6c63430006080033"; diff --git a/types/index.d.ts b/types/index.d.ts index c53e7906..93c86106 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,6 +1,10 @@ /* Generated by ts-generator ver. 0.0.8 */ /* tslint:disable */ -import {BigNumberish, EventDescription, FunctionDescription} from 'ethers/utils'; +import { + BigNumberish, + EventDescription, + FunctionDescription +} from "ethers/utils"; export class TransactionOverrides { nonce?: BigNumberish | Promise; @@ -10,12 +14,14 @@ export class TransactionOverrides { chainId?: number | Promise; } -export interface TypedEventDescription> - extends EventDescription { - encodeTopics: T['encodeTopics']; +export interface TypedEventDescription< + T extends Pick +> extends EventDescription { + encodeTopics: T["encodeTopics"]; } -export interface TypedFunctionDescription> - extends FunctionDescription { - encode: T['encode']; +export interface TypedFunctionDescription< + T extends Pick +> extends FunctionDescription { + encode: T["encode"]; }